Commit 5b1718a5 authored by Ayolo's avatar Ayolo

moderation planet : debug

parent 16e6e094
......@@ -198,18 +198,22 @@ elseif($_REQUEST["action"]=="fluxfortag")
}
elseif($site->user->is_in_group("gestion_ae"))
{
if($_REQUEST["action"]=="done" && isset($_REQUEST["id_tag"]))
if($_REQUEST["action"]=="done")
{
$req = new requete($site->dbrw, "UPDATE `planet_tags` SET `modere`='1' ".
"WHERE `id_tag` = '".$_REQUEST["id_tag"]."'");
if(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"]))
{
print_r("debug");
$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"]=="delete")
{
print_r("debug");
if(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"]))
elseif($_REQUEST["action"]=="deletetags")
{
if(!empty($_REQUEST["id_tag"]))
{
......@@ -220,7 +224,7 @@ elseif($site->user->is_in_group("gestion_ae"))
}
}
}
elseif($_REQUEST["action"]=="donetags" && isset($_REQUEST["id_tag"]))
elseif($_REQUEST["action"]=="donetags")
{
if(!empty($_REQUEST["id_tag"]))
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment