english_readme
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| english_readme [2017/06/28 01:13] – created marco | english_readme [2025/12/05 15:15] (current) – marco | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | | [[en|english]] | + | | [[en|english]] |
| \\ | \\ | ||
| ====== HotelDruid README ====== | ====== HotelDruid README ====== | ||
| Line 6: | Line 6: | ||
| - | HotelDruid version | + | ########################################################################################## |
| + | # 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. | ||
| + | # 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. | ||
| + | ########################################################################################## | ||
| + | |||
| + | HotelDruid version | ||
| 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 (> | -apache (> | ||
| - | -php (>=3.0.18) with extension for postgresql, mysql or sqlite3 | + | -php (>=4.1) with extension for postgresql, mysql or sqlite3 |
| -postgresql (> | -postgresql (> | ||
| -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, | changing databasename, | ||
| POSTGRESQL CONFIGURATION: | POSTGRESQL CONFIGURATION: | ||
| - | is started with the option | + | is started with the option in order to allow connections |
| - | via TCP/IP (in Debian | + | via TCP/IP (in Debian |
| - | / | + | / |
| " | " | ||
| 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 | ||
| - | " | + | " |
| - | from root) and answer yes when it asks if it will be able to | + | postgres" |
| - | create a database. | + | |
| SQLITE CONFIGURATION: | SQLITE CONFIGURATION: | ||
| 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, | assigned, | ||
| [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(' | + | within the document you can use the notation [var1(' |
| + | 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=" | ||
| + | |||
| + | where the variable names are written without square | ||
| + | brackets. The " | ||
| + | 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=" | ||
| + | |||
| + | the conditions are grouped as follows: | ||
| + | |||
| + | var1=" | ||
| 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 | ||
| + | " | ||
| + | domain. | ||
| Line 321: | Line 387: | ||
| Marco M. F. De Santis | Marco M. F. De Santis | ||
| Email: marco@digitaldruid.net | Email: marco@digitaldruid.net | ||
| + | |||
| </ | </ | ||
| \\ | \\ | ||
| \\ | \\ | ||
| - | | [[en|english]] | + | | [[en|english]] |
english_readme.1498612436.txt.gz · Last modified: 2017/06/28 01:13 by marco