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.
19 lines
513 B
19 lines
513 B
<?php
|
|
require_once('../ajax_asm.php');
|
|
if( $CUser->Data['id'] > 1 ){
|
|
$SiteID = intval($_POST['NID']);
|
|
$N1ID = intval($_POST['SNID']);
|
|
$N2ID = intval($_POST['ENID']);
|
|
$ConType = intval($_POST['TYPE']);
|
|
if(
|
|
$RetVal['status'] = true;
|
|
$RetVal['edge'] = array('from'=>$N1ID, 'to'=>$N2ID, 'color'=>'red' );
|
|
} else {
|
|
$RetVal['status'] = false;
|
|
$RetVal['message']='No Possibillty to Make such Connection!';
|
|
};
|
|
echo json_encode( $RetVal );
|
|
} else {
|
|
header('location: /');
|
|
};
|
|
?>
|