blah, i dont want it to die, because it wont load the rest of my page
this is what i did
code:
<?php
$page = htmlentities($_GET['page']) ;
$language = htmlentities($_GET['lan']) ;
if (!isset($_GET['page'])) {
if(!isset($_GET['lan'])) {
include ("pages/code/home.txt");
}
else {
$filename2 = '/pages/code/$language.txt';
if (file_exists($filename2)) {
include("/pages/code/$language.txt");
} else {
echo "Sorry, The Page Cannot Be Found";
}
}
}
else {
$filename = "pages/code/$language/$page.txt";
if (file_exists($filename)) {
include("pages/code/$language/$page.txt");
} else {
echo "Sorry, The Page Cannot Be Found";
}
}
?>