Pages vues depuis 25/05/2001 : 109 519 223
Index du forum »» Le coin des codeurs »» Tiny_mce HS après URL Rewriting ou changement de nom de submit.php
<?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*";
}
}
?>
$PAGES['submit.php'][title]="[french]Soumettre un nouvel article[/french][english]Submit a new[/english][chinese]提交一篇新文章[/chinese]+";
$PAGES['submit.php'][blocs]="0";
$PAGES['submit.php'][run]="yes";
$PAGES['submit.php'][TinyMce]=1;
$PAGES['submit.php'][TinyMce-theme]="full";
$PAGES['nouvel-article.html'][title]="[french]Soumettre un nouvel article[/french][english]Submit a new[/english][chinese]提交一篇新文章[/chinese]+";
$PAGES['nouvel-article.html'][blocs]="0";
$PAGES['nouvel-article.html'][run]="yes";
$PAGES['nouvel-article.html'][TinyMce]=1;
$PAGES['nouvel-article.html'][TinyMce-theme]="full";
Message édité par : freud / 16-05-2008 11:39
L'électricité photovoltaïque aujourd'hui
s'affiche
L-%E9lectricit%E9-photovolta%EFque-aujourd-hui.html
// Made the title and pdst value from the pages.php config file
settype($PAGES, array());
global $pdst, $Titlesitename, $PHP_SELF;
require_once("themes/pages.php");
$pages_ref=basename($PHP_SELF);
if ($PAGES[$pages_ref][blocs]!="") {
$pdst=$PAGES[$pages_ref][blocs];
}
// Static page and Module can have Title ....
etc ....
// Made the title and pdst value from the pages.php config file
settype($PAGES, array());
global $pdst, $Titlesitename, $PHP_SELF, $REQUEST_URI;
require_once("themes/pages.php");
//////////////////////////////
// Balises META personnalisées
$meta_url=parse_!!url(!!$REQUEST_URI);
$meta_url=$meta_url[path];
ereg("^/(.*)-([0-9]+)-(.*)\.html$", $meta_url, $meta_url2);
$type_url = $meta_url2[1];
if (isset($type_url)) {
$pages_ref = $type_url; // ex: article
} else {
$page_uri=split("[&?]",$REQUEST_URI);
$Npage_uri=count($page_uri);
$pages_ref=basename($page_uri[0]);
}
// Static page and Module can have Bloc, Title ....
$meta_url=$meta_url[path];
ereg("^/(.*)-([0-9]+)-(.*)\.html$", $meta_url, $meta_url2);
$type_url = $meta_url2[1];
if (isset($type_url)) {
$pages_ref = $type_url; // ex: article
} else {
$page_uri=split("[&?]",$REQUEST_URI);
$Npage_uri=count($page_uri);
$pages_ref=basename($page_uri[0]);
}
$PAGES['article'][title]="[french]Article[/french] : $title+";
$PAGES['article'][blocs]="0";
$PAGES['article'][run]="yes";
$PAGES['discussion'][title]="[french]Discussion[/french] : $title / $post+";
...
Message édité par : freud / 16-05-2008 15:29