From 10426820d5240a348526e7ea3a29b311a514aad0 Mon Sep 17 00:00:00 2001 From: gtbu Date: Tue, 25 Feb 2025 13:53:40 +0100 Subject: [PATCH] temporaray redirection to github - Online-Themes and Online-Plugins Typesettersms.com is down. It had a download-api. The coding of the redirection to github with updates will take some time. Until then is now a direkt link to the repositories at github --- include/admin/Addon/Remote.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/include/admin/Addon/Remote.php b/include/admin/Addon/Remote.php index ac82ab2..a5f2ad2 100644 --- a/include/admin/Addon/Remote.php +++ b/include/admin/Addon/Remote.php @@ -34,25 +34,25 @@ class Remote extends \gp\admin\Addon\Install{ $this->searchPage = \gp\special\Search::ReqPage('page'); - //version specific search + // version specific search if( !isset($config['search_version']) || $config['search_version'] ){ $this->searchQuery .= '&ug='.rawurlencode(\gpversion); } if( !empty($_GET['q']) ){ $this->searchQuery .= '&q='.rawurlencode($_GET['q']); - } + } - $this->SearchOrder(); // \gp\Addon\Install + $this->SearchOrder(); // \gp\Addon\Install ; git: /blob/main/ https://github.com/gtbu/Online-Plugins/blob/main/plugin.zip - $slug = 'Plugins'; + $slug = 'Online-Plugins'; if( $this->config_index == 'themes' ){ - $slug = 'Themes'; + $slug = 'Online-Themes'; } - $src = \addon_browse_path.'/'.$slug.'?cmd=remote&format=json&'.$this->searchQuery.'&page='.$this->searchPage; // format=json added 4.6b3 - - $this->ShowHeader(); // \gp\Addon\Install + $src = \CMS_READABLE_DOMAIN.'/'.$slug.'?cmd=remote&format=json&'.$this->searchQuery.'&page='.$this->searchPage; // format=json added 4.6b3 + $this->ShowHeader(); + $data = $this->RemoteBrowseResponse($src); if( $data === false ){ return; @@ -288,11 +288,11 @@ class Remote extends \gp\admin\Addon\Install{ * */ public function ViewOnline(){ - $slug = 'Plugins'; + $slug = 'Online-Plugins'; if( $this->config_index == 'themes' ){ - $slug = 'Themes'; + $slug = 'Online-Themes'; } - $url = \addon_browse_path.'/'.$slug.'?'.$this->searchQuery.'&page='.$this->searchPage; - echo '

View search results on '.CMS_READABLE_DOMAIN.'

'; + $url = \CMS_READABLE_DOMAIN.'/'.$slug.'?'.$this->searchQuery.'&page='.$this->searchPage; + echo '

View search results on Github

'; } }