Who.php 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745
  1. <?php
  2. /**
  3. * This file is mainly concerned with the Who's Online list.
  4. * Although, it also handles credits. :P
  5. *
  6. * Simple Machines Forum (SMF)
  7. *
  8. * @package SMF
  9. * @author Simple Machines http://www.simplemachines.org
  10. * @copyright 2011 Simple Machines
  11. * @license http://www.simplemachines.org/about/smf/license.php BSD
  12. *
  13. * @version 2.0
  14. */
  15. if (!defined('SMF'))
  16. die('Hacking attempt...');
  17. /**
  18. * Who's online, and what are they doing?
  19. * This function prepares the who's online data for the Who template.
  20. * It requires the who_view permission.
  21. * It is enabled with the who_enabled setting.
  22. * It is accessed via ?action=who.
  23. *
  24. * @uses Who template, main sub-template
  25. * @uses Who language file.
  26. */
  27. function Who()
  28. {
  29. global $context, $scripturl, $user_info, $txt, $modSettings, $memberContext, $smcFunc;
  30. // Permissions, permissions, permissions.
  31. isAllowedTo('who_view');
  32. // You can't do anything if this is off.
  33. if (empty($modSettings['who_enabled']))
  34. fatal_lang_error('who_off', false);
  35. // Load the 'Who' template.
  36. loadTemplate('Who');
  37. loadLanguage('Who');
  38. // Sort out... the column sorting.
  39. $sort_methods = array(
  40. 'user' => 'mem.real_name',
  41. 'time' => 'lo.log_time'
  42. );
  43. $show_methods = array(
  44. 'members' => '(lo.id_member != 0)',
  45. 'guests' => '(lo.id_member = 0)',
  46. 'all' => '1=1',
  47. );
  48. // Store the sort methods and the show types for use in the template.
  49. $context['sort_methods'] = array(
  50. 'user' => $txt['who_user'],
  51. 'time' => $txt['who_time'],
  52. );
  53. $context['show_methods'] = array(
  54. 'all' => $txt['who_show_all'],
  55. 'members' => $txt['who_show_members_only'],
  56. 'guests' => $txt['who_show_guests_only'],
  57. );
  58. // Can they see spiders too?
  59. if (!empty($modSettings['show_spider_online']) && ($modSettings['show_spider_online'] == 2 || allowedTo('admin_forum')) && !empty($modSettings['spider_name_cache']))
  60. {
  61. $show_methods['spiders'] = '(lo.id_member = 0 AND lo.id_spider > 0)';
  62. $show_methods['guests'] = '(lo.id_member = 0 AND lo.id_spider = 0)';
  63. $context['show_methods']['spiders'] = $txt['who_show_spiders_only'];
  64. }
  65. // Does the user prefer a different sort direction?
  66. if (isset($_REQUEST['sort']) && isset($sort_methods[$_REQUEST['sort']]))
  67. {
  68. $context['sort_by'] = $_SESSION['who_online_sort_by'] = $_REQUEST['sort'];
  69. $sort_method = $sort_methods[$_REQUEST['sort']];
  70. }
  71. // Did we set a preferred sort order earlier in the session?
  72. elseif (isset($_SESSION['who_online_sort_by']))
  73. {
  74. $context['sort_by'] = $_SESSION['who_online_sort_by'];
  75. $sort_method = $sort_methods[$_SESSION['who_online_sort_by']];
  76. }
  77. // Default to last time online.
  78. else
  79. {
  80. $context['sort_by'] = $_SESSION['who_online_sort_by'] = 'time';
  81. $sort_method = 'lo.log_time';
  82. }
  83. $context['sort_direction'] = isset($_REQUEST['asc']) || (isset($_REQUEST['sort_dir']) && $_REQUEST['sort_dir'] == 'asc') ? 'up' : 'down';
  84. $conditions = array();
  85. if (!allowedTo('moderate_forum'))
  86. $conditions[] = '(IFNULL(mem.show_online, 1) = 1)';
  87. // Fallback to top filter?
  88. if (isset($_REQUEST['submit_top']) && isset($_REQUEST['show_top']))
  89. $_REQUEST['show'] = $_REQUEST['show_top'];
  90. // Does the user wish to apply a filter?
  91. if (isset($_REQUEST['show']) && isset($show_methods[$_REQUEST['show']]))
  92. {
  93. $context['show_by'] = $_SESSION['who_online_filter'] = $_REQUEST['show'];
  94. $conditions[] = $show_methods[$_REQUEST['show']];
  95. }
  96. // Perhaps we saved a filter earlier in the session?
  97. elseif (isset($_SESSION['who_online_filter']))
  98. {
  99. $context['show_by'] = $_SESSION['who_online_filter'];
  100. $conditions[] = $show_methods[$_SESSION['who_online_filter']];
  101. }
  102. else
  103. $context['show_by'] = $_SESSION['who_online_filter'] = 'all';
  104. // Get the total amount of members online.
  105. $request = $smcFunc['db_query']('', '
  106. SELECT COUNT(*)
  107. FROM {db_prefix}log_online AS lo
  108. LEFT JOIN {db_prefix}members AS mem ON (lo.id_member = mem.id_member)' . (!empty($conditions) ? '
  109. WHERE ' . implode(' AND ', $conditions) : ''),
  110. array(
  111. )
  112. );
  113. list ($totalMembers) = $smcFunc['db_fetch_row']($request);
  114. $smcFunc['db_free_result']($request);
  115. // Prepare some page index variables.
  116. $context['page_index'] = constructPageIndex($scripturl . '?action=who;sort=' . $context['sort_by'] . ($context['sort_direction'] == 'up' ? ';asc' : '') . ';show=' . $context['show_by'], $_REQUEST['start'], $totalMembers, $modSettings['defaultMaxMembers']);
  117. $context['start'] = $_REQUEST['start'];
  118. // Look for people online, provided they don't mind if you see they are.
  119. $request = $smcFunc['db_query']('', '
  120. SELECT
  121. lo.log_time, lo.id_member, lo.url, INET_NTOA(lo.ip) AS ip, mem.real_name,
  122. lo.session, mg.online_color, IFNULL(mem.show_online, 1) AS show_online,
  123. lo.id_spider
  124. FROM {db_prefix}log_online AS lo
  125. LEFT JOIN {db_prefix}members AS mem ON (lo.id_member = mem.id_member)
  126. LEFT JOIN {db_prefix}membergroups AS mg ON (mg.id_group = CASE WHEN mem.id_group = {int:regular_member} THEN mem.id_post_group ELSE mem.id_group END)' . (!empty($conditions) ? '
  127. WHERE ' . implode(' AND ', $conditions) : '') . '
  128. ORDER BY {raw:sort_method} {raw:sort_direction}
  129. LIMIT {int:offset}, {int:limit}',
  130. array(
  131. 'regular_member' => 0,
  132. 'sort_method' => $sort_method,
  133. 'sort_direction' => $context['sort_direction'] == 'up' ? 'ASC' : 'DESC',
  134. 'offset' => $context['start'],
  135. 'limit' => $modSettings['defaultMaxMembers'],
  136. )
  137. );
  138. $context['members'] = array();
  139. $member_ids = array();
  140. $url_data = array();
  141. while ($row = $smcFunc['db_fetch_assoc']($request))
  142. {
  143. $actions = @unserialize($row['url']);
  144. if ($actions === false)
  145. continue;
  146. // Send the information to the template.
  147. $context['members'][$row['session']] = array(
  148. 'id' => $row['id_member'],
  149. 'ip' => allowedTo('moderate_forum') ? $row['ip'] : '',
  150. // It is *going* to be today or yesterday, so why keep that information in there?
  151. 'time' => strtr(timeformat($row['log_time']), array($txt['today'] => '', $txt['yesterday'] => '')),
  152. 'timestamp' => forum_time(true, $row['log_time']),
  153. 'query' => $actions,
  154. 'is_hidden' => $row['show_online'] == 0,
  155. 'id_spider' => $row['id_spider'],
  156. 'color' => empty($row['online_color']) ? '' : $row['online_color']
  157. );
  158. $url_data[$row['session']] = array($row['url'], $row['id_member']);
  159. $member_ids[] = $row['id_member'];
  160. }
  161. $smcFunc['db_free_result']($request);
  162. // Load the user data for these members.
  163. loadMemberData($member_ids);
  164. // Load up the guest user.
  165. $memberContext[0] = array(
  166. 'id' => 0,
  167. 'name' => $txt['guest_title'],
  168. 'group' => $txt['guest_title'],
  169. 'href' => '',
  170. 'link' => $txt['guest_title'],
  171. 'email' => $txt['guest_title'],
  172. 'is_guest' => true
  173. );
  174. // Are we showing spiders?
  175. $spiderContext = array();
  176. if (!empty($modSettings['show_spider_online']) && ($modSettings['show_spider_online'] == 2 || allowedTo('admin_forum')) && !empty($modSettings['spider_name_cache']))
  177. {
  178. foreach (unserialize($modSettings['spider_name_cache']) as $id => $name)
  179. $spiderContext[$id] = array(
  180. 'id' => 0,
  181. 'name' => $name,
  182. 'group' => $txt['spiders'],
  183. 'href' => '',
  184. 'link' => $name,
  185. 'email' => $name,
  186. 'is_guest' => true
  187. );
  188. }
  189. $url_data = determineActions($url_data);
  190. // Setup the linktree and page title (do it down here because the language files are now loaded..)
  191. $context['page_title'] = $txt['who_title'];
  192. $context['linktree'][] = array(
  193. 'url' => $scripturl . '?action=who',
  194. 'name' => $txt['who_title']
  195. );
  196. // Put it in the context variables.
  197. foreach ($context['members'] as $i => $member)
  198. {
  199. if ($member['id'] != 0)
  200. $member['id'] = loadMemberContext($member['id']) ? $member['id'] : 0;
  201. // Keep the IP that came from the database.
  202. $memberContext[$member['id']]['ip'] = $member['ip'];
  203. $context['members'][$i]['action'] = isset($url_data[$i]) ? $url_data[$i] : $txt['who_hidden'];
  204. if ($member['id'] == 0 && isset($spiderContext[$member['id_spider']]))
  205. $context['members'][$i] += $spiderContext[$member['id_spider']];
  206. else
  207. $context['members'][$i] += $memberContext[$member['id']];
  208. }
  209. // Some people can't send personal messages...
  210. $context['can_send_pm'] = allowedTo('pm_send');
  211. // any profile fields disabled?
  212. $context['disabled_fields'] = isset($modSettings['disabled_profile_fields']) ? array_flip(explode(',', $modSettings['disabled_profile_fields'])) : array();
  213. }
  214. /**
  215. * This function determines the actions of the members passed in urls.
  216. *
  217. * Adding actions to the Who's Online list:
  218. * Adding actions to this list is actually relatively easy...
  219. * - for actions anyone should be able to see, just add a string named
  220. * whoall_ACTION. (where ACTION is the action used in index.php.)
  221. * - for actions that have a subaction which should be represented
  222. * differently, use whoall_ACTION_SUBACTION.
  223. * - for actions that include a topic, and should be restricted, use
  224. * whotopic_ACTION.
  225. * - for actions that use a message, by msg or quote, use whopost_ACTION.
  226. * - for administrator-only actions, use whoadmin_ACTION.
  227. * - for actions that should be viewable only with certain permissions,
  228. * use whoallow_ACTION and add a list of possible permissions to the
  229. * $allowedActions array, using ACTION as the key.
  230. *
  231. * @param mixed $urls, a single url (string) or an array of arrays, each
  232. * inner array being (serialized request data, id_member)
  233. * @param string $preferred_prefix = false
  234. * @return array, an array of descriptions if you passed an array, otherwise
  235. * the string describing their current location.
  236. */
  237. function determineActions($urls, $preferred_prefix = false)
  238. {
  239. global $txt, $user_info, $modSettings, $smcFunc, $context;
  240. if (!allowedTo('who_view'))
  241. return array();
  242. loadLanguage('Who');
  243. // Actions that require a specific permission level.
  244. // @todo are these actions still available
  245. $allowedActions = array(
  246. 'admin' => array('moderate_forum', 'manage_membergroups', 'manage_bans', 'admin_forum', 'manage_permissions', 'send_mail', 'manage_attachments', 'manage_smileys', 'manage_boards', 'edit_news'),
  247. 'ban' => array('manage_bans'),
  248. 'boardrecount' => array('admin_forum'),
  249. 'calendar' => array('calendar_view'),
  250. 'editnews' => array('edit_news'),
  251. 'mailing' => array('send_mail'),
  252. 'maintain' => array('admin_forum'),
  253. 'manageattachments' => array('manage_attachments'),
  254. 'manageboards' => array('manage_boards'),
  255. 'mlist' => array('view_mlist'),
  256. 'moderate' => array('access_mod_center', 'moderate_forum', 'manage_membergroups'),
  257. 'optimizetables' => array('admin_forum'),
  258. 'repairboards' => array('admin_forum'),
  259. 'search' => array('search_posts'),
  260. 'search2' => array('search_posts'),
  261. 'setcensor' => array('moderate_forum'),
  262. 'setreserve' => array('moderate_forum'),
  263. 'stats' => array('view_stats'),
  264. 'viewErrorLog' => array('admin_forum'),
  265. 'viewmembers' => array('moderate_forum'),
  266. );
  267. if (!is_array($urls))
  268. $url_list = array(array($urls, $user_info['id']));
  269. else
  270. $url_list = $urls;
  271. // These are done to later query these in large chunks. (instead of one by one.)
  272. $topic_ids = array();
  273. $profile_ids = array();
  274. $board_ids = array();
  275. $data = array();
  276. foreach ($url_list as $k => $url)
  277. {
  278. // Get the request parameters..
  279. $actions = @unserialize($url[0]);
  280. if ($actions === false)
  281. continue;
  282. // If it's the admin or moderation center, and there is an area set, use that instead.
  283. if (isset($actions['action']) && ($actions['action'] == 'admin' || $actions['action'] == 'moderate') && isset($actions['area']))
  284. $actions['action'] = $actions['area'];
  285. // Check if there was no action or the action is display.
  286. if (!isset($actions['action']) || $actions['action'] == 'display')
  287. {
  288. // It's a topic! Must be!
  289. if (isset($actions['topic']))
  290. {
  291. // Assume they can't view it, and queue it up for later.
  292. $data[$k] = $txt['who_hidden'];
  293. $topic_ids[(int) $actions['topic']][$k] = $txt['who_topic'];
  294. }
  295. // It's a board!
  296. elseif (isset($actions['board']))
  297. {
  298. // Hide first, show later.
  299. $data[$k] = $txt['who_hidden'];
  300. $board_ids[$actions['board']][$k] = $txt['who_board'];
  301. }
  302. // It's the board index!! It must be!
  303. else
  304. $data[$k] = $txt['who_index'];
  305. }
  306. // Probably an error or some goon?
  307. elseif ($actions['action'] == '')
  308. $data[$k] = $txt['who_index'];
  309. // Some other normal action...?
  310. else
  311. {
  312. // Viewing/editing a profile.
  313. if ($actions['action'] == 'profile')
  314. {
  315. // Whose? Their own?
  316. if (empty($actions['u']))
  317. $actions['u'] = $url[1];
  318. $data[$k] = $txt['who_hidden'];
  319. $profile_ids[(int) $actions['u']][$k] = $actions['action'] == 'profile' ? $txt['who_viewprofile'] : $txt['who_profile'];
  320. }
  321. elseif (($actions['action'] == 'post' || $actions['action'] == 'post2') && empty($actions['topic']) && isset($actions['board']))
  322. {
  323. $data[$k] = $txt['who_hidden'];
  324. $board_ids[(int) $actions['board']][$k] = isset($actions['poll']) ? $txt['who_poll'] : $txt['who_post'];
  325. }
  326. // A subaction anyone can view... if the language string is there, show it.
  327. elseif (isset($actions['sa']) && isset($txt['whoall_' . $actions['action'] . '_' . $actions['sa']]))
  328. $data[$k] = $preferred_prefix && isset($txt[$preferred_prefix . $actions['action'] . '_' . $actions['sa']]) ? $txt[$preferred_prefix . $actions['action'] . '_' . $actions['sa']] : $txt['whoall_' . $actions['action'] . '_' . $actions['sa']];
  329. // An action any old fellow can look at. (if ['whoall_' . $action] exists, we know everyone can see it.)
  330. elseif (isset($txt['whoall_' . $actions['action']]))
  331. $data[$k] = $preferred_prefix && isset($txt[$preferred_prefix . $actions['action']]) ? $txt[$preferred_prefix . $actions['action']] : $txt['whoall_' . $actions['action']];
  332. // Viewable if and only if they can see the board...
  333. elseif (isset($txt['whotopic_' . $actions['action']]))
  334. {
  335. // Find out what topic they are accessing.
  336. $topic = (int) (isset($actions['topic']) ? $actions['topic'] : (isset($actions['from']) ? $actions['from'] : 0));
  337. $data[$k] = $txt['who_hidden'];
  338. $topic_ids[$topic][$k] = $txt['whotopic_' . $actions['action']];
  339. }
  340. elseif (isset($txt['whopost_' . $actions['action']]))
  341. {
  342. // Find out what message they are accessing.
  343. $msgid = (int) (isset($actions['msg']) ? $actions['msg'] : (isset($actions['quote']) ? $actions['quote'] : 0));
  344. $result = $smcFunc['db_query']('', '
  345. SELECT m.id_topic, m.subject
  346. FROM {db_prefix}messages AS m
  347. INNER JOIN {db_prefix}boards AS b ON (b.id_board = m.id_board)
  348. INNER JOIN {db_prefix}topics AS t ON (t.id_topic = m.id_topic' . ($modSettings['postmod_active'] ? ' AND t.approved = {int:is_approved}' : '') . ')
  349. WHERE m.id_msg = {int:id_msg}
  350. AND {query_see_board}' . ($modSettings['postmod_active'] ? '
  351. AND m.approved = {int:is_approved}' : '') . '
  352. LIMIT 1',
  353. array(
  354. 'is_approved' => 1,
  355. 'id_msg' => $msgid,
  356. )
  357. );
  358. list ($id_topic, $subject) = $smcFunc['db_fetch_row']($result);
  359. $data[$k] = sprintf($txt['whopost_' . $actions['action']], $id_topic, $subject);
  360. $smcFunc['db_free_result']($result);
  361. if (empty($id_topic))
  362. $data[$k] = $txt['who_hidden'];
  363. }
  364. // Viewable only by administrators.. (if it starts with whoadmin, it's admin only!)
  365. elseif (allowedTo('moderate_forum') && isset($txt['whoadmin_' . $actions['action']]))
  366. $data[$k] = $txt['whoadmin_' . $actions['action']];
  367. // Viewable by permission level.
  368. elseif (isset($allowedActions[$actions['action']]))
  369. {
  370. if (allowedTo($allowedActions[$actions['action']]))
  371. $data[$k] = $txt['whoallow_' . $actions['action']];
  372. else
  373. $data[$k] = $txt['who_hidden'];
  374. }
  375. // Unlisted or unknown action.
  376. else
  377. $data[$k] = $txt['who_unknown'];
  378. }
  379. // Maybe the action is integrated into another system?
  380. if (count($integrate_actions = call_integration_hook('integrate_whos_online', array($actions))) > 0)
  381. {
  382. foreach ($integrate_actions as $integrate_action)
  383. {
  384. if (!empty($integrate_action))
  385. {
  386. $data[$k] = $integrate_action;
  387. break;
  388. }
  389. }
  390. }
  391. }
  392. // Load topic names.
  393. if (!empty($topic_ids))
  394. {
  395. $result = $smcFunc['db_query']('', '
  396. SELECT t.id_topic, m.subject
  397. FROM {db_prefix}topics AS t
  398. INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
  399. INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
  400. WHERE {query_see_board}
  401. AND t.id_topic IN ({array_int:topic_list})' . ($modSettings['postmod_active'] ? '
  402. AND t.approved = {int:is_approved}' : '') . '
  403. LIMIT {int:limit}',
  404. array(
  405. 'topic_list' => array_keys($topic_ids),
  406. 'is_approved' => 1,
  407. 'limit' => count($topic_ids),
  408. )
  409. );
  410. while ($row = $smcFunc['db_fetch_assoc']($result))
  411. {
  412. // Show the topic's subject for each of the actions.
  413. foreach ($topic_ids[$row['id_topic']] as $k => $session_text)
  414. $data[$k] = sprintf($session_text, $row['id_topic'], censorText($row['subject']));
  415. }
  416. $smcFunc['db_free_result']($result);
  417. }
  418. // Load board names.
  419. if (!empty($board_ids))
  420. {
  421. $result = $smcFunc['db_query']('', '
  422. SELECT b.id_board, b.name
  423. FROM {db_prefix}boards AS b
  424. WHERE {query_see_board}
  425. AND b.id_board IN ({array_int:board_list})
  426. LIMIT ' . count($board_ids),
  427. array(
  428. 'board_list' => array_keys($board_ids),
  429. )
  430. );
  431. while ($row = $smcFunc['db_fetch_assoc']($result))
  432. {
  433. // Put the board name into the string for each member...
  434. foreach ($board_ids[$row['id_board']] as $k => $session_text)
  435. $data[$k] = sprintf($session_text, $row['id_board'], $row['name']);
  436. }
  437. $smcFunc['db_free_result']($result);
  438. }
  439. // Load member names for the profile.
  440. if (!empty($profile_ids) && (allowedTo('profile_view_any') || allowedTo('profile_view_own')))
  441. {
  442. $result = $smcFunc['db_query']('', '
  443. SELECT id_member, real_name
  444. FROM {db_prefix}members
  445. WHERE id_member IN ({array_int:member_list})
  446. LIMIT ' . count($profile_ids),
  447. array(
  448. 'member_list' => array_keys($profile_ids),
  449. )
  450. );
  451. while ($row = $smcFunc['db_fetch_assoc']($result))
  452. {
  453. // If they aren't allowed to view this person's profile, skip it.
  454. if (!allowedTo('profile_view_any') && $user_info['id'] != $row['id_member'])
  455. continue;
  456. // Set their action on each - session/text to sprintf.
  457. foreach ($profile_ids[$row['id_member']] as $k => $session_text)
  458. $data[$k] = sprintf($session_text, $row['id_member'], $row['real_name']);
  459. }
  460. $smcFunc['db_free_result']($result);
  461. }
  462. if (!is_array($urls))
  463. return isset($data[0]) ? $data[0] : false;
  464. else
  465. return $data;
  466. }
  467. /**
  468. * It prepares credit and copyright information for the credits page or the admin page
  469. *
  470. * @param $in_admin = false, if parameter is true the it will not load the sub-template nor the template file
  471. */
  472. function Credits($in_admin = false)
  473. {
  474. global $context, $modSettings, $forum_copyright, $forum_version, $boardurl, $txt, $user_info;
  475. // Don't blink. Don't even blink. Blink and you're dead.
  476. loadLanguage('Who');
  477. $context['credits'] = array(
  478. array(
  479. 'pretext' => $txt['credits_intro'],
  480. 'title' => $txt['credits_team'],
  481. 'groups' => array(
  482. array(
  483. 'title' => $txt['credits_groups_ps'],
  484. 'members' => array(
  485. 'Michael &quot;Oldiesmann&quot; Eshom',
  486. 'Amacythe',
  487. 'Jeremy &quot;SleePy&quot; Darwood',
  488. 'Justin &quot;metallica48423&quot; O\'Leary',
  489. ),
  490. ),
  491. array(
  492. 'title' => $txt['credits_groups_dev'],
  493. 'members' => array(
  494. 'Norv',
  495. 'Aaron van Geffen',
  496. 'Antechinus',
  497. 'Bjoern &quot;Bloc&quot; Kristiansen',
  498. 'Hendrik Jan &quot;Compuart&quot; Visser',
  499. 'Juan &quot;JayBachatero&quot; Hernandez',
  500. 'Karl &quot;RegularExpression&quot; Benson',
  501. $user_info['is_admin'] ? 'Matt &quot;Grudge&quot; Wolf': 'Grudge',
  502. 'Michael &quot;Thantos&quot; Miller',
  503. 'Selman &quot;[SiNaN]&quot; Eser',
  504. 'Theodore &quot;Orstio&quot; Hildebrandt',
  505. 'Thorsten &quot;TE&quot; Eurich',
  506. 'winrules',
  507. ),
  508. ),
  509. array(
  510. 'title' => $txt['credits_groups_support'],
  511. 'members' => array(
  512. 'JimM',
  513. 'Adish &quot;(F.L.A.M.E.R)&quot; Patel',
  514. 'Aleksi &quot;Lex&quot; Kilpinen',
  515. 'Ben Scott',
  516. 'Bigguy',
  517. 'CapadY',
  518. 'Chas Large',
  519. 'Duncan85',
  520. 'Eliana Tamerin',
  521. 'Fiery',
  522. 'gbsothere',
  523. 'Harro',
  524. 'Huw',
  525. 'Jan-Olof &quot;Owdy&quot; Eriksson',
  526. 'Jeremy &quot;jerm&quot; Strike',
  527. 'Jessica &quot;Miss All Sunday&quot; Gonzales',
  528. 'K@',
  529. 'Kevin &quot;greyknight17&quot; Hou',
  530. 'KGIII',
  531. 'Kill Em All',
  532. 'Mattitude',
  533. 'Mashby',
  534. 'Mick G.',
  535. 'Michele &quot;Illori&quot; Davis',
  536. 'MrPhil',
  537. 'Nick &quot;Fizzy&quot; Dyer',
  538. 'Nick &quot;Ha&sup2;&quot;',
  539. 'Paul_Pauline',
  540. 'Piro &quot;Sarge&quot; Dhima',
  541. 'Rumbaar',
  542. 'Pitti',
  543. 'RedOne',
  544. 'S-Ace',
  545. 'Wade &quot;s&eta;&sigma;&omega;&quot; Poulsen',
  546. 'xenovanis',
  547. ),
  548. ),
  549. array(
  550. 'title' => $txt['credits_groups_customize'],
  551. 'members' => array(
  552. 'Brad &quot;IchBin&trade;&quot; Grow',
  553. '&#12487;&#12451;&#12531;1031',
  554. 'Brannon &quot;B&quot; Hall',
  555. 'Bryan &quot;Runic&quot; Deakin',
  556. 'Bulakbol',
  557. 'Colin &quot;Shadow82x&quot; Blaber',
  558. 'Daniel15',
  559. 'Eren Yasarkurt',
  560. 'Gary M. Gadsdon',
  561. 'Jason &quot;JBlaze&quot; Clemons',
  562. 'Jerry',
  563. 'Jonathan &quot;vbgamer45&quot; Valentin',
  564. 'Kays',
  565. 'Killer Possum',
  566. 'Kirby',
  567. 'Matt &quot;SlammedDime&quot; Zuba',
  568. 'Matthew &quot;Labradoodle-360&quot; Kerle',
  569. 'Nibogo',
  570. 'Niko',
  571. 'Peter &quot;Arantor&quot; Spicer',
  572. 'snork13',
  573. 'Spuds',
  574. 'Steven &quot;Fustrate&quot; Hoffman',
  575. 'Joey &quot;Tyrsson&quot; Smith',
  576. ),
  577. ),
  578. array(
  579. 'title' => $txt['credits_groups_docs'],
  580. 'members' => array(
  581. 'Joshua &quot;groundup&quot; Dickerson',
  582. 'AngellinaBelle',
  583. 'Daniel Diehl',
  584. 'Dannii Willis',
  585. 'emanuele',
  586. 'Graeme Spence',
  587. 'Jack &quot;akabugeyes&quot; Thorsen',
  588. 'Jade Elizabeth Trainor',
  589. 'Peter Duggan',
  590. ),
  591. ),
  592. array(
  593. 'title' => $txt['credits_groups_marketing'],
  594. 'members' => array(
  595. 'Kindred',
  596. 'Marcus &quot;c&sigma;&sigma;&#1082;&iota;&#1108; &#1084;&sigma;&eta;&#1109;&#1090;&#1108;&#1103;&quot; Forsberg',
  597. 'Ralph &quot;[n3rve]&quot; Otowo',
  598. 'rickC',
  599. 'Tony Reid',
  600. ),
  601. ),
  602. array(
  603. 'title' => $txt['credits_groups_internationalizers'],
  604. 'members' => array(
  605. 'Relyana',
  606. 'Akyhne',
  607. 'GravuTrad',
  608. ),
  609. ),
  610. array(
  611. 'title' => $txt['credits_groups_servers'],
  612. 'members' => array(
  613. 'Derek Schwab',
  614. 'Liroy &quot;CoreISP&quot; van Hoewijk',
  615. ),
  616. ),
  617. ),
  618. ),
  619. );
  620. // Give the translators some credit for their hard work.
  621. if (!empty($txt['translation_credits']))
  622. $context['credits'][] = array(
  623. 'title' => $txt['credits_groups_translation'],
  624. 'groups' => array(
  625. array(
  626. 'title' => $txt['credits_groups_translation'],
  627. 'members' => $txt['translation_credits'],
  628. ),
  629. ),
  630. );
  631. $context['credits'][] = array(
  632. 'title' => $txt['credits_special'],
  633. 'posttext' => $txt['credits_anyone'],
  634. 'groups' => array(
  635. array(
  636. 'title' => $txt['credits_groups_consultants'],
  637. 'members' => array(
  638. 'Brett Flannigan',
  639. 'Mark Rose',
  640. 'Ren&eacute;-Gilles &quot;Nao &#23578;&quot; Deberdt',
  641. ),
  642. ),
  643. array(
  644. 'title' => $txt['credits_groups_beta'],
  645. 'members' => array(
  646. $txt['credits_beta_message'],
  647. ),
  648. ),
  649. array(
  650. 'title' => $txt['credits_groups_translators'],
  651. 'members' => array(
  652. $txt['credits_translators_message'],
  653. ),
  654. ),
  655. array(
  656. 'title' => $txt['credits_groups_founder'],
  657. 'members' => array(
  658. 'Unknown W. &quot;[Unknown]&quot; Brackets',
  659. ),
  660. ),
  661. array(
  662. 'title' => $txt['credits_groups_orignal_pm'],
  663. 'members' => array(
  664. 'Jeff Lewis',
  665. 'Joseph Fung',
  666. 'David Recordon',
  667. ),
  668. ),
  669. ),
  670. );
  671. $context['copyrights'] = array(
  672. 'smf' => sprintf($forum_copyright, $forum_version),
  673. /* Modification Authors: You may add a copyright statement to this array for your mods.
  674. Copyright statements should be in the form of a value only without a array key. I.E.:
  675. 'Some Mod by Thantos &copy; 2010',
  676. $txt['some_mod_copyright'],
  677. */
  678. 'mods' => array(
  679. ),
  680. );
  681. if (!$in_admin)
  682. {
  683. loadTemplate('Who');
  684. $context['sub_template'] = 'credits';
  685. $context['robot_no_index'] = true;
  686. $context['page_title'] = $txt['credits'];
  687. }
  688. }
  689. ?>