function eppdrs_date_format($var) { if (is_numeric($var)) $timestamp = $var; else $timestamp = strtotime($var); if ($timestamp) return date("M j, Y", $timestamp); else return ""; } $smarty->register_modifier('eppdrs_date_format', 'eppdrs_date_format'); } CONFIG::$PRODUCT_ID = "epp-drs"; CONFIG::$APP_REVISION = trim(file_get_contents(APP_PATH."/etc/version")); CONFIG::$TRACKBACK_EMAIL = "*****@*****.**"; CONFIG::$PATH = APP_PATH; define("CF_DB_DSN", $cfg["database"]["dsn"]); try { $db = &NewADOConnection($cfg["database"]["dsn"]); } catch (Exception $e) { throw new ApplicationException("Database connection failed. {$e->getMessage()}"); } if ($cfg["dev"]["debug"]) {