aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_display.php
blob: 4881dde6f5bf26974e8f171f9440004a4c330b3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/

/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

/**
* Display Forums
*/
function display_forums($root_data = '', $display_moderators = true, $return_moderators = false)
{
	global $db, $auth, $user, $template;
	global $phpbb_root_path, $phpEx, $config;
	global $request, $phpbb_dispatcher, $phpbb_container;

	$forum_rows = $subforums = $forum_ids = $forum_ids_moderator = $forum_moderators = $active_forum_ary = array();
	$parent_id = $visible_forums = 0;
	$sql_from = '';

	// Mark forums read?
	$mark_read = request_var('mark', '');

	if ($mark_read == 'all')
	{
		$mark_read = '';
	}

	if (!$root_data)
	{
		if ($mark_read == 'forums')
		{
			$mark_read = 'all';
		}

		$root_data = array('forum_id' => 0);
		$sql_where = '';
	}
	else
	{
		$sql_where = 'left_id > ' . $root_data['left_id'] . ' AND left_id < ' . $root_data['right_id'];
	}

	// Handle marking everything read
	if ($mark_read == 'all')
	{
		$redirect = build_url(array('mark', 'hash', 'mark_time'));
		meta_refresh(3, $redirect);

		if (check_link_hash(request_var('hash', ''), 'global'))
		{
			markread('all', false, false, request_var('mark_time', 0));

			if ($request->is_ajax())
			{
				// Tell the ajax script what language vars and URL need to be replaced
				$data = array(
					'NO_UNREAD_POSTS'	=> $user->lang['NO_UNREAD_POSTS'],
					'UNREAD_POSTS'		=> $user->lang['UNREAD_POSTS'],
					'U_MARK_FORUMS'		=> ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}index.$phpEx", 'hash=' . generate_link_hash('global') . '&mark=forums&mark_time=' . time()) : '',
					'MESSAGE_TITLE'		=> $user->lang['INFORMATION'],
					'MESSAGE_TEXT'		=> $user->lang['FORUMS_MARKED']
				);
				$json_response = new \phpbb\json_response();
				$json_response->send($data);
			}

			trigger_error(
				$user->lang['FORUMS_MARKED'] . '<br /><br />' .
				sprintf($user->lang['RETURN_INDEX'], '<a href="' . $redirect . '">', '</a>')
			);
		}
		else
		{
			trigger_error(sprintf($user->lang['RETURN_PAGE'], '<a href="' . $redirect . '">', '</a>'));
		}
	}

	// Display list of active topics for this category?
	$show_active = (isset($root_data['forum_flags']) && ($root_data['forum_flags'] & FORUM_FLAG_ACTIVE_TOPICS)) ? true : false;

	$sql_array = array(
		'SELECT'	=> 'f.*',
		'FROM'		=> array(
			FORUMS_TABLE		=> 'f'
		),
		'LEFT_JOIN'	=> array(),
	);

	if ($config['load_db_lastread'] && $user->data['is_registered'])
	{
		$sql_array['LEFT_JOIN'][] = array('FROM' => array(FORUMS_TRACK_TABLE => 'ft'), 'ON' => 'ft.user_id = ' . $user->data['user_id'] . ' AND ft.forum_id = f.forum_id');
		$sql_array['SELECT'] .= ', ft.mark_time';
	}
	else if ($config['load_anon_lastread'] || $user->data['is_registered'])
	{
		$tracking_topics = $request->variable($config['cookie_name'] . '_track', '', true, \phpbb\request\request_interface::COOKIE);
		$tracking_topics = ($tracking_topics) ? tracking_unserialize($tracking_topics) : array();

		if (!$user->data['is_registered'])
		{
			$user->data['user_lastmark'] = (isset($tracking_topics['l'])) ? (int) (base_convert($tracking_topics['l'], 36, 10) + $config['board_startdate']) : 0;
		}
	}

	if ($show_active)
	{
		$sql_array['LEFT_JOIN'][] = array(
			'FROM'	=> array(FORUMS_ACCESS_TABLE => 'fa'),
			'ON'	=> "fa.forum_id = f.forum_id AND fa.session_id = '" . $db->sql_escape($user->session_id) . "'"
		);

		$sql_array['SELECT'] .= ', fa.user_id';
	}

	$sql_ary = array(
		'SELECT'	=> $sql_array['SELECT'],
		'FROM'		=> $sql_array['FROM'],
		'LEFT_JOIN'	=> $sql_array['LEFT_JOIN'],

		'WHERE'		=> $sql_where,

		'ORDER_BY'	=> 'f.left_id',
	);

	/**
	* Event to modify the SQL query before the forum data is queried
	*
	* @event core.display_forums_modify_sql
	* @var	array	sql_ary		The SQL array to get the data of the forums
	* @since 3.1.0-a1
	*/
	$vars = array('sql_ary');
	extract($phpbb_dispatcher->trigger_event('core.display_forums_modify_sql', compact($vars)));

	$sql = $db->sql_build_query('SELECT', $sql_ary);
	$result = $db->sql_query($sql);

	$forum_tracking_info = $valid_categories = array();
	$branch_root_id = $root_data['forum_id'];

	$phpbb_content_visibility = $phpbb_container->get('content.visibility');

	while ($row = $db->sql_fetchrow($result))
	{
		/**
		* Event to modify the data set of a forum
		*
		* This event is triggered once per forum
		*
		* @event core.display_forums_modify_row
		* @var	int		branch_root_id	Last top-level forum
		* @var	array	row				The data of the forum
		* @since 3.1.0-a1
		*/
		$vars = array('branch_root_id', 'row');
		extract($phpbb_dispatcher->trigger_event('core.display_forums_modify_row', compact($vars)));

		$forum_id = $row['forum_id'];

		// Mark forums read?
		if ($mark_read == 'forums')
		{
			if ($auth->acl_get('f_list', $forum_id))
			{
				$forum_ids[] = $forum_id;
			}

			continue;
		}

		// Category with no members
		if ($row['forum_type'] == FORUM_CAT && ($row['left_id'] + 1 == $row['right_id']))
		{
			continue;
		}

		// Skip branch
		if (isset($right_id))
		{
			if ($row['left_id'] < $right_id)
			{
				continue;
			}
			unset($right_id);
		}

		if (!$auth->acl_get('f_list', $forum_id))
		{
			// if the user does not have permissions to list this forum, skip everything until next branch
			$right_id = $row['right_id'];
			continue;
		}

		if ($config['load_db_lastread'] && $user->data['is_registered'])
		{
			$forum_tracking_info[$forum_id] = (!empty($row['mark_time'])) ? $row['mark_time'] : $user->data['user_lastmark'];
		}
		else if ($config['load_anon_lastread'] || $user->data['is_registered'])
		{
			if (!$user->data['is_registered'])
			{
				$user->data['user_lastmark'] = (isset($tracking_topics['l'])) ? (int) (base_convert($tracking_topics['l'], 36, 10) + $config['board_startdate']) : 0;
			}
			$forum_tracking_info[$forum_id] = (isset($tracking_topics['f'][$forum_id])) ? (int) (base_convert($tracking_topics['f'][$forum_id], 36, 10) + $config['board_startdate']) : $user->data['user_lastmark'];
		}

		// Lets check whether there are unapproved topics/posts, so we can display an information to moderators
		$row['forum_id_unapproved_topics'] = ($auth->acl_get('m_approve', $forum_id) && $row['forum_topics_unapproved']) ? $forum_id : 0;
		$row['forum_id_unapproved_posts'] = ($auth->acl_get('m_approve', $forum_id) && $row['forum_posts_unapproved']) ? $forum_id : 0;
		$row['forum_posts'] = $phpbb_content_visibility->get_count('forum_posts', $row, $forum_id);
		$row['forum_topics'] = $phpbb_content_visibility->get_count('forum_topics', $row, $forum_id);

		// Display active topics from this forum?
		if ($show_active && $row['forum_type'] == FORUM_POST && $auth->acl_get('f_read', $forum_id) && ($row['forum_flags'] & FORUM_FLAG_ACTIVE_TOPICS))
		{
			if (!isset($active_forum_ary['forum_topics']))
			{
				$active_forum_ary['forum_topics'] = 0;
			}

			if (!isset($active_forum_ary['forum_posts']))
			{
				$active_forum_ary['forum_posts'] = 0;
			}

			$active_forum_ary['forum_id'][]		= $forum_id;
			$active_forum_ary['enable_icons'][]	= $row['enable_icons'];
			$active_forum_ary['forum_topics']	+= $row['forum_topics'];
			$active_forum_ary['forum_posts']	+= $row['forum_posts'];

			// If this is a passworded forum we do not show active topics from it if the user is not authorised to view it...
			if ($row['forum_password'] && $row['user_id'] != $user->data['user_id'])
			{
				$active_forum_ary['exclude_forum_id'][] = $forum_id;
			}
		}

		// Fill list of categories with forums
		if (isset($forum_rows[$row['parent_id']]))
		{
			$valid_categories[$row['parent_id']] = true;
		}

		//
		if ($row['parent_id'] == $root_data['forum_id'] || $row['parent_id'] == $branch_root_id)
		{
			if ($row['forum_type'] != FORUM_CAT)
			{
				$forum_ids_moderator[] = (int) $forum_id;
			}

			// Direct child of current branch
			$parent_id = $forum_id;
			$forum_rows[$forum_id] = $row;

			if ($row['forum_type'] == FORUM_CAT && $row['parent_id'] == $root_data['forum_id'])
			{
				$branch_root_id = $forum_id;
			}
			$forum_rows[$parent_id]['forum_id_last_post'] = $row['forum_id'];
			$forum_rows[$parent_id]['forum_password_last_post'] = $row['forum_password'];
			$forum_rows[$parent_id]['orig_forum_last_post_time'] = $row['forum_last_post_time'];
		}
		else if ($row['forum_type'] != FORUM_CAT)
		{
			$subforums[$parent_id][$forum_id]['display'] = ($row['display_on_index']) ? true : false;
			$subforums[$parent_id][$forum_id]['name'] = $row['forum_name'];
			$subforums[$parent_id][$forum_id]['orig_forum_last_post_time'] = $row['forum_last_post_time'];
			$subforums[$parent_id][$forum_id]['children'] = array();

			if (isset($subforums[$parent_id][$row['parent_id']]) && !$row['display_on_index'])
			{
				$subforums[$parent_id][$row['parent_id']]['children'][] = $forum_id;
			}

			if (!$forum_rows[$parent_id]['forum_id_unapproved_topics'] && $row['forum_id_unapproved_topics'])
			{
				$forum_rows[$parent_id]['forum_id_unapproved_topics'] = $forum_id;
			}

			if (!$forum_rows[$parent_id]['forum_id_unapproved_posts'] && $row['forum_id_unapproved_posts'])
			{
				$forum_rows[$parent_id]['forum_id_unapproved_posts'] = $forum_id;
			}

			$forum_rows[$parent_id]['forum_topics'] += $row['forum_topics'];

			// Do not list redirects in LINK Forums as Posts.
			if ($row['forum_type'] != FORUM_LINK)
			{
				$forum_rows[$parent_id]['forum_posts'] += $row['forum_posts'];
			}

			if ($row['forum_last_post_time'] > $forum_rows[$parent_id]['forum_last_post_time'])
			{
				$forum_rows[$parent_id]['forum_last_post_id'] = $row['forum_last_post_id'];
				$forum_rows[$parent_id]['forum_last_post_subject'] = $row['forum_last_post_subject'];
				$forum_rows[$parent_id]['forum_last_post_time'] = $row['forum_last_post_time'];
				$forum_rows[$parent_id]['forum_last_poster_id'] = $row['forum_last_poster_id'];
				$forum_rows[$parent_id]['forum_last_poster_name'] = $row['forum_last_poster_name'];
				$forum_rows[$parent_id]['forum_last_poster_colour'] = $row['forum_last_poster_colour'];
				$forum_rows[$parent_id]['forum_id_last_post'] = $forum_id;
				$forum_rows[$parent_id]['forum_password_last_post'] = $row['forum_password'];
			}
		}

		/**
		* Event to modify the forum rows data set
		*
		* This event is triggered once per forum
		*
		* @event core.display_forums_modify_forum_rows
		* @var	array	forum_rows		Data array of all forums we display
		* @var	array	subforums		Data array of all subforums we display
		* @var	int		branch_root_id	Current top-level forum
		* @var	int		parent_id		Current parent forum
		* @var	array	row				The data of the forum
		* @since 3.1.0-a1
		*/
		$vars = array('forum_rows', 'subforums', 'branch_root_id', 'parent_id', 'row');
		extract($phpbb_dispatcher->trigger_event('core.display_forums_modify_forum_rows', compact($vars)));
	}
	$db->sql_freeresult($result);

	// Handle marking posts
	if ($mark_read == 'forums')
	{
		$redirect = build_url(array('mark', 'hash', 'mark_time'));
		$token = request_var('hash', '');
		if (check_link_hash($token, 'global'))
		{
			markread('topics', $forum_ids, false, request_var('mark_time', 0));
			$message = sprintf($user->lang['RETURN_FORUM'], '<a href="' . $redirect . '">', '</a>');
			meta_refresh(3, $redirect);

			if ($request->is_ajax())
			{
				// Tell the ajax script what language vars and URL need to be replaced
				$data = array(
					'NO_UNREAD_POSTS'	=> $user->lang['NO_UNREAD_POSTS'],
					'UNREAD_POSTS'		=> $user->lang['UNREAD_POSTS'],
					'U_MARK_FORUMS'		=> ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}viewforum.$phpEx", 'hash=' . generate_link_hash('global') . '&f=' . $root_data['forum_id'] . '&mark=forums&mark_time=' . time()) : '',
					'MESSAGE_TITLE'		=> $user->lang['INFORMATION'],
					'MESSAGE_TEXT'		=> $user->lang['FORUMS_MARKED']
				);
				$json_response = new \phpbb\json_response();
				$json_response->send($data);
			}

			trigger_error($user->lang['FORUMS_MARKED'] . '<br /><br />' . $message);
		}
		else
		{
			$message = sprintf($user->lang['RETURN_PAGE'], '<a href="' . $redirect . '">', '</a>');
			meta_refresh(3, $redirect);
			trigger_error($message);
		}

	}

	// Grab moderators ... if necessary
	if ($display_moderators)
	{
		if ($return_moderators)
		{
			$forum_ids_moderator[] = $root_data['forum_id'];
		}
		get_moderators($forum_moderators, $forum_ids_moderator);
	}

	/**
	* Event to perform additional actions before the forum list is being generated
	*
	* @event core.display_forums_before
	* @var	array	active_forum_ary	Array with forum data to display active topics
	* @var	bool	display_moderators	Flag indicating if we display forum moderators
	* @var	array	forum_moderators	Array with forum moderators list
	* @var	array	forum_rows			Data array of all forums we display
	* @var	bool	return_moderators	Flag indicating if moderators list should be returned
	* @var	array	root_data			Array with the root forum data
	* @since 3.1.4-RC1
	*/
	$vars = array(
		'active_forum_ary',
		'display_moderators',
		'forum_moderators',
		'forum_rows',
		'return_moderators',
		'root_data',
	);
	extract($phpbb_dispatcher->trigger_event('core.display_forums_before', compact($vars)));

	// Used to tell whatever we have to create a dummy category or not.
	$last_catless = true;
	foreach ($forum_rows as $row)
	{
		// Category
		if ($row['parent_id'] == $root_data['forum_id'] && $row['forum_type'] == FORUM_CAT)
		{
			// Do not display categories without any forums to display
			if (!isset($valid_categories[$row['forum_id']]))
			{
				continue;
			}

			$cat_row = array(
				'S_IS_CAT'				=> true,
				'FORUM_ID'				=> $row['forum_id'],
				'FORUM_NAME'			=> $row['forum_name'],
				'FORUM_DESC'			=> generate_text_for_display($row['forum_desc'], $row['forum_desc_uid'], $row['forum_desc_bitfield'], $row['forum_desc_options']),
				'FORUM_FOLDER_IMG'		=> '',
				'FORUM_FOLDER_IMG_SRC'	=> '',
				'FORUM_IMAGE'			=> ($row['forum_image']) ? '<img src="' . $phpbb_root_path . $row['forum_image'] . '" alt="' . $user->lang['FORUM_CAT'] . '" />' : '',
				'FORUM_IMAGE_SRC'		=> ($row['forum_image']) ? $phpbb_root_path . $row['forum_image'] : '',
				'U_VIEWFORUM'			=> append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $row['forum_id']),
			);

			/**
			* Modify the template data block of the 'category'
			*
			* This event is triggered once per 'category'
			*
			* @event core.display_forums_modify_category_template_vars
			* @var	array	cat_row			Template data of the 'category'
			* @var	bool	catless			The flag indicating whether the 'category' has a parent category
			* @var	bool	last_catless	The flag indicating whether the last forum had a parent category
			* @var	array	root_data		Array with the root forum data
			* @var	array	row				The data of the 'category'
			* @since 3.1.0-RC4
			*/
			$vars = array(
				'cat_row',
				'catless',
				'last_catless',
				'root_data',
				'row',
			);
			extract($phpbb_dispatcher->trigger_event('core.display_forums_modify_category_template_vars', compact($vars)));

			$template->assign_block_vars('forumrow', $cat_row);

			continue;
		}

		$visible_forums++;
		$forum_id = $row['forum_id'];

		$forum_unread = (isset($forum_tracking_info[$forum_id]) && $row['orig_forum_last_post_time'] > $forum_tracking_info[$forum_id]) ? true : false;

		$folder_image = $folder_alt = $l_subforums = '';
		$subforums_list = array();

		// Generate list of subforums if we need to
		if (isset($subforums[$forum_id]))
		{
			foreach ($subforums[$forum_id] as $subforum_id => $subforum_row)
			{
				$subforum_unread = (isset($forum_tracking_info[$subforum_id]) && $subforum_row['orig_forum_last_post_time'] > $forum_tracking_info[$subforum_id]) ? true : false;

				if (!$subforum_unread && !empty($subforum_row['children']))
				{
					foreach ($subforum_row['children'] as $child_id)
					{
						if (isset($forum_tracking_info[$child_id]) && $subforums[$forum_id][$child_id]['orig_forum_last_post_time'] > $forum_tracking_info[$child_id])
						{
							// Once we found an unread child forum, we can drop out of this loop
							$subforum_unread = true;
							break;
						}
					}
				}

				if ($subforum_row['display'] && $subforum_row['name'])
				{
					$subforums_list[] = array(
						'link'		=> append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $subforum_id),
						'name'		=> $subforum_row['name'],
						'unread'	=> $subforum_unread,
					);
				}
				else
				{
					unset($subforums[$forum_id][$subforum_id]);
				}

				// If one subforum is unread the forum gets unread too...
				if ($subforum_unread)
				{
					$forum_unread = true;
				}
			}

			$l_subforums = (sizeof($subforums[$forum_id]) == 1) ? $user->lang['SUBFORUM'] : $user->lang['SUBFORUMS'];
			$folder_image = ($forum_unread) ? 'forum_unread_subforum' : 'forum_read_subforum';
		}
		else
		{
			switch ($row['forum_type'])
			{
				case FORUM_POST:
					$folder_image = ($forum_unread) ? 'forum_unread' : 'forum_read';
				break;

				case FORUM_LINK:
					$folder_image = 'forum_link';
				break;
			}
		}

		// Which folder should we display?
		if ($row['forum_status'] == ITEM_LOCKED)
		{
			$folder_image = ($forum_unread) ? 'forum_unread_locked' : 'forum_read_locked';
			$folder_alt = 'FORUM_LOCKED';
		}
		else
		{
			$folder_alt = ($forum_unread) ? 'UNREAD_POSTS' : 'NO_UNREAD_POSTS';
		}

		// Create last post link information, if appropriate
		if ($row['forum_last_post_id'])
		{
			if ($row['forum_password_last_post'] === '' && $auth->acl_get('f_read', $row['forum_id_last_post']))
			{
				$last_post_subject = censor_text($row['forum_last_post_subject']);
				$last_post_subject_truncated = truncate_string($last_post_subject, 30, 255, false, $user->lang['ELLIPSIS']);
			}
			else
			{
				$last_post_subject = $last_post_subject_truncated = '';
			}
			$last_post_time = $user->format_date($row['forum_last_post_time']);
			$last_post_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&amp;p=' . $row['forum_last_post_id']) . '#p' . $row['forum_last_post_id'];
		}
		else
		{
			$last_post_subject = $last_post_time = $last_post_url = $last_post_subject_truncated = '';
		}

		// Output moderator listing ... if applicable
		$l_moderator = $moderators_list = '';
		if ($display_moderators && !empty($forum_moderators[$forum_id]))
		{
			$l_moderator = (sizeof($forum_moderators[$forum_id]) == 1) ? $user->lang['MODERATOR'] : $user->lang['MODERATORS'];
			$moderators_list = implode($user->lang['COMMA_SEPARATOR'], $forum_moderators[$forum_id]);
		}

		$l_post_click_count = ($row['forum_type'] == FORUM_LINK) ? 'CLICKS' : 'POSTS';
		$post_click_count = ($row['forum_type'] != FORUM_LINK || $row['forum_flags'] & FORUM_FLAG_LINK_TRACK) ? $row['forum_posts'] : '';

		$s_subforums_list = $subforums_row = array();
		foreach ($subforums_list as $subforum)
		{
			$s_subforums_list[] = '<a href="' . $subforum['link'] . '" class="subforum ' . (($subforum['unread']) ? 'unread' : 'read') . '" title="' . (($subforum['unread']) ? $user->lang['UNREAD_POSTS'] : $user->lang['NO_UNREAD_POSTS']) . '">' . $subforum['name'] . '</a>';
			$subforums_row[] = array(
				'U_SUBFORUM'	=> $subforum['link'],
				'SUBFORUM_NAME'	=> $subforum['name'],
				'S_UNREAD'		=> $subforum['unread'],
			);
		}
		$s_subforums_list = (string) implode($user->lang['COMMA_SEPARATOR'], $s_subforums_list);
		$catless = ($row['parent_id'] == $root_data['forum_id']) ? true : false;

		if ($row['forum_type'] != FORUM_LINK)
		{
			$u_viewforum = append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $row['forum_id']);
		}
		else
		{
			// If the forum is a link and we count redirects we need to visit it
			// If the forum is having a password or no read access we do not expose the link, but instead handle it in viewforum
			if (($row['forum_flags'] & FORUM_FLAG_LINK_TRACK) || $row['forum_password'] || !$auth->acl_get('f_read', $forum_id))
			{
				$u_viewforum = append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $row['forum_id']);
			}
			else
			{
				$u_viewforum = $row['forum_link'];
			}
		}

		$forum_row = array(
			'S_IS_CAT'			=> false,
			'S_NO_CAT'			=> $catless && !$last_catless,
			'S_IS_LINK'			=> ($row['forum_type'] == FORUM_LINK) ? true : false,
			'S_UNREAD_FORUM'	=> $forum_unread,
			'S_AUTH_READ'		=> $auth->acl_get('f_read', $row['forum_id']),
			'S_LOCKED_FORUM'	=> ($row['forum_status'] == ITEM_LOCKED) ? true : false,
			'S_LIST_SUBFORUMS'	=> ($row['display_subforum_list']) ? true : false,
			'S_SUBFORUMS'		=> (sizeof($subforums_list)) ? true : false,
			'S_DISPLAY_SUBJECT'	=>	($last_post_subject !== '' && $config['display_last_subject']) ? true : false,
			'S_FEED_ENABLED'	=> ($config['feed_forum'] && !phpbb_optionget(FORUM_OPTION_FEED_EXCLUDE, $row['forum_options']) && $row['forum_type'] == FORUM_POST) ? true : false,

			'FORUM_ID'				=> $row['forum_id'],
			'FORUM_NAME'			=> $row['forum_name'],
			'FORUM_DESC'			=> generate_text_for_display($row['forum_desc'], $row['forum_desc_uid'], $row['forum_desc_bitfield'], $row['forum_desc_options']),
			'TOPICS'				=> $row['forum_topics'],
			$l_post_click_count		=> $post_click_count,
			'FORUM_IMG_STYLE'		=> $folder_image,
			'FORUM_FOLDER_IMG'		=> $user->img($folder_image, $folder_alt),
			'FORUM_FOLDER_IMG_ALT'	=> isset($user->lang[$folder_alt]) ? $user->lang[$folder_alt] : '',
			'FORUM_IMAGE'			=> ($row['forum_image']) ? '<img src="' . $phpbb_root_path . $row['forum_image'] . '" alt="' . $user->lang[$folder_alt] . '" />' : '',
			'FORUM_IMAGE_SRC'		=> ($row['forum_image']) ? $phpbb_root_path . $row['forum_image'] : '',
			'LAST_POST_SUBJECT'		=> $last_post_subject,
			'LAST_POST_SUBJECT_TRUNCATED'	=> $last_post_subject_truncated,
			'LAST_POST_TIME'		=> $last_post_time,
			'LAST_POSTER'			=> get_username_string('username', $row['forum_last_poster_id'], $row['forum_last_poster_name'], $row['forum_last_poster_colour']),
			'LAST_POSTER_COLOUR'	=> get_username_string('colour', $row['forum_last_poster_id'], $row['forum_last_poster_name'], $row['forum_last_poster_colour']),
			'LAST_POSTER_FULL'		=> get_username_string('full', $row['forum_last_poster_id'], $row['forum_last_poster_name'], $row['forum_last_poster_colour']),
			'MODERATORS'			=> $moderators_list,
			'SUBFORUMS'				=> $s_subforums_list,

			'L_SUBFORUM_STR'		=> $l_subforums,
			'L_MODERATOR_STR'		=> $l_moderator,

			'U_UNAPPROVED_TOPICS'	=> ($row['forum_id_unapproved_topics']) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=queue&amp;mode=unapproved_topics&amp;f=' . $row['forum_id_unapproved_topics']) : '',
			'U_UNAPPROVED_POSTS'	=> ($row['forum_id_unapproved_posts']) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=queue&amp;mode=unapproved_posts&amp;f=' . $row['forum_id_unapproved_posts']) : '',
			'U_VIEWFORUM'		=> $u_viewforum,
			'U_LAST_POSTER'		=> get_username_string('profile', $row['forum_last_poster_id'], $row['forum_last_poster_name'], $row['forum_last_poster_colour']),
			'U_LAST_POST'		=> $last_post_url,
		);

		/**
		* Modify the template data block of the forum
		*
		* This event is triggered once per forum
		*
		* @event core.display_forums_modify_template_vars
		* @var	array	forum_row		Template data of the forum
		* @var	array	row				The data of the forum
		* @var	array	subforums_row	Template data of subforums
		* @since 3.1.0-a1
		* @change 3.1.0-b5 Added var subforums_row
		*/
		$vars = array('forum_row', 'row', 'subforums_row');
		extract($phpbb_dispatcher->trigger_event('core.display_forums_modify_template_vars', compact($vars)));

		$template->assign_block_vars('forumrow', $forum_row);

		// Assign subforums loop for style authors
		$template->assign_block_vars_array('forumrow.subforum', $subforums_row);

		/**
		* Modify and/or assign additional template data for the forum
		* after forumrow loop has been assigned. This can be used
		* to create additional forumrow subloops in extensions.
		*
		* This event is triggered once per forum
		*
		* @event core.display_forums_add_template_data
		* @var	array	forum_row		Template data of the forum
		* @var	array	row				The data of the forum
		* @var	array	subforums_list	The data of subforums
		* @var	array	subforums_row	Template data of subforums
		* @var	bool	catless			The flag indicating whether a forum has a parent category
		* @since 3.1.0-b5
		*/
		$vars = array(
			'forum_row',
			'row',
			'subforums_list',
			'subforums_row',
			'catless',
		);
		extract($phpbb_dispatcher->trigger_event('core.display_forums_add_template_data', compact($vars)));

		$last_catless = $catless;
	}

	$template->assign_vars(array(
		'U_MARK_FORUMS'		=> ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}viewforum.$phpEx", 'hash=' . generate_link_hash('global') . '&amp;f=' . $root_data['forum_id'] . '&amp;mark=forums&amp;mark_time=' . time()) : '',
		'S_HAS_SUBFORUM'	=> ($visible_forums) ? true : false,
		'L_SUBFORUM'		=> ($visible_forums == 1) ? $user->lang['SUBFORUM'] : $user->lang['SUBFORUMS'],
		'LAST_POST_IMG'		=> $user->img('icon_topic_latest', 'VIEW_LATEST_POST'),
		'UNAPPROVED_IMG'	=> $user->img('icon_topic_unapproved', 'TOPICS_UNAPPROVED'),
		'UNAPPROVED_POST_IMG'	=> $user->img('icon_topic_unapproved', 'POSTS_UNAPPROVED_FORUM'),
	));

	/**
	* Event to perform additional actions after the forum list has been generated
	*
	* @event core.display_forums_after
	* @var	array	active_forum_ary	Array with forum data to display active topics
	* @var	bool	display_moderators	Flag indicating if we display forum moderators
	* @var	array	forum_moderators	Array with forum moderators list
	* @var	array	forum_rows			Data array of all forums we display
	* @var	bool	return_moderators	Flag indicating if moderators list should be returned
	* @var	array	root_data			Array with the root forum data
	* @since 3.1.0-RC5
	*/
	$vars = array(
		'active_forum_ary',
		'display_moderators',
		'forum_moderators',
		'forum_rows',
		'return_moderators',
		'root_data',
	);
	extract($phpbb_dispatcher->trigger_event('core.display_forums_after', compact($vars)));

	if ($return_moderators)
	{
		return array($active_forum_ary, $forum_moderators);
	}

	return array($active_forum_ary, array());
}

