#########################################################
#
# Aktualizacja forum z wersji 1.12.3 do wersji 1.12.4
#
#########################################################
#
### SQL ###
#
# Przy dużych tabelach read_history sugeruję wykonywać te zapytania pojedynczo, mogš długo potrwać.
ALTER TABLE phpbb_read_history DROP PRIMARY KEY;
ALTER TABLE phpbb_read_history ADD topic_id mediumint(8) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE phpbb_read_history ADD forum_id smallint(5) UNSIGNED DEFAULT '0' NOT NULL;
ALTER TABLE phpbb_read_history ADD INDEX (user_id);
ALTER TABLE phpbb_read_history ADD INDEX (post_id);
ALTER TABLE phpbb_read_history ADD INDEX (topic_id);
ALTER TABLE phpbb_read_history ADD INDEX (forum_id);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('rh_without_days', '3');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('rh_max_posts', '1000');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('public_category', '');
UPDATE phpbb_config SET config_value = '1.12.4' WHERE config_name = 'version';
### Oraz
UPDATE phpbb_portal_config SET config_value = '' WHERE config_name = 'ri_time';
UPDATE phpbb_portal_config SET config_value = '' WHERE config_name = 'ri_data';
# W celu pobrania odrazu nowej informacji o najnowszej wersji z mojego serwera
#########################################################
Kolejnš czynnociš jest nadpisanie wszystkich plików z katalogu http://www.przemo.org/phpBB2/download/124/update1.12.3-1.12.4.zip
Jeżeli masz inny styl niż subSilver:
- Skopiuj do katalogu /templates/Styl/portal_modules/ plik: /templates/subSilver/portal_modules/pol_body.tpl
- Skopiuj do katalogu /templates/Styl/images/ plik: /templates/subSilver/images/user_agent/icon_aix.gif
- Skopiuj do katalogu /templates/Styl/ plik: /templates/subSilver/overlib.js (zmień w nim kolory jeli trzeba)
- Zaktualizuj styl korzystajšc z instrukcji z dołu pliku "Aktualizacja stylu"
# Koniec
Poniżej znajduje się instrukcja dla osób, które majš zainstalowane mody i chcš edytować pliki ręcznie.
Sprawd jakie pliki masz zmienione przez mody i nadpisz wszystkie pliki z katalogu update1.12.3-1.12.4
z wyjštkiem plików zmienionych przez mody.
Nadpisz pliki: (sš to pliki bardzo zmienione lub pliki które raczej nie sš modyfikowane przez mody)
/db/schemas/mysql_basic.sql
/db/schemas/mysql_schema.sql
/dbloader/dbdata.inc
/includes/read_history.php
/scripts/ (wszystkie pliki)
/stat_modules/ (wszystkie pliki)
/templates/Styl/portal_modules/pol_body.tpl
/templates/Styl/images/user_agent/icon_aix.gif
/templates/Styl/overlib.js
ignore_topics.php
modcp.php
resync_forum_stats.php
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /admin/admin_board.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.0
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
$template->set_filenames(array(
'body' => 'admin/board_config_body.tpl')
);
#
# -- [ PONIŻEJ WSTAW ] -------------------------------------------------
#
$public_directories = '';
array_unshift($lang['Public_categories'], '');
for($i = 1; $i < count($lang['Public_categories']); $i++)
{
$public_directories .= '';
}
#
# -- [ ZNAJD ] -------------------------------------------------
#
'L_ALLOW_AUTOLOGIN_EXPLAIN' => $lang['Allow_autologin_explain'],
#
# -- [ PONIŻEJ WSTAW ] -------------------------------------------------
#
'L_AA_NO_LIMIT' => $lang['AA_no_limit'],
'L_AA_WITH_IP' => $lang['AA_with_IP'],
'L_AA_WITH_STAFF_IP' => $lang['AA_with_staff_IP'],
#
# -- [ ZNAJD ] -------------------------------------------------
#
'L_DISABLE_REGISTERING' => $lang['Registering'],
#
# -- [ PONIŻEJ WSTAW ] -------------------------------------------------
#
'L_PUBLIC_DIRECTORY' => $lang['Public_category'],
'PUBLIC_DIRECTORIES' => $public_directories,
#
# -- [ ZNAJD ] -------------------------------------------------
#
'ALLOW_AUTOLOGIN_YES' => ($new['allow_autologin']) ? $checked : '',
'ALLOW_AUTOLOGIN_NO' => (!$new['allow_autologin']) ? $checked : '',
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
'AA_CHECK_0' => (!$new['allow_autologin']) ? ' selected="selected"' : '',
'AA_CHECK_1' => ($new['allow_autologin'] == 1) ? ' selected="selected"' : '',
'AA_CHECK_2' => ($new['allow_autologin'] == 2) ? ' selected="selected"' : '',
'AA_CHECK_3' => ($new['allow_autologin'] == 3) ? ' selected="selected"' : '',
#
# -- [ ZNAJD ] -------------------------------------------------
#
'L_READ_TRACKING_DAYS' => $lang['read_tracking_days'],
#
# -- [ PONIŻEJ WSTAW ] -------------------------------------------------
#
'L_READ_TRACKING_DAYS_E' => $lang['read_tracking_days_e'],
'L_READ_TRACKING_MAX_POSTS' => $lang['read_tracking_max_posts'],
'L_READ_TRACKING_MAX_POSTS_E' => $lang['read_tracking_max_posts_e'],
'L_READ_TRACKING_W_DAYS' => $lang['read_tracking_without_days'],
'L_READ_TRACKING_W_DAYS_E' => $lang['read_tracking_without_days_e'],
#
# -- [ ZNAJD ] -------------------------------------------------
#
'DAY_TO_PRUNE' => $new['day_to_prune'],
#
# -- [ PONIŻEJ WSTAW ] -------------------------------------------------
#
'MAX_POSTS' => $new['rh_max_posts'],
'WITHOUT_DAYS' => $new['rh_without_days'],
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /admin/admin_custom_fields.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( $no_forum[$i]{0} == POST_FORUM_URL )
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( $no_forum[$i] && @$no_forum[$i]{0} == POST_FORUM_URL )
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /admin/admin_forums.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.0
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
build_tree($cats, $forums, $new_topic_data, $tracking_topic, $tracking_forums, $tracking_all, $parents);
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
build_tree($cats, $forums, $new_topic_data, $tracking_topics, $tracking_forums, $tracking_all, $parents);
#
# -- [ ZNAJD ] -------------------------------------------------
#
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't move posts to other forum", "", __LINE__, __FILE__, $sql);
}
#
# -- [ PONIŻEJ WSTAW ] -------------------------------------------------
#
$sql = "UPDATE " . READ_HIST_TABLE . "
SET forum_id = $to_id
WHERE forum_id = $from_id";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't move topics to other forum", "", __LINE__, __FILE__, $sql);
}
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /admin/admin_portal.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( $config_name == 'witch_poll_forum' || $config_name == 'witch_news_forum' )
{
$f_forums_id = '';
for($i = 0; $i < count($new[$config_name]); $i++)
{
if ( $new[$config_name][$i]{0} == POST_FORUM_URL )
{
$f_forums_id .= (($f_forums_id) ? ', ' : '') . substr($new[$config_name][$i], 1);
}
}
$new[$config_name] = $f_forums_id;
}
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( ($config_name == 'witch_poll_forum' || $config_name == 'witch_news_forum') && is_array($new[$config_name]) )
{
$f_forums_id = '';
for($i = 0; $i < count($new[$config_name]); $i++)
{
if ( $new[$config_name][$i] && @$new[$config_name][$i]{0} == POST_FORUM_URL )
{
$f_forums_id .= (($f_forums_id) ? ', ' : '') . substr($new[$config_name][$i], 1);
}
}
$new[$config_name] = $f_forums_id;
}
#
# -- [ ZNAJD ] -------------------------------------------------
#
$list_modules = array('portal_menu', 'download', 'album_menu', 'info_menu', 'recent_topics_menu', 'top_posters_menu', 'stats_user_menu', 'whoonline_menu', 'search_menu', 'login_menu', 'register_menu', 'links_menu', 'birthday_menu', 'chat_menu', 'clock_menu', 'custom_module1', 'custom_module2', 'blank_module1', 'blank_module2', 'blank_module3', 'blank_module4', '');
$lang_modules = array($lang['Board_navigation'], $lang['Downloads2'], $lang['album_pics'], $lang['info_menu'], $lang['Recent_topics'], $lang['top_posters'], $lang['stats_user'], $lang['Who_is_Online'], $lang['Search'], $lang['login'], $lang['Quick_register'], $lang['links'], $lang['Today'], $lang['Who_is_Chatting'], $lang['clock'], $lang['custom_mod'] . ' 1', $lang['custom_mod'] . ' 2', $lang['custom_blank_mod'] . ' 1', $lang['custom_blank_mod'] . ' 2', $lang['custom_blank_mod'] . ' 3', $lang['custom_blank_mod'] . ' 4', $lang['blank'], );
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$list_modules = array('poll_menu', 'portal_menu', 'download', 'album_menu', 'info_menu', 'recent_topics_menu', 'top_posters_menu', 'stats_user_menu', 'whoonline_menu', 'search_menu', 'login_menu', 'register_menu', 'links_menu', 'birthday_menu', 'chat_menu', 'clock_menu', 'custom_module1', 'custom_module2', 'blank_module1', 'blank_module2', 'blank_module3', 'blank_module4', '');
$lang_modules = array($lang['Poll'], $lang['Board_navigation'], $lang['Downloads2'], $lang['album_pics'], $lang['info_menu'], $lang['Recent_topics'], $lang['top_posters'], $lang['stats_user'], $lang['Who_is_Online'], $lang['Search'], $lang['login'], $lang['Quick_register'], $lang['links'], $lang['Today'], $lang['Who_is_Chatting'], $lang['clock'], $lang['custom_mod'] . ' 1', $lang['custom_mod'] . ' 2', $lang['custom_blank_mod'] . ' 1', $lang['custom_blank_mod'] . ' 2', $lang['custom_blank_mod'] . ' 3', $lang['custom_blank_mod'] . ' 4', $lang['blank'], );
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /admin/admin_resync_forum_stats.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( !$result )
{
message_die(GENERAL_ERROR, 'Could not delete bad topics info', '', __LINE__, __FILE__, $sql);
}
#
# -- [ PONIŻEJ WSTAW ] -------------------------------------------------
#
$sql = "DELETE FROM " . READ_HIST_TABLE . "
WHERE topic_id = " . $topics[$j]['topic_id'];
$result = $db->sql_query($sql);
if ( !$result )
{
message_die(GENERAL_ERROR, 'Could not delete bad topics info', '', __LINE__, __FILE__, $sql);
}
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /admin/admin_uninstall.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
'xs_version'
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
'xs_version', 'rh_without_days', 'rh_max_posts', 'public_category'
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /admin/index.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.3
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
global $db, $board_config, $ri_config;
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
global $db, $board_config, $ri_config, $public_description;
#
# -- [ ZNAJD ] -------------------------------------------------
#
$forum_addr = $server_name . $server_port . $script_name;
}
$path = "/phpBB2/phpBB_data.php?version=" . $board_config['version'] . "&lang=" . $board_config['default_lang'] . "&addr=" . $forum_addr;
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
// Jezeli zostanie wykryta proba zafalszowania wysylanych danych, bedzie na stale zablokowana komunikacja
// Spowoduje to utrate informacji o aktualizacjach oraz mozliwosc prezentacji w katalogu for.
$forum_addr = $server_name . $server_port . $script_name . '&tc=' . get_db_stat('topiccount');
if ( $board_config['public_category'] )
{
$public_description = '&pc=' . $board_config['public_category'] . '&pd=' . base64_encode($board_config['site_desc']);
}
}
$path = "/phpBB2/phpBB_data.php?version=" . $board_config['version'] . "&lang=" . $board_config['default_lang'] . "&addr=" . $forum_addr . $public_description;
#
# -- [ ZNAJD ] -------------------------------------------------
#
"L_AVATAR_DIR_SIZE" => '' . $lang['Avatar_dir_size'] . '',
"L_DB_SIZE" => '' . $lang['Database_size'] . '',
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
"L_AVATAR_DIR_SIZE" => $lang['Avatar_dir_size'],
"L_DB_SIZE" => $lang['Database_size'],
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ($avatar_dir = @opendir($phpbb_root_path))
{
closedir($avatar_dir);
$root_dir_size = get_folder_size($phpbb_root_path);
//
// This bit of code translates the avatar directory size into human readable format
// Borrowed the code from the PHP.net annoted manual, origanally written by:
// Jesse (jesse@jess.on.ca)
//
if($root_dir_size >= 1024000)
{
$root_dir_size = round($root_dir_size / 1024000 * 100, -1) / 100 . ' MB';
}
else if($root_dir_size >= 1024)
{
$root_dir_size = round($root_dir_size / 1024 * 100, -1) / 100 . ' KB';
}
else
{
$root_dir_size = $root_dir_size . ' B';
}
}
else
{
// Couldn't open Avatar dir.
$root_dir_size = $lang['Not_available'];
}
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( isset($HTTP_GET_VARS['dir_details']) )
{
if ($avatar_dir = @opendir($phpbb_root_path))
{
closedir($avatar_dir);
$root_dir_size = get_folder_size($phpbb_root_path);
//
// This bit of code translates the avatar directory size into human readable format
// Borrowed the code from the PHP.net annoted manual, origanally written by:
// Jesse (jesse@jess.on.ca)
//
if($root_dir_size >= 1024000)
{
$root_dir_size = round($root_dir_size / 1024000 * 100, -1) / 100 . ' MB';
}
else if($root_dir_size >= 1024)
{
$root_dir_size = round($root_dir_size / 1024 * 100, -1) / 100 . ' KB';
}
else
{
$root_dir_size = $root_dir_size . ' B';
}
}
else
{
$root_dir_size = $lang['Avatar_dir_size'];
}
}
else
{
$root_dir_size = '' . $lang['View_Information'] . '';
}
#
# -- [ ZNAJD ] -------------------------------------------------
#
if( preg_match("/^mysql/", SQL_LAYER) )
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if( preg_match("/^mysql/", SQL_LAYER) && isset($HTTP_GET_VARS['sql_details']))
#
# -- [ ZNAJD ] -------------------------------------------------
#
else
{
$dbsize = $lang['Not_available'];
}
if ( is_integer($dbsize) )
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
else
{
$dbsize = (!isset($HTTP_GET_VARS['sql_details'])) ? '' . $lang['View_Information'] . '' : $lang['Not_available'];
}
if ( is_integer($dbsize) )
#
# -- [ ZNAJD ] -------------------------------------------------
#
$sql = "SELECT u.user_id, u.username, u.user_session_time, u.user_session_page, u.user_level, u.user_jr, s.session_logged_in, s.session_ip, s.session_start
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$sql = "SELECT u.user_id, u.username, u.user_session_time, u.user_session_start, u.user_session_time, u.user_session_page, u.user_level, u.user_jr, s.session_logged_in, s.session_ip, s.session_start
#
# -- [ ZNAJD ] -------------------------------------------------
#
$time_online = ((CR_TIME - $onlinerow_reg[$i]['session_start']) < 3600) ? round( (CR_TIME - $onlinerow_reg[$i]['session_start']) / 60, 0 ) : round( (CR_TIME - $onlinerow_reg[$i]['session_start']) / 60 / 60, 1 );
$lang_online = ((CR_TIME - $onlinerow_reg[$i]['session_start']) < 3600) ? $lang['online_minutes'] : $lang['online_hours'];
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$user_time_online = ($onlinerow_reg[$i]['user_session_start']) ? $onlinerow_reg[$i]['user_session_time'] - $onlinerow_reg[$i]['user_session_start'] : CR_TIME - $onlinerow_reg[$i]['session_start'];
$time_online = (($user_time_online) < 3600) ? round( ($user_time_online) / 60, 0 ) : round( ($user_time_online) / 60 / 60, 1 );
$lang_online = (($user_time_online) < 3600) ? $lang['online_minutes'] : $lang['online_hours'];
#
# -- [ ZNAJD ] -------------------------------------------------
#
$time_online = ((CR_TIME - $onlinerow_guest[$i]['session_start']) < 3600) ? round( (CR_TIME - $onlinerow_guest[$i]['session_start']) / 60, 0 ) : round( (CR_TIME - $row['session_start']) / 60 / 60, 1 );
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$time_online = ((CR_TIME - $onlinerow_guest[$i]['session_start']) < 3600) ? round( (CR_TIME - $onlinerow_guest[$i]['session_start']) / 60, 0 ) : round( (CR_TIME - $onlinerow_guest['session_start']) / 60 / 60, 1 );
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /admin/pagestart.php
#
# -- [ ZNAJD ] -------------------------------------------------
# (Występuje dwa razy, zamień dwa razy)
/^index.$phpEx/
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
/index.$phpEx/
#
# -- [ ZNAJD ] -------------------------------------------------
#
redirect(append_sid("login.$phpEx?redirect=admin/" . (($admin_url) ? str_replace('?', '&', $admin_url) : "index.$phpEx") . "&admin=1", true));
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
redirect(append_sid("login.$phpEx?redirect=admin/" . (($admin_url) ? str_replace('?', '&', $admin_url) : "index.$phpEx") . "&admin=1", true));
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /admin/xs_include.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
if($allow_local && xs_dir_writable('../templates/'))
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if($allow_local)
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /includes/bbcode.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.3
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ USUŃ ] -------------------------------------------------
#
$text = eregi_replace('cookie', 'cookie', $text);
#
# -- [ ZNAJD ] -------------------------------------------------
#
for ($i = 0; $i < count($smilies); $i++)
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$count_smilies = count($smilies);
for ($i = 0; $i < $count_smilies; $i++)
#
# -- [ ZNAJD ] -------------------------------------------------
#
$message = preg_replace($orig, $repl, ' ' . $message . ' ');
$message = substr($message, 1, -1);
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$message = preg_replace($orig, $repl, ' ' . preg_replace("/\r\n|\n/", ' sm' . chr(5) . ' ', $message) . ' ');
$message = substr(str_replace(' sm' . chr(5) . ' ', "\n", $message), 1, -1);
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /includes/functions.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.3
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ USUŃ ] -------------------------------------------------
#
// $tree['unread_topics'][idx] => boolean value to true if there is new topics
#
# -- [ ZNAJD ] -------------------------------------------------
#
$remplacement_word = array();
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$replacement_word = array();
#
# -- [ ZNAJD ] -------------------------------------------------
#
$new_topic_data = $tracking_topics = $tracking_forums = array();
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$new_topic_data = $tracking_topics = $tracking_forums = $tracking_all = array();
#
# -- [ USUŃ ] -------------------------------------------------
#
$tree['data'][$i]['tree.unread_topics'] = $tree['unread_topics'][$i];
#
# -- [ USUŃ ] -------------------------------------------------
#
$tree['data'][$main_idx]['tree.unread_topics'] = $tree['data'][$i]['tree.unread_topics'];
#
# -- [ ZNAJD ] -------------------------------------------------
#
$remplacement_word = array();
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$replacement_word = array();
#
# -- [ ZNAJD ] -------------------------------------------------
#
$remplacement_word = array();
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$replacement_word = array();
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( DEBUG )
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( DEBUG && $sql )
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( DEBUG && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) )
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( DEBUG && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) && $sql )
#
# -- [ ZNAJD ] -------------------------------------------------
#
foreach( $topic_id as $id )
{
if( !isset($ptp_buff[$user_id][$id]) )
{
$ptp_buff[$user_id][$id] = '';
}
}
return;
}
}
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
foreach( $topic_id as $id )
{
if( !isset($ptp_buff[$user_id][$id]) )
{
$ptp_buff[$user_id][$id] = '';
}
}
}
return;
}
#
# -- [ ZNAJD ] -------------------------------------------------
#
else
{
if ( !($result = $db->sql_query($sql)) )
{
return false;
}
$row = $db->sql_fetchrow($result);
sql_cache('write', $cache_name, $row);
}
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
else if ( $check_cache === false )
{
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
sql_cache('write', $cache_name, $row);
}
else
{
return false;
}
#
# -- [ ZNAJD ] -------------------------------------------------
#
unset($data, $serialize_data, $data_rep);
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
unset($data);
#
# -- [ ZNAJD ] -------------------------------------------------
#
return array($username, '');
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$style_color = ($style) ? ' style="' . $style . '"' : '';
return array($username, $style_color);
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /includes/functions_add.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.3
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
$reason_out = ($reason == '0' || empty($reason_out) || is_numeric($reason_out)) ? '.' : ". \n\r" . $user_lang['reason'] . ': ' . $reason_out;
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$reason_out = ($reason == '0' || empty($reason_out) || is_numeric($reason_out)) ? '.' : ". \n\r" . $user_lang['Reason'] . ': ' . $reason_out;
#
# -- [ ZNAJD ] -------------------------------------------------
#
'URL' => $url_absolute,
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
'URL' => $server_protocol . $server_name . $server_port,
#
# -- [ ZNAJD ] -------------------------------------------------
#
function user_agent($agent, $uaimages)
{
global $phpbb_root_path;
$uaimages = $uaimages . '/user_agent/';
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
function user_agent($agent)
{
#
# -- [ ZNAJD ] -------------------------------------------------
#
$sizes_sa = @getimagesize($phpbb_root_path . $uaimages . 'icon_' . $sa . '.gif');
$sizes_sa = (intval($sizes_sa[0]) > 0 && intval($sizes_sa[1]) > 0) ? '" width="' . $sizes_sa[0] . '" height="' . $sizes_sa[1] : '';
$sizes_ba = @getimagesize($phpbb_root_path . $uaimages . 'icon_' . $ba . '.gif');
$sizes_ba = (intval($sizes_ba[0]) > 0 && intval($sizes_ba[1]) > 0) ? '" width="' . $sizes_ba[0] . '" height="' . $sizes_ba[1] : '';
return array('icon_' . $sa . '.gif' . $sizes_sa, 'icon_' . $ba . '.gif' . $sizes_ba, $agent);
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
return array('icon_' . $sa . '.gif', 'icon_' . $ba . '.gif', $agent);
#
# -- [ ZNAJD ] -------------------------------------------------
#
$forums_data = array();
if ( $check_cache = sql_cache('check', 'forum_data') )
{
include($check_cache);
$forums_data = $forum_data;
$cached = true;
}
else
{
$sql = "SELECT *
FROM " . FORUMS_TABLE;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain forums information', '', __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
$forums_data[] = $row;
}
sql_cache('write', 'forum_data', $forums_data);
}
$forum_data = array();
foreach($forums_data as $key => $val)
{
$forum_data[$val['forum_id']] = get_object_lang(POST_FORUM_URL . $val['forum_id'], 'name');
}
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( $check_cache = sql_cache('check', 'forum_data') )
{
include($check_cache);
}
else
{
$forum_data = array();
$sql = "SELECT *
FROM " . FORUMS_TABLE;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain forums information', '', __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
$forum_data[] = $row;
}
sql_cache('write', 'forum_data', $forum_data);
}
$forums_data = array();
if ( is_array($forum_data) )
{
foreach($forum_data as $key => $val)
{
$forums_data[$val['forum_id']] = get_object_lang(POST_FORUM_URL . $val['forum_id'], 'name');
}
}
#
# -- [ ZNAJD ] -------------------------------------------------
#
$location = $forum_data[$row['session_page']];
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$location = $forums_data[$row['session_page']];
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /includes/functions_admin.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.0
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not remove topic', '', __LINE__, __FILE__, $sql);
}
PONIZEJ WSTAW:
$sql = 'DELETE FROM ' . READ_HIST_TABLE . " WHERE topic_id = $id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not remove topic', '', __LINE__, __FILE__, $sql);
}
#
# -- [ USUŃ CAŁĽ FUNKCJĘ ] -------------------------------------------------
# OD:
function recalculate_user_posts($old_forum_id, $new_forum_id, $topic_id)
{
#
# -- [ DO ] -------------------------------------------------
#
return;
}
#
# -- [ W TO MIEJSCE WSTAW ] -------------------------------------------------
#
function recalculate_user_posts($old_forum_id, $new_forum_id, $ids, $mode = 'post')
{
global $db;
$new_forum_id_count = (no_post_count($new_forum_id)) ? true : false;
$old_forum_id_count = (no_post_count($old_forum_id)) ? true : false;
$count_sql = array();
if ( ((!$new_forum_id_count && $old_forum_id_count) || ($new_forum_id_count && !$old_forum_id_count)) && !is_array($ids) )
{
$delim = (!$new_forum_id_count && $old_forum_id_count) ? '-' : '+';
$sql = "SELECT poster_id, COUNT(post_id) AS posts
FROM " . POSTS_TABLE . "
WHERE topic_id = $ids
GROUP BY poster_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not get poster id information', '', __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
$count_sql[] = "UPDATE " . USERS_TABLE . "
SET user_posts = user_posts $delim " . $row['posts'] . "
WHERE user_id = " . $row['poster_id'];
}
$db->sql_freeresult($result);
}
else if ( ((!$new_forum_id_count && $old_forum_id_count) || ($new_forum_id_count && !$old_forum_id_count)) && is_array($ids))
{
$delim = (!$new_forum_id_count && $old_forum_id_count) ? '-' : '+';
$imp_ids = (is_array($ids)) ? implode(', ', $ids) : $ids;
$sql = "SELECT poster_id, COUNT(post_id) AS posts
FROM " . POSTS_TABLE . "
WHERE " . (($mode == 'topic') ? "topic_id" : "post_id") . " IN($imp_ids)
GROUP BY poster_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not get poster id information', '', __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
$count_sql[] = "UPDATE " . USERS_TABLE . "
SET user_posts = user_posts $delim " . $row['posts'] . "
WHERE user_id = " . $row['poster_id'];
}
$db->sql_freeresult($result);
}
if ( sizeof($count_sql) )
{
for($i = 0; $i < sizeof($count_sql); $i++)
{
if ( !$db->sql_query($count_sql[$i]) )
{
message_die(GENERAL_ERROR, 'Could not update user post count information', '', __LINE__, __FILE__, $sql);
}
}
}
return;
}
#
# -- [ ZNAJD ] -------------------------------------------------
#
message_die(GENERAL_ERROR, 'Error opening file: ' . $logfile);
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
message_die(GENERAL_ERROR, 'Error opening file: ' . $phpbb_root_path . '/db/db_backup/' . $filename . '.gz');
#
# -- [ ZNAJD ] -------------------------------------------------
#
update_config('board_disable', '');
update_config('disable_type', '');
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( $board_config['board_disable'] == 'db_backup_progress' )
{
update_config('board_disable', '');
update_config('disable_type', '');
}
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /includes/functions_hierarchy.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
$stop = true;
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$stop = true;
$break;
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( isset($userdata['unread_forum_posts'][$forum_id]) )
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( isset($userdata['unread_data'][$forum_id]) )
#
# -- [ ZNAJD ] -------------------------------------------------
#
$last_post = $lang['No_Posts'];
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$last_post = '--';
#
# -- [ ZNAJD ] -------------------------------------------------
#
$wdata['tree.unread_topics'] = ($userdata['unread_forum_posts'][$u_id]) ? true : false;
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$wdata['tree.unread_topics'] = ($userdata['unread_data'][$u_id]) ? true : false;
#
# -- [ ZNAJD ] -------------------------------------------------
#
$links .= (($links != '') ? ', ' : '') . '' . $wlast_post . $link . '';
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$links .= (($links != '') ? ', ' : '') . $wlast_post . $link;
#
# -- [ ZNAJD ] -------------------------------------------------
#
$count_unread_posts = count($userdata['unread_forum_posts'][$id]);
$count_unread_topics = (is_array($userdata['unread_forum_r_topics'][$id])) ? count(array_unique($userdata['unread_forum_r_topics'][$id])) : 0;
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$count_unread_posts = unread_forums_posts('count', $id);
$count_unread_topics = (is_array($userdata['unread_data'][$id])) ? count($userdata['unread_data'][$id]) : 0;
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /includes/functions_post.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.3
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ USUŃ ] -------------------------------------------------
#
$poll_length = (isset($poll_length)) ? max(0, ($poll_length+$poll_length_h / 24)) : 0;
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( !$msg_expire )
{
$msg_expire = 0;
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( !$msg_expire )
{
$expire_time = 0;
}
else if ( $mode == 'editpost' )
{
$expire_time = ($msg_expire * 86400) + (CR_TIME - $post_data['post_time']);
}
else
{
$expire_time = ($msg_expire * 86400);
}
#
# -- [ ZNAJD ] -------------------------------------------------
#
$sql = ($mode != 'editpost') ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote, topic_icon, topic_expire, topic_color, topic_title_e, topic_tree_width) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote, $msg_icon, " . ( $msg_expire * 86400 ) . ", '$topic_color', '$post_subject_e', $topic_tree_width)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_type = $topic_type, topic_icon = $msg_icon, topic_expire = " . ( $msg_expire * 86400 ) . ", topic_color = '$topic_color', topic_title_e = '$post_subject_e', topic_tree_width = $topic_tree_width " . (($post_data['edit_vote'] || !empty($poll_title)) ? ", topic_vote = " . $topic_vote : "") . " WHERE topic_id = $topic_id";
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$sql = ($mode != 'editpost') ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote, topic_icon, topic_expire, topic_color, topic_title_e, topic_tree_width) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote, $msg_icon, $expire_time, '$topic_color', '$post_subject_e', $topic_tree_width)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_type = $topic_type, topic_icon = $msg_icon, topic_expire = $expire_time, topic_color = '$topic_color', topic_title_e = '$post_subject_e', topic_tree_width = $topic_tree_width " . (($post_data['edit_vote'] || !empty($poll_title)) ? ", topic_vote = " . $topic_vote : "") . " WHERE topic_id = $topic_id";
#
# -- [ ZNAJD ] -------------------------------------------------
#
$topic_id = $db->sql_nextid();
db_stat_update('posttopic');
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$topic_id = $db->sql_nextid();
#
# -- [ ZNAJD ] -------------------------------------------------
#
$sql = ($mode != 'editpost') ? "INSERT INTO " . POSTS_TABLE . " (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig, user_agent, post_icon, post_expire, post_approve, post_parent, post_order) VALUES ($topic_id, $forum_id, " . $userdata['user_id'] . ", '$post_username', $current_time, '$user_ip', $bbcode_on, $html_on, $smilies_on, $attach_sig, '$user_agent', $msg_icon, " . ( $msg_expire * 86400 ) . ", $post_approve, " . $post_data['post_parent'] . ", $post_order)" : "UPDATE " . POSTS_TABLE . " SET enable_bbcode = $bbcode_on, enable_html = $html_on, enable_smilies = $smilies_on, enable_sig = $attach_sig" . $edited_sql . ", post_icon = $msg_icon, post_expire = " . ( $msg_expire * 86400 ) . " WHERE post_id = $post_id";
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$sql = ($mode != 'editpost') ? "INSERT INTO " . POSTS_TABLE . " (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig, user_agent, post_icon, post_expire, post_approve, post_parent, post_order) VALUES ($topic_id, $forum_id, " . $userdata['user_id'] . ", '$post_username', $current_time, '$user_ip', $bbcode_on, $html_on, $smilies_on, $attach_sig, '$user_agent', $msg_icon, $expire_time, $post_approve, " . $post_data['post_parent'] . ", $post_order)" : "UPDATE " . POSTS_TABLE . " SET enable_bbcode = $bbcode_on, enable_html = $html_on, enable_smilies = $smilies_on, enable_sig = $attach_sig" . $edited_sql . ", post_icon = $msg_icon, post_expire = $expire_time WHERE post_id = $post_id";
#
# -- [ ZNAJD ] -------------------------------------------------
#
$post_id = $db->sql_nextid();
db_stat_update('posttopic');
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$post_id = $db->sql_nextid();
#
# -- [ ZNAJD ] -------------------------------------------------
#
// Add poll
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
// Add poll
$hide_vote = ($hide_vote) ? $hide_vote : 0;
$tothide_vote = ($tothide_vote) ? $tothide_vote : 0;
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( $user_id != ANONYMOUS && $mode != 'poll_delete' && no_post_count($forum_id) )
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_posts = user_posts +1
WHERE user_id = $user_id";
if ( !$db->sql_query($sql, END_TRANSACTION) )
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
}
#
# -- [ PONIŻEJ WSTAW ] -------------------------------------------------
#
db_stat_update('posttopic');
#
# -- [ ZNAJD ] -------------------------------------------------
#
$script_name = ($script_name == '') ? $script_name. '/login.'.$phpEx : '/' . $script_name. '/login.'.$phpEx;
#
# -- [ PONIŻEJ WSTAW ] -------------------------------------------------
#
$server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
$server_port = trim($board_config['server_port']);
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /includes/functions_remove.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
$posts_ids = '';
$sql = "SELECT post_id FROM " . TOPICS_TABLE . "
WHERE topic_id IN ($topics_id)";
$db->sql_query($sql);
while( $row = $db->sql_fetchrow($result) )
{
$posts_ids .= ($posts_ids) ? ', ' . $row['post_id'] : $row['post_id'];
}
if ( $posts_ids )
{
$sql = "DELETE FROM " . READ_HIST_TABLE . "
WHERE post_id = IN($posts_ids)";
$db->sql_query($sql);
}
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$sql = "DELETE FROM " . READ_HIST_TABLE . "
WHERE topic_id IN($topics_id)";
$db->sql_query($sql);
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /includes/page_header.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.3
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( $board_config['banners_list'] && $board_config['echange_banner'] > 0 )
{
$banners_list = explode('[banner]', $board_config['banners_list']);
$rand = rand(0, (count($banners_list)-1));
$eb = replace_vars($banners_list[$rand]);
}
if ( $board_config['echange_banner'] == '6' )
{
$my_avatar_img = $eb;
}
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( $board_config['banners_list'] && $board_config['echange_banner'] > 0 )
{
$banners_list = explode('[banner]', $board_config['banners_list']);
$rand = rand(0, (count($banners_list)-1));
$eb = replace_vars($banners_list[$rand]);
if ( $board_config['echange_banner'] == '6' )
{
$my_avatar_img = $eb;
}
}
#
# -- [ USUŃ ] -------------------------------------------------
#
$template->assign_vars(array(
'MY_AVATAR_IMG' => $my_avatar_img,
'USERNAME' => $link_username)
);
#
# -- [ USUŃ ] -------------------------------------------------
#
$s_last_visit = ( $userdata['session_logged_in'] ) ? create_date($board_config['default_dateformat'], $userdata['user_lastvisit'], $board_config['board_timezone']) : '';
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( $advertising[$i]['email'] && !$advertising[$i]['notify'] && (($advertising[$i]['expire'] - CR_TIME) / 86400) <= 7 )
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( $advertising[$i]['email'] && !$advertising[$i]['notify'] && $advertising[$i]['expire'] && (($advertising[$i]['expire'] - CR_TIME) / 86400) <= 7 )
#
# -- [ ZNAJD ] -------------------------------------------------
#
$header_block = 'header.';
#
# -- [ PONIŻEJ WSTAW ] -------------------------------------------------
#
if ( $my_avatar_img )
{
$template->assign_block_vars('header.switch_page_avatar', array());
$template->assign_vars(array(
'MY_AVATAR_IMG' => $my_avatar_img,
'USERNAME' => $link_username)
);
}
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /includes/reportpost.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
global $emailer, $board_config, $phpEx;
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
global $emailer, $board_config, $phpEx, $phpbb_root_path;
#
# -- [ ZNAJD ] -------------------------------------------------
#
redirect($header_location . $phpbb_root_path . append_sid("login.$phpEx?redirect=$redirect", true));
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
redirect($header_location . $phpbb_root_path . append_sid("login.$phpEx?redirect=$redirect", true));
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /includes/sessions.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.3
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
$sql = "SELECT user_ip, user_ip_login_check
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$sql = "SELECT user_ip, user_level, user_jr, user_ip_login_check
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( (!$secure_data['user_ip'] || $secure_data['user_ip'] != $user_ip) && $secure_data['user_ip_login_check'] )
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$do_secure_ip_check = true;
$do_secure_ip_check = ( ($board_config['allow_autologin'] == 2 || $board_config['allow_autologin'] == 1) && ($board_config['allow_autologin'] == 2 || ($secure_data['user_level'] != USER || $secure_data['user_jr'])) && $secure_data['user_ip_login_check'] ) ? true : false;
if ( (!$secure_data['user_ip'] || $secure_data['user_ip'] != $user_ip) && $do_secure_ip_check )
#
# -- [ ZNAJD ] -------------------------------------------------
#
if (isset($sessiondata['autologinid']) && (string) $sessiondata['autologinid'] != '')
{
$sql = 'UPDATE ' . SESSIONS_KEYS_TABLE . "
SET last_ip = '$user_ip', key_id = '" . md5($auto_login_key) . "', last_login = $current_time
WHERE key_id = '" . md5($sessiondata['autologinid']) . "'";
}
else
{
$sql = 'INSERT INTO ' . SESSIONS_KEYS_TABLE . "(key_id, user_id, last_ip, last_login)
VALUES ('" . md5($auto_login_key) . "', $user_id, '$user_ip', $current_time)";
}
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$sql = "SELECT key_id FROM " . SESSIONS_KEYS_TABLE . "
WHERE user_id = " . intval($user_id) . "
ORDER BY last_login DESC";
if ( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, 'Could not get from keys table', '', __LINE__, __FILE__, $sql);
}
$key_ids = '';
$exists_keys = 0;
while( $row = $db->sql_fetchrow($result) )
{
if ( $exists_keys > 0 )
{
$key_ids .= (($key_ids) ? ', ' : '') . "'" . $row['key_id'] . "'";
}
$exists_keys++;
}
if ( $key_ids )
{
$sql = "DELETE FROM " . SESSIONS_KEYS_TABLE . "
WHERE key_id IN($key_ids)";
if ( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, 'Could not delete from keys table', '', __LINE__, __FILE__, $sql);
}
}
$sql = 'INSERT INTO ' . SESSIONS_KEYS_TABLE . "(key_id, user_id, last_ip, last_login)
VALUES ('" . md5($auto_login_key) . "', $user_id, '$user_ip', $current_time)";
#
# -- [ ZNAJD ] -------------------------------------------------
#
@setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure);
@setcookie($cookiename . '_sid', $session_id, 0, $cookiepath, $cookiedomain, $cookiesecure);
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure);
setcookie($cookiename . '_sid', $session_id, 0, $cookiepath, $cookiedomain, $cookiesecure);
#
# -- [ ZNAJD ] -------------------------------------------------
#
global $db, $lang, $board_config, $userdata;;
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
global $db, $lang, $board_config, $userdata;
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /includes/usercp_activate.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.2
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( $row = $db->sql_fetchrow($result) )
{
$userdata['jr_data'] = explode(',', $row['user_jr_admin']);
if ( @in_array(15, $userdata['jr_data']) )
{
$not_auth = true;
}
}
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( $row_c = $db->sql_fetchrow($result) )
{
$userdata['jr_data'] = explode(',', $row_c['user_jr_admin']);
if ( @in_array(15, $userdata['jr_data']) )
{
$not_auth = false;
}
}
#
# -- [ ZNAJD ] -------------------------------------------------
#
message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql_update);
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql);
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /includes/usercp_register.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.0
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
$user_ip_login_check = ( isset($HTTP_POST_VARS['user_ip_login_check']) ) ? ( ($HTTP_POST_VARS['user_ip_login_check']) ? 1 : 0 ) : 1;
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$user_ip_login_check = ( isset($HTTP_POST_VARS['user_ip_login_check']) ) ? ( ($HTTP_POST_VARS['user_ip_login_check']) ? 1 : 0 ) : $userdata['user_ip_login_check'];
#
# -- [ ZNAJD ] -------------------------------------------------
#
$signature = ($board_config['allow_sig_image_img']) ? preg_replace ("#\[img\](.*)\[/img\]#si", "\\1", $signature) : $signature;
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$signature = ($board_config['allow_sig_image_img']) ? preg_replace(array("#\[img\]#si", "#\[/img\]#i"), "", $signature) : $signature;
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( !$board_config['allow_autologin'] || $userdata['user_level'] != USER || $userdata['user_jr'] )
{
$user_ip_login_check = 1;
}
if ( $mode == 'editprofile' )
{
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( $mode == 'editprofile' )
{
if ( ($board_config['allow_autologin'] == 2 || $board_config['allow_autologin'] == 1) && ($userdata['user_level'] != USER || $userdata['user_jr']) )
{
$user_ip_login_check = $userdata['user_ip_login_check'];
}
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( $board_config['allow_autologin'] && $userdata['user_level'] == USER )
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( $board_config['allow_autologin'] == 2 && $userdata['user_level'] == USER && !$userdata['user_jr'] )
#
# -- [ ZNAJD ] -------------------------------------------------
#
if (( (($board_config['custom_color_use'] || $board_config['custom_color_view']) && $userdata['user_posts'] >= $board_config['allow_custom_color'] && !$board_config['custom_color_view']))
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( $userdata['can_custom_color'] && ( (($board_config['custom_color_use'] || $board_config['custom_color_view']) && $userdata['user_posts'] >= $board_config['allow_custom_color'] && !$board_config['custom_color_view']))
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( $board_config['allow_sig'] )
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( $board_config['allow_sig'] && ($userdata['user_allowsig'] || $mode == 'register') )
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /includes/usercp_signature.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
function user_signature_upload($mode, $signature_mode, &$current_image, &$error, &$error_msg, $signature_filename, $signature_realname, $signature_filesize, $signature_filetype)
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
function user_signature_upload($mode, $signature_mode, &$current_signature, &$error, &$error_msg, $signature_filename, $signature_realname, $signature_filesize, $signature_filetype)
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /includes/usercp_viewprofile.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.3
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
$user_sig = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $user_sig . '<'), 1, -1));
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$user_sig = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace(\$orig_word, \$replacement_word_html, '\\0')", '>' . $user_sig . '<'), 1, -1));
#
# -- [ ZNAJD ] -------------------------------------------------
#
replace_bad_words($orig_word, $replacement_word, $user_sig);
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
replace_bad_words($orig_word, $replacement_word_html, $user_sig);
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /language/lang_english/lang_admin_board.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.1
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
$lang['read_tracking_c'] = 'Cleaning read history';
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$lang['read_tracking_days'] = 'How many days keep unread posts';
$lang['read_tracking_days_e'] = 'Value of last visit user days';
$lang['read_tracking_max_posts'] = 'Max amount of unread posts per user';
$lang['read_tracking_max_posts_e'] = 'All posts above will be pruned, it concern normal users';
$lang['read_tracking_without_days'] = 'Prunning unread posts without posts write throught X last days';
$lang['read_tracking_without_days_e'] = 'When amount of unread posts exceed max value, all unread posts information will be delete, without posts write throught last X days.';
#
# -- [ ZNAJD ] -------------------------------------------------
#
$lang['Allow_autologin_explain'] = 'Determines whether users are allowed to select to be automatically logged in when visiting the forum.
It is save function because exists system which check last visit IP address and current IP address when user logged in automatically, if address is different user have to log in manually. All users except Moderators and Junior Admins can disable IP address checking in his profile. Administrator can disable this function for all users in edit his profile.';
$lang['Posting'] = 'Posting';
$lang['Registering'] = 'Registering';
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$lang['Allow_autologin_explain'] = 'Determines whether users are allowed to select to be automatically logged in when visiting the forum.
It is save function only with checking IP address. System check last visit IP address and current IP address when user logged in automatically, if address is different user have to log in manually. All users except Administrators, Junior Admins and Moderators can disable IP address checking in his profile. Administrator can disable this function for all users in edit his profile.';
$lang['Posting'] = 'Posting';
$lang['Registering'] = 'Registering';
$lang['AA_no_limit'] = 'No restriction';
$lang['AA_with_IP'] = 'With last IP checking';
$lang['AA_with_staff_IP'] = 'With last IP checking for Admin and Mod';
$lang['Public_category'] = 'If you want make your forum listed in the Forums Directory choice one of category. In the forums directory show forum address get from Domain Name and Script Path and description get from Site Description which will be cut to 100 chars only.';
$lang['Public_categories'][] = 'Health & Beauty';
$lang['Public_categories'][] = 'Child & Family';
$lang['Public_categories'][] = 'World, People & Politics';
$lang['Public_categories'][] = 'Economy and Business';
$lang['Public_categories'][] = 'Language, Nationality & Education';
$lang['Public_categories'][] = 'Science & Technology';
$lang['Public_categories'][] = 'Culture & Art';
$lang['Public_categories'][] = 'Music';
$lang['Public_categories'][] = 'Animals & Plants';
$lang['Public_categories'][] = 'Games';
$lang['Public_categories'][] = 'Sport';
$lang['Public_categories'][] = 'Internet i Computers';
$lang['Public_categories'][] = 'Motorization';
$lang['Public_categories'][] = 'Hobby';
$lang['Public_categories'][] = 'Entertainment';
$lang['Public_categories'][] = 'Matrimonial, Erotic & Sex';
$lang['Public_categories'][] = 'Regional';
$lang['Public_categories'][] = 'Variety';
$lang['Public_categories'][] = 'Extreme';
$lang['Public_categories'][] = 'Other';
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /language/lang_english/lang_main.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.1
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
$lang['Pruning_unread_posts'] = 'Your account exceed maximum amount of unread posts: %s Information about unread posts: %s was removed, without posts writen through last: %s days.
You can use search to find posts writen through last choosed time.';
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$lang['Pruning_unread_posts'] = 'Your account exceed maximum amount of unread posts: %s Information about unread posts was removed, without posts writen through last: %s days.
Removed unread posts: %s
You may read posts or mar all as read.
You can use search to find posts writen through last choosed time.';
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /language/lang_english/lang_profile.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
$lang['Always_add_sig'] = 'Always attach my signature';
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$lang['Always_add_sig'] = 'Always attach my signature';
$lang['Avatar_panel'] = 'Avatar control panel';
$lang['Avatar_explain'] = 'Displays a small graphic image below your details in posts. Only one image can be displayed at a time, its width can be no greater than %d pixels, a height no greater than %d pixels and a file size no more than %dkB.';
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /language/lang_english/lang_statistics.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
$lang['Auto_set_update_time'] = 'Determine and set recommended Update Times for every Installed (and Active) Module. Be aware: This may take long.';
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$lang['Auto_set_update_time'] = 'Refresh all modules';
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /language/lang_polish/lang_admin.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.3
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
$lang['uninstall_explain'] = 'W tym miejscu możesz przywrócić forum do oryginalnej postaci, może się to okazać potrzebne gdy będziesz chciał' . (($he) ? '' : 'a') . ' uaktualnić swoje forum np. do wersji phpBB 2.2.
Przywracanie składa się z dwóch etapów: 1. Odinstalowanie w tym miejscu modyfikacji z bazy danych. 2. Nadpisanie plików oryginalnymi plikami phpBB 2.0.x Lepszym sposobem jest usunięcie z katalogu forum wszystkich plików, z wyjątkiem katalogu \'images\' oraz pliku config.php i wgranie oryginalnych plików.
Odinstalowywanie z bazy danych SQL
Pamiętaj, że gdy odinstalujesz modyfikację z bazy SQL nie będzie można tego cofnąć. Stracisz wszystkie dodatkowe informacje, te których nie ma w oryginalnym phpBB. Zalecane jest więc zrobienie kopii bazy SQL.
Możliwe jest oczywiście ponowne przywrócenie forum do postaci z przed odinstalowania, pod warunkiem posiadania kopii bazy SQL. Jeżeli chcemy przywrócić, czyścimy bazę danych, wgrywamy kopię bazy i nadpisujemy pliki forum plikami phpBB modified v1.12.3 by Przemo z wyjątkiem pliku config.php';
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$lang['uninstall_explain'] = 'W tym miejscu możesz przywrócić forum do oryginalnej postaci, może się to okazać potrzebne gdy będziesz chciał' . (($he) ? '' : 'a') . ' uaktualnić swoje forum np. do wersji phpBB 2.2.
Przywracanie składa się z dwóch etapów: 1. Odinstalowanie w tym miejscu modyfikacji z bazy danych. 2. Nadpisanie plików oryginalnymi plikami phpBB 2.0.x Lepszym sposobem jest usunięcie z katalogu forum wszystkich plików, z wyjątkiem katalogu \'images\' oraz pliku config.php i wgranie oryginalnych plików.
Odinstalowywanie z bazy danych SQL
Pamiętaj, że gdy odinstalujesz modyfikację z bazy SQL nie będzie można tego cofnąć. Stracisz wszystkie dodatkowe informacje, te których nie ma w oryginalnym phpBB. Zalecane jest więc zrobienie kopii bazy SQL.
Możliwe jest oczywiście ponowne przywrócenie forum do postaci z przed odinstalowania, pod warunkiem posiadania kopii bazy SQL. Jeżeli chcemy przywrócić, czyścimy bazę danych, wgrywamy kopię bazy i nadpisujemy pliki forum plikami phpBB modified v1.12.4 by Przemo z wyjątkiem pliku config.php';
#
# -- [ ZNAJD ] -------------------------------------------------
#
$lang['Show_global_announce'] = 'Pokazuj ważne ogoszenia z innych for';
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$lang['Show_global_announce'] = 'Pokazuj ważne ogłoszenia z innych for';
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /language/lang_polish/lang_admin_board.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.3
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
$lang['header_e'] = 'Wyłącza oryginalny nagłówek forum, kiedy chcemy użyć tylko własnego nagłówka (banner nagłówkowy z linkami) Niestety nie ma możliwości sprawdzania czy przeglądający jest zalogowany czy nie';
$lang['General_settings'] = 'Generalne Ustawienia Forum';
$lang['Script_path_explain'] = 'Ścieżka pod którą znajduje się phpBB2 relatywnie do nazwy domeny';
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$lang['header_e'] = 'Wyłącza oryginalny nagłówek forum, kiedy chcemy użyć tylko własnego nagłówka (banner nagłówkowy z linkami)';
$lang['General_settings'] = 'Generalne Ustawienia Forum';
$lang['Script_path_explain'] = 'Ścieżka pod którą znajduje się phpBB2 relatywnie do nazwy domeny. Jeżeli domena wskazuje na docelowy katalog nie wpisuj tutaj tego katalogu!';
#
# -- [ ZNAJD ] -------------------------------------------------
#
$lang['read_tracking_days'] = 'Ile dni przetrzymywać nieczytane posty';
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$lang['read_tracking_days'] = 'Ile dni przetrzymywać nieczytane posty';
$lang['read_tracking_days_e'] = 'Jeżeli użytkownik nie odwiedził forum przez podaną ilość dni, informacje o nieczytanych postach zostaną usunięte.';
$lang['read_tracking_max_posts'] = 'Maksymalna ilość nieczytanych postów na użytkownika';
$lang['read_tracking_max_posts_e'] = 'Zostaną usunięte informacje o nieczytanych postach, jeżeli ich ilość przekroczy podaną wartość. Nie dotyczy Administratorów, Junior Adminów, Moderatorów';
$lang['read_tracking_without_days'] = 'Kasowanie nieczytanych z wyjątkiem napisanych przez ostatnie X dni';
$lang['read_tracking_without_days_e'] = 'Jeżeli ilośc postów nieczytanych przekroczy maksymalną wartość, zostaną usunięte wszystkie z wyjątkiem postów napisanych przez ostatnie X dni.
Prosze starać się zadbac o to aby ilośc postów nieczytanych w bazie była jak najmniejsza, zbyt duża ilość dla pojedynczych użytkowników może wpłynąć niekorzystnie na generowane obciążenie.';
#
# -- [ ZNAJD ] -------------------------------------------------
#
$lang['check_address_e'] = 'Sprawdza czy użytkownicy łączą się na odpowiedni adres forum (z www. lub bez) według ustawień nazwy domeny, jeśli nie, przekierowuje na prawidlowy adres. Może wyeliminowac wiele nieprawidlowości podczas łączenia się na zły adres.';
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$lang['check_address_e'] = 'Sprawdza czy użytkownicy łączą się na odpowiedni adres forum (z www. lub bez) według ustawień nazwy domeny, jeśli nie, przekierowuje na prawidlowy adres. Może wyeliminowac wiele nieprawidłowości podczas łączenia się na zły adres. Jednak przy nieprawidłowym ustawieniu domeny lub ścieżki skryptu, może uniemożliwić korzystanie z forum!';
#
# -- [ ZNAJD ] -------------------------------------------------
#
$lang['Allow_autologin_explain'] = 'Wybierz czy użytkownicy mogą być automatycznie logowani.
Automatyczne logowanie jest bezpieczne gdyż istnieje zabezpieczenie kont użytkowników i automatycznego logowania które polega na sprawdzaniu adresu IP ostatniej wizyty, jeżeli jest on inny, wymaga ręcznego zalogowania. Może to być utrudnieniem dla osób ze zmiennym IP. Zwykli użytkownicy mają możliwość wyłączenia tego zabezpieczenia w swoim profilu, nie mają jej Moderatorzy i Junior Administratorzy. Administrator ma możliwość wyłączenia tej funkcjii dla dowolnego użytkownika w edycji jego profilu.';
$lang['Posting'] = 'Pisanie postów';
$lang['Registering'] = 'Rejestrację';
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$lang['Allow_autologin_explain'] = 'Wybierz w jaki sposób użytkownicy mogą być automatycznie logowani.
Automatyczne logowanie jest bezpieczne tylko wtedy, gdy jest sprawdzanie adresu IP. Istnieje zabezpieczenie kont użytkowników i automatycznego logowania które polega na sprawdzaniu adresu IP ostatniej wizyty, jeżeli jest on inny, wymaga ręcznego zalogowania. Może to być utrudnieniem dla osób ze zmiennym IP. Zwykli użytkownicy mają możliwość wyłączenia tego zabezpieczenia w swoim profilu, nie mają jej Administratorzy, Junior Administratorzy i Moderatorzy. Administrator ma możliwość wyłączenia tej funkcjii dla dowolnego użytkownika w edycji jego profilu.';
$lang['Posting'] = 'Pisanie postów';
$lang['Registering'] = 'Rejestrację';
$lang['AA_no_limit'] = 'Bez ograniczeń';
$lang['AA_with_IP'] = 'Ze sprawdzaniem ostatniego adresu IP';
$lang['AA_with_staff_IP'] = 'Ze sprawdzaniem ostatniego adresu IP dla Admina i Moderatora';
$lang['Public_category'] = 'Jeżeli chcesz aby forum było prezentowane w Katalogu For Dyskusyjnych wybierz jedną z kategorii. W katalogu pojawi się adres forum pobrany z Nazwy Domeny i Ścieżki Skryptu oraz opis pobrany z Opisu Strony. Uwaga, opis będzie skrócony do 100 znaków. Aktualizacja danych jest dokonywana raz na dwa dni podczas wejścia do Panelu Admina, podobnie jak pobieranie informacji o aktualizacjach';
$lang['Public_categories'][] = 'Zdrowie i Uroda';
$lang['Public_categories'][] = 'Dzieci i Rodzina';
$lang['Public_categories'][] = 'Świat, Ludzie i Polityka';
$lang['Public_categories'][] = 'Ekonomia i Biznes';
$lang['Public_categories'][] = 'Języki, Narody i Edukacja';
$lang['Public_categories'][] = 'Nauka i Technika';
$lang['Public_categories'][] = 'Kultura i Sztuka';
$lang['Public_categories'][] = 'Muzyka';
$lang['Public_categories'][] = 'Zwierzęta i Rośliny';
$lang['Public_categories'][] = 'Gry';
$lang['Public_categories'][] = 'Sport';
$lang['Public_categories'][] = 'Internet i Komputery';
$lang['Public_categories'][] = 'Motoryzacja';
$lang['Public_categories'][] = 'Hobbystyczne';
$lang['Public_categories'][] = 'Rozrywka';
$lang['Public_categories'][] = 'Towarzyskie, Erotyka i Sex';
$lang['Public_categories'][] = 'Regionalne';
$lang['Public_categories'][] = 'Wielotematyczne';
$lang['Public_categories'][] = 'Ekstremalne';
$lang['Public_categories'][] = 'Inne';
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /language/lang_polish/lang_custom_fields.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
src= "
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
src="
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /language/lang_polish/lang_main.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.3
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
$lang['New_pm'] = 'Masz %d *nową* wiadomość';
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$lang['New_pm'] = 'Masz %d *nową* wiadomość';
#
# -- [ ZNAJD ] -------------------------------------------------
#
$lang['Pruning_unread_posts'] = 'Twoje konto przekroczyło maksymalną ilość nieprzeczytanych postów: %s Zostały usunięte informacje o: %s nieczytanych postach, z wyjątkiem postów napisanych przez ostatnie: %s dni.
W każdej chwili możesz skorzystać z wyszukiwarki postów aby odszukać posty napisane w ciągu ostatniego wybranego czasu.';
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$lang['Pruning_unread_posts'] = 'Twoje konto przekroczyło maksymalną ilość nieprzeczytanych postów: %s Zostały usunięte informacje o nieczytanych postach z wyjątkiem postów napisanych przez ostatnie: %s dni
Ilość usuniętych nieczytanych postów: %s
Aby nie otrzymywać tego komunikatu, przeczytaj oznaczone tematy, lub oznacz wszystkie jako przeczytane.
W każdej chwili możesz skorzystać z wyszukiwarki postów aby odszukać posty napisane w ciągu ostatniego wybranego czasu.';
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /language/lang_polish/lang_mass_email.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
$lang['Mass_email_explain'] = 'W tym miejscu możesz wysłać wiadomość do wszystkich użytkowników lub wszystkich członków którejś grupy. Zostanie to wykonane przez wysłanie e-mail\'a pod podany adres administrcyjny, wraz z kopią BCC (pol. UDW) wysłaną do wszystkich użytkowników. Jeżeli wysyłasz list do dużej grupy osób czekaj cierpliwie na zakończenie procesu i nie przerywaj go. Wysyłanie masowej korespondencji może zająć dużo czasu, i po zakończeniu procesu zostaniesz o tym powiadomiony.
Pamiętaj: w masowej korespondencji nie będzie dołączony standartowy podpis.';
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$lang['Mass_email_explain'] = 'W tym miejscu możesz wysłać wiadomość do wszystkich użytkowników lub wszystkich członków którejś grupy. Zostanie to wykonane przez wysłanie e-mail\'a pod podany adres administarcyjny, wraz z kopią BCC (pol. UDW) wysłaną do wszystkich użytkowników. Jeżeli wysyłasz list do dużej grupy osób czekaj cierpliwie na zakończenie procesu i nie przerywaj go. Wysyłanie masowej korespondencji może zająć dużo czasu, i po zakończeniu procesu zostaniesz o tym powiadomiony.
Pamiętaj: w masowej korespondencji nie będzie dołączony standartowy podpis.';
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /language/lang_polish/lang_statistics.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
$lang['Not_active'] = 'Nie aktywny';
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$lang['Not_active'] = 'Nieaktywny';
#
# -- [ OTWÓRZ ] -------------------------------------------------
# common.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.9
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
$unique_cookie_name = substr(md5($board_config['cookie_name'] . $board_config['script_path']), 5, 8);
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$unique_cookie_name = 'bb' . substr(md5($board_config['cookie_name'] . $board_config['script_path']), 5, 8);
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( $board_config['db_backup_enable'] && $board_config['db_backup_time'] < (CR_TIME - (24 * 3600)) && !defined('IN_ADMIN') )
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( $board_config['db_backup_enable'] && isset($board_config['db_backup_time']) && $board_config['db_backup_time'] < (CR_TIME - (24 * 3600)) && !defined('IN_ADMIN') )
#
# -- [ OTWÓRZ ] -------------------------------------------------
# index.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.2
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
$userdata = user_unread_posts();
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$userdata = user_unread_posts();
$count_unread_posts = unread_forums_posts('count');
#
# -- [ ZNAJD ] -------------------------------------------------
#
'COUNT_NEW_POSTS' => count($userdata['unread_posts']))
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
'COUNT_NEW_POSTS' => $count_unread_posts)
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( count($userdata['unread_posts']) )
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( $count_unread_posts )
#
# -- [ ZNAJD ] -------------------------------------------------
#
$keys = get_auth_keys($viewcatkey);
// mark each forums
for ($i=0; $i < count($keys['id']); $i++) if ($tree['type'][ $keys['idx'][$i] ] == POST_FORUM_URL)
{
$forum_id = $tree['id'][ $keys['idx'][$i] ];
$sql = "SELECT MAX(post_time) AS last_post FROM " . POSTS_TABLE . "
WHERE forum_id = $forum_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain forums information', '', __LINE__, __FILE__, $sql);
}
if ( $row = $db->sql_fetchrow($result) )
{
if ( ( count($tracking_forums) + count($tracking_topics) ) >= 150 && empty($tracking_forums[$forum_id]) )
{
asort($tracking_forums);
unset($tracking_forums[key($tracking_forums)]);
}
if ( $row['last_post'] > $userdata['user_lastvisit'] )
{
$tracking_forums[$forum_id] = CR_TIME;
setcookie($unique_cookie_name . '_f', serialize($tracking_forums), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
}
}
}
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$keys = get_auth_keys($viewcatkey);
$post_ids = $forum_ids = '';
// mark each forums
for ($i=0; $i < count($keys['id']); $i++) if ($tree['type'][ $keys['idx'][$i] ] == POST_FORUM_URL)
{
$forum_ids .= (($forum_ids) ? ', ' : '') . $tree['id'][$keys['idx'][$i]];
}
if ( $forum_ids )
{
$sql = "DELETE FROM " . READ_HIST_TABLE . "
WHERE user_id = " . $userdata['user_id'] . "
AND forum_id IN($forum_ids)";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Error in marking all as read', '', __LINE__, __FILE__, $sql);
}
}
#
# -- [ ZNAJD ] -------------------------------------------------
#
$message = $lang['Forums_marked_read'] . '
' . sprintf($lang['Click_return_index'], '', ' ');
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$message = $lang['Forums_marked_read'] . '
' . sprintf($lang['Click_return_index'], '', ' ');
#
# -- [ ZNAJD ] -------------------------------------------------
#
'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], $s_last_visit),
'U_VIEWONLINE' => append_sid('viewonline.'.$phpEx),
'U_PREFERENCES' => append_sid('customize.'.$phpEx),
'U_MARK_READ' => "index.$phpEx?mark=forums&sid=" . $userdata['session_id'])
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], ($userdata['session_logged_in']) ? create_date($board_config['default_dateformat'], $userdata['user_lastvisit'], $board_config['board_timezone']) : ''),
'U_VIEWONLINE' => append_sid('viewonline.'.$phpEx),
'U_PREFERENCES' => append_sid('customize.'.$phpEx),
'U_MARK_READ' => "index.$phpEx?mark=forums&" . POST_CAT_URL . "=$viewcat&sid=" . $userdata['session_id'])
#
# -- [ OTWÓRZ ] -------------------------------------------------
# login.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.1
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
$config_content = file_get_contents($phpbb_root_path . 'config.'.$phpEx);
if ( substr($config_content, 0, 5) != '' )
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$config_content = @file_get_contents($phpbb_root_path . 'config.'.$phpEx);
if ( strpos($config_content, 'dbuser') && (substr($config_content, 0, 5) != '') )
#
# -- [ OTWÓRZ ] -------------------------------------------------
# portal.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
1.12.0
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
$users_today_list .= ($todayrow['user_allow_viewonline']) ? ' ' . $todayrow['username'] . ',' : (($userdata['user_level']==ADMIN) ? ' ' . $todayrow['username'] . ',' : '');
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$users_today_list .= ($todayrow['user_allow_viewonline']) ? ' ' . $todayrow['username'] . ',' : (($userdata['user_level']==ADMIN) ? ' ' . $todayrow['username'] . ',' : '');
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( count($userdata['unread_posts']) )
{
$template->assign_block_vars('user_inf.unread', array());
$template->assign_vars(array(
'L_SEARCH_NEW' => $lang['Search_new_unread'],
'COUNT_NEW_POSTS' => count($userdata['unread_posts']))
);
}
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$count_unread_posts = unread_forums_posts('count');
if ( $count_unread_posts )
{
$template->assign_block_vars('user_inf.unread', array());
$template->assign_vars(array(
'L_SEARCH_NEW' => $lang['Search_new_unread'],
'COUNT_NEW_POSTS' => $count_unread_posts)
);
}
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( !empty($fetchpoll) )
{
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( !empty($fetchpoll) )
{
$template->set_filenames(array(
'poll_menu' => 'portal_modules/poll_body.tpl')
);
if ( $portal_config['poll'] == 1 )
{
$poll_align = 'left';
}
else if ( $portal_config['poll'] == 0 )
{
$poll_align = 'center';
}
else
{
$poll_align = 'right';
}
$template->assign_vars(array(
'L_POLL' => $lang['Poll'],
'POLL_ALIGN' => $poll_align)
);
#
# -- [ ZNAJD ] -------------------------------------------------
#
$vote_br = '
';
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$template->assign_block_vars('max_voting', array());
$vote_br = '
';
#
# -- [ ZNAJD ] -------------------------------------------------
#
'S_TOPIC_ID' => $fetchpoll['topic_id'],
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
'S_TOPIC_ID' => $fetchpoll['topic_id'],
'L_VOTE_BUTTON' => $lang['Vote'],
#
# -- [ ZNAJD ] -------------------------------------------------
#
for ($i = 0; $i < count($fetchpoll['options']); $i++)
{
$template->assign_block_vars('poll_option_row', array(
'OPTION_ID' => $fetchpoll['options'][$i]['vote_option_id'],
'OPTION_TEXT' => $fetchpoll['options'][$i]['vote_option_text'],
'VOTE_RESULT' => $fetchpoll['options'][$i]['vote_result'])
);
}
}
}
else
{
$no_polls = true;
}
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
for ($i = 0; $i < count($fetchpoll['options']); $i++)
{
$template->assign_block_vars('poll_option_row', array(
'OPTION_ID' => $fetchpoll['options'][$i]['vote_option_id'],
'OPTION_TEXT' => $fetchpoll['options'][$i]['vote_option_text'],
'VOTE_RESULT' => (!$fetchpoll['vote_hide'] && !$fetchpoll['vote_tothide']) ? $fetchpoll['options'][$i]['vote_result'] : '*')
);
}
}
$template->assign_var_from_handle($module_names['poll_menu'], 'poll_menu');
}
#
# -- [ USUŃ ] -------------------------------------------------
#
$polll_off1 = ($portal_config['poll'] == 1 && !$no_polls) ? '' : '';
$pollr_off1 = ($portal_config['poll'] == 2 && !$no_polls) ? '' : '';
#
# -- [ USUŃ ] -------------------------------------------------
#
$polll_off1 = $polll_off2 = '';
#
# -- [ USUŃ ] -------------------------------------------------
#
$pollr_off1 = $pollr_off2 = '';
#
# -- [ USUŃ ] -------------------------------------------------
#
'L_POLL' => $lang['Poll'],
'L_VOTE_BUTTON' => $lang['Vote'],
#
# -- [ ZNAJD ] -------------------------------------------------
#
'END_RIGHT_PANEL_OFF' => $end_right_panel_off,
'POLLR_OFF1' => $pollr_off1,
'POLLR_OFF2' => $pollr_off2,
'POLLL_OFF1' => $polll_off1,
'POLLL_OFF2' => $polll_off1)
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
'END_RIGHT_PANEL_OFF' => $end_right_panel_off)
#
# -- [ OTWÓRZ ] -------------------------------------------------
# posting.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.0
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ USUŃ ] -------------------------------------------------
#
$topic_color = ($HTTP_POST_VARS['topic_color']) ? htmlspecialchars($HTTP_POST_VARS['topic_color']) : '';
#
# -- [ ZNAJD ] -------------------------------------------------
#
$user_agent = serialize(user_agent($user_agent, $images['images']));
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$user_agent = serialize(user_agent($user_agent));
#
# -- [ ZNAJD ] -------------------------------------------------
#
p.poster_id" . $select_sql . "
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
post_time, p.poster_id" . $select_sql . "
#
# -- [ ZNAJD ] -------------------------------------------------
#
$post_data['poster_id'] = $post_info['poster_id'];
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$post_data['poster_id'] = $post_info['poster_id'];
$post_data['post_time'] = $post_info['post_time'];
#
# -- [ ZNAJD ] -------------------------------------------------
#
$poll_length = $row['vote_length'] / 86400;
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$poll_length = floor($row['vote_length'] / 86400);
#
# -- [ ZNAJD ] -------------------------------------------------
#
$submit_topic_tag = '';
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$topic_color = ($HTTP_POST_VARS['topic_color'] && $board_config['topic_color'] && $userdata['can_topic_color'] && ($board_config['topic_color_all'] || $userdata['user_level'] == ADMIN || ($is_auth['auth_mod'] && $board_config['topic_color_mod']))) ? htmlspecialchars($HTTP_POST_VARS['topic_color']) : '';
$submit_topic_tag = '';
#
# -- [ ZNAJD ] -------------------------------------------------
#
$self_sql = ($post_data['last_post'] && !$board_config['show_action_edited_self_all']) ? ", post_edit_time = ''" : '';
$sql = "UPDATE " . POSTS_TABLE . "
SET post_edit_by = '' $self_sql
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$self_sql = ($post_data['last_post'] && !$board_config['show_action_edited_self_all']) ? ", post_edit_time = '0'" : '';
$sql = "UPDATE " . POSTS_TABLE . "
SET post_edit_by = '0' $self_sql
#
# -- [ ZNAJD ] -------------------------------------------------
#
$user_sig = ($userdata['user_allow_signature']) ? $user_sig : '';
$user_sig_image = ($userdata['user_allow_sig_image']) ? $user_sig_image : '';
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$user_sig = ($userdata['user_allow_signature'] && $userdata['user_allowsig']) ? $user_sig : '';
$user_sig_image = ($userdata['user_allow_sig_image'] && $userdata['user_allowsig']) ? $user_sig_image : '';
#
# -- [ ZNAJD ] -------------------------------------------------
#
$check0 = ($post_info['post_expire'] == '0') ? $selected : '';
$check1 = ($post_info['post_expire'] == '86400') ? $selected : '';
$check2 = ($post_info['post_expire'] == '172800') ? $selected : '';
$check3 = ($post_info['post_expire'] == '259200') ? $selected : '';
$check4 = ($post_info['post_expire'] == '345600') ? $selected : '';
$check5 = ($post_info['post_expire'] == '432000') ? $selected : '';
$check6 = ($post_info['post_expire'] == '518400') ? $selected : '';
$check7 = ($post_info['post_expire'] == '604800') ? $selected : '';
$check14 = ($post_info['post_expire'] == '1209600') ? $selected : '';
$check30 = ($post_info['post_expire'] == '2592000') ? $selected : '';
$check90 = ($post_info['post_expire'] == '7776000') ? $selected : '';
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$check0 = $check1 = $check2 = $check3 = $check4 = $check5 = $check6 = $check7 = $check14 = $check30 = $check90 = '';
if ( $post_info['post_expire'] )
{
$pe = $post_info['post_expire'] - (CR_TIME - $post_info['post_time']);
if ($pe < 86400) $check1 = $selected;
else if ($pe < 172800) $check2 = $selected;
else if ($pe < 259200) $check3 = $selected;
else if ($pe < 345600) $check4 = $selected;
else if ($pe < 432000) $check5 = $selected;
else if ($pe < 518400) $check6 = $selected;
else if ($pe < 604800) $check7 = $selected;
else if ($pe < 1209600) $check14 = $selected;
else if ($pe < 2592000) $check30 = $selected;
else if ($pe < 7776000) $check90 = $selected;
}
else
{
$check0 = $selected;
}
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( $board_config['topic_color'] && ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] ) ) )
{
if ( $userdata['user_level'] == ADMIN || ( $userdata['can_topic_color'] && $board_config['topic_color'] && $is_auth['auth_mod'] && $board_config['topic_color_mod'] || $userdata['can_topic_color'] && $board_config['topic_color_all'] && $board_config['topic_color'] ) )
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( $board_config['topic_color'] && $userdata['can_topic_color'] && ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] ) ) )
{
if ( $board_config['topic_color_all'] || $userdata['user_level'] == ADMIN || ($is_auth['auth_mod'] && $board_config['topic_color_mod']) )
#
# -- [ ZNAJD ] -------------------------------------------------
#
'HIDE_VOTE' => ($hide_vote) ? 'checked="checked"' : '',
'TOTHIDE_VOTE' => ($tothide_vote) ? 'checked="checked"' : '',
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
'HIDE_VOTE' => ($hide_vote || $HTTP_POST_VARS['hide_vote']) ? 'checked="checked"' : '',
'TOTHIDE_VOTE' => ($tothide_vote || $HTTP_POST_VARS['tothide_vote']) ? 'checked="checked"' : '',
#
# -- [ OTWÓRZ ] -------------------------------------------------
# quick_reply.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.3
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( $board_config['allow_smilies'] && $userdata['show_smiles'] )
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( $board_config['allow_smilies'] && $userdata['show_smiles'] && $board_config['max_smilies'] )
#
# -- [ OTWÓRZ ] -------------------------------------------------
# search.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.0
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
$limiter = 5000;
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$limiter = 5000;
$unread_topics_ids = array();
if ( $userdata['user_id'] != ANONYMOUS )
{
include($phpbb_root_path . 'includes/read_history.'.$phpEx);
$userdata = user_unread_posts();
foreach($userdata['unread_data'] as $forum_id => $topics)
{
$unread_topics_ids = array_merge($unread_topics_ids, array_keys($topics));
}
}
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( ($search_id == 'newposts' || $search_id == 'lastvisit') && $userdata['user_id'] != ANONYMOUS )
{
include($phpbb_root_path . 'includes/read_history.'.$phpEx);
$userdata = user_unread_posts();
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( ($search_id == 'newposts' || $search_id == 'lastvisit') && $userdata['user_id'] != ANONYMOUS )
{
#
# -- [ ZNAJD ] -------------------------------------------------
#
$sql = "SELECT search_array
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$sql_sid = ($HTTP_GET_VARS['sid'] && $HTTP_GET_VARS['sid'] != $userdata['session_id']) ? " OR session_id = '" . str_replace("\'", "''", $HTTP_GET_VARS['sid']) . "'" : '';
$sql = "SELECT search_array
#
# -- [ ZNAJD ] -------------------------------------------------
#
AND session_id = '". $userdata['session_id'] . "'";
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
AND (session_id = '". $userdata['session_id'] . "' $sql_sid)";
#
# -- [ ZNAJD ] -------------------------------------------------
#
$unread_topics_ids = $take_part_topics = array();
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$take_part_topics = array();
#
# -- [ USUŃ ] -------------------------------------------------
#
if ( $board_config['newest'] )
{
$sql = "SELECT p.topic_id
FROM (" . POSTS_TABLE . " p, " . READ_HIST_TABLE . " r)
WHERE r.user_id = " . $userdata['user_id'] . "
AND p.post_id = r.post_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Couldn\'t obtain list of unread topics', '', __LINE__, __FILE__, $sql);
}
if ( $row = $db->sql_fetchrow($result) )
{
do
{
$unread_topics_ids[] = $row['topic_id'];
}
while( $row = $db->sql_fetchrow($result) );
}
}
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( !empty($tracking_topics[$topic_id]) && !empty($tracking_forums[$forum_id]) )
{
$topic_last_read = ($tracking_topics[$topic_id] > $tracking_forums[$forum_id]) ? $tracking_topics[$topic_id] : $tracking_forums[$forum_id];
}
else if ( !empty($tracking_topics[$topic_id]) || !empty($tracking_forums[$forum_id]) )
{
$topic_last_read = (!empty($tracking_topics[$topic_id])) ? $tracking_topics[$topic_id] : $tracking_forums[$forum_id];
}
if ( $searchset[$i]['post_time'] > $topic_last_read )
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( @in_array($searchset[$i]['post_id'], unread_forums_posts('list')) )
#
# -- [ ZNAJD ] -------------------------------------------------
#
$count_unread_posts = count($userdata['unread_topic_posts'][$topic_id]);
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$count_unread_posts = count($userdata['unread_data'][$searchset[$i]['forum_id']][$topic_id]);
#
# -- [ ZNAJD ] -------------------------------------------------
#
$base_url = "search.$phpEx?search_id=$search_id";
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$base_url = "search.$phpEx?search_id=$search_id&sid=" . (($HTTP_GET_VARS['sid']) ? $HTTP_GET_VARS['sid'] : $userdata['session_id']);
#
# -- [ OTWÓRZ ] -------------------------------------------------
# viewforum.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.2
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
$posts_ids = '';
$sql = "SELECT p.post_id
FROM (" . POSTS_TABLE . " p, " . READ_HIST_TABLE . " r)
WHERE r.user_id = " . $userdata['user_id'] . "
AND p.post_id = r.post_id
AND p.forum_id = $forum_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Error in marking all as read', '',__LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
$posts_ids .= ($posts_ids) ? ', ' . $row['post_id'] : $row['post_id'];
}
if ( $posts_ids )
{
$sql = "DELETE FROM " . READ_HIST_TABLE . "
WHERE user_id = " . $userdata['user_id'] . "
AND post_id IN($posts_ids)";
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$sql = "DELETE FROM " . READ_HIST_TABLE . "
WHERE user_id = " . $userdata['user_id'] . "
AND forum_id = $forum_id";
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( $forum_row['forum_sort'] != 'SORT_FPDATE' && count($userdata['unread_forum_topics'][$forum_id]) )
{
$unread_topics_list = implode(',', $userdata['unread_forum_topics'][$forum_id]);
$sort_unread = ($unread_topics_list) ? "t.topic_id IN($unread_topics_list) DESC, " : '';
}
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( $forum_row['forum_sort'] != 'SORT_FPDATE' && count($userdata['unread_data'][$forum_id]) )
{
$unread_topics_list = implode(',', array_keys($userdata['unread_data'][$forum_id]));
$sort_unread = ($unread_topics_list) ? "t.topic_id IN($unread_topics_list) DESC, " : '';
}
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( is_array($userdata['unread_forum_topics'][$forum_id]) && in_array($topic_id, $userdata['unread_forum_topics'][$forum_id]) )
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( is_array($userdata['unread_data'][$topic_rowset[$i]['forum_id']]) && array_key_exists($topic_id, $userdata['unread_data'][$topic_rowset[$i]['forum_id']]) )
#
# -- [ ZNAJD ] -------------------------------------------------
#
$view_topic_url = (count($userdata['unread_topic_posts'][$topic_id])) ? append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=newest") . '"' : append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id");
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$view_topic_url = (count($userdata['unread_data'][$topic_rowset[$i]['forum_id']][$topic_id])) ? append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=newest") . '"' : append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id");
#
# -- [ ZNAJD ] -------------------------------------------------
#
$count_unread_posts = count($userdata['unread_topic_posts'][$topic_id]);
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$count_unread_posts = count($userdata['unread_data'][$forum_id][$topic_id]);
#
# -- [ OTWÓRZ ] -------------------------------------------------
# viewonline.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.0
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ USUŃ ] -------------------------------------------------
#
$forums_data = $forum_data;
$cached = true;
#
# -- [ ZNAJD ] -------------------------------------------------
#
while( $row = $db->sql_fetchrow($result) )
{
$forums_data[] = $row;
}
sql_cache('write', 'forum_data', $forums_data);
}
$forum_data = array();
foreach($forums_data as $key => $val)
{
$forum_data[$val['forum_id']] = get_object_lang(POST_FORUM_URL . $val['forum_id'], 'name');
}
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
while( $row = $db->sql_fetchrow($result) )
{
$forum_data[] = $row;
}
sql_cache('write', 'forum_data', $forum_data);
}
if ( is_array($forum_data) )
{
foreach($forum_data as $key => $val)
{
$forums_data[$val['forum_id']] = get_object_lang(POST_FORUM_URL . $val['forum_id'], 'name');
}
}
#
# -- [ ZNAJD ] -------------------------------------------------
#
$sql = "SELECT u.user_id, u.username, u.user_allow_viewonline, u.user_level, u.user_jr, s.session_logged_in, s.session_start, s.session_page, s.session_ip, s.session_start
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$sql = "SELECT u.user_id, u.username, u.user_allow_viewonline, u.user_level, u.user_jr, u.user_session_time, u.user_session_start, s.session_logged_in, s.session_start, s.session_page, s.session_ip, s.session_start
#
# -- [ ZNAJD ] -------------------------------------------------
#
$location = $forum_data[$row['session_page']];
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$location = $forums_data[$row['session_page']];
#
# -- [ ZNAJD ] -------------------------------------------------
#
$time_online = ((CR_TIME - $row['session_start']) < 3600) ? round( (CR_TIME - $row['session_start']) / 60, 0 ) : round( (CR_TIME - $row['session_start']) / 60 / 60, 1 );
$lang_online = ((CR_TIME - $row['session_start']) < 3600) ? $lang['online_minutes'] : $lang['online_hours'];
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$user_time_online = ($row['user_session_start']) ? $row['user_session_time'] - $row['user_session_start'] : CR_TIME - $row['session_start'];
$time_online = (($user_time_online) < 3600) ? round( ($user_time_online) / 60, 0 ) : round( ($user_time_online) / 60 / 60, 1 );
$lang_online = (($user_time_online) < 3600) ? $lang['online_minutes'] : $lang['online_hours'];
#
# -- [ OTWÓRZ ] -------------------------------------------------
# viewtopic.php
#
# -- [ ZNAJD ] -------------------------------------------------
#
ver. 1.12.3
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
ver. 1.12.4
#
# -- [ ZNAJD ] -------------------------------------------------
#
$posts_ids = '';
$sql = "SELECT post_id
FROM " . POSTS_TABLE . "
WHERE topic_id = " . $topic_id;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query posts table', '', __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
$posts_ids .= ($posts_ids) ? ', ' . $row['post_id'] : $row['post_id'];
if ( $HTTP_GET_VARS['mark_topic'] == 'unread' )
{
$sql2 = "INSERT IGNORE INTO " . READ_HIST_TABLE . " (user_id, post_id)
VALUES ($user_id, " . $row['post_id'] . ")";
if ( !$db->sql_query($sql2) )
{
message_die(GENERAL_ERROR, 'Could not insert into read history table', '',__LINE__, __FILE__, $sql2);
}
}
}
if ( $HTTP_GET_VARS['mark_topic'] == 'read' && $posts_ids )
{
$sql = "DELETE FROM " . READ_HIST_TABLE . "
WHERE user_id = $user_id
AND post_id IN($posts_ids)";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Error deleting ignore topic', '', __LINE__, __FILE__, $sql);
}
}
else if ( $HTTP_GET_VARS['mark_topic'] == 'unread' && $ignore_this_topic )
{
$sql = "DELETE FROM " . TOPICS_IGNORE_TABLE . "
WHERE user_id = $user_id
AND topic_id = " . $topic_id;
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Error deleting ignore topic', '', __LINE__, __FILE__, $sql);
}
}
}
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( $HTTP_GET_VARS['mark_topic'] == 'read' )
{
$sql = "DELETE FROM " . READ_HIST_TABLE . "
WHERE user_id = $user_id
AND topic_id = $topic_id";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Error deleting ignore topic', '', __LINE__, __FILE__, $sql);
}
}
else if ( $HTTP_GET_VARS['mark_topic'] == 'unread' )
{
$unread_insert = '';
$sql = "SELECT post_id
FROM " . POSTS_TABLE . "
WHERE topic_id = " . $topic_id;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query posts table', '', __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
$unread_insert .= (($unread_insert) ? ', ' : '') . "($user_id, " . $row['post_id'] . ", $topic_id, $forum_id)";
}
if ( $unread_insert )
{
$sql2 = "INSERT IGNORE INTO " . READ_HIST_TABLE . " (user_id, post_id, topic_id, forum_id)
VALUES $unread_insert";
if ( !$db->sql_query($sql2) )
{
message_die(GENERAL_ERROR, 'Could not insert into read history table', '',__LINE__, __FILE__, $sql2);
}
}
if ( $ignore_this_topic )
{
$sql = "DELETE FROM " . TOPICS_IGNORE_TABLE . "
WHERE user_id = $user_id
AND topic_id = " . $topic_id;
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Error deleting ignore topic', '', __LINE__, __FILE__, $sql);
}
}
}
}
#
# -- [ ZNAJD ] -------------------------------------------------
#
SET post_edit_by = '0', post_edit_time = ''
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
SET post_edit_by = '0', post_edit_time = '0'
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( count($userdata['unread_topic_posts'][$topic_id]) && in_array($postrow_post_id, $userdata['unread_topic_posts'][$topic_id]) )
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( count($userdata['unread_data'][$forum_id][$topic_id]) && in_array($postrow_post_id, $userdata['unread_data'][$forum_id][$topic_id]) )
#
# -- [ ZNAJD ] -------------------------------------------------
#
$user_sig = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $user_sig . '<'), 1, -1));
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
$user_sig = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace(\$orig_word, \$replacement_word_html, '\\0')", '>' . $user_sig . '<'), 1, -1));
#
# -- [ ZNAJD ] -------------------------------------------------
#
replace_bad_words($orig_word, $replacement_word, $user_sig);
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
replace_bad_words($orig_word, $replacement_word_html, $user_sig);
#
# -- [ ZNAJD ] -------------------------------------------------
#
if ( is_array($userdata['unread_topic_posts'][$topic_id]) && is_array($new_posts_to_delete) )
{
$unread_posts_diff = array_diff($userdata['unread_topic_posts'][$topic_id], $new_posts_to_delete);
$unread_posts_exist = count($unread_posts_diff);
}
#
# -- [ ZAMIEŃ NA ] -------------------------------------------------
#
if ( is_array($userdata['unread_data'][$forum_id][$topic_id]) && is_array($new_posts_to_delete) )
{
$unread_posts_diff = array_diff($userdata['unread_data'][$forum_id][$topic_id], $new_posts_to_delete);
$unread_posts_exist = count($unread_posts_diff);
}
###############################################
# Aktualizacja stylu
###############################################
#
# -- [ OTWÓRZ ] -------------------------------------------------
# /templates/Styl/admin/board_config_body.tpl
#
# -- [ ZNAJD ] -------------------------------------------------
#