website logo
Auteur
avatar
mimetic

Forum » » Version future » » Articles, Twitter et langues


Posté : 22 nov. 2012 à 08:16 icone du post

Ok, je viens de regarder ! Pour la correction, c'est dans le fichier npds_twi_set.php (C'est ici que le fichier s.php se génère) Je remplace donc : (lignes 214,215)

214:
$content .= "preg_match ('#/s\.php/(\d+)\$#', \$_SERVER['PHP_SELF'],\$res);\n";

215:
$content .= "header('Location: http://'.\$_SERVER['HTTP_HOST'].\$fol.'article.php?sid='.\$res[1]);\n";

par

214:
$content .= "$val_id = str_replace('/','',$fol);\n";

215:
$content .= "header('Location: http://'.$_SERVER['HTTP_HOST'].'/article.php?sid='.$val_id);\n";

OK ?

Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=25680&forum=4