Index du Forum » » Le coin des codeurs

Auteur

Tiny_mce HS après URL Rewriting ou changement de nom de submit.php
oim
1453       
 

  Posté : 15-05-2008 15:28

Salut,

FAIT UNE SAUVEGARDE AVANT

Après dans header.php (racine du site) retrouve ce bout de script et modifie le, permet au module qui utilise tiny de l'afficher.


<?PHP
// Static page and Module can have Bloc, Title ....
if ($pages_ref=="static.php")
{

    $pages_ref=substr($REQUEST_URI,strpos($REQUEST_URI,"static.php"));

}

////////////////////
//DEBUT AJOUT OIM///
////////////////////

/*rewriting*/
$Fichier = stristr($pages_ref, '.html');
if ($pages_ref==
"modules.php" || $Fichier) /*ajout de || $ Fichier*/

////////////////////
//FIN AJOUT OIM///
////////////////////
{

    if (isset($PAGES
["modules.php?ModPath=$ModPath&ModStart=$ModStart*"][title]))
        
{

        $pages_ref=
"modules.php?ModPath=$ModPath&ModStart=$ModStart*";

    
}
    else

        $pages_ref=substr($REQUEST_UR I,strpos($REQUEST_URI,
"modules.php"));

    
}

    if ($pages_ref==
"admin.php")
    
{

        if (isset($PAGES
< font color="#007700">["
admin.php?op=Extend-Admin-SubModule&ModPath=$ModPath&Mo dStart=admin/admin*"][css]))
        
{

            $page s_ref=
"admin.php?op=Extend-Admin-SubModule&ModPath=$ModPath&Mo dStart=admin/admin*";

        
}

    
}

?>




FAIT UNE SAUVEGARDE AVANT



Cet article provient de NPDS

http://www.npds.org/viewtopic.php?topic=23585&forum=5