website logo
Auteur
avatar
oim

Forum » » Le coin des codeurs » » Tiny_mce HS après URL Rewriting ou changement de nom de submit.php


Posté : 15 mai 2008 à 15:28 icone du post

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_URI,strpos($REQUEST_URI,
"modules.php"));

    
}

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

        if (isset($PAGES
["admin.php?op=Extend-Admin-SubModule&ModPath=$ModPath&ModStart=admin/admin*"][css]))
        
{

            $pages_ref=
"admin.php?op=Extend-Admin-SubModule&ModPath=$ModPath&ModStart=admin/admin*";

        
}

    
}

?>




FAIT UNE SAUVEGARDE AVANT

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