create-prisma-php-app 1.20.523 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bootstrap.php +2 -3
- package/dist/settings/paths.php +7 -7
- package/package.json +1 -1
package/dist/bootstrap.php
CHANGED
|
@@ -657,11 +657,10 @@ try {
|
|
|
657
657
|
$uri = $_determineContentToInclude['uri'] ?? '';
|
|
658
658
|
$pathname = $uri ? "/" . $uri : "/";
|
|
659
659
|
$_fileToInclude = basename($_contentToInclude);
|
|
660
|
-
|
|
661
660
|
authenticateUserToken();
|
|
662
661
|
|
|
663
662
|
if (empty($_contentToInclude)) {
|
|
664
|
-
if (!$isXFilRequest && $_prismaPHPSettings['backendOnly']
|
|
663
|
+
if (!$isXFilRequest && $_prismaPHPSettings['backendOnly']) {
|
|
665
664
|
// Set the header and output a JSON response for permission denied
|
|
666
665
|
header('Content-Type: application/json');
|
|
667
666
|
echo json_encode([
|
|
@@ -685,7 +684,7 @@ try {
|
|
|
685
684
|
readfile($filePath);
|
|
686
685
|
}
|
|
687
686
|
exit;
|
|
688
|
-
} else if ($_prismaPHPSettings['backendOnly']
|
|
687
|
+
} else if ($_prismaPHPSettings['backendOnly']) {
|
|
689
688
|
// Set the header and output a JSON response for file not found
|
|
690
689
|
header('Content-Type: application/json');
|
|
691
690
|
echo json_encode([
|
package/dist/settings/paths.php
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
<?php
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @var string SETTINGS_PATH - The absolute path to the settings directory
|
|
4
|
+
* @var string SETTINGS_PATH - The absolute path to the settings directory ./settings
|
|
5
5
|
*/
|
|
6
6
|
define("SETTINGS_PATH", dirname(__FILE__));
|
|
7
7
|
/**
|
|
8
|
-
* @var string PUBLIC_PATH - The absolute path to the public directory
|
|
8
|
+
* @var string PUBLIC_PATH - The absolute path to the public directory ./public
|
|
9
9
|
*/
|
|
10
10
|
define("PUBLIC_PATH", dirname(SETTINGS_PATH) . "/public");
|
|
11
11
|
/**
|
|
12
|
-
* @var string PRISMA_LIB_PATH - The absolute path to the Prisma library directory
|
|
12
|
+
* @var string PRISMA_LIB_PATH - The absolute path to the Prisma library directory ./src/Lib/Prisma
|
|
13
13
|
*/
|
|
14
14
|
define("PRISMA_LIB_PATH", dirname(SETTINGS_PATH) . "/src/Lib/Prisma");
|
|
15
15
|
/**
|
|
16
|
-
* @var string SRC_PATH - The absolute path to the src directory
|
|
16
|
+
* @var string SRC_PATH - The absolute path to the src directory ./src
|
|
17
17
|
*/
|
|
18
18
|
define("SRC_PATH", dirname(SETTINGS_PATH) . "/src");
|
|
19
19
|
/**
|
|
20
|
-
* @var string APP_PATH - The absolute path to the app directory
|
|
20
|
+
* @var string APP_PATH - The absolute path to the app directory ./src/app
|
|
21
21
|
*/
|
|
22
22
|
define("APP_PATH", dirname(SETTINGS_PATH) . "/src/app");
|
|
23
23
|
/**
|
|
24
|
-
* @var string LIB_PATH - The absolute path to the layout directory
|
|
24
|
+
* @var string LIB_PATH - The absolute path to the layout directory ./src/Lib
|
|
25
25
|
*/
|
|
26
26
|
define("LIB_PATH", dirname(SETTINGS_PATH) . "/src/Lib");
|
|
27
27
|
/**
|
|
28
|
-
* @var string DOCUMENT_PATH - The absolute path to the layout directory
|
|
28
|
+
* @var string DOCUMENT_PATH - The absolute path to the layout directory ./
|
|
29
29
|
*/
|
|
30
30
|
define("DOCUMENT_PATH", dirname(SETTINGS_PATH));
|