punbb-1.3/admin/db_update.php |
punbb-1.3.1/admin/db_update.php |
10: */ | 10: */ |
11: | 11: |
12: | 12: |
13: define('UPDATE_TO', '1.3'); | 13: define('UPDATE_TO', '1.3.1'); |
14: define('UPDATE_TO_DB_REVISION', 3); | 14: define('UPDATE_TO_DB_REVISION', 3); |
15: | 15: |
16: // The number of items to process per pageview (lower this if the update script times out during UTF-8 conversion) | 16: // The number of items to process per pageview (lower this if the update script times out during UTF-8 conversion) |
1222: $forum_db->set_names('utf8'); | 1222: $forum_db->set_names('utf8'); |
1223: | 1223: |
1224: // Convert config | 1224: // Convert config |
1225: echo 'Converting configuration …'."<br />\n"; | 1225: echo 'Converting configuration…'."<br />\n"; |
1226: foreach ($forum_config as $conf_name => $conf_value) | 1226: foreach ($forum_config as $conf_name => $conf_value) |
1227: { | 1227: { |
1228: if (convert_to_utf8($conf_value, $old_charset)) | 1228: if (convert_to_utf8($conf_value, $old_charset)) |
1238: } | 1238: } |
1239: | 1239: |
1240: // Convert categories | 1240: // Convert categories |
1241: echo 'Converting categories …'."<br />\n"; | 1241: echo 'Converting categories…'."<br />\n"; |
1242: $query = array( | 1242: $query = array( |
1243: 'SELECT' => 'id, cat_name', | 1243: 'SELECT' => 'id, cat_name', |
1244: 'FROM' => 'categories', | 1244: 'FROM' => 'categories', |
1261: } | 1261: } |
1262: | 1262: |
1263: // Convert forums | 1263: // Convert forums |
1264: echo 'Converting forums …'."<br />\n"; | 1264: echo 'Converting forums…'."<br />\n"; |
1265: $query = array( | 1265: $query = array( |
1266: 'SELECT' => 'id, forum_name, forum_desc, moderators', | 1266: 'SELECT' => 'id, forum_name, forum_desc, moderators', |
1267: 'FROM' => 'forums', | 1267: 'FROM' => 'forums', |
1295: } | 1295: } |
1296: | 1296: |
1297: // Convert groups | 1297: // Convert groups |
1298: echo 'Converting groups …'."<br />\n"; | 1298: echo 'Converting groups…'."<br />\n"; |
1299: $query = array( | 1299: $query = array( |
1300: 'SELECT' => 'g_id, g_title, g_user_title', | 1300: 'SELECT' => 'g_id, g_title, g_user_title', |
1301: 'FROM' => 'groups', | 1301: 'FROM' => 'groups', |
1320: } | 1320: } |
1321: | 1321: |
1322: // Convert ranks | 1322: // Convert ranks |
1323: echo 'Converting ranks …'."<br />\n"; | 1323: echo 'Converting ranks…'."<br />\n"; |
1324: $query = array( | 1324: $query = array( |
1325: 'SELECT' => 'id, rank', | 1325: 'SELECT' => 'id, rank', |
1326: 'FROM' => 'ranks', | 1326: 'FROM' => 'ranks', |
1343: } | 1343: } |
1344: | 1344: |
1345: // Convert censor words | 1345: // Convert censor words |
1346: echo 'Converting censor words …'."<br />\n"; | 1346: echo 'Converting censor words…'."<br />\n"; |
1347: $query = array( | 1347: $query = array( |
1348: 'SELECT' => 'id, search_for, replace_with', | 1348: 'SELECT' => 'id, search_for, replace_with', |
1349: 'FROM' => 'censoring', | 1349: 'FROM' => 'censoring', |
1408: $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); | 1408: $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); |
1409: while ($cur_item = $forum_db->fetch_assoc($result)) | 1409: while ($cur_item = $forum_db->fetch_assoc($result)) |
1410: { | 1410: { |
1411: echo 'Converting report '.$cur_item['id'].' …<br />'."\n"; | 1411: echo 'Converting report '.$cur_item['id'].'…<br />'."\n"; |
1412: if (convert_to_utf8($cur_item['message'], $old_charset)) | 1412: if (convert_to_utf8($cur_item['message'], $old_charset)) |
1413: { | 1413: { |
1414: $query = array( | 1414: $query = array( |
1477: $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); | 1477: $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); |
1478: while ($cur_item = $forum_db->fetch_assoc($result)) | 1478: while ($cur_item = $forum_db->fetch_assoc($result)) |
1479: { | 1479: { |
1480: echo 'Converting search word '.$cur_item['id'].' …<br />'."\n"; | 1480: echo 'Converting search word '.$cur_item['id'].'…<br />'."\n"; |
1481: if (convert_to_utf8($cur_item['word'], $old_charset)) | 1481: if (convert_to_utf8($cur_item['word'], $old_charset)) |
1482: { | 1482: { |
1483: $query = array( | 1483: $query = array( |
1535: $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); | 1535: $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); |
1536: while ($cur_item = $forum_db->fetch_assoc($result)) | 1536: while ($cur_item = $forum_db->fetch_assoc($result)) |
1537: { | 1537: { |
1538: echo 'Converting user '.$cur_item['id'].' …<br />'."\n"; | 1538: echo 'Converting user '.$cur_item['id'].'…<br />'."\n"; |
1539: if (convert_to_utf8($cur_item['username'], $old_charset) | convert_to_utf8($cur_item['title'], $old_charset) | convert_to_utf8($cur_item['realname'], $old_charset) | convert_to_utf8($cur_item['location'], $old_charset) | convert_to_utf8($cur_item['signature'], $old_charset) | convert_to_utf8($cur_item['admin_note'], $old_charset)) | 1539: if (convert_to_utf8($cur_item['username'], $old_charset) | convert_to_utf8($cur_item['title'], $old_charset) | convert_to_utf8($cur_item['realname'], $old_charset) | convert_to_utf8($cur_item['location'], $old_charset) | convert_to_utf8($cur_item['signature'], $old_charset) | convert_to_utf8($cur_item['admin_note'], $old_charset)) |
1540: { | 1540: { |
1541: $cur_item['title'] = $cur_item['title'] != '' ? '\''.$forum_db->escape($cur_item['title']).'\'' : 'NULL'; | 1541: $cur_item['title'] = $cur_item['title'] != '' ? '\''.$forum_db->escape($cur_item['title']).'\'' : 'NULL'; |
1610: $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); | 1610: $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); |
1611: while ($cur_item = $forum_db->fetch_assoc($result)) | 1611: while ($cur_item = $forum_db->fetch_assoc($result)) |
1612: { | 1612: { |
1613: echo 'Converting topic '.$cur_item['id'].' …<br />'."\n"; | 1613: echo 'Converting topic '.$cur_item['id'].'…<br />'."\n"; |
1614: if (convert_to_utf8($cur_item['poster'], $old_charset) | convert_to_utf8($cur_item['subject'], $old_charset) | convert_to_utf8($cur_item['last_poster'], $old_charset)) | 1614: if (convert_to_utf8($cur_item['poster'], $old_charset) | convert_to_utf8($cur_item['subject'], $old_charset) | convert_to_utf8($cur_item['last_poster'], $old_charset)) |
1615: { | 1615: { |
1616: $query = array( | 1616: $query = array( |
1679: $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); | 1679: $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); |
1680: while ($cur_item = $forum_db->fetch_assoc($result)) | 1680: while ($cur_item = $forum_db->fetch_assoc($result)) |
1681: { | 1681: { |
1682: echo 'Converting post '.$cur_item['id'].' …<br />'."\n"; | 1682: echo 'Converting post '.$cur_item['id'].'…<br />'."\n"; |
1683: if (convert_to_utf8($cur_item['poster'], $old_charset) | convert_to_utf8($cur_item['message'], $old_charset) | convert_to_utf8($cur_item['edited_by'], $old_charset)) | 1683: if (convert_to_utf8($cur_item['poster'], $old_charset) | convert_to_utf8($cur_item['message'], $old_charset) | convert_to_utf8($cur_item['edited_by'], $old_charset)) |
1684: { | 1684: { |
1685: $cur_item['edited_by'] = $cur_item['edited_by'] != '' ? '\''.$forum_db->escape($cur_item['edited_by']).'\'' : 'NULL'; | 1685: $cur_item['edited_by'] = $cur_item['edited_by'] != '' ? '\''.$forum_db->escape($cur_item['edited_by']).'\'' : 'NULL'; |
1716: // Do the cumbersome charset conversion of MySQL tables/columns | 1716: // Do the cumbersome charset conversion of MySQL tables/columns |
1717: if ($db_type == 'mysql' || $db_type == 'mysqli') | 1717: if ($db_type == 'mysql' || $db_type == 'mysqli') |
1718: { | 1718: { |
1719: echo 'Converting table '.$forum_db->prefix.'bans …<br />'."\n"; flush(); | 1719: echo 'Converting table '.$forum_db->prefix.'bans…<br />'."\n"; flush(); |
1720: convert_table_utf8($forum_db->prefix.'bans'); | 1720: convert_table_utf8($forum_db->prefix.'bans'); |
1721: echo 'Converting table '.$forum_db->prefix.'categories …<br />'."\n"; flush(); | 1721: echo 'Converting table '.$forum_db->prefix.'categories…<br />'."\n"; flush(); |
1722: convert_table_utf8($forum_db->prefix.'categories'); | 1722: convert_table_utf8($forum_db->prefix.'categories'); |
1723: echo 'Converting table '.$forum_db->prefix.'censoring …<br />'."\n"; flush(); | 1723: echo 'Converting table '.$forum_db->prefix.'censoring…<br />'."\n"; flush(); |
1724: convert_table_utf8($forum_db->prefix.'censoring'); | 1724: convert_table_utf8($forum_db->prefix.'censoring'); |
1725: echo 'Converting table '.$forum_db->prefix.'config …<br />'."\n"; flush(); | 1725: echo 'Converting table '.$forum_db->prefix.'config…<br />'."\n"; flush(); |
1726: convert_table_utf8($forum_db->prefix.'config'); | 1726: convert_table_utf8($forum_db->prefix.'config'); |
1727: echo 'Converting table '.$forum_db->prefix.'extension_hooks …<br />'."\n"; flush(); | 1727: echo 'Converting table '.$forum_db->prefix.'extension_hooks…<br />'."\n"; flush(); |
1728: convert_table_utf8($forum_db->prefix.'extension_hooks'); | 1728: convert_table_utf8($forum_db->prefix.'extension_hooks'); |
1729: echo 'Converting table '.$forum_db->prefix.'extensions …<br />'."\n"; flush(); | 1729: echo 'Converting table '.$forum_db->prefix.'extensions…<br />'."\n"; flush(); |
1730: convert_table_utf8($forum_db->prefix.'extensions'); | 1730: convert_table_utf8($forum_db->prefix.'extensions'); |
1731: echo 'Converting table '.$forum_db->prefix.'forum_perms …<br />'."\n"; flush(); | 1731: echo 'Converting table '.$forum_db->prefix.'forum_perms…<br />'."\n"; flush(); |
1732: convert_table_utf8($forum_db->prefix.'forum_perms'); | 1732: convert_table_utf8($forum_db->prefix.'forum_perms'); |
1733: echo 'Converting table '.$forum_db->prefix.'forums …<br />'."\n"; flush(); | 1733: echo 'Converting table '.$forum_db->prefix.'forums…<br />'."\n"; flush(); |
1734: convert_table_utf8($forum_db->prefix.'forums'); | 1734: convert_table_utf8($forum_db->prefix.'forums'); |
1735: echo 'Converting table '.$forum_db->prefix.'groups …<br />'."\n"; flush(); | 1735: echo 'Converting table '.$forum_db->prefix.'groups…<br />'."\n"; flush(); |
1736: convert_table_utf8($forum_db->prefix.'groups'); | 1736: convert_table_utf8($forum_db->prefix.'groups'); |
1737: echo 'Converting table '.$forum_db->prefix.'online …<br />'."\n"; flush(); | 1737: echo 'Converting table '.$forum_db->prefix.'online…<br />'."\n"; flush(); |
1738: convert_table_utf8($forum_db->prefix.'online'); | 1738: convert_table_utf8($forum_db->prefix.'online'); |
1739: echo 'Converting table '.$forum_db->prefix.'posts …<br />'."\n"; flush(); | 1739: echo 'Converting table '.$forum_db->prefix.'posts…<br />'."\n"; flush(); |
1740: convert_table_utf8($forum_db->prefix.'posts'); | 1740: convert_table_utf8($forum_db->prefix.'posts'); |
1741: echo 'Converting table '.$forum_db->prefix.'ranks …<br />'."\n"; flush(); | 1741: echo 'Converting table '.$forum_db->prefix.'ranks…<br />'."\n"; flush(); |
1742: convert_table_utf8($forum_db->prefix.'ranks'); | 1742: convert_table_utf8($forum_db->prefix.'ranks'); |
1743: echo 'Converting table '.$forum_db->prefix.'reports …<br />'."\n"; flush(); | 1743: echo 'Converting table '.$forum_db->prefix.'reports…<br />'."\n"; flush(); |
1744: convert_table_utf8($forum_db->prefix.'reports'); | 1744: convert_table_utf8($forum_db->prefix.'reports'); |
1745: echo 'Converting table '.$forum_db->prefix.'search_cache …<br />'."\n"; flush(); | 1745: echo 'Converting table '.$forum_db->prefix.'search_cache…<br />'."\n"; flush(); |
1746: convert_table_utf8($forum_db->prefix.'search_cache'); | 1746: convert_table_utf8($forum_db->prefix.'search_cache'); |
1747: echo 'Converting table '.$forum_db->prefix.'search_matches …<br />'."\n"; flush(); | 1747: echo 'Converting table '.$forum_db->prefix.'search_matches…<br />'."\n"; flush(); |
1748: convert_table_utf8($forum_db->prefix.'search_matches'); | 1748: convert_table_utf8($forum_db->prefix.'search_matches'); |
1749: echo 'Converting table '.$forum_db->prefix.'search_words …<br />'."\n"; flush(); | 1749: echo 'Converting table '.$forum_db->prefix.'search_words…<br />'."\n"; flush(); |
1750: convert_table_utf8($forum_db->prefix.'search_words'); | 1750: convert_table_utf8($forum_db->prefix.'search_words'); |
1751: echo 'Converting table '.$forum_db->prefix.'subscriptions …<br />'."\n"; flush(); | 1751: echo 'Converting table '.$forum_db->prefix.'subscriptions…<br />'."\n"; flush(); |
1752: convert_table_utf8($forum_db->prefix.'subscriptions'); | 1752: convert_table_utf8($forum_db->prefix.'subscriptions'); |
1753: echo 'Converting table '.$forum_db->prefix.'topics …<br />'."\n"; flush(); | 1753: echo 'Converting table '.$forum_db->prefix.'topics…<br />'."\n"; flush(); |
1754: convert_table_utf8($forum_db->prefix.'topics'); | 1754: convert_table_utf8($forum_db->prefix.'topics'); |
1755: echo 'Converting table '.$forum_db->prefix.'users …<br />'."\n"; flush(); | 1755: echo 'Converting table '.$forum_db->prefix.'users…<br />'."\n"; flush(); |
1756: convert_table_utf8($forum_db->prefix.'users'); | 1756: convert_table_utf8($forum_db->prefix.'users'); |
1757: } | 1757: } |
1758: | 1758: |
1794: $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); | 1794: $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); |
1795: while ($cur_item = $forum_db->fetch_assoc($result)) | 1795: while ($cur_item = $forum_db->fetch_assoc($result)) |
1796: { | 1796: { |
1797: echo 'Preparsing post '.$cur_item['id'].' …<br />'."\n"; | 1797: echo 'Preparsing post '.$cur_item['id'].'…<br />'."\n"; |
1798: $preparse_errors = array(); | 1798: $preparse_errors = array(); |
1799: | 1799: |
1800: $query = array( | 1800: $query = array( |
1847: $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); | 1847: $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); |
1848: while ($cur_item = $forum_db->fetch_assoc($result)) | 1848: while ($cur_item = $forum_db->fetch_assoc($result)) |
1849: { | 1849: { |
1850: echo 'Preparsing signature '.$cur_item['id'].' …<br />'."\n"; | 1850: echo 'Preparsing signature '.$cur_item['id'].'…<br />'."\n"; |
1851: $preparse_errors = array(); | 1851: $preparse_errors = array(); |
1852: | 1852: |
1853: $query = array( | 1853: $query = array( |
punbb-1.3/admin/install.php |
punbb-1.3.1/admin/install.php |
10: */ | 10: */ |
11: | 11: |
12: | 12: |
13: define('FORUM_VERSION', '1.3'); | 13: define('FORUM_VERSION', '1.3.1'); |
14: define('FORUM_DB_REVISION', 3); | 14: define('FORUM_DB_REVISION', 3); |
15: define('MIN_PHP_VERSION', '4.3.0'); | 15: define('MIN_PHP_VERSION', '4.3.0'); |
16: define('MIN_MYSQL_VERSION', '4.1.2'); | 16: define('MIN_MYSQL_VERSION', '4.1.2'); |
147: if (count($languages) > 1) | 147: if (count($languages) > 1) |
148: { | 148: { |
149: | 149: |
150: ?> | 150: ?> <form class="frm-form" method="get" accept-charset="utf-8" action="install.php"> |
151: <form class="frm-form" method="get" accept-charset="utf-8" action="install.php"> | |
152: <div class="main-subhead"> | 151: <div class="main-subhead"> |
153: <h2 class="hn"><span><?php echo $lang_install['Choose language'] ?></span></h2> | 152: <h2 class="hn"><span><?php echo $lang_install['Choose language'] ?></span></h2> |
154: </div> | 153: </div> |
164: foreach ($languages as $lang) | 163: foreach ($languages as $lang) |
165: echo "\t\t\t\t\t".'<option value="'.$lang.'"'.($language == $lang ? ' selected="selected"' : '').'>'.$lang.'</option>'."\n"; | 164: echo "\t\t\t\t\t".'<option value="'.$lang.'"'.($language == $lang ? ' selected="selected"' : '').'>'.$lang.'</option>'."\n"; |
166: | 165: |
167: ?> | 166: ?> </select></span> |
168: </select></span> | |
169: </div> | 167: </div> |
170: </div> | 168: </div> |
171: </fieldset> | 169: </fieldset> |
178: | 176: |
179: } | 177: } |
180: | 178: |
181: ?> | 179: ?> <form class="frm-form" method="post" accept-charset="utf-8" action="install.php"> |
182: <form class="frm-form" method="post" accept-charset="utf-8" action="install.php"> | |
183: <div class="hidden"> | 180: <div class="hidden"> |
184: <input type="hidden" name="form_sent" value="1" /> | 181: <input type="hidden" name="form_sent" value="1" /> |
185: </div> | 182: </div> |
211: foreach ($db_extensions as $db_type) | 208: foreach ($db_extensions as $db_type) |
212: echo "\t\t\t\t\t".'<option value="'.$db_type[0].'">'.$db_type[1].'</option>'."\n"; | 209: echo "\t\t\t\t\t".'<option value="'.$db_type[0].'">'.$db_type[1].'</option>'."\n"; |
213: | 210: |
214: ?> | 211: ?> </select></span> |
215: </select></span> | |
216: </div> | 212: </div> |
217: </div> | 213: </div> |
218: <div class="sf-set set1"> | 214: <div class="sf-set set1"> |
318: | 314: |
319: if (count($languages) > 1) | 315: if (count($languages) > 1) |
320: { | 316: { |
321: ?> | 317: |
322: <div class="sf-set set4"> | 318: ?> <div class="sf-set set4"> |
323: <div class="sf-box text"> | 319: <div class="sf-box text"> |
324: <label for="fld14"><span><?php echo $lang_install['Default language'] ?></span> <small><?php echo $lang_install['Default language help'] ?></small></label><br /> | 320: <label for="fld14"><span><?php echo $lang_install['Default language'] ?></span> <small><?php echo $lang_install['Default language help'] ?></small></label><br /> |
325: <span class="fld-input"><select id="fld14" name="req_language"> | 321: <span class="fld-input"><select id="fld14" name="req_language"> |
328: foreach ($languages as $lang) | 324: foreach ($languages as $lang) |
329: echo "\t\t\t\t\t".'<option value="'.$lang.'"'.($language == $lang ? ' selected="selected"' : '').'>'.$lang.'</option>'."\n"; | 325: echo "\t\t\t\t\t".'<option value="'.$lang.'"'.($language == $lang ? ' selected="selected"' : '').'>'.$lang.'</option>'."\n"; |
330: | 326: |
331: ?> | 327: ?> </select></span> |
332: </select></span> | |
333: </div> | 328: </div> |
334: </div> | 329: </div> |
335: <?php | 330: <?php |
| 331: |
336: } | 332: } |
337: else | 333: else |
338: { | 334: { |
339: ?> | 335: |
340: <div class="hidden"> | 336: ?> <div class="hidden"> |
341: <input type="hidden" name="req_language" value="<?php echo $languages[0]; ?>" /> | 337: <input type="hidden" name="req_language" value="<?php echo $languages[0]; ?>" /> |
342: </div> | 338: </div> |
343: <?php | 339: <?php |
344: } | 340: } |
345: | 341: |
346: ?> | 342: if (file_exists(FORUM_ROOT.'extensions/pun_repository/manifest.xml')) |
347: <div class="sf-set set5"> | 343: { |
| 344: |
| 345: ?> <div class="sf-set set5"> |
348: <div class="sf-box checkbox"> | 346: <div class="sf-box checkbox"> |
349: <span class="fld-input"><input id="fld15" type="checkbox" name="install_pun_repository" value="1" checked="checked" /></span> | 347: <span class="fld-input"><input id="fld15" type="checkbox" name="install_pun_repository" value="1" checked="checked" /></span> |
350: <label for="fld15"><span><?php echo $lang_install['Pun repository'] ?></span> <?php echo $lang_install['Pun repository help'] ?></label><br /> | 348: <label for="fld15"><span><?php echo $lang_install['Pun repository'] ?></span> <?php echo $lang_install['Pun repository help'] ?></label><br /> |
351: </div> | 349: </div> |
352: </div> | 350: </div> |
| 351: <?php |
| 352: |
| 353: } |
| 354: |
| 355: ?> |
353: </fieldset> | 356: </fieldset> |
354: <div class="frm-buttons"> | 357: <div class="frm-buttons"> |
355: <span class="submit"><input type="submit" name="start" value="<?php echo $lang_install['Start install'] ?>" /></span> | 358: <span class="submit"><input type="submit" name="start" value="<?php echo $lang_install['Start install'] ?>" /></span> |
1819: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | 1822: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
1820: <title>PunBB Installation</title> | 1823: <title>PunBB Installation</title> |
1821: <link rel="stylesheet" type="text/css" href="<?php echo FORUM_ROOT ?>style/Oxygen/Oxygen.css" /> | 1824: <link rel="stylesheet" type="text/css" href="<?php echo FORUM_ROOT ?>style/Oxygen/Oxygen.css" /> |
1822: <link rel="stylesheet" type="text/css" href="<?php echo FORUM_ROOT ?>style/Oxygen/Oxygen_forms.css" /> | |
1823: <link rel="stylesheet" type="text/css" href="<?php echo FORUM_ROOT ?>style/Oxygen/Oxygen_cs.css" /> | 1825: <link rel="stylesheet" type="text/css" href="<?php echo FORUM_ROOT ?>style/Oxygen/Oxygen_cs.css" /> |
1824: <!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="<?php echo FORUM_ROOT ?>style/Oxygen/Oxygen_ie.css" /><![endif]--> | 1826: <!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="<?php echo FORUM_ROOT ?>style/Oxygen/Oxygen_ie6.css" /><![endif]--> |
| 1827: <!--[if IE 7]><link rel="stylesheet" type="text/css" href="<?php echo FORUM_ROOT ?>style/Oxygen/Oxygen_ie7.css" /><![endif]--> |
1825: </head> | 1828: </head> |
1826: | 1829: |
1827: <body> | 1830: <body> |
1854: { | 1857: { |
1855: | 1858: |
1856: ?> | 1859: ?> |
1857: <div class="ct-box warn-box"> | 1860: <div class="ct-box info-box"> |
1858: <p class="warn"><?php echo $lang_install['No write info 1'] ?></p> | 1861: <p class="warn"><?php echo $lang_install['No write info 1'] ?></p> |
1859: <p class="warn"><?php printf($lang_install['No write info 2'], '<a href="'.FORUM_ROOT.'index.php">'.$lang_install['Go to index'].'</a>') ?></p> | 1862: <p class="warn"><?php printf($lang_install['No write info 2'], '<a href="'.FORUM_ROOT.'index.php">'.$lang_install['Go to index'].'</a>') ?></p> |
1860: </div> | 1863: </div> |
1861: <?php if (!empty($alerts)): ?> <div class="ct-box error-box"> | 1864: <?php if (!empty($alerts)): ?> |
1862: <?php echo $lang_install['Warning'] ?></p> | 1865: <div class="ct-box error-box"> |
| 1866: <p class="warn"><strong><?php echo $lang_install['Warning'] ?></strong></p> |
1863: <ul> | 1867: <ul> |
1864: <?php echo implode("\n\t\t\t\t", $alerts)."\n" ?> | 1868: <?php echo implode("\n\t\t\t\t", $alerts)."\n" ?> |
1865: </ul> | 1869: </ul> |
1866: </div> | 1870: </div> |
1867: <?php endif; ?> <form class="frm-form" method="post" accept-charset="utf-8" action="install.php"> | 1871: <?php endif; ?> |
| 1872: <form class="frm-form" method="post" accept-charset="utf-8" action="install.php"> |
1868: <div class="hidden"> | 1873: <div class="hidden"> |
1869: <input type="hidden" name="generate_config" value="1" /> | 1874: <input type="hidden" name="generate_config" value="1" /> |
1870: <input type="hidden" name="db_type" value="<?php echo $db_type; ?>" /> | 1875: <input type="hidden" name="db_type" value="<?php echo $db_type; ?>" /> |
punbb-1.3/admin/users.php |
punbb-1.3.1/admin/users.php |
50: // Setup breadcrumbs | 50: // Setup breadcrumbs |
51: $forum_page['crumbs'] = array( | 51: $forum_page['crumbs'] = array( |
52: array($forum_config['o_board_title'], forum_link($forum_url['index'])), | 52: array($forum_config['o_board_title'], forum_link($forum_url['index'])), |
53: array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])), | 53: array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])) |
54: array($lang_admin_common['Users'], forum_link($forum_url['admin_users'])), | |
55: array($lang_admin_common['Searches'], forum_link($forum_url['admin_users'])), | |
56: $lang_admin_users['User search results'] | |
57: ); | 54: ); |
| 55: if ($forum_user['g_id'] == FORUM_ADMIN) |
| 56: $forum_page['crumbs'][] = array($lang_admin_common['Users'], forum_link($forum_url['admin_users'])); |
| 57: $forum_page['crumbs'][] = array($lang_admin_common['Searches'], forum_link($forum_url['admin_users'])); |
| 58: $forum_page['crumbs'][] = $lang_admin_users['User search results']; |
58: | 59: |
59: ($hook = get_hook('aus_ip_stats_pre_header_load')) ? eval($hook) : null; | 60: ($hook = get_hook('aus_ip_stats_pre_header_load')) ? eval($hook) : null; |
60: | 61: |
198: // Setup breadcrumbs | 199: // Setup breadcrumbs |
199: $forum_page['crumbs'] = array( | 200: $forum_page['crumbs'] = array( |
200: array($forum_config['o_board_title'], forum_link($forum_url['index'])), | 201: array($forum_config['o_board_title'], forum_link($forum_url['index'])), |
201: array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])), | 202: array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])) |
202: array($lang_admin_common['Users'], forum_link($forum_url['admin_users'])), | |
203: array($lang_admin_common['Searches'], forum_link($forum_url['admin_users'])), | |
204: $lang_admin_users['User search results'] | |
205: ); | 203: ); |
| 204: if ($forum_user['g_id'] == FORUM_ADMIN) |
| 205: $forum_page['crumbs'][] = array($lang_admin_common['Users'], forum_link($forum_url['admin_users'])); |
| 206: $forum_page['crumbs'][] = array($lang_admin_common['Searches'], forum_link($forum_url['admin_users'])); |
| 207: $forum_page['crumbs'][] = $lang_admin_users['User search results']; |
206: | 208: |
207: ($hook = get_hook('aus_show_users_pre_header_load')) ? eval($hook) : null; | 209: ($hook = get_hook('aus_show_users_pre_header_load')) ? eval($hook) : null; |
208: | 210: |
605: // Setup breadcrumbs | 607: // Setup breadcrumbs |
606: $forum_page['crumbs'] = array( | 608: $forum_page['crumbs'] = array( |
607: array($forum_config['o_board_title'], forum_link($forum_url['index'])), | 609: array($forum_config['o_board_title'], forum_link($forum_url['index'])), |
608: array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])), | 610: array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])) |
609: array($lang_admin_common['Users'], forum_link($forum_url['admin_users'])), | |
610: array($lang_admin_common['Searches'], forum_link($forum_url['admin_users'])), | |
611: $lang_admin_users['Ban users'] | |
612: ); | 611: ); |
| 612: if ($forum_user['g_id'] == FORUM_ADMIN) |
| 613: $forum_page['crumbs'][] = array($lang_admin_common['Users'], forum_link($forum_url['admin_users'])); |
| 614: $forum_page['crumbs'][] = array($lang_admin_common['Searches'], forum_link($forum_url['admin_users'])); |
| 615: $forum_page['crumbs'][] = $lang_admin_users['Ban users']; |
613: | 616: |
614: ($hook = get_hook('aus_ban_users_pre_header_load')) ? eval($hook) : null; | 617: ($hook = get_hook('aus_ban_users_pre_header_load')) ? eval($hook) : null; |
615: | 618: |
899: // Setup breadcrumbs | 902: // Setup breadcrumbs |
900: $forum_page['crumbs'] = array( | 903: $forum_page['crumbs'] = array( |
901: array($forum_config['o_board_title'], forum_link($forum_url['index'])), | 904: array($forum_config['o_board_title'], forum_link($forum_url['index'])), |
902: array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])), | 905: array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])) |
903: array($lang_admin_common['Users'], forum_link($forum_url['admin_users'])), | |
904: array($lang_admin_common['Searches'], forum_link($forum_url['admin_users'])), | |
905: $lang_admin_users['User search results'] | |
906: ); | 906: ); |
| 907: if ($forum_user['g_id'] == FORUM_ADMIN) |
| 908: $forum_page['crumbs'][] = array($lang_admin_common['Users'], forum_link($forum_url['admin_users'])); |
| 909: $forum_page['crumbs'][] = array($lang_admin_common['Searches'], forum_link($forum_url['admin_users'])); |
| 910: $forum_page['crumbs'][] = $lang_admin_users['User search results']; |
907: | 911: |
908: ($hook = get_hook('aus_find_user_pre_header_load')) ? eval($hook) : null; | 912: ($hook = get_hook('aus_find_user_pre_header_load')) ? eval($hook) : null; |
909: | 913: |
1076: // Setup breadcrumbs | 1080: // Setup breadcrumbs |
1077: $forum_page['crumbs'] = array( | 1081: $forum_page['crumbs'] = array( |
1078: array($forum_config['o_board_title'], forum_link($forum_url['index'])), | 1082: array($forum_config['o_board_title'], forum_link($forum_url['index'])), |
1079: array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])), | 1083: array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])) |
1080: array($lang_admin_common['Users'], forum_link($forum_url['admin_users'])), | |
1081: array($lang_admin_common['Searches'], forum_link($forum_url['admin_users'])), | |
1082: ); | 1084: ); |
| 1085: if ($forum_user['g_id'] == FORUM_ADMIN) |
| 1086: $forum_page['crumbs'][] = array($lang_admin_common['Users'], forum_link($forum_url['admin_users'])); |
| 1087: $forum_page['crumbs'][] = array($lang_admin_common['Searches'], forum_link($forum_url['admin_users'])); |
1083: | 1088: |
1084: ($hook = get_hook('aus_search_form_pre_header_load')) ? eval($hook) : null; | 1089: ($hook = get_hook('aus_search_form_pre_header_load')) ? eval($hook) : null; |
1085: | 1090: |
punbb-1.3/include/functions.php |
punbb-1.3.1/include/functions.php |
937: function get_scheme_packs() | 937: function get_scheme_packs() |
938: { | 938: { |
939: $schemes = array(); | 939: $schemes = array(); |
940: | 940: |
941: foreach (glob(FORUM_ROOT.'include/url/*') as $dirname) | 941: if($handle = opendir(FORUM_ROOT.'include/url')) |
942: if (is_dir($dirname) && file_exists($dirname.'/forum_urls.php')) | 942: { |
943: $schemes[] = basename($dirname); | 943: while (false !== ($dirname = readdir($handle))) |
| 944: { |
| 945: $dirname = FORUM_ROOT.'include/url/'.$dirname; |
| 946: if (is_dir($dirname) && file_exists($dirname.'/forum_urls.php')) |
| 947: $schemes[] = basename($dirname); |
| 948: } |
| 949: closedir($handle); |
| 950: } |
944: | 951: |
945: ($hook = get_hook('fn_get_scheme_packs_end')) ? eval($hook) : null; | 952: ($hook = get_hook('fn_get_scheme_packs_end')) ? eval($hook) : null; |
946: | 953: |
952: function get_style_packs() | 959: function get_style_packs() |
953: { | 960: { |
954: $styles = array(); | 961: $styles = array(); |
955: | 962: |
956: foreach (glob(FORUM_ROOT.'style/*') as $dirname) | 963: if($handle = opendir(FORUM_ROOT.'style')) |
957: { | 964: { |
958: $tempname = basename($dirname); | 965: while (false !== ($dirname = readdir($handle))) |
959: if (is_dir($dirname) && file_exists($dirname.'/'.$tempname.'.php')) | 966: { |
960: $styles[] = $tempname; | 967: $dirname = FORUM_ROOT.'style/'.$dirname; |
| 968: $tempname = basename($dirname); |
| 969: if (is_dir($dirname) && file_exists($dirname.'/'.$tempname.'.php')) |
| 970: $styles[] = $tempname; |
| 971: } |
| 972: closedir($handle); |
961: } | 973: } |
962: | 974: |
963: ($hook = get_hook('fn_get_style_packs_end')) ? eval($hook) : null; | 975: ($hook = get_hook('fn_get_style_packs_end')) ? eval($hook) : null; |
971: { | 983: { |
972: $languages = array(); | 984: $languages = array(); |
973: | 985: |
974: foreach (glob(FORUM_ROOT.'lang/*') as $dirname) | 986: if($handle = opendir(FORUM_ROOT.'lang')) |
975: if (is_dir($dirname) && file_exists($dirname.'/common.php')) | 987: { |
976: $languages[] = basename($dirname); | 988: while (false !== ($dirname = readdir($handle))) |
| 989: { |
| 990: $dirname = FORUM_ROOT.'lang/'.$dirname; |
| 991: if (is_dir($dirname) && file_exists($dirname.'/common.php')) |
| 992: $languages[] = basename($dirname); |
| 993: } |
| 994: closedir($handle); |
| 995: } |
977: | 996: |
978: ($hook = get_hook('fn_get_language_packs_end')) ? eval($hook) : null; | 997: ($hook = get_hook('fn_get_language_packs_end')) ? eval($hook) : null; |
979: | 998: |
2572: if (isset($_POST['confirm_cancel'])) | 2591: if (isset($_POST['confirm_cancel'])) |
2573: redirect(forum_htmlencode($_POST['prev_url']), $lang_common['Cancel redirect']); | 2592: redirect(forum_htmlencode($_POST['prev_url']), $lang_common['Cancel redirect']); |
2574: | 2593: |
2575: // A helper function for csrf_confirm_form. It takes a multi-dimensional array and returns it as a | 2594: // A helper function for csrf_confirm_form. It takes a multi-dimensional array and returns it as a |
2576: // single-dimensional array suitable for use in hidden fields. | 2595: // single-dimensional array suitable for use in hidden fields. |
2577: function _csrf_confirm_form($key, $values) | 2596: function _csrf_confirm_form($key, $values) |
2578: { | 2597: { |
2579: $fields = array(); | 2598: $fields = array(); |
2580: | 2599: |
punbb-1.3/lang/English/admin_settings.php |
punbb-1.3.1/lang/English/admin_settings.php |
43: 'Report email label' => 'By e-mail to those on mailing list.', | 43: 'Report email label' => 'By e-mail to those on mailing list.', |
44: 'Setup URL' => 'URL Scheme (<abbr title ="Search Engine Friendly">SEF</abbr> URLs) for your board\'s pages', | 44: 'Setup URL' => 'URL Scheme (<abbr title ="Search Engine Friendly">SEF</abbr> URLs) for your board\'s pages', |
45: 'Setup URL legend' => 'Select a scheme', | 45: 'Setup URL legend' => 'Select a scheme', |
46: 'URL scheme info' => '<strong>WARNING!</strong> If you select any scheme other than the default scheme you must copy/upload the file .htaccess from the extras directory into the forum root directory. The server that hosts the forums must be configured with mod_rewrite support and must allow the use of .htaccess files. For servers other than Apache, please refer to your servers documentation.', | 46: 'URL scheme info' => '<strong>WARNING!</strong> If you select any scheme other than the default scheme you must copy/rename the file <em>.htaccess.dist</em> to <em>.htaccess</em> in the forum root directory. The server that hosts the forums must be configured with mod_rewrite support and must allow the use of <em>.htaccess</em> files. For servers other than Apache, please refer to your servers documentation.', |
47: 'URL scheme label' => 'URL scheme', | 47: 'URL scheme label' => 'URL scheme', |
48: 'URL scheme help' => 'Make sure you have read and understood the information above.', | 48: 'URL scheme help' => 'Make sure you have read and understood the information above.', |
49: 'Setup links' => 'Add your own links to the main navigation menu', | 49: 'Setup links' => 'Add your own links to the main navigation menu', |
96: 'All caps message label' => 'Allow messages to contain only capital letters.', | 96: 'All caps message label' => 'Allow messages to contain only capital letters.', |
97: 'All caps subject label' => 'Allow subjects to contain only capital letters.', | 97: 'All caps subject label' => 'Allow subjects to contain only capital letters.', |
98: 'Indent size label' => '[code] tag indent size', | 98: 'Indent size label' => '[code] tag indent size', |
99: 'Indent size help' => 'Indent text by this many spaces. If set to 8, a regular tab will be used', | 99: 'Indent size help' => 'Indent text by this many spaces. If set to 8, a regular tab will be used.', |
100: 'Quote depth label' => 'Maximum [quote] depth', | 100: 'Quote depth label' => 'Maximum [quote] depth', |
101: 'Quote depth help' => 'The maximum times a [quote] tag can go inside other [quote] tags, any tags deeper than this will be discarded', | 101: 'Quote depth help' => 'The maximum times a [quote] tag can go inside other [quote] tags, any tags deeper than this will be discarded.', |
102: 'Features sigs' => 'User signatures and signature content', | 102: 'Features sigs' => 'User signatures and signature content', |
103: 'Features sigs legend' => 'Signature options', | 103: 'Features sigs legend' => 'Signature options', |
104: 'Allow signatures' => 'Allow signatures', | 104: 'Allow signatures' => 'Allow signatures', |
punbb-1.3/lang/English/common.php |
punbb-1.3.1/lang/English/common.php |
76: 'Paging separator' => ' ', //The character or text that separates page numbers for page navigation generally | 76: 'Paging separator' => ' ', //The character or text that separates page numbers for page navigation generally |
77: 'Previous' => 'Previous', | 77: 'Previous' => 'Previous', |
78: 'Next' => 'Next', | 78: 'Next' => 'Next', |
79: 'Cancel redirect' => 'Operation cancelled. Redirecting …', | 79: 'Cancel redirect' => 'Operation cancelled. Redirecting…', |
80: 'No confirm redirect' => 'No confirmation provided. Operation cancelled. Redirecting …', | 80: 'No confirm redirect' => 'No confirmation provided. Operation cancelled. Redirecting…', |
81: 'Please confirm' => 'Please confirm:', | 81: 'Please confirm' => 'Please confirm:', |
82: 'Help page' => 'Help with: %s', | 82: 'Help page' => 'Help with: %s', |
83: 'Re' => 'Re:', | 83: 'Re' => 'Re:', |
133: // Alerts | 133: // Alerts |
134: 'New alerts' => 'New Alerts', | 134: 'New alerts' => 'New Alerts', |
135: 'Maintenance alert' => '<strong>WARNING! Maintenance mode enabled.</strong> This board is currently in maintenance mode. <em>DO NOT</em> logout, if you do you will not be able to login again.', | 135: 'Maintenance alert' => '<strong>WARNING! Maintenance mode enabled.</strong> This board is currently in maintenance mode. <em>DO NOT</em> logout, if you do you will not be able to login again.', |
136: 'Updates' => 'PunBB updates', | 136: 'Updates' => 'PunBB updates:', |
137: 'Updates failed' => 'The latest attempt at checking for updates against the punbb.informer.com updates service failed. This probably just means that the service is temporarily overloaded or out of order. However, if this alert does not disappear within a day or two, you should disable the automatic check for updates and check for updates manually in the future.', | 137: 'Updates failed' => 'The latest attempt at checking for updates against the punbb.informer.com updates service failed. This probably just means that the service is temporarily overloaded or out of order. However, if this alert does not disappear within a day or two, you should disable the automatic check for updates and check for updates manually in the future.', |
138: 'Updates version n hf' => 'A newer version of PunBB, version %s, is available for download at <a href="http://punbb.informer.com/">punbb.informer.com</a>. Furthermore, one or more hotfix extensions are available for install on the Extensions tab of the admin interface.', | 138: 'Updates version n hf' => 'A newer version of PunBB, version %s, is available for download at <a href="http://punbb.informer.com/">punbb.informer.com</a>. Furthermore, one or more hotfixes are available for install on the strong>Extensions</strong> » <strong>Manage hotfixes</strong> tab of the admin interface.', |
139: 'Updates version' => 'A newer version of PunBB, version %s, is available for download at <a href="http://punbb.informer.com/">punbb.informer.com</a>.', | 139: 'Updates version' => 'A newer version of PunBB, version %s, is available for download at <a href="http://punbb.informer.com/">punbb.informer.com</a>.', |
140: 'Updates hf' => 'One or more hotfix extensions are available for install on the Extensions tab of the admin interface.', | 140: 'Updates hf' => 'One or more hotfixes are available for install on the <a href="%s">Manage hotfixes</a> tab of the admin interface.', |
141: 'Database mismatch' => 'Database version mismatch', | 141: 'Database mismatch' => 'Database version mismatch', |
142: 'Database mismatch alert' => 'Your PunBB database is meant to be used in conjunction with a newer version of the PunBB code. This mismatch can lead to your forum not working properly. It is suggested that you upgrade your forum to the newest version of PunBB.', | 142: 'Database mismatch alert' => 'Your PunBB database is meant to be used in conjunction with a newer version of the PunBB code. This mismatch can lead to your forum not working properly. It is suggested that you upgrade your forum to the newest version of PunBB.', |
143: | 143: |
punbb-1.3/lang/English/misc.php |
punbb-1.3.1/lang/English/misc.php |
3: // Language definitions used in various scripts | 3: // Language definitions used in various scripts |
4: $lang_misc = array( | 4: $lang_misc = array( |
5: | 5: |
6: 'Mark read redirect' => 'All topics and forums have been marked as read. Redirecting …', | 6: 'Mark read redirect' => 'All topics and forums have been marked as read. Redirecting…', |
7: 'Mark forum read redirect' => 'All topics in the specified forum have been marked as read. Redirecting …', | 7: 'Mark forum read redirect' => 'All topics in the specified forum have been marked as read. Redirecting…', |
8: | 8: |
9: // Send e-mail | 9: // Send e-mail |
10: 'Form e-mail disabled' => 'The user you are trying to send an e-mail to has disabled form e-mail.', | 10: 'Form e-mail disabled' => 'The user you are trying to send an e-mail to has disabled form e-mail.', |
13: 'No e-mail message' => 'You must enter a message.', | 13: 'No e-mail message' => 'You must enter a message.', |
14: 'Too long e-mail message' => 'Your message length is %s bytes. This exceeds the %s bytes limit.', | 14: 'Too long e-mail message' => 'Your message length is %s bytes. This exceeds the %s bytes limit.', |
15: 'Email flood' => 'At least %s seconds have to pass between sent emails. Please wait a while and try sending again.', | 15: 'Email flood' => 'At least %s seconds have to pass between sent emails. Please wait a while and try sending again.', |
16: 'E-mail sent redirect' => 'E-mail sent. Redirecting …', | 16: 'E-mail sent redirect' => 'E-mail sent. Redirecting…', |
17: 'E-mail subject' => 'Subject', | 17: 'E-mail subject' => 'Subject', |
18: 'E-mail message' => 'Message', | 18: 'E-mail message' => 'Message', |
19: 'E-mail disclosure note' => '<strong>Important!</strong> When you send an e-mail using this form your e-mail address will be disclosed to the recipient.', | 19: 'E-mail disclosure note' => '<strong>Important!</strong> When you send an e-mail using this form your e-mail address will be disclosed to the recipient.', |
23: // Report | 23: // Report |
24: 'No reason' => 'You must enter a reason.', | 24: 'No reason' => 'You must enter a reason.', |
25: 'Report flood' => 'At least %s seconds have to pass between reports. Please wait a while and try sending again.', | 25: 'Report flood' => 'At least %s seconds have to pass between reports. Please wait a while and try sending again.', |
26: 'Report redirect' => 'Post reported. Redirecting …', | 26: 'Report redirect' => 'Post reported. Redirecting…', |
27: 'Report post' => 'Report post', | 27: 'Report post' => 'Report post', |
28: 'Reason' => 'Reason', | 28: 'Reason' => 'Reason', |
29: 'Reason help' => 'Enter a short reason why you are reporting this post.', | 29: 'Reason help' => 'Enter a short reason why you are reporting this post.', |
30: | 30: |
31: // Subscriptions | 31: // Subscriptions |
32: 'Already subscribed' => 'You are already subscribed to this topic.', | 32: 'Already subscribed' => 'You are already subscribed to this topic.', |
33: 'Subscribe redirect' => 'Your subscription has been added. Redirecting …', | 33: 'Subscribe redirect' => 'Your subscription has been added. Redirecting…', |
34: 'Not subscribed' => 'You are not subscribed to this topic.', | 34: 'Not subscribed' => 'You are not subscribed to this topic.', |
35: 'Unsubscribe redirect' => 'Your subscription has been removed. Redirecting …', | 35: 'Unsubscribe redirect' => 'Your subscription has been removed. Redirecting…', |
36: | 36: |
37: // General forum and topic moderation | 37: // General forum and topic moderation |
38: 'Moderate forum' => 'Moderate forum', | 38: 'Moderate forum' => 'Moderate forum', |
49: 'Show more users' => 'Show more users for this IP', | 49: 'Show more users' => 'Show more users for this IP', |
50: | 50: |
51: // Moderate forum | 51: // Moderate forum |
52: 'Moderate forum head' => 'Moderate : %s', | 52: 'Moderate forum head' => 'Moderate: %s', |
53: 'Topics' => 'Topics', | 53: 'Topics' => 'Topics', |
54: 'Move topic' => 'Move topic', | 54: 'Move topic' => 'Move topic', |
55: 'Move topics' => 'Move topics', | 55: 'Move topics' => 'Move topics', |
63: 'Leave redirect' => 'Leave a redirect topic in the forum from which the topic was moved.', | 63: 'Leave redirect' => 'Leave a redirect topic in the forum from which the topic was moved.', |
64: 'Leave redirects' => 'Leave redirect topics in the forum from which topics were moved.', | 64: 'Leave redirects' => 'Leave redirect topics in the forum from which topics were moved.', |
65: 'Leave merge redirects' => 'Leave redirect topics for those topics which were merged.', | 65: 'Leave merge redirects' => 'Leave redirect topics for those topics which were merged.', |
66: 'Move topic redirect' => 'Topic moved. Redirecting …', | 66: 'Move topic redirect' => 'Topic moved. Redirecting…', |
67: 'Move topics redirect' => 'Topics moved. Redirecting …', | 67: 'Move topics redirect' => 'Topics moved. Redirecting…', |
68: 'Merge topics redirect' => 'Topics merged. Redirecting …', | 68: 'Merge topics redirect' => 'Topics merged. Redirecting…', |
69: 'Delete topic comply' => 'Are you sure you want to delete the selected topic?', | 69: 'Delete topic comply' => 'Are you sure you want to delete the selected topic?', |
70: 'Delete topics comply' => 'Are you sure you want to delete all the selected topics?', | 70: 'Delete topics comply' => 'Are you sure you want to delete all the selected topics?', |
71: 'Delete topic redirect' => 'Topic deleted. Redirecting …', | 71: 'Delete topic redirect' => 'Topic deleted. Redirecting…', |
72: 'Delete topics redirect' => 'Topics deleted. Redirecting …', | 72: 'Delete topics redirect' => 'Topics deleted. Redirecting…', |
73: 'Open topic redirect' => 'Topic opened. Redirecting …', | 73: 'Open topic redirect' => 'Topic opened. Redirecting…', |
74: 'Open topics redirect' => 'Topics opened. Redirecting …', | 74: 'Open topics redirect' => 'Topics opened. Redirecting…', |
75: 'Close topic redirect' => 'Topic closed. Redirecting …', | 75: 'Close topic redirect' => 'Topic closed. Redirecting…', |
76: 'Close topics redirect' => 'Topics closed. Redirecting …', | 76: 'Close topics redirect' => 'Topics closed. Redirecting…', |
77: 'No topics selected' => 'You must select at least one topic.', | 77: 'No topics selected' => 'You must select at least one topic.', |
78: 'Stick topic redirect' => 'Topic is now sticky. Redirecting …', | 78: 'Stick topic redirect' => 'Topic is now sticky. Redirecting…', |
79: 'Unstick topic redirect' => 'Topic no longer sticky. Redirecting …', | 79: 'Unstick topic redirect' => 'Topic no longer sticky. Redirecting…', |
80: 'Merge error' => 'You should select more than 1 topic to merge.', | 80: 'Merge error' => 'You should select more than 1 topic to merge.', |
81: | 81: |
82: // Moderate topic | 82: // Moderate topic |
84: 'Delete posts' => 'Delete selected posts', | 84: 'Delete posts' => 'Delete selected posts', |
85: 'Split posts' => 'Split selected posts', | 85: 'Split posts' => 'Split selected posts', |
86: 'Delete whole topic' => 'Delete whole topic', | 86: 'Delete whole topic' => 'Delete whole topic', |
87: 'Moderate topic head' => 'Moderate topic : %s', | 87: 'Moderate topic head' => 'Moderate topic: %s', |
88: 'New subject' => 'New topic subject:', | 88: 'New subject' => 'New topic subject:', |
89: 'Select post' => 'Select post', // Label for checkbox | 89: 'Select post' => 'Select post', // Label for checkbox |
90: 'Confirm post delete' => 'Confirm deletion of all selected posts', | 90: 'Confirm post delete' => 'Confirm deletion of all selected posts', |
92: 'Confirm topic split' => 'Confirm splitting of all selected posts into a new topic', | 92: 'Confirm topic split' => 'Confirm splitting of all selected posts into a new topic', |
93: 'Confirm topic merge' => 'Confirm merging of all selected topics into one topic', | 93: 'Confirm topic merge' => 'Confirm merging of all selected topics into one topic', |
94: 'Confirm post split' => 'Confirm splitting of all selected posts', | 94: 'Confirm post split' => 'Confirm splitting of all selected posts', |
95: 'Delete posts redirect' => 'Posts deleted. Redirecting …', | 95: 'Delete posts redirect' => 'Posts deleted. Redirecting…', |
96: 'Split posts redirect' => 'Posts split into a new topic. Redirecting …', | 96: 'Split posts redirect' => 'Posts split into a new topic. Redirecting…', |
97: 'No posts selected' => 'You must select at least one post.' | 97: 'No posts selected' => 'You must select at least one post.' |
98: | 98: |
99: ); | 99: ); |
punbb-1.3/lang/English/profile.php |
punbb-1.3.1/lang/English/profile.php |
3: $lang_profile = array( | 3: $lang_profile = array( |
4: | 4: |
5: // Navigation and sections | 5: // Navigation and sections |
6: 'Profile redirect' => 'Profile updated. Redirecting …', | 6: 'Profile redirect' => 'Profile updated. Redirecting…', |
7: 'Instructions' => 'You will be redirected back to this page', | 7: 'Instructions' => 'You will be redirected back to this page', |
8: 'Update profile' => 'Update profile', | 8: 'Update profile' => 'Update profile', |
9: 'Subform heading' => '%1$s : %2$s', | |
10: | 9: |
11: // Administration stuff | 10: // Administration stuff |
12: 'User delete redirect' => 'User deleted. Redirecting …', | 11: 'User delete redirect' => 'User deleted. Redirecting…', |
13: 'Section admin' => 'Administration', | 12: 'Section admin' => 'Administration', |
14: 'Delete user' => 'Delete user', | 13: 'Delete user' => 'Delete user', |
15: 'Delete warning' => '<strong>Warning!</strong> Once deleted a user and/or their posts cannot be restored.', | 14: 'Delete warning' => '<strong>Warning!</strong> Once deleted a user and/or their posts cannot be restored.', |
16: 'Delete posts info' => '<strong>Warning!</strong> If you choose not to delete this user\'s posts they can only be deleted manually at a later time.', | 15: 'Delete posts info' => '<strong>Warning!</strong> If you choose not to delete this user\'s posts they can only be deleted manually at a later time.', |
17: 'Delete posts' => 'Delete posts', | 16: 'Delete posts' => 'Delete posts', |
18: 'Delete posts label' => 'Delete any posts and topics %s has made.', | 17: 'Delete posts label' => 'Delete any posts and topics %s has made.', |
19: 'Group membership redirect' => 'Group membership updated. Redirecting …', | 18: 'Group membership redirect' => 'Group membership updated. Redirecting…', |
20: 'Moderate forums redirect' => 'Forum moderator rights updated. Redirecting …', | 19: 'Moderate forums redirect' => 'Forum moderator rights updated. Redirecting…', |
21: 'Ban redirect' => 'Redirecting …', | 20: 'Ban redirect' => 'Redirecting…', |
22: 'Ban user' => 'Ban user', | 21: 'Ban user' => 'Ban user', |
23: 'Ban user info' => 'Ban this user via the administration console.', | 22: 'Ban user info' => 'Ban this user via the administration console.', |
24: 'Delete user info' => 'Permanently delete this user and, optionally, all their posts.', | 23: 'Delete user info' => 'Permanently delete this user and, optionally, all their posts.', |
33: // Avatar stuff | 32: // Avatar stuff |
34: 'Avatar welcome' => 'Set an avatar image to enhance your forum identity', | 33: 'Avatar welcome' => 'Set an avatar image to enhance your forum identity', |
35: 'Avatar welcome user' => 'Set an avatar image to enhance %s\'s forum identity', | 34: 'Avatar welcome user' => 'Set an avatar image to enhance %s\'s forum identity', |
36: 'Avatar deleted redirect' => 'Avatar deleted. Redirecting …', | 35: 'Avatar deleted redirect' => 'Avatar deleted. Redirecting…', |
37: 'Avatars disabled' => 'The administrator has disabled avatar support.', | 36: 'Avatars disabled' => 'The administrator has disabled avatar support.', |
38: 'No file' => 'You did not select a file for upload.', | 37: 'No file' => 'You did not select a file for upload.', |
39: 'Too large ini' => 'The selected file was too large to upload. The server didn\'t allow the upload.', | 38: 'Too large ini' => 'The selected file was too large to upload. The server didn\'t allow the upload.', |
170: 'Change pass errors' => '<strong>Warning!</strong> The following errors must be corrected before your password can be updated:', | 169: 'Change pass errors' => '<strong>Warning!</strong> The following errors must be corrected before your password can be updated:', |
171: 'Pass logout' => 'A user is currently logged in. Please logout and try again.', | 170: 'Pass logout' => 'A user is currently logged in. Please logout and try again.', |
172: 'Pass key bad' => 'The specified password activation key was incorrect or has expired. Please re-request a new password. If that fails, contact the forum administrator at %s.', | 171: 'Pass key bad' => 'The specified password activation key was incorrect or has expired. Please re-request a new password. If that fails, contact the forum administrator at %s.', |
173: 'Pass updated' => 'Password updated. Login with your new password. Redirecting …', | 172: 'Pass updated' => 'Password updated. Login with your new password. Redirecting…', |
174: 'Change your password' => 'Change your password', | 173: 'Change your password' => 'Change your password', |
175: 'Change user password' => 'Change %s\'s password', | 174: 'Change user password' => 'Change %s\'s password', |
176: 'Old password' => 'Old password', | 175: 'Old password' => 'Old password', |
178: 'New password' => 'New password', | 177: 'New password' => 'New password', |
179: 'Confirm new password' => 'Confirm new password', | 178: 'Confirm new password' => 'Confirm new password', |
180: 'Wrong old password' => 'The old password you entered was incorrect.', | 179: 'Wrong old password' => 'The old password you entered was incorrect.', |
181: 'Pass updated redirect' => 'Password updated. Redirecting …', | 180: 'Pass updated redirect' => 'Password updated. Redirecting…', |
182: | 181: |
183: // Change E-mail stuff | 182: // Change E-mail stuff |
184: 'Change e-mail errors' => '<strong>Warning!</strong> The following errors must be corrected before your e-mail address can be updated:', | 183: 'Change e-mail errors' => '<strong>Warning!</strong> The following errors must be corrected before your e-mail address can be updated:', |
202: | 201: |
203: // Registration stuff (some of these also used by profile) | 202: // Registration stuff (some of these also used by profile) |
204: 'No new regs' => 'This forum is not accepting new registrations.', | 203: 'No new regs' => 'This forum is not accepting new registrations.', |
205: 'Reg cancel redirect' => 'Registration cancelled. Redirecting …', | 204: 'Reg cancel redirect' => 'Registration cancelled. Redirecting…', |
206: 'Agreement' => 'Agreement', | 205: 'Agreement' => 'Agreement', |
207: 'Agreement label' => 'I agree to the rules set out above and wish to register.', | 206: 'Agreement label' => 'I agree to the rules set out above and wish to register.', |
208: 'Agree' => 'Agree', | 207: 'Agree' => 'Agree', |
213: 'Banned e-mail' => 'The e-mail address you entered is banned in this forum. Please choose another e-mail address.', | 212: 'Banned e-mail' => 'The e-mail address you entered is banned in this forum. Please choose another e-mail address.', |
214: 'Dupe e-mail' => 'Someone else is already registered with that e-mail address. Please choose another e-mail address.', | 213: 'Dupe e-mail' => 'Someone else is already registered with that e-mail address. Please choose another e-mail address.', |
215: 'Reg e-mail' => 'Thank you for registering. An email has been sent to the specified address with instructions on how to activate your new account. If it doesn\'t arrive you can contact the forum administrator at %s.', | 214: 'Reg e-mail' => 'Thank you for registering. An email has been sent to the specified address with instructions on how to activate your new account. If it doesn\'t arrive you can contact the forum administrator at %s.', |
216: 'Reg complete' => 'Registration complete. Logging in and redirecting …', | 215: 'Reg complete' => 'Registration complete. Logging in and redirecting…', |
217: 'Register errors' => '<strong>Warning!</strong> The following errors must be corrected before you can register:', | 216: 'Register errors' => '<strong>Warning!</strong> The following errors must be corrected before you can register:', |
218: 'E-mail info' => '<strong>Important!</strong> An e-mail will be sent to your new address with an activation link. You must click the link in the e-mail you receive to activate the new address. You must therefore ensure that you enter a valid and current e-mail address.', | 217: 'E-mail info' => '<strong>Important!</strong> An e-mail will be sent to your new address with an activation link. You must click the link in the e-mail you receive to activate the new address. You must therefore ensure that you enter a valid and current e-mail address.', |
219: 'Reg e-mail info' => '<strong>Important!</strong> An e-mail with an activation link will be sent to the address you provide. You must click the link in the e-mail in order to activate your new account. You must therefore ensure that you enter a valid and current e-mail address.', | 218: 'Reg e-mail info' => '<strong>Important!</strong> An e-mail with an activation link will be sent to the address you provide. You must click the link in the e-mail in order to activate your new account. You must therefore ensure that you enter a valid and current e-mail address.', |
punbb-1.3/moderate.php |
punbb-1.3.1/moderate.php |
755: message($lang_misc['No topics selected']); | 755: message($lang_misc['No topics selected']); |
756: | 756: |
757: if (count($topics) == 1) | 757: if (count($topics) == 1) |
| 758: { |
758: $topics = $topics[0]; | 759: $topics = $topics[0]; |
| 760: $action = 'single'; |
| 761: } |
| 762: else |
| 763: $action = 'multiple'; |
759: } | 764: } |
760: else | 765: else |
761: { | 766: { |
764: message($lang_common['Bad request']); | 769: message($lang_common['Bad request']); |
765: | 770: |
766: $action = 'single'; | 771: $action = 'single'; |
767: | 772: } |
| 773: if ($action == 'single') |
| 774: { |
768: // Fetch the topic subject | 775: // Fetch the topic subject |
769: $query = array( | 776: $query = array( |
770: 'SELECT' => 't.subject', | 777: 'SELECT' => 't.subject', |
815: | 822: |
816: $forum_page['hidden_fields'] = array( | 823: $forum_page['hidden_fields'] = array( |
817: 'csrf_token' => '<input type="hidden" name="csrf_token" value="'.generate_form_token($forum_page['form_action']).'" />', | 824: 'csrf_token' => '<input type="hidden" name="csrf_token" value="'.generate_form_token($forum_page['form_action']).'" />', |
818: 'topics' => '<input type="hidden" name="topics" value="'.$topics.'" />' | 825: 'topics' => '<input type="hidden" name="topics" value="'.($action == 'single' ? $topics : implode(',', $topics)).'" />' |
819: ); | 826: ); |
820: | 827: |
821: // Setup breadcrumbs | 828: // Setup breadcrumbs |
921: message($lang_misc['No topics selected']); | 928: message($lang_misc['No topics selected']); |
922: | 929: |
923: if (count($topics) == 1) | 930: if (count($topics) == 1) |
924: message($lang_misc['Merge error']); | 931: message($lang_misc['Merge error']); |
925: | 932: |
926: if (isset($_POST['merge_topics_comply'])) | 933: if (isset($_POST['merge_topics_comply'])) |
927: { | 934: { |
1011: $lang_misc['Merge topics'] | 1018: $lang_misc['Merge topics'] |
1012: ); | 1019: ); |
1013: | 1020: |
1014: // Setup main heading | |
1015: $forum_page['main_title'] = end($forum_page['crumbs']); | |
1016: | |
1017: ($hook = get_hook('mr_merge_topics_pre_header_load')) ? eval($hook) : null; | 1021: ($hook = get_hook('mr_merge_topics_pre_header_load')) ? eval($hook) : null; |
1018: | 1022: |
1019: define('FORUM_PAGE', 'dialogue'); | 1023: define('FORUM_PAGE', 'dialogue'); |
1552: | 1556: |
1553: $forum_page['item_body']['info']['replies'] = '<li class="info-replies"><span class="label">'.$lang_forum['No replies info'].'</span></li>'; | 1557: $forum_page['item_body']['info']['replies'] = '<li class="info-replies"><span class="label">'.$lang_forum['No replies info'].'</span></li>'; |
1554: $forum_page['item_body']['info']['lastpost'] = '<li class="info-lastpost"><span class="label">'.$lang_forum['No lastpost info'].'</span></li>'; | 1558: $forum_page['item_body']['info']['lastpost'] = '<li class="info-lastpost"><span class="label">'.$lang_forum['No lastpost info'].'</span></li>'; |
1555: $forum_page['item_body']['info']['select'] = '<li class="info-select"><input id="fld'.++$forum_page['fld_count'].'" type="checkbox" name="topics[]" value="'.$cur_topic['id'].'" /> <label for="fld'.$forum_page['fld_count'].'">'.sprintf($lang_forum['Select topic'], $cur_topic['subject']).'</label></li>'; | 1559: $forum_page['item_body']['info']['select'] = '<li class="info-select"><input id="fld'.++$forum_page['fld_count'].'" type="checkbox" name="topics[]" value="'.$cur_topic['id'].'" /> <label for="fld'.$forum_page['fld_count'].'">'.sprintf($lang_forum['Select topic'], forum_htmlencode($cur_topic['subject'])).'</label></li>'; |
1556: | 1560: |
1557: ($hook = get_hook('mr_topic_actions_moved_row_pre_output')) ? eval($hook) : null; | 1561: ($hook = get_hook('mr_topic_actions_moved_row_pre_output')) ? eval($hook) : null; |
1558: } | 1562: } |
1612: if (empty($forum_page['item_status'])) | 1616: if (empty($forum_page['item_status'])) |
1613: $forum_page['item_status']['normal'] = 'normal'; | 1617: $forum_page['item_status']['normal'] = 'normal'; |
1614: | 1618: |
| 1619: $forum_page['item_body']['info']['replies'] = '<li class="info-replies"><strong>'.forum_number_format($cur_topic['num_replies']).'</strong> <span class="label">'.(($cur_topic['num_replies'] == 1) ? $lang_forum['Reply'] : $lang_forum['Replies']).'</span></li>'; |
| 1620: |
1615: if ($forum_config['o_topic_views'] == '1') | 1621: if ($forum_config['o_topic_views'] == '1') |
1616: $forum_page['item_body']['info']['views'] = '<li class="info-views"><strong>'.forum_number_format($cur_topic['num_views']).'</strong> <span class="label">'.(($cur_topic['num_views'] == 1) ? $lang_forum['View'] : $lang_forum['Views']).'</span></li>'; | 1622: $forum_page['item_body']['info']['views'] = '<li class="info-views"><strong>'.forum_number_format($cur_topic['num_views']).'</strong> <span class="label">'.(($cur_topic['num_views'] == 1) ? $lang_forum['View'] : $lang_forum['Views']).'</span></li>'; |
1617: | 1623: |
1618: $forum_page['item_body']['info']['replies'] = '<li class="info-replies"><strong>'.forum_number_format($cur_topic['num_replies']).'</strong> <span class="label">'.(($cur_topic['num_replies'] == 1) ? $lang_forum['Reply'] : $lang_forum['Replies']).'</span></li>'; | |
1619: $forum_page['item_body']['info']['lastpost'] = '<li class="info-lastpost"><span class="label">'.$lang_forum['Last post'].'</span> <strong><a href="'.forum_link($forum_url['post'], $cur_topic['last_post_id']).'">'.format_time($cur_topic['last_post']).'</a></strong> <cite>'.sprintf($lang_forum['by poster'], forum_htmlencode($cur_topic['last_poster'])).'</cite></li>'; | 1624: $forum_page['item_body']['info']['lastpost'] = '<li class="info-lastpost"><span class="label">'.$lang_forum['Last post'].'</span> <strong><a href="'.forum_link($forum_url['post'], $cur_topic['last_post_id']).'">'.format_time($cur_topic['last_post']).'</a></strong> <cite>'.sprintf($lang_forum['by poster'], forum_htmlencode($cur_topic['last_poster'])).'</cite></li>'; |
1620: $forum_page['item_body']['info']['select'] = '<li class="info-select"><input id="fld'.++$forum_page['fld_count'].'" type="checkbox" name="topics[]" value="'.$cur_topic['id'].'" /> <label for="fld'.$forum_page['fld_count'].'">'.sprintf($lang_forum['Select topic'], $cur_topic['subject']).'</label></li>'; | 1625: $forum_page['item_body']['info']['select'] = '<li class="info-select"><input id="fld'.++$forum_page['fld_count'].'" type="checkbox" name="topics[]" value="'.$cur_topic['id'].'" /> <label for="fld'.$forum_page['fld_count'].'">'.sprintf($lang_forum['Select topic'], forum_htmlencode($cur_topic['subject'])).'</label></li>'; |
1621: | 1626: |
1622: ($hook = get_hook('mr_topic_actions_normal_row_pre_output')) ? eval($hook) : null; | 1627: ($hook = get_hook('mr_topic_actions_normal_row_pre_output')) ? eval($hook) : null; |
1623: } | 1628: } |
punbb-1.3/profile.php |
punbb-1.3.1/profile.php |
123: ($forum_page['own_profile']) ? array($lang_profile['Change your password'], forum_link($forum_url['change_password'], $id)) : array(sprintf($lang_profile['Change user password'], forum_htmlencode($user['username'])),forum_link($forum_url['change_password']), $id) | 123: ($forum_page['own_profile']) ? array($lang_profile['Change your password'], forum_link($forum_url['change_password'], $id)) : array(sprintf($lang_profile['Change user password'], forum_htmlencode($user['username'])),forum_link($forum_url['change_password']), $id) |
124: ); | 124: ); |
125: | 125: |
126: // Setup headings | |
127: $forum_page['main_head'] = sprintf($lang_profile['Subform heading'], sprintf($lang_profile['Users profile'], forum_htmlencode($user['username'])), end($forum_page['crumbs'])); | |
128: | |
129: ($hook = get_hook('pf_change_pass_key_pre_header_load')) ? eval($hook) : null; | 126: ($hook = get_hook('pf_change_pass_key_pre_header_load')) ? eval($hook) : null; |
130: | 127: |
131: define('FORUM_PAGE', 'profile-changepass'); | 128: define('FORUM_PAGE', 'profile-changepass'); |
138: | 135: |
139: ?> | 136: ?> |
140: <div class="main-head"> | 137: <div class="main-head"> |
141: <h2 class="hn"><span><?php printf(($forum_user['id'] == $id) ? $lang_profile['Profile welcome'] : $lang_profile['Profile welcome user'], forum_htmlencode($user['username'])) ?></span></h2> | 138: <h2 class="hn"><span><?php echo $forum_page['own_profile'] ? $lang_profile['Change your password'] : sprintf($lang_profile['Change user password'], forum_htmlencode($user['username'])) ?></span></h2> |
142: </div> | 139: </div> |
143: <div class="main-content main-frm"> | 140: <div class="main-content main-frm"> |
144: <?php | 141: <?php |
290: ($forum_page['own_profile']) ? array($lang_profile['Change your password'], forum_link($forum_url['change_password'], $id)) : array(sprintf($lang_profile['Change user password'], forum_htmlencode($user['username'])),forum_link($forum_url['change_password'], $id)) | 287: ($forum_page['own_profile']) ? array($lang_profile['Change your password'], forum_link($forum_url['change_password'], $id)) : array(sprintf($lang_profile['Change user password'], forum_htmlencode($user['username'])),forum_link($forum_url['change_password'], $id)) |
291: ); | 288: ); |
292: | 289: |
293: // Setup headings | |
294: $forum_page['main_head'] = sprintf($lang_profile['Subform heading'], sprintf($lang_profile['Users profile'], forum_htmlencode($user['username'])), end($forum_page['crumbs'])); | |
295: | |
296: ($hook = get_hook('pf_change_pass_normal_pre_header_load')) ? eval($hook) : null; | 290: ($hook = get_hook('pf_change_pass_normal_pre_header_load')) ? eval($hook) : null; |
297: | 291: |
298: define('FORUM_PAGE', 'profile-changepass'); | 292: define('FORUM_PAGE', 'profile-changepass'); |
305: | 299: |
306: ?> | 300: ?> |
307: <div class="main-head"> | 301: <div class="main-head"> |
308: <h2 class="hn"><span><?php printf(($forum_user['id'] == $id) ? $lang_profile['Profile welcome'] : $lang_profile['Profile welcome user'], forum_htmlencode($user['username'])) ?></span></h2> | 302: <h2 class="hn"><span><?php echo $forum_page['own_profile'] ? $lang_profile['Change your password'] : sprintf($lang_profile['Change user password'], forum_htmlencode($user['username'])) ?></span></h2> |
309: </div> | 303: </div> |
310: <div class="main-content main-frm"> | 304: <div class="main-content main-frm"> |
311: <?php | 305: <?php |
537: ($forum_page['own_profile']) ? array($lang_profile['Change your e-mail'], forum_link($forum_url['change_email'], $id)) : array(sprintf($lang_profile['Change user e-mail'], forum_htmlencode($user['username'])), forum_link($forum_url['change_email'], $id)) | 531: ($forum_page['own_profile']) ? array($lang_profile['Change your e-mail'], forum_link($forum_url['change_email'], $id)) : array(sprintf($lang_profile['Change user e-mail'], forum_htmlencode($user['username'])), forum_link($forum_url['change_email'], $id)) |
538: ); | 532: ); |
539: | 533: |
540: // Setup headings | |
541: $forum_page['main_head'] = sprintf($lang_profile['Subform heading'], sprintf($lang_profile['Users profile'], forum_htmlencode($user['username'])), end($forum_page['crumbs'])); | |
542: | |
543: ($hook = get_hook('pf_change_email_normal_pre_header_load')) ? eval($hook) : null; | 534: ($hook = get_hook('pf_change_email_normal_pre_header_load')) ? eval($hook) : null; |
544: | 535: |
545: define('FORUM_PAGE', 'profile-changemail'); | 536: define('FORUM_PAGE', 'profile-changemail'); |
668: array($lang_profile['Delete user'], forum_link($forum_url['delete_user'], $id)) | 659: array($lang_profile['Delete user'], forum_link($forum_url['delete_user'], $id)) |
669: ); | 660: ); |
670: | 661: |
671: // Setup headings | |
672: $forum_page['main_head'] = array( | |
673: 'head' => '<h1 class="hn"><span>'.sprintf($lang_profile['Subform heading'], sprintf($lang_profile['Users profile'], forum_htmlencode($user['username'])), end($forum_page['crumbs'])).'</span></h1>' | |
674: ); | |
675: | |
676: ($hook = get_hook('pf_delete_user_pre_header_load')) ? eval($hook) : null; | 662: ($hook = get_hook('pf_delete_user_pre_header_load')) ? eval($hook) : null; |
677: | 663: |
678: define('FORUM_PAGE', 'dialogue'); | 664: define('FORUM_PAGE', 'dialogue'); |
1597: if (!$forum_user['is_admmod'] && $forum_config['o_regs_verify'] == '1') | 1583: if (!$forum_user['is_admmod'] && $forum_config['o_regs_verify'] == '1') |
1598: $forum_page['user_options']['change_email'] = '<span'.(empty($forum_page['user_options']) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['change_email'], $id).'">'.(($forum_page['own_profile']) ? $lang_profile['Change your e-mail'] : sprintf($lang_profile['Change user e-mail'], forum_htmlencode($user['username']))).'</a></span>'; | 1584: $forum_page['user_options']['change_email'] = '<span'.(empty($forum_page['user_options']) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['change_email'], $id).'">'.(($forum_page['own_profile']) ? $lang_profile['Change your e-mail'] : sprintf($lang_profile['Change user e-mail'], forum_htmlencode($user['username']))).'</a></span>'; |
1599: | 1585: |
1600: // Setup headings | |
1601: $forum_page['main_head'] = sprintf($lang_profile['Subform heading'], forum_htmlencode(end($forum_page['crumbs'][0])), $lang_profile['Section about']); | |
1602: | |
1603: $forum_page['group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0; | 1586: $forum_page['group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0; |
1604: | 1587: |
1605: ($hook = get_hook('pf_change_details_about_pre_header_load')) ? eval($hook) : null; | 1588: ($hook = get_hook('pf_change_details_about_pre_header_load')) ? eval($hook) : null; |
1709: // Does the form have required fields | 1692: // Does the form have required fields |
1710: $forum_page['has_required'] = ((($forum_user['is_admmod'] && ($forum_user['g_id'] == FORUM_ADMIN || $forum_user['g_mod_rename_users'] == '1')) || ($forum_user['is_admmod'] || $forum_config['o_regs_verify'] != '1')) ? true : false); | 1693: $forum_page['has_required'] = ((($forum_user['is_admmod'] && ($forum_user['g_id'] == FORUM_ADMIN || $forum_user['g_mod_rename_users'] == '1')) || ($forum_user['is_admmod'] || $forum_config['o_regs_verify'] != '1')) ? true : false); |
1711: | 1694: |
1712: // Setup headings | |
1713: $forum_page['main_head'] = sprintf($lang_profile['Subform heading'], forum_htmlencode(end($forum_page['crumbs'][0])), $lang_profile['Section identity']); | |
1714: | |
1715: ($hook = get_hook('pf_change_details_identity_pre_header_load')) ? eval($hook) : null; | 1695: ($hook = get_hook('pf_change_details_identity_pre_header_load')) ? eval($hook) : null; |
1716: | 1696: |
1717: define('FORUM_PAGE', 'profile-identity'); | 1697: define('FORUM_PAGE', 'profile-identity'); |
1925: 'csrf_token' => '<input type="hidden" name="csrf_token" value="'.generate_form_token($forum_page['form_action']).'" />' | 1905: 'csrf_token' => '<input type="hidden" name="csrf_token" value="'.generate_form_token($forum_page['form_action']).'" />' |
1926: ); | 1906: ); |
1927: | 1907: |
1928: // Setup headings | |
1929: $forum_page['main_head'] = sprintf($lang_profile['Subform heading'], forum_htmlencode(end($forum_page['crumbs'][0])), $lang_profile['Section settings']); | |
1930: | |
1931: ($hook = get_hook('pf_change_details_settings_pre_header_load')) ? eval($hook) : null; | 1908: ($hook = get_hook('pf_change_details_settings_pre_header_load')) ? eval($hook) : null; |
1932: | 1909: |
1933: define('FORUM_PAGE', 'profile-settings'); | 1910: define('FORUM_PAGE', 'profile-settings'); |
2283: if ($forum_config['o_smilies_sig'] == '1') | 2260: if ($forum_config['o_smilies_sig'] == '1') |
2284: $forum_page['text_options']['smilies'] = '<span'.(empty($forum_page['text_options']) ? ' class="first-item"' : '').'><a class="exthelp" href="'.forum_link($forum_url['help'], 'smilies').'" title="'.sprintf($lang_common['Help page'], $lang_common['Smilies']).'">'.$lang_common['Smilies'].'</a></span>'; | 2261: $forum_page['text_options']['smilies'] = '<span'.(empty($forum_page['text_options']) ? ' class="first-item"' : '').'><a class="exthelp" href="'.forum_link($forum_url['help'], 'smilies').'" title="'.sprintf($lang_common['Help page'], $lang_common['Smilies']).'">'.$lang_common['Smilies'].'</a></span>'; |
2285: | 2262: |
2286: // Setup headings | |
2287: $forum_page['main_head'] = sprintf($lang_profile['Subform heading'], forum_htmlencode(end($forum_page['crumbs'][0])), $lang_profile['Section signature']); | |
2288: | |
2289: ($hook = get_hook('pf_change_details_signature_pre_header_load')) ? eval($hook) : null; | 2263: ($hook = get_hook('pf_change_details_signature_pre_header_load')) ? eval($hook) : null; |
2290: | 2264: |
2291: define('FORUM_PAGE', 'profile-signature'); | 2265: define('FORUM_PAGE', 'profile-signature'); |
2407: $forum_page['frm_info']['avatar_size'] = '<li><span>'.sprintf($lang_profile['Avatar info size'], $forum_config['o_avatars_width'], $forum_config['o_avatars_height'], forum_number_format($forum_config['o_avatars_size']), forum_number_format(ceil($forum_config['o_avatars_size'] / 1024))).'</span></li>'; | 2381: $forum_page['frm_info']['avatar_size'] = '<li><span>'.sprintf($lang_profile['Avatar info size'], $forum_config['o_avatars_width'], $forum_config['o_avatars_height'], forum_number_format($forum_config['o_avatars_size']), forum_number_format(ceil($forum_config['o_avatars_size'] / 1024))).'</span></li>'; |
2408: } | 2382: } |
2409: | 2383: |
2410: // Setup headings | |
2411: $forum_page['main_head'] = sprintf($lang_profile['Subform heading'], forum_htmlencode(end($forum_page['crumbs'][0])), $lang_profile['Section avatar']); | |
2412: | |
2413: ($hook = get_hook('pf_change_details_avatar_pre_header_load')) ? eval($hook) : null; | 2384: ($hook = get_hook('pf_change_details_avatar_pre_header_load')) ? eval($hook) : null; |
2414: | 2385: |
2415: define('FORUM_PAGE', 'profile-avatar'); | 2386: define('FORUM_PAGE', 'profile-avatar'); |
2532: $forum_page['user_management']['delete'] = '<div class="ct-set set'.++$forum_page['item_count'].'">'."\n\t\t\t\t".'<div class="ct-box">'."\n\t\t\t\t\t".'<h3 class="ct-legend hn">'.$lang_profile['Delete user'].'</h3>'."\n\t\t\t\t".'<p><a href="'.forum_link($forum_url['delete_user'], $id).'">'.$lang_profile['Delete user info'].'</a></p>'."\n\t\t\t\t".'</div>'."\n\t\t\t".'</div>'; | 2503: $forum_page['user_management']['delete'] = '<div class="ct-set set'.++$forum_page['item_count'].'">'."\n\t\t\t\t".'<div class="ct-box">'."\n\t\t\t\t\t".'<h3 class="ct-legend hn">'.$lang_profile['Delete user'].'</h3>'."\n\t\t\t\t".'<p><a href="'.forum_link($forum_url['delete_user'], $id).'">'.$lang_profile['Delete user info'].'</a></p>'."\n\t\t\t\t".'</div>'."\n\t\t\t".'</div>'; |
2533: } | 2504: } |
2534: | 2505: |
2535: // Setup headings | |
2536: $forum_page['main_head'] = sprintf($lang_profile['Subform heading'], forum_htmlencode(end($forum_page['crumbs'][0])), $lang_profile['Section admin']); | |
2537: | |
2538: ($hook = get_hook('pf_change_details_admin_pre_header_load')) ? eval($hook) : null; | 2506: ($hook = get_hook('pf_change_details_admin_pre_header_load')) ? eval($hook) : null; |
2539: | 2507: |
2540: define('FORUM_PAGE', 'profile-admin'); | 2508: define('FORUM_PAGE', 'profile-admin'); |