Efelantti sanoo:
Miten saan silleen niinku toi cernsivu minkä teit meille sillo, ne linkit?
Daedalus sanoo:
aah juu, hetki. copypasteen sen sulle
Efelantti sanoo:
okidoki
Daedalus sanoo:
<?php
//
// PingTimeout Page Get \o/ Daedalus & Muta
// Language addition by Daedalus
//
$pt_content = '';
$pt_cp = $_GET;
Efelantti sanoo:
$lang = $_GET;
if (fnmatch("*..*", $pt_cp) OR fnmatch("*/*", $pt_cp) OR fnmatch("*~*", $pt_cp)) {
$var = "invalid-input";
} else {
$var = "valid-input";
}
if ($pt_cp != '' && $var == "valid-input") {
if (file_exists('./content/'.$pt_cp.'.php {
$pt_content = './content/'.$pt_cp.'.php';
} else {
$pt_content = './content/404.php';
}
} else {
$pt_content = './content/index.php';
}
?>
Daedalus sanoo:
yksinkertaistettuna.
Efelantti sanoo
@__@