示例#1
0
文件: index.php 项目: ntuttle/MuPmta
<?php

define('output', 'html');
require_once __DIR__ . '/../../core/core.php';
Req('server_stats/class/server_stats.class.php', APPS);
echo www::ScriptHead('Server Stats');
echo www::Btns(['Clear Logs', 'Pause Traffic']);
$_ = new STATS($CFG->DB);
示例#2
0
文件: index.php 项目: ntuttle/MuPmta
<?php

define('output', 'html');
require_once __DIR__ . '/../../core/core.php';
Req('config_writer/class/config_writer.class.php', APPS);
echo www::ScriptHead('PMTA Configuration Builder');
$CONFIG = new config_writer($CFG->DB);
$CONFIG = implode(LF, $CONFIG->Conf);
echo www::Btns(['Save', 'Edit', 'Upload']);
echo www::Alt(htmlspecialchars($CONFIG));
file_put_contents(DATA . 'config', $CONFIG);
exec('cp -f ' . DATA . 'config ' . DIR . '../');