/[cvs]/bareface/yakka/yakka.php
ViewVC logotype

Contents of /bareface/yakka/yakka.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Sun Jan 5 00:22:26 2003 UTC (21 years, 11 months ago) by bareface
Branch: MAIN
CVS Tags: HEAD
init;

1 <?php
2
3
4 function GetMicroTime() { list($usec, $sec) = explode(" ",microtime()); return ((float)$usec + (float)$sec); }
5 $time = GetMicroTime();
6
7
8 require_once("library/YakkaCookieHandler.php");
9 require_once("library/YakkaSessionHandler.php");
10 require_once("library/YakkaEngine.php");
11
12 class Yakka {
13 var $cookieHandler;
14 var $sessionHandler;
15
16 var $cookie;
17 var $session;
18
19 var $engine;
20
21 function Yakka() {
22 $this->cookieHandler = new YakkaCookieHandler();
23 $this->cookie = &$this->cookieHandler->loadCookie();
24
25 $this->sessionHandler = new YakkaSessionHandler($this->cookie);
26 $this->session = &$this->sessionHandler->loadSession();
27
28 if (!$this->cookie) {
29 $this->cookie = $this->session->id;
30 $this->cookieHandler->saveCookie();
31 }
32
33 $this->engine = new YakkaEngine("yakka-settings.xml", $this->session);
34 }
35
36 function run() {
37 echo $this->engine->run();
38 $this->sessionHandler->saveSession();
39 }
40 }
41
42 $yakka = new Yakka();
43 $yakka->run();
44
45
46 $endtime = GetMicroTime();
47 echo $endtime - $time;
48
49
50 ?>

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed