Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
220
Merge Requests
220
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
7c364f89
Commit
7c364f89
authored
May 19, 2003
by
Kjartan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixing to work with register_globals off.
parent
8bc39e90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
update.php
update.php
+2
-6
No files found.
update.php
View file @
7c364f89
...
...
@@ -774,10 +774,9 @@ function update_data($start) {
function
update_page
()
{
global
$user
,
$mysql_updates
;
$op
=
$_POST
[
"op"
];
$edit
=
$_POST
[
"edit"
];
switch
(
$
op
)
{
switch
(
$
_POST
[
"op"
]
)
{
case
"Update"
:
// make sure we have updates to run.
print
"<html><h1>Drupal database update</h1>"
;
...
...
@@ -837,7 +836,6 @@ function update_page() {
}
function
update_content
(
$pattern
)
{
$result
=
db_query
(
"SELECT n.nid, c.cid, c.subject FROM node n LEFT JOIN comments c ON n.nid = c.nid WHERE c.comment LIKE '%s'"
,
$pattern
);
while
(
$comment
=
db_fetch_object
(
$result
))
{
watchdog
(
"special"
,
"upgrade possibly affects comment '
$comment->subject
'"
,
"<a href=
\"
node.php?id=
$comment->nid
&cid=
$comment->cid
#
$comment->cid
\"
>view post</a>"
);
...
...
@@ -850,7 +848,6 @@ function update_content($pattern) {
}
function
update_info
()
{
print
"<html><h1>Drupal database update</h1>"
;
print
"<ol>
\n
"
;
print
"<li>Use this script to <b>upgrade an existing Drupal installation</b>. You don't need this script when installing Drupal from scratch.</li>"
;
...
...
@@ -880,12 +877,11 @@ function update_info() {
print
"</html>"
;
}
if
(
isset
(
$
op
))
{
if
(
isset
(
$
_GET
[
"op"
]
))
{
include_once
"includes/common.inc"
;
// Access check:
if
(
$user
->
uid
==
1
)
{
update_page
();
}
else
{
...
...
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