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.

18 lines
513 B

6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. require_once('../ajax_asm.php');
  3. if( $CUser->Data['id'] > 1 ){
  4. $SiteID = intval($_POST['NID']);
  5. $N1ID = intval($_POST['SNID']);
  6. $N2ID = intval($_POST['ENID']);
  7. $ConType = intval($_POST['TYPE']);
  8. if(
  9. $RetVal['status'] = true;
  10. $RetVal['edge'] = array('from'=>$N1ID, 'to'=>$N2ID, 'color'=>'red' );
  11. } else {
  12. $RetVal['status'] = false;
  13. $RetVal['message']='No Possibillty to Make such Connection!';
  14. };
  15. echo json_encode( $RetVal );
  16. } else {
  17. header('location: /');
  18. };
  19. ?>