Jump to content

Whats wrong file will not include


n1kko

Recommended Posts

File will not include, have I missed something?

Thanks

 

if ($arrPage['include']===false)
		{
		if (function_exists($arrPage['function_name']))
			{
			call_user_func($arrPage['function_name']); 
			}
		else if ($arrPage['function_name']!='')
			{
			echo '<div id="page">';
			alert_box('Function not found', 'The function '.$arrPage['function_name'].' does not appear to exist.  Please check with the plugin author.');
			echo '</div>';  
			}
		}
	else
		{
		$includePath = dirname('$url').'/'.$arrPage['include'];

		if (file_exists($includePath))
			{
			include_once($includePath); 
			if (function_exists($arrPage['function_name']))
				{
				call_user_func($arrPage['function_name']); 
				}
			else if ($arrPage['function_name']!='')

Link to comment
https://forums.phpfreaks.com/topic/250532-whats-wrong-file-will-not-include/
Share on other sites

This is all of the code, just need the bit "WHAT GOES HERE"

if ($arrPage['include']===false)
		{
		if (function_exists($arrPage['function_name']))
			{
			call_user_func($arrPage['function_name']); 
			}
		else if ($arrPage['function_name']!='')
			{
			echo '<div id="page">';
			alert_box('Function not found', 'The function '.$arrPage['function_name'].' does not appear to exist.  Please check with the plugin author.');
			echo '</div>';  
			}
		}
	else
		{
			$includePath = dirname('WHAT GOES HERE').'/'.$arrPage['include'];



		if (file_exists($includePath))
			{
			include_once($includePath); 
			if (function_exists($arrPage['function_name']))
				{
				call_user_func($arrPage['function_name']); 
				}
			else if ($arrPage['function_name']!='')
				{
				echo '<div id="page">';
				alert_box('Function not found', 'The function '.$arrPage['function_name'].' does not appear to exist after including the file '.$arrPage['include'].'.  Please check with the plugin author.');
				echo '</div>'; 

Just get this message in the admin

 

File /Applications/XAMPP/xamppfiles/htdocs/admin-dashboard.inc.php not found for inclusion.

 

and same for all other pages...

 

File /Applications/XAMPP/xamppfiles/htdocs/admin-options-init.inc.php not found for inclusion.

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.