GithubHelp home page GithubHelp logo

librebooking / app Goto Github PK

View Code? Open in Web Editor NEW
363.0 363.0 219.0 40.07 MB

Repository for the last open source version of Booked Scheduler. The "develop" branch contains the most current working code of the project and should be considered beta. The "master" branch is the most current stable release of BookedScheduler. Please read doc/README.md for further details.

License: GNU General Public License v3.0

PHP 65.64% CSS 1.78% Less 0.58% JavaScript 22.71% Smarty 9.28% HTML 0.01% Shell 0.01%

app's People

Contributors

alexisechague avatar apfelchips avatar bassmentchemist avatar bpinsard avatar colisee avatar dharmsworth avatar disassembler0 avatar donku2019 avatar effgarces avatar f0r3n5ic-sw33t13 avatar flotonus avatar hakito avatar johnnybrandom avatar johnvillalovos avatar joundso avatar labmecanicatec avatar larafj avatar marcin-adamski avatar nkorbel avatar nuciluc avatar qbicdesign avatar quasimoko avatar ramartins02 avatar simonflood avatar szabogyula avatar tomzt avatar torinky avatar victor-rds avatar wahnes avatar yeicor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

app's Issues

Calender view

Calendar view cannot be changed in Version Booked Scheduler GPLv3 v2.8.5.4
some translations are missing in the de_de.php
here is a corrected version
de_de.zip

greetings klaus

New install sql errors

When doing a new install the installer checks if it's an upgrade or a fresh install, but despite this it still executes all the sql upgrade files, from 2.1 up to 2.8, thus causing erros to show up during the install, these are not a showstopper as the db was correctly created and are only informing that a certain change was not possible, due to it already being there.
Fixed on commit 6baaaa8

Week sarting on monday (on datepicker)

