User Tools

Site Tools


english_readme

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
english_readme [2017/06/28 01:13] – created marcoenglish_readme [2025/12/05 15:15] (current) marco
Line 1: Line 1:
-|  [[en|english]]  |  [[http://www.digitaldruid.net/php-residence/en/|hoteldruid home page]]  |+|  [[en|english]]  |  [[http://www.hoteldruid.com/en/|hoteldruid home page]]  |
 \\ \\
 ====== HotelDruid README ====== ====== HotelDruid README ======
Line 6: Line 6:
  
  
-HotelDruid version 2.0.2+########################################################################################## 
 +#    HOTELDRUID                                                                          # 
 +#    Copyright (C) 2001-2025 by Marco Maria Francesco De Santis (marco@digitaldruid.net) # 
 +#                                                                                        # 
 +#    This program is free software: you can redistribute it and/or modify                # 
 +#    it under the terms of the GNU Affero General Public License as published by         # 
 +#    the Free Software Foundation, either version 3 of the License, or                   # 
 +#    any later version accepted by Marco Maria Francesco De Santis, which                # 
 +#    shall act as a proxy as defined in Section 14 of version 3 of the                   # 
 +#    license.                                                                            # 
 +#                                                                                        # 
 +#    This program is distributed in the hope that it will be useful,                     # 
 +#    but WITHOUT ANY WARRANTY; without even the implied warranty of                      # 
 +#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                       # 
 +#    GNU Affero General Public License for more details.                                 # 
 +#                                                                                        # 
 +#    You should have received a copy of the GNU Affero General Public License            # 
 +#    along with this program.  If not, see <http://www.gnu.org/licenses/>              # 
 +########################################################################################## 
 + 
 +HotelDruid version 3.0.8
 Program for hotel rooms management or weekly and daily rental  Program for hotel rooms management or weekly and daily rental 
 of apartments. of apartments.
Line 30: Line 50:
 REQUIRED SOFTWARE REQUIRED SOFTWARE
 -apache (>=1.3.26) or another web server that supports php -apache (>=1.3.26) or another web server that supports php
--php (>=3.0.18) with extension for postgresql, mysql or sqlite3+-php (>=4.1) with extension for postgresql, mysql or sqlite3
 -postgresql (>=7.4.7) or mysql (>=4.1.11) or sqlite (>=3.7.9) -postgresql (>=7.4.7) or mysql (>=4.1.11) or sqlite (>=3.7.9)
 -a browser that supports html 4.01 with utf-8 encoding -a browser that supports html 4.01 with utf-8 encoding
Line 53: Line 73:
 changing databasename, user and pass with your data. changing databasename, user and pass with your data.
 POSTGRESQL CONFIGURATION: make sure that the postgres server  POSTGRESQL CONFIGURATION: make sure that the postgres server 
-is started with the option "-i" in order to allow connections  +is started with the option in order to allow connections  
-via TCP/IP (in Debian 2.2 put "PGALLOWTCPIP=yes" in  +via TCP/IP (in Debian put "listen_addresses 'localhost'" in  
-/etc/postgresql/postmaster.init, in Red Hat 7.2 put +/etc/postgresql/x.x/main/postgresql.conf, in Red Hat 7.2 put 
 "tcpip_socket = true" in /var/lib/pgsql/data/postgresql.conf).  "tcpip_socket = true" in /var/lib/pgsql/data/postgresql.conf). 
 Moreover you must have the right permissions in the file  Moreover you must have the right permissions in the file 
 pg_hba.conf (normally you don't need to change the default  pg_hba.conf (normally you don't need to change the default 
 ones). In order to create a user in postgresql use the command  ones). In order to create a user in postgresql use the command 
-"createuser -P user_name" issued by user postgres ("su postgres"  +"createuser -d -P user_name" issued by user postgres ("su  
-from root) and answer yes when it asks if it will be able to  +postgres" from root).
-create a database.+
 SQLITE CONFIGURATION: the sqlite database is actually a file  SQLITE CONFIGURATION: the sqlite database is actually a file 
 that resides in the dati folder, so if you're using php version  that resides in the dati folder, so if you're using php version 
Line 244: Line 263:
  assigned, separated by commas  assigned, separated by commas
 [paid] what has been paid until now [paid] what has been paid until now
 +[extra_cost_name] name of the extra cost, defined only
 + inside costs repetitions
 +[extra_cost_value] value of the extra cost, defined only
 + inside costs repetitions
 +[extra_cost_max_multiply] maximum number by which a cost
 + is multiplied, defined only inside
 + costs repetitions. If also inside a
 + repetition of an array with days, then
 + represents the value by which the cost
 + is multiplied on that day
 +[extra_cost_max_daily_value] maximum daily value (not
 + multiplied) of the cost, defined only
 + inside costs repetitions. If also inside
 + a repetition of an array with days, then
 + represents the value of the cost
 + (already multiplied) on that day
 [all_extra_costs] list with all the extra costs and their [all_extra_costs] list with all the extra costs and their
  respective values  respective values
Line 268: Line 303:
 In addition, you can also create custom variables like [var] or  In addition, you can also create custom variables like [var] or 
 arrays like [var1(var2)]. To assign a fixed value to an array  arrays like [var1(var2)]. To assign a fixed value to an array 
-within the document you can use the notation [var1('value')].+within the document you can use the notation [var1('value')].  
 +These variables and their conditions are created from the page  
 +you can access with the button at the bottom of the document  
 +editing page. 
 +Conditions on variables can also be inserted inside the document  
 +text, so that the part surrounded by the condition is displayed  
 +only if the condition is satisfied. The format of these  
 +conditions is: 
 + 
 +[c variable_name="value"]Text under condition[/c] 
 + 
 +where the variable names are written without square 
 +brackets. The "value" to which the variable is compared 
 +can be a text surrounded by quotation marks " or another 
 +variable, in this case without quotation marks. The types of 
 +comparison can be = (equal), != (not equal), % (text 
 +included in the first variable), !% (text not included), > 
 +(greater than) and < (less than). Multiple conditions can be  
 +joined with & (AND) or | (OR). The conditions are always  
 +considered as grouped on the right, for example in: 
 + 
 +[c var1="val" & var2!=var3 | var4>"val2" & var5%var6]Text[/c] 
 + 
 +the conditions are grouped as follows: 
 + 
 +var1="val" & (var2!=var3 | (var4>"val2" & var5%var6))
  
  
Line 312: Line 372:
 be disabled and anybody will be able to access with  be disabled and anybody will be able to access with 
 administrator user privileges. administrator user privileges.
 +
 +
 +THANKS
 +Thanks to Stan Khodjaev from icojam.com for releasing the 
 +"Marmalade", "Blue Bits" and "Blueberry" icon set into the public 
 +domain.
  
  
Line 321: Line 387:
 Marco M. F. De Santis Marco M. F. De Santis
 Email: marco@digitaldruid.net Email: marco@digitaldruid.net
 +
  
 </file> </file>
 \\ \\
 \\ \\
-|  [[en|english]]  |  [[http://www.digitaldruid.net/php-residence/en/|hoteldruid home page]]  |+|  [[en|english]]  |  [[http://www.hoteldruid.com/en/|hoteldruid home page]]  |
  
english_readme.1498612436.txt.gz · Last modified: 2017/06/28 01:13 by marco