Web UI for ARGUS server
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
722 B

6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
6 years ago
​
​
​
​
6 years ago
​
  1. <?php
  2. require_once('../ajax_asm.php');
  3. if( $CUser->Data['id'] > 1 ){
  4. header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
  5. header("Cache-Control: post-check=0, pre-check=0", false);
  6. header("Pragma: no-cache");
  7. if( isset( $_POST['PID'] )){
  8. $PID = intval($_POST['PID']);
  9. } else {
  10. $PID = intval($_GET['PID']);
  11. };
  12. if( $PID ){
  13. loadPicture( $PID );
  14. } else {
  15. loadNotPicture();
  16. };
  17. } else {
  18. header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
  19. header("Cache-Control: post-check=0, pre-check=0", false);
  20. header("Pragma: no-cache");
  21. header("Content-Type: image/png");
  22. echo file_get_contents( $SYSPath . '/style/assets/access.png' );
  23. };
  24. ?>