/**
* Create forum rules for given forum
*/
function generate_forum_rules(&$forum_data)
{
	if (!$forum_data['forum_rules'] && !$forum_data['forum_rules_link'])
	{
		return;
	}

	global $template, $phpbb_root_path, $phpEx;

	if ($forum_data['forum_rules'])
	{
		$forum_data['forum_rules'] = generate_text_for_display($forum_data['forum_rules'], $forum_data['forum_rules_uid'], $forum_data['forum_rules_bitfield'], $forum_data['forum_rules_options']);
	}

	$template->assign_vars(array(
		'S_FORUM_RULES'	=> true,
		'U_FORUM_RULES'	=> $forum_data['forum_rules_link'],
		'FORUM_RULES'	=> $forum_data['forum_rules'])
	);
}

/**
* Create forum navigation links for given forum, create parent
* list if currently null, assign basic forum info to template
*/
function generate_forum_nav(&$forum_data)
{
	global $db, $user, $template, $auth, $config;
	global $phpEx, $phpbb_root_path, $phpbb_dispatcher;

	if (!$auth->acl_get('f_list', $forum_data['forum_id']))
	{
		return;
	}

	$navlinks = $navlinks_parents = $forum_template_data = array();

	// Get forum parents
	$forum_parents = get_forum_parents($forum_data);

	$microdata_attr = 'data-forum-id';

	// Build navigation links
	if (!empty($forum_parents))
	{
		foreach ($forum_parents as $parent_forum_id => $parent_data)
		{
			list($parent_name, $parent_type) = array_values($parent_data);

			// Skip this parent if the user does not have the permission to view it
			if (!$auth->acl_get('f_list', $parent_forum_id))
			{
				continue;
			}

			$navlinks_parents[] = array(
				'S_IS_CAT'		=> ($parent_type == FORUM_CAT) ? true : false,
				'S_IS_LINK'		=> ($parent_type == FORUM_LINK) ? true : false,
				'S_IS_POST'		=> ($parent_type == FORUM_POST) ? true : false,
				'FORUM_NAME'	=> $parent_name,
				'FORUM_ID'		=> $parent_forum_id,
				'MICRODATA'		=> $microdata_attr . '="' . $parent_forum_id . '"',
				'U_VIEW_FORUM'	=> append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $parent_forum_id),
			);
		}
	}

	$navlinks = array(
		'S_IS_CAT'		=> ($forum_data['forum_type'] == FORUM_CAT) ? true : false,
		'S_IS_LINK'		=> ($forum_data['forum_type'] == FORUM_LINK) ? true : false,
		'S_IS_POST'		=> ($forum_data['forum_type'] == FORUM_POST) ? true : false,
		'FORUM_NAME'	=> $forum_data['forum_name'],
		'FORUM_ID'		=> $forum_data['forum_id'],
		'MICRODATA'		=> $microdata_attr . '="' . $forum_data['forum_id'] . '"',
		'U_VIEW_FORUM'	=> append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $forum_data['forum_id']),
	);

	$forum_template_data = array(
		'FORUM_ID' 		=> $forum_data['forum_id'],
		'FORUM_NAME'	=> $forum_data['forum_name'],
		'FORUM_DESC'	=> generate_text_for_display($forum_data['forum_desc'], $forum_data['forum_desc_uid'], $forum_data['forum_desc_bitfield'], $forum_data['forum_desc_options']),

		'S_ENABLE_FEEDS_FORUM'	=> ($config['feed_forum'] && $forum_data['forum_type'] == FORUM_POST && !phpbb_optionget(FORUM_OPTION_FEED_EXCLUDE, $forum_data['forum_options'])) ? true : false,
	);

	/**
	* Event to modify the navlinks text
	*
	* @event core.generate_forum_nav
	* @var	array	forum_data				Array with the forum data
	* @var	array	forum_template_data		Array with generic forum template data
	* @var	string	microdata_attr			The microdata attribute
	* @var	array	navlinks_parents		Array with the forum parents navlinks data
	* @var	array	navlinks				Array with the forum navlinks data
	* @since 3.1.5-RC1
	*/
	$vars = array(
		'forum_data',
		'forum_template_data',
		'microdata_attr',
		'navlinks_parents',
		'navlinks',
	);
	extract($phpbb_dispatcher->trigger_event('core.generate_forum_nav', compact($vars)));

	$template->assign_block_vars_array('navlinks', $navlinks_parents);
	$template->assign_block_vars('navlinks', $navlinks);
	$template->assign_vars($forum_template_data);

	return;
}

