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