Hi,
Anyone knows if there is a way to see datepicker calendars (the fantastic one on top of view-shedule.php page, and also on any datepicker form field) satrting from monday instead of sunday (we use that format in Spain)?
I can`t find the right way to render that small calendar with the weeks starting from monday. It´d be something easy to do.
And the same is with the big calendar on view-calendar.php page.
It'd be great to have this option available inside config.php. This way, you can configure as per your needs.

Hope anyone can help with this

"Find a time" bug

As mentioned by @trandrew on gitter, every time is available for a given resource, even if already booked. Happens if the date range starts and ends on the same date.

Reservation API slow response.

Hi,
I am using booked scheduler developer APIs and integrating this in one of my nodejs application which calls APIs of booked scheduler.
But it seems like Create Reservation API /Web/Services/index.php/Reservations/ is bit slow i.e it is taking somewhere around 3 to 4 seconds. to complete one reservation. Is this the normal speed or can be improved?

My bookedscheduler is hosted on AWS EC2.
Please help!

installation requirements

It seems that booked is not compatible with some versions of php (8 for instance), while the readme and readme_installation mention 7 and 5.6 and above respectively.

Reservation deletion issue in french

Hi,
I just update my 2.7.7 version to 2.8.5.3 but I have an issue with the deletion of a reservation.
When I click on the "Effacer" (Delete) button it doesn't work (no popup).
In english, deutch, español it works well.
I tryied to find the reason comparing some old files with new ones but nothing...
Any idea?
Thanks

PS: great to have an open source fork!

Get slots API unexpected behaviour while using datetime with offset

I am using this API /Web/Services/index.php/Schedules/:scheduleId/Slots to get slots of resource. It is mentioned in the docs that if dates do not include the timezone offset, the timezone of the authenticated user will be assumed. so to get slots with different timezone offset I tried this http://localhost:8888/Web/Services/index.php/Schedules/1/Slots?startDateTime=2021-06-29T11:30:36+0500&endDateTime=2021-06-29T11:30:36+0500&resourceId=5, note that timezone offset here is 0500 but it is not responding correctly i.e returning dates in incorrect format i.e one date in the slot result is this "date": "0500-06-29T00:00:00+0553". WIthOut dateTime offset it is working fine i.e returning dates like this "date": "2021-06-29T00:00:00+0530". Am i hitting the API correctly or there is something else missing?

Failure when sending invitation to multiple email addresses

When inviting someone to an event (edit event, more, email) a menu pops up where you can enter one or multiple emails. By hitting enter they are formatted in a list. (See screenshots).
Screen Shot 2021-11-01 at 22 08 10
Screen Shot 2021-11-01 at 22 08 33

Then the email does not arrive and an error is thrown. If formatted as comma-separated list everything works. The code seems to expect a string but gets an array.

2021/11/01 22:05:12 [error] 3503#3503: *260031 FastCGI sent in stderr: "PHP message: PHP Warning: preg_split() expects parameter 2 to be string, array given in /booked/Pages/Ajax/ReservationEmailPage.php on line 53 PHP message: PHP Warning: Invalid argument supplied for foreach() in /booked/Presenters/Reservation/ReservationEmailPresenter.php on line 64" while reading response header from upstream, client: someip, server: url.de, request: "POST /booked/Web/ajax/reservation_email.php?rn=6180033972605532815057 HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "url.de", referrer: "url/booked/Web/reservation.php?rn=bla"

smarty php7 count modifier

Emails sent by booked contained the following errors:

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/booked/tpl_c/1d000b594d0f33f56aa31ad4351fb635d53c04fc_0.file.ReservationCreatedAdmin.tpl.php on line 127

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/booked/tpl_c/1d000b594d0f33f56aa31ad4351fb635d53c04fc_0.file.ReservationCreatedAdmin.tpl.php on line 146

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/booked/tpl_c/1d000b594d0f33f56aa31ad4351fb635d53c04fc_0.file.ReservationCreatedAdmin.tpl.php on line 161

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/booked/tpl_c/1d000b594d0f33f56aa31ad4351fb635d53c04fc_0.file.ReservationCreatedAdmin.tpl.php on line 180

Caused by passiong something else than an array.

It looks like it can be solved by smarty-php/smarty#459
replacing all |count by |default:array()|count

Locked out from Booked

Hello!

I'm facing a problem about logging in.
I could login as administrator.
I have created a couple of users, so I've logged out and tried to login. Both of them failed to login.
After that I cannot login even with my admin account. When I write the account username and password, the page refreshes and nothing happend.
Is anyone else faced such a problem?
[Ubuntu server 16.04.6 LTS, Apache, PHP 7.4.13]

Apostrophe in the username breaks the reservation page.

Booked Scheduler v2.8.5.3

Username with extra apostrophe breaks the reservation page.

i.e. "D'Blah"

Code breaks here:
./tpl/Reservation/pdf.tpl

violating variable:
{ user: '{$ReservationUserName}'}

Which makes it impossible to load extra attributes thus make the booking.

How can we make modifications in the Api's for example i want to authenticate via email

IS there a standard way we can add new Api's as per our requirement, i am not able to find anything how to add, modify an Api, For example in authentication api i want to use email instead of username .
curl --location --request POST 'http://localhost/BookedScheduler/Web/Services/index.php/Authentication/Authenticate'
--header 'Content-Type: application/json'
--data-raw '{
"username": "admin",
"password": "password"
}'

Link on error.tpl does not work properly

Hi there,

I've found this on error.tpl:
If you are not loged in, and you try to click the link and view any resource on view-schedule.php grid, then that link goes to an error page, telling that you can't access, and the link below tells you (in english): "Return to the last page that you were on". But this link do not works propertly.
I've found this solution:
Substitute this line insde error.tpl:
<h5><a href="//{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}">{translate key='ReturnToPreviousPage'}</a>/h5>
By this:
<h5><a href="#" onclick="goBack()">{translate key='ReturnToPreviousPage'}</a></h5>

And you need to include this JavaScript code outside the div and before the foot, like this:

</div>

<script>
function goBack() {
 window.history.back();
}
</script>

{include file="javascript-includes.tpl"}
{include file='globalfooter.tpl'}

It works ok for me, tested on Firefox, Chrome and Edge browsers.
Hope it helps :)

Missing "required" field on forgot password form

When you ask for the forgot password form, the e-mail filed is not "reqired" and even if you do not write an email and clik send button, it gives you an ok message.

The solution is to change lines 38/39 with this:

<label class="forgot">{translate key='EmailAddress'}<br /> {textbox name="EMAIL" class="input" required="required" size="20" tabindex="10"}</label>

And for a better visual situation, cause the form is not centered, I put a centered div about line 30:
<div id="forgotbox"> <div align="center"> <form class="forgot" method="post" action="{$smarty.server.SCRIPT_NAME}">

And, of course, you must to close this centered div after form:
</form> </div>

That's how i like it.
Hope it helps.

Cannot access Web/admin/manage_reservations.php if database is MySQL 8

Accessing Web/admin/manage_reservations.php after logging in, if the database is MySQL 8 results in an unknown error.
After checking all logs, the error comes from the following piece of sql ( (ri.checkin_date IS NULL OR ri.checkin_date = '') ) that causes an 1525 error, Incorrect datetime

[Question] Authentication via LDAP fails

Hello,

I have a testinstallation of Booked Scheduler, with local mysql database for authentication that works.
I want to switch/connect to an existing and running LDAP server that already successfully serves other systems, but login via LDAP does not work. Always get "Unkown error"

I wonder where to find the log files for details?

I configued the ldap-configuration like explained here: https://www.bookedscheduler.com/help/ldap/
and switched to ldap in mx config.php

Any idea?

Issue connecting an external postgres DB

I have the following in my config file

 * Database configuration
 */
$conf['settings']['database']['type'] = 'pgsql';
$conf['settings']['database']['user'] = 'asipani';        // database user with permission to the booked database
$conf['settings']['database']['password'] = 'password!';
$conf['settings']['database']['hostspec'] = 'eng-testbed.asipani.io';        // ip, dns or named pipe
$conf['settings']['database']['name'] = 'testbed_devel';

However the homepage fails to load with these settings and eventually times out. Is there any way I can connect an external DB with a pre-defined schema of resources to booked?

view-schedule.php hide label -> privacy config (GDPR) not working from v2.8.2 again

Hi,
I'm really sad about notice EOL of booked, when I wanted to upgrade my installations for some non profit organisations. So I'm very happy finding this amazing project be forked :-) (congrats to @nkorbel too for his fantastic work and personal effort until here, THX a lot).

Here's the Issue:
In view-schedule.php the reservation label is showing (privacy data instead hiding it).
The popup is 'blocked' correctly.

This bug was already fixed in an older version by Nick. I used v2.7.7 at least, it was fine. After upgrading directly to v2.8.5.3 I got it again. Now I upgraded step by step and found the bug occours again with release change v2.8.1 -> v2.8.2 again.

Some of my configs I'm using might help:

$conf['settings']['schedule']['show.inaccessible.resources'] = 'true';  // whether or not resources that are inaccessible to the user are visible
$conf['settings']['schedule']['reservation.label'] = '{att7}: {title} - {name}';    		// format for what to display on the reservation slot label.  Available properties are: {name}, {title}, {description}, {email}, {phone}, {organization}, {position}, {startdate}, {enddate} {resourcename} {participants} {invitees} {reservationAttributes}. Custom attributes can be added using att with the attribute id. For example {att1}
$conf['settings']['schedule']['hide.blocked.periods'] = 'false';    	// if blocked periods should be hidden or shown


/**
 * Privacy configuration
 */
$conf['settings']['privacy']['view.schedules'] = 'true';       			// if unauthenticated users can view schedules
$conf['settings']['privacy']['view.reservations'] = 'false';    			// if unauthenticated users can view reservations
$conf['settings']['privacy']['hide.user.details'] = 'false';    			// if personal user details should be displayed to non-administrators
$conf['settings']['privacy']['hide.reservation.details'] = 'false';			// if reservation details should be displayed to non-administrators. options are true, false, current, future, past
$conf['settings']['privacy']['allow.guest.reservations'] = 'false';			// if reservations can be made by users without a Booked account, if true this overrides schedule and resource visibility

Especially not hiding sensitive personal user information (like name, email, phone etc.) in public installations is a problem.

Unfortunately my coding skills are not good enough to fix it myself. I tried unsuccessfully yet.

I'd appreciate someone could handle it or have an idea.
At this times the system became very helpful to comply with corona virus regulations for us.

Thanks a lot

PS: I'm not sure, couldn't test it really yet. I may found some signs for a similar privacy issue in the ical-integration with this set-up.

PHP 8 Support

It seems that the latest version does not support PHP 8, as it does not use namespaces in PHP, redeclaring system classnames instead (e.g. Attribute).

If anyone could solve this that would be great, otherwise, if I have time, I might look at it, but I'm not familiar with the codebase..

MySQL query error

Hello,

We've updated booked from version 2.7.2 to 2.8.5.3 and ran into an SQL query error. Al the database updates ran just fine. But the server we moved to has php version 7.4.15
There are several custom attributes configured in our Booked setup. But whenever you want to filter on those custom attributes (through Application Management > Resources > Select custom attribute > Click Filter), we run into an Unknown error / Return to the last page.

The php error log show the following:
ERROR default - Error executing MySQL query You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '16 ON a0.entity_id = a16.entity_id WHERE 1=1 AND ( a16.`custom_attribu' at line 8

