diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-02-05 10:02:24 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-02-05 20:10:15 -0200 |
commit | 07cf2c4b20230ddedee1bf9dddc1e7cd407385f5 (patch) | |
tree | 44d40561519e0018ad586bb1449e107c9ae431f3 /config/sm.php | |
parent | e526e4aa28867b7743b0e76993f5f6bebd15bc1b (diff) | |
download | pfsense-packages-07cf2c4b20230ddedee1bf9dddc1e7cd407385f5.tar.gz pfsense-packages-07cf2c4b20230ddedee1bf9dddc1e7cd407385f5.tar.bz2 pfsense-packages-07cf2c4b20230ddedee1bf9dddc1e7cd407385f5.zip |
Packages repo cleanup:
- Drop support for pfSense < 2
- Remove archive/, old files can be reached using git
- Remove old and unused packages
- Move stale files from config subdir to a package subdir
Diffstat (limited to 'config/sm.php')
-rw-r--r-- | config/sm.php | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/config/sm.php b/config/sm.php deleted file mode 100644 index 2e1cc4a0..00000000 --- a/config/sm.php +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/local/bin/php -q -<?php -require_once("config.inc"); -require_once("globals.inc"); -require_once("notices.inc"); - -$pf_version=substr(trim(file_get_contents("/etc/version")),0,3); -if (($pf_version < 2.1)) { - $error = "Sending e-mail on this version of pfSense is not supported. Please use pfSense 2.1 or later"; - log_error($error); - echo "{$error}\n"; - return; -} - -$options = getopt("s::"); - -$message = ""; - -if($options['s'] <> "") { - $subject = $options['s']; -} - - -$in = file("php://stdin"); -foreach($in as $line){ - $line = trim($line); - if ( (substr($line, 0, 6) == "From: ") - || (substr($line, 0, 6) == "Date: ") - || (substr($line, 0, 4) == "To: ")) - continue; - if (empty($subject) && (substr($line, 0, 9) == "Subject: ")) { - $subject = substr($line, 9); - continue; - } - $message .= "$line\n"; -} - -if (!empty($subject)) - send_smtp_message($message, $subject); -else - send_smtp_message($message); -?>
\ No newline at end of file |