PHP-Nuke
  Strona głównaDownloadForumFAQ Zaloguj się  
Forum


 
Regulamin  Forum FAQ   Szukaj   Grupy   Rejestracja   Zaloguj
 
 
Zadając pytanie dotyczące PHPNuke podaj jego wersje!!

Zobacz następny temat
Zobacz poprzedni temat
Napisz nowy temat   Odpowiedz do tematu  Forum PHP-Nuke.org.pl Strona Główna » Bezpieczeństwo
Autor Wiadomość
dudi
@admin



Dołączył(a): 13.12.2004
Posty: 3154
Pochwał: 330
Skąd: Tychy

Status: Offline


 
PostWysłany: 27 Cze 2005 22:29:36 Back to top  
Przeglądarka użytkownikaUA:

Instrukcja aktualizacji BBtoNuke do 2.0.15 -> 2.0.16

Kod:
#################################################################
## MOD Title: phpBB 2.0.15 to phpBB 2.0.16 Code Changes
## MOD Author: Acyd Burn < N/A > (Meik Sievertsen) N/A
## MOD Description:
##      
##      
##      These are the Changes from phpBB 2.0.15 to phpBB 2.0.16 summed up into a little
##      Mod. This might be very helpful if you want to update your Board and have
##      installed a bunch of Mods. Then it's normally easier to apply the Code Changes
##      than to install all Mods again.
##      
##      When you find a 'AFTER, ADD'-Statement, the Code have to be added after the last
##      line quoted in the 'FIND'-Statement.
##      When you find a 'BEFORE, ADD'-Statement, the Code have to be added before the
##      first line quoted in the 'FIND'-Statement.
##      When you find a 'REPLACE WITH'-Statement, the Code quoted in the
##      'FIND'-Statement have to be replaced completely with the quoted Code in the
##      'REPLACE WITH'-Statement.
##      
##      After you have finished this tutorial, you have to upload the
##      install/update_to_latest.php file, execute it and then delete it from your
##      webspace.
##      
##      
##      
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 5-10 Minutes
## Files To Edit:
##      modules/Forums/admin/admin_ug_auth.php
##      modules/Forums/admin/pagestart.php
##      includes/bbcode.php
##      includes/usercp_avatar.php
##      includes/usercp_register.php
##      modules/Forums/modcp.php
##      modules/Forums/viewtopic.php
##
## Included Files: install/update_to_latest.php
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
##   
##############################################################
## MOD History:
##
##   2005-06-26 - Version 1.0.0
##      - first release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################


#
#-----[ OPEN ]---------------------------------------------
#
modules/Forums/admin/admin_ug_auth.php

#
#-----[ FIND ]---------------------------------------------
#
   @reset($auth_user);

#
#-----[ REPLACE WITH ]---------------------------------------------
#
//   @reset($auth_user);


#
#-----[ OPEN ]---------------------------------------------
#
modules/Forums/admin/pagestart.php

#
#-----[ FIND ]---------------------------------------------
#
   redirect(append_sid("login.$phpEx?redirect=admin/", true));

#
#-----[ REPLACE WITH ]---------------------------------------------
#
   redirect(append_sid("login.$phpEx?redirect=admin/index.$phpEx", true));

#
#-----[ FIND ]---------------------------------------------
#
   redirect(append_sid("login.$phpEx?redirect=admin/&admin=1", true));

#
#-----[ REPLACE WITH ]---------------------------------------------
#
   redirect(append_sid("login.$phpEx?redirect=admin/index.$phpEx&admin=1", true));


#
#-----[ OPEN ]---------------------------------------------
#
includes/bbcode.php

#
#-----[ FIND ]---------------------------------------------
#
   $patterns[] = "#\[url=([\w]+?://[^ \"\n\r\t<]*?)\]([^?].*?)\[/url\]#i";
   $replacements[] = $bbcode_tpl['url3'];
 
   // [url=www.phpbb.com]phpBB[/url] code.. (no xxxx:// prefix).
   $patterns[] = "#\[url=((www|ftp)\.[^ \"\n\r\t<]*?)\]([^?].*?)\[/url\]#i";

#
#-----[ REPLACE WITH ]---------------------------------------------
#
   $patterns[] = "#\[url=([\w]+?://[^ \"\n\r\t<]*?)\]([^?\n\r\t].*?)\[/url\]#is";
   $replacements[] = $bbcode_tpl['url3'];

   // [url=www.phpbb.com]phpBB[/url] code.. (no xxxx:// prefix).
   $patterns[] = "#\[url=((www|ftp)\.[^ \"\n\r\t<]*?)\]([^?\n\r\t].*?)\[/url\]#is";


#
#-----[ OPEN ]---------------------------------------------
#
includes/usercp_avatar.php

#
#-----[ FIND ]---------------------------------------------
#
   if ( $width <= $board_config['avatar_max_width'] && $height <= $board_config['avatar_max_height'] )

#
#-----[ REPLACE WITH ]---------------------------------------------
#
   if ( $width > 0 && $height > 0 && $width <= $board_config['avatar_max_width'] && $height <= $board_config['avatar_max_height'] )


#
#-----[ OPEN ]---------------------------------------------
#
includes/usercp_register.php

#
#-----[ FIND ]---------------------------------------------
#
      $avatar_sql = user_avatar_delete($userdata['user_avatar_type'], $userdata['user_avatar']);
   }

