Posts: 256
Location: Auckland, New Zealand
|
AliKat's method is probably the better option, by making sure that you limit what pages can be included.
PHP Code:
<?php if(isset($_GET['site']) && $_GET['site'] === 0 || !empty($_GET['site'])) { switch($_GET['site']) { case 0: include_once('page1.php'); break; case 1: include_once('page2.php'); break; default: include_once('news.php'); break; } } ?>
At least this way they can't include any other sites that you don't allow, however for a number of different sites, a better management way would be required, storing it in an array, flatfile/xml, database etc.
Cheers,
MC
__________________
#------------------------------ signature---------------------------------------------------------------------------------#
Quote:
|
I am well recognised for what I don't do than what I do. Chores are just one of those things.
|
|