|
|
|
@ -406,15 +406,22 @@ if (isset($_GET['sent_http_request']) && $_GET['sent_http_request']==1) { |
|
|
|
$requested_view = ($tool_visibility == 0 ) ? 'visible.gif' : 'invisible.gif'; |
|
|
|
$requested_view = ($tool_visibility == 0 ) ? 'visible.gif' : 'invisible.gif'; |
|
|
|
$requested_visible = ($tool_visibility == 0 ) ? 1 : 0; |
|
|
|
$requested_visible = ($tool_visibility == 0 ) ? 1 : 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$requested_view = ($tool_visibility == 0 ) ? 'visible.gif' : 'invisible.gif'; |
|
|
|
|
|
|
|
$requested_visible = ($tool_visibility == 0 ) ? 1 : 0; |
|
|
|
|
|
|
|
//HIDE AND REACTIVATE TOOL |
|
|
|
|
|
|
|
if ($_GET["id"]==strval(intval($_GET["id"]))) { |
|
|
|
|
|
|
|
$sql="UPDATE $tool_table SET visibility=$requested_visible WHERE id='".$_GET["id"]."'"; |
|
|
|
|
|
|
|
Database::query($sql,__FILE__,__LINE__); |
|
|
|
|
|
|
|
} |
|
|
|
/* |
|
|
|
/* |
|
|
|
----------------------------------------------------------- |
|
|
|
----------------------------------------------------------- |
|
|
|
HIDE |
|
|
|
HIDE |
|
|
|
----------------------------------------------------------- |
|
|
|
----------------------------------------------------------- |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
if(isset($_GET['visibility']) && $_GET['visibility']==0) // visibility 1 -> 0 |
|
|
|
/* if(isset($_GET['visibility']) && $_GET['visibility']==0) // visibility 1 -> 0 |
|
|
|
{ |
|
|
|
{ |
|
|
|
if ($_GET["id"]==strval(intval($_GET["id"]))) { |
|
|
|
if ($_GET["id"]==strval(intval($_GET["id"]))) { |
|
|
|
$sql="UPDATE $tool_table SET visibility=0 WHERE id='".$_GET["id"]."'"; |
|
|
|
$sql="UPDATE $tool_table SET visibility=0 WHERE id='".intval($_GET["id"])."'"; |
|
|
|
Database::query($sql,__FILE__,__LINE__); |
|
|
|
Database::query($sql,__FILE__,__LINE__); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -424,14 +431,14 @@ if (isset($_GET['sent_http_request']) && $_GET['sent_http_request']==1) { |
|
|
|
REACTIVATE |
|
|
|
REACTIVATE |
|
|
|
----------------------------------------------------------- |
|
|
|
----------------------------------------------------------- |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
elseif(isset($_GET['visibility'])&& $_GET['visibility']==1) // visibility 0,2 -> 1 |
|
|
|
/* elseif(isset($_GET['visibility'])&& $_GET['visibility']==1) // visibility 0,2 -> 1 |
|
|
|
{ |
|
|
|
{ |
|
|
|
if ($_GET["id"]==strval(intval($_GET["id"]))) { |
|
|
|
if ($_GET["id"]==strval(intval($_GET["id"]))) { |
|
|
|
Database::query("UPDATE $tool_table SET visibility=1 WHERE id='".$_GET["id"]."'",__FILE__,__LINE__); |
|
|
|
Database::query("UPDATE $tool_table SET visibility=1 WHERE id='".intval($_GET["id"])."'",__FILE__,__LINE__); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/ |
|
|
|
$response_data = array( |
|
|
|
$response_data = array( |
|
|
|
'image' => $requested_image, |
|
|
|
'image' => $requested_image, |
|
|
|
'tclass' => $requested_clase, |
|
|
|
'tclass' => $requested_clase, |
|
|
|
@ -451,7 +458,7 @@ if (isset($_GET['sent_http_request']) && $_GET['sent_http_request']==1) { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
if(!empty($_GET['hide'])) // visibility 1 -> 0 |
|
|
|
if(!empty($_GET['hide'])) // visibility 1 -> 0 |
|
|
|
{ |
|
|
|
{ |
|
|
|
Database::query("UPDATE $tool_table SET visibility=0 WHERE id='".intval($_GET["id"])."'",__FILE__,__LINE__); |
|
|
|
Database::query("UPDATE $tool_table SET visibility=0 WHERE id='".$_GET["id"]."'",__FILE__,__LINE__); |
|
|
|
Display::display_confirmation_message(get_lang('ToolIsNowHidden')); |
|
|
|
Display::display_confirmation_message(get_lang('ToolIsNowHidden')); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -462,7 +469,7 @@ if (isset($_GET['sent_http_request']) && $_GET['sent_http_request']==1) { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
elseif(!empty($_GET['restore'])) // visibility 0,2 -> 1 |
|
|
|
elseif(!empty($_GET['restore'])) // visibility 0,2 -> 1 |
|
|
|
{ |
|
|
|
{ |
|
|
|
Database::query("UPDATE $tool_table SET visibility=1 WHERE id='".intval($_GET["id"])."'",__FILE__,__LINE__); |
|
|
|
Database::query("UPDATE $tool_table SET visibility=1 WHERE id='".$_GET["id"]."'",__FILE__,__LINE__); |
|
|
|
Display::display_confirmation_message(get_lang('ToolIsNowVisible')); |
|
|
|
Display::display_confirmation_message(get_lang('ToolIsNowVisible')); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|