Support for CAP, socket.io now supplying the client code, moved underscore to lib...
[KiwiIRC.git] / common.php
CommitLineData
54f4a22e
D
1<?php\r
2\r
3 // Class for storing global vars\r
4 class GLOB {\r
5 // Memcache connection\r
6 static $mc;\r
7 }\r
8 \r
9 \r
10 if($config['memcache_use']){\r
11 GLOB::$mc = new Memcache();\r
12 GLOB::$mc->addServer('localhost', 11211, true, 1);\r
13 }\r
14 \r
15 \r
16 \r
17 function deb($what){\r
18 //if(DEBUG){\r
19 // echo "$what\n";\r
20 //} else {\r
21 file_put_contents('/tmp/kiwi_err.log', "$what\n", FILE_APPEND);\r
22 //}\r
23 }\r
24 function debug($what){ deb($what); }