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.

40 lines
807 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. require_once('../ajax_asm.php');
  3. require_once('../php/argus/server.php');
  4. ob_start();
  5. $UID = intval( $CUser->Data['id'] );
  6. $ACCESS = intval( $CUser->Data['access'] );
  7. if( $UID > 1 ){
  8. $Data['content'] =<<<DATA_BOUNDARY
  9. {
  10. xtype: 'panel',
  11. layout: 'vbox',
  12. border: false,
  13. frame: false,
  14. width: '100%',
  15. tbar:[{
  16. xtype: 'button',
  17. text: 'Map Level',
  18. enableToggle: true,
  19. pressed: true,
  20. allowDepress: false
  21. }],
  22. items: [{
  23. xtype: 'panel',
  24. id: 'history_map',
  25. height: PanelH+16,
  26. listeners:{
  27. afterrender: function(){
  28. initHistoryMap('history_map', 2057,1474 );
  29. }
  30. }
  31. }]
  32. }
  33. DATA_BOUNDARY;
  34. $Data['status'] = 'ok';
  35. $Data['messages'] = ob_get_clean();
  36. echo json_encode( $Data );
  37. } else {
  38. header('location: /');
  39. };
  40. ?>