示例#1
0
文件: send.php 项目: seifsg/eums
<?php

/*********************************************
 * 	Bulk Mailer Script by Seif Sgayer		 *
 * 09/08/2014 seifeddine@sghaier.me          *
 * *******************************************/
// ************ calling required files ************
//require('login.php?checking=true');
require_once 'globals.php';
// ************ Setting global variables **********
$page_title = 'Bulk Mailer sending';
// ************ Including Templates **********
//include_once(TD.'header.php');
// ************ Processing  **********
$SMAIL = new SMAIL();
$SMAIL->log('starting the sending process now.', 0);
$servers = $SMAIL->get_servers();
// Gather the servers first
// Check if an hour passed and reset the remaining
$arr = array();
foreach ($servers as $server) {
    $SMAIL->check_if_an_hour_passed($server);
}
$servers = $SMAIL->get_servers();
// Gather the servers after the check_if_an_hour_passed
$servers = array_filter($servers, function ($v) {
    return $v['remaining'] !== '0';
});
sort($servers);
if (!empty($servers)) {
    $servers_count = count($servers);
示例#2
0
文件: manage.php 项目: seifsg/eums
<?php

/*********************************************
 * 	Bulk Mailer Script by Seif Sgayer		 *
 * 09/08/2014 seifeddine@sghaier.me          *
 * *******************************************/
// ************ calling required files ************
//require('login.php?checking=true');
require_once 'globals.php';
// ************ Setting global variables **********
$page_title = 'Bulk Mailer Manager';
// ************ Including Templates **********
include_once TD . 'header.php';
// ************	The listing form 	**********
$emails_in = new SMAIL();
$emails = $emails_in->list_emails();
$emails_count = count($emails);
$showall = isset($_GET['showall']) ? '1' : '0';
$s = isset($_GET['s']) ? $_GET['s'] : '0';
$e = isset($_GET['e']) ? $_GET['e'] : '25';
if ($e == 0) {
    $e = 25;
}
if ($showall) {
    $e = 0;
    $s = 0;
}
// ************ Rendering the Email manager **********
?>
<div class="jumbotron cc">
    <div class="page-header">
示例#3
0
文件: settings.php 项目: seifsg/eums
<?php

/*********************************************
 * 	Bulk Mailer Script by Seif Sgayer		 *
 * 09/08/2014 seifeddine@sghaier.me          *
 * *******************************************/
// ************ calling required files ************
//require('login.php?checking=true');
require_once 'globals.php';
// ************ Setting global variables **********
$page_title = 'Bulk Mailer Settings';
// ************ Including Templates **********
include_once TD . 'header.php';
// ************ Processing Form **********
$em = new SMAIL();
if (isset($_POST['email_title'])) {
    $R = $em->update_email($_POST['email_title'], $_POST['email_body_html'], $_POST['email_body_text']);
} else {
    $R = 'null';
}
$email_info = $em->get_email();
$email_title = $email_info[1];
$email_body_html = $email_info[2];
$email_body_text = $email_info[3];
// ************ Rendering the Email manager **********
?>
<div class="jumbotron cc">
    <div class="page-header">
		<h2>Settings</h2>
	</div>
    <p><a href="servers.php" >Manage Servers</a></p>
示例#4
0
文件: servers.php 项目: seifsg/eums
<?php

/*********************************************
 * 	Bulk Mailer Script by Seif Sgayer		 *
 * 09/08/2014 seifeddine@sghaier.me          *
 * *******************************************/
// ************ calling required files ************
//require('login.php?checking=true');
require_once 'globals.php';
// ************ Setting global variables **********
$page_title = 'Bulk Mailer Servers Manager';
// ************	The form 	**********
$SMAIL = new SMAIL();
if (isset($_POST['new_server'])) {
    $SMAIL->add_server($_POST['name'], $_POST['host'], $_POST['username'], $_POST['password'], $_POST['encryption'], $_POST['port'], $_POST['hourly']);
}
$servers = $SMAIL->get_servers();
/*print_r($servers);
exit();*/
// ************ Including Templates **********
include_once TD . 'header.php';
// ************ Rendering the Email manager **********
?>
<div class="jumbotron cc">
    <div class="page-header">
		<h2>Servers Manager</h2>
	</div>
    	<div class="row">
        <div class="col-md-6">
          <table class="table table-striped">
            <thead>
示例#5
0
/*********************************************
 * 	Bulk Mailer Script by Seif Sgayer		 *
 * 09/08/2014 seifeddine@sghaier.me          *
 * *******************************************/
// ************ calling required files ************
//require('login.php?checking=true');
require_once 'globals.php';
// ************ Setting global variables **********
$page_title = 'Bulk Mailer Add Emails';
// ************ Including Templates **********
include_once TD . 'header.php';
// ************ Processing Form **********
if (isset($_POST['emails'])) {
    $emails = $_POST['emails'];
    if (!empty($emails)) {
        $em = new SMAIL();
        $R = $em->add_emails($emails);
    }
}
// ************ Rendering the Email manager **********
?>
<div class="jumbotron cc">
    <div class="page-header">
		<h2>Add Emails</h2>
	</div><?php 
if (!empty($R[2])) {
    ?>
    <div class="alert alert-success">
        <?php 
    echo " {$R['2']} emails added successfully !";
    ?>
示例#6
0
文件: process.php 项目: seifsg/eums
<?php

/*********************************************
 * 	Bulk Mailer Script by Seif Sgayer		 *
 * 09/08/2014 seifeddine@sghaier.me          *
 * *******************************************/
// ************ calling required files ************
//require('login.php?checking=true');
require_once 'globals.php';
// ************ Setting global variables **********
$page_title = 'Bulk Mailer Process';
$SMAIL = new SMAIL();
// ************ Including Templates **********
//print_r($_POST);exit();
include_once TD . 'header.php';
// ************ Deleting Emails **********
if (isset($_POST['delete'])) {
    foreach ($_POST['checkz'] as $id) {
        $SMAIL->delete_email($id);
    }
    ?>
	<div class="jumbotron cc">
        <div class="page-header">
            <h2>Deleting Emails</h2>
        </div>
        <p><?php 
    echo count($_POST['checkz']);
    ?>
 Emails deleted. Redirecting you to the manager...</p>
            <script>setTimeout(function(){ window.location.replace('manage.php'); },1000);</script>
    </div>