Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
project
drupal
Commits
614e03b7
Commit
614e03b7
authored
18 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Stripping whitespace.
parent
b95f496b
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.txt
+1
-1
1 addition, 1 deletion
CHANGELOG.txt
scripts/drupal.sh
+15
-15
15 additions, 15 deletions
scripts/drupal.sh
with
16 additions
and
16 deletions
CHANGELOG.txt
+
1
−
1
View file @
614e03b7
...
...
@@ -5,7 +5,7 @@ Drupal 6.0, xxxx-xx-xx (development version)
- added versioning support to node terms
- made it easier to theme the forum overview page
- Drupal works with error reporting set to E_ALL
- Added scripts/drupal.sh to execute Drupal code from the command line. Useful to use Drupal as a framework to build command-line tools.
- Added scripts/drupal.sh to execute Drupal code from the command line. Useful to use Drupal as a framework to build command-line tools.
Drupal 5.0, 2007-01-15
----------------------
...
...
This diff is collapsed.
Click to expand it.
scripts/drupal.sh
+
15
−
15
View file @
614e03b7
...
...
@@ -2,13 +2,13 @@
<?php
//
$Id
$
/
**
/
**
*
Drupal shell execution script
*
*
*
Check
for
your PHP interpreter - on Windows you
'll probably have to
* replace line 1 with
* #!c:/program files/php/php.exe
*
*
* @param path Drupal'
s absolute root directory
in
local
file system
(
optional
)
.
*
@param URI A URI to execute, including HTTP protocol prefix.
*
/
...
...
@@ -29,7 +29,7 @@
--root
Set the working directory
for
the script to the specified path.
To execute Drupal this has to be the root directory of your
Drupal installation, f.e. /home/www/foo/drupal
(
assuming Drupal
running on Unix
)
.
Current directory is not required. Use
running on Unix
)
.
Current directory is not required. Use
surrounding quotation marks on Windows.
...
...
@@ -37,15 +37,15 @@
produce errors from setting the session.
URI The URI to execute, i.e. http://default/foo/bar
for
executing
the path
'/foo/bar'
in
your site
'default'
.
URI has to be
enclosured by quotation marks
if
there are ampersands
in
it
the path
'/foo/bar'
in
your site
'default'
.
URI has to be
enclosured by quotation marks
if
there are ampersands
in
it
(
f.e. index.php?q
=
node&foo
=
bar
)
.
Prefix
'http://'
is required,
and the domain must exist
in
Drupal
's sites-directory.
If the given path and file exists it will be executed directly,
i.e. if URI is set to http://default/bar/foo.php
and bar/foo.php exists, this script will be executed without
bootstrapping Drupal. To execute Drupal'
s cron.php, specify
i.e. if URI is set to http://default/bar/foo.php
and bar/foo.php exists, this script will be executed without
bootstrapping Drupal. To execute Drupal'
s cron.php, specify
http://default/cron.php as the URI.
\n
EOF
;
...
...
@@ -86,7 +86,7 @@
echo
"
\n
ERROR: {
$path
} not found.
\n\n
"
;
}
break
;
default:
if
(
substr
(
$param
, 0, 2
)
==
'--'
)
{
// ignore unknown options
...
...
@@ -95,19 +95,19 @@
else
{
// parse the URI
$path
=
parse_url
(
$param
)
;
//
set
site name
if
(
isset
(
$path
[
'host'
]))
{
$_SERVER
[
'HTTP_HOST'
]
=
$path
[
'host'
]
;
}
//
set
query string
if
(
isset
(
$path
[
'query'
]))
{
$_SERVER
[
'QUERY_STRING'
]
=
$path
[
'query'
]
;
parse_str
(
$path
[
'query'
]
,
$_GET
)
;
$_REQUEST
=
$_GET
;
}
//
set
file to execute or Drupal path
(
clean urls enabled
)
if
(
isset
(
$path
[
'path'
])
&&
file_exists
(
substr
(
$path
[
'path'
]
, 1
)))
{
$_SERVER
[
'PHP_SELF'
]
=
$_SERVER
[
'REQUEST_URI'
]
=
$path
[
'path'
]
;
...
...
@@ -118,7 +118,7 @@
$_REQUEST
[
'q'
]
=
$_GET
[
'q'
]
=
$path
[
'path'
]
;
}
}
// display setup
in
verbose mode
if
(
$_verbose_mode
)
{
echo
"Hostname set to: {
$_SERVER
['HTTP_HOST']}
\n
"
;
...
...
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