Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
hostmaster
Commits
72f322cc
Commit
72f322cc
authored
Nov 16, 2012
by
anarcat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
complete versionning support removal for ips
parent
b4a5d3e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/hosting/server/hosting.ip.inc
modules/hosting/server/hosting.ip.inc
+2
-2
No files found.
modules/hosting/server/hosting.ip.inc
View file @
72f322cc
...
...
@@ -47,7 +47,7 @@ function hosting_ip_save($node, $update = FALSE) {
}
foreach
(
$ip_list
as
$ip
)
{
db_query
(
"INSERT INTO
{
hosting_ip_addresses
}
(
vid,
nid, ip_address) VALUES (%d,
%d,
'%s')"
,
$node
->
vid
,
$node
->
nid
,
$ip
);
db_query
(
"INSERT INTO
{
hosting_ip_addresses
}
(nid, ip_address) VALUES (%d, '%s')"
,
$node
->
nid
,
$ip
);
}
}
...
...
@@ -69,7 +69,7 @@ function hosting_ip_validate($node) {
*/
function
hosting_ip_load
(
$node
)
{
$ip_list
=
array
();
$result
=
db_query
(
"SELECT ip_address FROM
{
hosting_ip_addresses
}
WHERE
v
id=%d"
,
$node
->
v
id
);
$result
=
db_query
(
"SELECT ip_address FROM
{
hosting_ip_addresses
}
WHERE
n
id=%d"
,
$node
->
n
id
);
while
(
$obj
=
db_fetch_object
(
$result
))
{
$ip_list
[]
=
$obj
->
ip_address
;
}
...
...
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