remove debug information

This commit is contained in:
Hendrik Grewe 2014-12-19 13:58:06 +01:00
parent a1a4c1ec7f
commit 8d1bda2304

View file

@ -95,9 +95,7 @@ function write_pass_hash_to_db($pass_hash, $uid){
*/
function writeLog($text){
if(defined('WRITE_LOG') && defined('WRITE_LOG_PATH')){
echo WRITE_LOG_PATH;
$logdestination = realpath(WRITE_LOG_PATH).DIRECTORY_SEPARATOR."log";
echo $logdestination;
if(is_writable(WRITE_LOG_PATH)){
$logfile = fopen($logdestination, "a") or die("Unable to create or open logfile \"$logdestination\" in root directory!");
fwrite($logfile, $text."\n");