/**
* Returns forum parents as an array. Get them from forum_data if available, or update the database otherwise
*/
function get_forum_parents(&$forum_data)
{
	global $db;

	$forum_parents = array();

	if ($forum_data['parent_id'] > 0)
	{
		if ($forum_data['forum_parents'] == '')
		{
			$sql = 'SELECT forum_id, forum_name, forum_type
				FROM ' . FORUMS_TABLE . '
				WHERE left_id < ' . $forum_data['left_id'] . '
					AND right_id > ' . $forum_data['right_id'] . '
				ORDER BY left_id ASC';
			$result = $db->sql_query($sql);

			while ($row = $db->sql_fetchrow($result))
			{
				$forum_parents[$row['forum_id']] = array($row['forum_name'], (int) $row['forum_type']);
			}
			$db->sql_freeresult($result);

			$forum_data['forum_parents'] = serialize($forum_parents);

			$sql = 'UPDATE ' . FORUMS_TABLE . "
				SET forum_parents = '" . $db->sql_escape($forum_data['forum_parents']) . "'
				WHERE parent_id = " . $forum_data['parent_id'];
			$db->sql_query($sql);
		}
		else
		{
			$forum_parents = unserialize($forum_data['forum_parents']);
		}
	}

	return $forum_parents;
}

