Argomenti: 1461    Messaggi: 8032   Letture: 571042   Risposte: 6579      
(Ultime News)------|    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)    ||    Block_MenuD&D - (08-03-2008 - 01:08:49 - 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.5] fix modulo Topics
 FAQ  •  Cerca  •  Lista degli utenti  •  Gruppi utenti  •  Profilo  •  Messaggi Privati  •  Login

Information [patch 3.5] fix modulo Topics

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


Registrato: Jul 20, 2003
Messaggi: 2981
Località: Verona

Oggetto: [patch 3.5] fix modulo Topics Rispondi citando

PHP-Nuke 7.6 + patch 3.5 bug stripslashes e elenco topics vuoto
Questa fix risolve un piccolo bug presente nella patch 3.5 nel modulo Topics
Aprire il file modules/Topics/index.php
cercare [riga 29]
Codice:
$sql = "SELECT t.topicid, t.topicimage, t.topictext, count(s.sid) AS stories, SUM(s.counter) AS reads FROM ".$prefix."_topics t LEFT JOIN ".$prefix."_stories s ON (s.topic = t.topicid) GROUP BY t.topicid, t.topicimage, t.topictext ORDER BY t.topictext";

modificare così
Codice:
$sql = "SELECT t.topicid, t.topicimage, t.topictext, count(s.sid) AS stories FROM ".$prefix."_topics t LEFT JOIN ".$prefix."_stories s ON (s.topic = t.topicid) GROUP BY t.topicid, t.topicimage, t.topictext ORDER BY t.topictext";


cercare [riga 65]
Codice:
echo "<img src=\"images/arrow.gif\" border=\"0\" alt=\"\" /> $cat_link<a href=\"modules.php?name=News&amp;file=article&amp;sid=".intval($row2['sid'])."\">".htmlentities($row2['title'])."</a><br>";

modificare così
Codice:
echo "<img src=\"images/arrow.gif\" border=\"0\" alt=\"\" /> $cat_link<a href=\"modules.php?name=News&amp;file=article&amp;sid=".intval($row2['sid'])."\">".stripslashes(htmlentities($row2['title']))."</a><br>";

---------------------------------------------------------
Aprire il file modules/Topics/admin/index.php
Cercare [riga 53]
Codice:
         $topicname = check_html($row['topicname'], "nohtml");
         $topicimage = check_html($row['topicimage'], "nohtml");
         $topictext = check_html($row['topictext'], "nohtml");

modificare così
Codice:
         $topicname = stripslashes(check_html($row['topicname'], "nohtml"));
         $topicimage = stripslashes(check_html($row['topicimage'], "nohtml"));
         $topictext = stripslashes(check_html($row['topictext'], "nohtml"));

cercare [riga 113]
Codice:
      $topicname = htmlentities(check_html($row['topicname'], "nohtml"), ENT_QUOTES);

modificare così
Codice:
      $topicname = stripslashes(htmlentities(check_html($row['topicname'], "nohtml"), ENT_QUOTES));

cercare [riga 115]
Codice:
      $topictext = stripslashes(htmlentities(check_html($row['topictext'], "nohtml"), ENT_QUOTES));


Fine.


Fix by Sniffer




_________________
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:
Dom Mar 16, 2008 6:29 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



fmtech.it
Tutti i diritti riservati Copyright © 2003-2008