Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker
osticket
Commits
161e6408
Commit
161e6408
authored
11 years ago
by
Jared Hancock
Browse files
Options
Downloads
Patches
Plain Diff
Properly define ROOT_PATH
parent
a2b70b49
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
kb/kb.inc.php
+0
-1
0 additions, 1 deletion
kb/kb.inc.php
main.inc.php
+8
-3
8 additions, 3 deletions
main.inc.php
pages/index.php
+0
-1
0 additions, 1 deletion
pages/index.php
scp/staff.inc.php
+0
-1
0 additions, 1 deletion
scp/staff.inc.php
with
8 additions
and
6 deletions
kb/kb.inc.php
+
0
−
1
View file @
161e6408
...
...
@@ -13,7 +13,6 @@
vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
define
(
'ROOT_PATH'
,
'../'
);
require_once
(
'../client.inc.php'
);
require_once
(
INCLUDE_DIR
.
'class.faq.php'
);
/* Bail out if knowledgebase is disabled or if we have no public-published FAQs. */
...
...
This diff is collapsed.
Click to expand it.
main.inc.php
+
8
−
3
View file @
161e6408
...
...
@@ -60,7 +60,12 @@
}
#Set Dir constants
if
(
!
defined
(
'ROOT_PATH'
))
define
(
'ROOT_PATH'
,
'./'
);
//root path. Damn directories
$here
=
substr
(
realpath
(
dirname
(
__file__
)),
strlen
(
$_SERVER
[
'DOCUMENT_ROOT'
]));
// Determine the path in the URI used as the base of the osTicket
// installation
if
(
!
defined
(
'ROOT_PATH'
))
define
(
'ROOT_PATH'
,
str_replace
(
'\\'
,
'/'
,
$here
.
'/'
));
//root path. Damn directories
define
(
'ROOT_DIR'
,
str_replace
(
'\\\\'
,
'/'
,
realpath
(
dirname
(
__FILE__
)))
.
'/'
);
#Get real path for root dir ---linux and windows
define
(
'INCLUDE_DIR'
,
ROOT_DIR
.
'include/'
);
//Change this if include is moved outside the web path.
...
...
@@ -127,8 +132,8 @@
require
(
INCLUDE_DIR
.
'mysql.php'
);
#Cookies
session_set_cookie_params
(
86400
,
dirname
(
$_SERVER
[
'
PHP_SELF
'
]
)
,
$_SERVER
[
'HTTP_HOST'
],
osTicket
::
is_https
());
session_set_cookie_params
(
86400
,
ROOT_PATH
,
$_SERVER
[
'
HTTP_HOST
'
],
osTicket
::
is_https
());
#CURRENT EXECUTING SCRIPT.
define
(
'THISPAGE'
,
Misc
::
currentURL
());
...
...
This diff is collapsed.
Click to expand it.
pages/index.php
+
0
−
1
View file @
161e6408
...
...
@@ -15,7 +15,6 @@
vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
@
chdir
(
realpath
(
dirname
(
__file__
)
.
'/../'
));
define
(
'ROOT_PATH'
,
'../'
);
require_once
(
'client.inc.php'
);
require_once
(
INCLUDE_DIR
.
'class.format.php'
);
...
...
This diff is collapsed.
Click to expand it.
scp/staff.inc.php
+
0
−
1
View file @
161e6408
...
...
@@ -17,7 +17,6 @@ if(basename($_SERVER['SCRIPT_NAME'])==basename(__FILE__)) die('Access denied');
if
(
!
file_exists
(
'../main.inc.php'
))
die
(
'Fatal error... get technical support'
);
define
(
'ROOT_PATH'
,
'../'
);
//Path to the root dir.
require_once
(
'../main.inc.php'
);
if
(
!
defined
(
'INCLUDE_DIR'
))
die
(
'Fatal error... invalid setting.'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment