<?php require_once __DIR__ . '/../../core/core.php'; Req('class/current_queues.class.php', __DIR__); $CQ = new CurrentQueues($CFG->DB); echo Debug(@$CQ->DB_Update);
<?php define('output', 'html'); require_once __DIR__ . '/../../core/core.php'; Req('queue_filler/class/queue_filler.class.php', APPS); www::ScriptHead('PMTA Configuration Builder'); $QF = new queue_filler($CFG->DB, $argv);
<?php require_once __DIR__ . '/../../core/core.php'; Req('incoming_emails/class/incoming_emails.class.php', APPS); $IE = new incoming_emails($CFG); $EM = file_get_contents('php://stdin'); $IE->ReadEmail($EM); $IE->DB_Insert(); file_put_contents(LOGS . 'apps/incoming_emails/last.log', Debug($IE));
<?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);
/** * Dependancies * ------------------------- **/ public function Dependancies() { foreach (['db', 'form', 'sms', 'table'] as $d) { $D[] = $d . '.class.php'; } $_ = Req($D, DIR . 'core/class/'); if (!is_numeric($_) || empty($_)) { echo $_; return false; } return true; }
<?php require_once __DIR__ . '/../../core/core.php'; Req('job_writer/class/job_writer.class.php', APPS); $JW = new job_writer($CFG);
<?php require_once __DIR__ . '/../../core/core.php'; Req('config_writer/class/config_writer.class.php', APPS); $CONFIG = new config_writer($CFG->DB, $argv); $CONFIG = implode(LF, $CONFIG->Conf); file_put_contents(DATA . 'config', $CONFIG); exec('cp -f ' . DATA . 'config ' . DIR . '../'); exec('/usr/sbin/pmta reload >dev/null &');
<?php # Configuration Settings #--------------------------------------------------- $SVR = 'sd2'; // force a hostname if running locally $_ = stristr(gethostname(), 'sd') ? [] : ['host' => $SVR]; $_['debug'] = false; $_['user'] = '******'; $_['pass'] = '******'; $_['domain'] = '207.158.26.21'; $_['wwwPort'] = 2186; $_['mtaPort'] = 8080; # Php.ini - more in /core/conf/ini.php #--------------------------------------------------- $I['display_errors'] = 1; $I['date.timezone'] = 'America/Los_Angeles'; # Database Connections #--------------------------------------------------- $H['LOGS'] = ['public' => '207.158.26.6', 'private' => '192.168.15.130', 'port' => 3307]; $H['MUP'] = ['public' => '207.158.26.15', 'private' => '192.168.15.200', 'port' => 3306]; $H['REDIRECT'] = ['public' => '207.158.26.14', 'private' => '192.168.15.150', 'port' => 3306]; $H['EMAILS'] = ['public' => '207.158.26.21', 'private' => '192.168.15.110', 'port' => 3306]; # DO NOT EDIT BELOW HERE #--------------------------------------------------- $_['hosts'] = $H; $_['ini'] = $I; Req('conf.php', CONF);
<?php define('output', 'html'); require_once __DIR__ . '/../../core/core.php'; Req('class/logger.class.php', __DIR__); $LOG = new logger($CFG); echo www::ScriptHead('PMTA Accounting Logger'); echo www::Alt(Debug($LOG));
<?php require_once __DIR__ . '/../../core/core.php'; Req('logger/class/logger.class.php', APPS); $LOG = new logger($CFG); while ($DATA = fgetcsv(STDIN)) { $LOG->ReadLog($DATA); } $LOG->DB_Insert();
<?php define('output', 'html'); require_once __DIR__ . '/../../core/core.php'; Req('class/telnet_tester.class.php', __DIR__); echo www::ScriptHead('Telnet Tester'); if (!isset($_POST['ip'])) { $F = new FORMS('TelNetTest', 'Telnet Email Testing', false, 500); $F->Text('ip', ['IP Address' => false], false); $F->Text('ehlo', ['EHLO' => false], false); $F->Text('mailfrom', ['Mail From' => false], false); $F->Text('to', ['To' => false], false); $F->Text('from', ['From' => false], false); $F->Text('subject', ['Subject Line' => false], false); $F->write('<b style="padding:25px 0px 0px;">Additional Headers</b>'); $F->Textarea('headers', false, false, 460, 100); $F->write('<b style="padding:25px 0px 0px;">Body</b>'); $F->Textarea('body', false, false, 460, 250); $F->Button('TelNetTest', 'send test'); $F->JS("\$('button#TelNetTest').click(function(){\n var ip = \$('#ip').val();\n var ehlo = \$('#ehlo').val();\n var from = \$('#from').val();\n var to = \$('#to').val();\n var mailfrom = \$('#mailfrom').val();\n var headers = \$('#headers').val();\n var subject = \$('#subject').val();\n var body = \$('#body').val();\n \$('td#results').html('<h3>Working... Please Wait...</h3>');\n \$.post(window.location.href,{ip:ip,ehlo:ehlo,from:from,to:to,mailfrom:mailfrom,headers:headers,body:body,subject:subject},function(data){\n \$('td#results').html(data);\n });\n });"); $F = $F->PrintForm(); echo www::Alt("\n <table>\n <tr>\n <td>" . $F . "</td>\n <td id=\"results\"></td>\n\t </tr>\n </table>"); } else { $TNT = new TelNetTest($_POST); $TNT->SendMail(); }
<?php define('output', 'html'); require_once __DIR__ . '/../../core/core.php'; Req('adknowledge_injector/class/adknowledge_injector.class.php', APPS); echo www::ScriptHead('Adknowledge Injector'); $INJECT = new adknowledge_injector($CFG->DB); echo "<pre>"; print_r($INJECT); echo "</pre>";
<?php define('output', 'html'); require_once __DIR__ . '/../../core/core.php'; Req('class/job_writer.class.php', __DIR__); $JW = new job_writer($CFG); echo www::ScriptHead('Job Writer'); echo www::Alt(implode('', $JW->ALERTS)); echo www::Alt(Debug($JW));
$_D[] = LOGS . 'pmta/acct/'; $_D[] = LOGS . 'pmta/trans/'; $_D[] = LOGS . 'apps/'; $D = empty($D) ? $_D : [$D]; if (!empty($D)) { foreach ($D as $d) { if (!file_exists($d)) { mkdir($d); } } } } /** * LineBreak * ------------------------- **/ function LineBreak($string) { if (!is_string($string)) { return $string; } $string = explode("\n", str_ireplace("\r", '', $string)); return $string; } // Run some startup script stuff SetDIR(); SetErrorHandler(); CheckDirs(); Req('class/www.class.php', CORE); include CONF . 'settings.php'; $CFG = new CFG($_);