mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
notify option ssupport
This commit is contained in:
parent
027290225b
commit
07b93358e8
1 changed files with 6 additions and 1 deletions
|
@ -2,14 +2,19 @@
|
||||||
<?php
|
<?php
|
||||||
error_reporting(NULL);
|
error_reporting(NULL);
|
||||||
if (empty($argv[1])) {
|
if (empty($argv[1])) {
|
||||||
echo "Error: not enough arguments\n";
|
echo "ERROR: not enough arguments\n";
|
||||||
|
echo "USAGE: mail-wrapper.php -s SUBJECT EMAIL [NOTIFY]\n";
|
||||||
exit(3);
|
exit(3);
|
||||||
}
|
}
|
||||||
|
|
||||||
$options = getopt("s:f:");
|
$options = getopt("s:f:");
|
||||||
|
|
||||||
|
if ((!empty($argv[4])) && ($argv[4] == 'no')) {
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
define('NO_AUTH_REQUIRED',true);
|
define('NO_AUTH_REQUIRED',true);
|
||||||
|
|
||||||
include("/usr/local/vesta/web/inc/main.php");
|
include("/usr/local/vesta/web/inc/main.php");
|
||||||
|
|
||||||
// Set system language
|
// Set system language
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue