-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #529 from WoollyinWalesIT/nightly
Nightly
- Loading branch information
Showing
1,139 changed files
with
13,612 additions
and
12,358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,29 @@ | ||
# Jomres | ||
# Jomres Core - Online Booking Engine for WordPress and Joomla | ||
|
||
Jomres is the only PHP Online Booking engine with PMS features and built-in REST API for the Joomla and WordPress Content Management Systems. | ||
Jomres is the only Joomla & WordPress Online Booking engine with PMS features and built-in REST API. | ||
|
||
It is 100% Open Source. | ||
|
||
Best installed through the CMS's install from web feature. | ||
Install it through the CMS's install from web feature, just search for Jomres and follow the onscreen instructions. Do not download the zip file in the Releases section and attempt to install it, it won't work, you *must* use the install from web process in the CMS. | ||
|
||
[Installation Guide ](https://www.jomres.net/documentation) | ||
|
||
|
||
For more information, please see https://www.jomres.net | ||
|
||
Most recent changes : See the [Nightly commits list](https://github.com/WoollyinWalesIT/jomres/commits/nightly) | ||
|
||
Tech : PHP/Mysql/Apache/JavaScript | ||
|
||
## Mature | ||
|
||
Started in 2005 and consistently maintained ever since Jomres has evolved to be a powerful online booking engine for both WordPress and Joomla. | ||
|
||
## Powerful | ||
|
||
Every website wants to be a little different, every designer and developer looks at Booking.com and AirBNB and thinks "I can do better", and rightly so. Jomres has been designed from the ground up to be flexible so that designers and developers can build the way they want. | ||
|
||
Using it's own plugin system code can be inserted and overridden easily to change how it works allowing developers to customise it's functionality to suit their own requirements. | ||
|
||
## Free | ||
|
||
There's no hook or catch. This Core system is available completely free. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* | ||
* @author Vince Wooll <[email protected]> | ||
* | ||
* @version Jomres 10.5.5 | ||
* @version Jomres 10.6.0 | ||
* | ||
* @copyright 2005-2022 Vince Wooll | ||
* Jomres (tm) PHP, CSS & Javascript files are released under both MIT and GPL2 licenses. This means that you can choose the license that best suits your project, and use it accordingly | ||
|
@@ -113,7 +113,7 @@ | |
if (!AJAXCALL) { | ||
$pageoutput = array(); | ||
$output = array(); | ||
|
||
//generate the cpanel menu | ||
$MiniComponents->specificEvent('19997', 'menu', array()); | ||
$output[ 'CONTROL_PANEL_MENU' ] = $MiniComponents->miniComponentData[ '19997' ][ 'menu' ]; | ||
|
@@ -137,13 +137,6 @@ | |
//bootstrap | ||
$output[ 'USING_BOOTSTRAP' ] = 'true'; | ||
|
||
|
||
// Review message | ||
$output['REVIEW_REQUEST'] = $MiniComponents->specificEvent('16000', 'show_reviews_message', array('output_now' => false)); | ||
|
||
// Feedback message | ||
$output['FEEDBACK_REQUEST'] = $MiniComponents->specificEvent('16000', 'show_feedback_message', array('output_now' => false)); | ||
|
||
//output top area | ||
$pageoutput[ ] = $output; | ||
$tmpl = new patTemplate(); | ||
|
@@ -173,26 +166,6 @@ | |
} | ||
} | ||
|
||
if ($jrConfig['development_production'] != 'development') { | ||
if ( | ||
get_showtime('task') != 'save_site_settings' && | ||
get_showtime('task') != 'site_settings' && | ||
get_showtime('task') != 'showplugins' && | ||
get_showtime('task') != 'addplugin' && | ||
get_showtime('task') != 'removeplugin' && | ||
get_showtime('task') != 'updates' | ||
) { | ||
//jomres plugin update check | ||
$output['PLUGIN_UPDATES_AVAILABLE'] = $MiniComponents->specificEvent('16000', 'jomres_plugin_update_check', array('output_now' => true)); | ||
if ($output['PLUGIN_UPDATES_AVAILABLE'] != false) { | ||
return; | ||
} | ||
} | ||
} | ||
|
||
|
||
|
||
|
||
//output bottom area | ||
if (!AJAXCALL) { | ||
// $pageoutput[] = $output; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* | ||
* @author Vince Wooll <[email protected]> | ||
* | ||
* @version Jomres 10.5.5 | ||
* @version Jomres 10.6.0 | ||
* | ||
* @copyright 2005-2022 Vince Wooll | ||
* Jomres (tm) PHP, CSS & Javascript files are released under both MIT and GPL2 licenses. This means that you can choose the license that best suits your project, and use it accordingly | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* | ||
* @author Vince Wooll <[email protected]> | ||
* | ||
* @version Jomres 10.5.5 | ||
* @version Jomres 10.6.0 | ||
* | ||
* @copyright 2005-2022 Vince Wooll | ||
* Jomres (tm) PHP, CSS & Javascript files are released under both MIT and GPL2 licenses. This means that you can choose the license that best suits your project, and use it accordingly | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* | ||
* @author Vince Wooll <[email protected]> | ||
* | ||
* @version Jomres 10.5.5 | ||
* @version Jomres 10.6.0 | ||
* | ||
* @copyright 2005-2022 Vince Wooll | ||
* Jomres (tm) PHP, CSS & Javascript files are released under both MIT and GPL2 licenses. This means that you can choose the license that best suits your project, and use it accordingly | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* | ||
* @author Vince Wooll <[email protected]> | ||
* | ||
* @version Jomres 10.5.5 | ||
* @version Jomres 10.6.0 | ||
* | ||
* @copyright 2005-2022 Vince Wooll | ||
* Jomres (tm) PHP, CSS & Javascript files are released under both MIT and GPL2 licenses. This means that you can choose the license that best suits your project, and use it accordingly | ||
|
@@ -127,24 +127,29 @@ public static function log_message($message, $channel = 'Core', $level = 'DEBUG' | |
$stream_handler = new StreamHandler($jrConfig['log_path'].$log_file, Logger::DEBUG); | ||
$stream_handler->setFormatter($formatter); | ||
|
||
$timezone = new \DateTimeZone(date_default_timezone_get() ?: 'UTC'); | ||
if ( defined('AJAXCALL') && !AJAXCALL && !defined("API_STARTED") ) { | ||
if ($jrConfig['development_production'] == 'development' ) { | ||
|
||
$logger = new Logger($channel); | ||
$logger->setTimezone($timezone); | ||
$logger->pushProcessor(new \Monolog\Processor\WebProcessor); // pushing the web server preprocessor | ||
$browserHandler = new \Monolog\Handler\BrowserConsoleHandler(\Monolog\Logger::DEBUG); | ||
$logger->pushHandler($browserHandler); | ||
$logger->addDebug($message, array ("info_dump" => $further_info_dump) ); | ||
$logger->debug($message); | ||
} | ||
} | ||
|
||
$message = $username.' ~~ '.$message.' ~~ '.session_id().' ~~ '.$url; | ||
|
||
$loggerTimeFormat = "Y-m-d H:i:s.u"; | ||
$loggerFormat = "[%datetime%] %level_name% %message% %context% %extra%\n"; | ||
$formatter = new LineFormatter($loggerFormat, $loggerTimeFormat); | ||
|
||
$logger = new Logger($channel); | ||
$logger->setTimezone($timezone); | ||
|
||
$logger->useMicrosecondTimestamps(true); | ||
$logger->pushProcessor(new \Monolog\Processor\WebProcessor()); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* | ||
* @author Vince Wooll <[email protected]> | ||
* | ||
* @version Jomres 10.5.5 | ||
* @version Jomres 10.6.0 | ||
* | ||
* @copyright 2005-2022 Vince Wooll | ||
* Jomres (tm) PHP, CSS & Javascript files are released under both MIT and GPL2 licenses. This means that you can choose the license that best suits your project, and use it accordingly | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* | ||
* @author Vince Wooll <[email protected]> | ||
* | ||
* @version Jomres 10.5.5 | ||
* @version Jomres 10.6.0 | ||
* | ||
* @copyright 2005-2022 Vince Wooll | ||
* Jomres (tm) PHP, CSS & Javascript files are released under both MIT and GPL2 licenses. This means that you can choose the license that best suits your project, and use it accordingly | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* | ||
* @author Vince Wooll <[email protected]> | ||
* | ||
* @version Jomres 10.5.5 | ||
* @version Jomres 10.6.0 | ||
* | ||
* @copyright 2005-2022 Vince Wooll | ||
* Jomres (tm) PHP, CSS & Javascript files are released under both MIT and GPL2 licenses. This means that you can choose the license that best suits your project, and use it accordingly. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* | ||
* @author Vince Wooll <[email protected]> | ||
* | ||
* @version Jomres 10.5.5 | ||
* @version Jomres 10.6.0 | ||
* | ||
* @copyright 2005-2022 Vince Wooll | ||
* | ||
|
@@ -118,15 +118,15 @@ | |
$_POST['client_id'] = ''; | ||
} | ||
|
||
$client_id = filter_var($_POST['client_id'], FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH); | ||
$client_id = filter_var($_POST['client_id'], FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_FLAG_STRIP_HIGH); | ||
logging::log_message('Received a token request from '.$client_id, 'API', 'INFO'); | ||
require_once __DIR__.'/oauth/token.php'; | ||
} else if (isset($_GET['client_id'])) { | ||
$client_id = filter_var($_GET['client_id'], FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH); | ||
$client_id = filter_var($_GET['client_id'], FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_FLAG_STRIP_HIGH); | ||
logging::log_message('Received a token request from '.$client_id, 'API', 'INFO'); | ||
require_once __DIR__.'/oauth/token.php'; | ||
} else { | ||
$request = filter_var($_SERVER['REQUEST_URI'], FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH); | ||
$request = filter_var($_SERVER['REQUEST_URI'], FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_FLAG_STRIP_HIGH); | ||
logging::log_message(' Received a token which sent '.$request, 'API', 'INFO'); | ||
require_once __DIR__.'/oauth/resource.php'; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* | ||
* @author Vince Wooll <[email protected]> | ||
* | ||
* @version Jomres 10.5.5 | ||
* @version Jomres 10.6.0 | ||
* | ||
* @copyright 2005-2022 Vince Wooll | ||
* Jomres (tm) PHP, CSS & Javascript files are released under both MIT and GPL2 licenses. This means that you can choose the license that best suits your project, and use it accordingly | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* | ||
* @author Vince Wooll <[email protected]> | ||
* | ||
* @version Jomres 10.5.5 | ||
* @version Jomres 10.6.0 | ||
* | ||
* @copyright 2005-2022 Vince Wooll | ||
* Jomres (tm) PHP, CSS & Javascript files are released under both MIT and GPL2 licenses. This means that you can choose the license that best suits your project, and use it accordingly | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* | ||
* @author Vince Wooll <[email protected]> | ||
* | ||
* @version Jomres 10.5.5 | ||
* @version Jomres 10.6.0 | ||
* | ||
* @copyright 2005-2022 Vince Wooll | ||
* Jomres (tm) PHP, CSS & Javascript files are released under both MIT and GPL2 licenses. This means that you can choose the license that best suits your project, and use it accordingly | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* | ||
* @author Vince Wooll <[email protected]> | ||
* | ||
* @version Jomres 10.5.5 | ||
* @version Jomres 10.6.0 | ||
* | ||
* @copyright 2005-2022 Vince Wooll | ||
* Jomres (tm) PHP, CSS & Javascript files are released under both MIT and GPL2 licenses. This means that you can choose the license that best suits your project, and use it accordingly | ||
|
Oops, something went wrong.