/** * Constructor, create the event object with name and action * parameters. * The goto param is preset to the location where the event is created. * The goto param is used in the events to define the url to call * after executing the event. * The event key is set in the constructor so a valid event key can be displayed even * if the event is manualy set to not secure * * @param String $name name of the event * @param String $action action for this event * @global $PHP_SELF, $QUERY_STRING * @constant RADRIA_EVENT_SECURE to set the event to secure or none secure mode * @access public */ function __construct($name = "", $action = "") { global $PHP_SELF, $QUERY_STRING; parent::__construct(); if (defined("RADRIA_LOG_RUN_EVENT")) { $this->setLogRun(RADRIA_LOG_RUN_EVENT); } $this->setName($name); $this->setAction($action); $this->setLevel(100); if (defined("RADRIA_EVENT_SECURE")) { $this->setSecure(RADRIA_EVENT_SECURE); } else { define("RADRIA_EVENT_SECURE", true); $this->setSecure(true); } if (defined("RADRIA_EVENT_CONTROLER")) { $this->setEventControler(RADRIA_EVENT_CONTROLER); } if (!defined("RADRIA_EVENT_ABSOLUTE_PATH")) { define("RADRIA_EVENT_ABSOLUTE_PATH", false); } if (RADRIA_EVENT_ABSOLUTE_PATH) { $this->base_web_path = "/"; } else { $this->base_web_path = ""; } if (RADRIA_EVENT_SECURE) { if ($_SERVER["HTTPS"] == "on") { $http = "https://"; } else { $http = "http://"; } $this->addParam("event_referer", $http . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]); } }