mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
added admin interface for irc to set popular chans, auto connect chans
This commit is contained in:
parent
9bcfb4fd6d
commit
219447cc53
3 changed files with 77 additions and 21 deletions
|
@ -108,14 +108,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];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue