redirect('./index.php'); } if (!is_numeric($_REQUEST['diagramId'])) { print 'Wrong Diagram Id'; exit; } $delegate = new Delegate(); $loggedUser = $delegate->userGetById($_SESSION['userId']); $diagram = $delegate->diagramGetById($_REQUEST['diagramId']); $userdiagram = $delegate->userdiagramGetByIds($loggedUser->id, $diagram->id); $collaborators = $delegate->usersGetAsCollaboratorNative($diagram->id); $invitations = $delegate->invitationGetAllForDiagram($diagram->id); /*All the collaborators this author knows in the system * as a dictionary (email, user_object) */ $buddies = $delegate->usersGetBuddies($loggedUser->id); ?> <!DOCTYPE html> <html> <!--Copyright 2010 Scriptoid s.r.l--> <head> <title>Colaborators - Diagramo</title> <link rel="stylesheet" media="screen" type="text/css" href="assets/css/style.css" /> <script type="text/javascript"> function confirmation(message){ var answer = confirm(message); if(answer){ return true; }