#
#-----[ AFTER, ADD ]---------------------------------------------
#
   else


#
#-----[ OPEN ]---------------------------------------------
#
modules/Forums/modcp.php

#
#-----[ FIND ]---------------------------------------------
#
         $new_forum_id = intval($HTTP_POST_VARS['new_forum']);
         $old_forum_id = $forum_id;


#
#-----[ AFTER, ADD ]---------------------------------------------
#
         $sql = 'SELECT forum_id FROM ' . FORUMS_TABLE . '
            WHERE forum_id = ' . $new_forum_id;
         if ( !($result = $db->sql_query($sql)) )
         {
            message_die(GENERAL_ERROR, 'Could not select from forums table', '', __LINE__, __FILE__, $sql);
         }
         
         if (!$db->sql_fetchrow($result))
         {
            message_die(GENERAL_MESSAGE, 'New forum does not exist');
         }

         $db->sql_freeresult($result);


#
#-----[ FIND ]---------------------------------------------
#
            $new_forum_id = intval($HTTP_POST_VARS['new_forum_id']);
            $topic_time = time();
            

#
#-----[ AFTER, ADD ]---------------------------------------------
#
            $sql = 'SELECT forum_id FROM ' . FORUMS_TABLE . '
               WHERE forum_id = ' . $new_forum_id;
            if ( !($result = $db->sql_query($sql)) )
            {
               message_die(GENERAL_ERROR, 'Could not select from forums table', '', __LINE__, __FILE__, $sql);
            }
         
            if (!$db->sql_fetchrow($result))
            {
               message_die(GENERAL_MESSAGE, 'New forum does not exist');
            }

            $db->sql_freeresult($result);



#
#-----[ OPEN ]---------------------------------------------
#
modules/Forums/viewtopic.php

#
#-----[ FIND ]---------------------------------------------
#
      $message = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace('#\b(" . str_replace('\\', '\\\\', $highlight_match) . ")\b#i', '<span style=\"color:#" . $theme['fontcolor3'] . "\"><b>\\\\1</b></span>', '\\0')", '>' . $message . '<'), 1, -1));

#
#-----[ REPLACE WITH ]---------------------------------------------
#
      $message = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace('#\b(" . str_replace('\\', '\\\\', addslashes($highlight_match)) . ")\b#i', '<span style=\"color:#" . $theme['fontcolor3'] . "\"><b>\\\\1</b></span>', '\\0')", '>' . $message . '<'), 1, -1));

#
#-----[ SQL ]-----------------------------
#

UPDATE `nuke_bbconfig` SET `config_value` = '.0.16' WHERE `config_name` = 'version';


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#

# EoM

_________________
Pomocy udzielam TYLKO na forum !!!
Zobacz profil autora Odwiedź stronę autora    
adamr
+przyjaciel



Dołączył(a): 1.01.2005
Posty: 89
Pochwał: 2
Skąd: Wejherowo

Status: Offline


 
PostWysłany: 28 Cze 2005 17:00:34 Back to top  
Przeglądarka użytkownikaUA:

Kod:
#
#-----[ OPEN ]---------------------------------------------
#
modules/Forums/admin/pagestart.php

#
#-----[ FIND ]---------------------------------------------
#
   redirect(append_sid("login.$phpEx?redirect=admin/", true));

#
#-----[ REPLACE WITH ]---------------------------------------------
#
   redirect(append_sid("login.$phpEx?redirect=admin/index.$phpEx", true));

#
#-----[ FIND ]---------------------------------------------
#
   redirect(append_sid("login.$phpEx?redirect=admin/&admin=1", true));

#
#-----[ REPLACE WITH ]---------------------------------------------
#
   redirect(append_sid("login.$phpEx?redirect=admin/index.$phpEx&admin=1", true));


Kod:
#
#-----[ OPEN ]---------------------------------------------
#
modules/Forums/admin/pagestart.php

#
#-----[ FIND ]---------------------------------------------
#
   append_sid("login.$phpEx?redirect=admin/"));

#
#-----[ REPLACE WITH ]---------------------------------------------
#
   append_sid("login.$phpEx?redirect=admin/index.$phpEx", true));

#
#-----[ FIND ]---------------------------------------------
#
   append_sid("login.$phpEx?redirect=admin/&admin=1", true));

#
#-----[ REPLACE WITH ]---------------------------------------------
#
   append_sid("login.$phpEx?redirect=admin/index.$phpEx&admin=1", true));


Nie powinno to byc tak przypadkiem?????

_________________
Pozdrawiam Lazikar Mr. Green Mr. Green
Nie wystarczy mieć sprawny umysł, trzeba go jeszcze dobrze używać. Kartezjusz
Zobacz profil autora Odwiedź stronę autora    
Wyświetl posty z ostatnich:   
Napisz nowy temat   Odpowiedz do tematu

Zobacz następny temat
Zobacz poprzedni temat
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Nie możesz dołączać plików na tym forum
Możesz ściągać pliki na tym forum


Powered by phpBB [CR] © 2001, 2006 phpBB Group.
 

Copyright © 2004-2009 by phpnuke.org.pl :: PHP-Nuke Copyright © 2004 by Francisco Burzi.
Zdjęcia ślubne
Tworzenie strony: 0.22 sekund
Zapytań: 9