Plugin Not Active" . EZ::$name . " is not active.
Please activate it from your plugin admin page before accessing this page.");
}
return;
}
else if (EZ::isInWP()) { // If in plugin mode, use WP login
header("location: " . wp_login_url($_SERVER['PHP_SELF']));
exit();
}
// DB is setup?
foreach ($tablesRequired as $table) {
if (!$db->tableExists($table)) {
header('location: dbSetup.php?error=1');
exit;
}
}
// Admin is setup?
$table = 'administrator';
$row = $db->getData($table);
if (empty($row)) {
header('location: adminSetup.php');
exit;
}
// Logged in?
if (!EZ::isLoggedIn()) {
header("Location: login.php?error=3&back={$_SERVER['REQUEST_URI']}");
exit;
}