Is there a way to install unp in the "root" site directory? I am hosting several sites in one account and am trying to reduce the number of folders Im using. My server runs php with .html and .php extentions. My Main index is .html. When I try to install using a / for the news directory I get an error saying invalid directory.
EDIT: Found the answer in the code.
Here is how I fixed it. Open install.php and find
if (!preg_match('#^/[a-zA-Z0-9./]+/$#', $unpdir))
{
unp_msgBox('You have entered an invalid UNP directory');
exit;
}
and either remove this or comment it out like this
/*if (!preg_match('#^/[a-zA-Z0-9./]+/$#', $unpdir))
{
unp_msgBox('You have entered an invalid UNP directory');
exit;
}*/
Open settings.php and find:
if (!preg_match('#^/[a-zA-Z0-9./]+/$#', $value18))
{
unp_msgBox('You have entered an invalid UNP directory.');
exit;
}
and either remove or coment it out like before.
Nice thought, I never expected people to run it in root. But yes, that's the ideal solution.
Nice thought, I never expected people to run it in root. But yes, that's the ideal solution.
I did this to make it easier to include the template files for the main site.