<?php // +---------------------------------------------------------------------- // | Demila [ Beautiful Digital Content Trading System ] // +---------------------------------------------------------------------- // | Copyright (c) 2015 http://demila.org All rights reserved. // +---------------------------------------------------------------------- // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) // +---------------------------------------------------------------------- // | Email author@demila.org // +---------------------------------------------------------------------- _setView(__FILE__); _setTitle($langArray['list']); $cms = new system(); $data = $cms->getAll(0, 0, 'config'); $tmp = array(); foreach ($data as $key => $value) { $value['help'] = isset($langArray[$value['key'] . '_help']) ? $langArray[$value['key'] . '_help'] : false; $tmp[$key] = $value; } abr('data', $tmp); require_once ROOT_PATH . '/apps/lists/leftlist_admin.php';
//abr('recaptcha', recaptcha_get_html($config['recaptcha_public_key'])); //判断用户名是否存在 if (isset($_POST["username"]) && $_POST["action"] == "check") { $usersClass = new users(); $result = $usersClass->isExistUsername($_POST["username"]); if ($result) { die('1'); } else { die('0'); } } #用户注册操作 if (isset($_POST['add'])) { require_once ROOT_PATH . '/apps/system/models/system.class.php'; $cms = new system(); $data = $cms->getAll(0, 0, null, "send_mail"); if ($data[0]["value"] == 0) { $_POST['status'] = 'activate'; } $usersClass = new users(); $s = $usersClass->add(); if ($s === true) { if ($data[0]["value"] == 0) { refresh('/' . $languageURL . 'sign_in/'); } refresh('/' . $languageURL . 'sign_up/verify/'); } else { $message = '<ul>'; foreach ($s as $e) { $message .= '<li>' . $e . '</li>'; }
<?php // +---------------------------------------------------------------------- // | Demila [ Beautiful Digital Content Trading System ] // +---------------------------------------------------------------------- // | Copyright (c) 2015 http://demila.org All rights reserved. // +---------------------------------------------------------------------- // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) // +---------------------------------------------------------------------- // | Email author@demila.org // +---------------------------------------------------------------------- _setView(__FILE__); _setTitle("SMTP"); $system = new system(); $data = $system->getAll(0, 0, 'mailconf'); $arr = array(); foreach ($data as $a) { $arr[$a["key"]] = $a["value"]; } abr('data', $arr); if (isset($_POST["edit"])) { if ($system->smtp_edit($_POST)) { refresh("?m=" . $_GET['m'] . "&c=smtpset", $langArray['edit_complete']); } } require_once ROOT_PATH . '/apps/lists/leftlist_admin.php';