added admin interface for irc to set popular chans, auto connect chans

This commit is contained in:
tony baldwin 2012-04-12 23:33:26 -04:00
parent 9bcfb4fd6d
commit 219447cc53
3 changed files with 77 additions and 21 deletions

View file

@ -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];