Argomenti: 1497    Messaggi: 8242   Letture: 665653   Risposte: 6753      
(Ultime News)------|    Aggiornamento Ip2Country al 02/09/2008 - (06-09-2008 - 23:28:31 - di Sniffer)    ||    Aggiornamento Ip2Country al 03/08/2008 - (04-08-2008 - 23:29:03 - di Sniffer)    ||    NukeSentinel 2.6.01 - (04-08-2008 - 23:10:47 - di Sniffer)    ||    Aggiornamento Ip2Country al 24/03/2008 - (24-03-2008 - 23:16:04 - di Sniffer)    ||    NukeSentinel 2.5.17 - (24-03-2008 - 23:13:14 - di Sniffer)    ||    PHP-Nuke Patch 3.5 - (16-03-2008 - 02:56:39 - di Sniffer)    |------
Regolamento:
Le principali regole da rispettare per poter far parte della community... cosigliamo di visionarle per evitare malintesi.
Script:
Per motivi di sicurezza il sistema blocca l'inserimento di alcuni script per sapere come fare cliccare qui

Webother.com :: Leggi il Topic - [patch 3.3] fix Modulo News
 FAQ  •  Cerca  •  Lista degli utenti  •  Gruppi utenti  •  Profilo  •  Messaggi Privati  •  Login

Information [patch 3.3] fix Modulo News

Nuovo Topic Topic chiuso
Indice del forum » Patch e fix   
Precedente :: Successivo
AutoreMessaggio
Sniffer
Amministratore
Amministratore


Registrato: Jul 20, 2003
Messaggi: 3061
Localitą: Verona

Oggetto: [patch 3.3] fix Modulo News Rispondi citando

PHP-Nuke 7.6 + patch 3.3
Questa fix risolve il problema della mancanza degli stripslashes nel modulo.

Aprire il file modules/News/admin/index.php
Cercare [riga 409-412]
Codice:
    $title = check_words(check_html($title, "nohtml"));
    $hometext = check_words(check_html($hometext, ""));
    $bodytext = check_words(check_html($bodytext, ""));
    $notes = check_words(check_html($notes, ""));

sostituire con
Codice:
    $title = stripslashes(check_words(check_html($title, "nohtml")));
    $hometext = stripslashes(check_words(check_html($hometext, "")));
    $bodytext = stripslashes(check_words(check_html($bodytext, "")));
    $notes = stripslashes(check_words(check_html($notes, "")));

cercare [riga 664-667]
Codice:
    $uname = check_html($uname, "nohtml");
    $subject = check_words(check_html($subject, "nohtml"));
    $story = check_words(check_html($story, ""));
    $storyext = check_words(check_html($storyext, ""));

sostituire con
Codice:
    $uname = stripslashes(check_html($uname, "nohtml"));
    $subject = stripslashes(check_words(check_html($subject, "nohtml")));
    $story = stripslashes(check_words(check_html($story, "")));
    $storyext = stripslashes(check_words(check_html($storyext, "")));

cercare [riga 862 -864]
Codice:
    $subject = check_words(check_html($subject,"nohtml"));
    $hometext = check_words(check_html($hometext,""));
    $bodytext = check_words(check_html($bodytext,""));

sostituire con
Codice:
    $subject = stripslashes(check_words(check_html($subject,"nohtml")));
    $hometext = stripslashes(check_words(check_html($hometext,"")));
    $bodytext = stripslashes(check_words(check_html($bodytext,"")));

cercare [riga 1624-1626]
Codice:
    $subject = check_words(check_html($subject, "nohtml"));
    $hometext = check_words(check_html($hometext, ""));
    $bodytext = check_words(check_html($bodytext, ""));

sostituire con
Codice:
    $subject = stripslashes(check_words(check_html($subject, "nohtml")));
    $hometext = stripslashes(check_words(check_html($hometext, "")));
    $bodytext = stripslashes(check_words(check_html($bodytext, "")));

