Herzlich willkommen im Archiv vom ABAKUS Online Marketing Forum
Du befindest Dich im Archiv vom ABAKUS Online Marketing Forum. Hier kannst Du Dich für das Forum mit den aktuellen Beiträgen registrieren.
so mach ich das auchlorenzolamas hat geschrieben: auf meiner Website wird alles über die index.php gesteuert
dort gibst du garnix einlorenzolamas hat geschrieben:ok, danke erstmal.
Mal angenomen es ist die hier index.php?page=102
was schreib ich dann in die header.inc ?
etwas verkürztAndreas I. hat geschrieben:Ganz primitiv:
[php]
if ($_GET['page']==102) echo "<title>Ich bin auf Seite 102</title>";
[/php]
Natürlich sollte man das mit einer Datenbank lösen und nicht per if-Abfrage...
Du musst deine header.inc deinen Wünschen anpassen.
Code: Alles auswählen
$DCkill_ =$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$metakeywords="";
$metadescript="";
include('cms800/cms800ini.php');
header("HTTP/1.1 200 OK");
include("cms800/cms800.php");
include("cms800/cms800request.php");
include('cms800/cms800filer.php');
if ( $DCkill
&& strcmp($DCkill,$DCkill_) )
{
if ( strstr($DCkill_,'%') )
{
$DCkill_= urldecode ( $DCkill_ );
if ( strcmp($DCkill,$DCkill_) )
make301($DCkill);
}
else make301($DCkill);
}
$CMS800END=microtime_float();
$CMS800RUN=round($CMS800END-$CMS800START,4);
echo(str_replace('_PHPrun_',$CMS800RUN,$tbuf));
Code: Alles auswählen
<header>
<title>_tit_</title>
</header>
.....
Code: Alles auswählen
$tbuf = file_get_contents( 'template.html' );
// module laden die COntent in $Vars schreiben
$tbuf = str_replace( '_tit_', $tit, $tbuf );
$tbuf = str_replace( '_navi_', $navi, $tbuf );
$tbuf = str_replace( '_content_', $content, $tbuf );
$tbuf = str_replace( '_metadesc_', $metadesc, $tbuf );
$tbuf = str_replace( '_metakey_', $metakey, $tbuf );
echo( $tbuf );
lorenzolamas hat geschrieben: Hatte jetzt mal das probiert
klappt aber auch nicht. Muss ich wohl weiter "fummeln"...
1 = gleich Zuweisunglorenzolamas hat geschrieben: if (($_GET['page']=1234.html) )
ähm ...lorenzolamas hat geschrieben: if (($_GET['page'] == 1234.html) )
oderlorenzolamas hat geschrieben: if (($_GET['page'] == '1234.html' ) )
lorenzolamas hat geschrieben: if (($_GET['page'] == 1234 ) )
machenlorenzolamas hat geschrieben: echo ( $_GET['page'] )