<?php
if (!defined('NB_ROOT')) define('NB_ROOT',realpath(dirname(__FILE__).'/../..'));
if (!defined('NB_EOL')) define('NB_EOL',defined('NB_PROD') ? '' : "\n");
-require_once(realpath(dirname(__FILE__).'/functions.php'));
-#$nb = new NB(); debug($nb->test());
-if (class_exists('NB')) return;
-
if (!function_exists('yaml_emit')) {
require_once(realpath(dirname(__FILE__).'/Spyc.php'));
function yaml_emit($data) { return Spyc::YAMLDump($data, false, false, true); }
function yaml_parse_file($file) { return Spyc::YAMLLoad($file); }
}
+require_once(realpath(dirname(__FILE__).'/functions.php'));
+#$nb = new NB(); debug($nb->test());
+if (class_exists('NB')) return;
+
class NB {
const ROOT_DIR = NB_ROOT;