cercare
Codice:
?>

subito prima aggiungere
Codice:
//Fix (stripslashes) By Sniffer 22/04/2007 - http://www.webother.com

----------------------------------------------------------------------------
Aprire il file modules/News/print.php
cercare [riga 31]
Codice:
$title = check_words(check_html($row['title'], "nohtml"));

sostituire con
Codice:
$title = stripslashes(check_words(check_html($row['title'], "nohtml")));

cercare [riga 33-34]
Codice:
    $hometext = check_words(check_html($row['hometext'], ""));
    $bodytext = check_words(check_html($row['bodytext'], ""));

sostituire con
Codice:
    $hometext = stripslashes(check_words(check_html($row['hometext'], "")));
    $bodytext = stripslashes(check_words(check_html($row['bodytext'], "")));

cercare [riga 36]
Codice:
$notes = check_words(check_html($row['notes'], ""));

sostituire con
Codice:
$notes = stripslashes(check_words(check_html($row['notes'], "")));

cercare [riga 38]
Codice:
$topictext = check_words(check_html($row2['topictext'], "nohtml"));

sostituire con
Codice:
$topictext = stripslashes(check_words(check_html($row2['topictext'], "nohtml")));

cercare
Codice:
?>

subito prima aggiungere
Codice:
//Fix (stripslashes) By Sniffer 22/04/2007 - http://www.webother.com

----------------------------------------------------------------------------
Aprire il file modules/News/friend.php
cercare [riga 38]
Codice:
$title = check_words(check_html($row['title'], "nohtml"));

sostituire con
Codice:
$title = stripslashes(check_words(check_html($row['title'], "nohtml")));

cercare [riga 73]
Codice:
$title = check_words(check_html($row['title'], "nohtml"));

sostituire con
Codice:
$title = stripslashes(check_words(check_html($row['title'], "nohtml")));

cercare [riga 77]
Codice:
$topictext = check_words(check_html($row2['topictext'], "nohtml"));

sostituire con
Codice:
$topictext = stripslashes(check_words(check_html($row2['topictext'], "nohtml")));

cercare [riga 89]
Codice:
$title = check_words(check_html($title, "nohtml"));

sostituire con
Codice:
$title = stripslashes(check_words(check_html($title, "nohtml")));

cercare
Codice:
?>

subito prima inserire
Codice:
//Fix (stripslashes) By Sniffer 22/04/2007 - http://www.webother.com

----------------------------------------------------------------------------
Aprire il file modules/News/index.php
cercare [riga 53]
Codice:
$topic_title = check_words(check_html($row_a['topictext'], "nohtml"));

sostituire con
Codice:
$topic_title = stripslashes(check_words(check_html($row_a['topictext'], "nohtml")));

cercare [riga 81]
Codice:
$informant = check_html($row['informant'], "nohtml");

sostituire con
Codice:
$informant = stripslashes(check_html($row['informant'], "nohtml"));

cercare [riga 88]
Codice:
$cattitle = check_words(check_html($row2['title'], "nohtml"));

sostituire con
Codice:
$cattitle = stripslashes(check_words(check_html($row2['title'], "nohtml")));

cercare [riga 114]
Codice:
$title1 = check_words(check_html($row3['title'], "nohtml"));

sostituisci con
Codice:
$title1 = stripslashes(check_words(check_html($row3['title'], "nohtml")));

cercare
Codice:
?>

subito prima aggiungere
Codice:
//Fix (stripslashes) By Sniffer 22/04/2007 - http://www.webother.com

----------------------------------------------------------------------------
Aprire il file modules/News/article.php
cercare [riga 65]
Codice:
$informant = check_words(check_html($row['informant'], "nohtml"));

sostituire con
Codice:
$informant = stripslashes(check_words(check_html($row['informant'], "nohtml")));

