]> git.nbdom.net Git - nb.git/commitdiff
www/dbq
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 12 Dec 2016 22:10:26 +0000 (23:10 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 12 Dec 2016 22:10:26 +0000 (23:10 +0100)
lib/php/config.php
www/dbq/dbq.php
www/dbq/etc/nginx/default.conf
www/dbq/html/index.php

index 0a33302a644dbad948418dd40a5e60ab60ae9069..12d9e3a629dc1c5792d602dc4b8b24d4c9504cf9 100644 (file)
@@ -10,7 +10,7 @@
 if (empty($_SERVER['PROD'])) error_reporting(E_ALL | E_STRICT | E_NOTICE);
 
 // Base lib
-require(dirname(__FILE__).'/nb.php');
+require_once(realpath(dirname(__FILE__).'/nb.php'));
 
 // Cli
 if (nb::php_cli()) {
index 205af0719a5c2bf68db45a87c5083b41648990c5..987f9e8400e7f673cb58f965d838d169f8f23500 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 require_once(dirname(__FILE__).'/../../lib/php/nb.php');
-require_once(dirname(__FILE__).'/../../lib/php/http.php');
+require_once(NB_ROOT.'/lib/php/http.php');
 class DbQ extends nb {
   const ADMIN = 9;
   const DELETE = 4;
index b42304b49dc6510aa51047531153ad81348598b7..f5f49945313729167b9b3bebb9038bfb3dc4a33a 100644 (file)
@@ -1,5 +1,7 @@
 server {
-    listen 1973 default_server;
+    listen localhost:1973 default_server;
+    listen 10.8.0.1:1973 default_server;
+    #listen 192.168.3.1:1973 default_server;
     server_name dbq dbq.*;
     root /opt/nb/www/dbq/html;
     index index.php index.html;
index d10e321a1749cab98ac83c92c4ea9bc707494bc7..bfd9aa01b441af571fdc841eaa8628d9172a12f8 100644 (file)
@@ -1,3 +1,6 @@
 <?php
 require_once(dirname(__FILE__).'/../dbq.php');
+#require_once(dirname(__FILE__).'/../../../lib/php/nb.php');
+#nb::p('zaza');
+#echo "Hello";
 ?>