02-16-2018, 05:36 PM
If I create a new page in the root of my project (test1.php):
-------------------------------------------
<pre></pre>
-------------------------------------------
it worked fine:
| 89 | users/twofa.php | | 1 | 0 |
| 103 | test1.php | | 1 | 0 |
+-----+---------------------------------+--------------------------+---------+---------+
but when I create a folder such as testFolder and then add a new test page (test2.php) with the following
----------------------------------------------
<pre></pre>
--------------------------------------------
it creates the page
| 103 | test1.php | | 1 | 0 |
| 104 | testFolder/test2.php | | 1 | 0 |
+-----+---------------------------------+--------------------------+---------+---------+
but after I visit page permission it delete the entry from the table (pages)
| 89 | users/twofa.php | | 1 | 0 |
| 103 | test1.php | | 1 | 0 |
+-----+---------------------------------+--------------------------+---------+---------+
This is really weird!
-------------------------------------------
<pre>
Code:
<?php require_once 'users/init.php'; ?>
<?php require_once $abs_us_root.$us_url_root.'users/includes/header.php'; ?>
<?php require_once $abs_us_root.$us_url_root.'users/includes/navigation.php'; ?>
<?php if (!securePage($_SERVER['PHP_SELF'])){die();} ?>
<?php
echo "Hello World";
?>
<?php require_once $abs_us_root.$us_url_root.'users/includes/html_footer.php'; // currently just the closing /body and /html ?>
-------------------------------------------
it worked fine:
| 89 | users/twofa.php | | 1 | 0 |
| 103 | test1.php | | 1 | 0 |
+-----+---------------------------------+--------------------------+---------+---------+
but when I create a folder such as testFolder and then add a new test page (test2.php) with the following
----------------------------------------------
<pre>
Code:
<?php require_once '../users/init.php'; ?>
<?php require_once $abs_us_root.$us_url_root.'users/includes/header.php'; ?>
<?php require_once $abs_us_root.$us_url_root.'users/includes/navigation.php'; ?>
<?php if (!securePage($_SERVER['PHP_SELF'])){die();} ?>
<?php
echo "Hello World!";
?>
<?php require_once $abs_us_root.$us_url_root.'users/includes/html_footer.php'; // currently just the closing /body and /html ?>
--------------------------------------------
it creates the page
| 103 | test1.php | | 1 | 0 |
| 104 | testFolder/test2.php | | 1 | 0 |
+-----+---------------------------------+--------------------------+---------+---------+
but after I visit page permission it delete the entry from the table (pages)
| 89 | users/twofa.php | | 1 | 0 |
| 103 | test1.php | | 1 | 0 |
+-----+---------------------------------+--------------------------+---------+---------+
This is really weird!