/**
* Obtain list of moderators of each forum
*/
function get_moderators(&$forum_moderators, $forum_id = false)
{
	global $config, $template, $db, $phpbb_root_path, $phpEx, $user, $auth;

	$forum_id_ary = array();

	if ($forum_id !== false)
	{
		if (!is_array($forum_id))
		{
			$forum_id = array($forum_id);
		}

		// Exchange key/value pair to be able to faster check for the forum id existence
		$forum_id_ary = array_flip($forum_id);
	}

	$sql_array = array(
		'SELECT'	=> 'm.*, u.user_colour, g.group_colour, g.group_type',

		'FROM'		=> array(
			MODERATOR_CACHE_TABLE	=> 'm',
		),

		'LEFT_JOIN'	=> array(
			array(
				'FROM'	=> array(USERS_TABLE => 'u'),
				'ON'	=> 'm.user_id = u.user_id',
			),
			array(
				'FROM'	=> array(GROUPS_TABLE => 'g'),
				'ON'	=> 'm.group_id = g.group_id',
			),
		),

		'WHERE'		=> 'm.display_on_index = 1',
	);

	// We query every forum here because for caching we should not have any parameter.
	$sql = $db->sql_build_query('SELECT', $sql_array);
	$result = $db->sql_query($sql, 3600);

	while ($row = $db->sql_fetchrow($result))
	{
		$f_id = (int) $row['forum_id'];

		if (!isset($forum_id_ary[$f_id]))
		{
			continue;
		}

		if (!empty($row['user_id']))
		{
			$forum_moderators[$f_id][] = get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']);
		}
		else
		{
			$group_name = (($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name']);

			if ($user->data['user_id'] != ANONYMOUS && !$auth->acl_get('u_viewprofile'))
			{
				$forum_moderators[$f_id][] = '<span' . (($row['group_colour']) ? ' style="color:#' . $row['group_colour'] . ';"' : '') . '>' . $group_name . '</span>';
			}
			else
			{
				$forum_moderators[$f_id][] = '<a' . (($row['group_colour']) ? ' style="color:#' . $row['group_colour'] . ';"' : '') . ' href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=group&amp;g=' . $row['group_id']) . '">' . $group_name . '</a>';
			}
		}
	}
	$db->sql_freeresult($result);

	return;
}

/**
* User authorisation levels output
*
* @param	string	$mode			Can be forum or topic. Not in use at the moment.
* @param	int		$forum_id		The current forum the user is in.
* @param	int		$forum_status	The forums status bit.
*/
function gen_forum_auth_level($mode, $forum_id, $forum_status)
{
	global $template, $auth, $user, $config;

	$locked = ($forum_status == ITEM_LOCKED && !$auth->acl_get('m_edit', $forum_id)) ? true : false;

	$rules = array(
		($auth->acl_get('f_post', $forum_id) && !$locked) ? $user->lang['RULES_POST_CAN'] : $user->lang['RULES_POST_CANNOT'],
		($auth->acl_get('f_reply', $forum_id) && !$locked) ? $user->lang['RULES_REPLY_CAN'] : $user->lang['RULES_REPLY_CANNOT'],
		($user->data['is_registered'] && $auth->acl_gets('f_edit', 'm_edit', $forum_id) && !$locked) ? $user->lang['RULES_EDIT_CAN'] : $user->lang['RULES_EDIT_CANNOT'],
		($user->data['is_registered'] && ($auth->acl_gets('f_delete', 'm_delete', $forum_id) || $auth->acl_gets('f_softdelete', 'm_softdelete', $forum_id)) && !$locked) ? $user->lang['RULES_DELETE_CAN'] : $user->lang['RULES_DELETE_CANNOT'],
	);

	if ($config['allow_attachments'])
	{
		$rules[] = ($auth->acl_get('f_attach', $forum_id) && $auth->acl_get('u_attach') && !$locked) ? $user->lang['RULES_ATTACH_CAN'] : $user->lang['RULES_ATTACH_CANNOT'];
	}

	foreach ($rules as $rule)
	{
		$template->assign_block_vars('rules', array('RULE' => $rule));
	}

	return;
}

/**
* Generate topic status
*/
function topic_status(&$topic_row, $replies, $unread_topic, &$folder_img, &$folder_alt, &$topic_type)
{
	global $user, $config;

	$folder = $folder_new = '';

	if ($topic_row['topic_status'] == ITEM_MOVED)
	{
		$topic_type = $user->lang['VIEW_TOPIC_MOVED'];
		$folder_img = 'topic_moved';
		$folder_alt = 'TOPIC_MOVED';
	}
	else
	{
		switch ($topic_row['topic_type'])
		{
			case POST_GLOBAL:
				$topic_type = $user->lang['VIEW_TOPIC_GLOBAL'];
				$folder = 'global_read';
				$folder_new = 'global_unread';
			break;

			case POST_ANNOUNCE:
				$topic_type = $user->lang['VIEW_TOPIC_ANNOUNCEMENT'];
				$folder = 'announce_read';
				$folder_new = 'announce_unread';
			break;

			case POST_STICKY:
				$topic_type = $user->lang['VIEW_TOPIC_STICKY'];
				$folder = 'sticky_read';
				$folder_new = 'sticky_unread';
			break;

			default:
				$topic_type = '';
				$folder = 'topic_read';
				$folder_new = 'topic_unread';

				// Hot topic threshold is for posts in a topic, which is replies + the first post. ;)
				if ($config['hot_threshold'] && ($replies + 1) >= $config['hot_threshold'] && $topic_row['topic_status'] != ITEM_LOCKED)
				{
					$folder .= '_hot';
					$folder_new .= '_hot';
				}
			break;
		}

		if ($topic_row['topic_status'] == ITEM_LOCKED)
		{
			$topic_type = $user->lang['VIEW_TOPIC_LOCKED'];
			$folder .= '_locked';
			$folder_new .= '_locked';
		}

		$folder_img = ($unread_topic) ? $folder_new : $folder;
		$folder_alt = ($unread_topic) ? 'UNREAD_POSTS' : (($topic_row['topic_status'] == ITEM_LOCKED) ? 'TOPIC_LOCKED' : 'NO_UNREAD_POSTS');

		// Posted image?
		if (!empty($topic_row['topic_posted']) && $topic_row['topic_posted'])
		{
			$folder_img .= '_mine';
		}
	}

	if ($topic_row['poll_start'] && $topic_row['topic_status'] != ITEM_MOVED)
	{
		$topic_type = $user->lang['VIEW_TOPIC_POLL'];
	}
}

/**
* Assign/Build custom bbcodes for display in screens supporting using of bbcodes
* The custom bbcodes buttons will be placed within the template block 'custom_tags'
*/
function display_custom_bbcodes()
{
	global $db, $template, $user, $phpbb_dispatcher;

	// Start counting from 22 for the bbcode ids (every bbcode takes two ids - opening/closing)
	$num_predefined_bbcodes = 22;

	$sql_ary = array(
		'SELECT'	=> 'b.bbcode_id, b.bbcode_tag, b.bbcode_helpline',
		'FROM'		=> array(BBCODES_TABLE => 'b'),
		'WHERE'		=> 'b.display_on_posting = 1',
		'ORDER_BY'	=> 'b.bbcode_tag',
	);

	/**
	* Event to modify the SQL query before custom bbcode data is queried
	*
	* @event core.display_custom_bbcodes_modify_sql
	* @var	array	sql_ary					The SQL array to get the bbcode data
	* @var	int		num_predefined_bbcodes	The number of predefined core bbcodes
	*										(multiplied by factor of 2)
	* @since 3.1.0-a3
	*/
	$vars = array('sql_ary', 'num_predefined_bbcodes');
	extract($phpbb_dispatcher->trigger_event('core.display_custom_bbcodes_modify_sql', compact($vars)));

	$result = $db->sql_query($db->sql_build_query('SELECT', $sql_ary));

	$i = 0;
	while ($row = $db->sql_fetchrow($result))
	{
		// If the helpline is defined within the language file, we will use the localised version, else just use the database entry...
		if (isset($user->lang[strtoupper($row['bbcode_helpline'])]))
		{
			$row['bbcode_helpline'] = $user->lang[strtoupper($row['bbcode_helpline'])];
		}

		$custom_tags = array(
			'BBCODE_NAME'		=> "'[{$row['bbcode_tag']}]', '[/" . str_replace('=', '', $row['bbcode_tag']) . "]'",
			'BBCODE_ID'			=> $num_predefined_bbcodes + ($i * 2),
			'BBCODE_TAG'		=> $row['bbcode_tag'],
			'BBCODE_TAG_CLEAN'	=> str_replace('=', '-', $row['bbcode_tag']),
			'BBCODE_HELPLINE'	=> $row['bbcode_helpline'],
			'A_BBCODE_HELPLINE'	=> str_replace(array('&amp;', '&quot;', "'", '&lt;', '&gt;'), array('&', '"', "\'", '<', '>'), $row['bbcode_helpline']),
		);

		/**
		* Event to modify the template data block of a custom bbcode
		*
		* This event is triggered once per bbcode
		*
		* @event core.display_custom_bbcodes_modify_row
		* @var	array	custom_tags		Template data of the bbcode
		* @var	array	row				The data of the bbcode
		* @since 3.1.0-a1
		*/
		$vars = array('custom_tags', 'row');
		extract($phpbb_dispatcher->trigger_event('core.display_custom_bbcodes_modify_row', compact($vars)));

		$template->assign_block_vars('custom_tags', $custom_tags);

		$i++;
	}
	$db->sql_freeresult($result);

	/**
	* Display custom bbcodes
	*
	* @event core.display_custom_bbcodes
	* @since 3.1.0-a1
	*/
	$phpbb_dispatcher->dispatch('core.display_custom_bbcodes');
}

/**
* Display reasons
*/
function display_reasons($reason_id = 0)
{
	global $db, $user, $template;

	$sql = 'SELECT *
		FROM ' . REPORTS_REASONS_TABLE . '
		ORDER BY reason_order ASC';
	$result = $db->sql_query($sql);

	while ($row = $db->sql_fetchrow($result))
	{
		// If the reason is defined within the language file, we will use the localized version, else just use the database entry...
		if (isset($user->lang['report_reasons']['TITLE'][strtoupper($row['reason_title'])]) && isset($user->lang['report_reasons']['DESCRIPTION'][strtoupper($row['reason_title'])]))
		{
			$row['reason_description'] = $user->lang['report_reasons']['DESCRIPTION'][strtoupper($row['reason_title'])];
			$row['reason_title'] = $user->lang['report_reasons']['TITLE'][strtoupper($row['reason_title'])];
		}

		$template->assign_block_vars('reason', array(
			'ID'			=> $row['reason_id'],
			'TITLE'			=> $row['reason_title'],
			'DESCRIPTION'	=> $row['reason_description'],
			'S_SELECTED'	=> ($row['reason_id'] == $reason_id) ? true : false)
		);
	}
	$db->sql_freeresult($result);
}

/**
* Display user activity (action forum/topic)
*/
function display_user_activity(&$userdata)
{
	global $auth, $template, $db, $user;
	global $phpbb_root_path, $phpEx;
	global $phpbb_container, $phpbb_dispatcher;

	// Do not display user activity for users having more than 5000 posts...
	if ($userdata['user_posts'] > 5000)
	{
		return;
	}

	$forum_ary = array();

	$forum_read_ary = $auth->acl_getf('f_read');
	foreach ($forum_read_ary as $forum_id => $allowed)
	{
		if ($allowed['f_read'])
		{
			$forum_ary[] = (int) $forum_id;
		}
	}

	$forum_ary = array_diff($forum_ary, $user->get_passworded_forums());

	$active_f_row = $active_t_row = array();
	if (!empty($forum_ary))
	{
		$phpbb_content_visibility = $phpbb_container->get('content.visibility');

		// Obtain active forum
		$sql = 'SELECT forum_id, COUNT(post_id) AS num_posts
			FROM ' . POSTS_TABLE . '
			WHERE poster_id = ' . $userdata['user_id'] . '
				AND post_postcount = 1
				AND ' . $phpbb_content_visibility->get_forums_visibility_sql('post', $forum_ary) . '
			GROUP BY forum_id
			ORDER BY num_posts DESC';
		$result = $db->sql_query_limit($sql, 1);
		$active_f_row = $db->sql_fetchrow($result);
		$db->sql_freeresult($result);

		if (!empty($active_f_row))
		{
			$sql = 'SELECT forum_name
				FROM ' . FORUMS_TABLE . '
				WHERE forum_id = ' . $active_f_row['forum_id'];
			$result = $db->sql_query($sql, 3600);
			$active_f_row['forum_name'] = (string) $db->sql_fetchfield('forum_name');
			$db->sql_freeresult($result);
		}

		// Obtain active topic
		$sql = 'SELECT topic_id, COUNT(post_id) AS num_posts
			FROM ' . POSTS_TABLE . '
			WHERE poster_id = ' . $userdata['user_id'] . '
				AND post_postcount = 1
				AND ' . $phpbb_content_visibility->get_forums_visibility_sql('post', $forum_ary) . '
			GROUP BY topic_id
			ORDER BY num_posts DESC';
		$result = $db->sql_query_limit($sql, 1);
		$active_t_row = $db->sql_fetchrow($result);
		$db->sql_freeresult($result);

		if (!empty($active_t_row))
		{
			$sql = 'SELECT topic_title
				FROM ' . TOPICS_TABLE . '
				WHERE topic_id = ' . $active_t_row['topic_id'];
			$result = $db->sql_query($sql);
			$active_t_row['topic_title'] = (string) $db->sql_fetchfield('topic_title');
			$db->sql_freeresult($result);
		}
	}

	/**
	* Alter list of forums and topics to display as active
	*
	* @event core.display_user_activity_modify_actives
	* @var	array	userdata						User's data
	* @var	array	active_f_row					List of active forums
	* @var	array	active_t_row					List of active posts
	* @since 3.1.0-RC3
	*/
	$vars = array('userdata', 'active_f_row', 'active_t_row');
	extract($phpbb_dispatcher->trigger_event('core.display_user_activity_modify_actives', compact($vars)));

	$userdata['active_t_row'] = $active_t_row;
	$userdata['active_f_row'] = $active_f_row;

	$active_f_name = $active_f_id = $active_f_count = $active_f_pct = '';
	if (!empty($active_f_row['num_posts']))
	{
		$active_f_name = $active_f_row['forum_name'];
		$active_f_id = $active_f_row['forum_id'];
		$active_f_count = $active_f_row['num_posts'];
		$active_f_pct = ($userdata['user_posts']) ? ($active_f_count / $userdata['user_posts']) * 100 : 0;
	}

	$active_t_name = $active_t_id = $active_t_count = $active_t_pct = '';
	if (!empty($active_t_row['num_posts']))
	{
		$active_t_name = $active_t_row['topic_title'];
		$active_t_id = $active_t_row['topic_id'];
		$active_t_count = $active_t_row['num_posts'];
		$active_t_pct = ($userdata['user_posts']) ? ($active_t_count / $userdata['user_posts']) * 100 : 0;
	}

	$l_active_pct = ($userdata['user_id'] != ANONYMOUS && $userdata['user_id'] == $user->data['user_id']) ? $user->lang['POST_PCT_ACTIVE_OWN'] : $user->lang['POST_PCT_ACTIVE'];

	$template->assign_vars(array(
		'ACTIVE_FORUM'			=> $active_f_name,
		'ACTIVE_FORUM_POSTS'	=> $user->lang('USER_POSTS', (int) $active_f_count),
		'ACTIVE_FORUM_PCT'		=> sprintf($l_active_pct, $active_f_pct),
		'ACTIVE_TOPIC'			=> censor_text($active_t_name),
		'ACTIVE_TOPIC_POSTS'	=> $user->lang('USER_POSTS', (int) $active_t_count),
		'ACTIVE_TOPIC_PCT'		=> sprintf($l_active_pct, $active_t_pct),
		'U_ACTIVE_FORUM'		=> append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $active_f_id),
		'U_ACTIVE_TOPIC'		=> append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=' . $active_t_id),
		'S_SHOW_ACTIVITY'		=> true)
	);
}

