I am trying to port photopost to use on my nuke site. I have photopost installed but when i go to other pages in photopost it comes up with the message "you cant access this file directly"
I added this code to get the index of photopost to look right:
Code:
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
include("header.php");
$index = 0;
OpenTable();
but that does not work for the other pages cause i get the error.