Restrict PHP Connector to members only???

Hi,
I need to restrict adding/editing events to logged in members only (on the client side this is pretty easy), but how do I do it on the server side?

I also need to restrict the event query to a particular member only.

Here is my code:

[code]<?php
require_once(“dhtmlxscheduler/codebase/connector/scheduler_connector.php”);
require_once(‘DB.class.php’);

$conn = new SchedulerConnector(DB::$db, “MySQL”);
$conn->enable_log(“temp.log”);

$conn->render_table(“availability”,“id”,“start_date,end_date,memo,type”);

?>[/code]

How do I get the member_id to be specific for a given member, and how do I force no one to be able to edit my calendar unless they are logged in and the current member?

Hello,

Be sure to check following samples:
www\scheduler\samples\08_shared_events

In general you can use your own custom queries to select visible events for specific users. And also attach handlers and check if indeed event belongs to this user (and he is logged in, etc.) before doing anything.

Best regards,
Ilya

Thank you that worked! Those examples did exactly what I needed.