09-06-2017, 02:45 PM
So general question about page creation, or possibly a bug. My app has a web root ("/") and I installed userspice to the web root where the majority of the files are: /user, /usersc, etc. So I've created a folder called /apps, then /apps/core, /apps/core/message, and inside /apps/core/message there's index.php. So I have my header code:
<pre></pre>
Upon visiting the page I get the normal error to visit Manage Pages as an admin so the page can be managed. However, I visit Manage Pages and /apps/core/message/index.php doesn't exist, and never gets added. I can manually add it to the database table "pages" and it works fine, until I visit Manage Pages again and the entry gets deleted out of the database.
Is this expected behavior? Should all new pages have to be either in the web root, or nested in /users/?
Thanks
<pre>
Code:
//UserSpice Includes
require_once '../../../users/init.php';
require_once $abs_us_root.$us_url_root.'users/includes/header.php';
//require_once $abs_us_root.$us_url_root.'users/includes/navigation.php';
if (!securePage($_SERVER['PHP_SELF'])){die();}
Upon visiting the page I get the normal error to visit Manage Pages as an admin so the page can be managed. However, I visit Manage Pages and /apps/core/message/index.php doesn't exist, and never gets added. I can manually add it to the database table "pages" and it works fine, until I visit Manage Pages again and the entry gets deleted out of the database.
Is this expected behavior? Should all new pages have to be either in the web root, or nested in /users/?
Thanks