The SQL DEBUG log:
DEBUG sql - MySql Query:
SELECT COUNT() as total FROM (SELECT r., s.admin_group_id as s_admin_group_id,
(SELECT GROUP_CONCAT(CONCAT(cav.custom_attribute_id, '=', cav.attribute_value) SEPARATOR "!sep!")
FROM custom_attribute_values cav WHERE cav.entity_id = r.resource_id AND cav.attribute_category = 4) as attribute_list,
(SELECT GROUP_CONCAT(rga.resource_group_id SEPARATOR "!sep!") FROM resource_group_assignment rga WHERE rga.resource_id = r.resource_id) AS group_list,
(SELECT GROUP_CONCAT(ri.image_name SEPARATOR "!sep!") FROM resource_images ri WHERE ri.resource_id = r.resource_id) AS image_list
FROM resources as r
INNER JOIN schedules as s ON r.schedule_id = s.schedule_id
WHERE 1=1 AND ( resource_id IN (SELECT a0.entity_id FROM custom_attribute_values a0 LEFT JOIN custom_attribute_values a16 ON a0.entity_id = a16.entity_id WHERE 1=1 AND ( a16.custom_attribute_id = '16' AND ( a16.attribute_value = 'Campus Brugge' ) ) ) ) ORDER BY COALESCE(r.sort_order,0), r.name) results;

