Skip to content

Commit

Permalink
add ViewOnline()
Browse files Browse the repository at this point in the history
  • Loading branch information
oyejorge committed Mar 25, 2016
1 parent ecc0f53 commit 1e144c2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 10 additions & 1 deletion include/admin/Addon/Install.php
Expand Up @@ -229,8 +229,15 @@ public function VersionOption(){
}
echo '</p>';

$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';
Expand Down Expand Up @@ -355,6 +362,7 @@ public function RemoteBrowseResponse($src){
$data = $this->ParseResponse($result);

if( $data === false ){
$this->ViewOnline();
return false;
}

Expand Down Expand Up @@ -400,6 +408,7 @@ protected function ParseResponse($result){
$debug['Two'] = substr($result,0,2);
$debug['Twotr'] = substr(trim($result),0,2);
echo '<p>'.\gp\tool\RemoteGet::Debug('Sorry, data not fetched',$debug).'</p>';
return false;
}

return $data;
Expand Down
2 changes: 2 additions & 0 deletions include/tool/RemoteGet.php
Expand Up @@ -53,6 +53,8 @@ public static function Supported($method){
return false;
}

return false;

switch($method){

case 'fsockopen':
Expand Down

0 comments on commit 1e144c2

Please sign in to comment.