X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=planets%2Fplanets.php;h=0df91d7c3aa2ea60250ff9971cff9deb3b3dfa4f;hb=58904ddb5eddebb57858ae410221fb52d062a55b;hp=62ba675b747713694936d1d8c4c53086fd4e087e;hpb=d06df8bed045983ef2ad7918905dbf714ba2739a;p=friendica-addons.git diff --git a/planets/planets.php b/planets/planets.php index 62ba675b..0df91d7c 100755 --- a/planets/planets.php +++ b/planets/planets.php @@ -1,24 +1,10 @@ - * - * - * - * - * Addons are registered with the system in the - * .htconfig.php file. - * - * $a->config['system']['addon'] = 'plugin1,plugin2,etc.'; - * - * When registration is detected, the system calls the plugin - * name_install() function, located in 'addon/name/name.php', - * where 'name' is the name of the addon. - * If the addon is removed from the configuration list, the - * system will call the name_uninstall() function. - * + * Author: Tony Baldwin */ @@ -107,14 +93,7 @@ function planets_post_hook($a, &$item) { */ $planets = array('Alderaan','Tatooine','Dagoba','Polis Massa','Coruscant','Hoth','Endor','Kamino','Rattatak','Mustafar','Iego','Geonosis','Felucia','Dantooine','Ansion','Artaru','Bespin','Boz Pity','Cato Neimoidia','Christophsis','Kashyyk','Kessel','Malastare','Mygeeto','Nar Shaddaa','Ord Mantell','Saleucami','Subterrel','Death Star','Teth','Tund','Utapau','Yavin'); -# $zones = timezone_identifiers_list(); -# foreach($zones as $zone) { -# if((strpos($zone,'/')) && (! stristr($zone,'US/')) && (! stristr($zone,'Etc/'))) -# $planets[] = str_replace('_', ' ',substr($zone,strpos($zone,'/') + 1)); -# } -# -# if(! count($planets)) -# return; + $planet = array_rand($planets,1); $item['location'] = $planets[$planet];