Ben bu harika bir fikir olup olmadığını bilmiyorum ... ya da bir bok biri. Ama içerir kullanarak tüm sayfalarını görüntülemek için tek bir sayfasını kullanabilirsiniz düşünüyordum. İşte benim index.php örneğin .... sayfası dahil edilecek ne talep belirleyecek "SUPERSWITCH" adında bir işlevi vardır dahil fonksiyonları üzerinde ... gibi bakmak ne olduğunu
Ben bir olsun? a = a yaparsanız
it will goto the function superSwitch(a) superSwitch will take it and associate it with (login.php) then respond with such...
Burada index.php için kod ... Bu mantıklı ve işe yarayabilecek varsa bana bildirin lütfen, yoksa ben sadece kod dolu uzun sayfaları nefret çünkü bu çalışıyorum neden olan (uzun kod blokları için sopa gerekir ...)
Tabii bu aslında henüz hiçbir şey dahil değil söyleyebilirim ... baskı hata ayıklama amaçlıdır. :)
Thanks, Matt
<?php
//includes Functions
include_once('inc/func.inc.php');
//set superget variable
$superget = @$_GET['a'];
//check if superget is set or null
if (!$superget)
{
echo "Nothing Requested :)";
}
else
{
//sanitizes the superget request
$supergetr = supergetSanitize($superget);
//uses the result "good" or "nogood" to determine what happens
if ( $supergetr == "good" ) {
//pulls superSwitch value of the request
$ssresult = superSwitch($superget);
print_r ($ssresult);
}
//if the sanitize is nogood
else
{
//the superSwitch is instructed to respond with a 404 page
$superget = "404";
$ssresult = superSwitch($superget);
print_r ($ssresult);
}
}
?>