'order' => '6',
'_import' => array('_rent','_nico'),
);
+
+$CONF['nb-sqlite'] = array (
+ 'order' => 5,
+ 'pdo' => 'sqlite:/opt/rent/nb.db',
+ '_import' => '_rent',
+);
?>
),
);
-$CONF['rent-sqlite'] = array (
- 'order' => 5,
- 'pdo' => 'sqlite:/opt/rent/rent.db',
- '_import' => '_rent',
- 'title' => 'DEV '.$CONF['_rent']['title']
-);
-
-0 && bye([
- fileowner(!empty($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : __FILE__),
-]);
return 1;
function untilde($path) {
#################################################################################
hl(){
#cat | grep --color=always -E "(^|($@))"
- perl -MTerm::ANSIColor -pe 's/('$@')/color("red").$1.color("reset")/ge'
+ perl -MTerm::ANSIColor -pe '$e=qq|'$@'|;$e=~s,/,\\/,g; s/($e)/color("red").$1.color("reset")/ge'
}
ls_tree() {
# Connect
if ($this->type('use_path') and !is_readable($this->host)) {
- $this->bye("Can't read database file `".$this->host."` type=`".self::$type."`",false);
+ $this->bye("Can't read database path `".$this->host."` type=`".self::$type."`",false);
}
try {