aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/console_migrator_output_handler.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-11-26 13:27:24 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-11-26 13:28:15 +0100
commit30b3fbb2cf4fba62ab4deb3cbcb5875e26af8cf4 (patch)
tree5783f37457f398e799f3ef56c162d6d05800c90f /phpBB/phpbb/db/console_migrator_output_handler.php
parentff76a3e433700687cb1937cfe97263a94cd539d4 (diff)
downloadforums-30b3fbb2cf4fba62ab4deb3cbcb5875e26af8cf4.tar
forums-30b3fbb2cf4fba62ab4deb3cbcb5875e26af8cf4.tar.gz
forums-30b3fbb2cf4fba62ab4deb3cbcb5875e26af8cf4.tar.bz2
forums-30b3fbb2cf4fba62ab4deb3cbcb5875e26af8cf4.tar.xz
forums-30b3fbb2cf4fba62ab4deb3cbcb5875e26af8cf4.zip
[ticket/9590] Support ajax submit of permissions for specific forums
PHPBB3-9590
Diffstat (limited to 'phpBB/phpbb/db/console_migrator_output_handler.php')
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 56 57 58 59 60
package log; # $Id$

use diagnostics;
use strict;
use c;


#-#####################################################################################
#- Globals
#-#####################################################################################
my $logOpen = 0;
my $logDebugMessages = 0;


#-######################################################################################
#- Functions
#-######################################################################################
sub F() { *LOG }

sub l {
    $logOpen or openLog();
    if ($::isStandalone) {
	c::syslog(join "", @_);
    } elsif ($::isInstall) {
	print LOG "* ", @_, "\n";
	print LOG2 "* ", @_, "\n";
    } else {
	print STDERR @_, "\n";
    }
}
sub ld { $logDebugMessages and &l }
sub w { &l }

sub openLog(;$) {
    if ($::isStandalone) {
	c::openlog("DrakX");
    } elsif ($::isInstall) {
	if ($_[0]) { #- useLocal
	    open LOG, "> $_[0]";# or die "no log possible :(";
	} else {
	    open LOG, "> /dev/tty3" or open LOG, ">> /tmp/install.log";# or die "no log possible :(";
	}
	open LOG2, ">> /tmp/ddebug.log";# or die "no log possible :(";
	select((select(LOG),  $| = 1)[0]);
	select((select(LOG2), $| = 1)[0]);
    }
    exists $ENV{DEBUG} and $logDebugMessages = 1;
    $logOpen = 1;
}

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

#-######################################################################################
#- Wonderful perl :(
#-######################################################################################
1;