/**
* Topic and forum watching common code
*/
function watch_topic_forum($mode, &$s_watching, $user_id, $forum_id, $topic_id, $notify_status = 'unset', $start = 0, $item_title = '')
{
	global $template, $db, $user, $phpEx, $start, $phpbb_root_path;
	global $request;

	$table_sql = ($mode == 'forum') ? FORUMS_WATCH_TABLE : TOPICS_WATCH_TABLE;
	$where_sql = ($mode == 'forum') ? 'forum_id' : 'topic_id';
	$match_id = ($mode == 'forum') ? $forum_id : $topic_id;
	$u_url = "uid={$user->data['user_id']}";
	$u_url .= ($mode == 'forum') ? '&amp;f' : '&amp;f=' . $forum_id . '&amp;t';
	$is_watching = 0;

	// Is user watching this topic?
	if ($user_id != ANONYMOUS)
	{
		$can_watch = true;

		if ($notify_status == 'unset')
		{
			$sql = "SELECT notify_status
				FROM $table_sql
				WHERE $where_sql = $match_id
					AND user_id = $user_id";
			$result = $db->sql_query($sql);

			$notify_status = ($row = $db->sql_fetchrow($result)) ? $row['notify_status'] : NULL;
			$db->sql_freeresult($result);
		}

		if (!is_null($notify_status) && $notify_status !== '')
		{
			if (isset($_GET['unwatch']))
			{
				$uid = request_var('uid', 0);
				$token = request_var('hash', '');

				if ($token && check_link_hash($token, "{$mode}_$match_id") || confirm_box(true))
				{
					if ($uid != $user_id || $request->variable('unwatch', '', false, \phpbb\request\request_interface::GET) != $mode)
					{
						$redirect_url = append_sid("{$phpbb_root_path}view$mode.$phpEx", "$u_url=$match_id&amp;start=$start");
						$message = $user->lang['ERR_UNWATCHING'];

						if (!$request->is_ajax())
						{
							$message .= '<br /><br />' . $user->lang('RETURN_' . strtoupper($mode), '<a href="' . $redirect_url . '">', '</a>');
						}
						trigger_error($message);
					}

					$sql = 'DELETE FROM ' . $table_sql . "
						WHERE $where_sql = $match_id
							AND user_id = $user_id";
					$db->sql_query($sql);

					$redirect_url = append_sid("{$phpbb_root_path}view$mode.$phpEx", "$u_url=$match_id&amp;start=$start");
					$message = $user->lang['NOT_WATCHING_' . strtoupper($mode)];

					if (!$request->is_ajax())
					{
						$message .= '<br /><br />' . $user->lang('RETURN_' . strtoupper($mode), '<a href="' . $redirect_url . '">', '</a>');
					}
					meta_refresh(3, $redirect_url);
					trigger_error($message);
				}
				else
				{
					$s_hidden_fields = array(
						'uid'		=> $user->data['user_id'],
						'unwatch'	=> $mode,
						'start'		=> $start,
						'f'			=> $forum_id,
					);
					if ($mode != 'forum')
					{
						$s_hidden_fields['t'] = $topic_id;
					}

					if ($item_title == '')
					{
						$confirm_box_message = 'UNWATCH_' . strtoupper($mode);
					}
					else
					{
						$confirm_box_message = $user->lang('UNWATCH_' . strtoupper($mode) . '_DETAILED', $item_title);
					}
					confirm_box(false, $confirm_box_message, build_hidden_fields($s_hidden_fields));
				}
			}
			else
			{
				$is_watching = true;

				if ($notify_status != NOTIFY_YES)
				{
					$sql = 'UPDATE ' . $table_sql . "
						SET notify_status = " . NOTIFY_YES . "
						WHERE $where_sql = $match_id
							AND user_id = $user_id";
					$db->sql_query($sql);
				}
			}
		}
		else
		{
			if (isset($_GET['watch']))
			{
				$uid = request_var('uid', 0);
				$token = request_var('hash', '');

				if ($token && check_link_hash($token, "{$mode}_$match_id") || confirm_box(true))
				{
					if ($uid != $user_id || $request->variable('watch', '', false, \phpbb\request\request_interface::GET) != $mode)
					{
						$redirect_url = append_sid("{$phpbb_root_path}view$mode.$phpEx", "$u_url=$match_id&amp;start=$start");
						$message = $user->lang['ERR_WATCHING'];

						if (!$request->is_ajax())
						{
							$message .= '<br /><br />' . $user->lang('RETURN_' . strtoupper($mode), '<a href="' . $redirect_url . '">', '</a>');
						}
						trigger_error($message);
					}

					$is_watching = true;

					$sql = 'INSERT INTO ' . $table_sql . " (user_id, $where_sql, notify_status)
						VALUES ($user_id, $match_id, " . NOTIFY_YES . ')';
					$db->sql_query($sql);

					$redirect_url = append_sid("{$phpbb_root_path}view$mode.$phpEx", "$u_url=$match_id&amp;start=$start");
					$message = $user->lang['ARE_WATCHING_' . strtoupper($mode)];

					if (!$request->is_ajax())
					{
						$message .= '<br /><br />' . $user->lang('RETURN_' . strtoupper($mode), '<a href="' . $redirect_url . '">', '</a>');
					}
					meta_refresh(3, $redirect_url);
					trigger_error($message);
				}
				else
				{
					$s_hidden_fields = array(
						'uid'		=> $user->data['user_id'],
						'watch'		=> $mode,
						'start'		=> $start,
						'f'			=> $forum_id,
					);
					if ($mode != 'forum')
					{
						$s_hidden_fields['t'] = $topic_id;
					}

					$confirm_box_message = (($item_title == '') ? 'WATCH_' . strtoupper($mode) : $user->lang('WATCH_' . strtoupper($mode) . '_DETAILED', $item_title));
					confirm_box(false, $confirm_box_message, build_hidden_fields($s_hidden_fields));
				}
			}
			else
			{
				$is_watching = 0;
			}
		}
	}
	else
	{
		if ((isset($_GET['unwatch']) && $request->variable('unwatch', '', false, \phpbb\request\request_interface::GET) == $mode) ||
			(isset($_GET['watch']) && $request->variable('watch', '', false, \phpbb\request\request_interface::GET) == $mode))
		{
			login_box();
		}
		else
		{
			$can_watch = 0;
			$is_watching = 0;
		}
	}

	if ($can_watch)
	{
		$s_watching['link'] = append_sid("{$phpbb_root_path}view$mode.$phpEx", "$u_url=$match_id&amp;" . (($is_watching) ? 'unwatch' : 'watch') . "=$mode&amp;start=$start&amp;hash=" . generate_link_hash("{$mode}_$match_id"));
		$s_watching['link_toggle'] = append_sid("{$phpbb_root_path}view$mode.$phpEx", "$u_url=$match_id&amp;" . ((!$is_watching) ? 'unwatch' : 'watch') . "=$mode&amp;start=$start&amp;hash=" . generate_link_hash("{$mode}_$match_id"));
		$s_watching['title'] = $user->lang[(($is_watching) ? 'STOP' : 'START') . '_WATCHING_' . strtoupper($mode)];
		$s_watching['title_toggle'] = $user->lang[((!$is_watching) ? 'STOP' : 'START') . '_WATCHING_' . strtoupper($mode)];
		$s_watching['is_watching'] = $is_watching;
	}

	return;
}

/**
* Get user rank title and image
*
* @param array $user_data the current stored users data
* @param int $user_posts the users number of posts
*
* @return array An associative array containing the rank title (title), the rank image as full img tag (img) and the rank image source (img_src)
*
* Note: since we do not want to break backwards-compatibility, this function will only properly assign ranks to guests if you call it for them with user_posts == false
*/
function phpbb_get_user_rank($user_data, $user_posts)
{
	global $ranks, $config, $phpbb_root_path, $phpbb_path_helper, $phpbb_dispatcher;

	$user_rank_data = array(
		'title'		=> null,
		'img'		=> null,
		'img_src'	=> null,
	);

	/**
	* Preparing a user's rank before displaying
	*
	* @event core.modify_user_rank
	* @var	array	user_data		Array with user's data
	* @var	int		user_posts		User_posts to change
	* @since 3.1.0-RC4
	*/

	$vars = array('user_data', 'user_posts');
	extract($phpbb_dispatcher->trigger_event('core.modify_user_rank', compact($vars)));

	if (empty($ranks))
	{
		global $cache;
		$ranks = $cache->obtain_ranks();
	}

	if (!empty($user_data['user_rank']))
	{

		$user_rank_data['title'] = (isset($ranks['special'][$user_data['user_rank']]['rank_title'])) ? $ranks['special'][$user_data['user_rank']]['rank_title'] : '';

		$user_rank_data['img_src'] = (!empty($ranks['special'][$user_data['user_rank']]['rank_image'])) ? $phpbb_path_helper->update_web_root_path($phpbb_root_path . $config['ranks_path'] . '/' . $ranks['special'][$user_data['user_rank']]['rank_image']) : '';

		$user_rank_data['img'] = (!empty($ranks['special'][$user_data['user_rank']]['rank_image'])) ? '<img src="' . $user_rank_data['img_src'] . '" alt="' . $ranks['special'][$user_data['user_rank']]['rank_title'] . '" title="' . $ranks['special'][$user_data['user_rank']]['rank_title'] . '" />' : '';
	}
	else if ($user_posts !== false)
	{
		if (!empty($ranks['normal']))
		{
			foreach ($ranks['normal'] as $rank)
			{
				if ($user_posts >= $rank['rank_min'])
				{
					$user_rank_data['title'] = $rank['rank_title'];
					$user_rank_data['img_src'] = (!empty($rank['rank_image'])) ? $phpbb_path_helper->update_web_root_path($phpbb_root_path . $config['ranks_path'] . '/' . $rank['rank_image']) : '';
					$user_rank_data['img'] = (!empty($rank['rank_image'])) ? '<img src="' . $user_rank_data['img_src'] . '" alt="' . $rank['rank_title'] . '" title="' . $rank['rank_title'] . '" />' : '';
					break;
				}
			}
		}
	}

	return $user_rank_data;
}

/**
* Prepare profile data
*/
function phpbb_show_profile($data, $user_notes_enabled = false, $warn_user_enabled = false, $check_can_receive_pm = true)
{
	global $config, $auth, $user, $phpEx, $phpbb_root_path, $phpbb_dispatcher;

	$username = $data['username'];
	$user_id = $data['user_id'];

	$user_rank_data = phpbb_get_user_rank($data, (($user_id == ANONYMOUS) ? false : $data['user_posts']));

	if ((!empty($data['user_allow_viewemail']) && $auth->acl_get('u_sendemail')) || $auth->acl_get('a_user'))
	{
		$email = ($config['board_email_form'] && $config['email_enable']) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=email&amp;u=' . $user_id) : (($config['board_hide_emails'] && !$auth->acl_get('a_user')) ? '' : 'mailto:' . $data['user_email']);
	}
	else
	{
		$email = '';
	}

	if ($config['load_onlinetrack'])
	{
		$update_time = $config['load_online_time'] * 60;
		$online = (time() - $update_time < $data['session_time'] && ((isset($data['session_viewonline']) && $data['session_viewonline']) || $auth->acl_get('u_viewonline'))) ? true : false;
	}
	else
	{
		$online = false;
	}

	if ($data['user_allow_viewonline'] || $auth->acl_get('u_viewonline'))
	{
		$last_active = (!empty($data['session_time'])) ? $data['session_time'] : $data['user_lastvisit'];
	}
	else
	{
		$last_active = '';
	}

	$age = '';

	if ($config['allow_birthdays'] && $data['user_birthday'])
	{
		list($bday_day, $bday_month, $bday_year) = array_map('intval', explode('-', $data['user_birthday']));

		if ($bday_year)
		{
			$now = $user->create_datetime();
			$now = phpbb_gmgetdate($now->getTimestamp() + $now->getOffset());

			$diff = $now['mon'] - $bday_month;
			if ($diff == 0)
			{
				$diff = ($now['mday'] - $bday_day < 0) ? 1 : 0;
			}
			else
			{
				$diff = ($diff < 0) ? 1 : 0;
			}

			$age = max(0, (int) ($now['year'] - $bday_year - $diff));
		}
	}

	if (!function_exists('phpbb_get_banned_user_ids'))
	{
		include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
	}

	// Can this user receive a Private Message?
	$can_receive_pm = $check_can_receive_pm && (
		// They must be a "normal" user
		$data['user_type'] != USER_IGNORE &&

		// They must not be deactivated by the administrator
		($data['user_type'] != USER_INACTIVE || $data['user_inactive_reason'] != INACTIVE_MANUAL) &&

		// They must be able to read PMs
		sizeof($auth->acl_get_list($user_id, 'u_readpm')) &&

		// They must not be permanently banned
		!sizeof(phpbb_get_banned_user_ids($user_id, false)) &&

		// They must allow users to contact via PM
		(($auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_')) || $data['user_allow_pm'])
	);

	// Dump it out to the template
	$template_data = array(
		'AGE'			=> $age,
		'RANK_TITLE'	=> $user_rank_data['title'],
		'JOINED'		=> $user->format_date($data['user_regdate']),
		'LAST_ACTIVE'	=> (empty($last_active)) ? ' - ' : $user->format_date($last_active),
		'POSTS'			=> ($data['user_posts']) ? $data['user_posts'] : 0,
		'WARNINGS'		=> isset($data['user_warnings']) ? $data['user_warnings'] : 0,

		'USERNAME_FULL'		=> get_username_string('full', $user_id, $username, $data['user_colour']),
		'USERNAME'			=> get_username_string('username', $user_id, $username, $data['user_colour']),
		'USER_COLOR'		=> get_username_string('colour', $user_id, $username, $data['user_colour']),
		'U_VIEW_PROFILE'	=> get_username_string('profile', $user_id, $username, $data['user_colour']),

		'A_USERNAME'		=> addslashes(get_username_string('username', $user_id, $username, $data['user_colour'])),

		'AVATAR_IMG'		=> phpbb_get_user_avatar($data),
		'ONLINE_IMG'		=> (!$config['load_onlinetrack']) ? '' : (($online) ? $user->img('icon_user_online', 'ONLINE') : $user->img('icon_user_offline', 'OFFLINE')),
		'S_ONLINE'			=> ($config['load_onlinetrack'] && $online) ? true : false,
		'RANK_IMG'			=> $user_rank_data['img'],
		'RANK_IMG_SRC'		=> $user_rank_data['img_src'],
		'S_JABBER_ENABLED'	=> ($config['jab_enable']) ? true : false,

		'S_WARNINGS'	=> ($auth->acl_getf_global('m_') || $auth->acl_get('m_warn')) ? true : false,

		'U_SEARCH_USER' => ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", "author_id=$user_id&amp;sr=posts") : '',
		'U_NOTES'		=> ($user_notes_enabled && $auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=notes&amp;mode=user_notes&amp;u=' . $user_id, true, $user->session_id) : '',
		'U_WARN'		=> ($warn_user_enabled && $auth->acl_get('m_warn')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=warn&amp;mode=warn_user&amp;u=' . $user_id, true, $user->session_id) : '',
		'U_PM'			=> ($config['allow_privmsg'] && $auth->acl_get('u_sendpm') && $can_receive_pm) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&amp;mode=compose&amp;u=' . $user_id) : '',
		'U_EMAIL'		=> $email,
		'U_JABBER'		=> ($data['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=jabber&amp;u=' . $user_id) : '',

		'USER_JABBER'		=> ($config['jab_enable']) ? $data['user_jabber'] : '',
		'USER_JABBER_IMG'	=> ($config['jab_enable'] && $data['user_jabber']) ? $user->img('icon_contact_jabber', $data['user_jabber']) : '',

		'L_SEND_EMAIL_USER' => $user->lang('SEND_EMAIL_USER', $username),
		'L_CONTACT_USER'	=> $user->lang('CONTACT_USER', $username),
		'L_VIEWING_PROFILE' => $user->lang('VIEWING_PROFILE', $username),
	);

	/**
	* Preparing a user's data before displaying it in profile and memberlist
	*
	* @event core.memberlist_prepare_profile_data
	* @var	array	data				Array with user's data
	* @var	array	template_data		Template array with user's data
	* @since 3.1.0-a1
	*/
	$vars = array('data', 'template_data');
	extract($phpbb_dispatcher->trigger_event('core.memberlist_prepare_profile_data', compact($vars)));

	return $template_data;
}

function phpbb_sort_last_active($first, $second)
{
	global $id_cache, $sort_dir;

	$lesser_than = ($sort_dir === 'd') ? -1 : 1;

	if (isset($id_cache[$first]['group_leader']) && $id_cache[$first]['group_leader'] && (!isset($id_cache[$second]['group_leader']) || !$id_cache[$second]['group_leader']))
	{
		return -1;
	}
	else if (isset($id_cache[$second]['group_leader']) && (!isset($id_cache[$first]['group_leader']) || !$id_cache[$first]['group_leader']) && $id_cache[$second]['group_leader'])
	{
		return 1;
	}
	else
	{
		return $lesser_than * (int) ($id_cache[$first]['last_visit'] - $id_cache[$second]['last_visit']);
	}
}
span> msgid "" "Some of the early i486DX-100 chips cannot reliably return to operating mode " "after the \"halt\" instruction is used" msgstr "" "প্রথম দিক্‌কার কিছু i486DX-100 চিপ \"থামো\" আদেশ ব্যবহৃত হওয়ার পর আর স্বাভাবিক " "অবস্থায় ফিরতে পারে না" #: harddrake2:84 #, c-format msgid "sub generation of the cpu" msgstr "cpu এর সাব-জেনারেশন" #: harddrake2:85 #, c-format msgid "generation of the cpu (eg: 8 for Pentium III, ...)" msgstr "cpu এর জেনারেশন (যেমন: পেন্টিয়াম ৩ এর জন্য ৮, ...)" #: harddrake2:86 #, c-format msgid "Model name" msgstr "মডেলের নাম" #: harddrake2:86 #, c-format msgid "official vendor name of the cpu" msgstr "cpu এর অফিসিয়াল নির্মাতার নাম" #: harddrake2:87 #, c-format msgid "the name of the CPU" msgstr "CPU এর নাম" #: harddrake2:88 #, c-format msgid "Processor ID" msgstr "প্রসেসর আইডি" #: harddrake2:88 #, c-format msgid "the number of the processor" msgstr "প্রসেসর নম্বর" #: harddrake2:89 #, c-format msgid "Model stepping" msgstr "মডেল পদক্ষেপ" #: harddrake2:89 #, c-format msgid "stepping of the cpu (sub model (generation) number)" msgstr "সি-পি-ইউ'র পদক্ষেপ (সাব মডেল (জেনারেশন) নম্বর)" #: harddrake2:90 #, c-format msgid "the vendor name of the processor" msgstr "প্রসেসর নির্মাতার নাম" #: harddrake2:91 #, c-format msgid "Write protection" msgstr "লেখা প্রতিরোধ" #: harddrake2:91 #, c-format msgid "" "the WP flag in the CR0 register of the cpu enforce write protection at the " "memory page level, thus enabling the processor to prevent unchecked kernel " "accesses to user memory (aka this is a bug guard)" msgstr "" "সিপিইউ'র CR0 রেজিস্টারে থাকা WP ফ্ল্যাগ জোর করে মেমরি পেজ লেভেলে কোন কিছু লেখা " "প্রতিরোধ করে, এটা প্রসেসরকে পরীক্ষা না করা কার্নেলকে ব্যবহারকারীর মেমরিতে প্রবেশ " "প্রতিরোধ করে (aka এটা একটি ত্রুটি বিরুদ্ধ পাহারাদার)" #: harddrake2:95 #, c-format msgid "Floppy format" msgstr "ফ্লপি ফরম্যাট" #: harddrake2:95 #, c-format msgid "format of floppies supported by the drive" msgstr "ড্রাইভ সমর্থিত ফ্লপির ফরম্যাট" #: harddrake2:99 #, c-format msgid "Channel" msgstr "চ্যানেল" #: harddrake2:99 #, c-format msgid "EIDE/SCSI channel" msgstr "EIDE/SCSI চ্যানেল" #: harddrake2:100 #, c-format msgid "Disk identifier" msgstr "ডিস্ক চিহ্নিতকারক" #: harddrake2:100 #, c-format msgid "usually the disk serial number" msgstr "ডিস্কের স্বাভাবিক ধারাবাহিক সংখ্যা" #: harddrake2:101 #, c-format msgid "Logical unit number" msgstr "লজিকাল ইউনিট সংখ্যা" #: harddrake2:101 #, c-format msgid "" "the SCSI target number (LUN). SCSI devices connected to a host are uniquely " "identified by a\n" "channel number, a target id and a logical unit number" msgstr "" "SCSI লক্ষ্য সংখ্যা (LUN)। SCSI যন্ত্রগুলো একটি হোস্টের সংগে যুক্ত যেগুলো এটি একটি " "চ্যানেল সংখ্যা, একটি লক্ষ্যমাত্রার আইডি \n" "এবং একটি লজিকাল ইউনিট সংখ্যা কর্তৃক অদ্বিতীয়ভাবে চিহ্নিত" #. -PO: here, "size" is the size of the ram chip (eg: 128Mo, 256Mo, ...) #: harddrake2:108 #, c-format msgid "Installed size" msgstr "ইনস্টলপরবর্তী আকার" #: harddrake2:108 #, c-format msgid "Installed size of the memory bank" msgstr "মেমরী ব্যংকটির ইনস্টকৃত আকার" #: harddrake2:109 #, c-format msgid "Enabled Size" msgstr "সক্রিয়কৃত আকার" #: harddrake2:109 #, c-format msgid "Enabled size of the memory bank" msgstr "মেমরী ব্যংকের সক্রিয়কৃত আকার" #: harddrake2:110 harddrake2:119 #, c-format msgid "Type" msgstr "ধরণ" #: harddrake2:110 #, c-format msgid "type of the memory device" msgstr "মেমরী ডিভাইসের ধরন" #: harddrake2:111 #, c-format msgid "Speed" msgstr "গতি" #: harddrake2:111 #, c-format msgid "Speed of the memory bank" msgstr "মেমরী ব্যংকের গতি" #: harddrake2:112 #, c-format msgid "Bank connections" msgstr "ব্যাংক সংযোগসমূহ" #: harddrake2:113 #, c-format msgid "Socket designation of the memory bank" msgstr "মেমরী ব্যংকটির সকেটের নাম" #: harddrake2:117 #, c-format msgid "Device file" msgstr "ডিভাইস ফাইল" #: harddrake2:117 #, c-format msgid "" "the device file used to communicate with the kernel driver for the mouse" msgstr "মাউসের জন্য কার্ণেল ড্রাইভারের সাথে যোগাযোগে ব্যবহৃত ডিভাইস ফাইল" #: harddrake2:118 #, c-format msgid "Emulated wheel" msgstr "সমকক্ষ চাকা" #: harddrake2:118 #, c-format msgid "whether the wheel is emulated or not" msgstr "চাকা সমকক্ষ হবে কিংবা হবে না" #: harddrake2:119 #, c-format msgid "the type of the mouse" msgstr "মাউসের ধরণ" #: harddrake2:120 #, c-format msgid "the name of the mouse" msgstr "মাউসের নাম" #: harddrake2:121 #, c-format msgid "Number of buttons" msgstr "বাটনের নম্বর" #: harddrake2:121 #, c-format msgid "the number of buttons the mouse has" msgstr "মাউসের বাটন সংখ্যা" #: harddrake2:122 #, c-format msgid "the type of bus on which the mouse is connected" msgstr "মাউসটি যে বাসে সংযুক্ত তার ধরণ" #: harddrake2:123 #, c-format msgid "Mouse protocol used by X11" msgstr "X11 কর্তৃক ব্যবহৃত মাউস প্রোটোকল" #: harddrake2:123 #, c-format msgid "the protocol that the graphical desktop use with the mouse" msgstr "মাউসের সাথে গ্রাফিকাল ডেস্কটপ ব্যবহারের প্রোটোকল" #: harddrake2:130 harddrake2:139 harddrake2:146 harddrake2:154 harddrake2:334 #, c-format msgid "Identification" msgstr "শনাক্তকারন" #: harddrake2:131 harddrake2:147 #, c-format msgid "Connection" msgstr "সংযোগ" #: harddrake2:140 #, c-format msgid "Performances" msgstr "সম্পাদন কার্য" #: harddrake2:141 #, c-format msgid "Bugs" msgstr "প্রোগ্রাম ত্রুটিসমূহ" #: harddrake2:142 #, c-format msgid "FPU" msgstr "এফপিউ" #: harddrake2:149 #, c-format msgid "Device" msgstr "ডিভাইস" #: harddrake2:150 #, c-format msgid "Partitions" msgstr "পার্টিশনসমূহ" #: harddrake2:155 #, c-format msgid "Features" msgstr "বৈশিষ্ট্যসমূহ" #. -PO: please keep all "/" characters !!! #: harddrake2:178 logdrake:78 #, c-format msgid "/_Options" msgstr "/অপশন (_ও)" #: harddrake2:179 harddrake2:208 logdrake:80 #, c-format msgid "/_Help" msgstr "/সাহায্য _য" #: harddrake2:183 #, c-format msgid "/Autodetect _printers" msgstr "/স্বয়ংক্রিয় ছাপাযন্ত্র" #: harddrake2:184 #, c-format msgid "/Autodetect _modems" msgstr "/স্বয়ংক্রিয় মডেম (_ম)" #: harddrake2:185 #, c-format msgid "/Autodetect _jaz drives" msgstr "/স্বয়ংক্রিয় জায (jaz) ড্রাইভ (_J)" #: harddrake2:186 #, c-format msgid "/Autodetect parallel _zip drives" msgstr "" #: harddrake2:190 #, fuzzy, c-format msgid "Hardware Configuration" msgstr "নেটওয়ার্ক কনফিগারেশন" #: harddrake2:197 #, c-format msgid "/_Quit" msgstr "/পরিত্যাগ (_প)" #: harddrake2:210 #, c-format msgid "/_Fields description" msgstr "/ফিল্ডের বর্ণনা (_ফ)" #: harddrake2:212 #, c-format msgid "Harddrake help" msgstr "হার্ডড্রেকের সাহায্য" #: harddrake2:221 #, c-format msgid "Select a device!" msgstr "একটি যন্ত্র বেছে নিন!" #: harddrake2:221 #, c-format msgid "" "Once you've selected a device, you'll be able to see the device information " "in fields displayed on the right frame (\"Information\")" msgstr "" "কখনো যদি কোন যন্ত্র চিহ্নিত করে থাকেন, তাহলে আপনি ডান ফ্রেমে\"তথ্য\" যন্ত্র সম্পর্কিত " "তচথ্য দেখতে সমর্থ হবেন" #: harddrake2:227 #, c-format msgid "/_Report Bug" msgstr "/_বাগ রিপোর্ট করো" #: harddrake2:229 #, c-format msgid "/_About..." msgstr "/_সম্বন্ধে..." #: harddrake2:232 #, fuzzy, c-format msgid "Harddrake" msgstr "হার্ডড্রেক২" #: harddrake2:236 #, c-format msgid "This is HardDrake, a %s hardware configuration tool." msgstr "" #: harddrake2:269 #, c-format msgid "Detected hardware" msgstr "সনাক্তকৃত হার্ডওয়্যার" #: harddrake2:272 scannerdrake:286 #, c-format msgid "Information" msgstr "তথ্য" #: harddrake2:274 #, c-format msgid "Set current driver options" msgstr "" #: harddrake2:281 #, c-format msgid "Run config tool" msgstr "কনফিগ টুল চালাও" #: harddrake2:301 #, c-format msgid "" "Click on a device in the left tree in order to display its information here." msgstr "" "বামপাশের ট্রীতে কোন একটি যন্ত্রের উপর ক্লিক করুন এখানে তার সম্পর্কে তথ্য দেখার জন্য।" #: harddrake2:321 notify-x11-free-driver-switch:13 #, c-format msgid "unknown" msgstr "অজানা" #: harddrake2:322 #, c-format msgid "Unknown" msgstr "অজানা" #: harddrake2:342 #, c-format msgid "Misc" msgstr "আনুসাঙ্গিক" #: harddrake2:417 #, c-format msgid "secondary" msgstr "মাধ্যমিক" #: harddrake2:417 #, c-format msgid "primary" msgstr "প্রাইমারী" #: harddrake2:421 #, c-format msgid "burner" msgstr "বার্ণার" #: harddrake2:421 #, c-format msgid "DVD" msgstr "DVD" #: harddrake2:473 #, c-format msgid "Unknown/Others" msgstr "অজানা/অন্যান্য" #: harddrake2:515 #, c-format msgid "The following packages need to be installed:\n" msgstr "নিম্নোক্ত প্যাকেজসমূহ ইনস্টল করা প্রয়োজন:\n" #: localedrake:38 #, c-format msgid "LocaleDrake" msgstr "LocaleDrake" #: localedrake:44 #, c-format msgid "You should install the following packages: %s" msgstr "নিম্নের প্যাকেজসমুহ আপনার ইনস্টল করা উচিত: %s" #. -PO: the following is used to combine packages names. eg: "initscripts, harddrake, yudit" #: localedrake:47 #, c-format msgid ", " msgstr ", " #: logdrake:51 #, c-format msgid "Mandriva Linux Tools Logs" msgstr "Mandriva Linux টুলসমুহের লগ" #: logdrake:65 #, c-format msgid "Show only for the selected day" msgstr "শুধুমাত্র নির্বাচিত দিনসমূহে দেখাবে" #: logdrake:72 #, c-format msgid "/File/_New" msgstr "/File/_নতুন" #: logdrake:72 #, c-format msgid "<control>N" msgstr "<control>0x10009a8" #: logdrake:73 #, c-format msgid "/File/_Open" msgstr "/File/_খোলো" #: logdrake:73 #, c-format msgid "<control>O" msgstr "<control>0x1000993" #: logdrake:74 #, c-format msgid "/File/_Save" msgstr "/ফাইল/সংরক্ষণ (_স)" #: logdrake:74 #, c-format msgid "<control>S" msgstr "<control>0x100098f" #: logdrake:75 #, c-format msgid "/File/Save _As" msgstr "/ফাইল/সংরক্ষণের রূপ (_র)" #: logdrake:76 #, c-format msgid "/File/-" msgstr "/ফাইল/-" #: logdrake:79 #, c-format msgid "/Options/Test" msgstr "/অপশন/বাছাই" #: logdrake:81 #, c-format msgid "/Help/_About..." msgstr "/সাহায্য/_সম্বন্ধে..." #: logdrake:110 #, c-format msgid "" "_:this is the auth.log log file\n" "Authentication" msgstr "বিশুদ্ধতা" #: logdrake:111 #, c-format msgid "" "_:this is the user.log log file\n" "User" msgstr "ব্যবহারকারী" #: logdrake:112 #, c-format msgid "" "_:this is the /var/log/messages log file\n" "Messages" msgstr "বার্তাসমূহ" #: logdrake:113 #, c-format msgid "" "_:this is the /var/log/syslog log file\n" "Syslog" msgstr "Syslog" #: logdrake:117 #, c-format msgid "search" msgstr "খোঁজ" #: logdrake:129 #, c-format msgid "A tool to monitor your logs" msgstr "আপনার লগ পর্যবেক্ষন করার একটি টুল" #: logdrake:131 #, c-format msgid "Settings" msgstr "সেটিং" #: logdrake:134 #, c-format msgid "Matching" msgstr "মিলানো" #: logdrake:135 #, c-format msgid "but not matching" msgstr "কিন্তু মিলছে না" #: logdrake:138 #, c-format msgid "Choose file" msgstr "ফাইল পছন্দ করো" #: logdrake:150 #, c-format msgid "Calendar" msgstr "কেলেন্ডার" #: logdrake:159 #, c-format msgid "Content of the file" msgstr "ফাইলের সূচী" #: logdrake:163 logdrake:407 #, c-format msgid "Mail alert" msgstr "মেইল সংকেত" #: logdrake:170 #, c-format msgid "The alert wizard has failed unexpectedly:" msgstr "সংকেত সাহায্যকারীটি অনাকাঙ্খিতভাবে বিফল হয়েছে:" #: logdrake:174 #, c-format msgid "Save" msgstr "সংরক্ষণ" #: logdrake:222 #, c-format msgid "please wait, parsing file: %s" msgstr "অনুগ্রহ করে অপেক্ষা করুন, ফাইলের শব্দ বিশ্লেষণ হচ্ছে: %s" #: logdrake:244 #, c-format msgid "Sorry, log file isn't available!" msgstr "" #: logdrake:292 #, c-format msgid "Error while opening \"%s\" log file: %s\n" msgstr "" #: logdrake:385 #, c-format msgid "Apache World Wide Web Server" msgstr "এ্যপাচী ওয়াল্ড ওয়াইড ওয়েব সার্ভার" #: logdrake:386 #, c-format msgid "Domain Name Resolver" msgstr "ডোমেইনের নাম সমাধান (Resolve)...." #: logdrake:387 #, c-format msgid "Ftp Server" msgstr "Ftp সার্ভার" #: logdrake:388 #, c-format msgid "Postfix Mail Server" msgstr "Postfix মেইল সার্ভার" #: logdrake:389 #, c-format msgid "Samba Server" msgstr "Samba সার্ভার" #: logdrake:390 #, c-format msgid "SSH Server" msgstr "SSH সার্ভিস" #: logdrake:391 #, c-format msgid "Webmin Service" msgstr "Webmin সার্ভিস" #: logdrake:392 #, c-format msgid "Xinetd Service" msgstr "Xinetd সার্ভিস" #: logdrake:401 #, c-format msgid "Configure the mail alert system" msgstr "মেইলের সংকেত সিস্টেমটি কনফিগার করো" #: logdrake:402 #, c-format msgid "Stop the mail alert system" msgstr "মেইলের সংকেত সিস্টেমটি বন্ধ করো" #: logdrake:410 #, c-format msgid "Mail alert configuration" msgstr "মেইলের সংকেত কনফিগারেশন" #: logdrake:411 #, c-format msgid "" "Welcome to the mail configuration utility.\n" "\n" "Here, you'll be able to set up the alert system.\n" msgstr "" "মেইল কনফিগারেশন ইউটিলিটিতে আপনাকে স্বাগতম।\n" "\n" "এখানে আপনি আপানার সংকেতের সিস্টেম সেট করতে পারবেন।\n" #: logdrake:414 #, c-format msgid "What do you want to do?" msgstr "আপনি কি করতে চান?" #: logdrake:421 #, c-format msgid "Services settings" msgstr "সার্ভিসের সেটিংসমূহ" #: logdrake:422 #, c-format msgid "" "You will receive an alert if one of the selected services is no longer " "running" msgstr "নির্বাচিত সার্ভিসটি আর না চললে আপনি একটি সংকেত পাবেন" #: logdrake:429 #, c-format msgid "Load setting" msgstr "সেটিং লোড করো" #: logdrake:430 #, c-format msgid "You will receive an alert if the load is higher than this value" msgstr "এই মানের চাইতের বেশী লোড হলে আপনি একটি সংকেত পাবেন" #: logdrake:431 #, c-format msgid "" "_: load here is a noun, the load of the system\n" "Load" msgstr "লোড" #: logdrake:436 #, c-format msgid "Alert configuration" msgstr "সংকেত কনফিগারেশন" #: logdrake:437 #, c-format msgid "Please enter your email address below " msgstr "নীচে আপনার ইমেইল ঠিকানা প্রবেশ করুন" #: logdrake:438 #, c-format msgid "and enter the name (or the IP) of the SMTP server you wish to use" msgstr "" "এবং আপনি যেই SMTP সার্ভারটি ব্যবহার করতে চান তার নাম (অথবা IP ঠিকানা) প্রবেশ করুন" #: logdrake:445 #, c-format msgid "\"%s\" neither is a valid email nor is an existing local user!" msgstr "\"%s\" কোন সঠিক ই-মেইলও নয় আবার স্থানীয় কোন ব্যবহারকারীও নয়!" #: logdrake:450 #, c-format msgid "" "\"%s\" is a local user, but you did not select a local smtp, so you must use " "a complete email address!" msgstr "" "\"%s\" একজন স্থানীয় ব্যবহারকারী, কিন্তু আপনি কোন স্থানীয় smtp বাছাই করেন নি, " "সুতরাং আপনাকে অবশ্যইএকটি সম্পূর্ণ ই-মেইল ঠিকানা ব্যবহার করতে হবে!" #: logdrake:457 #, c-format msgid "The wizard successfully configured the mail alert." msgstr "এই সাহায্যকারীটি সঠিকভাবে মেইল এলার্ট কনফিগার করেছে।" #: logdrake:463 #, c-format msgid "The wizard successfully disabled the mail alert." msgstr "এই সাহায্যকারীটি সঠিকভাবে মেইল এলার্ট নিষ্কৃয় করেছে।" #: logdrake:522 #, c-format msgid "Save as.." msgstr "...এর মত সেভ করো" #: notify-x11-free-driver-switch:15 #, c-format msgid "" "The proprietary driver for your graphic card can not be found, the system is " "now using the free software driver (%s)." msgstr "" #: scannerdrake:51 #, c-format msgid "" "SANE packages need to be installed to use scanners.\n" "\n" "Do you want to install the SANE packages?" msgstr "" "স্কেনার ব্যবহার করার জন্য SANE প্যাকেজগুলি ইনস্টল করতে হবে।\n" "\n" "আপনি কি SANE প্যাকেজ ইনস্টল করতে চান?" #: scannerdrake:55 #, c-format msgid "Aborting Scannerdrake." msgstr "Scannerdrake থেকে বের হচ্ছি।" #: scannerdrake:60 #, c-format msgid "" "Could not install the packages needed to set up a scanner with Scannerdrake." msgstr "" "Scannerdrake-এর মাধ্যমে একটি স্কেনারকে সেটআপ করার জন্য যেসব প্যাকেজ প্রয়োজন তা " "ইনস্টল করা যায়নি।" #: scannerdrake:61 #, c-format msgid "Scannerdrake will not be started now." msgstr "Scannerdrake এখন চালু হবেনা।" #: scannerdrake:67 scannerdrake:506 #, c-format msgid "Searching for configured scanners..." msgstr "কনফিগার করা স্কেনারগুলি খোঁজা হচ্ছে ..." #: scannerdrake:71 scannerdrake:510 #, c-format msgid "Searching for new scanners..." msgstr "নতুন স্কেনারের জন্য খোঁজ চলছে ..." #: scannerdrake:79 scannerdrake:532 #, c-format msgid "Re-generating list of configured scanners..." msgstr "ফনফিগার করা স্কেনারগুলির লিষ্ট পুনরায় তৈরী করা হচ্ছে ..." #: scannerdrake:101 #, c-format msgid "The %s is not supported by this version of %s." msgstr "%s-টি এই ভার্সনের %s-এ সাপোর্ট করেনা।" #: scannerdrake:104 scannerdrake:115 #, fuzzy, c-format msgid "Confirmation" msgstr "কনফিগারেশন" #: scannerdrake:104 #, c-format msgid "%s found on %s, configure it automatically?" msgstr "%s-কে %s-এ পাওয়া গ্যাছে, সয়ংক্রিয়ভাবে কনফিগার করবো?" #: scannerdrake:116 #, c-format msgid "%s is not in the scanner database, configure it manually?" msgstr "%s স্কেনার ডাটাবেইজে নেই, মেনুয়ালি কনফিগার করবেন?" #: scannerdrake:130 #, fuzzy, c-format msgid "Scanner configuration" msgstr "সংকেত কনফিগারেশন" #: scannerdrake:131 #, c-format msgid "Select a scanner model (Detected model: %s, Port: %s)" msgstr "" #: scannerdrake:133 #, c-format msgid "Select a scanner model (Detected model: %s)" msgstr "" #: scannerdrake:134 #, c-format msgid "Select a scanner model (Port: %s)" msgstr "" #: scannerdrake:136 scannerdrake:139 #, c-format msgid " (UNSUPPORTED)" msgstr " (সাপোর্ট করা হয় না)" #: scannerdrake:142 #, c-format msgid "The %s is not supported under Linux." msgstr "%s টি লিনাক্স সাপোর্ট করেনা।" #: scannerdrake:169 scannerdrake:183 #, c-format msgid "Do not install firmware file" msgstr "ফার্মওয়্যার ফাইল ইনস্টল করবেনা" #: scannerdrake:172 scannerdrake:222 #, fuzzy, c-format msgid "Scanner Firmware" msgstr "স্কেনার শেয়ারিং" #: scannerdrake:173 scannerdrake:225 #, c-format msgid "" "It is possible that your %s needs its firmware to be uploaded everytime when " "it is turned on." msgstr "হয়তো আপনার %s-এর ফার্মওয়্যার প্রতিবার চালু করার সময় আপলোড করতে হবে।" #: scannerdrake:174 scannerdrake:226 #, c-format msgid "If this is the case, you can make this be done automatically." msgstr "তাই যদি হয়, আপনি এটাকে সয়ংক্রিয়ভাবে করাতে পারেন।" #: scannerdrake:175 scannerdrake:229 #, c-format msgid "" "To do so, you need to supply the firmware file for your scanner so that it " "can be installed." msgstr "" "আপনাকে আপনার স্কেনারের জন্য ফার্মওয়্যার ফাইলটি সরবরাহ করতে হবে যাতেকরে এটাকে " "ইনস্টল করা যায়।" #: scannerdrake:176 scannerdrake:230 #, c-format msgid "" "You find the file on the CD or floppy coming with the scanner, on the " "manufacturer's home page, or on your Windows partition." msgstr "" "এই ফাইলটি আপনি স্কেনারের সাথে আসা সিডি অথবে ফ্লপি, অথবা পস্তুতকারাকের ওয়েব সাইট " "থেকে, অথবা আপনার উইন্ডোজ পার্টিশন থেকে পেতে পারেন।" #: scannerdrake:178 scannerdrake:237 #, c-format msgid "Install firmware file from" msgstr "এখান থেকে ফার্মওয়্যার ফাইল ইনস্টল করো" #: scannerdrake:180 scannerdrake:188 scannerdrake:239 scannerdrake:246 #, c-format msgid "CD-ROM" msgstr "সিডি-রম" #: scannerdrake:181 scannerdrake:190 scannerdrake:240 scannerdrake:248 #, c-format msgid "Floppy Disk" msgstr "ফ্লপি ডিস্ক" #: scannerdrake:182 scannerdrake:192 scannerdrake:241 scannerdrake:250 #, c-format msgid "Other place" msgstr "অন্যান্য স্থান" #: scannerdrake:198 #, c-format msgid "Select firmware file" msgstr "ফার্মওয়্যার ফাইল সিলেক্ট করুন" #: scannerdrake:201 scannerdrake:260 #, c-format msgid "The firmware file %s does not exist or is unreadable!" msgstr "%s ফার্মওয়্যার ফাইলটি উপস্থিত নেই অথবা পড়া যাচ্ছেনা!" #: scannerdrake:224 #, c-format msgid "" "It is possible that your scanners need their firmware to be uploaded " "everytime when they are turned on." msgstr "হয়তো আপনার স্কেনারগুলির ফার্মওয়্যার প্রতিবার চালু করার সময় আপলোড করতে হবে।" #: scannerdrake:228 #, c-format msgid "" "To do so, you need to supply the firmware files for your scanners so that it " "can be installed." msgstr "" "আপনাকে আপনার স্কেনারের জন্য ফার্মওয়্যার ফাইলটগুলি সরবরাহ করতে হবে যাতেকরে এটাকে " "ইনস্টল করা যায়।" #: scannerdrake:231 #, c-format msgid "" "If you have already installed your scanner's firmware you can update the " "firmware here by supplying the new firmware file." msgstr "" "যদি আপনি এর মধ্যে আপনার স্কেনারের ফার্মওয়্যার ইনস্টল করে থাকেন তাহলে আপনি নতুন " "একটি ফার্মওয়্যার ফাইল সরবরাহ করে তা আপডেট করতে পারেন।" #: scannerdrake:233 #, c-format msgid "Install firmware for the" msgstr "-এর জন্য ফার্মওয়্যার ইনস্টল করো" #: scannerdrake:256 #, c-format msgid "Select firmware file for the %s" msgstr "%s-এর জন্য একটি ফার্মওয়্যার ফাইল নির্বাচন করুন" #: scannerdrake:274 #, c-format msgid "Could not install the firmware file for the %s!" msgstr "%s-এর ফার্মওয়্যার ফাইলটি ইনস্টল করা সম্ভব হলোনা!" #: scannerdrake:287 #, c-format msgid "The firmware file for your %s was successfully installed." msgstr "%s-এর ফার্মওয়্যার ফাইলটি সুষ্ঠভাবে ইনস্টল হয়েছে।" #: scannerdrake:297 #, c-format msgid "The %s is unsupported" msgstr "%s সাপোর্ট করেনা" #: scannerdrake:302 #, c-format msgid "" "The %s must be configured by printerdrake.\n" "You can launch printerdrake from the %s Control Center in Hardware section." msgstr "" "Printerdrake-এর মাধ্যমে অবশ্যই %s কনফিগার করতে হবে।\n" "আপনি %s কন্ট্রোল সেন্টারের হার্ডওয়্যার সেকশন থেকে printerdrake চালাতে পারেন।" #: scannerdrake:320 #, c-format msgid "Setting up kernel modules..." msgstr "কার্নেল মডিউল সেট আপ করছি..." #: scannerdrake:330 scannerdrake:337 scannerdrake:367 #, c-format msgid "Auto-detect available ports" msgstr "সয়ংক্রিয়ভাবে বরাদ্দকৃত পোর্টসমূহ সনাক্ত করো" #: scannerdrake:331 scannerdrake:377 #, fuzzy, c-format msgid "Device choice" msgstr "ডিভাইস ফাইল" #: scannerdrake:332 scannerdrake:378 #, c-format msgid "Please select the device where your %s is attached" msgstr "আপনি একটি ডিভাইস নির্বাচন করুন যেখানে আপনার %s সংযুক্ত আছে" #: scannerdrake:333 #, c-format msgid "(Note: Parallel ports cannot be auto-detected)" msgstr "(নির্দেশ: প্যারালাল পোর্টগুলি সয়ংক্রিয়ভাবে সনাক্ত হবেনা)" #: scannerdrake:335 scannerdrake:380 #, c-format msgid "choose device" msgstr "ডিভাইস পছন্দ করো" #: scannerdrake:369 #, c-format msgid "Searching for scanners..." msgstr "স্কেনারের খোঁজ করা হচ্ছে..." #: scannerdrake:405 scannerdrake:412 #, c-format msgid "Attention!" msgstr "দৃষ্টি আকর্ষণ!" #: scannerdrake:406 #, c-format msgid "" "Your %s cannot be configured fully automatically.\n" "\n" "Manual adjustments are required. Please edit the configuration file /etc/" "sane.d/%s.conf. " msgstr "" "আপনার %s সম্পুর্ন স্বয়ংক্রিয়ভাবে কনফিগার করা যাবে না।\n" "\n" "নিজ হাতে বিন্যস্ত করা প্রয়োজন। অনুগ্রহ করে /etc/sane.d/%s.conf কনফিগারেশন ফইলটি " "সম্পাদন করুন। " #: scannerdrake:407 scannerdrake:416 #, c-format msgid "" "More info in the driver's manual page. Run the command \"man sane-%s\" to " "read it." msgstr "" "ড্রইভারের সহায়িকাতে আরও তথ্য পাওয়া যাবে। পড়ার জন্য \"man sane-%s\" কমান্ডটি " "চালান।" #: scannerdrake:409 scannerdrake:418 #, c-format msgid "" "After that you may scan documents using \"XSane\" or \"Kooka\" from " "Multimedia/Graphics in the applications menu." msgstr "" "এরপর আপনি এপ্লিকেশন মেনুর মাল্টিমিডিয়া/গ্রাফিক্স থেকে \"XSane\" অথবা \"Kooka\" " "ব্যবহার করে আপনার কাগজপত্র স্ক্যান করতে পারেন।" #: scannerdrake:413 #, c-format msgid "" "Your %s has been configured, but it is possible that additional manual " "adjustments are needed to get it to work. " msgstr "" "আপনার %s কনফিগার করা হয়েছে। কিন্তু এটিকে কাজ করাতে কিছু অংশ নিজ হাতে বিন্যস্ত করা " "প্রয়োজন হতে পারে। " #: scannerdrake:414 #, c-format msgid "" "If it does not appear in the list of configured scanners in the main window " "of Scannerdrake or if it does not work correctly, " msgstr "" "যদি এটি Scannerdrake মূল উইন্ডোতে, কনফিগারকৃত স্ক্যানারের তালিকায় না থাকে বা যদি " "ঠিক মত কাজ না করে, " #: scannerdrake:415 #, c-format msgid "edit the configuration file /etc/sane.d/%s.conf. " msgstr "/etc/sane.d/%s.conf কনফিগারেশন ফাইলটি সম্পাদন করুন।" #: scannerdrake:420 #, c-format msgid "Congratulations!" msgstr "অভিনন্দন!" #: scannerdrake:421 #, c-format msgid "" "Your %s has been configured.\n" "You may now scan documents using \"XSane\" or \"Kooka\" from Multimedia/" "Graphics in the applications menu." msgstr "" "আপনার %s কনফিগার করা হয়েছে।\n" "আপনি এপ্লিকেশন মেনুর মাল্টিমিডিয়া/গ্রাফিক্স থেকে \"XSane\" অথবা \"Kooka\" ব্যবহার " "করে স্কেন করতে পারেন।" #: scannerdrake:446 #, c-format msgid "" "The following scanners\n" "\n" "%s\n" "are available on your system.\n" msgstr "" "এই স্কেনারগুলি\n" "\n" "%s\n" "আপনার সিস্টেমে উপলব্ধ রয়েছে।\n" #: scannerdrake:447 #, c-format msgid "" "The following scanner\n" "\n" "%s\n" "is available on your system.\n" msgstr "" "এই স্কেনারটি\n" "\n" "%s\n" "আপনার সিস্টেমে উপলব্ধ রয়েছে।\n" #: scannerdrake:450 scannerdrake:453 #, c-format msgid "There are no scanners found which are available on your system.\n" msgstr "আপনার সিস্টেমে উপলব্ধ কোন স্কেনার এখানে পাওয়া যায়নি।\n" # sam: printer? #: scannerdrake:461 #, fuzzy, c-format msgid "Scanner Management" msgstr "%s প্রিন্টার ব্যবস্থাপনা" #: scannerdrake:467 #, c-format msgid "Search for new scanners" msgstr "নতুন স্কেনারসমূহের খোঁজ করো" #: scannerdrake:473 #, c-format msgid "Add a scanner manually" msgstr "মেনুয়ালি একটি স্কেনার যোগ করুন" #: scannerdrake:480 #, c-format msgid "Install/Update firmware files" msgstr "Firmware ফাইলসমূহ ইনস্টল/আপগ্রেড করো" #: scannerdrake:486 #, c-format msgid "Scanner sharing" msgstr "স্কেনার শেয়ারিং" #: scannerdrake:545 scannerdrake:710 #, c-format msgid "All remote machines" msgstr "দূরবর্ত সমস্থ মেশিনসমূহ" #: scannerdrake:557 scannerdrake:860 #, c-format msgid "This machine" msgstr "এই মেশিনে" #: scannerdrake:596 #, fuzzy, c-format msgid "Scanner Sharing" msgstr "স্কেনার শেয়ারিং" #: scannerdrake:597 #, c-format msgid "" "Here you can choose whether the scanners connected to this machine should be " "accessible by remote machines and by which remote machines." msgstr "" "এই মেশিনের সাথে সংযুক্ত স্কেনারগুলি দূরবর্তী কোন মেশিন বা দূরবর্তী কোন মেশিনের " "মাধ্যমে ব্যবহার করা যাবে, আপনি তা এখানে পছন্দ করতে পারেন।" #: scannerdrake:598 #, c-format msgid "" "You can also decide here whether scanners on remote machines should be made " "available on this machine." msgstr "" "আপনি এখানে সিদ্ধান্তু নিতে পারেন যে দূরবর্তী কোন কম্পিউটারগুলির স্কেনার এখানে বরাদ্দ " "থাকবে।" #: scannerdrake:601 #, c-format msgid "The scanners on this machine are available to other computers" msgstr "এই মেশিনের স্কেনারগুলি অন্য কম্পিউটারে বরাদ্দ থাকবে" #: scannerdrake:603 #, c-format msgid "Scanner sharing to hosts: " msgstr "যেই হোস্টগুলিতে স্কেনার শেয়ার হবে:" #: scannerdrake:608 scannerdrake:625 #, c-format msgid "No remote machines" msgstr "দূরবর্তী কোন মেশিন নেই" #: scannerdrake:617 #, c-format msgid "Use scanners on remote computers" msgstr "রিমোট কম্পিউটারের স্কেনার ব্যবহার করো" #: scannerdrake:620 #, c-format msgid "Use the scanners on hosts: " msgstr "এই হোস্টসমূহের স্কেনারগুলি ব্যাবহার করো:" #: scannerdrake:647 scannerdrake:719 scannerdrake:869 #, c-format msgid "Sharing of local scanners" msgstr "লোকাল স্কেনারের শেয়ারিং" #: scannerdrake:648 #, c-format msgid "" "These are the machines on which the locally connected scanner(s) should be " "available:" msgstr "এগুলি সেই মেশিন যেগুলিতে লোকাল ভাবে সংযুক্ত স্কেনার(গুলি) বরাদ্দ থাকবে:" #: scannerdrake:659 scannerdrake:809 #, c-format msgid "Add host" msgstr "হোস্ট যোগ করো" #: scannerdrake:665 scannerdrake:815 #, c-format msgid "Edit selected host" msgstr "নির্বাচিত হোস্ট এডিট করো" #: scannerdrake:674 scannerdrake:824 #, c-format msgid "Remove selected host" msgstr "নির্বাচিত হোস্ট অপসরণ করো" #: scannerdrake:683 scannerdrake:833 #, c-format msgid "Done" msgstr "সম্পন্ন" #: scannerdrake:698 scannerdrake:706 scannerdrake:711 scannerdrake:757 #: scannerdrake:848 scannerdrake:856 scannerdrake:861 scannerdrake:907 #, c-format msgid "Name/IP address of host:" msgstr "হোস্টের নাম/IP এড্রেস:" #: scannerdrake:720 scannerdrake:870 #, c-format msgid "Choose the host on which the local scanners should be made available:" msgstr "একটি লোকাল হোস্ট পছন্দ করুন যেখানে স্কেনারগুলি বরাদ্দ থাকবে:" #: scannerdrake:731 scannerdrake:881 #, c-format msgid "You must enter a host name or an IP address.\n" msgstr "আপনাকে অবশ্যই একটি হোস্টের নাম অথবা IP ঠিকানা প্রবেশ করাতে হবে।\n" #: scannerdrake:742 scannerdrake:892 #, c-format msgid "This host is already in the list, it cannot be added again.\n" msgstr "লিষ্টে এই হোস্ট আগে থেকেই আছে, এটা আবার যোগ করা যাবেনা।\n" #: scannerdrake:797 #, c-format msgid "Usage of remote scanners" msgstr "দূরবর্তী স্কেনারসমূহের ব্যাবহার" #: scannerdrake:798 #, c-format msgid "These are the machines from which the scanners should be used:" msgstr "এগুলিই সেই সমস্থ মেশিন যেগুলি থেকে স্কেনার ব্যবহার করা যাবে:" #: scannerdrake:955 #, c-format msgid "" "saned needs to be installed to share the local scanner(s).\n" "\n" "Do you want to install the saned package?" msgstr "" "স্থানীয় স্ক্যানার(গুলো) শেয়ার করার জন্য saned প্যাকেজটি ইনস্টল করতে হবে।\n" "\n" "আপনি কি saned প্যাকেজটি ইনস্টল করতে চান?" #: scannerdrake:959 scannerdrake:963 #, c-format msgid "Your scanner(s) will not be available on the network." msgstr "আপনার স্কেনার(গুলি) নেটওয়ার্কে বরাদ্দ থাকবে না।" #: scannerdrake:962 #, c-format msgid "Could not install the packages needed to share your scanner(s)." msgstr "আপনার স্ক্যানার(সমূহ) শেয়ার করার জন্য প্রয়োজনীয় প্যাকেজ ইনস্টল করা যায় নি।" #: service_harddrake:126 #, c-format msgid "Some devices in the \"%s\" hardware class were removed:\n" msgstr "\"%s\" হার্ডওয়্যার শ্রেণীর কিছু ডিভাইস অপসরণ করা হয়েছে:\n" #: service_harddrake:127 #, c-format msgid "- %s was removed\n" msgstr "- %s অপসারিত হয়েছে\n" #: service_harddrake:130 #, c-format msgid "Some devices were added: %s\n" msgstr "কিছু ডিভাইস সমূহ যুক্ত করা হয়েছে: %s\n" #: service_harddrake:131 #, c-format msgid "- %s was added\n" msgstr "- %s যুক্ত করা হয়েছে\n" #: service_harddrake:254 #, c-format msgid "Hardware probing in progress" msgstr "হার্ডওয়্যারের অনুসন্ধান চলছে" #: service_harddrake_confirm:7 #, c-format msgid "Hardware changes in \"%s\" class (%s seconds to answer)" msgstr "\"%s\" শ্রেনীতে হার্ডওয়্যারের পরিবর্তন (জবাব দিতে %s সেকেন্ড সময় লেগেছে)" #: service_harddrake_confirm:8 #, c-format msgid "Do you want to run the appropriate config tool?" msgstr "আপনি কি সঠিক কনফিগ টুল রান করাতে চান?" #: ../menu/localedrake-system.desktop.in.h:1 #, fuzzy msgid "System Regional Settings" msgstr "সিস্টেম সেটিংস" #: ../menu/localedrake-system.desktop.in.h:2 msgid "System wide language & country configurator" msgstr "" #: ../menu/harddrake.desktop.in.h:1 msgid "HardDrake" msgstr "হার্ডড্রেক" #: ../menu/harddrake.desktop.in.h:2 #, fuzzy msgid "Hardware Central Configuration/information tool" msgstr "নেটওয়ার্ক কনফিগারেশন" #: ../menu/localedrake-user.desktop.in.h:1 #, fuzzy msgid "Language & country configuration" msgstr "স্বনির্বাচিত কনফিগারেশন" #: ../menu/localedrake-user.desktop.in.h:2 #, fuzzy msgid "Regional Settings" msgstr "সেটিং" #~ msgid "The change is done, but to be effective you must logout" #~ msgstr "" #~ "পরিবর্তন সাধিত হয়েছে, কিন্তু কার্যকরী হবার জন্য আপনাকে অবশ্যই রি-ষ্টার্ট করতে হবে" #~ msgid "Restart XFS" #~ msgstr "XFS পুনরায় চালু করো" #~ msgid "Copyright (C) 2001-2008 by Mandriva" #~ msgstr "কপিরাইট (C) ২০০১-২০০৬ ম্যান্ড্রিব" #~ msgid "Error!" #~ msgstr "সমস্যা!" #~ msgid "I can not find needed image file `%s'." #~ msgstr "দরকারি ইমেজ ফাইল `%s' কে খুঁজে পাচ্ছি নাহ্।" #~ msgid "Auto Install Configurator" #~ msgstr "সয়ংক্রিয় ইনস্টল কনফিগারকারী" #~ msgid "replay" #~ msgstr "পুনরায় চালাও" #~ msgid "manual" #~ msgstr "নিজ হাতে" #~ msgid "Automatic Steps Configuration" #~ msgstr "সয়ংক্রিয় ধাপসমুহের কনফিগারেশন" #~ msgid "" #~ "Please choose for each step whether it will replay like your install, or " #~ "it will be manual" #~ msgstr "" #~ "অনুগ্রহ করে এটার প্রত্যেকটি স্টেপ বাছাই করুন যেখানে আপনার ইনস্টলের মত এটি পুনরায় " #~ "চলবে, অথবা এটি হাতে হাতে হবে" #~ msgid "Insert a blank floppy in drive %s" #~ msgstr "%s ড্রাইভে একটি ফাঁকা ফ্লপি ঢোকান" #~ msgid "Creating auto install floppy" #~ msgstr "সয়ংক্রিয় ফ্লপি ইনস্টল তৈরি করা হচ্ছে" #~ msgid "Insert another blank floppy in drive %s (for drivers disk)" #~ msgstr "আরেকটি ফাঁকা ফ্লপি %s ডিস্কে ঢুকান (ড্রাইভার ডিস্কের জন্য)" #~ msgid "Creating auto install floppy (drivers disk)" #~ msgstr "সয়ংক্রিয় ফ্লপি ইনস্টল তৈরি করা হচ্ছে (ড্রাইভার ডিস্ক)" #~ msgid "" #~ "\n" #~ "Welcome.\n" #~ "\n" #~ "The parameters of the auto-install are available in the sections on the " #~ "left" #~ msgstr "" #~ "\n" #~ "স্বাগতম।\n" #~ "\n" #~ "সয়ংক্রিয়-ইনস্টলের জন্য প্যারামিটারসমুহ বাঁ দিকের সেকশানে উপস্হিত" #~ msgid "" #~ "The floppy has been successfully generated.\n" #~ "You may now replay your installation." #~ msgstr "" #~ "ফ্লপিটি সাফল্যের সাথে তৈরী করা হয়েছে।\n" #~ "আপনি এখন আপনার ইনস্টলেশন পুনরায় চালু করতে পারেন।" #~ msgid "Auto Install" #~ msgstr "সয়ংক্রিয় ইনস্টল" #~ msgid "Add an item" #~ msgstr "একটি আইটেম যোগ করো" #~ msgid "Remove the last item" #~ msgstr "শেষ আইটেমটি সরাও" #~ msgid "Menudrake" #~ msgstr "মেনুড্রেক" #~ msgid "Msec" #~ msgstr "Msec" #~ msgid "Urpmi" #~ msgstr "Urpmi" #~ msgid "Userdrake" #~ msgstr "ইউজারড্রেক"