As far as I can see there is a problem with the data string a16 since the 16 is not between the quotes.
It should be LEFT JOIN custom_attribute_values a16, I guess?
I've searched the Queries.php file but I cannot find the query.

Can somebody point us in the direction we need to look?

Customization on the schedule.php page

Hello,
it is possible to make sure that after saving, creating or deleting a reservation, pressing the cancel or close button, I go back to the calendar ok, but I can load the starting screen (the date chosen previously, even with an anchor), someone has done?

Thank you

database upgrade.sql scripts missing

Realizing that booked is getting SaaS I found this git repository. However here the upgrade.sql scripts are not available in database_schema\upgrades\ etc. which allow to upgrade the database to newer versions. Now I am searching for the upgrade possibility from 2.7 -> 2.8.

Is there any chance to upgrade the database from 2.7 to git-master?
(I can provide upgrade.sql for 2.0 to 2.7)

get_magic_quotes_gpc error on api authentication

Hi,

I am trying to use the API to fetch bookings. The authentication request returns an error.

Code: 8192
Message: Function get_magic_quotes_gpc() is deprecated

Trace
#0 https://mylocalpath.nl/lib/external/Slim/Http/Util.php(59): Slim\Slim::handleErrors(8192, 'Function get_ma...', 'https://mylocalpath.nl....', 59, Array)
#1 https://mylocalpath.nl/lib/external/Slim/Http/Request.php(242): Slim\Http\Util::stripSlashesIfMagicQuotes(Array)
#2 https://mylocalpath.nl/lib/external/Slim/Middleware/MethodOverride.php(88): Slim\Http\Request->post('_METHOD')
#3 https://mylocalpath.nl/lib/external/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
#4 https://mylocalpath.nl/lib/external/Slim/Slim.php(1167): Slim\Middleware\PrettyExceptions->call()
#5 https://mylocalpath.nl/Web/Services/index.php(67): Slim\Slim->run()
#6 {main}

