aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config-docker.patch81
-rw-r--r--docker/docker-compose.yml (renamed from docker-compose.yml)2
-rwxr-xr-xdocker/readme-php5.sh (renamed from readme-php5.sh)4
-rwxr-xr-xh-source/.htaccess15
-rwxr-xr-xh-source/Application/Hooks/BeforeChecks.php2
-rwxr-xr-xh-source/Config/Config.php8
-rwxr-xr-xh-source/admin/Config/Config.php8
7 files changed, 14 insertions, 106 deletions
diff --git a/config-docker.patch b/config-docker.patch
deleted file mode 100644
index 34f8f8b..0000000
--- a/config-docker.patch
+++ /dev/null
@@ -1,81 +0,0 @@
-diff --git a/h-source/.htaccess b/h-source/.htaccess
-index 56ccf22..61012e2 100755
---- a/h-source/.htaccess
-+++ b/h-source/.htaccess
-@@ -1,7 +1,7 @@
- RewriteEngine On
-
--RewriteCond %{HTTPS} !^on$
--RewriteRule (.*) https://www.h-node.org/$1 [R,L]
-+#RewriteCond %{HTTPS} !^on$
-+#RewriteRule (.*) https://www.h-node.org/$1 [R,L]
-
- # <IfModule mod_rewrite.c>
- # Options +FollowSymlinks
-diff --git a/h-source/Application/Hooks/BeforeChecks.php b/h-source/Application/Hooks/BeforeChecks.php
-index 6f200e6..47e7936 100755
---- a/h-source/Application/Hooks/BeforeChecks.php
-+++ b/h-source/Application/Hooks/BeforeChecks.php
-@@ -13,7 +13,7 @@ if (!defined('EG')) die('Direct access not allowed!');
-
- Params::$htmlentititiesCharset = "UTF-8";
-
--Params::$useHttps = true;
-+Params::$useHttps = false;
-
- Params::$allowedSanitizeFunc .= ",sanitizeString,sanitizeAlphanum";
-
-diff --git a/h-source/Config/Config.php b/h-source/Config/Config.php
-index bea5562..1290751 100755
---- a/h-source/Config/Config.php
-+++ b/h-source/Config/Config.php
-@@ -23,10 +23,10 @@
- if (!defined('EG')) die('Direct access not allowed!');
-
-
--define('DB', '');
--define('USER', '');
-+define('DB', 'hnode');
-+define('USER', 'root');
- define('PWD', '');
--define('HOST', '');
-+define('HOST', 'localhost');
-
- /*default controller name*/
- define('DEFAULT_CONTROLLER','home');
-@@ -35,7 +35,7 @@ define('DEFAULT_CONTROLLER','home');
- define('DEFAULT_ACTION','index');
-
- /*website parameters*/
--define('DOMAIN_NAME','h-source');
-+define('DOMAIN_NAME','localhost');
-
- /*type of database.*/
- //it can be: Mysql, Mysqli or None (first letter in uppercase)
-diff --git a/h-source/admin/Config/Config.php b/h-source/admin/Config/Config.php
-index 24d2e57..3f7866d 100755
---- a/h-source/admin/Config/Config.php
-+++ b/h-source/admin/Config/Config.php
-@@ -6,10 +6,10 @@
- if (!defined('EG')) die('Direct access not allowed!');
-
-
--define('DB', '');
--define('USER', '');
-+define('DB', 'hnode');
-+define('USER', 'root');
- define('PWD', '');
--define('HOST', '');
-+define('HOST', 'localhost');
-
- /*default controller name*/
- define('DEFAULT_CONTROLLER','adminusers');
-@@ -18,7 +18,7 @@ define('DEFAULT_CONTROLLER','adminusers');
- define('DEFAULT_ACTION','login');
-
- /*website parameters*/
--define('DOMAIN_NAME','h-source/admin');
-+define('DOMAIN_NAME','localhost/admin');
-
- /*type of database.*/
- //it can be: Mysql, Mysqli or None (first letter in uppercase)
diff --git a/docker-compose.yml b/docker/docker-compose.yml
index 3b70319..c3f2349 100644
--- a/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -10,5 +10,5 @@ services:
- 80:80
- 3306:3306
volumes:
- - "./h-source:/app"
+ - "../h-source:/app"
- "./mysql:/var/lib/mysql"
diff --git a/readme-php5.sh b/docker/readme-php5.sh
index 4bad3aa..fb62a4d 100755
--- a/readme-php5.sh
+++ b/docker/readme-php5.sh
@@ -12,9 +12,7 @@
# > create database hnode;
# > ^D
# and populate the schema/initial data with:
-# mysql -uadmin -pXXX -h127.0.0.1 hnode < h-source/tables.sql
-
-patch -p1 < config-docker.patch
+# mysql -uadmin -pXXX -h127.0.0.1 hnode < ../h-source/tables.sql
docker-compose up --build lamp-php5
diff --git a/h-source/.htaccess b/h-source/.htaccess
index 56ccf22..95ab62f 100755
--- a/h-source/.htaccess
+++ b/h-source/.htaccess
@@ -1,14 +1,5 @@
RewriteEngine On
-RewriteCond %{HTTPS} !^on$
-RewriteRule (.*) https://www.h-node.org/$1 [R,L]
-
-# <IfModule mod_rewrite.c>
-# Options +FollowSymlinks
-# RewriteEngine on
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
-# </IfModule>
-
-
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
diff --git a/h-source/Application/Hooks/BeforeChecks.php b/h-source/Application/Hooks/BeforeChecks.php
index 6f200e6..47e7936 100755
--- a/h-source/Application/Hooks/BeforeChecks.php
+++ b/h-source/Application/Hooks/BeforeChecks.php
@@ -13,7 +13,7 @@ if (!defined('EG')) die('Direct access not allowed!');
Params::$htmlentititiesCharset = "UTF-8";
-Params::$useHttps = true;
+Params::$useHttps = false;
Params::$allowedSanitizeFunc .= ",sanitizeString,sanitizeAlphanum";
diff --git a/h-source/Config/Config.php b/h-source/Config/Config.php
index bea5562..1290751 100755
--- a/h-source/Config/Config.php
+++ b/h-source/Config/Config.php
@@ -23,10 +23,10 @@
if (!defined('EG')) die('Direct access not allowed!');
-define('DB', '');
-define('USER', '');
+define('DB', 'hnode');
+define('USER', 'root');
define('PWD', '');
-define('HOST', '');
+define('HOST', 'localhost');
/*default controller name*/
define('DEFAULT_CONTROLLER','home');
@@ -35,7 +35,7 @@ define('DEFAULT_CONTROLLER','home');
define('DEFAULT_ACTION','index');
/*website parameters*/
-define('DOMAIN_NAME','h-source');
+define('DOMAIN_NAME','localhost');
/*type of database.*/
//it can be: Mysql, Mysqli or None (first letter in uppercase)
diff --git a/h-source/admin/Config/Config.php b/h-source/admin/Config/Config.php
index 24d2e57..3f7866d 100755
--- a/h-source/admin/Config/Config.php
+++ b/h-source/admin/Config/Config.php
@@ -6,10 +6,10 @@
if (!defined('EG')) die('Direct access not allowed!');
-define('DB', '');
-define('USER', '');
+define('DB', 'hnode');
+define('USER', 'root');
define('PWD', '');
-define('HOST', '');
+define('HOST', 'localhost');
/*default controller name*/
define('DEFAULT_CONTROLLER','adminusers');
@@ -18,7 +18,7 @@ define('DEFAULT_CONTROLLER','adminusers');
define('DEFAULT_ACTION','login');
/*website parameters*/
-define('DOMAIN_NAME','h-source/admin');
+define('DOMAIN_NAME','localhost/admin');
/*type of database.*/
//it can be: Mysql, Mysqli or None (first letter in uppercase)