Размер файла: 1.36Kb
<?
$title = "World of Death";
$log = $game['loc'][$game['players'][$login]][$login];
if ($log['style']=='0'){
header("Content-type: text/vnd.wap.wml");
header("Cache-control: no-store,no-cache,must-revalidate");
echo '<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml" >';
} else {
echo'<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
}
//ПЕРЕБИРАЕМ СТИЛИ
if ($log['style']!=='0') { if (!isset($log['style'])){
echo'<link rel="stylesheet" href="style/style1.css" type="text/css">
</head><body>';
}
}
if ($log['style']=='1'){
echo'<link rel="stylesheet" href="style/style1.css" type="text/css">
</head><body>';
}
if ($log['style']=='2'){
echo'<link rel="stylesheet" href="style/style2.css" type="text/css">
</head><body>';
}
if ($log['style']=='3'){
echo'<link rel="stylesheet" href="style/style3.css" type="text/css">
</head><body>';
}
if ($log['style']=='4'){
echo'<link rel="stylesheet" href="style/style4.css" type="text/css">
</head><body>';
}
if ($log['style']=='5'){
echo'<link rel="stylesheet" href="style/style5.css" type="text/css">
</head><body>';
}
?>