Initial commit of new codebase

This commit is contained in:
2017-01-09 02:24:59 +01:00
commit 00ebb6ff95
9 changed files with 361 additions and 0 deletions

11
src/global.php Normal file
View File

@ -0,0 +1,11 @@
<?php
class LogFuncs {
public static function bind() {
static $bound;
if ($bound++) return;
}
}
function log_info($fmt,...$arg) { printf("[info] {$fmt}\n", ...$arg); }
function log_debug($fmt,...$arg) { printf("[debg] {$fmt}\n", ...$arg); }
function log_warn($fmt,...$arg) { printf("[warn] {$fmt}\n", ...$arg); }