Onbekend |
|
hallo,
weet iemand waarom dit niet werkt?
<?php
function icl($what)
{
default $lang;
if(empty($lang))
include $what;
else
include $lang."/".$what;
}
if (!isset($_GET['p']) || empty($_GET['p']))
$p="home";
else
$p=$_GET['p'];
$p=strtolower($p);
if (!isset($_GET['lang']) || empty($_GET['lang']))
$lang="";
else
$lang=$_GET['lang'];
switch ($p)
{
case "home":
icl("main.php");
break;
case "software/download":
icl("download.php");
break;
}
?>
<?php function icl($what) { default $lang; include $what; else include $lang."/".$what; } $p="home"; else $p=$_GET['p']; if (!isset($_GET['lang']) || empty($_GET['lang'])) $lang=""; else $lang=$_GET['lang']; switch ($p) { case "home": icl("main.php"); break; case "software/download": icl("download.php"); break; } ?>
hij geeft deze error:
Citaat: Parse error: parse error in c:phpdevwwwpublicindex.php on line 92
|