Hallo,
ich habe meinen Code und bekomme immer den Fehler:
Habe schon alles versucht. Aber der Fehler kommt immer wieder
ich habe meinen Code und bekomme immer den Fehler:
Code:
Parse error: syntax error, unexpected '"', expecting ',' or ';' in D:\Programme (x86)\XAMPP\htdocs\http_docs\system\sys.php on line 13
PHP-Code:
<?PHP
class sys{
function getTitle(){
return getSetting("title");
}
function includeContent(){
global $currentpage;
$currentpage->getContent();
}
function displayBreadcrump($separator,$class,$idpraefix){
global $currentpage;
$i = 1;
$breadcrump = $currentpage->getBreadcrump();
while($i <= count($breadcrump)){
echo '<a href="'.$breadcrump[$i-1][0].'.htm" class="'.$class.'" id="'.$idpraefix.$i.'">'.$breadcrump[$i-1][1].'</a>';
if($i < count($breadcrump)){
echo $separator;
}
$i++;
}
}
function displayMenu($id, $globalstart,$globalend, $elementstart,$elementend,$class){
Menu::display($id, $globalstart,$globalend, $elementstart,$elementend,$class);
}
function displayGlobalMenu($globalstart,$globalend, $elementstart,$elementend,$class){
global $dbpraefix;
$res = mysql_query("SELECT value FROM ".$dbpraefix."settings WHERE property = 'globalmenuid'");
if($row = mysql_fetch_row($res)){
Menu::display($row[0], $globalstart,$globalend, $elementstart,$elementend,$class);
}
}
function displayLocalMenu($globalstart,$globalend, $elementstart,$elementend,$class){
global $currentpage;
if($currentpage->menu > -1){
Menu::display($currentpage->menu, $globalstart,$globalend, $elementstart, $elementend,$class);
}
}
function localMenuExists(){
global $currentpage;
if($currentpage->menu){
return true;
}
else{
return false;
}
}
function getColor($id){
return "#".getSetting("skin".$id);
}
function includeHeader(){
global $dbpraefix,$currentpage;
echo "<title>".$currentpage->title."</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />";
$res = mysql_query("SELECT name, content
FROM ".$dbpraefix."meta_global
UNION SELECT name, content
FROM ".$dbpraefix."meta_local
WHERE page = '".$currentpage->id."'");
while($row = mysql_fetch_row($res)){
echo "<meta name="".$row[0]."" content="".$row[1]."" />";
}
}
?>
Kommentar