Add files via upload
This commit is contained in:
parent
7f6bd9e44e
commit
d163e1ced8
22 changed files with 2008 additions and 1 deletions
20
settings/toggle_hide.php
Normal file
20
settings/toggle_hide.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
require_once("../inc/conx.php");
|
||||
$napp_uqid = safe($_POST['i']);
|
||||
if($napp_uqid == 'settings') {
|
||||
exit();
|
||||
}
|
||||
if($napp_uqid) {
|
||||
$toggleit = mysqli_num_rows(mysqli_query($conx, "SELECT id FROM user_apps WHERE hidden='yes' && uid='$u_uid' && app_uqid='$napp_uqid'"));
|
||||
if($toggleit == 1) {
|
||||
mysqli_query($conx, "UPDATE user_apps SET hidden='no' WHERE uid='$u_uid' && app_uqid='$napp_uqid'");
|
||||
}
|
||||
elseif($toggleit == 0) {
|
||||
mysqli_query($conx, "UPDATE user_apps SET hidden='yes' WHERE uid='$u_uid' && app_uqid='$napp_uqid'");
|
||||
}
|
||||
exit();
|
||||
}
|
||||
else {
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue