diff --git a/retwis.php b/retwis.php index 3ae3fd2..b159712 100644 --- a/retwis.php +++ b/retwis.php @@ -1,6 +1,14 @@ getMessage(); + trigger_error($msg,E_USER_ERROR); +} + +set_exception_handler('exception_handler'); function getrand() { $fd = fopen("/dev/urandom","r"); @@ -37,9 +45,10 @@ function loadUserInfo($userid) { function redisLink() { static $r = false; + global $redis_options; if ($r) return $r; - $r = new Predis\Client(); + $r = new Predis\Client($redis_options); return $r; }