-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathqueue.php
More file actions
28 lines (20 loc) · 738 Bytes
/
queue.php
File metadata and controls
28 lines (20 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
// BEGIN CLI KEEPOUT CHECKING
if (isset ($_SERVER['REMOTE_ADDR'])) {
// Add these lines to the very top of any file you don't want people to
// be able to access directly.
header ('HTTP/1.1 404 Not Found');
echo "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n"
. "<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n"
. "The requested URL " . $PHP_SELF . " was not found on this server.<p>\n<hr>\n"
. $_SERVER['SERVER_SIGNATURE'] . "</body></html>";
exit;
}
// END CLI KEEPOUT CHECKING
set_time_limit (0);
$settings = parse_ini_file ('settings.php');
require_once ('lib/functions.php');
$pm = new PubMail ($settings);
$pm->run_queue ();
exit;
?>