Since get_magic_quotes_gpc is deprecated I would think this function should not be called?
How do I get the authentication with the API working?

purpose of call to sleep in the code?

We noticed that call to reservation update or create are slow, running some profiling I found the following line:
https://github.com/effgarces/BookedScheduler/blob/ce1e7906227d404fe4ec5aac775ded1781919b21/lib/Application/Reservation/ReservationHandler.php#L65
Does any of you have and idea why a random sleep was put on that line? 6 seconds is pretty long.

Searching for sleep in the repo, there are multiple instances, but this one is the worse/longer one.

Thanks

Show future reservations

Show future reservations on the dashboard to the resource/schedule administrators (only those relevant to them). At the moment only the administrator can see this block.

Add/Update Resource using apis seems not working.

I am trying to add/update resource using api but it is throwing some error :

There was an error executing your query\nCannot add or update a child row: a foreign key constraint fails (`raghubookedsched_booked`.`resources`, CONSTRAINT `resources_ibfk_1` FOREIGN KEY (`schedule_id`) REFERENCES `schedules` (`schedule_id`) ON DELETE CASCADE ON UPDATE CASCADE)

Trying to hit this API:

curl 'https://raghu.bookedscheduler.com/Web/Services/index.php/Resources/' \
  -H 'Connection: keep-alive' \
  -H 'X-Booked-UserId: 1' \
  -H 'Accept: application/json, text/plain, */*' \
  -H 'Content-Type: application/json' \
  -H 'X-Booked-SessionToken: a7c642cbf9eb55c253c6dxxxxxxxxxxxxx' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36' \
  -H 'sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="90", "Google Chrome";v="90"' \
  -H 'Origin: http://localhost:8100' \
  -H 'Sec-Fetch-Site: cross-site' \
  -H 'Sec-Fetch-Mode: cors' \
  -H 'Sec-Fetch-Dest: empty' \
  -H 'Referer: http://localhost:8100/' \
  -H 'Accept-Language: en-US,en;q=0.9' \
  --data-raw '{"name":"Raghu Chahar","requiresApproval":false,"allowMultiday":1,"scheduleId":2,"autoAssignPermissions":true,"sortOrder":1,"requiresCheckIn":true}' \
  --compressed

Is there any issue in setting up mysql table configurations

CAS configuration mispelled, logout failure

When using CAS plugin, logout is impossible.

File plugins/Authentication/CAS/CAS.config.dist.php contains a mispell :
$conf['settings']['cas_logout_servers'] = ''; // Comma separated list of servers to use for logout. Leave blank to not use cas logout servers

Setting name should be separated by points, not underscores :
$conf['settings']['cas.logout.servers'] = ''; // Comma separated list of servers to use for logout. Leave blank to not use cas logout servers

Error populating data from script database_schema/create-data.sql

While running the script database_schema/create-data.sql it tries to do the following insert:

