{"id":2052,"date":"2019-01-01T11:42:01","date_gmt":"2019-01-01T11:42:01","guid":{"rendered":"http:\/\/www.softaculous.com\/blog\/?post_type=docs&#038;p=2052"},"modified":"2024-01-22T09:42:15","modified_gmt":"2024-01-22T09:42:15","slug":"list-scripts-on-your-website","status":"publish","type":"docs","link":"https:\/\/www.softaculous.com\/blog\/docs\/developers\/extending-softaculous\/list-scripts-on-your-website\/","title":{"rendered":"List scripts on your website"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you are a Web Host using Softaculous, you would like to list the ever changing list of Scripts in Softaculous.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Detailed Listing<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you want detailed list of scripts then you just need to install this package\u00a0:\u00a0<a href=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/01\/ShowScripts.zip\" target=\"_blank\" rel=\"noreferrer noopener\">File:ShowScripts.zip<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If PHP is running as a user on your server then you need not to worry about any permission.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If PHP is running as <strong>nobody<\/strong> or <strong>apache<\/strong> user then generally files require 0644 and folder 0755 permission and scripts.php and updated.txt in the package requires writable i.e. 0777 permission.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"http:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2019\/04\/list5-1024x640.png\" alt=\"\" class=\"wp-image-3194\" srcset=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2019\/04\/list5-1024x640.png 1024w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2019\/04\/list5-300x187.png 300w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2019\/04\/list5-768x480.png 768w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2019\/04\/list5-1200x749.png 1200w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2019\/04\/list5.png 1329w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"707\" src=\"http:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2019\/04\/list7-1024x707.png\" alt=\"\" class=\"wp-image-3198\" srcset=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2019\/04\/list7-1024x707.png 1024w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2019\/04\/list7-300x207.png 300w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2019\/04\/list7-768x530.png 768w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2019\/04\/list7-1200x828.png 1200w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2019\/04\/list7.png 1334w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"620\" src=\"http:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2019\/04\/list11-1024x620.png\" alt=\"\" class=\"wp-image-3196\" srcset=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2019\/04\/list11-1024x620.png 1024w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2019\/04\/list11-300x182.png 300w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2019\/04\/list11-768x465.png 768w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2019\/04\/list11-1200x727.png 1200w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2019\/04\/list11.png 1327w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Simple<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">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&nbsp;: <a href=\"https:\/\/api.softaculous.com\/scripts.php?in=serialize\">https:\/\/api.softaculous.com\/scripts.php?in=serialize<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It contains a serialized PHP array of the scripts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you would also like to show the Logos on your website you can use the following URL&nbsp;:&nbsp;<a href=\"https:\/\/images.softaculous.com\/softimages\/SCRIPTID__logo.gif\">https:\/\/images.softaculous.com\/softimages\/SCRIPTID__logo.gif<\/a>&nbsp;<br>e.g.&nbsp;<a href=\"https:\/\/images.softaculous.com\/softimages\/26__logo.gif\">https:\/\/images.softaculous.com\/softimages\/26__logo.gif<\/a>&nbsp;is the WordPress logo<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Sample PHP code<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The following Sample Code will show the logos and the Links to the respective demos as well.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">&lt;?php\n \ndefine('SOFTACULOUS', 1);\n\n$scripts = file_get_contents('https:\/\/api.softaculous.com\/scripts.php?in=serialize');\n$scripts = unserialize($scripts);\n \nforeach($scripts as $sid =&gt; $softw){\n \n\techo '&lt;a href=\"https:\/\/www.softaculous.com\/demos\/'.str_replace(' ', '_', $softw['name']).'\" target=\"_blank\" title=\"'.$softw['name'].'\"&gt;&lt;img src=\"https:\/\/images.softaculous.com\/softimages\/'.$sid.'__logo.gif\" alt=\"\" style=\"margin:15px;\" \/&gt;&lt;\/a&gt;';\n \n}\n\n?&gt;<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Category Wise Listing<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The following Sample Code will show the logos and the Links to the respective demos grouped by Categories.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">&lt;?php\n \ndefine('SOFTACULOUS', 1);\n\n$scripts = file_get_contents('https:\/\/api.softaculous.com\/scripts.php?in=serialize');\n$scripts = unserialize($scripts);\n\nforeach($scripts as $id =&gt; $soft){\n\t\t\n\t\t\/\/ If its empty we assume its PHP\n\t\tif(empty($soft['type'])){\t\t\t\n\t\t\t$soft['type'] = 'php';\n\t\t}\n\t\t\n\t\t\/\/ PHP Sripts - Backward Compatibility Variable\n\t\tif($soft['type'] == 'php'){\t\t\t\n\t\t\t$catwise[$soft['cat']][$id] = $soft;\n\t\t}\n\t\t\n\t\t$allcatwise[$soft['type']][$soft['cat']][$id] = $soft;\n\t}\n\t\n\n\tforeach($allcatwise['php'] as $cat =&gt; $scripts){\n\n\t echo '&lt;div&gt;&lt;a href=\"#\" title=\"'.$cat.'\"&gt;&lt;img src=\"https:\/\/images.softaculous.com\/cats\/php_'.$cat.'.gif\" alt=\"\" \/&gt;&lt;\/a&gt;&lt;\/div&gt;';\n\t \n        foreach($scripts as $sid =&gt; $softw){\n\t\t\n\t     \techo '&lt;a href=\"https:\/\/www.softaculous.com\/demos\/'.str_replace(' ', '_', $softw['name']).'\" target=\"_blank\" title=\"'.$softw['name'].'\"&gt;&lt;img src=\"https:\/\/images.softaculous.com\/softimages\/'.$sid.'__logo.gif\" alt=\"\" style=\"margin:15px;\" \/&gt;&lt;\/a&gt;';\n        }\n\t}\n?&gt;<\/pre>\n","protected":false},"featured_media":0,"parent":1691,"menu_order":6,"comment_status":"closed","ping_status":"closed","template":"","docs_category":[],"class_list":["post-2052","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2052","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/comments?post=2052"}],"version-history":[{"count":17,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2052\/revisions"}],"predecessor-version":[{"id":5532,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2052\/revisions\/5532"}],"up":[{"embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/1691"}],"wp:attachment":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/media?parent=2052"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs_category?post=2052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}