diff options
author | Christoph Burschka | 2014-01-16 18:19:28 +0100 |
---|---|---|
committer | Christoph Burschka | 2014-01-16 18:19:28 +0100 |
commit | b89151dbd13029255e52c97363c7e5b6ae7e127b (patch) | |
tree | a3213d446a51ac44c6d3ba732b9632e2d4adde0c | |
parent | Finished session auth framework for now. (fixes #1) (diff) | |
download | ejabberd-auth-php-b89151dbd13029255e52c97363c7e5b6ae7e127b.tar.gz |
Use STDERR in main.php
-rwxr-xr-x | main.php | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -9,7 +9,6 @@ main(); function main() { require_once ROOT . 'config.php'; - $err = fopen('php://stderr', 'w'); if (!empty($config['plugin']) && !empty($config[$config['plugin']])) { $plugin_file = 'plugins/' . $config['plugin'] . '/' . $config['plugin'] . '.module'; if (file_exists(ROOT . $plugin_file)) { @@ -19,10 +18,10 @@ function main() { $auth->run(); } else { - fwrite($err, "Plugin <{$plugin_file}> not found.\n"); + fwrite(STDERR, "Plugin <{$plugin_file}> not found.\n"); } } else { - fwrite($err, 'Incomplete configuration: $config[\'plugin\'] must be set to <name>, and $config[<name>] populated.' . "\n"); + fwrite(STDERR, 'Incomplete configuration: $config[\'plugin\'] must be set to <name>, and $config[<name>] populated.' . "\n"); } -}
\ No newline at end of file +} |