insert into layouts values (1, 'America/New_York', 0);

However per the relevant schema of the table layouts that was created from the script atabase_schema/create-schema.sql (as shown below) there are only two columns and the script fails.

DROP TABLE IF EXISTS layouts; CREATE TABLE layouts(layout_idmediumint(8) unsigned NOT NULL auto_increment,timezone varchar(50) NOT NULL, PRIMARY KEY (layout_id) ) ENGINE=InnoDB DEFAULT CHARACTER SET utf8;

the insert statement should be changed as follows in order or it to work:

insert into layouts values (1, 'America/New_York');

Escape problem in tpl/Reservation/pdf.tpl

Hello there,

First of all, a big thanks for this repository! It's relly usefull since the sourceforge is gone...

We updated our booked with release 2.8.5.2, and found an issue with french language.

In tpl/Reservation/pdf.tpl, line 90, there is [{ content: '{translate key=RepeatUntilPrompt}', styles: { fontStyle: 'bold'}},

Problem is, in french the "RepeatUntilPrompt" label is "Jusqu'au", so we ended up with a syntax error.

I fixed it by replacing the line with: [{ content: '{{translate key='RepeatUntilPrompt'}|escape('javascript')', styles: { fontStyle: 'bold'}},

If you need i could make a PR, right now i don't have the time but let me know!

Create Reservation not possible

After updating from 2.7.* to 2.8.5.3 it is not possible to create reservations anymore.
WebInspector shows a parsing error:
Bildschirmfoto 2021-06-04 um 10 09 47

reservation.php is rendered with a warning of a pdf library:
Bildschirmfoto 2021-06-04 um 10 12 10

this results in bad html where it is not possible to click the "Create" Button to create the reservation

Ordering customers do not works when click on head fields

Hi,
On manage_users.php, when you list customers and need to order them using head fields, it works the fist time you click on any head field, but if you then try to click on any head field again to reorder, then it does not work and returns an 403 server error.

gitter chat

Hey I've set up a Gitter.im Chatroom so we mustn't talk about small tweaks / strategy / whatever on GitHub Issues and pull requests.
I'd of course give @effgarces admin access to the room.
Would be awesome If you'd add it to the Readme.md

Also have a look at my fork for additional documentation in /doc.

Gitter

https://gitter.im/bookedscheduler

Ability to run multiple plugins in sequence

Allow for the ability to run multiple plugins, even if a limited number, per type of plugin. Useful, for instance for pre-reservation plugins that add additional rules before a user create reservation.

privacy - scheduler show label details without ressource permissions

Hi all,
unfortunately I found another bug similar to #25 where @effgarces gratefully took some effort in.
I tried to find the issue in SlotLabelFactory.php but for me it seems the resource permissions receive no attention at all.

Issue
When self registered user login without any permissions, the user can not do new bookings etc. BUT get shown existing bookings with all details (Names, e-mail, participants etc.). Actually the user is only member of a default group which has no rights at all.
By resource permissions the default group has no rights (no "view only", no "full access"). Removing the default group doesn't change the issue.
In my case new registered users should get the detailed view on the resources/ bookings only after authorization of an admin.

Environment

  • v2.8.5.3
  • self-registration = on
  • auto-add default user-group with no permissions (removing all group memberships without any permissions doesn't matter)
  • user has no personal rights
  • it does not matter if resources public (calendar abo) ist activated or not
/**
 * Privacy configuration
 */
$conf['settings']['privacy']['view.schedules'] = 'true';       			// if unauthenticated users can view schedules
$conf['settings']['privacy']['view.reservations'] = 'false';    			// if unauthenticated users can view reservations
$conf['settings']['privacy']['hide.user.details'] = 'false';    			// if personal user details should be displayed to non-administrators
$conf['settings']['privacy']['hide.reservation.details'] = 'false';			// if reservation details should be displayed to non-administrators. options are true, false, current, future, past
$conf['settings']['privacy']['allow.guest.reservations'] = 'false';			// if reservations can be made by users without a Booked account, if true this overrides schedule and resource visibility

Thanks a lot for your support

Install not working and can not access register page

Hello,

I have followed a guide to install booked scheduler on CentOS7.
But at the last step, it tells me to navigate to: “http://yourdomain.com/Web/register.php”
This page does not load, I can not figure out what I have done wrong, can anyone help me out?

In the directory /etc/httpd/conf.d/booked.conf I have the following:

<VirtualHost *:80>
ServerName 192.168.230.66
DocumentRoot /var/www/html/booked
<Directory /var/www/html/booked>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted

ErrorLog /var/log/apache2/booked-error.log
CustomLog /var/log/apache2/booked-access.log combined

With ServerName I have the IP address of the server.
And in the directory /var/www/html/booked/config.php I have this:

Start {startdate}
End {enddate}
Organizer {name}
Description {description}
'; $conf['settings']['reservation.labels']['my.calendar'] = '{resourcename} {title}'; $conf['settings']['reservation.labels']['resource.calendar'] = '{name}'; $conf['settings']['reservation.labels']['reservation.popup'] = ''; // Format for what to display in reservation popups. Possible values: {name} {dates} {title} {resources} {participants} {accessories} {description} {attributes} {pending} {duration}. Custom attributes can be added using att with the attribute id. For example {att1} /** * Security header settings */ $conf['settings']['security']['security.headers'] = 'false'; // Enable the following options $conf['settings']['security']['security.strict-transport'] = 'true'; $conf['settings']['security']['security.x-frame'] = 'deny'; $conf['settings']['security']['security.x-xss'] = '1; mode=block'; $conf['settings']['security']['security.x-content-type'] = 'nosniff'; $conf['settings']['security']['security.content-security-policy'] = ""; // Requires careful tuning (know what your doing) /** * Google Analytics settings */ $conf['settings']['google.analytics']['tracking.id'] = ''; // if set, Google Analytics tracking code will be added to every page in Booked $conf['settings']['authentication']['allow.facebook.login'] = 'false'; $conf['settings']['authentication']['allow.google.login'] = 'false'; $conf['settings']['authentication']['required.email.domains'] = ''; $conf['settings']['authentication']['hide.booked.login.prompt'] = 'false'; $conf['settings']['authentication']['captcha.on.login'] = 'false'; /** * Credits */ $conf['settings']['credits']['enabled'] = 'false'; $conf['settings']['credits']['allow.purchase'] = 'false'; /** * Slack integration */ $conf['settings']['slack']['token'] = ''; /** * Tablet view */ $conf['settings']['tablet.view']['allow.guest.reservations'] = 'false'; $conf['settings']['tablet.view']['auto.suggest.emails'] = 'false'; /** * Registration */ $conf['settings']['registration']['require.phone'] = 'false'; $conf['settings']['registration']['require.position'] = 'false'; $conf['settings']['registration']['require.organization'] = 'false'; In the directory /var/www/html/booked, apache is the owner. Can anyone help me out what im doing wrong, since I dont understand why the register page does not load. Thanks in advance!

Branding

While there hasn't been much development, besides solving some bugs and a first maintenance release, it seems logical that the branding for this project should change.
I'm considering creating a new project based on booked, with a new name and image, all development would then occur under that new project, hopefully avoiding any kind of potential legal problem.
I'm open to sugestions, wether names, logos, etc, so feel free to share any ideas.

Login page keeps refreshing

Hello,

I have finished successfully the installation process and registered an admin user.
When I go to the login page (http://server_ip/booked/Web/index.php), the page keeps refreshing all the time.
I installed booked on Ubuntu server 16.04, using the version that i found here: https://github.com/effgarces/BookedScheduler

Any help would be much appreciated!

Regards.

Removing copyright and license

First I think it's great this repository exists to ensure the source code is available to all those who want to use and modify it. Seeing the recent changes that remove the copyright and open source license, however, make me now question the viability of this project and those wishing to "fork" and modify the work for their purpose.

In https://softwareengineering.stackexchange.com/questions/148146/open-source-code-with-no-license-can-i-fork-it , while not legal guidance, suggests a project without any license implies no permissions to modify, use or redistribute the work. In https://opensource.guide/legal/ it says:

Making your GitHub project public is not the same as licensing your project. Public projects are covered by GitHub’s Terms of Service, which allows others to view and fork your project, but your work otherwise comes with no permissions.
If you want others to use, distribute, modify, or contribute back to your project, you need to include an open source license. For example, someone cannot legally use any part of your GitHub project in their code, even if it’s public, unless you explicitly give them the right to do so.

With no license nobody technically has any rights to use, distribute or modify. Does Nick Korbel technically retain the copyright since he authored the original source code? Was there a discussion around removing the license and copyright?

Apostrophe in name prevents booking

This seems to be recent regression. In v2.8.5.3 (from here), user Aaron O'Sullivan is unable to create a booking as the "Create" button never accepts a click. Removing the ' from the Last Name resolves (ie. for Aaron OSullivan). Doesn't seem to be an issue in 2.8.5 (plain) we have running somewhere else.

API enhancement ideas [Future]

Hi @effgarces

,
First of all nice work saving the fork, I was using this repo purely as API ( no UI components, forked in early 2019) in my previous project. There are some enhancement ideas for the future if someone is interested.

  1. Delete multiple reservation series - payload can a comma-separated list of different series
  2. Deletion of non-existing series - returns successfully deleted, should return reservation not found [bug, if not fixed]
  3. Migration API - Support the creation of multiple reservation series via API, single request (bulkCreate) , so people can migrate an existing system to booked
  4. GetReservation - you can revisit the API , one of the timezones (either positive +0000 or negative -0000) don't return any result [bug]
  5. GetReservationBySeriesID API - New API to fetch multiple reservation series in a single API call
  6. LightWeightGetReservation API (new API) - API that return with a lightWeight response, developer incorporating the library should be able to select the desired fields in the response (I was using only 7 fields in my response), very effective for a system with a large no of reservation >100k , PHP tends to run out of memory with current getReservation API , and it will be very fast once this API is implemented

I hope these suggestions will help.

API documentation link : https://ameslaboratory.bookedscheduler.com/Web/Services/index.php
or /Web/Services/index.php

Attached a PDF copy just in case it got removed.
bookedSchedulerAPIDocumentation.pdf

Can't find /tpl_c in the repo

There is a step mentioned in the readme of booked schedular installation, where user has to change permission of /tpl_c, /tpl and /uploads folder. But I cant find out /tpl_c folder in this repo, please help me out.
Screen Shot 2021-04-29 at 7 32 02 PM

Minimal Setup using XAMPP + Windows 10

Hey,

I've been trying to get this project running using XAMPP and a Windows 10 machine, following the readme_installation.

I unzipped the the distribution and moved in to the XAMPP doc root (htdocs). Copied the config.dist.php and renamed to config.php and made sure the web server has write access, which it already has in Win10. Session.autostart is disabled.

When looking at the config.php, it seems the only thing I might need to change initially is the script.url, which I've done.
As I'm using XAMPP I created the DB using phpMyAdmin and then imported the full-install.sql which worked.
I've tried many variations, but no matter what I attempt, when opening the application in localhost, I always get errors as seen in the image below. (Note these errors also came before the database 'bookedscheduler' has even been created and filled out)
image

Is this a common error? Couldn't find anything along those lines in the Community Support Forum or in other Issues here.
Can anyone else reproduce this?
I'd like to use this Issue to later help other users in getting an easy initial setup running.

Greetings

Full deletion of old records

For GDPR compliance, it would be helpful if there would be a feature that allows to automatically delete old records from the database, meaning that they are not only set to be "invisible" but actually deleted.

Is such a feature in planning?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.