Im expern in html, but noob in php. (learning it)
(Code by =Master= MuWeb v0.8)
function modules(){
if(isset($_GET['op'])){
$op = $_GET['op'];
if (is_file("modules/".$op.".php")) {
include("modules/".$op.".php");
} else {
require("config.php");
Echo ("<br>$warning_start Module Could Not Be Found By MuWeb! $warning_end<br>");
}
}
}
How to make that in switch? and where should i put that ? library or something? Or say me a better way to do that.
(Code by =Master= MuWeb v0.8)
function modules(){
if(isset($_GET['op'])){
$op = $_GET['op'];
if (is_file("modules/".$op.".php")) {
include("modules/".$op.".php");
} else {
require("config.php");
Echo ("<br>$warning_start Module Could Not Be Found By MuWeb! $warning_end<br>");
}
}
}
How to make that in switch? and where should i put that ? library or something? Or say me a better way to do that.