Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.2 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. require_once('../ajax_asm.php');
  3. if( $CUser->Data['id'] > 1 ){
  4. if( isset( $_POST['SSS'] ) ){
  5. $SETTING_ID = intval($_POST['SSS']);
  6. switch( $SETTING_ID ){
  7. case 15:{
  8. $WIDTH = intval($_POST['WID']);
  9. $HEIGHT = intval($_POST['HEI']);
  10. $QS="UPDATE `users` SET `width`={$WIDTH}, `height`={$HEIGHT} WHERE id={$CUser->Data['id']}";
  11. $DATABASE->Query( $QS );
  12. //$LOG->ScreenChanges( $CUser->Data['width'], $CUser->Data['height'], $WIDTH, $HEIGHT );
  13. break;
  14. };
  15. case 20:{
  16. $VOL = intval($_POST['VOL']);
  17. $QS="UPDATE `users` SET `sound_enable`={$VOL} WHERE id={$CUser->Data['id']}";
  18. $DATABASE->Query( $QS );
  19. break;
  20. };
  21. case 21:{
  22. $LAN = intval($_POST['LAN']);
  23. $QS="UPDATE `users` SET `language`={$LAN} WHERE id={$CUser->Data['id']}";
  24. $DATABASE->Query( $QS );
  25. break;
  26. };
  27. case 21:{
  28. $SS = intval($_POST['SS']);
  29. $QS="UPDATE `users` SET `ss_timeout`={$LAN} WHERE id={$CUser->Data['id']}";
  30. $DATABASE->Query( $QS );
  31. break;
  32. };
  33. case 26:{
  34. $CID = intval($_POST['CID']);
  35. $QS="UPDATE `users` SET `last_content_view`={$CID} WHERE id={$CUser->Data['id']}";
  36. $DATABASE->Query( $QS );
  37. break;
  38. };
  39. };
  40. };
  41. };
  42. ?>