aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/migration/data/310/crypto.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-11-27 00:12:59 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-11-27 00:12:59 +0100
commit5e36dd3d0bcc046437ca8ecd0ae144fc33d799a2 (patch)
treecc8a472ff89595f93b8efc609d0e286352f09973 /phpBB/phpbb/db/migration/data/310/crypto.php
parent0f46d35f7548c76f352b55855225a343238809e8 (diff)
downloadforums-5e36dd3d0bcc046437ca8ecd0ae144fc33d799a2.tar
forums-5e36dd3d0bcc046437ca8ecd0ae144fc33d799a2.tar.gz
forums-5e36dd3d0bcc046437ca8ecd0ae144fc33d799a2.tar.bz2
forums-5e36dd3d0bcc046437ca8ecd0ae144fc33d799a2.tar.xz
forums-5e36dd3d0bcc046437ca8ecd0ae144fc33d799a2.zip
[ticket/9590] Correctly update submit size and replace all forum_id[]
PHPBB3-9590
Diffstat (limited to 'phpBB/phpbb/db/migration/data/310/crypto.php')
0 files changed, 0 insertions, 0 deletions
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;