diff --git a/misc/init.sh b/misc/init.sh index f2f0206..173511d 100755 --- a/misc/init.sh +++ b/misc/init.sh @@ -84,6 +84,10 @@ echo tar xzvf /tmp/mlmmj-light-web-master/misc/templates.tar.gz -C /tmp/mlmmj-light-web-master/misc rm /tmp/mlmmj-light-web-master/misc/templates.tar.gz echo +echo "Unpacking smarty..." +tar xzvf /tmp/mlmmj-light-web-master/misc/smarty.tar.gz -C /tmp/mlmmj-light-web-master/misc +rm /tmp/mlmmj-light-web-master/misc/smarty.tar.gz +echo echo "Compiling foot_filter..." echo make -C /tmp/mlmmj-light-web-master/misc/move/foot_filter diff --git a/misc/smarty.tar.gz b/misc/smarty.tar.gz new file mode 100644 index 0000000..07d875a Binary files /dev/null and b/misc/smarty.tar.gz differ diff --git a/misc/smarty/templates_c/085c43aa609e2e11c05d0026471aaaa2a26be865_0.file.error.tpl.php b/misc/smarty/templates_c/085c43aa609e2e11c05d0026471aaaa2a26be865_0.file.error.tpl.php deleted file mode 100644 index 1e4fb21..0000000 --- a/misc/smarty/templates_c/085c43aa609e2e11c05d0026471aaaa2a26be865_0.file.error.tpl.php +++ /dev/null @@ -1,57 +0,0 @@ -_decodeProperties($_smarty_tpl, array ( - 'version' => '3.1.31', - 'unifunc' => 'content_588b2f056f0767_75452529', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - '085c43aa609e2e11c05d0026471aaaa2a26be865' => - array ( - 0 => '/var/www/html/smarty/templates_ru/error.tpl', - 1 => 1485516367, - 2 => 'file', - ), - ), - 'includes' => - array ( - ), -),false)) { -function content_588b2f056f0767_75452529 (Smarty_Internal_Template $_smarty_tpl) { -?> - - - - - - -
- tpl_vars['error_code']->value == 1) {?> - Домен может содержать только латинские буквы, точки, дефисы и цифры. - tpl_vars['error_code']->value == 2) {?> - Пароль может содержать только латинские буквы и цифры. - tpl_vars['error_code']->value == 3) {?> - Неверный пароль. - tpl_vars['error_code']->value == 4) {?> - Такой домен не зарегистрирован. - tpl_vars['error_code']->value == 5) {?> - Название рассылки может содержать только латинские буквы, цифры и символы нижнего подчёркивания. - tpl_vars['error_code']->value == 6) {?> - Длина названия рассылки не может превышать 30-ти символов. - tpl_vars['error_code']->value == 7) {?> - Длина префикса не может превышать 128-ти символов. - tpl_vars['error_code']->value == 8) {?> - Длина подписи не может превышать 1024-ти символов. - tpl_vars['error_code']->value == 9) {?> - Среди подписчиков есть некорректный e-mail. - - Неизвестная ошибка. - -
- - -_decodeProperties($_smarty_tpl, array ( - 'version' => '3.1.31', - 'unifunc' => 'content_5890e7cc706e70_54046020', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - '0b36f150fb6660b8982bed805054bb093a12538d' => - array ( - 0 => '/var/www/html/misc/smarty/templates_en/index.tpl', - 1 => 1485850802, - 2 => 'file', - ), - ), - 'includes' => - array ( - ), -),false)) { -function content_5890e7cc706e70_54046020 (Smarty_Internal_Template $_smarty_tpl) { -?> - - - - -> - function validate_form() - { - var name = document.getElementById('add_list_input').value; - var name = name.toLowerCase(); - - if (name == "") - { - return false; - } - - if (name.length > 30) - { - alert("Название списка рассылки должно содержать не более 30-ти символов."); - return false; - } - - if ( name.match(/[^a-z0-9_]/) ) - { - alert("Название списка рассылки может содержать только латинские буквы, цифры и символы нижнего подчёркивания."); - return false; - } - } - - function confirm_delete() - { - return confirm("Вы действительно хотите удалить список рассылки?"); - } - -> - - - - -
-
- Все листы рассылок: -   -
- - - Добавляйте и удаляйте списки рассыки с помощью данной формы. Вы можете редактировать список, кликнув по его названию. - Письмо в рассылку отправляется на адрес example@tpl_vars['domain']->value;?> -, где example – имя рассылки. - -
-
- - smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['lists']->value, 'list'); -if ($_from !== null) { -foreach ($_from as $_smarty_tpl->tpl_vars['list']->value) { -?> - - - - - - smarty->ext->_foreach->restore($_smarty_tpl, 1); -?> - -
- • - - tpl_vars['list']->value;?> - - - -
-
-
- -   - -
-
-
- - -_decodeProperties($_smarty_tpl, array ( - 'version' => '3.1.31', - 'unifunc' => 'content_5873c743903c86_86143891', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - '33a0e2a90d50b199feaa83030d7da2c9680cee0a' => - array ( - 0 => '/var/www/html/smarty/templates/edit_list.tpl', - 1 => 1483982647, - 2 => 'file', - ), - ), - 'includes' => - array ( - ), -),false)) { -function content_5873c743903c86_86143891 (Smarty_Internal_Template $_smarty_tpl) { -?> - - - -
-
- - Список подписчиков: -

- -

- - Тип рассылки: - -

- Подпись: -

- -

- Список модераторов: -

- -

- Префикс: - -

- -

-
- - -_decodeProperties($_smarty_tpl, array ( - 'version' => '3.1.31', - 'unifunc' => 'content_588e3ba3c46a98_78970628', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - '53d7e28d1426936f3a3d534fc6fbcdf5d2e8c239' => - array ( - 0 => '/var/www/html/misc/smarty/templates_ru/login.tpl', - 1 => 1485716381, - 2 => 'file', - ), - ), - 'includes' => - array ( - ), -),false)) { -function content_588e3ba3c46a98_78970628 (Smarty_Internal_Template $_smarty_tpl) { -?> - - - - -> - function validate_form() - { - var domain = document.getElementById('domain_input').value; - var password = document.getElementById('password_input').value; - - if (domain == "") - { - alert("Введите домен."); - return false; - } - - if (password == "") - { - alert("Введите пароль."); - return false; - } - if ( domain.match(/[^A-Za-z0-9\-\.]/) ) - { - alert("Домен может содержать только латинские буквы, цифры, точки и дефисы."); - return false; - } - if ( password.match(/[^A-Za-z0-9]/) ) - { - alert("Пароль может содержать только латинские буквы и цифры."); - return false; - } - } - -> - - - -
-
-
-
-
- Домен: -
-
- -
-
-
-
- Пароль: -
-
- -
-
-
- -
-
-
-
- - -_decodeProperties($_smarty_tpl, array ( - 'version' => '3.1.31', - 'unifunc' => 'content_5869ce142bdbc4_61874071', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - '569f7c9bad1e95dec6a51c7c51b98d4db367f54c' => - array ( - 0 => '/var/www/html/smarty/templates/index.tpl', - 1 => 1483329013, - 2 => 'file', - ), - ), - 'includes' => - array ( - ), -),false)) { -function content_5869ce142bdbc4_61874071 (Smarty_Internal_Template $_smarty_tpl) { -?> - - - -
-

Список рассылок:

- smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['lists']->value, 'list'); -if ($_from !== null) { -foreach ($_from as $_smarty_tpl->tpl_vars['list']->value) { -?> - tpl_vars['list']->value;?> - [Удалить]
- smarty->ext->_foreach->restore($_smarty_tpl, 1); -?> - -
-
- Имя рассылки: -
-
- - -_decodeProperties($_smarty_tpl, array ( - 'version' => '3.1.31', - 'unifunc' => 'content_5869d7d16e2888_57689057', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - '617b12a6bfb47e737ab55bf29207ecb92147b506' => - array ( - 0 => '/var/www/html/smarty/templates/login.tpl', - 1 => 1483329039, - 2 => 'file', - ), - ), - 'includes' => - array ( - ), -),false)) { -function content_5869d7d16e2888_57689057 (Smarty_Internal_Template $_smarty_tpl) { -?> - - - -
-
- Домен: -

- Пароль: -

- -

-
- - -_decodeProperties($_smarty_tpl, array ( - 'version' => '3.1.31', - 'unifunc' => 'content_5888e7322dafc3_21846058', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - '6820e2ed7eda3869d8307c28df0b8fa212af00dd' => - array ( - 0 => '/var/www/html/smarty/templates_ru/index.tpl', - 1 => 1485367020, - 2 => 'file', - ), - ), - 'includes' => - array ( - ), -),false)) { -function content_5888e7322dafc3_21846058 (Smarty_Internal_Template $_smarty_tpl) { -?> - - - - -> - function validate_form() - { - var name = document.getElementById('add_list_input').value; - var name = name.toLowerCase(); - - if (name == "") - { - return false; - } - - if (name.length > 30) - { - alert("Название списка рассылки должно содержать не более 30-ти символов."); - return false; - } - - if ( name.match(/[^a-z0-9_]/) ) - { - alert("Название списка рассылки может содержать только латинские буквы, цифры и символы нижнего подчёркивания."); - return false; - } - } - -> - - - - -
-
- Все листы рассылок: -   -
- - - Добавить новый лист рассылки можно введя его имя в поле ввода и нажав кнопку "Добавить". - Название может содержать до 30-ти латинских букв, цифр и символов нижнего подчёркивания. - Удаление листа рассылки производится с помощью пиктограммы в виде мусорной корзины. - Вы можете редактировать лист, кликнув по его названию. - -
-
- - smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['lists']->value, 'list'); -if ($_from !== null) { -foreach ($_from as $_smarty_tpl->tpl_vars['list']->value) { -?> - - - - - - smarty->ext->_foreach->restore($_smarty_tpl, 1); -?> - -
- • - - tpl_vars['list']->value;?> - - - -
-
-
- -   - -
-
-
- - -_decodeProperties($_smarty_tpl, array ( - 'version' => '3.1.31', - 'unifunc' => 'content_5890e7c59eb3e0_65385644', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - '6a01fa4a4840b59937570aeacc80d159739f4ab1' => - array ( - 0 => '/var/www/html/misc/smarty/templates_en/edit_list.tpl', - 1 => 1485891494, - 2 => 'file', - ), - ), - 'includes' => - array ( - ), -),false)) { -function content_5890e7c59eb3e0_65385644 (Smarty_Internal_Template $_smarty_tpl) { -?> - - - - -> - // Do not use Smarty here - function switch_moderators_form() - { - // Get a selected value - var select = document.getElementById("list_type"); - var selected_value = select.options[select.selectedIndex].value; - - // If selected conference list type, then disable moderators form - if (selected_value == "2") - { - document.getElementById("moderators").disabled = true; - document.getElementById("moderators_header").style.color = "#777777"; - } - else - { - document.getElementById("moderators").disabled = false; - document.getElementById("moderators_header").style.color = "#222222"; - } - } - - function validate_form() - { - var prefix = document.getElementById('prefix').value; - var footer = document.getElementById('footer').value; - var subscribers = document.getElementById('subscribers').value; - var moderators = document.getElementById('moderators').value; - - // Regex for a valid e-mail - var re_email = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; - - // Transform subscribers and moderators into array - subscribers = subscribers.split("\n"); - moderators = moderators.split("\n"); - - if (prefix.length > 128) - { - alert("A prefix length can not be longer than 128 characters."); - return false; - } - - if (footer.length > 1024) - { - alert("A footer length can not be longer than 1024 characters."); - return false; - } - - for(var i in subscribers) - { - if ( subscribers[i] != "" && !re_email.test(subscribers[i]) ) - { - alert('Subscriber "' + subscribers[i] + '" (line #' + (parseFloat(i)+1) + ') have incorrect email.'); - return false; - } - } - - for(var i in moderators) - { - if ( moderators[i] != "" && !re_email.test(moderators[i]) ) - { - alert('Moderator "' + moderators[i] + '" (line #' + (parseFloat(i)+1) + ') have incorrect email.'); - return false; - } - } - } - // - -> - - - - -
-
- -
-
- Subscribers:  -
- - - Please, provide one email per line. Do not forget add moderators if you - want them able to post into mailing list. - -
-
-
- -
-
-
-
-
- - - - - - - - - - - - - - - - -
-
-
- - - Moderated list: you assign subscribers and moderators. Messages will be - moderated before publishing.

- News list: everybody can subscribe without moderator confirmation by sending - an empty email to tpl_vars['list_name']->value;?> -+subscribe@tpl_vars['domain']->value;?> -. Messages into mailing list can - post only moderators.

- Conference: IRC channel analogue. You assign subscribers, every subscriber - can send messages without moderation. -
-
-  List type: -
-
- -
-
-
- - - Prefix added to the subject field of each message. - -
-  Prefix: -
-
- -" id="prefix"> -
- - - -
-
-
-
- - - Sender of a post will be excluded from the distribution list for - that post so people don't receive copies of their own posts. - -
- tpl_vars['notmetoo_checked']->value;?> -> - Do not send mails to yourself. -
-
-
-
-
- -
-
-
-
-
- Moderators:  -
- - - In case of moderated list messages before publishing will be send to these - emails. In case of news list only these emails can post to mailing list. - In case of conference there are no moderators. - -
-
-
- -
-
-
-
- - -_decodeProperties($_smarty_tpl, array ( - 'version' => '3.1.31', - 'unifunc' => 'content_5890eda331cf62_87676770', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - '74de2eb1870f65e47bdebde8c12ed050e90ded57' => - array ( - 0 => '/var/www/html/misc/smarty/templates_ru/index.tpl', - 1 => 1485892241, - 2 => 'file', - ), - ), - 'includes' => - array ( - ), -),false)) { -function content_5890eda331cf62_87676770 (Smarty_Internal_Template $_smarty_tpl) { -?> - - - - -> - function validate_form() - { - var name = document.getElementById('add_list_input').value; - var name = name.toLowerCase(); - - if (name == "") - { - return false; - } - - if (name.length > 30) - { - alert("Название списка рассылки должно содержать не более 30-ти символов."); - return false; - } - - if ( name.match(/[^a-z0-9_]/) ) - { - alert("Название списка рассылки может содержать только латинские буквы, цифры и символы нижнего подчёркивания."); - return false; - } - } - - function confirm_delete() - { - return confirm("Вы действительно хотите удалить список рассылки?"); - } - -> - - - - -
-
- Все листы рассылок: -   -
- - - Добавляйте и удаляйте списки рассылки с помощью данной формы. Вы можете редактировать список, кликнув по его названию. - Письмо в рассылку отправляется на адрес example@tpl_vars['domain']->value;?> -, где example – имя рассылки. - -
-
- - smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['lists']->value, 'list'); -if ($_from !== null) { -foreach ($_from as $_smarty_tpl->tpl_vars['list']->value) { -?> - - - - - - smarty->ext->_foreach->restore($_smarty_tpl, 1); -?> - -
- • - - tpl_vars['list']->value;?> - - - -
-
-
- -   - -
-
-
- - -_decodeProperties($_smarty_tpl, array ( - 'version' => '3.1.31', - 'unifunc' => 'content_589041dd3259d1_17665347', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - '9f1de615a6b90a928a6f77b08d01bdc17781ec0b' => - array ( - 0 => '/var/www/html/misc/smarty/templates_ru/edit_list.tpl', - 1 => 1485849048, - 2 => 'file', - ), - ), - 'includes' => - array ( - ), -),false)) { -function content_589041dd3259d1_17665347 (Smarty_Internal_Template $_smarty_tpl) { -?> - - - - -> - // Do not use Smarty here - function switch_moderators_form() - { - // Get a selected value - var select = document.getElementById("list_type"); - var selected_value = select.options[select.selectedIndex].value; - - // If selected conference list type, then disable moderators form - if (selected_value == "2") - { - document.getElementById("moderators").disabled = true; - document.getElementById("moderators_header").style.color = "#777777"; - } - else - { - document.getElementById("moderators").disabled = false; - document.getElementById("moderators_header").style.color = "#222222"; - } - } - - function validate_form() - { - var prefix = document.getElementById('prefix').value; - var footer = document.getElementById('footer').value; - var subscribers = document.getElementById('subscribers').value; - var moderators = document.getElementById('moderators').value; - - // Regex for a valid e-mail - var re_email = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; - - // Transform subscribers and moderators into array - subscribers = subscribers.split("\n"); - moderators = moderators.split("\n"); - - if (prefix.length > 128) - { - alert("Длина префикса не должна превышать 128-ми символов."); - return false; - } - - if (footer.length > 1024) - { - alert("Длина подписи не должна превышать 1024-ёх символов."); - return false; - } - - for(var i in subscribers) - { - if ( subscribers[i] != "" && !re_email.test(subscribers[i]) ) - { - alert('Подписчик "' + subscribers[i] + '" (строка №' + (parseFloat(i)+1) + ') является невалидным адресом электронной почты.'); - return false; - } - } - - for(var i in moderators) - { - if ( moderators[i] != "" && !re_email.test(moderators[i]) ) - { - alert('Модератор "' + moderators[i] + '" (строка №' + (parseFloat(i)+1) + ') является невалидным адресом электронной почты.'); - return false; - } - } - } - // - -> - - - - -
-
- -
-
- Список подписчиков:  -
- - - Добавляйте по одному почтовому адресу в каждой строке. Не забудьте добавить - модераторов, если хотите, чтобы они также могли писать в рассылку. - -
-
-
- -
-
-
-
-
- - - - - - - - - - - - - - - - -
-
-
- - - Модерируемая рассылка: подписчиков устанавливаете Вы, сообщения - от обычных участников проходят модерацию.

- Новостная рассылка: подписаться может кто угодно, отправив пустое письмо - на tpl_vars['list_name']->value;?> -+subscribe@tpl_vars['domain']->value;?> -, при этом подтверждение модератора не требуется. - Письма в рассылку могут отправлять только модераторы.

- Конференция: аналог канала в IRC. Подписчиков устанавливаете Вы, - сообщения может отправлять любой подписчик без модерации. -
-
-  Тип рассылки: -
-
- -
-
-
- - - Текст, добавляемый в начало заголовка каждого сообщения рассылки. - -
-  Префикс: -
-
- -" id="prefix"> -
- - - -
-
-
-
- - - Отправитель будет исключён из списка рассылки для своего сообщения. - Это означает, что ему не будут приходить копии своих сообщений. - -
- tpl_vars['notmetoo_checked']->value;?> -> - Не отправлять копию своих сообщений. -
-
-
-
-
- -
-
-
-
-
- Список модераторов:  -
- - - Для модерируемой рассылки на эти email будут отправляться письма перед их - опубликованием в рассылку. Для новостной рассылки только эти адреса могут - могут писать в рассылку. Для конференции модераторы не предумотрены. - -
-
-
- -
-
-
-
- - -_decodeProperties($_smarty_tpl, array ( - 'version' => '3.1.31', - 'unifunc' => 'content_588dcdb0c8d950_81798250', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - 'aa00a58a15f019bd5c0612378cd3ff5f5b6adcae' => - array ( - 0 => '/var/www/html/misc/smarty/templates_ru/error.tpl', - 1 => 1485688232, - 2 => 'file', - ), - ), - 'includes' => - array ( - ), -),false)) { -function content_588dcdb0c8d950_81798250 (Smarty_Internal_Template $_smarty_tpl) { -?> - - - - - - -
- tpl_vars['error_code']->value == 1) {?> - Домен может содержать только латинские буквы, точки, дефисы и цифры. - tpl_vars['error_code']->value == 2) {?> - Пароль может содержать только латинские буквы и цифры. - tpl_vars['error_code']->value == 3) {?> - Неверный пароль. - tpl_vars['error_code']->value == 4) {?> - Такой домен не зарегистрирован. - tpl_vars['error_code']->value == 5) {?> - Название рассылки может содержать только латинские буквы, цифры и символы нижнего подчёркивания. - tpl_vars['error_code']->value == 6) {?> - Длина названия рассылки не может превышать 30-ти символов. - tpl_vars['error_code']->value == 7) {?> - Длина префикса не может превышать 128-ти символов. - tpl_vars['error_code']->value == 8) {?> - Длина подписи не может превышать 1024-ти символов. - tpl_vars['error_code']->value == 9) {?> - Среди подписчиков есть некорректный e-mail. - tpl_vars['error_code']->value == 10) {?> - Среди модераторов есть некорректный e-mail. - - Неизвестная ошибка. - -
- - -_decodeProperties($_smarty_tpl, array ( - 'version' => '3.1.31', - 'unifunc' => 'content_58878934506f48_92126530', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - 'ccdf76791105fd7c77f366b69d3a18e59c5c2b67' => - array ( - 0 => '/var/www/html/smarty/templates_ru/login.tpl', - 1 => 1485277488, - 2 => 'file', - ), - ), - 'includes' => - array ( - ), -),false)) { -function content_58878934506f48_92126530 (Smarty_Internal_Template $_smarty_tpl) { -?> - - - - -> - function validate_form() - { - var domain = document.getElementById('domain_input').value; - var password = document.getElementById('password_input').value; - - if (domain == "") - { - alert("Введите домен."); - return false; - } - - if (password == "") - { - alert("Введите пароль."); - return false; - } - } - -> - - - -
-
-
-
-
- Домен: -
-
- -
-
-
-
- Пароль: -
-
- -
-
-
- -
-
-
-
- - -_decodeProperties($_smarty_tpl, array ( - 'version' => '3.1.31', - 'unifunc' => 'content_588b8aa37593d1_30807545', - 'has_nocache_code' => false, - 'file_dependency' => - array ( - 'fb61d69ef038dcd720aa2782f00f9ee0f411ff19' => - array ( - 0 => '/var/www/html/smarty/templates_ru/edit_list.tpl', - 1 => 1485537120, - 2 => 'file', - ), - ), - 'includes' => - array ( - ), -),false)) { -function content_588b8aa37593d1_30807545 (Smarty_Internal_Template $_smarty_tpl) { -?> - - - - -> - // Do not use Smarty here - function switch_moderators_form() - { - // Get a selected value - var select = document.getElementById("list_type"); - var selected_value = select.options[select.selectedIndex].value; - - // If selected conference list type, then disable moderators form - if (selected_value == "2") - { - document.getElementById("moderators").disabled = true; - document.getElementById("moderators_header").style.color = "#777777"; - } - else - { - document.getElementById("moderators").disabled = false; - document.getElementById("moderators_header").style.color = "#222222"; - } - } - - function validate_form() - { - var prefix = document.getElementById('prefix').value; - var footer = document.getElementById('footer').value; - var subscribers = document.getElementById('subscribers').value; - var moderators = document.getElementById('moderators').value; - - // Regex for a valid e-mail - var re_email = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; - - // Transform subscribers and moderators into array - subscribers = subscribers.split("\n"); - moderators = moderators.split("\n"); - - if (prefix.length > 128) - { - alert("Длина префикса не должна превышать 128-ми символов."); - return false; - } - - if (footer.length > 1024) - { - alert("Длина подписи не должна превышать 1024-ёх символов."); - return false; - } - - for(var i in subscribers) - { - if ( subscribers[i] != "" && !re_email.test(subscribers[i]) ) - { - alert('Подписчик "' + subscribers[i] + '" (строка №' + (parseFloat(i)+1) + ') является невалидным адресом электронной почты.'); - return false; - } - } - - for(var i in moderators) - { - if ( moderators[i] != "" && !re_email.test(moderators[i]) ) - { - alert('Модератор "' + moderators[i] + '" (строка №' + (parseFloat(i)+1) + ') является невалидным адресом электронной почты.'); - return false; - } - } - } - // - -> - - - - -
-
- -
-
- Список подписчиков:  -
- - - Добавляйте по одному почтовому адресу в каждой строке. Не забудьте добавить - модераторов, если хотите, чтобы они также могли писать в рассылку. - -
-
-
- -
-
-
-
-
- - - - - - - - - - - - - -
-
-
- - - Модерируемая рассылка: подписчиков устанавливаете Вы, сообщения - от обычных участников проходят модерацию.

- Новостная рассылка: подписаться может кто угодно, отправив пустое письмо - на tpl_vars['list_name']->value;?> -+subscribe@tpl_vars['domain']->value;?> -, при этом подтверждение модератора не требуется. - Письма в рассылку могут отправлять только модераторы.

- Конференция: аналог канала в IRC. Подписчиков устанавливаете Вы, - сообщения может отправлять любой подписчик без модерации. -
-
-  Тип рассылки: -
-
- -
-
-
- - - Текст, добавляемый в начало заголовка каждого сообщения рассылки. - -
-  Префикс: -
-
- -" id="prefix"> -
- - - -
-
-
- -
-
-
-
-
- Список модераторов:  -
- - - Для модерируемой рассылки на эти email будут отправляться письма перед их - опубликованием в рассылку. Для новостной рассылки только эти адреса могут - могут писать в рассылку. Для конференции модераторы не предумотрены. - -
-
-
- -
-
-
-
- - - - - - - - - - -
-
- -
-
- Subscribers:  -
- - - Please, provide one email per line. Do not forget add moderators if you - want them able to post into mailing list. - -
-
-
- -
-
-
-
-
- - - - - - - - - - - - - - - - -
-
-
- - - Moderated list: you assign subscribers and moderators. Messages will be - moderated before publishing.

- News list: everybody can subscribe without moderator confirmation by sending - an empty email to {$list_name}+subscribe@{$domain}. Messages into mailing list can - post only moderators.

- Conference: IRC channel analogue. You assign subscribers, every subscriber - can send messages without moderation. -
-
-  List type: -
-
- -
-
-
- - - Prefix added to the subject field of each message. - -
-  Prefix: -
-
- -
- - - -
-
-
-
- - - Sender of a post will be excluded from the distribution list for - that post so people don't receive copies of their own posts. - -
- - Do not send mails to yourself. -
-
-
-
-
- -
-
-
-
-
- Moderators:  -
- - - In case of moderated list messages before publishing will be send to these - emails. In case of news list only these emails can post to mailing list. - In case of conference there are no moderators. - -
-
-
- -
-
-
-
- - diff --git a/misc/smarty/templates_en/error.tpl b/misc/smarty/templates_en/error.tpl deleted file mode 100644 index bb7020a..0000000 --- a/misc/smarty/templates_en/error.tpl +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - -
- {if $error_code == 1} - Domain can contain only english letters, dots, hyphens and digits. - {elseif $error_code == 2} - Password can contain only english letters and digits. - {elseif $error_code == 3} - Incorrect password. - {elseif $error_code == 4} - There is no such domain. - {elseif $error_code == 5} - Mailing list name can contain only english letters, digits and undercores. - {elseif $error_code == 6} - The length of a list name can not exceed 30 characters. - {elseif $error_code == 7} - The length of a prefix can not exceed 128 characters. - {elseif $error_code == 8} - The length of a footer can not exceed 1024 characters. - {elseif $error_code == 9} - There is an incorrect email in the subscribers list. - {elseif $error_code == 10} - There is an incorrect email in the moderators list. - {else} - Unknown error. - {/if} -
- - diff --git a/misc/smarty/templates_en/index.tpl b/misc/smarty/templates_en/index.tpl deleted file mode 100644 index 9c6d841..0000000 --- a/misc/smarty/templates_en/index.tpl +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - -
-
- Mailing lists: -   -
- - - You can add and delete mailing lists on this page. To edit list click on its name. - To post message into mailing list send mail to example@{$domain}, where "example" is the list name. - -
-
- - {foreach $lists as $list} - - - - - - {/foreach} -
- • - - {$list} - - -
-
-
- -   - -
-
-
- - diff --git a/misc/smarty/templates_en/login.tpl b/misc/smarty/templates_en/login.tpl deleted file mode 100644 index f8acf70..0000000 --- a/misc/smarty/templates_en/login.tpl +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - -
-
-
-
-
- Domain: -
-
- -
-
-
-
- Password: -
-
- -
-
-
- -
-
-
-
- - diff --git a/misc/smarty/templates_ru/edit_list.tpl b/misc/smarty/templates_ru/edit_list.tpl deleted file mode 100644 index 9cd9ea7..0000000 --- a/misc/smarty/templates_ru/edit_list.tpl +++ /dev/null @@ -1,213 +0,0 @@ - - - - - - - - -
-
- -
-
- Список подписчиков:  -
- - - Добавляйте по одному почтовому адресу в каждой строке. Не забудьте добавить - модераторов, если хотите, чтобы они также могли писать в рассылку. - -
-
-
- -
-
-
-
-
- - - - - - - - - - - - - - - - -
-
-
- - - Модерируемая рассылка: подписчиков устанавливаете Вы, сообщения - от обычных участников проходят модерацию.

- Новостная рассылка: подписаться может кто угодно, отправив пустое письмо - на {$list_name}+subscribe@{$domain}, при этом подтверждение модератора не требуется. - Письма в рассылку могут отправлять только модераторы.

- Конференция: аналог канала в IRC. Подписчиков устанавливаете Вы, - сообщения может отправлять любой подписчик без модерации. -
-
-  Тип рассылки: -
-
- -
-
-
- - - Текст, добавляемый в начало заголовка каждого сообщения рассылки. - -
-  Префикс: -
-
- -
- - - -
-
-
-
- - - Отправитель будет исключён из списка рассылки для своего сообщения. - Это означает, что ему не будут приходить копии своих сообщений. - -
- - Не отправлять копию своих сообщений. -
-
-
-
-
- -
-
-
-
-
- Список модераторов:  -
- - - Для модерируемой рассылки на эти email будут отправляться письма перед их - опубликованием в рассылку. Для новостной рассылки только эти адреса могут - могут писать в рассылку. Для конференции модераторы не предумотрены. - -
-
-
- -
-
-
-
- - diff --git a/misc/smarty/templates_ru/error.tpl b/misc/smarty/templates_ru/error.tpl deleted file mode 100644 index a9b3bb2..0000000 --- a/misc/smarty/templates_ru/error.tpl +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - -
- {if $error_code == 1} - Домен может содержать только латинские буквы, точки, дефисы и цифры. - {elseif $error_code == 2} - Пароль может содержать только латинские буквы и цифры. - {elseif $error_code == 3} - Неверный пароль. - {elseif $error_code == 4} - Такой домен не зарегистрирован. - {elseif $error_code == 5} - Название рассылки может содержать только латинские буквы, цифры и символы нижнего подчёркивания. - {elseif $error_code == 6} - Длина названия рассылки не может превышать 30-ти символов. - {elseif $error_code == 7} - Длина префикса не может превышать 128-ти символов. - {elseif $error_code == 8} - Длина подписи не может превышать 1024-ти символов. - {elseif $error_code == 9} - Среди подписчиков есть некорректный e-mail. - {elseif $error_code == 10} - Среди модераторов есть некорректный e-mail. - {else} - Неизвестная ошибка. - {/if} -
- - diff --git a/misc/smarty/templates_ru/index.tpl b/misc/smarty/templates_ru/index.tpl deleted file mode 100644 index ce4cd01..0000000 --- a/misc/smarty/templates_ru/index.tpl +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - -
-
- Все листы рассылок: -   -
- - - Добавляйте и удаляйте списки рассылки с помощью данной формы. Вы можете редактировать список, кликнув по его названию. - Письмо в рассылку отправляется на адрес example@{$domain}, где example – имя рассылки. - -
-
- - {foreach $lists as $list} - - - - - - {/foreach} -
- • - - {$list} - - -
-
-
- -   - -
-
-
- - diff --git a/misc/smarty/templates_ru/login.tpl b/misc/smarty/templates_ru/login.tpl deleted file mode 100644 index b2c9613..0000000 --- a/misc/smarty/templates_ru/login.tpl +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - -
-
-
-
-
- Домен: -
-
- -
-
-
-
- Пароль: -
-
- -
-
-
- -
-
-
-
- -