cercare [riga 104]
Codice:
$title1 = check_words(check_html($row2['title'], "nohtml"));

sostituire con
Codice:
$title1 = stripslashes(check_words(check_html($row2['title'], "nohtml")));

cercare [riga 125]
Codice:
$pollTitle = check_words(check_html($row3['pollTitle'], "nohtml"));

sostituire con
Codice:
$pollTitle = stripslashes(check_words(check_html($row3['pollTitle'], "nohtml")));

cercare [riga 195]
Codice:
$ttitle = check_words(check_html($row9['title'], "nohtml"));

sostituire con
Codice:
$ttitle = stripslashes(check_words(check_html($row9['title'], "nohtml")));

cercare
Codice:
?>

subito prima aggiungere
Codice:
//Fix (stripslashes) By Sniffer 22/04/2007 - http://www.webother.com

----------------------------------------------------------------------------
Aprire il file modules/News/comment.php
cercare [riga 615-616]
Codice:
       $subject = check_words(check_html($row['subject'], "nohtml"));
       $comment = check_words(check_html($row['comment'], ""));

sostituire con
Codice:
       $subject = stripslashes(check_words(check_html($row['subject'], "nohtml")));
       $comment = stripslashes(check_words(check_html($row['comment'], "")));

cercare [riga 621-625]
Codice:
       $subject = check_words(check_html($row2['title'], "nohtml"));
       $temp_comment = check_words(check_html($row2['hometext'], ""));
       $comment2 = check_words(check_html($row2['bodytext'], ""));
       $name = check_words(check_html($row2['informant'], "nohtml"));
       $notes = check_words(check_html($row2['notes'], ""));

sostituire con
Codice:
       $subject = stripslashes(check_words(check_html($row2['title'], "nohtml")));
       $temp_comment = stripslashes(check_words(check_html($row2['hometext'], "")));
       $comment2 = stripslashes(check_words(check_html($row2['bodytext'], "")));
       $name = check_words(check_html($row2['informant'], "nohtml"));
       $notes = stripslashes(check_words(check_html($row2['notes'], "")));

cercare [riga 656]
Codice:
$subject = check_words(check_html($row3['title'], "nohtml"));

sostituire con
Codice:
$subject = stripslashes(check_words(check_html($row3['title'], "nohtml")));

cercare [riga 659]
Codice:
$subject = check_words(check_html($row4['subject'], "nohtml"));

sostituire con
Codice:
$subject = stripslashes(check_words(check_html($row4['subject'], "nohtml")));

cercare [riga 735-736]
Codice:
    $subject = check_words(check_html($subject, "nohtml"));
    $comment = check_words(check_html($comment, ""));

sostituire con
Codice:
    $subject = stripslashes(check_words(check_html($subject, "nohtml")));
    $comment = stripslashes(check_words(check_html($comment, "")));

cercare
Codice:
?>

subito prima aggiungere
Codice:
//Fix (stripslashes) By Sniffer 22/04/2007 - http://www.webother.com


Fine.




_________________
Non inviatemi pm con richieste di aiuto grazie.
 Su questo forum solo gli utenti
 registrati possono vedere i links!  
 Registrati o fai il login
MessaggioInviato:
Lun Apr 23, 2007 1:32 am
Top of PageProfiloMessaggio privatoHomePage
Mostra prima i messaggi di:   
Tutti i fusi orari sono GMT + 2 ore
Nuovo Topic Topic chiuso
Indice del forum » Patch e fix  

Vai a:  
Key
  Non puoi inserire nuovi Topic in questo forum
Non puoi rispondere ai Topic in questo forum
Non puoi modificare i tuoi messaggi in questo forum
Non puoi cancellare i tuoi messaggi in questo forum
Non puoi votare nei sondaggi in questo forum

Powered by phpBB © 2001, 2005 phpBB Group



http://www.top100italiana.com
Valid Robots.txt
Tutti i diritti riservati Copyright © 2003-2009