]> git.nbdom.net Git - nb.git/commitdiff
www/dbq/etc/apache.conf
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 17 Jan 2019 00:17:52 +0000 (01:17 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 17 Jan 2019 00:17:52 +0000 (01:17 +0100)
lib/php/page.php
www/dbq/dbq.php
www/dbq/etc/apache.conf [new file with mode: 0644]

index 24b99e1c09c4c5463ae62453f8f3d43e2e0b7cd9..6c7c10e922d6ea3da4252c58a5dd60582adf182e 100644 (file)
@@ -280,8 +280,8 @@ class Page extends nb {
 
     $this->headers(); 
 
-    if (preg_match('/html$/',self::$content_type)) {
-    #if (self::is('html')) {
+# NB 17.01.19     if (preg_match('/html$/',self::$content_type)) {
+    if (self::is('html')) {
 
       echo $this->doctype(); 
 
index ec4d8557a78df0f725f09043d7607964768f1ac7..dab1e89fbe04de33e8ab972ff649346d6b7f6572 100644 (file)
@@ -313,7 +313,9 @@ class DbQ extends nb {
                        if ($this->base) $this->page->head[] = '<base href="' . $this->base . '/" />';
 
                        $this->page->begin();
-                       echo '<div id="page-body" class="container">';
+                       if ($this->is_html) {
+                               echo '<div id="page-body" class="container">';
+                       }
 
                } # if (empty($this->_nopage)) {
 
@@ -342,11 +344,15 @@ class DbQ extends nb {
 
                $this->db->out($rows,$head,$conf);
 
+               if ($this->is_html) {
+                       echo '</div>'; # page-body
+               }
+
                if (empty($this->_nopage)) {
 
                        $bottom = [];
 
-                       echo '</div>'; # page-body
+# NB 17.01.19                  echo '</div>'; # page-body
                        $this->page_bottom();
 
                        $this->page->end();
diff --git a/www/dbq/etc/apache.conf b/www/dbq/etc/apache.conf
new file mode 100644 (file)
index 0000000..12c7c00
--- /dev/null
@@ -0,0 +1,5 @@
+DirectoryIndex index.php
+RewriteEngine  on
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule ^(.*)$ /index.php?$1 [QSA,L]