im küçük site yapma
Ve yerine neccesarry bilgi (fonksiyonlar, dbconnection, html kafa) ile bir header.php ve footer.php olan ve her sayfada include ben index.php hepsine sahip istiyorum. Ama sonra bir beyaz liste ve tüm bu sayfaları eklemek zorunda. Ben sadece sayfalarında bırakın / ve daha sonra index.php ile erişebilir olmak istiyorum? Page = testi
How would I include pages without having to make a big whitelist? How about using preg_match and checcking that page variable only contain a-z. no evil dots. if it only contain letter a-z > include? or maybe use glob and scan pages/, add them to array so i dont have to edit index.php every time
bana düşüncelerinizi ve fikirlerinizi söyleyin lütfen
<html>
<head>
<title>SindACC</title>
</head>
<body>
<?php include($page) ?>
</body>
</html>