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
Antoine
ae2
Commits
9a0deed7
Commit
9a0deed7
authored
Aug 01, 2007
by
Ayolo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moderation planet
parent
2cc1299e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
4 deletions
+36
-4
planet/index.php
planet/index.php
+36
-4
No files found.
planet/index.php
View file @
9a0deed7
...
...
@@ -196,7 +196,39 @@ elseif($_REQUEST["action"]=="fluxfortag")
}
}
}
elseif
(
$site
->
user
->
is_in_group
(
"gestion_ae"
))
{
if
(
$_REQUEST
[
"action"
]
==
"done"
&&
isset
(
$_REQUEST
[
"id_tag"
]))
{
$req
=
new
requete
(
$site
->
dbrw
,
"UPDATE `planet_tags` SET `modere`='1' "
.
"WHERE `id_tag` = '"
.
$_REQUEST
[
"id_tag"
]
.
"'"
);
}
elseif
(
$_REQUEST
[
"action"
]
==
"delete"
&&
isset
(
$_REQUEST
[
"id_tag"
]))
{
$req
=
new
delete
(
$site
->
dbrw
,
"planet_tags"
,
array
(
"id_tag"
=>
$_REQUEST
[
'id_tag'
]));
$_req
=
new
delete
(
$site
->
dbrw
,
"planet_flux_tags"
,
array
(
"id_tag"
=>
$_REQUEST
[
'id_tag'
]));
}
elseif
(
$_REQUEST
[
"action"
]
==
"deletetags"
&&
isset
(
$_REQUEST
[
"id_tag"
]))
{
if
(
!
empty
(
$_REQUEST
[
"id_tag"
]))
{
foreach
(
$_REQUEST
[
"id_tag"
]
AS
$tag
)
{
$req
=
new
delete
(
$site
->
dbrw
,
"planet_tags"
,
array
(
"id_tag"
=>
$tag
));
$_req
=
new
delete
(
$site
->
dbrw
,
"planet_flux_tags"
,
array
(
"id_tag"
=>
$tag
));
}
}
}
elseif
(
$_REQUEST
[
"action"
]
==
"donetags"
&&
isset
(
$_REQUEST
[
"id_tag"
]))
{
if
(
!
empty
(
$_REQUEST
[
"id_tag"
]))
{
foreach
(
$_REQUEST
[
"id_tag"
]
AS
$tag
)
$req
=
new
requete
(
$site
->
dbrw
,
"UPDATE `planet_tags` SET `modere`='1' "
.
"WHERE `id_tag` = '"
.
$tag
.
"'"
);
}
}
}
if
(
$_REQUEST
[
"view"
]
==
"modere"
&&
$site
->
user
->
is_in_group
(
"gestion_ae"
))
{
$cts
->
add_paragraph
(
"Modération du contenu."
);
...
...
@@ -208,11 +240,11 @@ if($_REQUEST["view"]=="modere" && $site->user->is_in_group("gestion_ae"))
$tabl
=
new
sqltable
(
"moderetags_list"
,
"Modere Tags"
,
$req
,
"index.php?view=modere
&action=tagsmodere
"
,
"index.php?view=modere"
,
"id_tag"
,
array
(
"id_tag"
=>
"ID"
,
"tag"
=>
"Tag"
),
array
(
"done
tag
"
=>
"Accepter"
,
"delete
tag
"
=>
"Supprimer"
),
array
(
"done"
=>
"Accepter"
,
"delete"
=>
"Supprimer"
),
array
(
"donetags"
=>
"Accepter"
,
"deletetags"
=>
"Supprimer"
),
array
());
...
...
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