Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
36630788
Commit
36630788
authored
Oct 31, 2014
by
Aaron Wells
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure CLI scripts are only being run from the CLI
Bug 1387903 Change-Id: I369d58f85c944f4be2bc2965c080b2c4c86dadc1
parent
eb346d27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
htdocs/init.php
htdocs/init.php
+4
-0
No files found.
htdocs/init.php
View file @
36630788
...
...
@@ -11,6 +11,10 @@
defined
(
'INTERNAL'
)
||
die
();
if
(
defined
(
'CLI'
)
&&
php_sapi_name
()
!=
'cli'
)
{
die
();
}
$CFG
=
new
StdClass
;
$CFG
->
docroot
=
dirname
(
__FILE__
)
.
'/'
;
//array containing site options from database that are overrided by $CFG
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment