12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- class TopAction extends ManagedAction
- {
- public function showPage()
- {
- if (common_config('singleuser', 'enabled')) {
- $user = User::singleUser();
- common_redirect(common_local_url('showstream', array('nickname' => $user->getNickname())), 303);
- } elseif (common_config('public', 'localonly')) {
- common_redirect(common_local_url('public'), 303);
- } else {
- common_redirect(common_local_url('networkpublic'), 303);
- }
- }
- }
|