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
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>'; 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.