Who.php 24 KB

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