From 1e144c2505a3e41dd84a5fc2146182624a83d1b6 Mon Sep 17 00:00:00 2001 From: josh Date: Fri, 25 Mar 2016 17:26:07 -0600 Subject: [PATCH] add ViewOnline() --- include/admin/Addon/Install.php | 11 ++++++++++- include/tool/RemoteGet.php | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/include/admin/Addon/Install.php b/include/admin/Addon/Install.php index ae2ea78e9..ec98e7bb6 100644 --- a/include/admin/Addon/Install.php +++ b/include/admin/Addon/Install.php @@ -229,8 +229,15 @@ public function VersionOption(){ } echo '

'; + $this->ViewOnline(); + } + - //view on typesettercms.com + /** + * Link to view search resuls on typesettercms.com + * + */ + public function ViewOnline(){ $slug = 'Plugins'; if( $this->config_index == 'themes' ){ $slug = 'Themes'; @@ -355,6 +362,7 @@ public function RemoteBrowseResponse($src){ $data = $this->ParseResponse($result); if( $data === false ){ + $this->ViewOnline(); return false; } @@ -400,6 +408,7 @@ protected function ParseResponse($result){ $debug['Two'] = substr($result,0,2); $debug['Twotr'] = substr(trim($result),0,2); echo '

'.\gp\tool\RemoteGet::Debug('Sorry, data not fetched',$debug).'

'; + return false; } return $data; diff --git a/include/tool/RemoteGet.php b/include/tool/RemoteGet.php index c34c3586b..dc6de1bb2 100644 --- a/include/tool/RemoteGet.php +++ b/include/tool/RemoteGet.php @@ -53,6 +53,8 @@ public static function Supported($method){ return false; } + return false; + switch($method){ case 'fsockopen':