Пример #1
0
<?php

/// Copyright (c) 2004-2016, Needlworks  / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
$IV = array('POST' => array('email' => array('email'), 'name' => array('string', 'default' => ''), 'comment' => array('string', 'default' => ''), 'senderName' => array('string', 'default' => ''), 'senderEmail' => array('email')));
require ROOT . '/library/preprocessor.php';
requireStrictRoute();
if (!acl::check('group.owners')) {
    Respond::ResultPage(false);
}
$result = Blog::addUser($_POST['email'], $_POST['name'], $_POST['comment'], $_POST['senderName'], $_POST['senderEmail']);
Respond::ResultPage($result);
Пример #2
0
<?php

/// Copyright (c) 2004-2016, Needlworks  / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
$IV = array('POST' => array('useCustomSMTP' => array('bool', 'mandatory' => false), 'smtpHost' => array('ip'), 'smtpPort' => array('number', 'min' => '1', 'max' => '65535')));
require ROOT . '/library/preprocessor.php';
requireStrictRoute();
if (!acl::check('group.creators')) {
    Respond::ResultPage(false);
}
$result = setSmtpServer(empty($_POST['useCustomSMTP']) ? 0 : 1, $_POST['smtpHost'], $_POST['smtpPort']);
Respond::ResultPage($result);