Re(3): Fehlermeldung phpBB-Forum
Geizhals » Forum » Programmierung » Fehlermeldung phpBB-Forum (18 Beiträge, 281 Mal gelesen) Top-100 | Fresh-100
Du bist nicht angemeldet. [ Login/Registrieren ]
.  Re: Fehlermeldung phpBB-Forum  (error-is.org am 18.09.2006, 09:40:32)
..  Re(2): Fehlermeldung phpBB-Forum  (Carisma am 18.09.2006, 10:21:23)
...  Re(3): Fehlermeldung phpBB-Forum  (error-is.org am 18.09.2006, 11:02:46)
.  Re: Fehlermeldung phpBB-Forum  (Undying am 18.09.2006, 10:49:56)
.  Re: Fehlermeldung phpBB-Forum  (ChrisS am 18.09.2006, 12:49:41)
..  Re(2): Fehlermeldung phpBB-Forum  (Carisma am 18.09.2006, 13:14:02)
...
Re(3): Fehlermeldung phpBB-Forum
18.09.2006, 13:19:30
<?php
/***************************************************************************
*                                index.php
*                            -------------------
*   begin                : Saturday, Feb 13, 2001
*   copyright            : (C) 2001 The phpBB Group
*   email                : support@phpbb.com
*
*   $Id: index.php,v 1.99.2.6 2005/10/30 15:17:13 acydburn Exp $
*
*
***************************************************************************/

/***************************************************************************
*
*   This program is free software; you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation; either version 2 of the License, or
*   (at your option) any later version.
*
***************************************************************************/

define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
/*----------WER WAR HEUTE DA HACK----------*/
###############################  SETTINGS ###############################
$enable_wwd_counter = True; #Enables or disables counting of hidden users and guests
#Values: True or False
############################### /SETTINGS ###############################
$time = time();
$heute = date('Ymd', $time);
$ip = $_SERVER['REMOTE_ADDR'];
$mitternacht = mktime(0,0,0,date('m', $time),date('d', $time),date('Y', $time));
$user_gmd = ( $userdata['session_logged_in'] ) ? $userdata['user_timezone'] : $board_config['board_timezone'];
###############################  INSTALLATION ###############################
if ( !isset( $board_config['wwd_record_users']) )
{
$sql = 'INSERT INTO ' . CONFIG_TABLE . " (config_name, config_value) VALUES ('wwd_record_users', '0')";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not create row `wwd_record_users` in phpBB CONFIG_TABLE', '', __LINE__, __FILE__, $sql);
   }
$board_config['wwd_record_users'] = 0;
}

if ( $enable_wwd_counter ) {
if ( !isset($board_config['wwd_record_time']) ){
$sql = 'INSERT INTO ' . CONFIG_TABLE . " (config_name, config_value) VALUES ('wwd_record_time', '0')";
   if ( !$db->sql_query($sql) )
   {
message_die(GENERAL_ERROR, 'Could not create row `wwd_record_time` in phpBB CONFIG_TABLE', '', __LINE__, __FILE__, $sql);
   }
}
if ( !isset($board_config['wwd_counter_date']) ){
$sql = 'INSERT INTO ' . CONFIG_TABLE . " (config_name, config_value) VALUES ('wwd_counter_date', '$heute')";
   if ( !$db->sql_query($sql) )
   {
message_die(GENERAL_ERROR, 'Could not create row `wwd_counter_date` in phpBB CONFIG_TABLE', '', __LINE__, __FILE__, $sql);
   }
$sql = 'CREATE TABLE `' . $table_prefix . 'wwd_counter_ips` (`ip` VARCHAR( 15 ) NOT NULL , PRIMARY KEY ( `ip` ))';
   if ( !$db->sql_query($sql) )
   {
message_die(GENERAL_ERROR, 'Could not create table `'. $table_prefix . 'wwd_counter_ips`', '', __LINE__, __FILE__, $sql);
   }
}
}
############################### /INSTALLATION ###############################

Antworten PM Alle Chronologisch Zum Vorgänger
 
Melden nicht möglich
....  Re(4): Fehlermeldung phpBB-Forum  (Carisma am 18.09.2006, 13:20:17)
.....  Re(5): Fehlermeldung phpBB-Forum  (Carisma am 18.09.2006, 13:21:08)
......  Re(6): Fehlermeldung phpBB-Forum  (juwb am 18.09.2006, 13:33:15)
.......  Re(7): Fehlermeldung phpBB-Forum  (Carisma am 18.09.2006, 13:40:14)
........  Re(8): Fehlermeldung phpBB-Forum  (juwb am 18.09.2006, 14:28:06)
........  Re(8): Fehlermeldung phpBB-Forum  (ChrisS am 18.09.2006, 14:47:08)
.  Re: Fehlermeldung phpBB-Forum  (Dr. Watson am 18.09.2006, 17:58:49)
 

Dieses Forum ist eine frei zugängliche Diskussionsplattform.
Der Betreiber übernimmt keine Verantwortung für den Inhalt der Beiträge und behält sich das Recht vor, Beiträge mit rechtswidrigem oder anstößigem Inhalt zu löschen.
Datenschutzerklärung