$template->setVariable("PAGE_TITLE",$myfn->getTitle($_SERVER['PHP_SELF']))
/**
* Returns the title of the pages
*
* @param String calling $page
* @return String equivalent title
*/
public function gettitle($page)
{
switch ($page) {
case "/search.php":
return $this->lang['T_SEARCH_CHOOSE'];
case "/search_res.php":
return $this->lang['T_SEARCH_RES'];
case "/index.php":
return $this->lang['T_HOME'];
case "/find.php":
return $this->lang['T_FIND_ARTICLE'] ;
default:
return $this->lang['T_HOME'];
}
}
Warning: main(): Failed opening '' for inclusion (include_path='.:/usr/share/php:/usr/share/pear')
<?php include($sayfa); ?>
<?php
$page_title = 'Anasayfa';
include ('ust.php');
include ('html/index.html');
include ('alt.php');
?>
...
...
...
...kodlar
...
...
<?php echo $page_title; ?>
...
...
...kodlar
...
...
<?php
if( $sayfa == 'anasayfa' )
{
include..........
}
?>
<?php
if( $tema == 'yesil' )
{
include..........style.css.....
}
?>
if ( $_GET['sayfa'] == "anasayfa" )
{
kodlar buraya
}
if ( $HTTP_GET_VARS['sayfa'] == "anasayfa" )
{
kodlar buraya
}
Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir