aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/language/de_x_sie
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-06-25 15:12:32 +0200
committerMarc Alexander <admin@m-a-styles.de>2017-06-25 15:12:32 +0200
commit8938a0ce98c5f490abdd6c4149055c2f214ad04c (patch)
tree8d39f94c614bf4028a1df6a3e5bf2731998e3a35 /phpBB/language/de_x_sie
parent689ebd3bb64ad76652dc9b97ee4761356faa0a32 (diff)
parentca5243810f313c5438e2c778cdaecfbcb375e8eb (diff)
downloadforums-8938a0ce98c5f490abdd6c4149055c2f214ad04c.tar
forums-8938a0ce98c5f490abdd6c4149055c2f214ad04c.tar.gz
forums-8938a0ce98c5f490abdd6c4149055c2f214ad04c.tar.bz2
forums-8938a0ce98c5f490abdd6c4149055c2f214ad04c.tar.xz
forums-8938a0ce98c5f490abdd6c4149055c2f214ad04c.zip
Merge pull request #4852 from javiexin/ticket/15248
[ticket/15248] Make use of event parameters of core.modify_posting_auth
Diffstat (limited to 'phpBB/language/de_x_sie')
0 files changed, 0 insertions, 0 deletions
id='n35' href='#n35'>35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
package log; # $Id$

use diagnostics;
use strict;

use c;

my ($LOG, $LOG2);


sub l {
    if ($::testing) {
	print STDERR @_, "\n";
    } elsif ($::isInstall) {
	if (!$LOG) {
	    open $LOG, '>>', '/tmp/ddebug.log';
	    open $LOG2, '>', '/dev/tty3' if !$::local_install;
	    select((select($LOG),  $| = 1)[0]);
	    select((select($LOG2), $| = 1)[0]) if !$::local_install;
	}
	print $LOG "* ", @_, "\n";
	print $LOG2 "* ", @_, "\n" if $LOG2;
    } elsif ($::isStandalone) {
	#- openlog was done in standalone.pm

	c::syslog(c::LOG_WARNING(), join("", @_));
    } else {
	print STDERR @_, "\n";
    }
}

sub openLog {
    my ($file) = @_;
    open $LOG, "> $file";
    select((select($LOG),  $| = 1)[0]);
}

sub closeLog() { 
    if ($LOG) { 
	close $LOG; 
	close $LOG2 if $LOG2;
    } elsif ($::isStandalone) {
	c::closelog();
    }
}

sub explanations {
    if ($::isStandalone) {
        c::syslog(c::LOG_INFO()|c::LOG_LOCAL1(), "@_");
    } else {
        l(@_);
    }
}

1;