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?