Skip to content
Snippets Groups Projects
Commit e1a78632 authored by Patrick Schmalstig's avatar Patrick Schmalstig
Browse files

CMS_REPOS_URL symbol

parent 1a118548
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ The [tt]var[/tt] meta-filesystem is perhaps the most interesting because if Webd
WebDAV is a web-based-filesystem protocol that most operating systems support (theoretically). This lets you access the repository as a normal folder on your computer. Composr uses a PHP WebDAV-library called SabreDAV to bind Commandr-fs to WebDAV. To get this, you'll need to install the WebDAV non-bundled addon.
[box="Deprecation notice"]
Unfortunately, SabreDAV is not maintained any longer and does not work on PHP 8 or above. It is currently beyond the Core Development Team's resources to maintain or fork SabreDAV ourselves or to implement an alternative library. As such, WebDAV functionality is all but broken in Composr v11. If you would like to help us change that, please consider [page="_SEARCH:tut_software_feedback"]sponsoring a developer[/page] to do so, or do it yourself and make a merge request on our [url="GitLab"]https://gitlab.com/composr-foundation/composr[/url].
Unfortunately, SabreDAV is not maintained any longer and does not work on PHP 8 or above. It is currently beyond the Core Development Team's resources to maintain or fork SabreDAV ourselves or to implement an alternative library. As such, WebDAV functionality is all but broken in Composr v11. If you would like to help us change that, please consider [page="_SEARCH:tut_software_feedback"]sponsoring a developer[/page] to do so, or do it yourself and make a merge request on our [url="GitLab"]{$CMS_REPOS_URL}[/url].
[/box]
Be aware that some operating systems do not support WebDAV very well in practice. The SabreDAV team have excellent documentation illustrating issues that are outside our control, and in most cases third-party software can be used for a better experience:
......
......@@ -253,6 +253,7 @@ This addon does not contain the homesite install code and the overall site and t
'uploads/website_specific/cms_homesite/upgrades/sample_data/index.html',
'uploads/website_specific/cms_homesite/upgrades/tar_build/index.html',
'uploads/website_specific/cms_homesite/upgrades/tars/index.html',
'sources_custom/hooks/systems/symbols/CMS_REPOS_URL.php',
];
}
}
<?php /*
Composr
Copyright (c) Christopher Graham, 2004-2024
See docs/LICENSE.md for full licensing information.
*/
/**
* @license http://opensource.org/licenses/cpal_1.0 Common Public Attribution License
* @copyright Christopher Graham
* @package cms_homesite
*/
/**
* Hook class.
*/
class Hook_symbol_CMS_REPOS_URL
{
/**
* Run function for symbol hooks. Searches for tasks to perform.
*
* @param array $param Symbol parameters
* @return string Result
*/
public function run(array $param) : string
{
if (!addon_installed('cms_homesite')) {
return '';
}
require_code('version');
return CMS_REPOS_URL;
}
}
......@@ -215,8 +215,6 @@ class ComposrPlugin extends MantisPlugin {
return $ret;
}
// TODO: bug_sponsorship_list_view_inc; convert to using points escrow
// Composr specific welcome message
if (is_page_name( 'my_view_page.php' )) {
require_api('lang_api.php');
......@@ -722,10 +720,9 @@ class ComposrPlugin extends MantisPlugin {
// TODO: antispam measure that is more effective than renaming bugnote_text (does not stop paid human spammers)
// TODO: Prevent guests from editing guest issues
// TODO: Make bug_sponsorship_list_view_inc.php nicer; MantisBT has it all wonky and does not conform with other widget layouts
/**
* Retrieve the contents of a remote URL.
* Retrieve the contents of a remote URL (better than MantisBT's built-in method).
* First tries using built-in PHP modules (OpenSSL and cURL), then attempts
* system call as last resort.
* @param string $p_url The URL to fetch.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment