]> git.nbdom.net Git - nb.git/commitdiff
Bed
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 21 Nov 2016 00:40:52 +0000 (00:40 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 21 Nov 2016 00:40:52 +0000 (00:40 +0000)
17 files changed:
etc/dbq.php
etc/dbq.yaml [deleted file]
etc/dbq/crypt.yaml [new file with mode: 0644]
etc/dbq/izi.yaml [new file with mode: 0644]
etc/dbq/local.php
etc/dbq/zzz-all.php [new file with mode: 0644]
etc/profile
etc/profile.d/docker.sh
etc/profile.d/functions
etc/profile.d/sys.sh [new file with mode: 0644]
lib/php/db.php
lib/php/db/config.php
lib/php/db/page.php
lib/php/nb.php
share/db/local.db [deleted file]
share/db/shell.db [new file with mode: 0644]
src/Docker/Compose/dbq/index.php

index 82c0efd2d6f8512a875aade9383daa013c7f032c..525e3d826367c725b962c60b919140381b3bcce8 100644 (file)
 <?php
-require_once dirname(__FILE__).'/../lib/php/nb.php';
+#require_once dirname(__FILE__).'/../lib/php/nb.php';
+require_once dirname(__FILE__).'/../lib/php/db.php';
+#
+# Globals
+#
 $DBQ = [];
-#$dev = (bool)(stripos(gethostname(),'macbook') !== false);
-$LOCAL_DB = (
-  file_exists('/opt/local/var/run/mysql5')
-  and ! file_exists('/opt/local/var/run/mysql5/mysqld.sock')
-) ? true : false;
 
-#
 # DIR_SQLITE=*/var/lib/sqlite
-#
 unset($DIR_SQLITE);
 foreach ([
   '/home/nico/ownCloud',
   '/Users/nico/ownCloud',
-] as $dir) {
-  #$dir = nb::untilde($dir);
-  if (!is_readable($dir)) continue;
-  $DIR_SQLITE = $dir;
-  break;
-}
-if (!empty($DIR_SQLITE)) $DIR_SQLITE .= '/var/lib/sqlite';
-
-#
-# Includes dbq/*php
-#
-$dir = dirname(__FILE__).'/dbq';
-foreach (nb::ls_dir($dir,'\.php$') as $file) {
-  require_once("$dir/$file");
-}
-
-#
-# Create *-sqlite databases
-#
-$host_already_exists = [];
-foreach ($DBQ as $id => $db) {
-  if (1
-    and !empty($db['type']) and $db['type'] == 'sqlite'
-    and !empty($db['host']) 
-  ) $host_already_exists[$db['host']] = $id;
-}
-
-if (!empty($DIR_SQLITE)) {
-  foreach (nb::ls_dir($DIR_SQLITE,'\.db$') as $file) {
-
-    if (strpos($file,'_conflict-')) continue;
-
-    if (isset($host_already_exists["$DIR_SQLITE/$file"])) {
-      $DBQ[$host_already_exists["$DIR_SQLITE/$file"]]['sql_pre'][] = 'PRAGMA journal_mode=OFF';
-      continue;
-    }
-
-    $name = basename($file,'.db');
-    $id = "$name-sqlite";
-
-    $DBQ[$id] = [
-      'host' => "$DIR_SQLITE/$file",
-      'type' => 'sqlite',
-      'title' => 'created by dbq.php',
-      '_import' => $name
-    ];
-    #if (!empty($DBQ[$name])) $DBQ[$id] = array_merge_recursive($DBQ[$name],$DBQ[$id]);
+] as $DIR_SQLITE) {
+  if (is_readable($DIR_SQLITE)) {
+    break;
+  } else {
+    unset($DIR_SQLITE);
   }
 }
+if (!empty($DIR_SQLITE)) $DIR_SQLITE .= '/var/lib/sqlite';
 
-#
-# ALL - Attach all sqlite databases
-#
-#return;
-$DBQ['all'] = [
-  'host' => ':memory:',
-  'type' => 'sqlite',
-  'pdo' => '',
-  #'order' => '0',
-  'options' => [
-    PDO::ATTR_PERSISTENT => true,
-  ],
-  'tables' => [],
-  'sql_pre' => [
-    'PRAGMA busy_timeout = 1000',
-    #'PRAGMA synchronous=NORMAL',
-    'PRAGMA journal_mode=MEMORY',
-  ],
-];
-
-foreach ($DBQ as $id => $db) {
-  if (0
-
-    or empty($db['type'] )
-    or $db['type']!='sqlite'
-
-    or empty($db['host'] )
-    or !is_readable($db['host'])
-    or !strpos($db['host'],'.db')
-
-  ) continue;
-
-  $fname = basename($db['host'],'.db');
-  $fname = preg_replace('/\..*$/','',basename($db['host']));
-
-  $DBQ['all']['types']['sql_pre'][] = "ATTACH DATABASE '".$db['host']."' as ".$fname."";
-  if (!isset($DBQ[$fname]['name'])) $DBQ[$fname]['name'] = $fname;
-  conf_merge($DBQ[$fname],$DBQ['all']);
-
-}
-conf_merge($DBQ['nb'],$DBQ['all']);
-
-#
-# Functions
-#
-function conf_merge(&$c1,&$c2) {
-
-  // .*
-  foreach ([
-    'default_table',
-    'title',
-    'row_parse',
-    #'_import',
-  ] as $k) {
-    if (isset($c1[$k])) $c2[$k] = $c1[$k];
-  }
-
-  // tables.*
-  if (!empty($c1['tables'])) {
-    foreach ((array)$c1['tables'] as $k=>$v) {
-      $c2['tables'][$k] = $v + ['database' => $c1['name']];
-    }
-  }
-
-  return [$c1,$c2];
-}
 ?>
diff --git a/etc/dbq.yaml b/etc/dbq.yaml
deleted file mode 100644 (file)
index 4c1f4af..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-_mysql:
-  type: mysql
-
-izi:
-  title: Izi Admin
-  host: admin.izideal.vpn
-  default_table: process
-  user: izideal
-  name: izi
-  type: mysql
-  _import:
-    - _izi
-  encoding: utf-8
-  tables:
-    site:
-      replace:
-        idlang: lang.id
-
-izi-sql:
-  title: Mysql Izi Slave
-  host: sql.izideal.vpn
-  _import:
-    - izi
-
-izi-dev:
-  host: big.cascais.loc
-  title: Mysql Izi on Big
-  #user: nico
-  _import:
-    - izi
-
-crypt:
-  type: sqlite
-  host: /dev/shm/crypt.db
diff --git a/etc/dbq/crypt.yaml b/etc/dbq/crypt.yaml
new file mode 100644 (file)
index 0000000..ba97cde
--- /dev/null
@@ -0,0 +1,3 @@
+crypt:
+  type: sqlite
+  host: /dev/shm/crypt.db
diff --git a/etc/dbq/izi.yaml b/etc/dbq/izi.yaml
new file mode 100644 (file)
index 0000000..a8aae43
--- /dev/null
@@ -0,0 +1,27 @@
+izi:
+  title: Izi Admin
+  host: admin.izideal.vpn
+  default_table: process
+  user: izideal
+  name: izi
+  type: mysql
+  _import:
+    - _izi
+  encoding: utf-8
+  tables:
+    site:
+      replace:
+        idlang: lang.id
+
+'izi-sql':
+  title: Mysql Izi Slave
+  host: sql.izideal.vpn
+  _import:
+    - izi
+
+'izi-dev':
+  host: big.cascais.loc
+  title: Mysql Izi on Big
+  #user: nico
+  _import:
+    - izi
index bc08c1aaa3f013991d0945ce302a4bd430e0cde2..e3cffec6d4e89f7de6c629a2478da5064d35dcbb 100644 (file)
@@ -2,11 +2,11 @@
 #
 # !!! MANDATORY !!!
 #
-if (1) $DBQ = [
-  'local' => [
+if (true or !nb::is_vm()) $DBQ = [
+  'shell' => [
     'type' => 'sqlite',
-    'name' => 'local',
-    'host' => nb::ROOT_DIR.'/share/db/local.db',
+    'name' => 'shell',
+    'host' => nb::ROOT_DIR.'/share/db/shell.db',
   ],
 ];
 ?>
diff --git a/etc/dbq/zzz-all.php b/etc/dbq/zzz-all.php
new file mode 100644 (file)
index 0000000..ef9ac2c
--- /dev/null
@@ -0,0 +1,104 @@
+<?php
+#
+# Create *-sqlite databases
+#
+$host_already_exists = [];
+foreach ($DBQ as $id => $db) {
+  if (1
+    and !empty($db['type']) and $db['type'] == 'sqlite'
+    and !empty($db['host']) 
+  ) $host_already_exists[$db['host']] = $id;
+}
+
+if (!empty($DIR_SQLITE)) {
+  foreach (nb::ls_dir($DIR_SQLITE,'\.db$') as $file) {
+
+    if (strpos($file,'_conflict-')) continue;
+
+    if (isset($host_already_exists["$DIR_SQLITE/$file"])) {
+      $DBQ[$host_already_exists["$DIR_SQLITE/$file"]]['sql_pre'][] = 'PRAGMA journal_mode=OFF';
+      continue;
+    }
+
+    $name = basename($file,'.db');
+    $id = "$name-sqlite";
+
+    $DBQ[$id] = [
+      'host' => "$DIR_SQLITE/$file",
+      'type' => 'sqlite',
+      'title' => 'created by dbq.php',
+      '_import' => $name
+    ];
+    #if (!empty($DBQ[$name])) $DBQ[$id] = array_merge_recursive($DBQ[$name],$DBQ[$id]);
+  }
+}
+
+#
+# ALL - Attach all sqlite databases
+#
+#return;
+#die(count($DBQ)."\n");
+$DBQ['all'] = [
+  'host' => ':memory:',
+  'type' => 'sqlite',
+  'pdo' => '',
+  #'order' => '0',
+  'options' => [
+    PDO::ATTR_PERSISTENT => true,
+  ],
+  'tables' => [],
+  'sql_pre' => [
+    'PRAGMA busy_timeout = 1000',
+    #'PRAGMA synchronous=NORMAL',
+    'PRAGMA journal_mode=MEMORY',
+  ],
+];
+
+foreach ($DBQ as $id => $db) {
+  if (0
+
+    or empty($db['type'] )
+    or $db['type']!='sqlite'
+
+    or empty($db['host'] )
+    or !is_readable($db['host'])
+    or !strpos($db['host'],'.db')
+
+  ) continue;
+
+  $fname = basename($db['host'],'.db');
+  $fname = preg_replace('/\..*$/','',basename($db['host']));
+
+  $DBQ['all']['types']['sql_pre'][] = "ATTACH DATABASE '".$db['host']."' as ".$fname."";
+  if (!isset($DBQ[$fname]['name'])) $DBQ[$fname]['name'] = $fname;
+  conf_merge($DBQ[$fname],$DBQ['all']);
+
+}
+
+if (!empty($DBQ['nb'])) conf_merge($DBQ['nb'],$DBQ['all']);
+
+#
+# Functions
+#
+function conf_merge(&$c1,&$c2) {
+
+  // .*
+  foreach ([
+    'default_table',
+    'title',
+    'row_parse',
+    #'_import',
+  ] as $k) {
+    if (isset($c1[$k])) $c2[$k] = $c1[$k];
+  }
+
+  // tables.*
+  if (!empty($c1['tables'])) {
+    foreach ((array)$c1['tables'] as $k=>$v) {
+      $c2['tables'][$k] = $v + ['database' => $c1['name']];
+    }
+  }
+
+  return [$c1,$c2];
+}
+?>
index aaf44e2d2ff838a0b0139a86027725caaa2eb362..162e7912a6a67ea08de027cfb9eee2861bd6a73f 100755 (executable)
@@ -2,7 +2,8 @@
 #
 # Avoid infinit loop. Eg: profile -> .bashrc -> profile
 #
-[ "$1" = "--debug" ] && export NB_DEBUG="echo " && shift
+[ "$1" = "--debug" ] && export NB_DEBUG="echo DEBUG: " && shift
+
 #NB_DEBUG='echo '
 if [ -n "$NB_LOOP" ]; then
   [ -n "$NB_DEBUG" ] && $NB_DEBUG "WARN: NB_LOOP=$NB_LOOP: BASH_SOURCE=$BASH_SOURCE \$0=$0"
@@ -11,7 +12,7 @@ if [ -n "$NB_LOOP" ]; then
   unset NB_LOOP
   return 2>/dev/null || exit # if executable
 fi
-[ -n "$NB_DEBUG" ] && $NB_DEBUG "OK: BASH_SOURCE=$BASH_SOURCE \$0=$0"
+[ -n "$NB_DEBUG" ] && $NB_DEBUG "ENVS: BASH_SOURCE=$BASH_SOURCE \$0=$0"
 
 #trap 'unset NB_LOOP' EXIT
 export NB_LOOP=1
@@ -19,47 +20,50 @@ export NB_LOOP=1
 #
 # SEARCH ROOT
 #
-dir=''
-#NB_DEBUG="echo $0:"
+CURRENT_DIR=''
 #[ "${BASH-no}" != "no" ] && echo Is BASH
-case "$BASH_SOURCE" in
-  */*) dir="${BASH_SOURCE%/*}";;
-  *)
-    if [ -n "$ZSH_NAME" ]; then
-      dir=${(%):-%N}
-      dir=${dir%/*}
-    elif [ -r /etc/profile.d/nb.sh ]; then
-      return
-      dir=$(dirname $(cut -d'.' -f2 /etc/profile.d/nb.sh))
-    fi
-  ;;
-esac
-
-if [ -z "$dir" ]; then
-  [ -n "$NB_DEBUG" ] && $NB_DEBUG "ERR: Can't find NB_ROOT"
-  return 0
+if [ -n "$BASH_SOURCE" ]; then
+  #CURRENT_DIR="${BASH_SOURCE%/*}"
+  CURRENT_DIR="${BASH_SOURCE%/*}"
+elif [ -n "$ZSH_VERSION" ]; then
+  eval 'CURRENT_DIR=${(%):-%N}'
+  CURRENT_DIR=${dir%/*}
+elif [ "$KSH_VERSION" != "" ]; then
+#elif eval '[[ -n ${.sh.file} ]]' 2>/dev/null; then
+  eval 'CURRENT_DIR="$(dirname "${.sh.file}")"'
+elif [ -r /etc/profile.d/nb.sh ]; then
+  CURRENT_DIR=$(dirname $(grep '\. ' -m1 /etc/profile.d/nb.sh | cut -d'.' -f2 /etc/profile.d/nb.sh))
+elif [ -r "$0" ]; then
+  CURRENT_DIR="$(dirname "$0")"
+else
+  for i in /*/*/bin/nb-install /*/*/*/bin/nb-install; do
+    [ -r "$i" ] && CURRENT_DIR=$(dirname "$i")/../etc && break
+  done
 fi
-[ -e "$dir/profile.d/functions" ] && . "$dir/profile.d/functions"
-NB_ROOT=$(realpath ${dir}/.. 2>/dev/null)
 
-#echo "$NB_ROOT: `pwd`"
+if [ -z "$CURRENT_DIR" ]; then
+  [ -n "$NB_DEBUG" ] && $NB_DEBUG "ERR: Unsupported shell. Please use bash, ksh93 or zsh."
+else
 
-#
-# Profiles
-#
-if [ -n "$NB_ROOT" ]; then
-  [ -e "$NB_ROOT/etc/profile.d/envs" ] && . "$NB_ROOT/etc/profile.d/envs"
+  [ -e "$CURRENT_DIR/profile.d/functions" ] && . "$CURRENT_DIR/profile.d/functions"
+  export NB_ROOT=$(realpath $CURRENT_DIR/.. 2>/dev/null)
 
-  for i in \
-    ${NB_ROOT}/etc/profile.d/aliases \
-    $(nb-repo-dirs "etc/profile" "etc/profile.d/*.sh" | grep -vFx "${NB_ROOT}/etc/profile") \
-  ;do
-    [ -n "$NB_DEBUG" ] && $NB_DEBUG "OK: . $i"
-    [ -r "$i" -a -f "$i" ] && . "$i"
-  done
+  #
+  # Profiles
+  #
+  if [ -n "$NB_ROOT" ]; then
+    [ -e "$NB_ROOT/etc/profile.d/envs" ] && . "$NB_ROOT/etc/profile.d/envs"
+
+    for i in \
+      ${NB_ROOT}/etc/profile.d/aliases \
+      $(nb-repo-dirs "etc/profile" "etc/profile.d/*.sh" | grep -vFx "${NB_ROOT}/etc/profile") \
+    ;do
+      [ -n "$NB_DEBUG" ] && $NB_DEBUG "OK: . $i"
+      [ -r "$i" -a -f "$i" ] && . "$i"
+    done
+
+  fi
 
 fi
 
-unset i tmp dir NB_DEBUG NB_LOOP
-#unset NB_LOOP
-true
+unset i tmp CURRENT_DIR NB_DEBUG NB_LOOP
index 266e501568a515fea79b1fd9f7c3b4a4d6bc6524..3e134dc9b13f41f6b005d0ee06eea366750ee93d 100644 (file)
@@ -7,14 +7,11 @@ which docker > /dev/null || return 0
 [ -d ~/ownCloud/Docker ] && export DOCKER_HOME=~/ownCloud/Docker
 [ -z "$DOCKER_HUB" ] && DOCKER_HUB=""
 
-unset DOCKER_IP
-if [ -z "$MYVIMRC" ]; then
+if is_prompt && which docker-machine > /dev/null && [ -z "$MYVIMRC" ]; then
 
-  if [ -z "$DOCKER_CERT_PATH" -o ! -e "$DOCKER_CERT_PATH" ] && which docker-machine>/dev/null && docker-machine ls -q 2>/dev/null |grep -qFm1 "$DOCKER_MACHINE_NAME"; then
+  if [ -z "$DOCKER_CERT_PATH" -o ! -e "$DOCKER_CERT_PATH" ] && docker-machine ls -q 2>/dev/null |grep -qFm1 "$DOCKER_MACHINE_NAME"; then
     eval "$(docker-machine env "$DOCKER_MACHINE_NAME")" 2>/dev/null
-    DOCKER_IP=$(docker-machine ip "$DOCKER_MACHINE_NAME")
   fi
-  export DOCKER_IP
 
 fi
 
index 4fabb36bc7955530461122c5ffd3c07de8c55b05..908832ae6b46108eff1e2e56e582668122dcdc3f 100644 (file)
@@ -527,6 +527,7 @@ shell_push_arg() {
 
 urlencode() {
   local length="${#1}"
+  local i
   for (( i = 0; i < length; i++ )); do
   #for i in `seq 0 $(($length-1))`; do
     local c="${1:i:1}"
diff --git a/etc/profile.d/sys.sh b/etc/profile.d/sys.sh
new file mode 100644 (file)
index 0000000..4b11094
--- /dev/null
@@ -0,0 +1,3 @@
+sys_is_vm() {
+  grep -q ^flags.*\ hypervisor /proc/cpuinfo && echo "This machine is a VM"
+}
index 0766d972376f194bb9159a3cfda5d57d5fb4c605..bdf6f72803b59b29e700956740b4714c22e45cca 100644 (file)
@@ -67,6 +67,9 @@ class Db extends nb {
   ];
 
   # Params
+  protected $default_params = [
+  ];
+
   protected static $paliases = [
     'd'   => 'db',
     't'   => 'table',
@@ -157,11 +160,11 @@ class Db extends nb {
     #if(!is_scalar($opt['type'])) debug($opt['type']);
     if (empty($this->out)) $this->out = new Out(['charset'=>$this->charset]);
 
-    # id
-    if (!empty($this->conf)) {
-      foreach ($this->conf as $id=>$conf) {
-      }
-    }
+# NB 20.11.16     # id
+# NB 20.11.16     if (!empty($this->conf)) {
+# NB 20.11.16       foreach ($this->conf as $id=>$conf) {
+# NB 20.11.16       }
+# NB 20.11.16     }
 
     # Add formats from module out
     foreach($this->out->types() as $t=>$v) if (!in_array($t,$this->formats)) $this->formats[] = $t;
@@ -660,10 +663,11 @@ class Db extends nb {
 
       $file = self::untilde($file);
 
+      #if (!is_readable($file))
       if (!is_readable($file)) continue;
-
       if (preg_match('/\.(yaml|yml)$/i',$file) and ($yaml = self::yaml_parse_file($file))) {
         $dbs = array_replace_recursive($dbs,$yaml);
+        #If (!empty($dbs['crypt'])) debug($dbs['crypt']);
 
       } elseif (preg_match('/\.php$/i',$file)) {
         require($file);
index 994ca07e5cea2cca7b67471d4e2a775780f1e59b..e3983d4f904b366d87797f44a7cf865d8c8e906d 100644 (file)
@@ -1,34 +1,36 @@
 <?php
 require_once(realpath(dirname(__FILE__).'/../config.php'));
 require_once(realpath(dirname(__FILE__).'/../db.php'));
+$DB_CONFS = array_merge([]
 
-# NB 19.11.16: TODEL 
-foreach ([
-  Db::ROOT_DIR.'/etc/dbs.yaml',
-  Db::ROOT_DIR.'/etc/dbs.php',
-  '/etc/dbs.yaml',
-] as $file) {
-  if (file_exists($file)) nb::msg("Delete obsolete file: $file (".__FILE__.")");
-}
+  # ::ROOT_DIR
+  ,[
+    Db::ROOT_DIR.'/etc/dbq.yml',
+    Db::ROOT_DIR.'/etc/dbq.yaml',
+    Db::ROOT_DIR.'/etc/dbq.php',
+  ]
+  ,(array)glob(Db::ROOT_DIR.'/etc/dbq/*.yml')
+  ,(array)glob(Db::ROOT_DIR.'/etc/dbq/*.yaml')
+  ,(array)glob(Db::ROOT_DIR.'/etc/dbq/*.php')
 
-$DB_CONFS = Db::conf_load(
-glob('/etc/dbq/*.yaml')+
-glob('/etc/dbq/*.php')+
-[
-  Db::ROOT_DIR.'/etc/dbs.yaml',
-  Db::ROOT_DIR.'/etc/dbs.php',
+  # /etc
+  ,[
+    '/etc/dbq.yml',
+    '/etc/dbq.yaml',
+    '/etc/dbq.php',
+  ]
+  ,(array)glob('/etc/dbq/*.yml')
+  ,(array)glob('/etc/dbq/*.yaml')
+  ,(array)glob('/etc/dbq/*.php')
 
-  Db::ROOT_DIR.'/etc/dbq.yaml',
-  Db::ROOT_DIR.'/etc/dbq.php',
+  # ~/
+  ,[
+    '~/.dbq.yml',
+    '~/.dbq.yaml',
+    '~/.dbq.php',
+  ]
+);
+#bye($DB_CONFS);
+$DB_CONFS = Db::conf_load($DB_CONFS);
 
-
-  '/etc/dbs.yaml',
-  '/etc/dbq.yaml',
-
-  '/etc/dbq.yaml',
-  '/etc/dbq.php',
-
-  '~/.dbq.yaml',
-  '~/.dbq.php',
-]);
 ?>
index 6a5dbc022423d89f071c855db1cd942d9b539935..8e0c0da92783848a46311f96bd2457f888c735c6 100644 (file)
@@ -28,7 +28,7 @@ $Page = new Page([
     function($page){
       #if (!$page->is('html')) return;
       global $Db;
-      if (!empty($Db)) echo $page->tag('div class="db-infos"',join(' | ',[
+      if (!empty($Db)) echo $page->tag('p class="db-infos"',join(' | ',[
         $Db->type,
         $Db->host,
         ($Db->name ? $Db->name : null),
index 4fb4af40162afdc0f137711408ad98bc8e0bc7d8..82ce3a518e1b8fc9848fcf322e7ee84e42cc9646 100644 (file)
@@ -820,6 +820,10 @@ class NB {
     return rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $key, substr($value, $iv_size), MCRYPT_MODE_CBC, substr($value, 0, $iv_size)));
   }
 
+  public static function is_vm() {
+    return file_exists('/proc/cpuinfo') && preg_match('/^flags.* hypervisor/m',file_get_contents('/proc/cpuinfo'));
+  }
+
 } # < Class
 
 return;
diff --git a/share/db/local.db b/share/db/local.db
deleted file mode 100644 (file)
index c138a64..0000000
Binary files a/share/db/local.db and /dev/null differ
diff --git a/share/db/shell.db b/share/db/shell.db
new file mode 100644 (file)
index 0000000..c138a64
Binary files /dev/null and b/share/db/shell.db differ
index 95a5408356a8598698369ed69fe2cff79fbfa1d9..0425e12db88dbd4238f56b216d1dea0281a9153b 100644 (file)
@@ -1,4 +1,6 @@
 <?php
+require_once('/opt/nb/lib/php/db/page.php');
+return;
 echo '<?xml version="1.0" encoding="utf-8"?>'."\n";
 ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">