diff options
Diffstat (limited to 'http/php/config.php')
| -rw-r--r-- | http/php/config.php | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/http/php/config.php b/http/php/config.php deleted file mode 100644 index cfe91d3..0000000 --- a/http/php/config.php +++ /dev/null @@ -1,62 +0,0 @@ -<?php namespace JoeacNet\Http\Config; - -define("CONFIG", parse_ini_file(dirname(__FILE__, 2) . "/config.ini")); - -function maxDailyEmails(): int|null -{ - $maxDailyEmails = CONFIG["MAX_DAILY_EMAILS"]; - if (!is_numeric($maxDailyEmails)) { - return null; - } - return $maxDailyEmails; -} - -function contactMailbox(): string|null -{ - return (string) CONFIG["CONTACT_MAILBOX"]; -} - -function contactMailboxName(): string|null -{ - return (string) CONFIG["CONTACT_MAILBOX_NAME"]; -} - -function localSmtpFrom(): string|null -{ - return (string) CONFIG["LOCAL_SMTP_FROM"]; -} - -function localSmtpFromName(): string|null -{ - return (string) CONFIG["LOCAL_SMTP_FROM_NAME"]; -} - -function localSmtpHost(): string|null -{ - return (string) CONFIG["LOCAL_SMTP_HOST"]; -} - -function localSmtpPort(): string|null -{ - return (string) CONFIG["LOCAL_SMTP_PORT"]; -} - -function localSmtpUser(): string|null -{ - return (string) CONFIG["LOCAL_SMTP_USER"]; -} - -function localSmtpPass(): string|null -{ - return (string) CONFIG["LOCAL_SMTP_PASSWORD"]; -} - -function dbScheme(): string|null -{ - return (string) CONFIG["DB_SCHEME"]; -} - -function dbPath(): string|null -{ - return (string) CONFIG["DB_PATH"]; -} |
