Jump to content

menu includes error


fantomel

Recommended Posts

Hello i'm having some trouble with a code it is for including pages on website..i've tested it and it gives error.

 

 

 

	if(isset($_GET['m']) && ! eregi('http://', $_GET['m']) && ! eregi('ftp://', $_GET['m']))
{
	$modul = $_GET['m'] . ' .php';
	if(file_exists($modul))
		include_once($modul);

	else
	{
		require_once('errors/module_error.php');
		//TODO Modificat Handlerul de eroare
	}
}	

Link to comment
https://forums.phpfreaks.com/topic/153296-menu-includes-error/
Share on other sites

it doesn't include  the page :) even if it's there... it includes the page

	else
	{
		require_once('errors/module_error.php');
		//TODO Modificat Handlerul de eroare
	}


 

it jumps to this part and includes it....even if the page i requested exists :/

 

the link i've made is :

 

echo "<a href=\"index.php?m=upload\">Click here to upload</a>";

Link to comment
https://forums.phpfreaks.com/topic/153296-menu-includes-error/#findComment-805394
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.