Aktualizacja wersji 1.9.4 (poprawka2) do wersji 1.9.5
Ponizej jest tez instrukcja aktualizacji plikow stylow.
Jezeli chcesz sobie ulatwic aktualizacje, sciagnij oryginalny pakiet forum,
ktore masz, porownaj pliki ze swoim forum aby otrzymac liste plikow, ktore masz zmienione
i tylko te pliki zaktualizuj recznie, reszte plikow nadpisz.
#-----[ OTWÓRZ ]---------------------------------------------
# /admin/admin_attach_cp.php
#-----[ ZNAJD ]---------------------------------------------
$Id: admin_attach_cp.php,v 1.23 2004/12/11 16:33:53 acydburn Exp $
#-----[ ZAMIEŃ NA ]---------------------------------------------
$Id: admin_attach_cp.php,v 1.25 2005/05/09 19:30:26 acydburn Exp $
#-----[ ZNAJD ]---------------------------------------------
'FILENAME' => $attachments[$i]['real_filename'],
#-----[ ZAMIEŃ NA ]---------------------------------------------
'FILENAME' => htmlspecialchars($attachments[$i]['real_filename']),
#-----[ OTWÓRZ ]---------------------------------------------
# /admin/admin_attachments.php
#-----[ USUŃ ]---------------------------------------------
if ( !empty($db) )
{
$db->sql_close();
}
#-----[ OTWÓRZ ]---------------------------------------------
# /admin/admin_forums.php
#-----[ ZNAJD ]---------------------------------------------
list($cat_id) = each($HTTP_POST_VARS['addforum']);
#-----[ PONIŻEJ DODAJ ]---------------------------------------------
$cat_id = intval($cat_id);
#-----[ OTWÓRZ ]---------------------------------------------
# /admin/admin_module_files.php
#-----[ ZNAJD ]---------------------------------------------
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_statistics.' . $phpEx);
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_pcount_resync.' . $phpEx);
#-----[ PONIŻEJ DODAJ ]---------------------------------------------
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main_album.' . $phpEx);
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin_album.' . $phpEx);
#-----[ OTWÓRZ ]---------------------------------------------
# /admin/admin_post_count_resync.php
#-----[ ZNAJD ]---------------------------------------------
* $Id: admin_post_count_resync.php,v 1.7 2003/08/08 01:12:36 rasadam Exp $:
*
#-----[ ZAMIEŃ NA ]---------------------------------------------
* modification : (C) 2005 Przemo http://www.przemo.org
* date modification : ver. 1.9.5 2005/05/26 16:30
#-----[ ZNAJD ]---------------------------------------------
for( $i = 0; $i < $num_rows; $i++ )
{
// get post count
$post_count = get_post_count($user_rows[$i]['user_id'],$where,$mode);
// set it
set_post_count($user_rows[$i]['user_id'],$post_count);
}
#-----[ ZAMIEŃ NA ]---------------------------------------------
for( $i = 0; $i < $num_rows; $i++ )
{
$user_list[] = $user_rows[$i]['user_id'];
// get post count
$post_count = get_post_count($user_rows[$i]['user_id'],$where,$mode);
// set it
set_post_count($user_rows[$i]['user_id'],$post_count);
}
// Resync other tables for non exists users
$user_list = implode(', ', $user_list);
$sql = "UPDATE " . TOPICS_TABLE . "
SET topic_poster = " . ANONYMOUS . "
WHERE topic_poster <> " . ANONYMOUS . "
AND topic_poster NOT IN($user_list)";
$db->sql_query($sql);
$sql = "UPDATE " . POSTS_TABLE . "
SET poster_id = " . ANONYMOUS . "
WHERE poster_id <> " . ANONYMOUS . "
AND poster_id NOT IN ($user_list)";
$db->sql_query($sql);
$sql = "SELECT group_id
FROM " . GROUPS_TABLE . "
WHERE group_moderator NOT IN($user_list)";
$db->sql_query($sql);
$group_moderator = $mark_list = array();
while ( $row_group = $db->sql_fetchrow($result) )
{
$group_moderator[] = $row_group['group_id'];
}
if ( count($group_moderator) )
{
$update_moderator_id = implode(', ', $group_moderator);
$sql = "UPDATE " . GROUPS_TABLE . "
SET group_moderator = " . $userdata['user_id'] . "
WHERE group_moderator IN ($update_moderator_id)";
$db->sql_query($sql);
}
$sql = "DELETE FROM " . TOPICS_WATCH_TABLE . "
WHERE user_id NOT IN($user_list)";
$db->sql_query($sql);
$sql = "DELETE FROM " . WARNINGS_TABLE . "
WHERE userid NOT IN($user_list)";
$db->sql_query($sql);
if ( $board_config['read_tracking'] )
{
$sql = "DELETE FROM " . READ_HIST_TABLE . "
WHERE user_id NOT IN($user_list)";
$db->sql_query($sql);
}
if ( $board_config['ignore_topics'] )
{
$sql = "DELETE FROM " . IGNORE_TOPICS_TABLE . "
WHERE user_id NOT IN($user_list)";
$db->sql_query($sql);
}
$sql = "DELETE FROM " . SHOUTBOX_TABLE . "
WHERE sb_user_id NOT IN($user_list)";
$db->sql_query($sql);
$sql = "DELETE FROM " . TOPIC_VIEW_TABLE . "
WHERE user_id NOT IN($user_list)";
$db->sql_query($sql);
if ( $board_config['album_gallery'] )
{
require_once($phpbb_root_path . 'album_mod/album_constants.'.$phpEx);
$sql = "SELECT pic_id, pic_filename, pic_thumbnail
FROM " . ALBUM_TABLE . "
WHERE pic_user_id NOT IN($user_list)
AND pic_cat_id = 0";
$db->sql_query($sql);
while( $albumrow = $db->sql_fetchrow($result) )
{
$pic_id = $albumrow['pic_id'];
$pic_filename = $albumrow['pic_filename'];
if ( $pic_id && $pic_filename )
{
$sql_in = "DELETE FROM " . ALBUM_COMMENT_TABLE . "
WHERE comment_pic_id = $pic_id";
$db->sql_query($sql_in);
$sql_in = "DELETE FROM " . ALBUM_RATE_TABLE . "
WHERE rate_pic_id = $pic_id";
$db->sql_query($sql_in);
if ( $albumrow['pic_thumbnail'] && @file_exists($phpbb_root_path . '/' . ALBUM_CACHE_PATH . $albumrow['pic_thumbnail']) )
{
@unlink($phpbb_root_path . ALBUM_CACHE_PATH . $albumrow['pic_thumbnail']);
}
@unlink($phpbb_root_path . ALBUM_UPLOAD_PATH . $pic_filename);
$sql_in = "DELETE FROM " . ALBUM_TABLE . "
WHERE pic_cat_id = 0
AND pic_user_id NOT IN($user_list)";
$db->sql_query($sql_in);
}
}
}
#-----[ OTWÓRZ ]---------------------------------------------
# /admin/admin_smilies.php
#-----[ USUŃ ]---------------------------------------------
if ( !empty($db) )
{
$db->sql_close();
}
#-----[ ZNAJD ]---------------------------------------------
$smile_id = ( isset($HTTP_POST_VARS['smile_id']) ) ? intval($HTTP_POST_VARS['smile_id']) : intval($HTTP_GET_VARS['smile_id']);
#-----[ PONIŻEJ DODAJ ]---------------------------------------------
$smile_code = trim($smile_code);
$smile_url = trim($smile_url);
$smile_emotion = trim($smile_emotion);
#-----[ OTWÓRZ ]---------------------------------------------
# /admin/admin_ug_auth.php
#-----[ ZNAJD ]---------------------------------------------
if ( $unset_mod != '' )
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_level = " . USER . "
WHERE user_id IN ($unset_mod)";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't update user level", "", __LINE__, __FILE__, $sql);
}
}
#-----[ PONIŻEJ DODAJ ]---------------------------------------------
$sql = 'SELECT user_id FROM ' . USER_GROUP_TABLE . "
WHERE group_id = $group_id";
$result = $db->sql_query($sql);
$group_user = array();
while ($row = $db->sql_fetchrow($result))
{
$group_user[$row['user_id']] = $row['user_id'];
}
$db->sql_freeresult($result);
$sql = "SELECT ug.user_id, COUNT(auth_mod) AS is_auth_mod
FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug
WHERE ug.user_id IN (" . implode(', ', $group_user) . ")
AND aa.group_id = ug.group_id
AND aa.auth_mod = 1
GROUP BY ug.user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain moderator status', '', __LINE__, __FILE__, $sql);
}
while ($row = $db->sql_fetchrow($result))
{
if ($row['is_auth_mod'])
{
unset($group_user[$row['user_id']]);
}
}
$db->sql_freeresult($result);
if (sizeof($group_user))
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_level = " . USER . "
WHERE user_id IN (" . implode(', ', $group_user) . ") AND user_level = " . MOD;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update user level', '', __LINE__, __FILE__, $sql);
}
}
#-----[ OTWÓRZ ]---------------------------------------------
# /admin/admin_user_bantron.php
#-----[ ZNAJD ]---------------------------------------------
$ban_expire_time = strtotime ($HTTP_POST_VARS['ban_expire_time_absolute_hour'] .':'. $HTTP_POST_VARS['ban_expire_time_absolute_minute'] .' '. $HTTP_POST_VARS['ban_expire_time_absolute_ampm'] .' '. $HTTP_POST_VARS['ban_expire_time_absolute_month'] .'/'. $HTTP_POST_VARS['ban_expire_time_absolute_mday'] .'/'. $HTTP_POST_VARS['ban_expire_time_absolute_year']);
#-----[ ZAMIEŃ NA ]---------------------------------------------
$ban_expire_time = strtotime ($HTTP_POST_VARS['ban_expire_time_absolute_month'] .'/'. $HTTP_POST_VARS['ban_expire_time_absolute_mday'] .'/'. $HTTP_POST_VARS['ban_expire_time_absolute_year'] .' '. $HTTP_POST_VARS['ban_expire_time_absolute_hour'] .':'. $HTTP_POST_VARS['ban_expire_time_absolute_minute'] .' '. $HTTP_POST_VARS['ban_expire_time_absolute_ampm']);
#-----[ OTWÓRZ ]---------------------------------------------
# admin/admin_users.php
#-----[ ZNAJD ]---------------------------------------------
if ( $user_sig_image_type != '' )
{
switch( $user_sig_image_type )
{
case 'jpeg':
case 'pjpeg':
case 'jpg':
$imgtype = '.jpg';
break;
case 'gif':
$imgtype = '.gif';
break;
case 'png':
$imgtype = '.png';
break;
default:
$error = true;
$error_msg = (!empty($error_msg)) ? $error_msg . '
' . $lang['Avatar_filetype'] : $lang['Avatar_filetype'];
break;
}
}
else if ( $signature_filetype != '' )
{
switch( $signature_filetype )
{
case 'jpeg':
case 'pjpeg':
case 'jpg':
$imgtype = '.jpg';
break;
case 'gif':
$imgtype = '.gif';
break;
case 'png':
$imgtype = '.png';
break;
default:
$error = true;
$error_msg = (!empty($error_msg)) ? $error_msg . '
' . $lang['Avatar_filetype'] : $lang['Avatar_filetype'];
break;
}
}
#-----[ ZAMIEŃ NA ]---------------------------------------------
if ( $user_sig_image_type != '' )
{
switch( $user_sig_image_type )
{
case 'image/jpeg':
case 'image/jpg':
case 'jpeg':
case 'pjpeg':
case 'jpg':
$imgtype = '.jpg';
break;
case 'image/gif':
case 'gif':
$imgtype = '.gif';
break;
case 'image/png':
case 'image/x-png':
case 'png':
$imgtype = '.png';
break;
default:
$error = true;
$error_msg = (!empty($error_msg)) ? $error_msg . '
' . $lang['Avatar_filetype'] : $lang['Avatar_filetype'];
break;
}
}
else if ( $signature_filetype != '' )
{
switch( $signature_filetype )
{
case 'image/jpeg':
case 'image/jpg':
case 'jpeg':
case 'pjpeg':
case 'jpg':
$imgtype = '.jpg';
break;
case 'image/gif':
case 'gif':
$imgtype = '.gif';
break;
case 'image/png':
case 'image/x-png':
case 'png':
$imgtype = '.png';
break;
default:
$error = true;
$error_msg = (!empty($error_msg)) ? $error_msg . '
' . $lang['Avatar_filetype'] : $lang['Avatar_filetype'];
break;
}
}
#-----[ ZNAJD ]---------------------------------------------
switch( $user_avatar_filetype )
{
case 'jpeg':
case 'pjpeg':
case 'jpg':
$imgtype = '.jpg';
break;
case 'gif':
$imgtype = '.gif';
break;
case 'png':
$imgtype = '.png';
break;
default:
$error = true;
$error_msg = (!empty($error_msg)) ? $error_msg . '
' . $lang['Avatar_filetype'] : $lang['Avatar_filetype'];
break;
}
#-----[ ZAMIEŃ NA ]---------------------------------------------
switch( $user_avatar_filetype )
{
case 'image/jpeg':
case 'image/jpg':
case 'jpeg':
case 'pjpeg':
case 'jpg':
$imgtype = '.jpg';
break;
case 'image/gif':
case 'gif':
$imgtype = '.gif';
break;
case 'image/png':
case 'image/x-png':
case 'png':
$imgtype = '.png';
break;
default:
$error = true;
$error_msg = (!empty($error_msg)) ? $error_msg . '
' . $lang['Avatar_filetype'] : $lang['Avatar_filetype'];
break;
}
#-----[ ZNAJD ]---------------------------------------------
switch( $file_type )
{
case 'jpeg':
case 'pjpeg':
case 'jpg':
$imgtype = '.jpg';
break;
case 'gif':
$imgtype = '.gif';
break;
case 'png':
$imgtype = '.png';
break;
default:
$error = true;
$error_msg = (!empty($error_msg)) ? $error_msg . '
' . $lang['Avatar_filetype'] : $lang['Avatar_filetype'];
break;
}
#-----[ ZAMIEŃ NA ]---------------------------------------------
switch( $file_type )
{
case 'image/jpeg':
case 'image/jpg':
case 'jpeg':
case 'pjpeg':
case 'jpg':
$imgtype = '.jpg';
break;
case 'image/gif':
case 'gif':
$imgtype = '.gif';
break;
case 'image/png':
case 'image/x-png':
case 'png':
$imgtype = '.png';
break;
default:
$error = true;
$error_msg = (!empty($error_msg)) ? $error_msg . '
' . $lang['Avatar_filetype'] : $lang['Avatar_filetype'];
break;
}
#-----[ OTWÓRZ ]---------------------------------------------
# /attach_mod/includes/constants.php
#-----[ ZNAJD ]---------------------------------------------
define('ATTACH_VERSION', '2.3.11');
#-----[ ZAMIEŃ NA ]---------------------------------------------
define('ATTACH_VERSION', '2.3.13');
#-----[ OTWÓRZ ]---------------------------------------------
# /attach_mod/includes/functions_attach.php
#-----[ ZNAJD ]---------------------------------------------
$Id: functions_attach.php,v 1.40 2004/12/09 20:10:02 acydburn Exp $
#-----[ ZAMIEŃ NA ]---------------------------------------------
$Id: functions_attach.php,v 1.42 2005/05/09 19:30:29 acydburn Exp $
#-----[ USUŃ ]---------------------------------------------
if (@file_exists(@amod_realpath($filename)) )
{
$filesys = eregi_replace('/','\\', $filename);
$deleted = @system("del $filesys");
if (@file_exists(@amod_realpath($filename)))
{
$deleted = @chmod ($filename, 0775);
$deleted = @unlink($filename);
$deleted = @system("del $filesys");
}
}
#-----[ ZNAJD ]---------------------------------------------
function get_extension($filename)
{
#-----[ PONIŻEJ DODAJ ]---------------------------------------------
if (!stristr($filename, '.'))
{
return '';
}
#-----[ ZNAJD ]---------------------------------------------
foreach ($var as $k => $v)
{
if (is_array($v))
{
foreach ($v as $_k => $_v)
{
_set_var($var[$k][$_k], $_v, $type);
}
}
else
{
_set_var($var[$k], $v, $type);
}
}
#-----[ ZAMIEŃ NA ]---------------------------------------------
return $default;
#-----[ OTWÓRZ ]---------------------------------------------
# /attach_mod/includes/functions_includes.php
#-----[ ZNAJD ]---------------------------------------------
$Id: functions_includes.php,v 1.38 2004/12/11 12:11:01 acydburn Exp $
#-----[ ZAMIEŃ NA ]---------------------------------------------
$Id: functions_includes.php,v 1.39 2005/05/10 16:03:54 acydburn Exp $
#-----[ ZNAJD ]---------------------------------------------
global $attach_config, $board_config, $phpbb_root_path, $lang, $db, $template, $phpEx, $userdata, $profiledata;
#-----[ ZAMIEŃ NA ]---------------------------------------------
global $attach_config, $board_config, $phpbb_root_path, $lang, $db, $template, $phpEx, $userdata, $profiledata;
if (intval($attach_config['disable_mod']))
{
return;
}
#-----[ OTWÓRZ ]---------------------------------------------
# /attach_mod/includes/functions_thumbs.php
#-----[ ZNAJD ]---------------------------------------------
$Id: functions_thumbs.php,v 1.27 2004/10/31 16:46:59 acydburn Exp $
#-----[ ZAMIEŃ NA ]---------------------------------------------
$Id: functions_thumbs.php,v 1.28 2005/04/16 10:07:26 acydburn Exp $
#-----[ ZNAJD ]---------------------------------------------
$img_filesize = (file_exists($source)) ? @filesize($source) : false;
#-----[ ZAMIEŃ NA ]---------------------------------------------
$img_filesize = (@file_exists($source)) ? @filesize($source) : false;
#-----[ ZNAJD ]---------------------------------------------
list($new_width, $new_height) = get_img_size_format($width, $height);
#-----[ ZAMIEŃ NA ]---------------------------------------------
list($new_width, $new_height) = get_img_size_format($width, $height);
if ( $new_width > $width || $new_height > $height )
{
return false;
}
#-----[ OTWÓRZ ]---------------------------------------------
# /attach_mod/displaying.php
#-----[ ZNAJD ]---------------------------------------------
$Id: displaying.php,v 1.50 2004/10/31 16:46:58 acydburn Exp $
#-----[ ZAMIEŃ NA ]---------------------------------------------
$Id: displaying.php,v 1.52 2005/05/09 16:19:29 acydburn Exp $
#-----[ ZNAJD ]---------------------------------------------
$display_name = $attachment_filename_list[$i] . '
';
#-----[ ZAMIEŃ NA ]---------------------------------------------
$display_name = htmlspecialchars($attachment_filename_list[$i]) . '
';
#-----[ ZNAJD ]---------------------------------------------
$display_name = $attachments['_' . $post_id][$i]['real_filename'] . '
';
#-----[ ZAMIEŃ NA ]---------------------------------------------
$display_name = htmlspecialchars($attachments['_' . $post_id][$i]['real_filename']) . '
';
#-----[ ZNAJD ]---------------------------------------------
$target_blank = ( (intval($display_categories[$attachments['_' . $post_id][$i]['extension']]) == IMAGE_CAT) ) ? 'target="_blank"' : '';
#-----[ ZAMIEŃ NA ]---------------------------------------------
$target_blank = 'target="_blank"'; //( (intval($display_categories[$attachments['_' . $post_id][$i]['extension']]) == IMAGE_CAT) ) ? 'target="_blank"' : '';
#-----[ OTWÓRZ ]---------------------------------------------
# /attach_mod/pm_attachments.php
#-----[ USUŃ ]---------------------------------------------
if ( !empty($db) )
{
$db->sql_close();
}
#-----[ OTWÓRZ ]---------------------------------------------
# /attach_mod/posting_attachments.php
#-----[ ZNAJD ]---------------------------------------------
$Id: posting_attachments.php,v 1.67 2004/12/09 20:10:01 acydburn Exp $
#-----[ ZAMIEŃ NA ]---------------------------------------------
$Id: posting_attachments.php,v 1.69 2005/05/09 16:19:31 acydburn Exp $
#-----[ ZNAJD ]---------------------------------------------
'FILE_NAME' => $this->attachment_filename_list[$i],
#-----[ ZAMIEŃ NA ]---------------------------------------------
'FILE_NAME' => stripslashes(htmlspecialchars($this->attachment_filename_list[$i])),
#-----[ ZNAJD ]---------------------------------------------
$r_file = trim(basename($this->filename));
$file = $HTTP_POST_FILES['fileupload']['tmp_name'];
$this->type = $HTTP_POST_FILES['fileupload']['type'];
// Opera add the name to the mime type
#-----[ ZAMIEŃ NA ]---------------------------------------------
$r_file = trim(basename($this->filename));
$file = $HTTP_POST_FILES['fileupload']['tmp_name'];
$this->type = $HTTP_POST_FILES['fileupload']['type'];
if (isset($HTTP_POST_FILES['fileupload']['size']) && $HTTP_POST_FILES['fileupload']['size'] == 0)
{
message_die(GENERAL_ERROR, 'Tried to upload empty file');
}
// Opera add the name to the mime type
#-----[ ZNAJD ]---------------------------------------------
if ( preg_match("/[\\/:*?\"<>|]/i", $this->filename) )
#-----[ ZAMIEŃ NA ]---------------------------------------------
if ( preg_match("#[\\/:*?\"<>|]#i", $this->filename) )
#-----[ ZNAJD ]---------------------------------------------
$new_filename = $this->attach_filename;
#-----[ ZAMIEŃ NA ]---------------------------------------------
$new_filename = trim($this->attach_filename);
if (!$new_filename)
{
$u_id = (intval($userdata['user_id']) == ANONYMOUS) ? 0 : intval($userdata['user_id']);
$new_filename = $u_id . '_' . $this->filetime . '.' . $this->extension;
}
#-----[ ZNAJD ]---------------------------------------------
global $error, $error_msg, $lang, $upload_dir;
switch ($upload_mode)
#-----[ ZAMIEŃ NA ]---------------------------------------------
global $error, $error_msg, $lang, $upload_dir;
if (!is_uploaded_file($file))
{
message_die(GENERAL_ERROR, 'Unable to upload file. The given source has not been uploaded.', __LINE__, __FILE__);
}
switch ($upload_mode)
#-----[ ZNAJD ]---------------------------------------------
if (!create_thumbnail($file, $dest_file, $this->type))
{
if (!create_thumbnail($source, $dest_file, $this->type))
{
$this->thumbnail = 0;
}
}
#-----[ ZAMIEŃ NA ]---------------------------------------------
if (!create_thumbnail($source, $dest_file, $this->type))
{
if (!$file || !create_thumbnail($file, $dest_file, $this->type))
{
$this->thumbnail = 0;
}
}
#-----[ OTWÓRZ ]---------------------------------------------
# /chatbox_mod/chatbox.php
#-----[ USUŃ ]---------------------------------------------
if ( !empty($db) )
{
$db->sql_close();
}
#-----[ OTWÓRZ ]---------------------------------------------
# /chatbox_mod/chatbox_drop.php
#-----[ USUŃ ]---------------------------------------------
if ( !empty($db) )
{
$db->sql_close();
}
#-----[ OTWÓRZ ]---------------------------------------------
# /chatbox_mod/messenger_list.php
#-----[ USUŃ ]---------------------------------------------
if ( !empty($db) )
{
$db->sql_close();
}
#-----[ OTWÓRZ ]---------------------------------------------
# /chatbox_mod/messenger_send.php
#-----[ USUŃ ]---------------------------------------------
if ( !empty($db) )
{
$db->sql_close();
}
#-----[ OTWÓRZ ]---------------------------------------------
# /chatbox_mod/messenger_view.php
#-----[ USUŃ ]---------------------------------------------
if ( !empty($db) )
{
$db->sql_close();
}
#-----[ OTWÓRZ ]---------------------------------------------
# /dbloader/functions.php
#-----[ ZNAJD ]---------------------------------------------
target="_errorrep"
#-----[ ZAMIEŃ NA ]---------------------------------------------
target="_blank"
#-----[ OTWÓRZ ]---------------------------------------------
# /includes/bbcode.php
#-----[ ZNAJD ]---------------------------------------------
global $lang, $bbcode_tpl, $board_config;
$text = ' ' . $text;
#-----[ ZAMIEŃ NA ]---------------------------------------------
global $lang, $bbcode_tpl, $board_config;
$text = preg_replace('#(script|about|applet|activex|chrome):#is', "\\1:", $text);
$text = ' ' . $text;
#-----[ ZNAJD ]---------------------------------------------
$text = preg_replace("/\[quote:$uid=\"(.*?)\"\]/si", $bbcode_tpl['quote_username_open'], $text);
#-----[ ZAMIEŃ NA ]---------------------------------------------
$text = ($board_config['button_q']) ? preg_replace("/\[quote:$uid=\"(.*?)\"\]/si", $bbcode_tpl['quote_username_open'], $text) : preg_replace("/\[quote:$uid=\"(.*?)\"\]/si", '', $text);
#-----[ ZNAJD ]---------------------------------------------
$patterns[] = "#\[img:$uid\](.*?)\[/img:$uid\]#si";
#-----[ ZAMIEŃ NA ]---------------------------------------------
$patterns[] = "#\[img:$uid\]([^?].*?)\[/img:$uid\]#i";
#-----[ ZNAJD ]---------------------------------------------
$patterns[] = "#\[url=([\w]+?://[^ \"\n\r\t<]*?)\](.*?)\[/url\]#is";
#-----[ ZAMIEŃ NA ]---------------------------------------------
$patterns[] = "#\[url=([\w]+?://[^ \"\n\r\t<]*?)\]([^?].*?)\[/url\]#i";
#-----[ ZNAJD ]---------------------------------------------
$patterns[] = "#\[url=((www|ftp)\.[^ \"\n\r\t<]*?)\](.*?)\[/url\]#is";
#-----[ ZAMIEŃ NA ]---------------------------------------------
$patterns[] = "#\[url=((www|ftp)\.[^ \"\n\r\t<]*?)\]([^?].*?)\[/url\]#i";
#-----[ ZNAJD ]---------------------------------------------
function make_clickable($text)
{
global $board_config;
$ref = 0;
$ret = ' ' . $text;
$red_links = ($ref) ? 'redirect.php?adr=' : '';
$ret = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", "\\1\\2", $ret);
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#is", "\\1\\2", $ret);
#-----[ ZAMIEŃ NA ]---------------------------------------------
function make_clickable($text)
{
global $board_config;
$text = preg_replace('#(script|about|applet|activex|chrome):#is', "\\1:", $text);
$ref = 0;
$ret = ' ' . $text;
$red_links = ($ref) ? 'redirect.php?adr=' : '';
$ret = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", "\\1\\2", $ret);
$ret = preg_replace("#(^|[\n ])((www|ftp)\.\S[^ \"\t\n\r<]*)#is", "\\1\\2", $ret);
#-----[ OTWÓRZ ]---------------------------------------------
# /includes/confirm_register.php
#-----[ USUŃ ]---------------------------------------------
if ( !empty($db) )
{
$db->sql_close();
}
#-----[ OTWÓRZ ]---------------------------------------------
# /includes/functions_admin.php
#-----[ ZNAJD ]---------------------------------------------
* date modification : ver. 1.9 2004/05/30 21:50
*
* $Id: functions_admin.php,v 1.8.9 2004/05/30 21:50
***************************************************************************/
#-----[ ZAMIEŃ NA ]---------------------------------------------
* date modification : ver. 1.9.5 2005/05/30 14:22
*
***************************************************************************/
#-----[ ZNAJD ]---------------------------------------------
?>
#-----[ POWYŻEJ DODAJ ]---------------------------------------------
function db_backup($do_now = false)
{
global $db, $dbname, $table_prefix, $board_config, $phpbb_root_path;
$sql = "UPDATE " . CONFIG_TABLE . " SET
config_value = '" . time() . "'
WHERE config_name = 'db_backup_time'";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Failed to update configuration', '', __LINE__, __FILE__, $sql);
}
$sql = "UPDATE " . CONFIG_TABLE . " SET
config_value = 'db_backup_progress'
WHERE config_name = 'board_disable'";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Failed to update configuration', '', __LINE__, __FILE__, $sql);
}
$chars = array( 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0');
$max_chars = count($chars) - 1;
srand( (double) microtime()*1000000);
$rand_str = '';
for($i = 0; $i < 8; $i++)
{
$rand_str = ( $i == 0 ) ? $chars[rand(0, $max_chars)] : $rand_str . $chars[rand(0, $max_chars)];
}
@set_time_limit('300');
$filename = 'db_backup_' . $table_prefix . $rand_str . '_date-' . date('d-m-Y', time()) . '.sql';
$file_handle = fopen($phpbb_root_path . '/db/db_backup/' . $filename, 'w');
$sql = "SHOW TABLES LIKE '" . $table_prefix . "%'";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query tables', '', __LINE__, __FILE__, $sql);
}
$row_tables = $db->sql_fetchrowset($result);
foreach($row_tables as $name)
{
$table = $name['Tables_in_' . $dbname . ' (' . $table_prefix . '%)'];
$crlf = "\r\n";
$schema_create = $index = '';
$field_query = "SHOW FIELDS FROM $table";
$key_query = "SHOW KEYS FROM $table";
$schema_create .= "CREATE TABLE $table($crlf";
$result = $db->sql_query($field_query);
if(!$result)
{
message_die(GENERAL_ERROR, "Failed in get_table_def (show fields)", "", __LINE__, __FILE__, $field_query);
}
while ($row = $db->sql_fetchrow($result))
{
$schema_create .= ' ' . $row['Field'] . ' ' . $row['Type'];
if(!empty($row['Default']))
{
$schema_create .= ' DEFAULT \'' . $row['Default'] . '\'';
}
if($row['Null'] != "YES")
{
$schema_create .= ' NOT NULL';
}
if($row['Extra'] != "")
{
$schema_create .= ' ' . $row['Extra'];
}
$schema_create .= ",$crlf";
}
$schema_create = ereg_replace(',' . $crlf . '$', "", $schema_create);
$result = $db->sql_query($key_query);
if(!$result)
{
message_die(GENERAL_ERROR, "FAILED IN get_table_def (show keys)", "", __LINE__, __FILE__, $key_query);
}
while($row = $db->sql_fetchrow($result))
{
$kname = $row['Key_name'];
if(($kname != 'PRIMARY') && ($row['Non_unique'] == 0))
{
$kname = "UNIQUE|$kname";
}
if(!is_array($index[$kname]))
{
$index[$kname] = array();
}
$index[$kname][] = $row['Column_name'];
}
while(list($x, $columns) = @each($index))
{
$schema_create .= ", $crlf";
if($x == 'PRIMARY')
{
$schema_create .= ' PRIMARY KEY (' . implode($columns, ', ') . ')';
}
elseif (substr($x,0,6) == 'UNIQUE')
{
$schema_create .= ' UNIQUE ' . substr($x,7) . ' (' . implode($columns, ', ') . ')';
}
else
{
$schema_create .= " KEY $x (" . implode($columns, ', ') . ')';
}
}
$schema_create .= "$crlf);";
if ( get_magic_quotes_runtime() )
{
$schema_create = stripslashes($schema_create);
}
@fwrite($file_handle, $schema_create . $crlf . $crlf);
// Schema Insert - Grab the data from the table.
$data_ignores = array($table_prefix . 'sessions');
if ( !$board_config['db_backup_search'] )
{
$data_ignores[] = $table_prefix . 'search_results';
$data_ignores[] = $table_prefix . 'search_wordlist';
$data_ignores[] = $table_prefix . 'search_wordmatch';
}
if ( !$board_config['db_backup_rh'] )
{
$data_ignores[] = $table_prefix . 'read_history';
}
if ( !(in_array($table, $data_ignores)) )
{
if (!($result = $db->sql_query("SELECT * FROM $table")))
{
message_die(GENERAL_ERROR, "Failed in get_table_content (select *)", "", __LINE__, __FILE__, "SELECT * FROM $table");
}
// Loop through the resulting rows and build the sql statement.
if ($row = $db->sql_fetchrow($result))
{
$num_fields = $db->sql_numfields($result);
$field_names = array();
for ($j = 0; $j < $num_fields; $j++)
{
$field_names[$j] = $db->sql_fieldname($j, $result);
}
do
{
$schema_insert = "INSERT INTO $table VALUES(";
// Loop through the rows and fill in data for each column
for ($j = 0; $j < $num_fields; $j++)
{
$schema_insert .= ($j > 0) ? ', ' : '';
if(!isset($row[$field_names[$j]]))
{
$schema_insert .= 'NULL';
}
elseif ($row[$field_names[$j]] != '')
{
$schema_insert .= '\'' . addslashes($row[$field_names[$j]]) . '\'';
}
else
{
$schema_insert .= '\'\'';
}
}
$schema_insert .= ');';
@fwrite($file_handle, $schema_insert . $crlf);
}
while ($row = $db->sql_fetchrow($result));
}
}
}
fclose($file_handle);
if ( $fp_out = gzopen($phpbb_root_path . '/db/db_backup/' . $filename . '.gz', wb) )
{
if ( $fp_in = fopen($phpbb_root_path . '/db/db_backup/' . $filename, 'rb') )
{
while(!feof($fp_in))
{
gzputs($fp_out, fread($fp_in,1024*512));
}
fclose($fp_in);
}
else
{
message_die(GENERAL_ERROR, 'Error opening file: ' . $logfile);
}
gzclose($fp_out);
unlink($phpbb_root_path . '/db/db_backup/' . $filename);
}
if ( !$do_now )
{
$rep = $phpbb_root_path . '/db/db_backup/';
$dir = opendir($rep);
$files = array();
while($file = readdir($dir))
{
if ( is_file($rep . $file) && substr($file, -3) == '.gz' )
{
$files[$file] = fileatime($rep . $file);
}
}
closedir($dir);
arsort($files);
reset($files);
if ( count($files) > $board_config['db_backup_copies'] )
{
$i = 0;
while (list($key, $val) = each($files))
{
$i++;
if ( $i > $board_config['db_backup_copies'] )
{
@unlink($phpbb_root_path . $rep . $key);
}
}
}
}
$sql = "UPDATE " . CONFIG_TABLE . " SET
config_value = ''
WHERE config_name = 'board_disable'";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Failed to update configuration', '', __LINE__, __FILE__, $sql);
}
return;
}
#-----[ OTWÓRZ ]---------------------------------------------
# /includes/functions_remove.php
#-----[ ZNAJD ]---------------------------------------------
* version : ver. 1.9 2005/03/11 13:48
#-----[ ZAMIEŃ NA ]---------------------------------------------
* version : ver. 1.9.5 2005/03/28 11:20
#-----[ ZNAJD ]---------------------------------------------
global $db, $board_config, $phpbb_root_path, $phpEx;
#-----[ ZAMIEŃ NA ]---------------------------------------------
global $db, $board_config, $phpbb_root_path, $phpEx, $userdata;
#-----[ OTWÓRZ ]---------------------------------------------
# /includes/smtp.php
#-----[ ZNAJD ]---------------------------------------------
$Id: smtp.php,v 1.16.2.9 2003/07/18 16:34:01 acydburn Exp $
#-----[ ZAMIEŃ NA ]---------------------------------------------
$Id: smtp.php,v 1.16.2.10 2005/05/06 20:50:11 acydburn Exp $
#-----[ ZNAJD ]---------------------------------------------
if( !$socket = fsockopen($board_config['smtp_host'], 25, $errno, $errstr, 20) )
#-----[ ZAMIEŃ NA ]---------------------------------------------
if( !$socket = @fsockopen($board_config['smtp_host'], 25, $errno, $errstr, 20) )
#-----[ OTWÓRZ ]---------------------------------------------
# /includes/usercp_avatar.php
#-----[ ZNAJD ]---------------------------------------------
* date modification : ver. 1.9 2004/05/30 21:50
*
* $Id: usercp_avatar.php,v 1.8.9 2004/05/30 21:50
***************************************************************************/
#-----[ ZAMIEŃ NA ]---------------------------------------------
* date modification : ver. 1.9.5 2005/05/22 15:30
*
***************************************************************************/
#-----[ ZNAJD ]---------------------------------------------
switch( $type )
{
case 'jpeg':
case 'pjpeg':
case 'jpg':
return '.jpg';
break;
case 'gif':
return '.gif';
break;
case 'png':
return '.png';
break;
default:
$error = true;
$error_msg = (!empty($error_msg)) ? $error_msg . '
' . $lang['Avatar_filetype'] : $lang['Avatar_filetype'];
break;
}
#-----[ ZAMIEŃ NA ]---------------------------------------------
switch( $type )
{
case 'image/jpeg':
case 'image/jpg':
case 'jpeg':
case 'pjpeg':
case 'jpg':
return '.jpg';
break;
case 'image/gif':
case 'gif':
return '.gif';
break;
case 'image/png':
case 'image/x-png':
case 'png':
return '.png';
break;
default:
$error = true;
$error_msg = (!empty($error_msg)) ? $error_msg . '
' . $lang['Avatar_filetype'] : $lang['Avatar_filetype'];
break;
}
#-----[ ZNAJD ]---------------------------------------------
function display_avatar_gallery($mode, &$category, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$new_password, &$cur_password, &$password_confirm, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$optional_fields, &$optional_values, &$occupation, &$interests, &$gender, &$allowpm, &$birthday, &$b_day, &$b_md, &$b_year, &$signature, &$user_sig_image, &$viewemail, &$notifypm, &$user_notify_gg, &$popuppm, &$showavatars, &$page_avatar, &$view_ignore_topics, &$icq, &$user_topics_per_page, &$user_posts_per_page, &$user_hot_threshold, &$notifyreply, &$attachsig, &$allow_sig, &$allow_sig_image, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformat, &$user_sub_forum, &$user_split_cat, &$user_last_topic_title, &$user_sub_level_links, &$user_display_viewonline, &$custom_color, &$custom_rank, &$session_id)
#-----[ ZAMIEŃ NA ]---------------------------------------------
function display_avatar_gallery($mode, &$category, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$new_password, &$cur_password, &$password_confirm, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$optional_fields, &$optional_values, &$occupation, &$interests, &$gender, &$allowpm, &$birthday, &$b_day, &$b_md, &$b_year, &$signature, &$user_sig_image, &$viewemail, &$notifypm, &$user_notify_gg, &$popup_pm, &$showavatars, &$page_avatar, &$view_ignore_topics, &$icq, &$user_topics_per_page, &$user_posts_per_page, &$user_hot_threshold, &$notifyreply, &$attachsig, &$allow_sig, &$allow_sig_image, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformat, &$user_sub_forum, &$user_split_cat, &$user_last_topic_title, &$user_sub_level_links, &$user_display_viewonline, &$custom_color, &$custom_rank, &$session_id)
#-----[ OTWÓRZ ]---------------------------------------------
# /includes/usercp_register.php
#-----[ ZNAJD ]---------------------------------------------
if ( strtolower($username) != strtolower($userdata['username']) )
#-----[ ZAMIEŃ NA ]---------------------------------------------
if (strtolower($username) != strtolower($userdata['username']) || $mode == 'register')
#-----[ OTWÓRZ ]---------------------------------------------
# /includes/usercp_signature.php
#-----[ ZNAJD ]---------------------------------------------
switch( $type )
{
case 'jpeg':
case 'pjpeg':
case 'jpg':
return '.jpg';
break;
case 'gif':
return '.gif';
break;
case 'png':
return '.png';
break;
default:
$error = true;
$error_msg = (!empty($error_msg)) ? $error_msg . '
' . $lang['Avatar_filetype'] : $lang['Avatar_filetype'];
break;
}
#-----[ ZAMIEŃ NA ]---------------------------------------------
switch( $type )
{
case 'image/jpeg':
case 'image/jpg':
case 'jpeg':
case 'pjpeg':
case 'jpg':
return '.jpg';
break;
case 'image/gif':
case 'gif':
return '.gif';
break;
case 'image/png':
case 'image/x-png':
case 'png':
return '.png';
break;
default:
$error = true;
$error_msg = (!empty($error_msg)) ? $error_msg . '
' . $lang['Avatar_filetype'] : $lang['Avatar_filetype'];
break;
}
#-----[ OTWÓRZ ]---------------------------------------------
# /includes/usercp_viewprofile.php
#-----[ ZNAJD ]---------------------------------------------
$profiledata = get_userdata(intval($HTTP_GET_VARS[POST_USERS_URL]));
$user_id = $profiledata['user_id'];
#-----[ ZAMIEŃ NA ]---------------------------------------------
$profiledata = get_userdata(intval($HTTP_GET_VARS[POST_USERS_URL]));
if (!$profiledata)
{
message_die(GENERAL_MESSAGE, $lang['No_user_id_specified']);
}
$user_id = $profiledata['user_id'];
#-----[ ZNAJD ]---------------------------------------------
$aim_status_img = '';
#-----[ ZAMIEŃ NA ]---------------------------------------------
$aim_status_img = '';
#-----[ OTWÓRZ ]---------------------------------------------
# /pafiledb/includes/download.php
#-----[ USUŃ ]---------------------------------------------
if ( !empty($db) )
{
$db->sql_close();
}
#-----[ OTWÓRZ ]---------------------------------------------
# /pafiledb/includes/email.php
#-----[ ZNAJD ]---------------------------------------------
if (empty($act))
{
$template->assign_block_vars("email", array());
$template->assign_vars(array(
'S_EMAIL_ACTION' => append_sid("dload.php"),
'L_EMAIL' => $lang['Emailfile'],
'L_EMAILINFO' => $lang['Emailinfo'],
'L_YNAME' => $lang['Yname'],
'L_YEMAIL' => $lang['Yemail'],
'L_FNAME' => $lang['Fname'],
'FILE_NAME' => $file['file_name'],
'L_FEMAIL' => $lang['Femail'],
'L_ETEXT' => $lang['Etext'],
'L_DEFAULTMAIL' => $lang['Defaultmail'],
'URL' => '' . $HTTP_HOST . '' . $PHP_SELF . '',
'ID' => $id,
'L_SEMAIL' => $lang['Semail'],
'L_ESUB' => $lang['Esub'])
);
}
#-----[ ZAMIEŃ NA ]---------------------------------------------
if (empty($act))
{
$template->assign_block_vars("email", array());
$server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
$server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));
$server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : '';
$script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
$template->assign_vars(array(
'S_EMAIL_ACTION' => append_sid("dload.php"),
'L_EMAIL' => $lang['Emailfile'],
'L_EMAILINFO' => $lang['Emailinfo'],
'L_YNAME' => $lang['Yname'],
'L_YEMAIL' => $lang['Yemail'],
'L_FNAME' => $lang['Fname'],
'FILE_NAME' => $file['file_name'],
'L_FEMAIL' => $lang['Femail'],
'L_ETEXT' => $lang['Etext'],
'L_DEFAULTMAIL' => $lang['Defaultmail'],
'URL' => $server_protocol . $server_name . $server_port . $script_name . $_SERVER['PHP_SELF'],
'ID' => $id,
'L_SEMAIL' => $lang['Semail'],
'L_ESUB' => $lang['Esub'])
);
}
#-----[ OTWÓRZ ]---------------------------------------------
# /pafiledb/includes/functions.php
#-----[ ZNAJD ]---------------------------------------------
.''
#-----[ ZAMIEŃ NA ]---------------------------------------------
.''
#-----[ OTWÓRZ ]---------------------------------------------
# album_thumbnail.php
#-----[ USUŃ w 4 miejscach ]---------------------------------------------
if ( !empty($db) )
{
$db->sql_close();
}
#-----[ OTWÓRZ ]---------------------------------------------
# album_upload.php
#-----[ ZNAJD ]---------------------------------------------
switch ($filetype)
{
case 'image/jpeg':
case 'image/jpg':
case 'image/pjpeg':
if ($album_config['jpg_allowed'] == 0)
{
message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']);
}
$pic_filetype = '.jpg';
break;
case 'image/png':
case 'image/x-png':
if ($album_config['png_allowed'] == 0)
{
message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']);
}
$pic_filetype = '.png';
break;
case 'image/gif':
if ($album_config['gif_allowed'] == 0)
{
message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']);
}
$pic_filetype = '.gif';
break;
default:
message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']);
}
#-----[ ZAMIEŃ NA ]---------------------------------------------
switch ($filetype)
{
case 'image/jpeg':
case 'image/jpg':
case 'image/pjpeg':
case 'jpeg':
case 'pjpeg':
case 'jpg':
if ($album_config['jpg_allowed'] == 0)
{
message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']);
}
$pic_filetype = '.jpg';
break;
case 'image/png':
case 'image/x-png':
case 'png':
if ($album_config['png_allowed'] == 0)
{
message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']);
}
$pic_filetype = '.png';
break;
case 'image/gif':
case 'gif':
if ($album_config['gif_allowed'] == 0)
{
message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']);
}
$pic_filetype = '.gif';
break;
default:
message_die(GENERAL_ERROR, $lang['Not_allowed_file_type']);
}
#-----[ OTWÓRZ ]---------------------------------------------
# common.php
#-----[ ZNAJD ]---------------------------------------------
// Show 'Board is disabled' message if needed.
if ( trim($board_config['board_disable']) && !defined('IN_ADMIN') && !defined('IN_LOGIN') )
{
$reason = $board_config['board_disable'];
$reason = str_replace("\n", "
", $reason);
message_die(GENERAL_MESSAGE, $reason, 'Information');
}
#-----[ ZAMIEŃ NA ]---------------------------------------------
if ( $board_config['db_backup_enable'] && $board_config['db_backup_time'] < (time() - (24 * 3600)) && !defined('IN_ADMIN') )
{
include($phpbb_root_path . 'includes/functions_admin.'.$phpEx);
db_backup();
}
// Show 'Board is disabled' message if needed.
if ( trim($board_config['board_disable']) && !defined('IN_ADMIN') && !defined('IN_LOGIN') )
{
if ( $board_config['board_disable'] == 'db_backup_progress' )
{
if ( $board_config['db_backup_time'] < (time() - 300) )
{
$sql = "UPDATE " . CONFIG_TABLE . "
SET config_value = ''
WHERE config_name = 'board_disable'";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Failed to update configuration', '', __LINE__, __FILE__, $sql);
}
}
else
{
message_die(GENERAL_MESSAGE, 'Database backup in progress please wait few seconds.', 'Information');
}
}
else
{
$reason = $board_config['board_disable'];
$reason = str_replace("\n", "
", $reason);
message_die(GENERAL_MESSAGE, $reason, 'Information');
}
}
#-----[ OTWÓRZ ]---------------------------------------------
# download.php
#-----[ ZNAJD ]---------------------------------------------
* email : acyd.burn@gmx.de
* $Id: download.php,v 1.39 2004/12/09 20:12:12 acydburn Exp $
*
* modification : (C) 2003 Przemo http://www.przemo.org
* date modification : ver. 1.9 2004/05/30 21:50
*
***************************************************************************/
#-----[ ZAMIEŃ NA ]---------------------------------------------
* email : acyd.burn@gmx.de
*
* $Id: download.php,v 1.41 2005/05/09 19:30:43 acydburn Exp $
*
*
***************************************************************************/
#-----[ ZNAJD ]---------------------------------------------
// Send out the Headers
header('Content-Type: ' . $attachment['mimetype'] . '; name="' . $attachment['real_filename'] . '"');
header('Content-Disposition: inline; filename="' . $attachment['real_filename'] . '"');
#-----[ ZAMIEŃ NA ]---------------------------------------------
// Send out the Headers
header('Content-Type: ' . $attachment['mimetype'] . '; name="' . htmlspecialchars($attachment['real_filename']) . '"');
header('Content-Disposition: inline; filename="' . htmlspecialchars($attachment['real_filename']) . '"');
#-----[ ZNAJD ]---------------------------------------------
else
{
message_die(GENERAL_ERROR, $lang['Error_no_attachment'] . "
404 File Not Found: The File " . $filename . " does not exist.");
}
if ( !empty($db) )
{
$db->sql_close();
}
exit;
#-----[ ZAMIEŃ NA ]---------------------------------------------
else
{
message_die(GENERAL_ERROR, $lang['Error_no_attachment'] . "
404 File Not Found: The File " . $filename . " does not exist.");
}
exit;
#-----[ USUŃ w dwóch miejscach ]---------------------------------------------
if ( !empty($db) )
{
$db->sql_close();
}
#-----[ OTWÓRZ ]---------------------------------------------
# gg.php
#-----[ ZNAJD ]---------------------------------------------
'STAT' => '',
#-----[ ZAMIEŃ NA ]---------------------------------------------
'STAT' => '',
#-----[ OTWÓRZ ]---------------------------------------------
# groupcp.php
#-----[ ZNAJD ]---------------------------------------------
if ( !($row = $db->sql_fetchrow($result)) )
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_level = " . USER . "
WHERE user_id = " . $userdata['user_id'];
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update user level', '', __LINE__, __FILE__, $sql);
}
}
#-----[ ZAMIEŃ NA ]---------------------------------------------
if ( !($row = $db->sql_fetchrow($result)) || $row['is_auth_mod'] == 0 )
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_level = " . USER . "
WHERE user_id = " . $userdata['user_id'];
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update user level', '', __LINE__, __FILE__, $sql);
}
}
#-----[ ZNAJD ]---------------------------------------------
$modgroup_pending_list = $db->sql_fetchrowset($result);
$modgroup_pending_count = count($modgroup_pending_list);
$sql = "SELECT count(*) as total
#-----[ ZAMIEŃ NA ]---------------------------------------------
$modgroup_pending_list = $db->sql_fetchrowset($result);
$modgroup_pending_count = count($modgroup_pending_list);
$sql = "SELECT count(*) as total
#-----[ ZNAJD ]---------------------------------------------
if ( !$members_count )
{
// No group members
$template->assign_block_vars('switch_no_members', array());
$template->assign_vars(array(
'L_NO_MEMBERS' => $lang['No_group_members'])
);
}
$current_page = ( !$members_count ) ? 1 : ceil( $members_count / $user_topics_per_page );
$template->assign_vars(array(
'PAGINATION' => generate_pagination("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id", $members_count, $user_topics_per_page, $start),
'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $user_topics_per_page ) + 1 ), $current_page ),
'L_GOTO_PAGE' => $lang['Goto_page'])
);
if ( $group_info['group_type'] == GROUP_HIDDEN && !$is_group_member && !$is_moderator )
{
// No group members
$template->assign_block_vars('switch_hidden_group', array());
$template->assign_vars(array(
'L_HIDDEN_MEMBERS' => $lang['Group_hidden_members'])
);
}
#-----[ ZAMIEŃ NA ]---------------------------------------------
if ( !$members_count )
{
// No group members
$template->assign_block_vars('switch_no_members', array());
$template->assign_vars(array(
'L_NO_MEMBERS' => $lang['No_group_members'])
);
}
if ( $group_info['group_type'] == GROUP_HIDDEN && !$is_group_member && !$is_moderator )
{
// No group members
$template->assign_block_vars('switch_hidden_group', array());
$template->assign_vars(array(
'L_HIDDEN_MEMBERS' => $lang['Group_hidden_members'])
);
$members_count = 0;
}
$current_page = ( !$members_count ) ? 1 : ceil( $members_count / $user_topics_per_page );
if ( $members_count > $user_topics_per_page )
{
$template->assign_vars(array(
'PAGINATION' => generate_pagination("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id", $members_count, $user_topics_per_page, $start),
'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $user_topics_per_page ) + 1 ), $current_page ),
'L_GOTO_PAGE' => $lang['Goto_page'])
);
}
#-----[ OTWÓRZ ]---------------------------------------------
# index.php
#-----[ ZNAJD ]---------------------------------------------
if ( $board_config['check_address'] && $HTTP_HOST != $board_config['server_name'] && isset($HTTP_HOST) && $board_config['server_name'] && $board_config['script_path'] && !isset($HTTP_GET_VARS['redir']) )
#-----[ ZAMIEŃ NA ]---------------------------------------------
if ( $board_config['check_address'] )
{
if ( !empty($HTTP_SERVER_VARS['SERVER_NAME']) || !empty($HTTP_ENV_VARS['SERVER_NAME']) )
{
$hostname = ( !empty($HTTP_SERVER_VARS['SERVER_NAME']) ) ? $HTTP_SERVER_VARS['SERVER_NAME'] : $HTTP_ENV_VARS['SERVER_NAME'];
}
else if ( !empty($HTTP_SERVER_VARS['HTTP_HOST']) || !empty($HTTP_ENV_VARS['HTTP_HOST']) )
{
$hostname = ( !empty($HTTP_SERVER_VARS['HTTP_HOST']) ) ? $HTTP_SERVER_VARS['HTTP_HOST'] : $HTTP_ENV_VARS['HTTP_HOST'];
}
else
{
$hostname = '';
}
}
if ( $board_config['check_address'] && $hostname != $board_config['server_name'] && $hostname && $board_config['server_name'] && $board_config['script_path'] && !isset($HTTP_GET_VARS['redir']) )
#-----[ OTWÓRZ ]---------------------------------------------
# login.php
#-----[ ZNAJD ]---------------------------------------------
if ( $board_config['check_address'] && $HTTP_HOST != $board_config['server_name'] && isset($HTTP_HOST) && $board_config['server_name'] && $board_config['script_path'] && !isset($HTTP_GET_VARS['redir']) )
#-----[ ZAMIEŃ NA ]---------------------------------------------
if ( $board_config['check_address'] )
{
if ( !empty($HTTP_SERVER_VARS['SERVER_NAME']) || !empty($HTTP_ENV_VARS['SERVER_NAME']) )
{
$hostname = ( !empty($HTTP_SERVER_VARS['SERVER_NAME']) ) ? $HTTP_SERVER_VARS['SERVER_NAME'] : $HTTP_ENV_VARS['SERVER_NAME'];
}
else if ( !empty($HTTP_SERVER_VARS['HTTP_HOST']) || !empty($HTTP_ENV_VARS['HTTP_HOST']) )
{
$hostname = ( !empty($HTTP_SERVER_VARS['HTTP_HOST']) ) ? $HTTP_SERVER_VARS['HTTP_HOST'] : $HTTP_ENV_VARS['HTTP_HOST'];
}
else
{
$hostname = '';
}
}
if ( $board_config['check_address'] && $hostname != $board_config['server_name'] && $hostname && $board_config['server_name'] && $board_config['script_path'] && !isset($HTTP_GET_VARS['redir']) )
#-----[ OTWÓRZ ]---------------------------------------------
# memberlist.php
#-----[ ZNAJD ]---------------------------------------------
$aim_status_img = '';
#-----[ ZAMIEŃ NA ]---------------------------------------------
$aim_status_img = '';
#-----[ OTWÓRZ ]---------------------------------------------
# modcp.php
#-----[ ZNAJD ]---------------------------------------------
include($phpbb_root_path . 'includes/functions_admin.'.$phpEx);
include($phpbb_root_path . 'includes/functions_log.'.$phpEx);
// Obtain initial var settings
#-----[ ZAMIEŃ NA ]---------------------------------------------
require_once($phpbb_root_path . 'includes/functions_admin.'.$phpEx);
include($phpbb_root_path . 'includes/functions_log.'.$phpEx);
include($phpbb_root_path . 'includes/functions_remove.'.$phpEx);
// Obtain initial var settings
#-----[ ZNAJD ]---------------------------------------------
if ( $confirm )
{
include($phpbb_root_path . 'includes/functions_remove.'.$phpEx);
$topics = ( isset($HTTP_POST_VARS['topic_id_list']) ) ? $HTTP_POST_VARS['topic_id_list'] : array($topic_id);
#-----[ ZAMIEŃ NA ]---------------------------------------------
if ( $confirm )
{
$topics = ( isset($HTTP_POST_VARS['topic_id_list']) ) ? $HTTP_POST_VARS['topic_id_list'] : array($topic_id);
#-----[ OTWÓRZ ]---------------------------------------------
# posting.php
#-----[ ZNAJD ]---------------------------------------------
if ( $mode == 'topicreview' )
{
require($phpbb_root_path . 'includes/topic_review.'.$phpEx);
topic_review($topic_id, false);
if ( !empty($db) )
{
$db->sql_close();
}
exit;
}
else if ( $mode == 'smilies' )
{
generate_smilies('window', PAGE_POSTING);
if ( !empty($db) )
{
$db->sql_close();
}
exit;
}
else if ( $mode == 'icons' )
{
more_icons(PAGE_POSTING);
if ( !empty($db) )
{
$db->sql_close();
}
exit;
}
#-----[ ZAMIEŃ NA ]---------------------------------------------
if ( $mode == 'topicreview' )
{
require($phpbb_root_path . 'includes/topic_review.'.$phpEx);
topic_review($topic_id, false);
exit;
}
else if ( $mode == 'smilies' )
{
generate_smilies('window', PAGE_POSTING);
exit;
}
else if ( $mode == 'icons' )
{
more_icons(PAGE_POSTING);
exit;
}
#-----[ ZNAJD ]---------------------------------------------
if ( !empty($HTTP_POST_VARS['disable_html']) || !$message_html )
{
$preview_message = str_replace("\n", '
', $preview_message);
}
$template->set_filenames(array(
#-----[ ZAMIEŃ NA ]---------------------------------------------
if ( !empty($HTTP_POST_VARS['disable_html']) || !$message_html )
{
$preview_message = str_replace("\n", '
', $preview_message);
}
$selected = ' "selected="selected"';
$check0 = ($msg_expire == '0') ? $selected : '';
$check1 = ($msg_expire == '1') ? $selected : '';
$check2 = ($msg_expire == '2') ? $selected : '';
$check3 = ($msg_expire == '3') ? $selected : '';
$check4 = ($msg_expire == '4') ? $selected : '';
$check5 = ($msg_expire == '5') ? $selected : '';
$check6 = ($msg_expire == '6') ? $selected : '';
$check7 = ($msg_expire == '7') ? $selected : '';
$check14 = ($msg_expire == '14') ? $selected : '';
$check30 = ($msg_expire == '30') ? $selected : '';
$check90 = ($msg_expire == '90') ? $selected : '';
$template->set_filenames(array(
#-----[ OTWÓRZ ]---------------------------------------------
# printview.php
#-----[ USUŃ linie ]---------------------------------------------
$db->sql_close();
#-----[ OTWÓRZ ]---------------------------------------------
# privmsg.php
#-----[ ZNAJD ]---------------------------------------------
$aim_status_img = '';
#-----[ ZAMIEŃ NA ]---------------------------------------------
$aim_status_img = '';
#-----[ OTWÓRZ ]---------------------------------------------
# profilephoto_mod.php
#-----[ ZNAJD ]---------------------------------------------
switch( $type )
{
case 'jpeg':
case 'pjpeg':
case 'jpg':
return '.jpg';
break;
case 'gif':
return '.gif';
break;
case 'png':
return '.png';
break;
default:
$error = true;
$error_msg = (!empty($error_msg)) ? $error_msg . '
' . $lang['Avatar_filetype'] : $lang['Avatar_filetype'];
break;
}
#-----[ ZAMIEŃ NA ]---------------------------------------------
switch( $type )
{
case 'image/jpeg':
case 'image/jpg':
case 'jpeg':
case 'pjpeg':
case 'jpg':
return '.jpg';
break;
case 'image/gif':
case 'gif':
return '.gif';
break;
case 'image/png':
case 'png':
case 'image/x-png':
return '.png';
break;
default:
$error = true;
$error_msg = (!empty($error_msg)) ? $error_msg . '
' . $lang['Avatar_filetype'] : $lang['Avatar_filetype'];
break;
}
#-----[ OTWÓRZ ]---------------------------------------------
# search.php
#-----[ USUŃ ]---------------------------------------------
if ( !empty($db) )
{
$db->sql_close();
}
#-----[ ZNAJD ]---------------------------------------------
elseif ( eregi("[mod]", $message) )
{
$message = preg_replace("#\[mod\](.*?)\[/mod\]#si", "", $message);
$message = bbencode_first_pass($message, $bbcode_uid);
}
// If the board has HTML off but the post has HTML
// on then we process it, else leave it alone
if ( $return_chars == -1 )
{
$message = strip_tags($message);
$message = preg_replace("/\[.*?:$bbcode_uid:?.*?\]/si", '', $message);
$message = preg_replace('/\[url\]|\[\/url\]/si', '', $message);
$message = (strlen($message) > $return_chars) ? substr($message, 0, $return_chars) . ' ...' : $message;
if ( count($search_string) )
{
$message = preg_replace($search_string, $replace_string, $message);
}
}
#-----[ ZAMIEŃ NA ]---------------------------------------------
else if ( eregi("[mod]", $message) )
{
$message = preg_replace("#\[mod\](.*?)\[/mod\]#si", "", $message);
$message = bbencode_first_pass($message, $bbcode_uid);
}
// If the board has HTML off but the post has HTML
// on then we process it, else leave it alone
if ( $return_chars != -1 )
{
$message = strip_tags($message);
$message = preg_replace("/\[.*?:$bbcode_uid:?.*?\]/si", '', $message);
$message = preg_replace('/\[url\]|\[\/url\]/si', '', $message);
$message = (strlen($message) > $return_chars) ? substr($message, 0, $return_chars) . ' ...' : $message;
}
#-----[ ZNAJD ]---------------------------------------------
$forum_name = get_object_lang(POST_FORUM_URL . $searchset[$i]['forum_id'], 'name');
$template->assign_block_vars('searchresults', array(
#-----[ ZAMIEŃ NA ]---------------------------------------------
$forum_name = get_object_lang(POST_FORUM_URL . $searchset[$i]['forum_id'], 'name');
if ( !empty($HTTP_SERVER_VARS['SERVER_NAME']) || !empty($HTTP_ENV_VARS['SERVER_NAME']) )
{
$server_name = ( !empty($HTTP_SERVER_VARS['SERVER_NAME']) ) ? $HTTP_SERVER_VARS['SERVER_NAME'] : $HTTP_ENV_VARS['SERVER_NAME'];
}
else if ( !empty($HTTP_SERVER_VARS['HTTP_HOST']) || !empty($HTTP_ENV_VARS['HTTP_HOST']) )
{
$server_name = ( !empty($HTTP_SERVER_VARS['HTTP_HOST']) ) ? $HTTP_SERVER_VARS['HTTP_HOST'] : $HTTP_ENV_VARS['HTTP_HOST'];
}
else
{
$server_name = '';
}
$template->assign_block_vars('searchresults', array(
#-----[ ZNAJD ]---------------------------------------------
'OPEN_ALL_NEW_WINDOW' => $topic_url_redirect . (($_SERVER['REQUEST_URI'] && $_SERVER['HTTP_HOST']) ? '&sleep=' . ($i * 5) : ''))
#-----[ ZAMIEŃ NA ]---------------------------------------------
'OPEN_ALL_NEW_WINDOW' => $topic_url_redirect . (($_SERVER['REQUEST_URI'] && $server_name) ? '&sleep=' . ($i * 5) : ''))
#-----[ ZNAJD ]---------------------------------------------
$s_characters = '';
$s_characters .= '';
$s_characters .= '';
$s_characters .= '';
for($i = 100; $i < 1100 ; $i += 100)
{
$selected = ( $i == 200 ) ? ' selected="selected"' : '';
$s_characters .= '';
}
#-----[ ZAMIEŃ NA ]---------------------------------------------
$s_characters = '';
$s_characters .= '';
$s_characters .= '';
$s_characters .= '';
$s_characters .= '';
$s_characters .= '';
$s_characters .= '';
$s_characters .= '';
#-----[ OTWÓRZ ]---------------------------------------------
# staff.php
#-----[ ZNAJD ]---------------------------------------------
$aim_status_img = '';
#-----[ ZAMIEŃ NA ]---------------------------------------------
$aim_status_img = '';
#-----[ OTWÓRZ ]---------------------------------------------
# topic_view_users.php
#-----[ ZNAJD ]---------------------------------------------
$aim_status_img = '';
#-----[ ZAMIEŃ NA ]---------------------------------------------
$aim_status_img = '';
#-----[ OTWÓRZ ]---------------------------------------------
# uacp.php
#-----[ ZNAJD ]---------------------------------------------
$Id: uacp.php,v 1.15 2004/10/31 16:46:59 acydburn Exp $
#-----[ ZAMIEŃ NA ]---------------------------------------------
$Id: uacp.php,v 1.17 2005/05/09 19:30:45 acydburn Exp $
#-----[ ZNAJD ]---------------------------------------------
$hidden_field = '';
$hidden_field .= '';
$template->assign_block_vars('attachrow', array(
'ROW_NUMBER' => $i + ($start + 1 ),
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'FILENAME' => $attachments[$i]['real_filename'],
'COMMENT' => stripslashes(trim(nl2br($attachments[$i]['comment']))),
#-----[ ZAMIEŃ NA ]---------------------------------------------
$hidden_field = '';
$hidden_field .= '';
$comment = trim(htmlspecialchars(stripslashes($attachments[$i]['comment'])));
$comment = str_replace("\n", '
', $comment);
$template->assign_block_vars('attachrow', array(
'ROW_NUMBER' => $i + ($start + 1 ),
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'FILENAME' => htmlspecialchars($attachments[$i]['real_filename']),
'COMMENT' => $comment,
#-----[ OTWÓRZ ]---------------------------------------------
# viewforum.php
#-----[ ZNAJD ]---------------------------------------------
else
{
$forum_id = '';
}
define('IN_VIEWFORUM', true);
#-----[ ZAMIEŃ NA ]---------------------------------------------
else
{
$forum_id = '';
}
if ( isset($HTTP_GET_VARS['show_ignore']) || isset($HTTP_POST_VARS['show_ignore']) )
{
$show_ignore = true;
$show_ignore_link = '&show_ignore=1';
}
define('IN_VIEWFORUM', true);
#-----[ USUŃ ]---------------------------------------------
if ( !empty($db) )
{
$db->sql_close();
}
#-----[ ZNAJD ]---------------------------------------------
$template->assign_vars(array(
'META' => '')
);
}
$message = $lang['Topics_marked_read'] . '
' . sprintf($lang['Click_return_forum'], '', ' ');
message_die(GENERAL_MESSAGE, $message);
}
// End handle marking posts
$tracking_topics = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t'])) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : '';
$tracking_forums = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f'])) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : '';
// Do the forum Prune
if ( $is_auth['auth_mod'] )
{
if ( $forum_row['prune_next'] < time() && $forum_row['prune_enable'] )
{
include($phpbb_root_path . 'includes/functions_remove.'.$phpEx);
require($phpbb_root_path . 'includes/functions_admin.'.$phpEx);
auto_prune($forum_id);
}
}
// End of forum prune
#-----[ ZAMIEŃ NA ]---------------------------------------------
$template->assign_vars(array(
'META' => '')
);
}
$message = $lang['Topics_marked_read'] . '
' . sprintf($lang['Click_return_forum'], '', ' ');
message_die(GENERAL_MESSAGE, $message);
}
// End handle marking posts
$tracking_topics = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t'])) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : '';
$tracking_forums = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f'])) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : '';
// Do the forum Prune
if ( $is_auth['auth_mod'] )
{
if ( $forum_row['prune_next'] < time() && $forum_row['prune_enable'] )
{
include($phpbb_root_path . 'includes/functions_remove.'.$phpEx);
require_once($phpbb_root_path . 'includes/functions_admin.'.$phpEx);
auto_prune($forum_id);
}
}
// End of forum prune
#-----[ ZNAJD ]---------------------------------------------
if ( $board_config['ignore_topics'] && $userdata['session_logged_in'] )
#-----[ ZAMIEŃ NA ]---------------------------------------------
if ( $board_config['ignore_topics'] && $userdata['session_logged_in'] && !$show_ignore)
#-----[ ZNAJD ]---------------------------------------------
'S_POST_DAYS_ACTION' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_id . "&start=$start"))
#-----[ ZAMIEŃ NA ]---------------------------------------------
'S_POST_DAYS_ACTION' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_id . "&start=$start$show_ignore_link"))
#-----[ ZNAJD ]---------------------------------------------
if ( $board_config['ignore_topics'] && $userdata['session_logged_in'] && $userdata['view_ignore_topics'] )
{
$span_i++;
$span_j++;
$title_style = ($board_config['overlib']) ? ' onMouseOver="return overlib(\'
' . $lang['show_ignore_topics'] . ' |