コード例 #1
0
ファイル: colaborators.php プロジェクト: KoreaHaos/diagramo
}
require_once dirname(__FILE__) . '/common/rememberme.php';
if (!isset($_SESSION['userId']) || !is_numeric($_SESSION['userId'])) {
    addError("Access denied");
    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);