make project on java
源代码在线查看: style.php
include'include/begin.php';
$fid = (int)$_GET['fid'];
$wid = (int)$_GET['wid'];
if ($_GET['style'] == 0) {
if (!$wid) {
if (!$fid) {
setcookie("defstyle{$twt_co}");
} else {
setcookie("f_{$twt_co}[$fid]");
}
} else {
setcookie("w_{$twt_co}[$wid]");
}
} else {
if (!empty($styledir[$_GET["style"]])) {
if (!$wid) {
if (!$fid) {
setcookie("defstyle{$twt_co}", $_GET["style"], 0);
} else {
setcookie("f_{$twt_co}[$fid]", $_GET["style"], 0);
}
} else {
setcookie("w_{$twt_co}[$wid]", $_GET["style"], 0);
}
}
}
if ($fid>0){$reurl='read.php?fid='.$fid;}elseif($wid>0){$reurl='wread.php?wid='.$wid;}
Header('Location: ' . $reurl);
exit;
?>