Hi,
what exactly do you want to replace with the preg_replace ? The first character of the GET variables if it is a-z or A-Z or all occurences of these characters ?
About the other problem ... try this code:
I changed the preg_replace.
$usr = preg_replace('/^[a-z]/i', '',$_GET['usr']);
$mod = preg_replace('/^[a-z]/i', '',$_GET['mod']);
if (isset($usr) && !empty($usr)) {
$pathusr = "users/".$usr.".php";
include ($pathusr);
}
if (isset($mod) && !empty($mod)) {
$pathmod = "Modules/".$mod.".php";
include ($pathmod);
}
Thomas