summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Burschka2014-01-16 18:19:28 +0100
committerChristoph Burschka2014-01-16 18:19:28 +0100
commitb89151dbd13029255e52c97363c7e5b6ae7e127b (patch)
treea3213d446a51ac44c6d3ba732b9632e2d4adde0c
parentFinished session auth framework for now. (fixes #1) (diff)
downloadejabberd-auth-php-b89151dbd13029255e52c97363c7e5b6ae7e127b.tar.gz
Use STDERR in main.php
-rwxr-xr-xmain.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/main.php b/main.php
index 5d6c9dd..f9c5b83 100755
--- a/main.php
+++ b/main.php
@@ -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
+}