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.

23 lines
702 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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 26:{
  16. $CID = intval($_POST['CID']);
  17. $QS="UPDATE `users` SET `last_content_view`={$CID} WHERE id={$CUser->Data['id']}";
  18. $DATABASE->Query( $QS );
  19. break;
  20. };
  21. };
  22. };
  23. };
  24. ?>