List scripts on your website

From Softaculous Wiki
Jump to: navigation, search

If you are a Web Host using Softaculous, you would like to list the ever changing list of Scripts in Softaculous.

Detailed Listing

If you want detailed list of scripts then you just need to install this package : File:ShowScripts.zip

If suPHP is running on your server then you need not to worry about any permission.

If not then generally files require 0644 and folder 0755 permission.

In package scripts.php and updated.txt requires 0777 permission.





Detaillist1.png



Detaillist2.jpg



Detaillist3.jpg



Simple

Its very simple to do that as Softaculous provides the list of scripts which is updated every now and then. You can access that list from the following URL : https://api.softaculous.com/scripts.php?in=serialize

It contains a serialized PHP array of the scripts.

If you would also like to show the Logos on your website you can use the following URL : https://www.softaculous.com/images/softimages/SCRIPTID_logo.gif
e.g. https://www.softaculous.com/images/softimages/26_logo.gif is the WordPress logo

Sample PHP code

The following Sample Code will show the logos and the Links to the respective demos as well.

<?php
 
define('SOFTACULOUS', 1);

$scripts = file_get_contents('https://api.softaculous.com/scripts.php?in=serialize');
$scripts = unserialize($scripts);
 
foreach($scripts as $sid => $softw){
 
	echo '<a href="https://www.softaculous.com/demos/'.str_replace(' ', '_', $softw['name']).'" target="_blank" title="'.$softw['name'].'"><img src="https://www.softaculous.com/images/softimages/'.$sid.'__logo.gif" alt="" style="margin:15px;" /></a>';
 
}

?>

Category Wise Listing

The following Sample Code will show the logos and the Links to the respective demos grouped by Categories.

<?php
 
define('SOFTACULOUS', 1);

$scripts = file_get_contents('https://api.softaculous.com/scripts.php?in=serialize');
$scripts = unserialize($scripts);

foreach($scripts as $id => $soft){
		
		// If its empty we assume its PHP
		if(empty($soft['type'])){			
			$soft['type'] = 'php';
		}
		
		// PHP Sripts - Backward Compatibility Variable
		if($soft['type'] == 'php'){			
			$catwise[$soft['cat']][$id] = $soft;
		}
		
		$allcatwise[$soft['type']][$soft['cat']][$id] = $soft;
	}
	

	foreach($allcatwise['php'] as $cat => $scripts){

	 echo '<div><a href="#" title="'.$cat.'"><img src="https://www.softaculous.com/images/cats/php_'.$cat.'.gif" alt="" /></a></div>';
	 
        foreach($scripts as $sid => $softw){
		
	     	echo '<a href="https://www.softaculous.com/demos/'.str_replace(' ', '_', $softw['name']).'" target="_blank" title="'.$softw['name'].'"><img src="https://www.softaculous.com/images/softimages/'.$sid.'__logo.gif" alt="" style="margin:15px;" /></a>';
        }
	}
?>