PunBB 1.3.1 to 1.3.4 changes Legend
Lines removed 
Lines changed
 Lines added

punbb-1.3.1/README punbb-1.3.4/README
 30:  2. Log into the forum and go to "Administration" console, "Extensions" section, choose "Install extensions" tab (e.g. http://example.com/punbb/admin/extensions.php?section=install). The downloaded extension will be listed there. 30:  2. Log into the forum and go to "Administration" console, "Extensions" section, choose "Install extensions" tab (e.g. http://example.com/punbb/admin/extensions.php?section=install). The downloaded extension will be listed there.
 31:  3. Click the "Install extension" link to install the extension. 31:  3. Click the "Install extension" link to install the extension.
 32:  32: 
 33: NOTE: You may use the pun_admin_repository official PunBB extension to download and install extensions from PunBB repository with one click. 33: NOTE: You may use the pun_repository official PunBB extension to download and install extensions from PunBB repository with one click.
 34:  34: 
 35:      Maximizing Performance 35:      Maximizing Performance
 36:     ------------------------ 36:     ------------------------
 53:  53: 
 54:      Copyright and disclaimer 54:      Copyright and disclaimer
 55:     -------------------------- 55:     --------------------------
 56: This package and its contents are copyright (C) 2002-2008 PunBB, all rights reserved. 56: This package and its contents are (C) 2002-2009 PunBB, all rights reserved.
 57: Partially based on code copyright (C) 2008 FluxBB.org. 57: Partially based on code (C) 2008-2009 FluxBB.org.
 58:  58: 
 59: PunBB is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 59: PunBB is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
 60:  60: 


punbb-1.3.1/admin/bans.php punbb-1.3.4/admin/bans.php
  4:  *  4:  *
  5:  * Allows administrators and moderators to create, modify, and delete bans.  5:  * Allows administrators and moderators to create, modify, and delete bans.
  6:  *  6:  *
  7:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  7:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  9:  * @package PunBB  9:  * @package PunBB
 10:  */ 10:  */
157:         <h2 class="hn"><span><?php echo $lang_admin_bans['Ban advanced heading'] ?></span></h2>157:         <h2 class="hn"><span><?php echo $lang_admin_bans['Ban advanced heading'] ?></span></h2>
158:     </div>158:     </div>
159:     <div class="main-content main-frm">159:     <div class="main-content main-frm">
160:         <div class="ct-box">160:         <div class="ct-box warn-box">
161:             <p class="warn"><?php echo $lang_admin_bans['Ban IP warning'] ?></p>161:             <p class="warn"><?php echo $lang_admin_bans['Ban IP warning'] ?></p>
162:         </div>162:         </div>
163:         <form class="frm-form" method="post" accept-charset="utf-8" action="<?php echo forum_link($forum_url['admin_bans']) ?>">163:         <form class="frm-form" method="post" accept-charset="utf-8" action="<?php echo forum_link($forum_url['admin_bans']) ?>">
164:             <div class="hidden">164:             <div class="hidden">
165:                 <input type="hidden" name="csrf_token" value="<?php echo generate_form_token(forum_link($forum_url['admin_bans'])) ?>" />165:                 <input type="hidden" name="csrf_token" value="<?php echo generate_form_token(forum_link($forum_url['admin_bans'])) ?>" />
166:                 <input type="hidden" name="mode" value="<?php echo $mode ?>" />166:                 <input type="hidden" name="mode" value="<?php echo $mode ?>" />
167: <?php if ($mode == 'edit'): ?>                <input type="hidden" name="ban_id" value="<?php echo $ban_id ?>" />167: <?php if ($mode == 'edit'): ?>
168: <?php endif; ?>            </div>168:                 <input type="hidden" name="ban_id" value="<?php echo $ban_id ?>" />
 169: <?php endif; ?>
 170:             </div>
169: <?php ($hook = get_hook('aba_add_edit_ban_pre_criteria_fieldset')) ? eval($hook) : null; ?>171: <?php ($hook = get_hook('aba_add_edit_ban_pre_criteria_fieldset')) ? eval($hook) : null; ?>
170:             <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">172:             <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">
171:                 <legend class="group-legend"><span><?php echo $lang_admin_bans['Ban criteria legend'] ?></span></legend>173:                 <legend class="group-legend"><span><?php echo $lang_admin_bans['Ban criteria legend'] ?></span></legend>
484:                         <h3 class=""><span><?php printf($lang_admin_bans['Current ban head'], $forum_page['ban_creator']) ?></span></h3>486:                         <h3 class=""><span><?php printf($lang_admin_bans['Current ban head'], $forum_page['ban_creator']) ?></span></h3>
485:                         <p><?php printf($lang_admin_bans['Edit or remove'], '<a href="'.forum_link($forum_url['admin_bans']).'?edit_ban='.$cur_ban['id'].'">'.$lang_admin_bans['Edit ban'].'</a>', '<a href="'.forum_link($forum_url['admin_bans']).'?del_ban='.$cur_ban['id'].'&amp;csrf_token='.generate_form_token('del_ban'.$cur_ban['id']).'">'.$lang_admin_bans['Remove ban'].'</a>') ?></p>487:                         <p><?php printf($lang_admin_bans['Edit or remove'], '<a href="'.forum_link($forum_url['admin_bans']).'?edit_ban='.$cur_ban['id'].'">'.$lang_admin_bans['Edit ban'].'</a>', '<a href="'.forum_link($forum_url['admin_bans']).'?del_ban='.$cur_ban['id'].'&amp;csrf_token='.generate_form_token('del_ban'.$cur_ban['id']).'">'.$lang_admin_bans['Remove ban'].'</a>') ?></p>
486:                     </div>488:                     </div>
487: <?php if (!empty($forum_page['ban_info'])): ?>                <ul>489: <?php if (!empty($forum_page['ban_info'])): ?>
 490:                 <ul>
488:                     <?php echo implode("\n", $forum_page['ban_info'])."\n" ?>491:                     <?php echo implode("\n", $forum_page['ban_info'])."\n" ?>
489:                     </ul>492:                     </ul>
490: <?php endif; ?>                </div>493: <?php endif; ?>
 494:                 </div>
491:             </div>495:             </div>
492: <?php496: <?php
493: 497: 


punbb-1.3.1/admin/categories.php punbb-1.3.4/admin/categories.php
  4:  *  4:  *
  5:  * Allows administrators to create, reposition, and remove categories.  5:  * Allows administrators to create, reposition, and remove categories.
  6:  *  6:  *
  7:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  7:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  9:  * @package PunBB  9:  * @package PunBB
 10:  */ 10:  */
214:         if (isset($cat_name[$cur_cat['id']]) && isset($cat_order[$cur_cat['id']]))214:         if (isset($cat_name[$cur_cat['id']]) && isset($cat_order[$cur_cat['id']]))
215:         {215:         {
216:             if ($cat_name[$cur_cat['id']] == '')216:             if ($cat_name[$cur_cat['id']] == '')
217:                 message($lang_admin_categories['Must enter category']);217:                 message($lang_admin_categories['Must name category']);
218: 218: 
219:             if ($cat_order[$cur_cat['id']] < 0)219:             if ($cat_order[$cur_cat['id']] < 0)
220:                 message($lang_admin_categories['Must be integer']);220:                 message($lang_admin_categories['Must be integer']);


punbb-1.3.1/admin/censoring.php punbb-1.3.4/admin/censoring.php
  4:  *  4:  *
  5:  * Allows administrators and moderators to add, modify, and delete the word censors used by the software when censoring is enabled.  5:  * Allows administrators and moderators to add, modify, and delete the word censors used by the software when censoring is enabled.
  6:  *  6:  *
  7:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  7:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  9:  * @package PunBB  9:  * @package PunBB
 10:  */ 10:  */


punbb-1.3.1/admin/db_update.php punbb-1.3.4/admin/db_update.php
  4:  *  4:  *
  5:  * Updates the database to the latest version.  5:  * Updates the database to the latest version.
  6:  *  6:  *
  7:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  7:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  9:  * @package PunBB  9:  * @package PunBB
 10:  */ 10:  */
 11:  11: 
 12:  12: 
 13: define('UPDATE_TO', '1.3.1'); 13: define('UPDATE_TO', '1.3.4');
 14: define('UPDATE_TO_DB_REVISION', 3); 14: define('UPDATE_TO_DB_REVISION', 4);
 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)
 17: define('PER_PAGE', 300); 17: define('PER_PAGE', 300);
 39:     exit('Cannot find config.php, are you sure it exists?'); 39:     exit('Cannot find config.php, are you sure it exists?');
 40:  40: 
 41: // Enable debug mode 41: // Enable debug mode
 42: define('FORUM_DEBUG', 1); 42: if (!defined('FORUM_DEBUG')) 
  43:     define('FORUM_DEBUG', 1);
 43:  44: 
 44: // Turn on full PHP error reporting 45: // Turn on full PHP error reporting
 45: error_reporting(E_ALL); 46: error_reporting(E_ALL);
284:     $seems_utf8 = true;285:     $seems_utf8 = true;
285: 286: 
286:     $query = array(287:     $query = array(
287:         'SELECT'    => 'MIN(id), MAX(id)',288:         'SELECT'    => 'MIN(id), MAX(id), COUNT(id)',
288:         'FROM'        => 'posts'289:         'FROM'        => 'posts'
289:     );290:     );
290: 291: 
291:     $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);292:     $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
292:     list($min_id, $max_id) = $forum_db->fetch_row($result);293:     list($min_id, $max_id, $count_id) = $forum_db->fetch_row($result);
 294: 
 295:     if ($count_id == 0)
 296:         return false;
293: 297: 
294:     // Get a random soup of data and check if it appears to be UTF-8298:     // Get a random soup of data and check if it appears to be UTF-8
295:     for ($i = 0; $i < 100; ++$i)299:     for ($i = 0; $i < 100; ++$i)
408: <div id="brd-main" class="main basic">412: <div id="brd-main" class="main basic">
409: 413: 
410:     <div class="main-head">414:     <div class="main-head">
411:         <h1 class="hn"><span>PunBB Database Update : Perform update of database tables</span></h1>415:         <h1 class="hn"><span>PunBB Database Update: Perform update of database tables</span></h1>
412:     </div>416:     </div>
413: 417: 
414:     <div class="main-content frm">418:     <div class="main-content frm">
416:             <ul class="spaced">420:             <ul class="spaced">
417:                 <li class="warn"><span><strong>WARNING!</strong> This script will update your PunBB forum database. The update procedure might take anything from a few seconds to a few minutes (or in extreme cases, hours) depending on the speed of the server, the size of the forum database and the number of changes required.</span></li>421:                 <li class="warn"><span><strong>WARNING!</strong> This script will update your PunBB forum database. The update procedure might take anything from a few seconds to a few minutes (or in extreme cases, hours) depending on the speed of the server, the size of the forum database and the number of changes required.</span></li>
418:                 <li><span>Do not forget to make a backup of the database before continuing.</span></li>422:                 <li><span>Do not forget to make a backup of the database before continuing.</span></li>
419:                 <li><span> Did you read the update instructions in the documentation? If not, start there.</span></li>423:                 <li><span>Did you read the update instructions in the documentation? If not, start there.</span></li>
420: <?php424: <?php
421: 425: 
422: if (strpos($cur_version, '1.2') === 0 && (!$db_seems_utf8 || isset($_GET['force'])))426: if (strpos($cur_version, '1.2') === 0 && (!$db_seems_utf8 || isset($_GET['force'])))
725: 729: 
726:         // Make all IP fields VARCHAR(39) to support IPv6730:         // Make all IP fields VARCHAR(39) to support IPv6
727:         $forum_db->alter_field('posts', 'poster_ip', 'VARCHAR(39)', true);731:         $forum_db->alter_field('posts', 'poster_ip', 'VARCHAR(39)', true);
728:         $forum_db->alter_field('user', 'registration_ip', 'VARCHAR(39)', false, '0.0.0.0');732:         $forum_db->alter_field('users', 'registration_ip', 'VARCHAR(39)', false, '0.0.0.0');
729: 733: 
730:         // Add the DST option to the users table734:         // Add the DST option to the users table
731:         $forum_db->add_field('users', 'dst', 'TINYINT(1)', false, 0, 'timezone');735:         $forum_db->add_field('users', 'dst', 'TINYINT(1)', false, 0, 'timezone');
1991:     <div class="main-content frm">1995:     <div class="main-content frm">
1992:         <div class="ct-box info-box">1996:         <div class="ct-box info-box">
1993:             <p>Your forum database was updated successfully.</p>1997:             <p>Your forum database was updated successfully.</p>
1994: <?php if (isset($new_config) && !$written): ?>            <p>In order to complete the process, you must now update your config.php script. <strong>Copy and paste the text in the text box below into the file called config.php in the root directory of your PunBB installation</strong>. The file already exists, so you must edit/overwrite the contents of the old file. You may then <a href="<?php echo $base_url ?>/index.php">go to the forum index</a> once config.php has been updated.</p>1998: <?php if (isset($new_config) && !$written): ?>
1995: <?php else: ?>            <p>You may <a href="<?php echo $base_url ?>/index.php">go to the forum index</a> now.</p>1999:             <p>In order to complete the process, you must now update your config.php script. <strong>Copy and paste the text in the text box below into the file called config.php in the root directory of your PunBB installation</strong>. The file already exists, so you must edit/overwrite the contents of the old file. You may then <a href="<?php echo $base_url ?>/index.php">go to the forum index</a> once config.php has been updated.</p>
 2000: <?php else: ?>
 2001:             <p>You may <a href="<?php echo $base_url ?>/index.php">go to the forum index</a> now.</p>
1996: <?php endif; ?>        </div>2002: <?php endif; ?>        </div>
1997: <?php if (isset($new_config) && !$written): ?>        <form class="frm-form" action="foo">2003: <?php if (isset($new_config) && !$written): ?>
 2004:         <form class="frm-form" action="foo">
1998:             <fieldset class="frm-group group1">2005:             <fieldset class="frm-group group1">
1999:                 <legend class="group-legend"><span>New config.php contents</span></legend>2006:                 <legend class="group-legend"><span>New config.php contents</span></legend>
2000:                 <div class="txt-set set1">2007:                 <div class="txt-set set1">


punbb-1.3.1/admin/extensions.php punbb-1.3.4/admin/extensions.php
  4:  *  4:  *
  5:  * Allows administrators to control the extensions and hotfixes installed in the site.  5:  * Allows administrators to control the extensions and hotfixes installed in the site.
  6:  *  6:  *
  7:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  7:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  9:  * @package PunBB  9:  * @package PunBB
 10:  */ 10:  */
412:     {412:     {
413:         ($hook = get_hook('aex_uninstall_comply_form_submitted')) ? eval($hook) : null;413:         ($hook = get_hook('aex_uninstall_comply_form_submitted')) ? eval($hook) : null;
414: 414: 
 415:         $ext_info = array(
 416:             'id'            => $id,
 417:             'path'            => FORUM_ROOT.'extensions/'.$id,
 418:             'url'            => $base_url.'/extensions/'.$id
 419:         );
 420: 
415:         $notices = array();421:         $notices = array();
416: 422: 
417:         // Run uninstall code423:         // Run uninstall code


punbb-1.3.1/admin/forums.php punbb-1.3.4/admin/forums.php
  4:  *  4:  *
  5:  * Allows administrators to add, modify, and remove forums.  5:  * Allows administrators to add, modify, and remove forums.
  6:  *  6:  *
  7:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  7:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  9:  * @package PunBB  9:  * @package PunBB
 10:  */ 10:  */
177:         </form>177:         </form>
178:     </div>178:     </div>
179: 179: 
180: </div> 
181: <?php180: <?php
182: 181: 
183:         ($hook = get_hook('afo_del_forum_end')) ? eval($hook) : null;182:         ($hook = get_hook('afo_del_forum_end')) ? eval($hook) : null;
426: 425: 
427:     $forum_page['form_info'] = array();426:     $forum_page['form_info'] = array();
428:     if ($cur_forum['redirect_url'])427:     if ($cur_forum['redirect_url'])
429:         $forum_page['form_info'][] = '<li><span>'.$lang_admin_forums['Forum perms info 2'].'</span></li>';428:         $forum_page['form_info'][] = '<li><span>'.$lang_admin_forums['Forum perms redirect info'].'</span></li>';
430: 429: 
431:     $forum_page['form_info']['read'] = '<li><span>'.$lang_admin_forums['Forum perms read info'].'</span></li>';430:     $forum_page['form_info']['read'] = '<li><span>'.$lang_admin_forums['Forum perms read info'].'</span></li>';
432:     $forum_page['form_info']['restore'] = '<li><span>'.$lang_admin_forums['Forum perms restore info'].'</span></li>';431:     $forum_page['form_info']['restore'] = '<li><span>'.$lang_admin_forums['Forum perms restore info'].'</span></li>';


punbb-1.3.1/admin/groups.php punbb-1.3.4/admin/groups.php
  4:  *  4:  *
  5:  * Allows administrators to control group permissions.  5:  * Allows administrators to control group permissions.
  6:  *  6:  *
  7:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  7:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  9:  * @package PunBB  9:  * @package PunBB
 10:  */ 10:  */
180:                                 <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="mod_ban_users" value="1"<?php if ($group['g_mod_ban_users'] == '1') echo ' checked="checked"' ?> /></span>180:                                 <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="mod_ban_users" value="1"<?php if ($group['g_mod_ban_users'] == '1') echo ' checked="checked"' ?> /></span>
181:                                 <label for="fld<?php echo $forum_page['fld_count'] ?>"><?php echo $lang_admin_groups['Allow mod bans label'] ?></label>181:                                 <label for="fld<?php echo $forum_page['fld_count'] ?>"><?php echo $lang_admin_groups['Allow mod bans label'] ?></label>
182:                             </div>182:                             </div>
183:                         </div> 
184: <?php ($hook = get_hook('agr_add_edit_group_pre_mod_permissions_fieldset_end')) ? eval($hook) : null; ?>183: <?php ($hook = get_hook('agr_add_edit_group_pre_mod_permissions_fieldset_end')) ? eval($hook) : null; ?>
 184:                         </div>
185:                     </fieldset>185:                     </fieldset>
186: <?php ($hook = get_hook('agr_add_edit_group_mod_permissions_fieldset_end')) ? eval($hook) : null; endif; endif; ?>186: <?php ($hook = get_hook('agr_add_edit_group_mod_permissions_fieldset_end')) ? eval($hook) : null; endif; endif; ?>
187:                     <fieldset class="mf-set set<?php echo ++$forum_page['item_count'] ?>">187:                     <fieldset class="mf-set set<?php echo ++$forum_page['item_count'] ?>">
242:                                 <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="send_email" value="1"<?php if ($group['g_send_email'] == '1') echo ' checked="checked"' ?> /></span>242:                                 <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="send_email" value="1"<?php if ($group['g_send_email'] == '1') echo ' checked="checked"' ?> /></span>
243:                                 <label for="fld<?php echo $forum_page['fld_count'] ?>"><?php echo $lang_admin_groups['Allow send email label'] ?></label>243:                                 <label for="fld<?php echo $forum_page['fld_count'] ?>"><?php echo $lang_admin_groups['Allow send email label'] ?></label>
244:                             </div>244:                             </div>
245: <?php endif; ?>245: <?php endif; ($hook = get_hook('agr_add_edit_group_pre_user_permissions_fieldset_end')) ? eval($hook) : null; ?>
246:                         </div>246:                         </div>
247: <?php ($hook = get_hook('agr_add_edit_group_pre_user_permissions_fieldset_end')) ? eval($hook) : null; ?> 
248:                     </fieldset>247:                     </fieldset>
249: <?php ($hook = get_hook('agr_add_edit_group_user_permissions_fieldset_end')) ? eval($hook) : null; ?>248: <?php ($hook = get_hook('agr_add_edit_group_user_permissions_fieldset_end')) ? eval($hook) : null; ?>
250:                 </fieldset>249:                 </fieldset>


punbb-1.3.1/admin/index.php punbb-1.3.4/admin/index.php
  4:  *  4:  *
  5:  * Gives an overview of some statistics to administrators and moderators.  5:  * Gives an overview of some statistics to administrators and moderators.
  6:  *  6:  *
  7:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  7:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  9:  * @package PunBB  9:  * @package PunBB
 10:  */ 10:  */
186:                     <h3 class="ct-legend hn"><span><?php echo $lang_admin_index['PunBB version'] ?></span></h3>186:                     <h3 class="ct-legend hn"><span><?php echo $lang_admin_index['PunBB version'] ?></span></h3>
187:                     <ul class="data-list">187:                     <ul class="data-list">
188:                         <li><span>PunBB <?php echo $forum_config['o_cur_version'] ?></span></li>188:                         <li><span>PunBB <?php echo $forum_config['o_cur_version'] ?></span></li>
189:                         <li><span>&copy; Copyright 2008 <a href="http://punbb.informer.com/">PunBB</a></span></li>189:                         <li><span><?php echo $lang_admin_index['Copyright message'] ?></span></li>
190: <?php if (isset($punbb_updates)): ?>190: <?php if (isset($punbb_updates)): ?>
191:                         <li><span><?php echo $punbb_updates ?></span></li>191:                         <li><span><?php echo $punbb_updates ?></span></li>
192: <?php endif; ?>192: <?php endif; ?>
218:                     <ul class="data-list">218:                     <ul class="data-list">
219:                         <li><span><?php echo implode(' ', $forum_db->get_version()) ?></span></li>219:                         <li><span><?php echo implode(' ', $forum_db->get_version()) ?></span></li>
220: <?php if (isset($total_records) && isset($total_size)): ?>220: <?php if (isset($total_records) && isset($total_size)): ?>
221:                             <li><span><?php echo $lang_admin_index['Rows'] ?>: <?php echo forum_number_format($total_records) ?></span></li>221:                         <li><span><?php echo $lang_admin_index['Rows'] ?>: <?php echo forum_number_format($total_records) ?></span></li>
222:                         <li><span><?php echo $lang_admin_index['Size'] ?>: <?php echo $total_size ?></span></li>222:                         <li><span><?php echo $lang_admin_index['Size'] ?>: <?php echo $total_size ?></span></li>
223: <?php endif; ?>223: <?php endif; ?>
224:                     </ul>224:                     </ul>


punbb-1.3.1/admin/install.php punbb-1.3.4/admin/install.php
  4:  *  4:  *
  5:  * Used to actually install PunBB.  5:  * Used to actually install PunBB.
  6:  *  6:  *
  7:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  7:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  9:  * @package PunBB  9:  * @package PunBB
 10:  */ 10:  */
 11:  11: 
 12:  12: 
 13: define('FORUM_VERSION', '1.3.1'); 13: define('FORUM_VERSION', '1.3.4');
 14: define('FORUM_DB_REVISION', 3); 14: define('FORUM_DB_REVISION', 4);
 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');
 17:  17: 
 57:     return '<?php'."\n\n".'$db_type = \''.$db_type."';\n".'$db_host = \''.$db_host."';\n".'$db_name = \''.addslashes($db_name)."';\n".'$db_username = \''.addslashes($db_username)."';\n".'$db_password = \''.addslashes($db_password)."';\n".'$db_prefix = \''.addslashes($db_prefix)."';\n".'$p_connect = false;'."\n\n".'$base_url = \''.$base_url.'\';'."\n\n".'$cookie_name = '."'".$cookie_name."';\n".'$cookie_domain = '."'';\n".'$cookie_path = '."'/';\n".'$cookie_secure = 0;'."\n\ndefine('FORUM', 1);"; 57:     return '<?php'."\n\n".'$db_type = \''.$db_type."';\n".'$db_host = \''.$db_host."';\n".'$db_name = \''.addslashes($db_name)."';\n".'$db_username = \''.addslashes($db_username)."';\n".'$db_password = \''.addslashes($db_password)."';\n".'$db_prefix = \''.addslashes($db_prefix)."';\n".'$p_connect = false;'."\n\n".'$base_url = \''.$base_url.'\';'."\n\n".'$cookie_name = '."'".$cookie_name."';\n".'$cookie_domain = '."'';\n".'$cookie_path = '."'/';\n".'$cookie_secure = 0;'."\n\ndefine('FORUM', 1);";
 58: } 58: }
 59:  59: 
 60: $language = isset($_GET['lang']) ? preg_replace('#[\.\\\/]#', '', $_GET['lang']) : 'English'; 60: $language = isset($_GET['lang']) ? $_GET['lang'] : (isset($_POST['req_language']) ? forum_trim($_POST['req_language']) : 'English');
  61: $language = preg_replace('#[\.\\\/]#', '', $language);
 61: if (!file_exists(FORUM_ROOT.'lang/'.$language.'/install.php')) 62: if (!file_exists(FORUM_ROOT.'lang/'.$language.'/install.php'))
 62:     exit('The language pack you have chosen doesn\'t seem to exist or is corrupt. Please recheck and try again.'); 63:     exit('The language pack you have chosen doesn\'t seem to exist or is corrupt. Please recheck and try again.');
 63:  64: 
 83:     exit; 84:     exit;
 84: } 85: }
 85:  86: 
  87: header('Content-Type: text/html; charset=utf-8');
 86:  88: 
 87: if (!isset($_POST['form_sent'])) 89: if (!isset($_POST['form_sent']))
 88: { 90: {
459:             break;461:             break;
460: 462: 
461:         default:463:         default:
462:             error(sprintf($lang_install['No such database type'], $db_type));464:             error(sprintf($lang_install['No such database type'], forum_htmlencode($db_type)));
463:     }465:     }
464: 466: 
465:     // Create the database object (and connect/select db)467:     // Create the database object (and connect/select db)
1746:     $alerts = array();1748:     $alerts = array();
1747:     // Check if the cache directory is writable1749:     // Check if the cache directory is writable
1748:     if (!is_writable('./cache/'))1750:     if (!is_writable('./cache/'))
1749:         $alerts[] = '<li>'.$lang_install['No cache write'].'</li>';1751:         $alerts[] = '<li><span>'.$lang_install['No cache write'].'</span></li>';
1750: 1752: 
1751:     // Check if default avatar directory is writable1753:     // Check if default avatar directory is writable
1752:     if (!is_writable('./img/avatars/'))1754:     if (!is_writable('./img/avatars/'))
1753:         $alerts[] = '<li>'.$lang_install['No avatar write'].'</li>';1755:         $alerts[] = '<li><span>'.$lang_install['No avatar write'].'</span></li>';
1754: 1756: 
1755:     // Check if we disabled uploading avatars because file_uploads was disabled1757:     // Check if we disabled uploading avatars because file_uploads was disabled
1756:     if ($avatars == '0')1758:     if ($avatars == '0')
1757:         $alerts[] = '<li>'.$lang_install['File upload alert'].'</li>';1759:         $alerts[] = '<li><span>'.$lang_install['File upload alert'].'</span></li>';
1758: 1760: 
1759:     // Add some random bytes at the end of the cookie name to prevent collisions1761:     // Add some random bytes at the end of the cookie name to prevent collisions
1760:     $cookie_name = 'forum_cookie_'.random_key(6, false, true);1762:     $cookie_name = 'forum_cookie_'.random_key(6, false, true);


punbb-1.3.1/admin/prune.php punbb-1.3.4/admin/prune.php
  4:  *  4:  *
  5:  * Allows administrators to delete older topics from the site.  5:  * Allows administrators to delete older topics from the site.
  6:  *  6:  *
  7:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  7:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  9:  * @package PunBB  9:  * @package PunBB
 10:  */ 10:  */


punbb-1.3.1/admin/ranks.php punbb-1.3.4/admin/ranks.php
  4:  *  4:  *
  5:  * Allows administrators to control the tags given to posters based on their post count.  5:  * Allows administrators to control the tags given to posters based on their post count.
  6:  *  6:  *
  7:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  7:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  9:  * @package PunBB  9:  * @package PunBB
 10:  */ 10:  */


punbb-1.3.1/admin/reindex.php punbb-1.3.4/admin/reindex.php
  4:  *  4:  *
  5:  * Allows administrators to rebuild the index used to search the posts and topics.  5:  * Allows administrators to rebuild the index used to search the posts and topics.
  6:  *  6:  *
  7:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  7:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  9:  * @package PunBB  9:  * @package PunBB
 10:  */ 10:  */


punbb-1.3.1/admin/reports.php punbb-1.3.4/admin/reports.php
  4:  *  4:  *
  5:  * Allows administrators and moderators to handle reported posts.  5:  * Allows administrators and moderators to handle reported posts.
  6:  *  6:  *
  7:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  7:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  9:  * @package PunBB  9:  * @package PunBB
 10:  */ 10:  */


punbb-1.3.1/admin/settings.php punbb-1.3.4/admin/settings.php
  4:  *  4:  *
  5:  * Allows administrators to control many of the settings used in the site.  5:  * Allows administrators to control many of the settings used in the site.
  6:  *  6:  *
  7:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  7:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  9:  * @package PunBB  9:  * @package PunBB
 10:  */ 10:  */
214:         {214:         {
215:             $query = array(215:             $query = array(
216:                 'UPDATE'    => 'config',216:                 'UPDATE'    => 'config',
217:                 'SET'        => 'conf_value='.$input,217:                 'SET'        => 'conf_value='.intval($input),
218:                 'WHERE'        => 'conf_name=\'p_'.$forum_db->escape($key).'\''218:                 'WHERE'        => 'conf_name=\'p_'.$forum_db->escape($key).'\''
219:             );219:             );
220: 220: 
1262:     ($hook = get_hook('aop_maintenance_output_start')) ? eval($hook) : null;1262:     ($hook = get_hook('aop_maintenance_output_start')) ? eval($hook) : null;
1263: 1263: 
1264: ?>1264: ?>
 1265:     <div class="main-subhead">
 1266:         <h2 class="hn"><span><?php echo $lang_admin_settings['Maintenance head'] ?></span></h2>
 1267:     </div>
1265:     <div class="main-content main-frm">1268:     <div class="main-content main-frm">
1266:         <div class="content-head"> 
1267:             <h2 class="hn"><span><?php echo $lang_admin_settings['Maintenance head'] ?></span></h2> 
1268:         </div> 
1269:         <form class="frm-form" method="post" accept-charset="utf-8" action="<?php echo forum_link($forum_url['admin_settings_maintenance']) ?>">1269:         <form class="frm-form" method="post" accept-charset="utf-8" action="<?php echo forum_link($forum_url['admin_settings_maintenance']) ?>">
1270:             <div class="hidden">1270:             <div class="hidden">
1271:                 <input type="hidden" name="csrf_token" value="<?php echo generate_form_token(forum_link($forum_url['admin_settings_maintenance'])) ?>" />1271:                 <input type="hidden" name="csrf_token" value="<?php echo generate_form_token(forum_link($forum_url['admin_settings_maintenance'])) ?>" />
1272:                 <input type="hidden" name="form_sent" value="1" />1272:                 <input type="hidden" name="form_sent" value="1" />
1273:             </div>1273:             </div>
1274:             <div class="ct-box">1274:             <div class="ct-box warn-box">
1275:                 <p class="important"><?php echo $lang_admin_settings['Maintenance mode info'] ?></p>1275:                 <p class="important"><?php echo $lang_admin_settings['Maintenance mode info'] ?></p>
1276:                 <p class="warn"><?php echo $lang_admin_settings['Maintenance mode warn'] ?></p>1276:                 <p class="warn"><?php echo $lang_admin_settings['Maintenance mode warn'] ?></p>
1277:             </div>1277:             </div>


punbb-1.3.1/admin/users.php punbb-1.3.4/admin/users.php
  4:  *  4:  *
  5:  * Allows administrators or moderators to search the existing users based on various criteria.  5:  * Allows administrators or moderators to search the existing users based on various criteria.
  6:  *  6:  *
  7:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  7:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  9:  * @package PunBB  9:  * @package PunBB
 10:  */ 10:  */
817:     $form = $_POST['form'];817:     $form = $_POST['form'];
818:     $form['username'] = $_POST['username'];818:     $form['username'] = $_POST['username'];
819: 819: 
 820:     //Check up for order_by and direction values
 821:     $order_by = isset($_POST['order_by']) ? forum_trim($_POST['order_by']) : null;
 822:     $direction = isset($_POST['direction']) ? forum_trim($_POST['direction']) : null;
 823:     if ($order_by == null || $direction == null)
 824:         message($lang_common['Bad request']);
 825:     if (!in_array($order_by, array('username', 'email', 'num_posts', 'num_posts', 'registered')) || !in_array($direction, array('ASC', 'DESC')))
 826:         message($lang_common['Bad request']);
 827: 
820:     ($hook = get_hook('aus_find_user_selected')) ? eval($hook) : null;828:     ($hook = get_hook('aus_find_user_selected')) ? eval($hook) : null;
821: 829: 
822:     // forum_trim() all elements in $form830:     // forum_trim() all elements in $form
829:     $last_post_before = forum_trim($_POST['last_post_before']);837:     $last_post_before = forum_trim($_POST['last_post_before']);
830:     $registered_after = forum_trim($_POST['registered_after']);838:     $registered_after = forum_trim($_POST['registered_after']);
831:     $registered_before = forum_trim($_POST['registered_before']);839:     $registered_before = forum_trim($_POST['registered_before']);
832:     $order_by = $_POST['order_by']; 
833:     $direction = $_POST['direction']; 
834:     $user_group = $_POST['user_group'];840:     $user_group = $_POST['user_group'];
835: 841: 
836:     if ((!empty($posts_greater) || !empty($posts_less)) && !ctype_digit($posts_greater.$posts_less))842:     if ((!empty($posts_greater) || !empty($posts_less)) && !ctype_digit($posts_greater.$posts_less))
891:             )897:             )
892:         ),898:         ),
893:         'WHERE'        => 'u.id>1 AND '.implode(' AND ', $conditions),899:         'WHERE'        => 'u.id>1 AND '.implode(' AND ', $conditions),
894:         'ORDER BY'    => $forum_db->escape($order_by).' '.$forum_db->escape($direction)900:         'ORDER BY'    => $order_by.' '.$direction
895:     );901:     );
896: 902: 
897:     ($hook = get_hook('aus_find_user_qr_find_users')) ? eval($hook) : null;903:     ($hook = get_hook('aus_find_user_qr_find_users')) ? eval($hook) : null;
1075: 1081: 
1076: // Setup form1082: // Setup form
1077: $forum_page['group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0;1083: $forum_page['group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0;
1078: $forum_page['form_action'] = ''; 
1079: 1084: 
1080: // Setup breadcrumbs1085: // Setup breadcrumbs
1081: $forum_page['crumbs'] = array(1086: $forum_page['crumbs'] = array(


punbb-1.3.1/delete.php punbb-1.3.4/delete.php
  4:  *  4:  *
  5:  * Deletes the specified post (and, if necessary, the topic it is in).  5:  * Deletes the specified post (and, if necessary, the topic it is in).
  6:  *  6:  *
  7:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  7:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  9:  * @package PunBB  9:  * @package PunBB
 10:  */ 10:  */


punbb-1.3.1/edit.php punbb-1.3.4/edit.php
  4:  *  4:  *
  5:  * Modifies the contents of the specified post.  5:  * Modifies the contents of the specified post.
  6:  *  6:  *
  7:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  7:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  9:  * @package PunBB  9:  * @package PunBB
 10:  */ 10:  */
297: <?php if ($can_edit_subject): ?>                <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">297: <?php if ($can_edit_subject): ?>                <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
298:                     <div class="sf-box text required">298:                     <div class="sf-box text required">
299:                         <label for="fld<?php echo ++ $forum_page['fld_count'] ?>"><span><?php echo $lang_post['Topic subject'] ?>  <em><?php echo $lang_common['Required'] ?></em></span></label><br />299:                         <label for="fld<?php echo ++ $forum_page['fld_count'] ?>"><span><?php echo $lang_post['Topic subject'] ?>  <em><?php echo $lang_common['Required'] ?></em></span></label><br />
300:                         <span class="fld-input"><input id="fld<?php echo $forum_page['fld_count'] ?>" type="text" name="req_subject" size="80" maxlength="70" value="<?php echo forum_htmlencode(isset($_POST['req_subject']) ? $_POST['req_subject'] : $cur_post['subject']) ?>" /></span>300:                         <span class="fld-input"><input id="fld<?php echo $forum_page['fld_count'] ?>" type="text" name="req_subject" size="70" maxlength="70" value="<?php echo forum_htmlencode(isset($_POST['req_subject']) ? $_POST['req_subject'] : $cur_post['subject']) ?>" /></span>
301:                     </div>301:                     </div>
302:                 </div>302:                 </div>
303: <?php endif; ($hook = get_hook('ed_pre_message_box')) ? eval($hook) : null; ?>                <div class="txt-set set<?php echo ++$forum_page['item_count'] ?>">303: <?php endif; ($hook = get_hook('ed_pre_message_box')) ? eval($hook) : null; ?>                <div class="txt-set set<?php echo ++$forum_page['item_count'] ?>">


punbb-1.3.1/extensions/pun_repository/manifest.xml punbb-1.3.4/extensions/pun_repository/manifest.xml
440:         <hook id="co_common"><![CDATA[440:         <hook id="co_common"><![CDATA[
441: $pun_extensions_used = array_merge(isset($pun_extensions_used) ? $pun_extensions_used : array(), array($ext_info['id']));441: $pun_extensions_used = array_merge(isset($pun_extensions_used) ? $pun_extensions_used : array(), array($ext_info['id']));
442:         ]]></hook>442:         ]]></hook>
443:         <hook id="ft_about_end" priority="10"><![CDATA[443:         <hook id="ft_about_end" priority="9"><![CDATA[
444: if (!defined('PUN_EXTENSIONS_USED') && !empty($pun_extensions_used))444: if (!defined('PUN_EXTENSIONS_USED') && !empty($pun_extensions_used))
445: {445: {
446:     define('PUN_EXTENSIONS_USED', 1);446:     define('PUN_EXTENSIONS_USED', 1);
447:     echo '<p id="extensions-used">Currently used extensions: '.implode(', ', $pun_extensions_used).'. Copyright &copy; 2008 <a href="http://punbb.informer.com/">PunBB</a></p>';447:     if (count($pun_extensions_used) == 1)
 448:         echo '<p style="clear: both; ">The '.$pun_extensions_used[0].' official extension is installed. Copyright &copy; 2003&ndash;2009 <a href="http://punbb.informer.com/">PunBB</a>.</p>';
 449:     else
 450:         echo '<p style="clear: both; ">Currently installed <span id="extensions-used" title="'.implode(', ', $pun_extensions_used).'.">'.count($pun_extensions_used).' official extensions</span>. Copyright &copy; 2003&ndash;2009 <a href="http://punbb.informer.com/">PunBB</a>.</p>';
448: }451: }
449:         ]]></hook>452:         ]]></hook>
450:     </hooks>453:     </hooks>


punbb-1.3.1/extern.php punbb-1.3.4/extern.php
  5:  * Allows forum content to be syndicated outside of the site in various formats  5:  * Allows forum content to be syndicated outside of the site in various formats
  6:  * (ie: RSS, Atom, XML, HTML).  6:  * (ie: RSS, Atom, XML, HTML).
  7:  *  7:  *
  8:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  8:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  9:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  9:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
 10:  * @package PunBB 10:  * @package PunBB
 11:  */ 11:  */
120:     else120:     else
121:         echo "\t\t".'<generator>PunBB</generator>'."\n";121:         echo "\t\t".'<generator>PunBB</generator>'."\n";
122: 122: 
123:     foreach ($feed['items'] as $item)123:     ($hook = get_hook('ex_add_new_rss_info')) ? eval($hook) : null;
124: 124: 
 125:     foreach ($feed['items'] as $item)
125:     {126:     {
126:         echo "\t\t".'<item>'."\n";127:         echo "\t\t".'<item>'."\n";
127:         echo "\t\t\t".'<title><![CDATA['.escape_cdata($item['title']).']]></title>'."\n";128:         echo "\t\t\t".'<title><![CDATA['.escape_cdata($item['title']).']]></title>'."\n";
131:         echo "\t\t\t".'<pubDate>'.gmdate('r', $item['pubdate']).'</pubDate>'."\n";132:         echo "\t\t\t".'<pubDate>'.gmdate('r', $item['pubdate']).'</pubDate>'."\n";
132:         echo "\t\t\t".'<guid>'.$item['link'].'</guid>'."\n";133:         echo "\t\t\t".'<guid>'.$item['link'].'</guid>'."\n";
133: 134: 
 135:         ($hook = get_hook('ex_add_new_rss_item_info')) ? eval($hook) : null;
 136: 
134:         echo "\t\t".'</item>'."\n";137:         echo "\t\t".'</item>'."\n";
135:     }138:     }
136: 139: 
164:     else167:     else
165:         echo "\t".'<generator>PunBB</generator>'."\n";168:         echo "\t".'<generator>PunBB</generator>'."\n";
166: 169: 
 170:     ($hook = get_hook('ex_add_new_atom_info')) ? eval($hook) : null;
 171: 
167:     echo "\t".'<id>'.$feed['link'].'</id>'."\n";172:     echo "\t".'<id>'.$feed['link'].'</id>'."\n";
168: 173: 
169:     $content_tag = ($feed['type'] == 'posts') ? 'content' : 'summary';174:     $content_tag = ($feed['type'] == 'posts') ? 'content' : 'summary';
186:         echo "\t\t\t".'</author>'."\n";191:         echo "\t\t\t".'</author>'."\n";
187:         echo "\t\t\t".'<updated>'.gmdate('Y-m-d\TH:i:s\Z', $item['pubdate']).'</updated>'."\n";192:         echo "\t\t\t".'<updated>'.gmdate('Y-m-d\TH:i:s\Z', $item['pubdate']).'</updated>'."\n";
188: 193: 
 194:         ($hook = get_hook('ex_add_new_atom_item_info')) ? eval($hook) : null;
 195: 
189:         echo "\t\t\t".'<id>'.$item['link'].'</id>'."\n";196:         echo "\t\t\t".'<id>'.$item['link'].'</id>'."\n";
190:         echo "\t\t".'</entry>'."\n";197:         echo "\t\t".'</entry>'."\n";
191:     }198:     }
202:     global $lang_common, $forum_config;209:     global $lang_common, $forum_config;
203: 210: 
204:     // Send XML/no cache headers211:     // Send XML/no cache headers
205:     header('Content-Type: text/xml; charset=utf-8');212:     header('Content-Type: application/xml; charset=utf-8');
206:     header('Expires: '.gmdate('D, d M Y H:i:s').' GMT');213:     header('Expires: '.gmdate('D, d M Y H:i:s').' GMT');
207:     header('Cache-Control: must-revalidate, post-check=0, pre-check=0');214:     header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
208:     header('Pragma: public');215:     header('Pragma: public');
211:     echo '<source>'."\n";218:     echo '<source>'."\n";
212:     echo "\t".'<url>'.$feed['link'].'</url>'."\n";219:     echo "\t".'<url>'.$feed['link'].'</url>'."\n";
213: 220: 
 221:     ($hook = get_hook('ex_add_new_xml_info')) ? eval($hook) : null;
 222: 
214:     $forum_tag = ($feed['type'] == 'posts') ? 'post' : 'topic';223:     $forum_tag = ($feed['type'] == 'posts') ? 'post' : 'topic';
215: 224: 
216:     foreach ($feed['items'] as $item)225:     foreach ($feed['items'] as $item)
232:         echo "\t\t".'</author>'."\n";241:         echo "\t\t".'</author>'."\n";
233:         echo "\t\t".'<posted>'.gmdate('r', $item['pubdate']).'</posted>'."\n";242:         echo "\t\t".'<posted>'.gmdate('r', $item['pubdate']).'</posted>'."\n";
234: 243: 
 244:         ($hook = get_hook('ex_add_new_xml_item_info')) ? eval($hook) : null;
 245: 
235:         echo "\t".'</'.$forum_tag.'>'."\n";246:         echo "\t".'</'.$forum_tag.'>'."\n";
236:     }247:     }
237: 248: 
247: 258: 
248:     // Send the Content-type header in case the web server is setup to send something else259:     // Send the Content-type header in case the web server is setup to send something else
249:     header('Content-type: text/html; charset=utf-8');260:     header('Content-type: text/html; charset=utf-8');
 261:     header('Expires: '.gmdate('D, d M Y H:i:s').' GMT');
 262:     header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
 263:     header('Pragma: public');
250: 264: 
251:     foreach ($feed['items'] as $item)265:     foreach ($feed['items'] as $item)
252:     {266:     {
269:     if ($show < 1 || $show > 50)283:     if ($show < 1 || $show > 50)
270:         $show = 15;284:         $show = 15;
271: 285: 
 286:     ($hook = get_hook('ex_set_syndication_type')) ? eval($hook) : null;
 287: 
272:     // Was a topic ID supplied?288:     // Was a topic ID supplied?
273:     if (isset($_GET['tid']))289:     if (isset($_GET['tid']))
274:     {290:     {
276: 292: 
277:         // Fetch topic subject293:         // Fetch topic subject
278:         $query = array(294:         $query = array(
279:             'SELECT'    => 't.subject, t.num_replies, t.first_post_id',295:             'SELECT'    => 't.subject, t.first_post_id',
280:             'FROM'        => 'topics AS t',296:             'FROM'        => 'topics AS t',
281:             'JOINS'        => array(297:             'JOINS'        => array(
282:                 array(298:                 array(
297: 313: 
298:         $cur_topic = $forum_db->fetch_assoc($result);314:         $cur_topic = $forum_db->fetch_assoc($result);
299: 315: 
 316:         if (!defined('FORUM_PARSER_LOADED'))
 317:             require FORUM_ROOT.'include/parser.php';
 318: 
300:         if ($forum_config['o_censoring'] == '1')319:         if ($forum_config['o_censoring'] == '1')
301:             $cur_topic['subject'] = censor_words($cur_topic['subject']);320:             $cur_topic['subject'] = censor_words($cur_topic['subject']);
302: 321: 
303:         // Setup the feed322:         // Setup the feed
304:         $feed = array(323:         $feed = array(
305:             'title'         =>    $forum_config['o_board_title'].' - '.$cur_topic['subject'],324:             'title'         =>    $forum_config['o_board_title'].$lang_common['Title separator'].$cur_topic['subject'],
306:             'link'            =>    forum_link($forum_url['topic'], array($tid, sef_friendly($cur_topic['subject']))),325:             'link'            =>    forum_link($forum_url['topic'], array($tid, sef_friendly($cur_topic['subject']))),
307:             'description'    =>    sprintf($lang_common['RSS description topic'], $cur_topic['subject']),326:             'description'    =>    sprintf($lang_common['RSS description topic'], $cur_topic['subject']),
308:             'items'            =>    array(),327:             'items'            =>    array(),
311: 330: 
312:         // Fetch $show posts331:         // Fetch $show posts
313:         $query = array(332:         $query = array(
314:             'SELECT'    => 'p.id, p.poster, p.message, p.posted, p.poster_id, u.email_setting, u.email, p.poster_email',333:             'SELECT'    => 'p.id, p.poster, p.message, p.hide_smilies, p.posted, p.poster_id, u.email_setting, u.email, p.poster_email',
315:             'FROM'        => 'posts AS p',334:             'FROM'        => 'posts AS p',
316:             'JOINS'        => array(335:             'JOINS'        => array(
317:                 array(336:                 array(
331:             if ($forum_config['o_censoring'] == '1')350:             if ($forum_config['o_censoring'] == '1')
332:                 $cur_post['message'] = censor_words($cur_post['message']);351:                 $cur_post['message'] = censor_words($cur_post['message']);
333: 352: 
 353:             $cur_post['message'] = parse_message($cur_post['message'], $cur_post['hide_smilies']);
 354: 
334:             $item = array(355:             $item = array(
335:                 'id'            =>    $cur_post['id'],356:                 'id'            =>    $cur_post['id'],
336:                 'title'            =>    $cur_topic['first_post_id'] == $cur_post['id'] ? $cur_topic['subject'] : $lang_common['RSS reply'].$cur_topic['subject'],357:                 'title'            =>    $cur_topic['first_post_id'] == $cur_post['id'] ? $cur_topic['subject'] : $lang_common['RSS reply'].$cur_topic['subject'],
344: 365: 
345:             if ($cur_post['poster_id'] > 1)366:             if ($cur_post['poster_id'] > 1)
346:             {367:             {
347:                 if ($cur_post['email_setting'] == '0')368:                 if ($cur_post['email_setting'] == '0' && !$forum_user['is_guest'])
348:                     $item['author']['email'] = $cur_post['email'];369:                     $item['author']['email'] = $cur_post['email'];
349: 370: 
350:                 $item['author']['uri'] = forum_link($forum_url['user'], $cur_post['poster_id']);371:                 $item['author']['uri'] = forum_link($forum_url['user'], $cur_post['poster_id']);
351:             }372:             }
352:             else if ($cur_post['poster_email'] != '')373:             else if ($cur_post['poster_email'] != '' && !$forum_user['is_guest'])
353:                 $item['author']['email'] = $cur_post['poster_email'];374:                 $item['author']['email'] = $cur_post['poster_email'];
354: 375: 
355:             $feed['items'][] = $item;376:             $feed['items'][] = $item;
364:     }385:     }
365:     else386:     else
366:     {387:     {
 388:         $forum_name = '';
 389: 
 390:         if (!defined('FORUM_PARSER_LOADED'))
 391:             require FORUM_ROOT.'include/parser.php';
 392: 
367:         // Were any forum ID's supplied?393:         // Were any forum ID's supplied?
368:         if (isset($_GET['fid']) && is_scalar($_GET['fid']) && $_GET['fid'] != '')394:         if (isset($_GET['fid']) && is_scalar($_GET['fid']) && $_GET['fid'] != '')
369:         {395:         {
372: 398: 
373:             if (!empty($fids))399:             if (!empty($fids))
374:                 $forum_sql = ' AND t.forum_id IN('.implode(',', $fids).')';400:                 $forum_sql = ' AND t.forum_id IN('.implode(',', $fids).')';
 401: 
 402:             if (count($fids) == 1)
 403:             {
 404:             // Fetch forum name
 405:             $query = array(
 406:                 'SELECT'    => 'f.forum_name',
 407:                 'FROM'        => 'forums AS f',
 408:                 'JOINS'        => array(
 409:                     array(
 410:                         'LEFT JOIN'        => 'forum_perms AS fp',
 411:                         'ON'            => '(fp.forum_id=f.id AND fp.group_id='.$forum_user['g_id'].')'
 412:                     )
 413:                 ),
 414:                 'WHERE'        => '(fp.read_forum IS NULL OR fp.read_forum=1) AND f.id='.$fids[0]
 415:             );
 416: 
 417:             $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
 418:             if ($forum_db->num_rows($result))
 419:                 $forum_name = $lang_common['Title separator'].$forum_db->result($result);
 420:             }
375:         }421:         }
376: 422: 
377:         // Any forum ID's to exclude?423:         // Any forum ID's to exclude?
386: 432: 
387:         // Setup the feed433:         // Setup the feed
388:         $feed = array(434:         $feed = array(
389:             'title'         =>    $forum_config['o_board_title'],435:             'title'         =>    $forum_config['o_board_title'].$forum_name,
390:             'link'            =>    forum_link($forum_url['index']),436:             'link'            =>    forum_link($forum_url['index']),
391:             'description'    =>    sprintf($lang_common['RSS description'], $forum_config['o_board_title']),437:             'description'    =>    sprintf($lang_common['RSS description'], $forum_config['o_board_title']),
392:             'items'            =>    array(),438:             'items'            =>    array(),
395: 441: 
396:         // Fetch $show topics442:         // Fetch $show topics
397:         $query = array(443:         $query = array(
398:             'SELECT'    => 't.id, t.poster, t.subject, t.last_post, t.last_poster, p.message, u.email_setting, u.email, p.poster_id, p.poster_email',444:             'SELECT'    => 't.id, t.poster, t.subject, t.last_post, t.last_poster, p.message, p.hide_smilies, u.email_setting, u.email, p.poster_id, p.poster_email',
399:             'FROM'        => 'topics AS t',445:             'FROM'        => 'topics AS t',
400:             'JOINS'        => array(446:             'JOINS'        => array(
401:                 array(447:                 array(
429:                 $cur_topic['message'] = censor_words($cur_topic['message']);475:                 $cur_topic['message'] = censor_words($cur_topic['message']);
430:             }476:             }
431: 477: 
 478:             $cur_topic['message'] = parse_message($cur_topic['message'], $cur_topic['hide_smilies']);
 479: 
432:             $item = array(480:             $item = array(
433:                 'id'            =>    $cur_topic['id'],481:                 'id'            =>    $cur_topic['id'],
434:                 'title'            =>    $cur_topic['subject'],482:                 'title'            =>    $cur_topic['subject'],
435:                 'link'            =>    forum_link($forum_url['topic_new_posts'], array($cur_topic['id'], sef_friendly($cur_topic['subject']))),483:                 'link'            =>    forum_link($forum_url['topic_new_posts'], array($cur_topic['id'], sef_friendly($cur_topic['subject']))),
436:                 'description'        =>    $cur_topic['message'],484:                 'description'    =>    $cur_topic['message'],
437:                 'author'        =>    array(485:                 'author'        =>    array(
438:                     'name'    => $cur_topic['last_poster']486:                     'name'    => $cur_topic['last_poster']
439:                 ),487:                 ),
442: 490: 
443:             if ($cur_topic['poster_id'] > 1)491:             if ($cur_topic['poster_id'] > 1)
444:             {492:             {
445:                 if ($cur_topic['email_setting'] == '0')493:                 if ($cur_topic['email_setting'] == '0' && !$forum_user['is_guest'])
446:                     $item['author']['email'] = $cur_topic['email'];494:                     $item['author']['email'] = $cur_topic['email'];
447: 495: 
448:                 $item['author']['uri'] = forum_link($forum_url['user'], $cur_topic['poster_id']);496:                 $item['author']['uri'] = forum_link($forum_url['user'], $cur_topic['poster_id']);
449:             }497:             }
450:             else if ($cur_topic['poster_email'] != '')498:             else if ($cur_topic['poster_email'] != '' && !$forum_user['is_guest'])
451:                 $item['author']['email'] = $cur_topic['poster_email'];499:                 $item['author']['email'] = $cur_topic['poster_email'];
452: 500: 
453:             $feed['items'][] = $item;501:             $feed['items'][] = $item;
487:     {535:     {
488:         if ($forum_user_online['user_id'] > 1)536:         if ($forum_user_online['user_id'] > 1)
489:         {537:         {
490:             $users[] = '<a href="'.forum_link($forum_url['user'], $forum_user_online['user_id']).'">'.forum_htmlencode($forum_user_online['ident']).'</a>';538:             $users[] = $forum_user['g_view_users'] == '1' ?'<a href="'.forum_link($forum_url['user'], $forum_user_online['user_id']).'">'.forum_htmlencode($forum_user_online['ident']).'</a>' : forum_htmlencode($forum_user_online['ident']);
491:             ++$num_users;539:             ++$num_users;
492:         }540:         }
493:         else541:         else
495:     }543:     }
496: 544: 
497:     ($hook = get_hook('ex_pre_online_output')) ? eval($hook) : null;545:     ($hook = get_hook('ex_pre_online_output')) ? eval($hook) : null;
 546:     // Send the Content-type header in case the web server is setup to send something else
 547:     header('Content-type: text/html; charset=utf-8');
 548:     header('Expires: '.gmdate('D, d M Y H:i:s').' GMT');
 549:     header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
 550:     header('Pragma: public');
 551: 
498: 552: 
499:     echo $lang_index['Guests online'].': '.forum_number_format($num_guests).'<br />'."\n";553:     echo $lang_index['Guests online'].': '.forum_number_format($num_guests).'<br />'."\n";
500: 554: 
501:     if ($_GET['action'] == 'online_full')555:     if ($_GET['action'] == 'online_full' && !empty($users))
502:         echo $lang_index['Users online'].': '.implode(', ', $users).'<br />'."\n";556:         echo $lang_index['Users online'].': '.implode($lang_index['Online list separator'], $users).'<br />'."\n";
503:     else557:     else
504:         echo $lang_index['Users online'].': '.forum_number_format($num_users).'<br />'."\n";558:         echo $lang_index['Users online'].': '.forum_number_format($num_users).'<br />'."\n";
505: 559: 
544:     $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);598:     $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
545:     list($stats['total_topics'], $stats['total_posts']) = $forum_db->fetch_row($result);599:     list($stats['total_topics'], $stats['total_posts']) = $forum_db->fetch_row($result);
546: 600: 
 601:     // Send the Content-type header in case the web server is setup to send something else
 602:     header('Content-type: text/html; charset=utf-8');
 603:     header('Expires: '.gmdate('D, d M Y H:i:s').' GMT');
 604:     header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
 605:     header('Pragma: public');
 606: 
547:     ($hook = get_hook('ex_pre_stats_output')) ? eval($hook) : null;607:     ($hook = get_hook('ex_pre_stats_output')) ? eval($hook) : null;
548: 608: 
549:     echo sprintf($lang_index['No of users'], forum_number_format($stats['total_users'])).'<br />'."\n";609:     echo sprintf($lang_index['No of users'], forum_number_format($stats['total_users'])).'<br />'."\n";


punbb-1.3.1/footer.php punbb-1.3.4/footer.php
  2: /**  2: /**
  3:  * Outputs the footer used by most forum pages.  3:  * Outputs the footer used by most forum pages.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
 15: // START SUBST - <!-- forum_about --> 15: // START SUBST - <!-- forum_about -->
 16: ob_start(); 16: ob_start();
 17: ($hook = get_hook('ft_about_output_start')) ? eval($hook) : null; 17: ($hook = get_hook('ft_about_output_start')) ? eval($hook) : null;
 18: ($hook = get_hook('ft_about_pre_quickjump')) ? eval($hook) : null; 
 19:  18: 
 20: // Display the "Jump to" drop list 19: // Display the "Jump to" drop list
 21: if ($forum_user['g_read_board'] == '1' && $forum_config['o_quickjump'] == '1') 20: if ($forum_user['g_read_board'] == '1' && $forum_config['o_quickjump'] == '1')
 22: { 21: {
  22:     ($hook = get_hook('ft_about_pre_quickjump')) ? eval($hook) : null;
  23: 
 23:     // Load cached quickjump 24:     // Load cached quickjump
 24:     if (file_exists(FORUM_CACHE_DIR.'cache_quickjump_'.$forum_user['g_id'].'.php')) 25:     if (file_exists(FORUM_CACHE_DIR.'cache_quickjump_'.$forum_user['g_id'].'.php'))
 25:         include FORUM_CACHE_DIR.'cache_quickjump_'.$forum_user['g_id'].'.php'; 26:         include FORUM_CACHE_DIR.'cache_quickjump_'.$forum_user['g_id'].'.php';
 34:     } 35:     }
 35: } 36: }
 36:  37: 
 37:  
 38: ($hook = get_hook('ft_about_pre_copyright')) ? eval($hook) : null; 38: ($hook = get_hook('ft_about_pre_copyright')) ? eval($hook) : null;
 39:  39: 
 40: // End the transaction 
 41: $forum_db->end_transaction(); 
 42:  
 43: ?> 40: ?>
 44:     <p id="copyright"><?php echo sprintf($lang_common['Powered by'], '<a href="http://punbb.informer.com/">PunBB</a>'.($forum_config['o_show_version'] == '1' ? ' '.$forum_config['o_cur_version'] : '')); ?></p> 41:     <p id="copyright"><?php echo sprintf($lang_common['Powered by'], '<a href="http://punbb.informer.com/">PunBB</a>'.($forum_config['o_show_version'] == '1' ? ' '.$forum_config['o_cur_version'] : ''), '<a href="http://www.informer.com/">Informer Technologies, Inc</a>') ?></p>
 45: <?php 42: <?php
  43: 
 46: ($hook = get_hook('ft_about_end')) ? eval($hook) : null; 44: ($hook = get_hook('ft_about_end')) ? eval($hook) : null;
 47:  45: 
 48: $tpl_temp = forum_trim(ob_get_contents()); 46: $tpl_temp = forum_trim(ob_get_contents());
 81: // Last call! 79: // Last call!
 82: ($hook = get_hook('ft_end')) ? eval($hook) : null; 80: ($hook = get_hook('ft_end')) ? eval($hook) : null;
 83:  81: 
  82: // End the transaction
  83: $forum_db->end_transaction();
 84:  84: 
 85: // Close the db connection (and free up any result data) 85: // Close the db connection (and free up any result data)
 86: $forum_db->close(); 86: $forum_db->close();


punbb-1.3.1/header.php punbb-1.3.4/header.php
  2: /**  2: /**
  3:  * Outputs the header used by most forum pages.  3:  * Outputs the header used by most forum pages.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
247:         if ($forum_updates['fail'])247:         if ($forum_updates['fail'])
248:             $alert_items['update_fail'] = '<p><strong>'.$lang_common['Updates'].'</strong> '.$lang_common['Updates failed'].'</p>';248:             $alert_items['update_fail'] = '<p><strong>'.$lang_common['Updates'].'</strong> '.$lang_common['Updates failed'].'</p>';
249:         else if (isset($forum_updates['version']) && isset($forum_updates['hotfix']))249:         else if (isset($forum_updates['version']) && isset($forum_updates['hotfix']))
250:             $alert_items['update_version_hotfix'] = '<p><strong>'.$lang_common['Updates'].'</strong> '.sprintf($lang_common['Updates version n hf'], $forum_updates['version']).'</p>';250:             $alert_items['update_version_hotfix'] = '<p><strong>'.$lang_common['Updates'].'</strong> '.sprintf($lang_common['Updates version n hf'], $forum_updates['version'], forum_link($forum_url['admin_extensions_hotfixes'])).'</p>';
251:         else if (isset($forum_updates['version']))251:         else if (isset($forum_updates['version']))
252:             $alert_items['update_version'] = '<p><strong>'.$lang_common['Updates'].'</strong> '.sprintf($lang_common['Updates version'], $forum_updates['version']).'</p>';252:             $alert_items['update_version'] = '<p><strong>'.$lang_common['Updates'].'</strong> '.sprintf($lang_common['Updates version'], $forum_updates['version']).'</p>';
253:         else if (isset($forum_updates['hotfix']))253:         else if (isset($forum_updates['hotfix']))
279: // Bottom breadcrumbs279: // Bottom breadcrumbs
280: $main_elements['<!-- forum_crumbs_end -->'] = (FORUM_PAGE != 'index') ? '<div id="brd-crumbs-end" class="crumbs gen-content">'."\n\t".'<p>'.generate_crumbs(false).'</p>'."\n".'</div>' : '';280: $main_elements['<!-- forum_crumbs_end -->'] = (FORUM_PAGE != 'index') ? '<div id="brd-crumbs-end" class="crumbs gen-content">'."\n\t".'<p>'.generate_crumbs(false).'</p>'."\n".'</div>' : '';
281: // Main section heading281: // Main section heading
282: $main_elements['<!-- forum_main_title -->'] =  '<h1 class="main-title">'.((isset($forum_page['main_title'])) ? $forum_page['main_title'] : (is_array($last_crumb = end($forum_page['crumbs'])) ? reset($last_crumb) : $last_crumb)).(isset($forum_page['main_head_pages']) ? ' <small>'.$forum_page['main_head_pages'].'</small>' : '').'</h1>'."\n";282: $main_elements['<!-- forum_main_title -->'] =  '<h1 class="main-title">'.((isset($forum_page['main_title'])) ? $forum_page['main_title'] : forum_htmlencode(is_array($last_crumb = end($forum_page['crumbs'])) ? reset($last_crumb) : $last_crumb)).(isset($forum_page['main_head_pages']) ? ' <small>'.$forum_page['main_head_pages'].'</small>' : '').'</h1>'."\n";
283: 283: 
284: // Top pagination and post links284: // Top pagination and post links
285: $main_elements['<!-- forum_main_pagepost_top -->'] = (!empty($forum_page['page_post'])) ? '<div id="brd-pagepost-top" class="main-pagepost gen-content">'."\n\t".implode("\n\t", $forum_page['page_post'])."\n".'</div>' : '';285: $main_elements['<!-- forum_main_pagepost_top -->'] = (!empty($forum_page['page_post'])) ? '<div id="brd-pagepost-top" class="main-pagepost gen-content">'."\n\t".implode("\n\t", $forum_page['page_post'])."\n".'</div>' : '';


punbb-1.3.1/help.php punbb-1.3.4/help.php
  4:  *  4:  *
  5:  * Provides examples of how to use various features of the forum (ie: BBCode, smilies).  5:  * Provides examples of how to use various features of the forum (ie: BBCode, smilies).
  6:  *  6:  *
  7:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  7:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  9:  * @package PunBB  9:  * @package PunBB
 10:  */ 10:  */
 26: if (!$section) 26: if (!$section)
 27:     message($lang_common['Bad request']); 27:     message($lang_common['Bad request']);
 28:  28: 
 29: $page_title = forum_htmlencode($forum_config['o_board_title']).' - '.$lang_help['Help']; 29: $forum_page['crumbs'] = array( 
  30:     array($forum_config['o_board_title'], forum_link($forum_url['help'])), 
  31:     $lang_help['Help'] 
  32: );
  33: 
 30: define('FORUM_PAGE', 'help'); 34: define('FORUM_PAGE', 'help');
 31: require FORUM_ROOT.'header.php'; 35: require FORUM_ROOT.'header.php';
 32:  36: 
102:                 <samp><a href="mailto:name@example.com">name@example.com</a></samp>106:                 <samp><a href="mailto:name@example.com">name@example.com</a></samp>
103:             </div>107:             </div>
104:             <div class="entry-content">108:             <div class="entry-content">
105:                 <code>[email=name@example.com]<?php echo $lang_help['My e-mail address'] ?>[/email]</code><span><?php echo $lang_help['produces'] ?></span>109:                 <code>[email=name@example.com]<?php echo $lang_help['My e-mail address'] ?>[/email]</code> <span><?php echo $lang_help['produces'] ?></span>
106:                 <samp><a href="mailto:name@example.com"><?php echo $lang_help['My e-mail address'] ?></a></samp>110:                 <samp><a href="mailto:name@example.com"><?php echo $lang_help['My e-mail address'] ?></a></samp>
107:             </div>111:             </div>
108: <?php ($hook = get_hook('he_new_bbcode_link')) ? eval($hook) : null; ?>112: <?php ($hook = get_hook('he_new_bbcode_link')) ? eval($hook) : null; ?>


punbb-1.3.1/include/cache.php punbb-1.3.4/include/cache.php
  4:  *  4:  *
  5:  * This file contains all of the functions used to generate the cache files used by the site.  5:  * This file contains all of the functions used to generate the cache files used by the site.
  6:  *  6:  *
  7:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  7:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  8:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  9:  * @package PunBB  9:  * @package PunBB
 10:  */ 10:  */
371:         $output = xml_to_array(forum_trim($result['content']));371:         $output = xml_to_array(forum_trim($result['content']));
372:         $output = current($output);372:         $output = current($output);
373: 373: 
374:         if (is_array($output['hotfix']) && !is_array(current($output['hotfix'])))374:         if (!empty($output['hotfix']) && is_array($output['hotfix']) && !is_array(current($output['hotfix'])))
375:             $output['hotfix'] = array($output['hotfix']);375:             $output['hotfix'] = array($output['hotfix']);
376: 376: 
377:         $output['cached'] = time();377:         $output['cached'] = time();


punbb-1.3.1/include/common.php punbb-1.3.4/include/common.php
  2: /**  2: /**
  3:  * Loads common data and performs various functions necessary for the site to work properly.  3:  * Loads common data and performs various functions necessary for the site to work properly.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */


punbb-1.3.1/include/common_admin.php punbb-1.3.4/include/common_admin.php
  2: /**  2: /**
  3:  * Loads common functions used in the administration panel.  3:  * Loads common functions used in the administration panel.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
 50:             } 50:             }
 51:             else if (FORUM_PAGE_SECTION == 'users') 51:             else if (FORUM_PAGE_SECTION == 'users')
 52:             { 52:             {
 53:                 $forum_page['admin_submenu']['users'] = '<li class="'.((FORUM_PAGE == 'admin-users') ? 'active' : 'normal').((empty($forum_page['admin_submenu'])) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['admin_users']).'">'.$lang_admin_common['Searches'].'</a></li>'; 53:                 $forum_page['admin_submenu']['users'] = '<li class="'.((FORUM_PAGE == 'admin-users' || FORUM_PAGE == 'admin-uresults' || FORUM_PAGE == 'admin-iresults') ? 'active' : 'normal').((empty($forum_page['admin_submenu'])) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['admin_users']).'">'.$lang_admin_common['Searches'].'</a></li>';
 54:                 $forum_page['admin_submenu']['groups'] = '<li class="'.((FORUM_PAGE == 'admin-groups') ? 'active' : 'normal').((empty($forum_page['admin_submenu'])) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['admin_groups']).'">'.$lang_admin_common['Groups'].'</a></li>'; 54:                 $forum_page['admin_submenu']['groups'] = '<li class="'.((FORUM_PAGE == 'admin-groups') ? 'active' : 'normal').((empty($forum_page['admin_submenu'])) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['admin_groups']).'">'.$lang_admin_common['Groups'].'</a></li>';
 55:                 $forum_page['admin_submenu']['ranks'] = '<li class="'.((FORUM_PAGE == 'admin-ranks') ? 'active' : 'normal').((empty($forum_page['admin_submenu'])) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['admin_ranks']).'">'.$lang_admin_common['Ranks'].'</a></li>'; 55:                 $forum_page['admin_submenu']['ranks'] = '<li class="'.((FORUM_PAGE == 'admin-ranks') ? 'active' : 'normal').((empty($forum_page['admin_submenu'])) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['admin_ranks']).'">'.$lang_admin_common['Ranks'].'</a></li>';
 56:                 $forum_page['admin_submenu']['bans'] = '<li class="'.((FORUM_PAGE == 'admin-bans') ? 'active' : 'normal').((empty($forum_page['admin_submenu'])) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['admin_bans']).'">'.$lang_admin_common['Bans'].'</a></li>'; 56:                 $forum_page['admin_submenu']['bans'] = '<li class="'.((FORUM_PAGE == 'admin-bans') ? 'active' : 'normal').((empty($forum_page['admin_submenu'])) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['admin_bans']).'">'.$lang_admin_common['Bans'].'</a></li>';


punbb-1.3.1/include/dblayer/common_db.php punbb-1.3.4/include/dblayer/common_db.php
  2: /**  2: /**
  3:  * Loads the proper database layer class.  3:  * Loads the proper database layer class.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */


punbb-1.3.1/include/dblayer/mysql.php punbb-1.3.4/include/dblayer/mysql.php
  2: /**  2: /**
  3:  * A database layer class that relies on the MySQL PHP extension.  3:  * A database layer class that relies on the MySQL PHP extension.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */


punbb-1.3.1/include/dblayer/mysqli.php punbb-1.3.4/include/dblayer/mysqli.php
  2: /**  2: /**
  3:  * A database layer class that relies on the MySQLi PHP extension.  3:  * A database layer class that relies on the MySQLi PHP extension.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */


punbb-1.3.1/include/dblayer/pgsql.php punbb-1.3.4/include/dblayer/pgsql.php
  2: /**  2: /**
  3:  * A database layer class that relies on the PostgreSQL PHP extension.  3:  * A database layer class that relies on the PostgreSQL PHP extension.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */


punbb-1.3.1/include/dblayer/sqlite.php punbb-1.3.4/include/dblayer/sqlite.php
  2: /**  2: /**
  3:  * A database layer class that relies on the SQLite PHP extension.  3:  * A database layer class that relies on the SQLite PHP extension.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */


punbb-1.3.1/include/email.php punbb-1.3.4/include/email.php
  2: /**  2: /**
  3:  * Loads functions used in dealing with email addresses and email sending.  3:  * Loads functions used in dealing with email addresses and email sending.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */


punbb-1.3.1/include/essentials.php punbb-1.3.4/include/essentials.php
  2: /**  2: /**
  3:  * Loads the minimum amount of data (eg: functions, database connection, config data, etc) necessary to integrate the site.  3:  * Loads the minimum amount of data (eg: functions, database connection, config data, etc) necessary to integrate the site.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
  9:   9: 
 10:  10: 
 11: // Enable DEBUG mode by removing // from the following line 11: // Enable DEBUG mode by removing // from the following line
 12: define('FORUM_DEBUG', 1); 12: //define('FORUM_DEBUG', 1);
 13:  13: 
 14: if (!defined('FORUM_ROOT')) 14: if (!defined('FORUM_ROOT'))
 15:     exit('The constant FORUM_ROOT must be defined and point to a valid PunBB installation root directory.'); 15:     exit('The constant FORUM_ROOT must be defined and point to a valid PunBB installation root directory.');
 16:  16: 
 17: // Define the version and database revision that this code was written for 17: // Define the version and database revision that this code was written for
 18: define('FORUM_VERSION', '1.3.1'); 18: define('FORUM_VERSION', '1.3.4');
 19: define('FORUM_DB_REVISION', 3); 19: define('FORUM_DB_REVISION', 4);
 20:  20: 
 21: // Load the functions script 21: // Load the functions script
 22: require FORUM_ROOT.'include/functions.php'; 22: require FORUM_ROOT.'include/functions.php';
 63: $forum_start = ((float)$usec + (float)$sec); 63: $forum_start = ((float)$usec + (float)$sec);
 64:  64: 
 65: // Make sure PHP reports all errors except E_NOTICE. PunBB supports E_ALL, but a lot of scripts it may interact with, do not. 65: // Make sure PHP reports all errors except E_NOTICE. PunBB supports E_ALL, but a lot of scripts it may interact with, do not.
 66: error_reporting(E_ALL); 66: if (defined('FORUM_DEBUG'))
  67:     error_reporting(E_ALL);
  68: else
  69:     error_reporting(E_ALL ^ E_NOTICE);
 67:  70: 
 68: // Force POSIX locale (to prevent functions such as strtolower() from messing up UTF-8 strings) 71: // Force POSIX locale (to prevent functions such as strtolower() from messing up UTF-8 strings)
 69: setlocale(LC_CTYPE, 'C'); 72: setlocale(LC_CTYPE, 'C');
106: 109: 
107: // Verify that we are running the proper database schema revision110: // Verify that we are running the proper database schema revision
108: if (defined('PUN') || !isset($forum_config['o_database_revision']) || $forum_config['o_database_revision'] < FORUM_DB_REVISION || version_compare($forum_config['o_cur_version'], FORUM_VERSION, '<'))111: if (defined('PUN') || !isset($forum_config['o_database_revision']) || $forum_config['o_database_revision'] < FORUM_DB_REVISION || version_compare($forum_config['o_cur_version'], FORUM_VERSION, '<'))
109:     error('Your PunBB database is out-of-date and must be upgraded in order to continue. Please run <a href="'.FORUM_ROOT.'admin/db_update.php">db_update.php</a> in order to complete the upgrade process.');112:     error('Your PunBB database is out-of-date and must be upgraded in order to continue. Please run <a href="'.$base_url.'/admin/db_update.php">db_update.php</a> in order to complete the upgrade process.');
110: 113: 
111: 114: 
112: // Load hooks115: // Load hooks


punbb-1.3.1/include/functions.php punbb-1.3.4/include/functions.php
  2: /**  2: /**
  3:  * Loads common functions used throughout the site.  3:  * Loads common functions used throughout the site.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
448:         else448:         else
449:         {449:         {
450:             $links['search'] = '<li id="navsearch"'.((FORUM_PAGE == 'search') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['search']).'">'.$lang_common['Search'].'</a></li>';450:             $links['search'] = '<li id="navsearch"'.((FORUM_PAGE == 'search') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['search']).'">'.$lang_common['Search'].'</a></li>';
451:             $links['profile'] = '<li id="navprofile"'.((FORUM_PAGE == 'editprofile' || FORUM_PAGE == 'viewprofile') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['user'], $forum_user['id']).'">'.$lang_common['Profile'].'</a></li>';451:             $links['profile'] = '<li id="navprofile"'.((substr(FORUM_PAGE, 0, 7) == 'profile') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['user'], $forum_user['id']).'">'.$lang_common['Profile'].'</a></li>';
452:             $links['logout'] = '<li id="navlogout"><a href="'.forum_link($forum_url['logout'], array($forum_user['id'], generate_form_token('logout'.$forum_user['id']))).'">'.$lang_common['Logout'].'</a></li>';452:             $links['logout'] = '<li id="navlogout"><a href="'.forum_link($forum_url['logout'], array($forum_user['id'], generate_form_token('logout'.$forum_user['id']))).'">'.$lang_common['Logout'].'</a></li>';
453:             $links['admin'] = '<li id="navadmin"'.((substr(FORUM_PAGE, 0, 5) == 'admin') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['admin_index']).'">'.$lang_common['Admin'].'</a></li>';453:             $links['admin'] = '<li id="navadmin"'.((substr(FORUM_PAGE, 0, 5) == 'admin') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['admin_index']).'">'.$lang_common['Admin'].'</a></li>';
454:         }454:         }
631: <div id="brd-debug" class="main">631: <div id="brd-debug" class="main">
632: 632: 
633:     <div class="main-head">633:     <div class="main-head">
634:         <h2><span><?php echo $lang_common['Debug table'] ?></span></h2>634:         <h2 class="hn"><span><?php echo $lang_common['Debug table'] ?></span></h2>
635:     </div>635:     </div>
636: 636: 
637:     <div class="main-content debug">637:     <div class="main-content debug">
1360: 1360: 
1361:     $forum_user = $forum_db->fetch_assoc($result);1361:     $forum_user = $forum_db->fetch_assoc($result);
1362: 1362: 
1363:     // Update online list1363:     if (!defined('FORUM_QUIET_VISIT'))
1364:     if (!$forum_user['logged']) 
1365:     {1364:     {
1366:         $forum_user['logged'] = time();1365:         // Update online list
1367:         $forum_user['csrf_token'] = random_key(40, false, true);1366:         if (!$forum_user['logged'])
1368:         $forum_user['prev_url'] = get_current_url(255);1367:         {
 1368:             $forum_user['logged'] = time();
 1369:             $forum_user['csrf_token'] = random_key(40, false, true);
 1370:             $forum_user['prev_url'] = get_current_url(255);
1369: 1371: 
1370:         // REPLACE INTO avoids a user having two rows in the online table1372:             // REPLACE INTO avoids a user having two rows in the online table
1371:         $query = array(1373:             $query = array(
1372:             'REPLACE'    => 'user_id, ident, logged, csrf_token',1374:                 'REPLACE'    => 'user_id, ident, logged, csrf_token',
1373:             'INTO'        => 'online',1375:                 'INTO'        => 'online',
1374:             'VALUES'    => '1, \''.$forum_db->escape($remote_addr).'\', '.$forum_user['logged'].', \''.$forum_user['csrf_token'].'\'',1376:                 'VALUES'    => '1, \''.$forum_db->escape($remote_addr).'\', '.$forum_user['logged'].', \''.$forum_user['csrf_token'].'\'',
1375:             'UNIQUE'    => 'user_id=1 AND ident=\''.$forum_db->escape($remote_addr).'\''1377:                 'UNIQUE'    => 'user_id=1 AND ident=\''.$forum_db->escape($remote_addr).'\''
1376:         );1378:             );
1377: 1379: 
1378:         if ($forum_user['prev_url'] != null)1380:             if ($forum_user['prev_url'] != null)
1379:         {1381:             {
1380:             $query['REPLACE'] .= ', prev_url';1382:                 $query['REPLACE'] .= ', prev_url';
1381:             $query['VALUES'] .= ', \''.$forum_db->escape($forum_user['prev_url']).'\'';1383:                 $query['VALUES'] .= ', \''.$forum_db->escape($forum_user['prev_url']).'\'';
1382:         }1384:             }
1383: 1385: 
1384:         ($hook = get_hook('fn_set_default_user_qr_add_online_guest_user')) ? eval($hook) : null;1386:             ($hook = get_hook('fn_set_default_user_qr_add_online_guest_user')) ? eval($hook) : null;
1385:         $forum_db->query_build($query) or error(__FILE__, __LINE__);1387:             $forum_db->query_build($query) or error(__FILE__, __LINE__);
1386:     }1388:         }
1387:     else1389:         else
1388:     {1390:         {
1389:         $query = array(1391:             $query = array(
1390:             'UPDATE'    => 'online',1392:                 'UPDATE'    => 'online',
1391:             'SET'        => 'logged='.time(),1393:                 'SET'        => 'logged='.time(),
1392:             'WHERE'        => 'ident=\''.$forum_db->escape($remote_addr).'\''1394:                 'WHERE'        => 'ident=\''.$forum_db->escape($remote_addr).'\''
1393:         );1395:             );
1394: 1396: 
1395:         $current_url = get_current_url(255);1397:             $current_url = get_current_url(255);
1396:         if ($current_url != null)1398:             if ($current_url != null)
1397:             $query['SET'] .= ', prev_url=\''.$forum_db->escape($current_url).'\'';1399:                 $query['SET'] .= ', prev_url=\''.$forum_db->escape($current_url).'\'';
1398: 1400: 
1399:         ($hook = get_hook('fn_set_default_user_qr_update_online_guest_user')) ? eval($hook) : null;1401:             ($hook = get_hook('fn_set_default_user_qr_update_online_guest_user')) ? eval($hook) : null;
1400:         $forum_db->query_build($query) or error(__FILE__, __LINE__);1402:             $forum_db->query_build($query) or error(__FILE__, __LINE__);
 1403:         }
1401:     }1404:     }
1402: 1405: 
1403:     $forum_user['disp_topics'] = $forum_config['o_disp_topics_default'];1406:     $forum_user['disp_topics'] = $forum_config['o_disp_topics_default'];
1408:     $forum_user['style'] = $forum_config['o_default_style'];1411:     $forum_user['style'] = $forum_config['o_default_style'];
1409:     $forum_user['is_guest'] = true;1412:     $forum_user['is_guest'] = true;
1410:     $forum_user['is_admmod'] = false;1413:     $forum_user['is_admmod'] = false;
 1414: 
 1415:     ($hook = get_hook('fn_set_default_user_end')) ? eval($hook) : null;
1411: }1416: }
1412: 1417: 
1413: 1418: 
2775:     ob_start();2780:     ob_start();
2776: 2781: 
2777: ?>2782: ?>
2778: <title><?php echo $lang_common['Maintenance'].' - '.forum_htmlencode($forum_config['o_board_title']) ?></title>2783: <title><?php echo $lang_common['Maintenance'].$lang_common['Title separator'].forum_htmlencode($forum_config['o_board_title']) ?></title>
2779: <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $base_url ?>/style/<?php echo $forum_user['style'] ?>/<?php echo $forum_user['style'].'.css' ?>" />2784: <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $base_url ?>/style/<?php echo $forum_user['style'] ?>/<?php echo $forum_user['style'].'.css' ?>" />
2780: <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $base_url ?>/style/<?php echo $forum_user['style'] ?>/<?php echo $forum_user['style'].'_cs.css' ?>" />2785: <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $base_url ?>/style/<?php echo $forum_user['style'] ?>/<?php echo $forum_user['style'].'_cs.css' ?>" />
2781: <!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="<?php echo $base_url ?>/style/<?php echo $forum_user['style'] ?>/<?php echo $forum_user['style'].'_fix.css' ?>" /><![endif]-->2786: <!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="<?php echo $base_url ?>/style/<?php echo $forum_user['style'] ?>/<?php echo $forum_user['style'].'_fix.css' ?>" /><![endif]-->
2792:     ob_start();2797:     ob_start();
2793: 2798: 
2794: ?>2799: ?>
2795: <div id="brd-main" class="main basic">2800: <div id="brd-maint" class="main basic">
2796: 2801: 
2797:     <div class="main-head">2802:     <div class="main-head">
2798:         <h1 class="hn"><span><?php echo $lang_common['Maintenance mode'] ?></span></h1>2803:         <h1 class="hn"><span><?php echo $lang_common['Maintenance mode'] ?></span></h1>
2887:     // START SUBST - <!-- forum_head -->2892:     // START SUBST - <!-- forum_head -->
2888: 2893: 
2889:     $forum_head['refresh'] = '<meta http-equiv="refresh" content="'.$forum_config['o_redirect_delay'].';URL='.str_replace(array('<', '>', '"'), array('&lt;', '&gt;', '&quot;'), $destination_url).'" />';2894:     $forum_head['refresh'] = '<meta http-equiv="refresh" content="'.$forum_config['o_redirect_delay'].';URL='.str_replace(array('<', '>', '"'), array('&lt;', '&gt;', '&quot;'), $destination_url).'" />';
2890:     $forum_head['title'] = '<title>'.$lang_common['Redirecting'].' - '.forum_htmlencode($forum_config['o_board_title']).'</title>';2895:     $forum_head['title'] = '<title>'.$lang_common['Redirecting'].$lang_common['Title separator'].forum_htmlencode($forum_config['o_board_title']).'</title>';
2891: 2896: 
2892:     ob_start();2897:     ob_start();
2893: 2898: 
2966: // Display a simple error message2971: // Display a simple error message
2967: function error()2972: function error()
2968: {2973: {
 2974:     global $forum_config;
 2975: 
2969:     if (!headers_sent())2976:     if (!headers_sent())
2970:     {2977:     {
 2978:         // if no HTTP responce code is set we send 503
 2979:         if (!defined('FORUM_HTTP_RESPONSE_CODE_SET'))
 2980:             header('HTTP/1.1 503 Service Temporarily Unavailable');
2971:         header('Content-type: text/html; charset=utf-8');2981:         header('Content-type: text/html; charset=utf-8');
2972:         header('HTTP/1.1 503 Service Temporarily Unavailable'); 
2973:     }2982:     }
2974: 2983: 
2975:     global $forum_config; 
2976:  
2977:     /*2984:     /*
2978:         Parse input parameters. Possible function signatures:2985:         Parse input parameters. Possible function signatures:
2979:         error('Error message.');2986:         error('Error message.');
3006:     while (@ob_end_clean());3013:     while (@ob_end_clean());
3007: 3014: 
3008:     // "Restart" output buffering if we are using ob_gzhandler (since the gzip header is already sent)3015:     // "Restart" output buffering if we are using ob_gzhandler (since the gzip header is already sent)
3009:     if (!empty($forum_config['o_gzip']) && extension_loaded('zlib') && (strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false || strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'deflate') !== false))3016:     if (!empty($forum_config['o_gzip']) && extension_loaded('zlib') && !empty($_SERVER['HTTP_ACCEPT_ENCODING']) && (strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false || strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'deflate') !== false))
3010:         ob_start('ob_gzhandler');3017:         ob_start('ob_gzhandler');
3011: 3018: 
3012: ?>3019: ?>


punbb-1.3.1/include/parser.php punbb-1.3.4/include/parser.php
  2: /**  2: /**
  3:  * Loads various functions used to parse posts.  3:  * Loads various functions used to parse posts.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
681: 681: 
682:     if (strpos($text, '[quote') !== false)682:     if (strpos($text, '[quote') !== false)
683:     {683:     {
 684:         $text = preg_replace('#\[quote=(&quot;|"|\'|)(.*?)\\1\]#e', '"</p><div class=\"quotebox\"><cite>".str_replace(array(\'[\', \'\\"\'), array(\'&#91;\', \'"\'), \'$2\')." ".$lang_common[\'wrote\'].":</cite><blockquote><p>"', $text);
684:         $text = preg_replace('#\[quote\]\s*#', '</p><div class="quotebox"><blockquote><p>', $text);685:         $text = preg_replace('#\[quote\]\s*#', '</p><div class="quotebox"><blockquote><p>', $text);
685:         $text = preg_replace('#\[quote=(&quot;|"|\'|)(.*?)\\1\]#se', '"</p><div class=\"quotebox\"><cite>".str_replace(array(\'[\', \'\\"\'), array(\'&#91;\', \'"\'), \'$2\')." ".$lang_common[\'wrote\'].":</cite><blockquote><p>"', $text); 
686:         $text = preg_replace('#\s*\[\/quote\]#S', '</p></blockquote></div><p>', $text);686:         $text = preg_replace('#\s*\[\/quote\]#S', '</p></blockquote></div><p>', $text);
687:     }687:     }
688: 688: 
752: {752: {
753:     $text = ' '.$text;753:     $text = ' '.$text;
754: 754: 
755:     $text = preg_replace('#(?<=[\s\]\)])(<)?(\[)?(\()?([\'"]?)(https?|ftp|news){1}://([\w\-]+\.([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^\s\[]*[^\s.,?!\[;:-])?)\4(?(3)(\)))(?(2)(\]))(?(1)(>))(?![^\s]*\[/(?:url|img)\])#ie', 'stripslashes(\'$1$2$3$4\').handle_url_tag(\'$5://$6\', \'$5://$6\', true).stripslashes(\'$4$10$11$12\')', $text);755:     $text = preg_replace('#(?<=[\s\]\)])(<)?(\[)?(\()?([\'"]?)(https?|ftp|news){1}://([\w\-]+\.([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^\s\[]*[^\s.,?!\[;:-]?)?)\4(?(3)(\)))(?(2)(\]))(?(1)(>))(?![^\s]*\[/(?:url|img)\])#ie', 'stripslashes(\'$1$2$3$4\').handle_url_tag(\'$5://$6\', \'$5://$6\', true).stripslashes(\'$4$10$11$12\')', $text);
756:     $text = preg_replace('#(?<=[\s\]\)])(<)?(\[)?(\()?([\'"]?)(www|ftp)\.(([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^\s\[]*[^\s.,?!\[;:-])?)\4(?(3)(\)))(?(2)(\]))(?(1)(>))(?![^\s]*\[/(?:url|img)\])#ie', 'stripslashes(\'$1$2$3$4\').handle_url_tag(\'$5.$6\', \'$5.$6\', true).stripslashes(\'$4$10$11$12\')', $text);756:     $text = preg_replace('#(?<=[\s\]\)])(<)?(\[)?(\()?([\'"]?)(www|ftp)\.(([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^\s\[]*[^\s.,?!\[;:-])?)\4(?(3)(\)))(?(2)(\]))(?(1)(>))(?![^\s]*\[/(?:url|img)\])#ie', 'stripslashes(\'$1$2$3$4\').handle_url_tag(\'$5.$6\', \'$5.$6\', true).stripslashes(\'$4$10$11$12\')', $text);
757: 757: 
758:     return substr($text, 1);758:     return substr($text, 1);
766: {766: {
767:     global $forum_config, $base_url, $smilies;767:     global $forum_config, $base_url, $smilies;
768: 768: 
 769:     $return = ($hook = get_hook('ps_do_smilies_start')) ? eval($hook) : null;
 770:     if ($return != null)
 771:         return $return;
 772: 
769:     $text = ' '.$text.' ';773:     $text = ' '.$text.' ';
770: 774: 
771:     foreach ($smilies as $smiley_text => $smiley_img)775:     foreach ($smilies as $smiley_text => $smiley_img)
774:             $text = preg_replace("#(?<=[>\s])".preg_quote($smiley_text, '#')."(?=\W)#m", '<img src="'.$base_url.'/img/smilies/'.$smiley_img.'" width="15" height="15" alt="'.substr($smiley_img, 0, strrpos($smiley_img, '.')).'" />', $text);778:             $text = preg_replace("#(?<=[>\s])".preg_quote($smiley_text, '#')."(?=\W)#m", '<img src="'.$base_url.'/img/smilies/'.$smiley_img.'" width="15" height="15" alt="'.substr($smiley_img, 0, strrpos($smiley_img, '.')).'" />', $text);
775:     }779:     }
776: 780: 
 781:     $return = ($hook = get_hook('ps_do_smilies_end')) ? eval($hook) : null;
 782: 
777:     return substr($text, 1, -1);783:     return substr($text, 1, -1);
778: }784: }
779: 785: 


punbb-1.3.1/include/search_functions.php punbb-1.3.4/include/search_functions.php
  2: /**  2: /**
  3:  * Loads various functions that are used for searching the forum.  3:  * Loads various functions that are used for searching the forum.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
788:         case 'show_user_posts':788:         case 'show_user_posts':
789:             $forum_page['crumbs'][] = sprintf($lang_search['Posts by'], $search_set[0]['pposter'], ($forum_page['start_from'] + 1), $num_hits);789:             $forum_page['crumbs'][] = sprintf($lang_search['Posts by'], $search_set[0]['pposter'], ($forum_page['start_from'] + 1), $num_hits);
790:             $forum_page['items_info'] = generate_items_info($lang_search['Posts found'], ($forum_page['start_from'] + 1), $num_hits);790:             $forum_page['items_info'] = generate_items_info($lang_search['Posts found'], ($forum_page['start_from'] + 1), $num_hits);
791:             $forum_page['main_head_options']['user_topics'] = '<span'.(empty($forum_page['main_head_options']) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['search_user_topics'], $search_id).'">'.sprintf($lang_search['Topics by'], $search_set[0]['pposter']).'</a></span>';791:             $forum_page['main_head_options']['user_topics'] = '<span'.(empty($forum_page['main_head_options']) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['search_user_topics'], $search_id).'">'.sprintf($lang_search['Topics by'], forum_htmlencode($search_set[0]['pposter'])).'</a></span>';
792:             $forum_page['main_head_options']['defined_search'] = '<span'.(empty($forum_page['main_head_options']) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['search']).'">'.$lang_search['User defined search'].'</a></span>';792:             $forum_page['main_head_options']['defined_search'] = '<span'.(empty($forum_page['main_head_options']) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['search']).'">'.$lang_search['User defined search'].'</a></span>';
793:             break;793:             break;
794: 794: 
795:         case 'show_user_topics':795:         case 'show_user_topics':
796:             $forum_page['crumbs'][] = sprintf($lang_search['Topics by'], $search_set[0]['poster']);796:             $forum_page['crumbs'][] = sprintf($lang_search['Topics by'], $search_set[0]['poster']);
797:             $forum_page['items_info'] = generate_items_info($lang_search['Topics found'], ($forum_page['start_from'] + 1), $num_hits);797:             $forum_page['items_info'] = generate_items_info($lang_search['Topics found'], ($forum_page['start_from'] + 1), $num_hits);
798:             $forum_page['main_head_options']['user_posts'] =  '<span'.(empty($forum_page['main_head_options']) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['search_user_posts'], $search_id).'">'.sprintf($lang_search['Posts by'], $search_set[0]['poster']).'</a></span>';798:             $forum_page['main_head_options']['user_posts'] =  '<span'.(empty($forum_page['main_head_options']) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['search_user_posts'], $search_id).'">'.sprintf($lang_search['Posts by'], forum_htmlencode($search_set[0]['poster'])).'</a></span>';
799:             $forum_page['main_head_options']['defined_search'] = '<span'.(empty($forum_page['main_head_options']) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['search']).'">'.$lang_search['User defined search'].'</a></span>';799:             $forum_page['main_head_options']['defined_search'] = '<span'.(empty($forum_page['main_head_options']) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['search']).'">'.$lang_search['User defined search'].'</a></span>';
800:             break;800:             break;
801: 801: 


punbb-1.3.1/include/search_idx.php punbb-1.3.4/include/search_idx.php
  2: /**  2: /**
  3:  * Load various functions used in indexing posts and topics for searching.  3:  * Load various functions used in indexing posts and topics for searching.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */


punbb-1.3.1/include/url/Default/forum_urls.php punbb-1.3.4/include/url/Default/forum_urls.php
  2: /**  2: /**
  3:  * Regular URL scheme.  3:  * Regular URL scheme.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */


punbb-1.3.1/include/url/Default/index.html punbb-1.3.4/include/url/Default/index.html
  5: <body>  5: <body>
  6: .  6: .
  7: </body>  7: </body>
  8: </html>  8: </html>
  9: <html> 
 10: <head> 
 11: <title>.</title> 
 12: </head> 
 13: <body> 
 14: . 
 15: </body> 
 16: </html> 
 17:   9: 


punbb-1.3.1/include/url/Default/reserved_strings.php punbb-1.3.4/include/url/Default/reserved_strings.php
  3:  * Loads the reserved strings used to transform problematic strings in URLs.  3:  * Loads the reserved strings used to transform problematic strings in URLs.
  4:  * These are matched against the whole string after all other transformations.  4:  * These are matched against the whole string after all other transformations.
  5:  *  5:  *
  6:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  6:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  7:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  7:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  8:  * @package PunBB  8:  * @package PunBB
  9:  */  9:  */
 10:  10: 
 11:  11: 
 12: $forum_reserved_strings = array( 12: $forum_reserved_strings = array(
 13:     ''        =>    'view', 13:     ''                =>    'view',
 14:  14: 
 15:     'newpost'    =>    'view', 15:     'newpost'        =>    'view',
 16:     'newposts'    =>    'view', 16:     'newposts'        =>    'view',
 17:     'new-post'    =>    'view', 17:     'new-post'        =>    'view',
 18:     'new-posts'    =>    'view', 18:     'new-posts'        =>    'view',
 19:  19: 
 20:     'lastpost'    =>    'view', 20:     'lastpost'        =>    'view',
 21:     'lastposts'    =>    'view', 21:     'lastposts'        =>    'view',
 22:     'last-post'    =>    'view', 22:     'last-post'        =>    'view',
 23:     'last-posts'    =>    'view', 23:     'last-posts'    =>    'view',
 24: ); 24: );


punbb-1.3.1/include/url/Default/rewrite_rules.php punbb-1.3.4/include/url/Default/rewrite_rules.php
  2: /**  2: /**
  3:  * Loads the regular expressions used to match SEF URL requests to their proper URLs.  3:  * Loads the regular expressions used to match SEF URL requests to their proper URLs.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
  9:   9: 
 10:  10: 
 11: $forum_rewrite_rules = array( 11: $forum_rewrite_rules = array(
 12:     '/^topic[\/_-]?([0-9]+).*(new|last)[\/_-]?(posts?)(\.html?|\/)?$/i'                                                    =>    'viewtopic.php?id=$1&action=$2', 12:     '/^topic[\/_-]?([0-9]+).*(new|last)[\/_-]?(posts?)(\.html?|\/)?$/i'                                                        =>    'viewtopic.php?id=$1&action=$2',
 13:     '/^post[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                                                                    =>    'viewtopic.php?pid=$1', 13:     '/^post[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                                                                    =>    'viewtopic.php?pid=$1',
 14:     '/^(forum|topic)[\/_-]?([0-9]+).*[\/_-]p(age)?[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                            =>    'view$1.php?id=$2&p=$4', 14:     '/^(forum|topic)[\/_-]?([0-9]+).*[\/_-]p(age)?[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                            =>    'view$1.php?id=$2&p=$4',
 15:     '/^feed[\/_-]?(rss|atom)[\/_-]?(f|t)(orum|opic)[\/_-]?([0-9]+)[\/_-]?(\.xml?|\/)?$/i'                                            =>    'extern.php?action=feed&$2id=$4&type=$1', 15:     '/^feed[\/_-]?(rss|atom)[\/_-]?(f|t)(orum|opic)[\/_-]?([0-9]+)[\/_-]?(\.xml?|\/)?$/i'                                    =>    'extern.php?action=feed&$2id=$4&type=$1',
 16:     '/^(forum|topic)[\/_-]?([0-9]+).*(\.html?|\/)?$/i'                                                                        =>    'view$1.php?id=$2', 16:     '/^(forum|topic)[\/_-]?([0-9]+).*(\.html?|\/)?$/i'                                                                        =>    'view$1.php?id=$2',
 17:     '/^new[\/_-]?reply[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                                                        =>    'post.php?tid=$1', 17:     '/^new[\/_-]?reply[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                                                        =>    'post.php?tid=$1',
 18:     '/^new[\/_-]?reply[\/_-]?([0-9]+)[\/_-]?quote[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                            =>    'post.php?tid=$1&qid=$2', 18:     '/^new[\/_-]?reply[\/_-]?([0-9]+)[\/_-]?quote[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                            =>    'post.php?tid=$1&qid=$2',
 44:     '/^search-k(.*)-(message|subject|all)-a(.*)-([0-9]+)-(ASC|DESC)-([0-9-]+)-(posts|topics)-p([0-9]+).html?$/i'            =>    'search.php?action=search&keywords=$1&author=$3&forum=$6&search_in=$2&sort_by=$4&sort_dir=$5&show_as=$7&p=$8', 44:     '/^search-k(.*)-(message|subject|all)-a(.*)-([0-9]+)-(ASC|DESC)-([0-9-]+)-(posts|topics)-p([0-9]+).html?$/i'            =>    'search.php?action=search&keywords=$1&author=$3&forum=$6&search_in=$2&sort_by=$4&sort_dir=$5&show_as=$7&p=$8',
 45:     '/^users(\.html?|\/)?$/i'                                                                                                =>    'userlist.php', 45:     '/^users(\.html?|\/)?$/i'                                                                                                =>    'userlist.php',
 46:     '/^users\/(.*)\/([0-9-]+)\/?([a-z_]+)[\/_-]([a-zA-Z]+)[\/_-]p(age)?[\/_-]?([0-9]+)(\.html?|\/)?$/i'                        =>    'userlist.php?username=$1&show_group=$2&sort_by=$3&sort_dir=$4&p=$6', 46:     '/^users\/(.*)\/([0-9-]+)\/?([a-z_]+)[\/_-]([a-zA-Z]+)[\/_-]p(age)?[\/_-]?([0-9]+)(\.html?|\/)?$/i'                        =>    'userlist.php?username=$1&show_group=$2&sort_by=$3&sort_dir=$4&p=$6',
 47:     '/^users\/(.*)\/([0-9-]+)\/?([a-z_]+)[\/_-]([a-zA-Z]+)(\.html?|\/)?$/i'                                            =>    'userlist.php?username=$1&show_group=$2&sort_by=$3&sort_dir=$4', 47:     '/^users\/(.*)\/([0-9-]+)\/?([a-z_]+)[\/_-]([a-zA-Z]+)(\.html?|\/)?$/i'                                                    =>    'userlist.php?username=$1&show_group=$2&sort_by=$3&sort_dir=$4',
 48:     '/^(email|report|subscribe|unsubscribe)[\/_-]?([0-9]+)[\/_-]?([a-z0-9]+)?(\.html?|\/)?$/i'                                =>    'misc.php?$1=$2&csrf_token=$3', 48:     '/^(email|report|subscribe|unsubscribe)[\/_-]?([0-9]+)[\/_-]?([a-z0-9]+)?(\.html?|\/)?$/i'                                =>    'misc.php?$1=$2&csrf_token=$3',
 49:     '/^(mark|rules)[\/_-]?(read)?[\/_-]?([a-z0-9]+)?(\.html?|\/)?$/i'                                                        =>    'misc.php?action=$1$2&csrf_token=$3', 49:     '/^(mark|rules)[\/_-]?(read)?[\/_-]?([a-z0-9]+)?(\.html?|\/)?$/i'                                                        =>    'misc.php?action=$1$2&csrf_token=$3',
 50:     '/^mark[\/_-](forum)[\/_-]?([0-9]+)[\/_-](read)[\/_-]([a-z0-9]+)(\.html?|\/)?$/i'                                        =>    'misc.php?action=markforumread&fid=$2&csrf_token=$4', 50:     '/^mark[\/_-](forum)[\/_-]?([0-9]+)[\/_-](read)[\/_-]([a-z0-9]+)(\.html?|\/)?$/i'                                        =>    'misc.php?action=markforumread&fid=$2&csrf_token=$4',


punbb-1.3.1/include/url/File_based/forum_urls.php punbb-1.3.4/include/url/File_based/forum_urls.php
  2: /**  2: /**
  3:  * SEF URLs that use a file-like layout.  3:  * SEF URLs that use a file-like layout.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */


punbb-1.3.1/include/url/File_based/index.html punbb-1.3.4/include/url/File_based/index.html
  5: <body>  5: <body>
  6: .  6: .
  7: </body>  7: </body>
  8: </html>  8: </html>
  9: <html> 
 10: <head> 
 11: <title>.</title> 
 12: </head> 
 13: <body> 
 14: . 
 15: </body> 
 16: </html> 
 17:   9: 


punbb-1.3.1/include/url/File_based/reserved_strings.php punbb-1.3.4/include/url/File_based/reserved_strings.php
  3:  * Loads the reserved strings used to transform problematic strings in URLs.  3:  * Loads the reserved strings used to transform problematic strings in URLs.
  4:  * These are matched against the whole string after all other transformations.  4:  * These are matched against the whole string after all other transformations.
  5:  *  5:  *
  6:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  6:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  7:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  7:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  8:  * @package PunBB  8:  * @package PunBB
  9:  */  9:  */
 10:  10: 
 11:  11: 
 12: $forum_reserved_strings = array( 12: $forum_reserved_strings = array(
 13:     ''        =>    'view', 13:     ''                =>    'view',
 14:  14: 
 15:     'newpost'    =>    'view', 15:     'newpost'        =>    'view',
 16:     'newposts'    =>    'view', 16:     'newposts'        =>    'view',
 17:     'new-post'    =>    'view', 17:     'new-post'        =>    'view',
 18:     'new-posts'    =>    'view', 18:     'new-posts'        =>    'view',
 19:  19: 
 20:     'lastpost'    =>    'view', 20:     'lastpost'        =>    'view',
 21:     'lastposts'    =>    'view', 21:     'lastposts'        =>    'view',
 22:     'last-post'    =>    'view', 22:     'last-post'        =>    'view',
 23:     'last-posts'    =>    'view', 23:     'last-posts'    =>    'view',
 24: ); 24: );


punbb-1.3.1/include/url/File_based/rewrite_rules.php punbb-1.3.4/include/url/File_based/rewrite_rules.php
  2: /**  2: /**
  3:  * Loads the regular expressions used to match SEF URL requests to their proper URLs.  3:  * Loads the regular expressions used to match SEF URL requests to their proper URLs.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
  9:   9: 
 10:  10: 
 11: $forum_rewrite_rules = array( 11: $forum_rewrite_rules = array(
 12:     '/^topic[\/_-]?([0-9]+).*(new|last)[\/_-]?(posts?)(\.html?|\/)?$/i'                                                    =>    'viewtopic.php?id=$1&action=$2', 12:     '/^topic[\/_-]?([0-9]+).*(new|last)[\/_-]?(posts?)(\.html?|\/)?$/i'                                                        =>    'viewtopic.php?id=$1&action=$2',
 13:     '/^post[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                                                                    =>    'viewtopic.php?pid=$1', 13:     '/^post[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                                                                    =>    'viewtopic.php?pid=$1',
 14:     '/^(forum|topic)[\/_-]?([0-9]+).*[\/_-]p(age)?[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                            =>    'view$1.php?id=$2&p=$4', 14:     '/^(forum|topic)[\/_-]?([0-9]+).*[\/_-]p(age)?[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                            =>    'view$1.php?id=$2&p=$4',
 15:     '/^feed[\/_-]?(rss|atom)[\/_-]?(f|t)(orum|opic)[\/_-]?([0-9]+)[\/_-]?(\.xml?|\/)?$/i'                                            =>    'extern.php?action=feed&$2id=$4&type=$1', 15:     '/^feed[\/_-]?(rss|atom)[\/_-]?(f|t)(orum|opic)[\/_-]?([0-9]+)[\/_-]?(\.xml?|\/)?$/i'                                    =>    'extern.php?action=feed&$2id=$4&type=$1',
 16:     '/^(forum|topic)[\/_-]?([0-9]+).*(\.html?|\/)?$/i'                                                                        =>    'view$1.php?id=$2', 16:     '/^(forum|topic)[\/_-]?([0-9]+).*(\.html?|\/)?$/i'                                                                        =>    'view$1.php?id=$2',
 17:     '/^new[\/_-]?reply[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                                                        =>    'post.php?tid=$1', 17:     '/^new[\/_-]?reply[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                                                        =>    'post.php?tid=$1',
 18:     '/^new[\/_-]?reply[\/_-]?([0-9]+)[\/_-]?quote[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                            =>    'post.php?tid=$1&qid=$2', 18:     '/^new[\/_-]?reply[\/_-]?([0-9]+)[\/_-]?quote[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                            =>    'post.php?tid=$1&qid=$2',
 44:     '/^search-k(.*)-(message|subject|all)-a(.*)-([0-9]+)-(ASC|DESC)-([0-9-]+)-(posts|topics)-p([0-9]+).html?$/i'            =>    'search.php?action=search&keywords=$1&author=$3&forum=$6&search_in=$2&sort_by=$4&sort_dir=$5&show_as=$7&p=$8', 44:     '/^search-k(.*)-(message|subject|all)-a(.*)-([0-9]+)-(ASC|DESC)-([0-9-]+)-(posts|topics)-p([0-9]+).html?$/i'            =>    'search.php?action=search&keywords=$1&author=$3&forum=$6&search_in=$2&sort_by=$4&sort_dir=$5&show_as=$7&p=$8',
 45:     '/^users(\.html?|\/)?$/i'                                                                                                =>    'userlist.php', 45:     '/^users(\.html?|\/)?$/i'                                                                                                =>    'userlist.php',
 46:     '/^users\/(.*)\/([0-9-]+)\/?([a-z_]+)[\/_-]([a-zA-Z]+)[\/_-]p(age)?[\/_-]?([0-9]+)(\.html?|\/)?$/i'                        =>    'userlist.php?username=$1&show_group=$2&sort_by=$3&sort_dir=$4&p=$6', 46:     '/^users\/(.*)\/([0-9-]+)\/?([a-z_]+)[\/_-]([a-zA-Z]+)[\/_-]p(age)?[\/_-]?([0-9]+)(\.html?|\/)?$/i'                        =>    'userlist.php?username=$1&show_group=$2&sort_by=$3&sort_dir=$4&p=$6',
 47:     '/^users\/(.*)\/([0-9-]+)\/?([a-z_]+)[\/_-]([a-zA-Z]+)(\.html?|\/)?$/i'                                            =>    'userlist.php?username=$1&show_group=$2&sort_by=$3&sort_dir=$4', 47:     '/^users\/(.*)\/([0-9-]+)\/?([a-z_]+)[\/_-]([a-zA-Z]+)(\.html?|\/)?$/i'                                                    =>    'userlist.php?username=$1&show_group=$2&sort_by=$3&sort_dir=$4',
 48:     '/^(email|report|subscribe|unsubscribe)[\/_-]?([0-9]+)[\/_-]?([a-z0-9]+)?(\.html?|\/)?$/i'                                =>    'misc.php?$1=$2&csrf_token=$3', 48:     '/^(email|report|subscribe|unsubscribe)[\/_-]?([0-9]+)[\/_-]?([a-z0-9]+)?(\.html?|\/)?$/i'                                =>    'misc.php?$1=$2&csrf_token=$3',
 49:     '/^(mark|rules)[\/_-]?(read)?[\/_-]?([a-z0-9]+)?(\.html?|\/)?$/i'                                                        =>    'misc.php?action=$1$2&csrf_token=$3', 49:     '/^(mark|rules)[\/_-]?(read)?[\/_-]?([a-z0-9]+)?(\.html?|\/)?$/i'                                                        =>    'misc.php?action=$1$2&csrf_token=$3',
 50:     '/^mark[\/_-](forum)[\/_-]?([0-9]+)[\/_-](read)[\/_-]([a-z0-9]+)(\.html?|\/)?$/i'                                        =>    'misc.php?action=markforumread&fid=$2&csrf_token=$4', 50:     '/^mark[\/_-](forum)[\/_-]?([0-9]+)[\/_-](read)[\/_-]([a-z0-9]+)(\.html?|\/)?$/i'                                        =>    'misc.php?action=markforumread&fid=$2&csrf_token=$4',


punbb-1.3.1/include/url/File_based_(fancy)/forum_urls.php punbb-1.3.4/include/url/File_based_(fancy)/forum_urls.php
  3:  * SEF URLs that use a file-like layout and include topic name and forum name  3:  * SEF URLs that use a file-like layout and include topic name and forum name
  4:  * where applicable.  4:  * where applicable.
  5:  *  5:  *
  6:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  6:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  7:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  7:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  8:  * @package PunBB  8:  * @package PunBB
  9:  */  9:  */


punbb-1.3.1/include/url/File_based_(fancy)/index.html punbb-1.3.4/include/url/File_based_(fancy)/index.html
  5: <body>  5: <body>
  6: .  6: .
  7: </body>  7: </body>
  8: </html>  8: </html>
  9: <html> 
 10: <head> 
 11: <title>.</title> 
 12: </head> 
 13: <body> 
 14: . 
 15: </body> 
 16: </html> 
 17:   9: 


punbb-1.3.1/include/url/File_based_(fancy)/reserved_strings.php punbb-1.3.4/include/url/File_based_(fancy)/reserved_strings.php
  3:  * Loads the reserved strings used to transform problematic strings in URLs.  3:  * Loads the reserved strings used to transform problematic strings in URLs.
  4:  * These are matched against the whole string after all other transformations.  4:  * These are matched against the whole string after all other transformations.
  5:  *  5:  *
  6:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  6:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  7:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  7:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  8:  * @package PunBB  8:  * @package PunBB
  9:  */  9:  */
 10:  10: 
 11:  11: 
 12: $forum_reserved_strings = array( 12: $forum_reserved_strings = array(
 13:     ''        =>    'view', 13:     ''                =>    'view',
 14:  14: 
 15:     'newpost'    =>    'view', 15:     'newpost'        =>    'view',
 16:     'newposts'    =>    'view', 16:     'newposts'        =>    'view',
 17:     'new-post'    =>    'view', 17:     'new-post'        =>    'view',
 18:     'new-posts'    =>    'view', 18:     'new-posts'        =>    'view',
 19:  19: 
 20:     'lastpost'    =>    'view', 20:     'lastpost'        =>    'view',
 21:     'lastposts'    =>    'view', 21:     'lastposts'        =>    'view',
 22:     'last-post'    =>    'view', 22:     'last-post'        =>    'view',
 23:     'last-posts'    =>    'view', 23:     'last-posts'    =>    'view',
 24: ); 24: );


punbb-1.3.1/include/url/File_based_(fancy)/rewrite_rules.php punbb-1.3.4/include/url/File_based_(fancy)/rewrite_rules.php
  2: /**  2: /**
  3:  * Loads the regular expressions used to match SEF URL requests to their proper URLs.  3:  * Loads the regular expressions used to match SEF URL requests to their proper URLs.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
  9:   9: 
 10:  10: 
 11: $forum_rewrite_rules = array( 11: $forum_rewrite_rules = array(
 12:     '/^topic[\/_-]?([0-9]+).*(new|last)[\/_-]?(posts?)(\.html?|\/)?$/i'                                                    =>    'viewtopic.php?id=$1&action=$2', 12:     '/^topic[\/_-]?([0-9]+).*(new|last)[\/_-]?(posts?)(\.html?|\/)?$/i'                                                        =>    'viewtopic.php?id=$1&action=$2',
 13:     '/^post[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                                                                    =>    'viewtopic.php?pid=$1', 13:     '/^post[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                                                                    =>    'viewtopic.php?pid=$1',
 14:     '/^(forum|topic)[\/_-]?([0-9]+).*[\/_-]p(age)?[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                            =>    'view$1.php?id=$2&p=$4', 14:     '/^(forum|topic)[\/_-]?([0-9]+).*[\/_-]p(age)?[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                            =>    'view$1.php?id=$2&p=$4',
 15:     '/^feed[\/_-]?(rss|atom)[\/_-]?(f|t)(orum|opic)[\/_-]?([0-9]+)[\/_-]?(\.xml?|\/)?$/i'                                            =>    'extern.php?action=feed&$2id=$4&type=$1', 15:     '/^feed[\/_-]?(rss|atom)[\/_-]?(f|t)(orum|opic)[\/_-]?([0-9]+)[\/_-]?(\.xml?|\/)?$/i'                                    =>    'extern.php?action=feed&$2id=$4&type=$1',
 16:     '/^(forum|topic)[\/_-]?([0-9]+).*(\.html?|\/)?$/i'                                                                        =>    'view$1.php?id=$2', 16:     '/^(forum|topic)[\/_-]?([0-9]+).*(\.html?|\/)?$/i'                                                                        =>    'view$1.php?id=$2',
 17:     '/^new[\/_-]?reply[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                                                        =>    'post.php?tid=$1', 17:     '/^new[\/_-]?reply[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                                                        =>    'post.php?tid=$1',
 18:     '/^new[\/_-]?reply[\/_-]?([0-9]+)[\/_-]?quote[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                            =>    'post.php?tid=$1&qid=$2', 18:     '/^new[\/_-]?reply[\/_-]?([0-9]+)[\/_-]?quote[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                            =>    'post.php?tid=$1&qid=$2',
 44:     '/^search-k(.*)-(message|subject|all)-a(.*)-([0-9]+)-(ASC|DESC)-([0-9-]+)-(posts|topics)-p([0-9]+).html?$/i'            =>    'search.php?action=search&keywords=$1&author=$3&forum=$6&search_in=$2&sort_by=$4&sort_dir=$5&show_as=$7&p=$8', 44:     '/^search-k(.*)-(message|subject|all)-a(.*)-([0-9]+)-(ASC|DESC)-([0-9-]+)-(posts|topics)-p([0-9]+).html?$/i'            =>    'search.php?action=search&keywords=$1&author=$3&forum=$6&search_in=$2&sort_by=$4&sort_dir=$5&show_as=$7&p=$8',
 45:     '/^users(\.html?|\/)?$/i'                                                                                                =>    'userlist.php', 45:     '/^users(\.html?|\/)?$/i'                                                                                                =>    'userlist.php',
 46:     '/^users\/(.*)\/([0-9-]+)\/?([a-z_]+)[\/_-]([a-zA-Z]+)[\/_-]p(age)?[\/_-]?([0-9]+)(\.html?|\/)?$/i'                        =>    'userlist.php?username=$1&show_group=$2&sort_by=$3&sort_dir=$4&p=$6', 46:     '/^users\/(.*)\/([0-9-]+)\/?([a-z_]+)[\/_-]([a-zA-Z]+)[\/_-]p(age)?[\/_-]?([0-9]+)(\.html?|\/)?$/i'                        =>    'userlist.php?username=$1&show_group=$2&sort_by=$3&sort_dir=$4&p=$6',
 47:     '/^users\/(.*)\/([0-9-]+)\/?([a-z_]+)[\/_-]([a-zA-Z]+)(\.html?|\/)?$/i'                                            =>    'userlist.php?username=$1&show_group=$2&sort_by=$3&sort_dir=$4', 47:     '/^users\/(.*)\/([0-9-]+)\/?([a-z_]+)[\/_-]([a-zA-Z]+)(\.html?|\/)?$/i'                                                    =>    'userlist.php?username=$1&show_group=$2&sort_by=$3&sort_dir=$4',
 48:     '/^(email|report|subscribe|unsubscribe)[\/_-]?([0-9]+)[\/_-]?([a-z0-9]+)?(\.html?|\/)?$/i'                                =>    'misc.php?$1=$2&csrf_token=$3', 48:     '/^(email|report|subscribe|unsubscribe)[\/_-]?([0-9]+)[\/_-]?([a-z0-9]+)?(\.html?|\/)?$/i'                                =>    'misc.php?$1=$2&csrf_token=$3',
 49:     '/^(mark|rules)[\/_-]?(read)?[\/_-]?([a-z0-9]+)?(\.html?|\/)?$/i'                                                        =>    'misc.php?action=$1$2&csrf_token=$3', 49:     '/^(mark|rules)[\/_-]?(read)?[\/_-]?([a-z0-9]+)?(\.html?|\/)?$/i'                                                        =>    'misc.php?action=$1$2&csrf_token=$3',
 50:     '/^mark[\/_-](forum)[\/_-]?([0-9]+)[\/_-](read)[\/_-]([a-z0-9]+)(\.html?|\/)?$/i'                                        =>    'misc.php?action=markforumread&fid=$2&csrf_token=$4', 50:     '/^mark[\/_-](forum)[\/_-]?([0-9]+)[\/_-](read)[\/_-]([a-z0-9]+)(\.html?|\/)?$/i'                                        =>    'misc.php?action=markforumread&fid=$2&csrf_token=$4',


punbb-1.3.1/include/url/Folder_based/forum_urls.php punbb-1.3.4/include/url/Folder_based/forum_urls.php
  2: /**  2: /**
  3:  * SEF URLs that use a folder-like layout.  3:  * SEF URLs that use a folder-like layout.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */


punbb-1.3.1/include/url/Folder_based/index.html punbb-1.3.4/include/url/Folder_based/index.html
  5: <body>  5: <body>
  6: .  6: .
  7: </body>  7: </body>
  8: </html>  8: </html>
  9: <html> 
 10: <head> 
 11: <title>.</title> 
 12: </head> 
 13: <body> 
 14: . 
 15: </body> 
 16: </html> 
 17:   9: 


punbb-1.3.1/include/url/Folder_based/reserved_strings.php punbb-1.3.4/include/url/Folder_based/reserved_strings.php
  3:  * Loads the reserved strings used to transform problematic strings in URLs.  3:  * Loads the reserved strings used to transform problematic strings in URLs.
  4:  * These are matched against the whole string after all other transformations.  4:  * These are matched against the whole string after all other transformations.
  5:  *  5:  *
  6:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  6:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  7:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  7:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  8:  * @package PunBB  8:  * @package PunBB
  9:  */  9:  */
 10:  10: 
 11:  11: 
 12: $forum_reserved_strings = array( 12: $forum_reserved_strings = array(
 13:     ''        =>    'view', 13:     ''                =>    'view',
 14:  14: 
 15:     'newpost'    =>    'view', 15:     'newpost'        =>    'view',
 16:     'newposts'    =>    'view', 16:     'newposts'        =>    'view',
 17:     'new-post'    =>    'view', 17:     'new-post'        =>    'view',
 18:     'new-posts'    =>    'view', 18:     'new-posts'        =>    'view',
 19:  19: 
 20:     'lastpost'    =>    'view', 20:     'lastpost'        =>    'view',
 21:     'lastposts'    =>    'view', 21:     'lastposts'        =>    'view',
 22:     'last-post'    =>    'view', 22:     'last-post'        =>    'view',
 23:     'last-posts'    =>    'view', 23:     'last-posts'    =>    'view',
 24: ); 24: );


punbb-1.3.1/include/url/Folder_based/rewrite_rules.php punbb-1.3.4/include/url/Folder_based/rewrite_rules.php
  2: /**  2: /**
  3:  * Loads the regular expressions used to match SEF URL requests to their proper URLs.  3:  * Loads the regular expressions used to match SEF URL requests to their proper URLs.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
  9:   9: 
 10:  10: 
 11: $forum_rewrite_rules = array( 11: $forum_rewrite_rules = array(
 12:     '/^topic[\/_-]?([0-9]+).*(new|last)[\/_-]?(posts?)(\.html?|\/)?$/i'                                                    =>    'viewtopic.php?id=$1&action=$2', 12:     '/^topic[\/_-]?([0-9]+).*(new|last)[\/_-]?(posts?)(\.html?|\/)?$/i'                                                        =>    'viewtopic.php?id=$1&action=$2',
 13:     '/^post[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                                                                    =>    'viewtopic.php?pid=$1', 13:     '/^post[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                                                                    =>    'viewtopic.php?pid=$1',
 14:     '/^(forum|topic)[\/_-]?([0-9]+).*[\/_-]p(age)?[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                            =>    'view$1.php?id=$2&p=$4', 14:     '/^(forum|topic)[\/_-]?([0-9]+).*[\/_-]p(age)?[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                            =>    'view$1.php?id=$2&p=$4',
 15:     '/^feed[\/_-]?(rss|atom)[\/_-]?(f|t)(orum|opic)[\/_-]?([0-9]+)[\/_-]?(\.xml?|\/)?$/i'                                            =>    'extern.php?action=feed&$2id=$4&type=$1', 15:     '/^feed[\/_-]?(rss|atom)[\/_-]?(f|t)(orum|opic)[\/_-]?([0-9]+)[\/_-]?(\.xml?|\/)?$/i'                                    =>    'extern.php?action=feed&$2id=$4&type=$1',
 16:     '/^(forum|topic)[\/_-]?([0-9]+).*(\.html?|\/)?$/i'                                                                        =>    'view$1.php?id=$2', 16:     '/^(forum|topic)[\/_-]?([0-9]+).*(\.html?|\/)?$/i'                                                                        =>    'view$1.php?id=$2',
 17:     '/^new[\/_-]?reply[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                                                        =>    'post.php?tid=$1', 17:     '/^new[\/_-]?reply[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                                                        =>    'post.php?tid=$1',
 18:     '/^new[\/_-]?reply[\/_-]?([0-9]+)[\/_-]?quote[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                            =>    'post.php?tid=$1&qid=$2', 18:     '/^new[\/_-]?reply[\/_-]?([0-9]+)[\/_-]?quote[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                            =>    'post.php?tid=$1&qid=$2',
 44:     '/^search-k(.*)-(message|subject|all)-a(.*)-([0-9]+)-(ASC|DESC)-([0-9-]+)-(posts|topics)-p([0-9]+).html?$/i'            =>    'search.php?action=search&keywords=$1&author=$3&forum=$6&search_in=$2&sort_by=$4&sort_dir=$5&show_as=$7&p=$8', 44:     '/^search-k(.*)-(message|subject|all)-a(.*)-([0-9]+)-(ASC|DESC)-([0-9-]+)-(posts|topics)-p([0-9]+).html?$/i'            =>    'search.php?action=search&keywords=$1&author=$3&forum=$6&search_in=$2&sort_by=$4&sort_dir=$5&show_as=$7&p=$8',
 45:     '/^users(\.html?|\/)?$/i'                                                                                                =>    'userlist.php', 45:     '/^users(\.html?|\/)?$/i'                                                                                                =>    'userlist.php',
 46:     '/^users\/(.*)\/([0-9-]+)\/?([a-z_]+)[\/_-]([a-zA-Z]+)[\/_-]p(age)?[\/_-]?([0-9]+)(\.html?|\/)?$/i'                        =>    'userlist.php?username=$1&show_group=$2&sort_by=$3&sort_dir=$4&p=$6', 46:     '/^users\/(.*)\/([0-9-]+)\/?([a-z_]+)[\/_-]([a-zA-Z]+)[\/_-]p(age)?[\/_-]?([0-9]+)(\.html?|\/)?$/i'                        =>    'userlist.php?username=$1&show_group=$2&sort_by=$3&sort_dir=$4&p=$6',
 47:     '/^users\/(.*)\/([0-9-]+)\/?([a-z_]+)[\/_-]([a-zA-Z]+)(\.html?|\/)?$/i'                                            =>    'userlist.php?username=$1&show_group=$2&sort_by=$3&sort_dir=$4', 47:     '/^users\/(.*)\/([0-9-]+)\/?([a-z_]+)[\/_-]([a-zA-Z]+)(\.html?|\/)?$/i'                                                    =>    'userlist.php?username=$1&show_group=$2&sort_by=$3&sort_dir=$4',
 48:     '/^(email|report|subscribe|unsubscribe)[\/_-]?([0-9]+)[\/_-]?([a-z0-9]+)?(\.html?|\/)?$/i'                                =>    'misc.php?$1=$2&csrf_token=$3', 48:     '/^(email|report|subscribe|unsubscribe)[\/_-]?([0-9]+)[\/_-]?([a-z0-9]+)?(\.html?|\/)?$/i'                                =>    'misc.php?$1=$2&csrf_token=$3',
 49:     '/^(mark|rules)[\/_-]?(read)?[\/_-]?([a-z0-9]+)?(\.html?|\/)?$/i'                                                        =>    'misc.php?action=$1$2&csrf_token=$3', 49:     '/^(mark|rules)[\/_-]?(read)?[\/_-]?([a-z0-9]+)?(\.html?|\/)?$/i'                                                        =>    'misc.php?action=$1$2&csrf_token=$3',
 50:     '/^mark[\/_-](forum)[\/_-]?([0-9]+)[\/_-](read)[\/_-]([a-z0-9]+)(\.html?|\/)?$/i'                                        =>    'misc.php?action=markforumread&fid=$2&csrf_token=$4', 50:     '/^mark[\/_-](forum)[\/_-]?([0-9]+)[\/_-](read)[\/_-]([a-z0-9]+)(\.html?|\/)?$/i'                                        =>    'misc.php?action=markforumread&fid=$2&csrf_token=$4',


punbb-1.3.1/include/url/Folder_based_(fancy)/forum_urls.php punbb-1.3.4/include/url/Folder_based_(fancy)/forum_urls.php
  3:  * SEF URLs that use a folder-like layout and include topic name and forum name  3:  * SEF URLs that use a folder-like layout and include topic name and forum name
  4:  * where applicable.  4:  * where applicable.
  5:  *  5:  *
  6:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  6:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  7:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  7:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  8:  * @package PunBB  8:  * @package PunBB
  9:  */  9:  */


punbb-1.3.1/include/url/Folder_based_(fancy)/index.html punbb-1.3.4/include/url/Folder_based_(fancy)/index.html
  5: <body>  5: <body>
  6: .  6: .
  7: </body>  7: </body>
  8: </html>  8: </html>
  9: <html> 
 10: <head> 
 11: <title>.</title> 
 12: </head> 
 13: <body> 
 14: . 
 15: </body> 
 16: </html> 
 17:   9: 


punbb-1.3.1/include/url/Folder_based_(fancy)/reserved_strings.php punbb-1.3.4/include/url/Folder_based_(fancy)/reserved_strings.php
  3:  * Loads the reserved strings used to transform problematic strings in URLs.  3:  * Loads the reserved strings used to transform problematic strings in URLs.
  4:  * These are matched against the whole string after all other transformations.  4:  * These are matched against the whole string after all other transformations.
  5:  *  5:  *
  6:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  6:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  7:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  7:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  8:  * @package PunBB  8:  * @package PunBB
  9:  */  9:  */
 10:  10: 
 11:  11: 
 12: $forum_reserved_strings = array( 12: $forum_reserved_strings = array(
 13:     ''        =>    'view', 13:     ''                =>    'view',
 14:  14: 
 15:     'newpost'    =>    'view', 15:     'newpost'        =>    'view',
 16:     'newposts'    =>    'view', 16:     'newposts'        =>    'view',
 17:     'new-post'    =>    'view', 17:     'new-post'        =>    'view',
 18:     'new-posts'    =>    'view', 18:     'new-posts'        =>    'view',
 19:  19: 
 20:     'lastpost'    =>    'view', 20:     'lastpost'        =>    'view',
 21:     'lastposts'    =>    'view', 21:     'lastposts'        =>    'view',
 22:     'last-post'    =>    'view', 22:     'last-post'        =>    'view',
 23:     'last-posts'    =>    'view', 23:     'last-posts'    =>    'view',
 24: ); 24: );


punbb-1.3.1/include/url/Folder_based_(fancy)/rewrite_rules.php punbb-1.3.4/include/url/Folder_based_(fancy)/rewrite_rules.php
  2: /**  2: /**
  3:  * Loads the regular expressions used to match SEF URL requests to their proper URLs.  3:  * Loads the regular expressions used to match SEF URL requests to their proper URLs.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
  9:   9: 
 10:  10: 
 11: $forum_rewrite_rules = array( 11: $forum_rewrite_rules = array(
 12:     '/^topic[\/_-]?([0-9]+).*(new|last)[\/_-]?(posts?)(\.html?|\/)?$/i'                                                    =>    'viewtopic.php?id=$1&action=$2', 12:     '/^topic[\/_-]?([0-9]+).*(new|last)[\/_-]?(posts?)(\.html?|\/)?$/i'                                                        =>    'viewtopic.php?id=$1&action=$2',
 13:     '/^post[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                                                                    =>    'viewtopic.php?pid=$1', 13:     '/^post[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                                                                    =>    'viewtopic.php?pid=$1',
 14:     '/^(forum|topic)[\/_-]?([0-9]+).*[\/_-]p(age)?[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                            =>    'view$1.php?id=$2&p=$4', 14:     '/^(forum|topic)[\/_-]?([0-9]+).*[\/_-]p(age)?[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                            =>    'view$1.php?id=$2&p=$4',
 15:     '/^feed[\/_-]?(rss|atom)[\/_-]?(f|t)(orum|opic)[\/_-]?([0-9]+)[\/_-]?(\.xml?|\/)?$/i'                                            =>    'extern.php?action=feed&$2id=$4&&type=$1', 15:     '/^feed[\/_-]?(rss|atom)[\/_-]?(f|t)(orum|opic)[\/_-]?([0-9]+)[\/_-]?(\.xml?|\/)?$/i'                                    =>    'extern.php?action=feed&$2id=$4&&type=$1',
 16:     '/^(forum|topic)[\/_-]?([0-9]+).*(\.html?|\/)?$/i'                                                                        =>    'view$1.php?id=$2', 16:     '/^(forum|topic)[\/_-]?([0-9]+).*(\.html?|\/)?$/i'                                                                        =>    'view$1.php?id=$2',
 17:     '/^new[\/_-]?reply[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                                                        =>    'post.php?tid=$1', 17:     '/^new[\/_-]?reply[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                                                        =>    'post.php?tid=$1',
 18:     '/^new[\/_-]?reply[\/_-]?([0-9]+)[\/_-]?quote[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                            =>    'post.php?tid=$1&qid=$2', 18:     '/^new[\/_-]?reply[\/_-]?([0-9]+)[\/_-]?quote[\/_-]?([0-9]+)(\.html?|\/)?$/i'                                            =>    'post.php?tid=$1&qid=$2',
 44:     '/^search-k(.*)-(message|subject|all)-a(.*)-([0-9]+)-(ASC|DESC)-([0-9-]+)-(posts|topics)-p([0-9]+).html?$/i'            =>    'search.php?action=search&keywords=$1&author=$3&forum=$6&search_in=$2&sort_by=$4&sort_dir=$5&show_as=$7&p=$8', 44:     '/^search-k(.*)-(message|subject|all)-a(.*)-([0-9]+)-(ASC|DESC)-([0-9-]+)-(posts|topics)-p([0-9]+).html?$/i'            =>    'search.php?action=search&keywords=$1&author=$3&forum=$6&search_in=$2&sort_by=$4&sort_dir=$5&show_as=$7&p=$8',
 45:     '/^users(\.html?|\/)?$/i'                                                                                                =>    'userlist.php', 45:     '/^users(\.html?|\/)?$/i'                                                                                                =>    'userlist.php',
 46:     '/^users\/(.*)\/([0-9-]+)\/?([a-z_]+)[\/_-]([a-zA-Z]+)[\/_-]p(age)?[\/_-]?([0-9]+)(\.html?|\/)?$/i'                        =>    'userlist.php?username=$1&show_group=$2&sort_by=$3&sort_dir=$4&p=$6', 46:     '/^users\/(.*)\/([0-9-]+)\/?([a-z_]+)[\/_-]([a-zA-Z]+)[\/_-]p(age)?[\/_-]?([0-9]+)(\.html?|\/)?$/i'                        =>    'userlist.php?username=$1&show_group=$2&sort_by=$3&sort_dir=$4&p=$6',
 47:     '/^users\/(.*)\/([0-9-]+)\/?([a-z_]+)[\/_-]([a-zA-Z]+)(\.html?|\/)?$/i'                                            =>    'userlist.php?username=$1&show_group=$2&sort_by=$3&sort_dir=$4', 47:     '/^users\/(.*)\/([0-9-]+)\/?([a-z_]+)[\/_-]([a-zA-Z]+)(\.html?|\/)?$/i'                                                    =>    'userlist.php?username=$1&show_group=$2&sort_by=$3&sort_dir=$4',
 48:     '/^(email|report|subscribe|unsubscribe)[\/_-]?([0-9]+)[\/_-]?([a-z0-9]+)?(\.html?|\/)?$/i'                                =>    'misc.php?$1=$2&csrf_token=$3', 48:     '/^(email|report|subscribe|unsubscribe)[\/_-]?([0-9]+)[\/_-]?([a-z0-9]+)?(\.html?|\/)?$/i'                                =>    'misc.php?$1=$2&csrf_token=$3',
 49:     '/^(mark|rules)[\/_-]?(read)?[\/_-]?([a-z0-9]+)?(\.html?|\/)?$/i'                                                        =>    'misc.php?action=$1$2&csrf_token=$3', 49:     '/^(mark|rules)[\/_-]?(read)?[\/_-]?([a-z0-9]+)?(\.html?|\/)?$/i'                                                        =>    'misc.php?action=$1$2&csrf_token=$3',
 50:     '/^mark[\/_-](forum)[\/_-]?([0-9]+)[\/_-](read)[\/_-]([a-z0-9]+)(\.html?|\/)?$/i'                                        =>    'misc.php?action=markforumread&fid=$2&csrf_token=$4', 50:     '/^mark[\/_-](forum)[\/_-]?([0-9]+)[\/_-](read)[\/_-]([a-z0-9]+)(\.html?|\/)?$/i'                                        =>    'misc.php?action=markforumread&fid=$2&csrf_token=$4',


punbb-1.3.1/include/xml.php punbb-1.3.4/include/xml.php
  2: /**  2: /**
  3:  * Loads various functions used in parsing XML (mostly for extensions).  3:  * Loads various functions used in parsing XML (mostly for extensions).
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */


punbb-1.3.1/index.php punbb-1.3.4/index.php
  2: /**  2: /**
  3:  * Displays a list of the categories/forums that the current user can see, along with some statistics.  3:  * Displays a list of the categories/forums that the current user can see, along with some statistics.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
 91: { 91: {
 92:     ($hook = get_hook('in_forum_loop_start')) ? eval($hook) : null; 92:     ($hook = get_hook('in_forum_loop_start')) ? eval($hook) : null;
 93:  93: 
 94:     $forum_page['item_mods'] = ''; 
 95:     ++$forum_page['item_count']; 94:     ++$forum_page['item_count'];
 96:  95: 
 97:     if ($cur_forum['cid'] != $forum_page['cur_category'])    // A new category since last iteration? 96:     if ($cur_forum['cid'] != $forum_page['cur_category'])    // A new category since last iteration?
125: 124: 
126:     // Reset arrays and globals for each forum125:     // Reset arrays and globals for each forum
127:     $forum_page['item_status'] = $forum_page['item_subject'] = $forum_page['item_body'] = $forum_page['item_title'] = array();126:     $forum_page['item_status'] = $forum_page['item_subject'] = $forum_page['item_body'] = $forum_page['item_title'] = array();
128:     $forum_page['item_indicator'] = ''; 
129: 127: 
130:     // Is this a redirect forum?128:     // Is this a redirect forum?
131:     if ($cur_forum['redirect_url'] != '')129:     if ($cur_forum['redirect_url'] != '')


punbb-1.3.1/lang/English/admin_forums.php punbb-1.3.4/lang/English/admin_forums.php
 34: 'User groups'                    =>    'User groups', 34: 'User groups'                    =>    'User groups',
 35: 'Confirm delete forum'            =>    'You are deleting the forum "%s"', 35: 'Confirm delete forum'            =>    'You are deleting the forum "%s"',
 36: 'Forum perms read info'            =>    'The "Read forum" permission checkbox will be disabled if the group in question lacks the "Read board" permission.', 36: 'Forum perms read info'            =>    'The "Read forum" permission checkbox will be disabled if the group in question lacks the "Read board" permission.',
  37: 'Forum perms redirect info'        =>    'This is a redirect forum. Only the "Read forum" permission is editable.',
 37: 'Forum perms restore info'        =>    'Permissions can be restored to default settings using the "Default permissions" button below.', 38: 'Forum perms restore info'        =>    'Permissions can be restored to default settings using the "Default permissions" button below.',
 38: 'Forum perms groups info'        =>    'Permissions are the defaults as set in %s unless suffixed "(S)"', 39: 'Forum perms groups info'        =>    'Permissions are the defaults as set in %s unless suffixed "(S)"',
 39: 'Forum perms admins info'        =>    'Forum Administrators always have full permissions which cannot be restricted.', 40: 'Forum perms admins info'        =>    'Forum Administrators always have full permissions which cannot be restricted.',


punbb-1.3.1/lang/English/admin_index.php punbb-1.3.4/lang/English/admin_index.php
  1: <?php  1: <?php
  2:   2: 
   3: // Language definitions used in the index page of the admin panel
  3: $lang_admin_index = array(  4: $lang_admin_index = array(
  4:   5: 
  5: 'Information head'                =>    'Welcome to PunBB administration control panel',  6: 'Information head'                =>    'Welcome to PunBB administration control panel',
  6: 'Alerts'                        =>    'Administrator Alerts',  7: 'Alerts'                        =>    'Administrator Alerts',
  7: 'Check for updates enabled'        =>    'This board is setup to automatically check for updates and hotfixes against the punbb.informer.com updates service.',  8: 'Check for updates enabled'        =>    'This board is setup to automatically check for updates and hotfixes against the punbb.informer.com updates service.',
  8: 'Check for updates manual'        =>    'Check for updates',    // Link text  9: 'Check for updates manual'        =>    'Check for updates',    // Link text
  9: 'PunBB version'                =>    'PunBB version', 10: 'Copyright message'                =>    '&copy; 2008-2009 <a href="http://punbb.informer.com/">PunBB</a>, partially based on code &copy; 2008-2009 <a href="http://fluxbb.org/">FluxBB</a>',
  11: 'PunBB version'                    =>    'PunBB version',
 10: 'Not available'                    =>    'Not available', 12: 'Not available'                    =>    'Not available',
 11: 'Not applicable'                =>    'N/A', 13: 'Not applicable'                =>    'N/A',
 12: 'Server load'                    =>    'Server load', 14: 'Server load'                    =>    'Server load',


punbb-1.3.1/lang/English/admin_reindex.php punbb-1.3.4/lang/English/admin_reindex.php
 10: 'Empty index warning'        =>    '<strong>WARNING!</strong> If you want to resume an aborted rebuild, do not select "empty index".', 10: 'Empty index warning'        =>    '<strong>WARNING!</strong> If you want to resume an aborted rebuild, do not select "empty index".',
 11: 'Posts per cycle'            =>    'Posts per cycle', 11: 'Posts per cycle'            =>    'Posts per cycle',
 12: 'Posts per cycle info'        =>    'The number of posts to process per pageview. E.g. if you were to enter 100, one hundred posts would be processed and then the page would refresh. This is to prevent the script from timing out during the rebuild process.', 12: 'Posts per cycle info'        =>    'The number of posts to process per pageview. E.g. if you were to enter 100, one hundred posts would be processed and then the page would refresh. This is to prevent the script from timing out during the rebuild process.',
 13: 'Starting post'                =>    'Starting Post ID', 13: 'Starting post'                =>    'Starting post ID',
 14: 'Starting post info'        =>    'The post ID to start rebuilding at. The default value is the first available ID in the database. Normally you would not want to change this.', 14: 'Starting post info'        =>    'The post ID to start rebuilding at. The default value is the first available ID in the database. Normally you would not want to change this.',
 15: 'Empty index'                =>    'Empty index', 15: 'Empty index'                =>    'Empty index',
 16: 'Empty index info'            =>    'Empty search index before rebuilding (see below).', 16: 'Empty index info'            =>    'Empty search index before rebuilding (see below).',


punbb-1.3.1/lang/English/admin_settings.php punbb-1.3.4/lang/English/admin_settings.php
166: 'Registration rules'            =>    'Forum rules (enable and compose forum rules)',166: 'Registration rules'            =>    'Forum rules (enable and compose forum rules)',
167: 'Registration rules info'        =>    'You may require new users to agree to a set of rules when registering. The rules will always be available through a link in the navigation table at the top of every page. You may enable the use of rules and then compose your rules below.',167: 'Registration rules info'        =>    'You may require new users to agree to a set of rules when registering. The rules will always be available through a link in the navigation table at the top of every page. You may enable the use of rules and then compose your rules below.',
168: 'Registration rules legend'        =>    'Forum rules',168: 'Registration rules legend'        =>    'Forum rules',
169: 'Require rules'                    =>    'Require agreement',169: 'Require rules'                    =>    'Use rules',
170: 'Require rules label'            =>    'Users must agree to forum rules before registering.',170: 'Require rules label'            =>    'Users must agree to forum rules before registering.',
171: 'Compose rules label'            =>    'Compose rules',171: 'Compose rules label'            =>    'Compose rules',
172: 'Compose rules help'            =>    'You may use HTML as text is not parsed. Leaving empty disables the use of rules.',172: 'Compose rules help'            =>    'You may use HTML as text is not parsed.',
173: 'Rules default'                    =>    'Enter your rules here.',173: 'Rules default'                    =>    'Enter your rules here.',
174: 174: 
175: // Email section175: // Email section


punbb-1.3.1/lang/English/common.php punbb-1.3.4/lang/English/common.php
  8: 'lang_identifier'            =>    'en',  8: 'lang_identifier'            =>    'en',
  9:   9: 
 10: // Number formatting 10: // Number formatting
 11: 'lang_decimal_point'    =>    '.', 11: 'lang_decimal_point'        =>    '.',
 12: 'lang_thousands_sep'    =>    ',', 12: 'lang_thousands_sep'        =>    ',',
 13:  13: 
 14: // Notices 14: // Notices
 15: 'Bad request'                =>    'Bad request. The link you followed is incorrect or outdated.', 15: 'Bad request'                =>    'Bad request. The link you followed is incorrect or outdated.',
 85: 'Item info single'            =>    '%s [ %s ]', 85: 'Item info single'            =>    '%s [ %s ]',
 86: 'Item info plural'            =>    '%s [ %s to %s of %s ]', // e.g. Topics [ 10 to 20 of 30 ] 86: 'Item info plural'            =>    '%s [ %s to %s of %s ]', // e.g. Topics [ 10 to 20 of 30 ]
 87: 'Info separator'            =>    ' ', // e.g. 1 Page | 10 Topics 87: 'Info separator'            =>    ' ', // e.g. 1 Page | 10 Topics
 88: 'Powered by'                =>    'Powered by <strong>%s</strong>', 88: 'Powered by'                =>    'Powered by <strong>%s</strong>, supported by <strong>%s</strong>.',
 89: 'Maintenance'                =>    'Maintenance', 89: 'Maintenance'                =>    'Maintenance',
 90:  90: 
 91: // CSRF confirmation form 91: // CSRF confirmation form
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 hotfixes are available for install on the strong>Extensions</strong> » <strong>Manage hotfixes</strong> 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 <a href="%s">Manage hotfixes</a> 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 hotfixes are available for install on the <a href="%s">Manage hotfixes</a> 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',
146: 'Jump to'                    =>    'Jump to forum:',146: 'Jump to'                    =>    'Jump to forum:',
147: 147: 
148: // For extern.php RSS feed148: // For extern.php RSS feed
149: 'ATOM Feed'                    =>    'Atom', 
150: 'RSS Feed'                    =>    'RSS', 
151: 'RSS description'            =>    'The most recent topics at %s.',149: 'RSS description'            =>    'The most recent topics at %s.',
152: 'RSS description topic'        =>    'The most recent posts in %s.',150: 'RSS description topic'        =>    'The most recent posts in %s.',
153: 'RSS reply'                    =>    'Re: ',    // The topic subject will be appended to this string (to signify a reply)151: 'RSS reply'                    =>    'Re: ',    // The topic subject will be appended to this string (to signify a reply)
154: 152: 
155: // Accessibility153: // Accessibility
156: 'Skip to content'                    =>    'Skip to forum content',154: 'Skip to content'            =>    'Skip to forum content',
157: 155: 
158: // Debug information156: // Debug information
159: 'Querytime'                        =>    'Generated in %1$s seconds, %2$s queries executed',157: 'Querytime'                    =>    'Generated in %1$s seconds, %2$s queries executed',
160: 'Debug table'                        =>    'Debug information',158: 'Debug table'                =>    'Debug information',
161: 'Debug summary'                        =>    'Database query performance information',159: 'Debug summary'                =>    'Database query performance information',
162: 'Query times'                        =>    'Time (s)',160: 'Query times'                =>    'Time (s)',
163: 'Query'                            =>    'Query',161: 'Query'                        =>    'Query',
164: 'Total query time'                    =>    'Total query time',162: 'Total query time'            =>    'Total query time',
165: 163: 
166: );164: );


punbb-1.3.1/lang/English/forum.php punbb-1.3.4/lang/English/forum.php
 24: 'No lastpost info'            =>    'No last post information', 24: 'No lastpost info'            =>    'No last post information',
 25: 'by poster'                    =>    'by %s', 25: 'by poster'                    =>    'by %s',
 26: 'Item status'                =>    '%s:', 26: 'Item status'                =>    '%s:',
 27: 'Topic starter'                =>    'by %s', 27: 'Topic starter'                =>    'by <cite>%s</cite>',
 28: 'New posts'                    =>    'New posts', 28: 'New posts'                    =>    'New posts',
 29: 'Topic navigation'            =>    '( %s )', 29: 'Topic navigation'            =>    '( %s )',
 30: 'Location'                    =>    'Found in forum: %s', 30: 'Location'                    =>    'Found in forum: %s',
 43: 'Forum options'                =>    'Forum options', 43: 'Forum options'                =>    'Forum options',
 44: 'Moderate forum'            =>    'Moderate forum', 44: 'Moderate forum'            =>    'Moderate forum',
 45: 'Mark forum read'            =>    'Mark forum as read', 45: 'Mark forum read'            =>    'Mark forum as read',
 46: 'RSS forum feed'            =>    'RSS Forum Feed', 46: 'RSS forum feed'            =>    'RSS forum feed',
 47: 'New posts info'            =>    'Go to the first new post since your last visit.' 47: 'New posts info'            =>    'Go to the first new post since your last visit.'
 48:  48: 
 49: ); 49: );


punbb-1.3.1/lang/English/help.php punbb-1.3.4/lang/English/help.php
 36: 'List text 2'            =>    'Example list item 2.', 36: 'List text 2'            =>    'Example list item 2.',
 37: 'List text 3'            =>    'Example list item 3.', 37: 'List text 3'            =>    'Example list item 3.',
 38: 'produces list'            =>    'produces a bulleted list.', 38: 'produces list'            =>    'produces a bulleted list.',
 39: 'produces decimal list'    =>    'produces numbered list.', 39: 'produces decimal list'    =>    'produces a numbered list.',
 40: 'produces alpha list'    =>    'produces alphabetically labelled list.', 40: 'produces alpha list'    =>    'produces an alphabetically labelled list.',
 41: 'Bold, underlined text'    =>    'Bold, underlined text', 41: 'Bold, underlined text'    =>    'Bold, underlined text',
 42: 'Smilies info'            =>    'If you like (and if it is enabled), the forum can convert a selection of smilies to image representations of those smilies. This forum recognizes the smilies listed below and replaces them with images.' 42: 'Smilies info'            =>    'If you like (and if it is enabled), the forum can convert a selection of smilies to image representations of those smilies. This forum recognizes the smilies listed below and replaces them with images.'
 43:  43: 


punbb-1.3.1/lang/English/index.php punbb-1.3.4/lang/English/index.php
 42: 'New posts title'            =>    'This forum contain posts made since your last visit.', 42: 'New posts title'            =>    'This forum contain posts made since your last visit.',
 43: 'Board options'                =>    'Board options', 43: 'Board options'                =>    'Board options',
 44: 'RSS active feed'            =>    'RSS active topics feed', 44: 'RSS active feed'            =>    'RSS active topics feed',
 45: 'Mark all as read'            =>    'Mark all forums as read' 45: 'Guests online'                =>    'Guests online',
  46: 'Users online'                =>    'Users online'
 46:  47: 
 47: ); 48: );


punbb-1.3.1/lang/English/install.php punbb-1.3.4/lang/English/install.php
 21: 'Table prefix'                =>    'Table prefix', 21: 'Table prefix'                =>    'Table prefix',
 22: 'Database type info'        =>    'PunBB currently supports MySQL, PostgreSQL and SQLite. If your database of choice is missing from the drop-down menu below, it means this PHP environment does not have support for that particular database. More information regarding support for particular versions of each database can be found in the FAQ.', 22: 'Database type info'        =>    'PunBB currently supports MySQL, PostgreSQL and SQLite. If your database of choice is missing from the drop-down menu below, it means this PHP environment does not have support for that particular database. More information regarding support for particular versions of each database can be found in the FAQ.',
 23: 'Mysql type info'            =>    'PunBB has detected that your PHP environment supports two different ways of communicating with MySQL. The two options are called "<em>standard</em>" and "<em>improved</em>". If you are uncertain which one to use, start by trying improved and if that fails, try standard.', 23: 'Mysql type info'            =>    'PunBB has detected that your PHP environment supports two different ways of communicating with MySQL. The two options are called "<em>standard</em>" and "<em>improved</em>". If you are uncertain which one to use, start by trying improved and if that fails, try standard.',
 24: 'MySQL InnoDB info'            =>    'PunBB has detected that your MySQL server might support <a href="http://dev.mysql.com/doc/refman/5.0/en/innodb-overview.html">InnoDB</a>. This would be a good choice if you are planning to run a large forum. If you are uncertain, it is recommended to not use InnoDB.', 
 25: 'Database server info'        =>    'Enter the address of the database server (example: <em>localhost</em>, <em>mysql1.example.com</em> or <em>208.77.188.166</em>). You can specify a custom port number if your database doesn\'t run on the default port (example: <em>localhost:3580</em>). For SQLite support, just enter anything or leave it at \'localhost\'.', 24: 'Database server info'        =>    'Enter the address of the database server (example: <em>localhost</em>, <em>mysql1.example.com</em> or <em>208.77.188.166</em>). You can specify a custom port number if your database doesn\'t run on the default port (example: <em>localhost:3580</em>). For SQLite support, just enter anything or leave it at \'localhost\'.',
 26: 'Database name info'        =>    'Enter the name of the database that PunBB will be installed into. The database must exist. For SQLite, this is the relative path to the database file. If the SQLite database file does not exist, PunBB will attempt to create it.', 25: 'Database name info'        =>    'Enter the name of the database that PunBB will be installed into. The database must exist. For SQLite, this is the relative path to the database file. If the SQLite database file does not exist, PunBB will attempt to create it.',
 27: 'Database username info'    =>    'Enter the username and password used for connecting to the selected database. Ignore for SQLite.', 26: 'Database username info'    =>    'Enter the username and password used for connecting to the selected database. Ignore for SQLite.',
 78: 'Invalid table prefix'        =>    'The table prefix \'%s\' contains illegal characters or is too long. The prefix may contain the letters a to z, any numbers and the underscore character. They must however not start with a number. The maximum length is 40 characters. Please choose a different prefix.', 77: 'Invalid table prefix'        =>    'The table prefix \'%s\' contains illegal characters or is too long. The prefix may contain the letters a to z, any numbers and the underscore character. They must however not start with a number. The maximum length is 40 characters. Please choose a different prefix.',
 79: 'SQLite prefix collision'    =>    'The table prefix \'sqlite_\' is reserved for use by the SQLite engine. Please choose a different prefix.', 78: 'SQLite prefix collision'    =>    'The table prefix \'sqlite_\' is reserved for use by the SQLite engine. Please choose a different prefix.',
 80: 'PunBB already installed'    =>    'A table called "%1$susers" is already present in the database "%2$s". This could mean that PunBB is already installed or that another piece of software is installed and is occupying one or more of the table names PunBB requires. If you want to install multiple copies of PunBB in the same database, you must choose a different table prefix.', 79: 'PunBB already installed'    =>    'A table called "%1$susers" is already present in the database "%2$s". This could mean that PunBB is already installed or that another piece of software is installed and is occupying one or more of the table names PunBB requires. If you want to install multiple copies of PunBB in the same database, you must choose a different table prefix.',
 81: 'InnoDB not enabled'        =>    'InnoDB does not seem to be enabled. Please choose a database layer that does not have InnoDB support, or enable InnoDB on your MySQL server.', 80: 'Invalid language'            =>    'The language pack you have chosen doesn\'t seem to exist or is corrupt. Please recheck and try again.',
 82:  81: 
 83: // Used in the install 82: // Used in the install
  83: 'Default language'            =>    'Default language',
  84: 'Default language help'        =>    '(If you remove a language pack you must update this setting)',
 84: 'Default announce heading'    =>    'Sample announcement', 85: 'Default announce heading'    =>    'Sample announcement',
 85: 'Default announce message'    =>    '<p>Enter your announcement here.</p>', 86: 'Default announce message'    =>    '<p>Enter your announcement here.</p>',
 86: 'Default maint message'        =>    "The forums are temporarily down for maintenance. Please try again in a few minutes.<br />\\n<br />\\n/Administrator", 87: 'Default maint message'        =>    "The forums are temporarily down for maintenance. Please try again in a few minutes.<br />\\n<br />\\n/Administrator",


punbb-1.3.1/lang/English/login.php punbb-1.3.4/lang/English/login.php
  1: <?php  1: <?php
  2:   2: 
  3: // Language definitions used in delete.php  3: // Language definitions used in login.php
  4: $lang_login = array(  4: $lang_login = array(
  5:   5: 
  6: // Miscellaneous  6: // Miscellaneous


punbb-1.3.1/lang/English/profile.php punbb-1.3.4/lang/English/profile.php
 44: 'Too wide or high'            =>    'The file you tried to upload is wider and/or higher than the maximum allowed %sx%s pixels.', 44: 'Too wide or high'            =>    'The file you tried to upload is wider and/or higher than the maximum allowed %sx%s pixels.',
 45: 'Unknown failure'            =>    'An unknown error occurred. Please try again.', 45: 'Unknown failure'            =>    'An unknown error occurred. Please try again.',
 46: 'Avatar'                    =>    'Avatar', 46: 'Avatar'                    =>    'Avatar',
 47: 'Current avatar'            =>    'Current Avatar', 47: 'Current avatar'            =>    'Current avatar',
 48: 'No avatar info'            =>    'No avatar is currently uploaded.', 48: 'No avatar info'            =>    'No avatar is currently uploaded.',
 49: 'Avatar info replace'        =>    'Uploading a new avatar will replace your existing avatar.', 49: 'Avatar info replace'        =>    'Uploading a new avatar will replace your existing avatar.',
 50: 'Avatar info none'            =>    'To display an avatar you first need to upload one.', 50: 'Avatar info none'            =>    'To display an avatar you first need to upload one.',
 51: 'Avatar info type'            =>    'The allowed image file types are gif, jpeg and png.', 51: 'Avatar info type'            =>    'The allowed image file types are gif, jpeg and png.',
 52: 'Avatar info size'            =>    'The maximum image size allowed is %sx%s pixels and %s bytes (%s KB).', 52: 'Avatar info size'            =>    'The maximum image size allowed is %sx%s pixels and %s bytes (%s KB).',
 53: 'Delete avatar info'        =>    'Delete avatar to cease displaying any avatar.', 53: 'Delete avatar info'        =>    'Delete avatar to stop displaying any avatar.',
 54: 'Upload avatar file'        =>    'Upload avatar file', 54: 'Upload avatar file'        =>    'Upload avatar file',
 55: 'Avatar upload help'        =>    'Select file then update your profile to install.', 55: 'Avatar upload help'        =>    'Select file then update your profile to install.',
 56: 'No upload warn'            =>    '<strong>IMPORTANT! </strong> You must choose a file to upload before updating your profile.', 56: 'No upload warn'            =>    '<strong>IMPORTANT! </strong> You must choose a file to upload before updating your profile.',
183: '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:',
184: 'E-mail key bad'            =>    'The specified e-mail activation key was incorrect or has expired. Please re-request change of e-mail address. If that fails, contact the forum administrator at %s.',184: 'E-mail key bad'            =>    'The specified e-mail activation key was incorrect or has expired. Please re-request change of e-mail address. If that fails, contact the forum administrator at %s.',
185: 'E-mail updated'            =>    'Your e-mail address has been updated.',185: 'E-mail updated'            =>    'Your e-mail address has been updated.',
 186: 'E-mail updated redirect'    =>    'Your e-mail address has been updated. Redirecting…',
186: 'Wrong password'            =>    'The password you entered was incorrect.',187: 'Wrong password'            =>    'The password you entered was incorrect.',
187: 'Activate e-mail sent'        =>    'An email has been sent to the specified address with instructions on how to activate the new e-mail address. If it doesn\'t arrive you can contact the forum administrator at %s.',188: 'Activate e-mail sent'        =>    'An email has been sent to the specified address with instructions on how to activate the new e-mail address. If it doesn\'t arrive you can contact the forum administrator at %s.',
188: 'Change your e-mail'        =>    'Change your e-mail address',189: 'Change your e-mail'        =>    'Change your e-mail address',


punbb-1.3.1/lang/English/search.php punbb-1.3.4/lang/English/search.php
 32: 'Show as posts'                =>    'As posts', 32: 'Show as posts'                =>    'As posts',
 33: 'Submit search'                =>    'Submit search', 33: 'Submit search'                =>    'Submit search',
 34: 'User defined search'        =>    'User defined search', 34: 'User defined search'        =>    'User defined search',
  35: 'Search in'                    =>    'Search in',
  36: 'Message and subject'        =>    'Message text and topic subject',
  37: 'Message only'                =>    'Message text only',
  38: 'Topic only'                =>    'Topic subject only',
 35:  39: 
 36: // Results 40: // Results
 37: 'Search results'            =>    'Search results', 41: 'Search results'            =>    'Search results',
 47: 'Posts by user'                =>    'Posts by this user', 51: 'Posts by user'                =>    'Posts by this user',
 48: 'Perform new search'        =>    'Perform new search', 52: 'Perform new search'        =>    'Perform new search',
 49: 'Search options'            =>    'Search options', 53: 'Search options'            =>    'Search options',
 50: 'Location'                    =>    'Forum: %s', 54: 'Posted in'                    =>    'Posted in ',
 51: 'No terms'                    =>    'You have to enter at least one keyword and/or an author to search for.', 55: 'No terms'                    =>    'You have to enter at least one keyword and/or an author to search for.',
 52: 'No hits'                    =>    'Your search returned no hits.', 56: 'No hits'                    =>    'Your search returned no hits.',
 53: 'No user posts'                =>    'There are no posts by this user in this forum.', 57: 'No user posts'                =>    'There are no posts by this user in this forum.',


punbb-1.3.1/lang/English/topic.php punbb-1.3.4/lang/English/topic.php
  8: 'Search replies'        =>    '(%s replies, posted in %s)',  8: 'Search replies'        =>    '(%s replies, posted in %s)',
  9: 'Post reply'            =>    'Post reply',  9: 'Post reply'            =>    'Post reply',
 10: 'Topic closed'            =>    '[ Closed ]', 10: 'Topic closed'            =>    '[ Closed ]',
  11: 'Topic closed info'        =>    'This topic is closed',
 11: 'No permission'            =>    'Sorry! no permission to post a reply', 12: 'No permission'            =>    'Sorry! no permission to post a reply',
 12: 'Topic title'            =>    'Topic: %s', 13: 'Topic title'            =>    'Topic: %s',
 13: 'Reply title'            =>    'Re: %s', 14: 'Reply title'            =>    'Re: %s',
 14: 'Login to post'            =>    'You must %1$s or %2$s to post a reply', 15: 'Login to post'            =>    'You must %1$s or %2$s to post a reply',
 15: 'From'                    =>    'From:',                // User location 16: 'From'                    =>    'From:', // User location
 16: 'Registered'            =>    'Registered:', 17: 'Registered'            =>    'Registered:',
 17: 'Note'                    =>    'Note:',                // Admin note 18: 'Note'                    =>    'Note:', // Admin note
 18: 'IP'                    =>    'IP:', 19: 'IP'                    =>    'IP:',
 19: 'Posts'                    =>    'Posts', 20: 'Posts'                    =>    'Posts',
 20: 'Posts info'            =>    'Posts:', 21: 'Posts info'            =>    'Posts:',
 32: 'Unsubscribe'            =>    'Unsubscribe', 33: 'Unsubscribe'            =>    'Unsubscribe',
 33: 'Subscribe'                =>    'Subscribe', 34: 'Subscribe'                =>    'Subscribe',
 34: 'Subscribe info'        =>    'Receive email notification of new posts.', 35: 'Subscribe info'        =>    'Receive email notification of new posts.',
 35: 'RSS topic feed'        =>    'RSS Topic Feed', 36: 'RSS topic feed'        =>    'RSS topic feed',
 36: 'Quick post'            =>    'Quick reply to this topic', 37: 'Quick post'            =>    'Quick reply to this topic',
 37: 'Post'                    =>    'Post', 38: 'Post'                    =>    'Post',
 38: 'Permalink post'        =>    'Permanent link to this post', 39: 'Permalink post'        =>    'Permanent link to this post',
 40: 'Go to profile'            =>    'Go to %s\'s profile', 41: 'Go to profile'            =>    'Go to %s\'s profile',
 41: 'Move'                    =>    'Move topic', 42: 'Move'                    =>    'Move topic',
 42: 'Topic options'            =>    'Topic options', 43: 'Topic options'            =>    'Topic options',
 43: 'Open'                    =>  'Open topic', 44: 'Open'                    =>    'Open topic',
 44: 'Close'                    =>  'Close topic', 45: 'Close'                    =>    'Close topic',
 45: 'Unstick'                =>  'Unstick topic', 46: 'Unstick'                =>    'Unstick topic',
 46: 'Stick'                    =>  'Stick topic', 47: 'Stick'                    =>    'Stick topic',
 47: 'Moderate topic'        =>    'Moderate topic', 48: 'Moderate topic'        =>    'Moderate topic',
 48: 'Required warn'            =>    'You cannot submit or preview an empty message.', 49: 'Required warn'            =>    'You cannot submit or preview an empty message.',
 49:  50: 


punbb-1.3.1/lang/English/url_replace.php punbb-1.3.4/lang/English/url_replace.php
563: 'Ь' => '',563: 'Ь' => '',
564: 'ь' => '',564: 'ь' => '',
565: 565: 
 566: 'Є' => 'YE',
 567: 'є' => 'YE',
 568: 'Ї' => 'YI',
 569: 'ї' => 'YI',
 570: 'Ґ' => 'KG',
 571: 'ґ' => 'KG',
 572: 
566: 'ð' => 'd',573: 'ð' => 'd',
567: 'Ð' => 'D',574: 'Ð' => 'D',
568: 'þ' => 'th',575: 'þ' => 'th',


punbb-1.3.1/lang/English/userlist.php punbb-1.3.4/lang/English/userlist.php
 23: 'All users'                =>    'All users', 23: 'All users'                =>    'All users',
 24: 'Perform new search'    =>    'Perform new user search', 24: 'Perform new search'    =>    'Perform new user search',
 25: 'Table summary'            =>    'List of users filtered and sorted according to the criteria (if any) you have chosen.', 25: 'Table summary'            =>    'List of users filtered and sorted according to the criteria (if any) you have chosen.',
 26: 'User list options'        =>    'User list options', 
 27: 'Perform new search'    =>    'Perform new user search', 
 28: 'Submit user search'    =>    'Submit user criteria', 26: 'Submit user search'    =>    'Submit user criteria',
 29: 'Title'                    =>    'Title', 27: 'Title'                    =>    'Title',
 30: 'Posts'                    =>    'Posts' 28: 'Posts'                    =>    'Posts'


punbb-1.3.1/login.php punbb-1.3.4/login.php
  2: /**  2: /**
  3:  * Handles logins, logouts, and password reset requests.  3:  * Handles logins, logouts, and password reset requests.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
427:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">427:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
428:                     <div class="sf-box text required">428:                     <div class="sf-box text required">
429:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_login['Password'] ?> <em><?php echo $lang_common['Required'] ?></em></span></label><br />429:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_login['Password'] ?> <em><?php echo $lang_common['Required'] ?></em></span></label><br />
430:                         <span class="fld-input"><input type="password" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_password" value="<?php echo isset($_POST['req_password']) ? ($_POST['req_password']) : '' ?>" size="35" /></span>430:                         <span class="fld-input"><input type="password" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_password" value="<?php echo isset($_POST['req_password']) ? forum_htmlencode($_POST['req_password']) : '' ?>" size="35" /></span>
431:                     </div>431:                     </div>
432:                 </div>432:                 </div>
433: <?php ($hook = get_hook('li_login_pre_remember_me_checkbox')) ? eval($hook) : null; ?>433: <?php ($hook = get_hook('li_login_pre_remember_me_checkbox')) ? eval($hook) : null; ?>


punbb-1.3.1/misc.php punbb-1.3.4/misc.php
  2: /**  2: /**
  3:  * Provides various features for forum users (ie: display rules, send emails through the forum, mark a forum as read, etc).  3:  * Provides various features for forum users (ie: display rules, send emails through the forum, mark a forum as read, etc).
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
106:     if ($forum_user['is_guest'])106:     if ($forum_user['is_guest'])
107:         message($lang_common['No permission']);107:         message($lang_common['No permission']);
108: 108: 
109:     $fid = intval($_GET['fid']);109:     $fid = isset($_GET['fid']) ? intval($_GET['fid']) : 0;
110:     if ($fid < 1)110:     if ($fid < 1)
111:         message($lang_common['Bad request']);111:         message($lang_common['Bad request']);
112: 112: 
113:     // We validate the CSRF token. If it's set in POST and we're at this point, the token is valid.113:     // We validate the CSRF token. If it's set in POST and we're at this point, the token is valid.
114:     // If it's in GET, we need to make sure it's valid.114:     // If it's in GET, we need to make sure it's valid.
115:     if (!isset($_POST['csrf_token']) && (!isset($_GET['csrf_token']) || $_GET['csrf_token'] !== generate_form_token('markforumread'.intval($_GET['fid']).$forum_user['id'])))115:     if (!isset($_POST['csrf_token']) && (!isset($_GET['csrf_token']) || $_GET['csrf_token'] !== generate_form_token('markforumread'.$fid.$forum_user['id'])))
116:         csrf_confirm_form();116:         csrf_confirm_form();
117: 117: 
118:     ($hook = get_hook('mi_markforumread_selected')) ? eval($hook) : null;118:     ($hook = get_hook('mi_markforumread_selected')) ? eval($hook) : null;
528: 528: 
529:     // We validate the CSRF token. If it's set in POST and we're at this point, the token is valid.529:     // We validate the CSRF token. If it's set in POST and we're at this point, the token is valid.
530:     // If it's in GET, we need to make sure it's valid.530:     // If it's in GET, we need to make sure it's valid.
531:     if (!isset($_POST['csrf_token']) && (!isset($_GET['csrf_token']) || $_GET['csrf_token'] !== generate_form_token('subscribe'.intval($_GET['subscribe']).$forum_user['id'])))531:     if (!isset($_POST['csrf_token']) && (!isset($_GET['csrf_token']) || $_GET['csrf_token'] !== generate_form_token('subscribe'.$topic_id.$forum_user['id'])))
532:         csrf_confirm_form();532:         csrf_confirm_form();
533: 533: 
534:     ($hook = get_hook('mi_subscribe_selected')) ? eval($hook) : null;534:     ($hook = get_hook('mi_subscribe_selected')) ? eval($hook) : null;
590: 590: 
591:     // We validate the CSRF token. If it's set in POST and we're at this point, the token is valid.591:     // We validate the CSRF token. If it's set in POST and we're at this point, the token is valid.
592:     // If it's in GET, we need to make sure it's valid.592:     // If it's in GET, we need to make sure it's valid.
593:     if (!isset($_POST['csrf_token']) && (!isset($_GET['csrf_token']) || $_GET['csrf_token'] !== generate_form_token('unsubscribe'.intval($_GET['unsubscribe']).$forum_user['id'])))593:     if (!isset($_POST['csrf_token']) && (!isset($_GET['csrf_token']) || $_GET['csrf_token'] !== generate_form_token('unsubscribe'.$topic_id.$forum_user['id'])))
594:         csrf_confirm_form();594:         csrf_confirm_form();
595: 595: 
596:     ($hook = get_hook('mi_unsubscribe_selected')) ? eval($hook) : null;596:     ($hook = get_hook('mi_unsubscribe_selected')) ? eval($hook) : null;


punbb-1.3.1/moderate.php punbb-1.3.4/moderate.php
  2: /**  2: /**
  3:  * Provides various mass-moderation tools to moderators.  3:  * Provides various mass-moderation tools to moderators.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
373: <?php ($hook = get_hook('mr_confirm_split_posts_pre_subject')) ? eval($hook) : null; ?>373: <?php ($hook = get_hook('mr_confirm_split_posts_pre_subject')) ? eval($hook) : null; ?>
374:                     <div class="sf-box text required">374:                     <div class="sf-box text required">
375:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_misc['New subject'] ?> <em><?php echo $lang_common['Required'] ?></em></span></label><br />375:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_misc['New subject'] ?> <em><?php echo $lang_common['Required'] ?></em></span></label><br />
376:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="new_subject" value="" size="80" maxlength="70" /></span>376:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="new_subject" value="" size="70" maxlength="70" /></span>
377:                     </div>377:                     </div>
378: <?php ($hook = get_hook('mr_confirm_split_posts_pre_confirm_checkbox')) ? eval($hook) : null; ?>378: <?php ($hook = get_hook('mr_confirm_split_posts_pre_confirm_checkbox')) ? eval($hook) : null; ?>
379:                     <div class="sf-box checkbox">379:                     <div class="sf-box checkbox">
416: 416: 
417:     // Determine the post offset (based on $_GET['p'])417:     // Determine the post offset (based on $_GET['p'])
418:     $forum_page['num_pages'] = ceil(($cur_topic['num_replies'] + 1) / $forum_user['disp_posts']);418:     $forum_page['num_pages'] = ceil(($cur_topic['num_replies'] + 1) / $forum_user['disp_posts']);
419:     $forum_page['page'] = (!isset($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $forum_page['num_pages']) ? 1 : intval($_GET['p']);419:     $forum_page['page'] = (!isset($_GET['p']) || !is_numeric($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $forum_page['num_pages']) ? 1 : intval($_GET['p']);
420:     $forum_page['start_from'] = $forum_user['disp_posts'] * ($forum_page['page'] - 1);420:     $forum_page['start_from'] = $forum_user['disp_posts'] * ($forum_page['page'] - 1);
421:     $forum_page['finish_at'] = min(($forum_page['start_from'] + $forum_user['disp_posts']), ($cur_topic['num_replies'] + 1));421:     $forum_page['finish_at'] = min(($forum_page['start_from'] + $forum_user['disp_posts']), ($cur_topic['num_replies'] + 1));
422:     $forum_page['items_info'] = generate_items_info($lang_misc['Posts'], ($forum_page['start_from'] + 1), ($cur_topic['num_replies'] + 1));422:     $forum_page['items_info'] = generate_items_info($lang_misc['Posts'], ($forum_page['start_from'] + 1), ($cur_topic['num_replies'] + 1));
521: 521: 
522:         $forum_page['post_ident'] = array();522:         $forum_page['post_ident'] = array();
523:         $forum_page['message'] = array();523:         $forum_page['message'] = array();
524:         $forum_page['author_title'] = ''; 
525:         $forum_page['user_ident'] = array();524:         $forum_page['user_ident'] = array();
526:         $cur_post['username'] = $cur_post['poster'];525:         $cur_post['username'] = $cur_post['poster'];
527: 526: 
1039:             </div>1038:             </div>
1040: <?php ($hook = get_hook('mr_merge_topics_pre_fieldset')) ? eval($hook) : null; ?>1039: <?php ($hook = get_hook('mr_merge_topics_pre_fieldset')) ? eval($hook) : null; ?>
1041:             <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">1040:             <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">
1042:                 <legend class="group-legend"><strong><?php echo $lang_misc['Merge topic'] ?></strong></legend>1041:                 <legend class="group-legend"><strong><?php echo $lang_misc['Merge topics'] ?></strong></legend>
1043: <?php ($hook = get_hook('mr_merge_topics_pre_redirect_checkbox')) ? eval($hook) : null; ?>1042: <?php ($hook = get_hook('mr_merge_topics_pre_redirect_checkbox')) ? eval($hook) : null; ?>
1044:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">1043:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
1045:                     <div class="sf-box checkbox">1044:                     <div class="sf-box checkbox">
1424: // Determine the topic offset (based on $_GET['p'])1423: // Determine the topic offset (based on $_GET['p'])
1425: $forum_page['num_pages'] = ceil($cur_forum['num_topics'] / $forum_user['disp_topics']);1424: $forum_page['num_pages'] = ceil($cur_forum['num_topics'] / $forum_user['disp_topics']);
1426: 1425: 
1427: $forum_page['page'] = (!isset($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $forum_page['num_pages']) ? 1 : $_GET['p'];1426: $forum_page['page'] = (!isset($_GET['p']) || !is_numeric($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $forum_page['num_pages']) ? 1 : $_GET['p'];
1428: $forum_page['start_from'] = $forum_user['disp_topics'] * ($forum_page['page'] - 1);1427: $forum_page['start_from'] = $forum_user['disp_topics'] * ($forum_page['page'] - 1);
1429: $forum_page['finish_at'] = min(($forum_page['start_from'] + $forum_user['disp_topics']), ($cur_forum['num_topics']));1428: $forum_page['finish_at'] = min(($forum_page['start_from'] + $forum_user['disp_topics']), ($cur_forum['num_topics']));
1430: $forum_page['items_info'] = generate_items_info($lang_misc['Topics'], ($forum_page['start_from'] + 1), $cur_forum['num_topics']);1429: $forum_page['items_info'] = generate_items_info($lang_misc['Topics'], ($forum_page['start_from'] + 1), $cur_forum['num_topics']);
1535:         ++$forum_page['item_count'];1534:         ++$forum_page['item_count'];
1536: 1535: 
1537:         // Start from scratch1536:         // Start from scratch
1538:         $forum_page['item_subject'] = $forum_page['item_body'] = $forum_page['item_status'] = $forum_page['item_nav'] = $forum_page['item_title'] = $forum_page['item_subject_status'] = array();1537:         $forum_page['item_subject'] = $forum_page['item_body'] = $forum_page['item_status'] = $forum_page['item_nav'] = $forum_page['item_title'] = $forum_page['item_title_status'] = array();
1539:         $forum_page['item_indicator'] = ''; 
1540: 1538: 
1541:         if ($forum_config['o_censoring'] == '1')1539:         if ($forum_config['o_censoring'] == '1')
1542:             $cur_topic['subject'] = censor_words($cur_topic['subject']);1540:             $cur_topic['subject'] = censor_words($cur_topic['subject']);
1543: 1541: 
 1542:         $forum_page['item_subject']['starter'] = '<span class="item-starter">'.sprintf($lang_forum['Topic starter'], forum_htmlencode($cur_topic['poster'])).'</span>';
 1543: 
1544:         if ($cur_topic['moved_to'] != null)1544:         if ($cur_topic['moved_to'] != null)
1545:         {1545:         {
1546:             $forum_page['item_status']['moved'] = 'moved';1546:             $forum_page['item_status']['moved'] = 'moved';
1547:             $forum_page['item_title']['link'] = '<a href="'.forum_link($forum_url['topic'], array($cur_topic['moved_to'], sef_friendly($cur_topic['subject']))).'"><span>'.$lang_forum['Moved'].'</span> '.forum_htmlencode($cur_topic['subject']).'</a>';1547:             $forum_page['item_title']['link'] = '<span class="item-status"><em class="moved">'.sprintf($lang_forum['Item status'], $lang_forum['Moved']).'</em></span> <a href="'.forum_link($forum_url['topic'], array($cur_topic['moved_to'], sef_friendly($cur_topic['subject']))).'">'.forum_htmlencode($cur_topic['subject']).'</a>';
1548: 1548: 
1549:             // Combine everything to produce the Topic heading1549:             // Combine everything to produce the Topic heading
1550:             $forum_page['item_body']['subject']['title'] = '<h3 class="hn"><span class="item-num">'.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span> <strong>'.$forum_page['item_title']['link'].'</strong></h3>';1550:             $forum_page['item_body']['subject']['title'] = '<h3 class="hn"><span class="item-num">'.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span> <strong>'.$forum_page['item_title']['link'].'</strong></h3>';
1573:                 $forum_page['item_status']['posted'] = 'posted';1573:                 $forum_page['item_status']['posted'] = 'posted';
1574:             }1574:             }
1575: 1575: 
 1576:             if ($cur_topic['sticky'] == '1')
 1577:             {
 1578:                 $forum_page['item_title_status']['sticky'] = '<em class="sticky">'.$lang_forum['Sticky'].'</em>';
 1579:                 $forum_page['item_status']['sticky'] = 'sticky';
 1580:             }
 1581: 
 1582:             if ($cur_topic['closed'] == '1')
 1583:             {
 1584:                 $forum_page['item_title_status']['closed'] = '<em class="closed">'.$lang_forum['Closed'].'</em>';
 1585:                 $forum_page['item_status']['closed'] = 'closed';
 1586:             }
 1587: 
 1588:             ($hook = get_hook('mr_topic_loop_normal_topic_pre_item_title_status_merge')) ? eval($hook) : null;
 1589: 
 1590:             if (!empty($forum_page['item_title_status']))
 1591:                 $forum_page['item_title']['status'] = '<span class="item-status">'.sprintf($lang_forum['Item status'], implode(', ', $forum_page['item_title_status'])).'</span>';
 1592: 
1576:             $forum_page['item_title']['link'] = '<strong><a href="'.forum_link($forum_url['topic'], array($cur_topic['id'], sef_friendly($cur_topic['subject']))).'">'.forum_htmlencode($cur_topic['subject']).'</a></strong>';1593:             $forum_page['item_title']['link'] = '<strong><a href="'.forum_link($forum_url['topic'], array($cur_topic['id'], sef_friendly($cur_topic['subject']))).'">'.forum_htmlencode($cur_topic['subject']).'</a></strong>';
1577: 1594: 
 1595:             ($hook = get_hook('mr_topic_loop_normal_topic_pre_item_title_merge')) ? eval($hook) : null;
 1596: 
 1597:             $forum_page['item_body']['subject']['title'] = '<h3 class="hn"><span class="item-num">'.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span> '.implode(' ', $forum_page['item_title']).'</h3>';
 1598: 
 1599: 
 1600:             if (empty($forum_page['item_status']))
 1601:                 $forum_page['item_status']['normal'] = 'normal';
 1602: 
1578:             $forum_page['item_pages'] = ceil(($cur_topic['num_replies'] + 1) / $forum_user['disp_posts']);1603:             $forum_page['item_pages'] = ceil(($cur_topic['num_replies'] + 1) / $forum_user['disp_posts']);
1579: 1604: 
1580:             if ($forum_page['item_pages'] > 1)1605:             if ($forum_page['item_pages'] > 1)
1587:                 $forum_page['item_status']['new'] = 'new';1612:                 $forum_page['item_status']['new'] = 'new';
1588:             }1613:             }
1589: 1614: 
1590:             if (!empty($forum_page['item_nav']))1615:             ($hook = get_hook('mr_topic_loop_normal_topic_pre_item_nav_merge')) ? eval($hook) : null;
1591:                 $forum_page['item_title']['nav'] = '<span class="item-nav">'.sprintf($lang_forum['Topic navigation'], implode('&#160;&#160;', $forum_page['item_nav'])).'</span>'; 
1592:  
1593:             ($hook = get_hook('mr_topic_actions_moved_row_pre_item_title_merge')) ? eval($hook) : null; 
1594: 1616: 
1595:             $forum_page['item_body']['subject']['title'] = '<h3 class="hn"><span class="item-num">'.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span> '.implode(' ', $forum_page['item_title']).'</h3>';1617:             if (!empty($forum_page['item_nav']))
 1618:                 $forum_page['item_subject']['nav'] = '<span class="item-nav">'.sprintf($lang_forum['Topic navigation'], implode('&#160;&#160;', $forum_page['item_nav'])).'</span>';
1596: 1619: 
1597:             // Assemble the Topic subject1620:             // Assemble the Topic subject
1598: 1621: 
1599:             if ($cur_topic['sticky'] == '1') 
1600:             { 
1601:                 $forum_page['item_subject_status']['sticky'] = $lang_forum['Sticky']; 
1602:                 $forum_page['item_status']['sticky'] = 'sticky'; 
1603:             } 
1604:  
1605:             if ($cur_topic['closed'] == '1') 
1606:             { 
1607:                 $forum_page['item_subject_status']['closed'] = $lang_forum['Closed']; 
1608:                 $forum_page['item_status']['closed'] = 'closed'; 
1609:             } 
1610:  
1611:             ($hook = get_hook('mr_topic_actions_moved_row_pre_item_subject_status_merge')) ? eval($hook) : null; 
1612:  
1613:             if (!empty($forum_page['item_subject_status'])) 
1614:                 $forum_page['item_subject']['status'] = '<span class="item-status">'.sprintf($lang_forum['Item status'], implode(' ', $forum_page['item_subject_status'])).'</span>'; 
1615:  
1616:             if (empty($forum_page['item_status'])) 
1617:                 $forum_page['item_status']['normal'] = 'normal'; 
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>';1622:             $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: 1623: 
1621:             if ($forum_config['o_topic_views'] == '1')1624:             if ($forum_config['o_topic_views'] == '1')
1627:             ($hook = get_hook('mr_topic_actions_normal_row_pre_output')) ? eval($hook) : null;1630:             ($hook = get_hook('mr_topic_actions_normal_row_pre_output')) ? eval($hook) : null;
1628:         }1631:         }
1629: 1632: 
1630:         $forum_page['item_subject']['starter'] = '<span class="item-starter">'.sprintf($lang_forum['Topic starter'], '<cite>'.forum_htmlencode($cur_topic['poster']).'</cite>').'</span>';1633:         $forum_page['item_body']['subject']['desc'] = '<p>'.implode(' ', $forum_page['item_subject']).'</p>';
1631:         $forum_page['item_body']['subject']['desc'] = implode(' ', $forum_page['item_subject']);1634: 
 1635:         ($hook = get_hook('mr_topic_actions_row_pre_item_status_merge')) ? eval($hook) : null;
1632: 1636: 
1633:         $forum_page['item_style'] = (($forum_page['item_count'] % 2 != 0) ? ' odd' : ' even').(($forum_page['item_count'] == 1) ? ' main-first-item' : '').((!empty($forum_page['item_status'])) ? ' '.implode(' ', $forum_page['item_status']) : '');1637:         $forum_page['item_style'] = (($forum_page['item_count'] % 2 != 0) ? ' odd' : ' even').(($forum_page['item_count'] == 1) ? ' main-first-item' : '').((!empty($forum_page['item_status'])) ? ' '.implode(' ', $forum_page['item_status']) : '');
1634: 1638: 


punbb-1.3.1/post.php punbb-1.3.4/post.php
  2: /**  2: /**
  3:  * Adds a new post to the specified topic or a new topic to the specified forum.  3:  * Adds a new post to the specified topic or a new topic to the specified forum.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
153: 153: 
154:             if (!is_valid_email($email))154:             if (!is_valid_email($email))
155:                 $errors[] = $lang_post['Invalid e-mail'];155:                 $errors[] = $lang_post['Invalid e-mail'];
 156: 
 157:             if (is_banned_email($email))
 158:                 $errors[] = $lang_profile['Banned e-mail'];
156:         }159:         }
157:     }160:     }
158: 161: 
262: 265: 
263:     list($q_poster, $q_message) = $forum_db->fetch_row($result);266:     list($q_poster, $q_message) = $forum_db->fetch_row($result);
264: 267: 
 268:     ($hook = get_hook('po_modify_quote_info')) ? eval($hook) : null;
 269: 
265:     if ($forum_config['p_message_bbcode'] == '1')270:     if ($forum_config['p_message_bbcode'] == '1')
266:     {271:     {
267:         // If username contains a square bracket, we add "" or '' around it (so we know when it starts and ends)272:         // If username contains a square bracket, we add "" or '' around it (so we know when it starts and ends)
462:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">467:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
463:                     <div class="sf-box text required longtext">468:                     <div class="sf-box text required longtext">
464:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_post['Topic subject'] ?> <em><?php echo $lang_common['Required'] ?></em></span></label><br />469:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_post['Topic subject'] ?> <em><?php echo $lang_common['Required'] ?></em></span></label><br />
465:                         <span class="fld-input"><input id="fld<?php echo $forum_page['fld_count'] ?>" type="text" name="req_subject" value="<?php if (isset($_POST['req_subject'])) echo forum_htmlencode($subject); ?>" size="80" maxlength="70" /></span>470:                         <span class="fld-input"><input id="fld<?php echo $forum_page['fld_count'] ?>" type="text" name="req_subject" value="<?php if (isset($_POST['req_subject'])) echo forum_htmlencode($subject); ?>" size="70" maxlength="70" /></span>
466:                     </div>471:                     </div>
467:                 </div>472:                 </div>
468: <?php473: <?php
543:     if (!defined('FORUM_PARSER_LOADED'))548:     if (!defined('FORUM_PARSER_LOADED'))
544:         require FORUM_ROOT.'include/parser.php';549:         require FORUM_ROOT.'include/parser.php';
545: 550: 
 551:     // Get the amount of posts in the topic
 552:     $query = array(
 553:         'SELECT'    => 'count(p.id)',
 554:         'FROM'        => 'posts AS p',
 555:         'WHERE'        => 'topic_id='.$tid
 556:     );
 557: 
 558:     ($hook = get_hook('po_topic_review_qr_get_post_count')) ? eval($hook) : null;
 559:     $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
 560:     $forum_page['total_post_count'] = $forum_db->result($result, 0);
 561: 
546:     // Get posts to display in topic review562:     // Get posts to display in topic review
547:     $query = array(563:     $query = array(
548:         'SELECT'    => 'p.id, p.poster, p.message, p.hide_smilies, p.posted',564:         'SELECT'    => 'p.id, p.poster, p.message, p.hide_smilies, p.posted',
549:         'FROM'        => 'posts AS p',565:         'FROM'        => 'posts AS p',
550:         'WHERE'        => 'topic_id='.$tid,566:         'WHERE'        => 'topic_id='.$tid,
551:         'ORDER BY'    =>    'id DESC',567:         'ORDER BY'    => 'id DESC',
552:         'LIMIT'        =>    $forum_config['o_topic_review']568:         'LIMIT'        => $forum_config['o_topic_review']
553:     );569:     );
554: 570: 
555:     ($hook = get_hook('po_topic_review_qr_get_topic_review_posts')) ? eval($hook) : null;571:     ($hook = get_hook('po_topic_review_qr_get_topic_review_posts')) ? eval($hook) : null;
564: 580: 
565:     $forum_page['item_count'] = 0;581:     $forum_page['item_count'] = 0;
566:     $forum_page['item_total'] = $forum_db->num_rows($result);582:     $forum_page['item_total'] = $forum_db->num_rows($result);
567:     $forum_page['author_title'] = ''; 
568: 583: 
569:     while ($cur_post = $forum_db->fetch_assoc($result))584:     while ($cur_post = $forum_db->fetch_assoc($result))
570:     {585:     {
571:         ++$forum_page['item_count'];586:         ++$forum_page['item_count'];
572: 587: 
573:         // Generate the post heading 
574:         $forum_page['post_ident'] = array( 
575:             'num'    => '<span class="post-num">'.forum_number_format($forum_page['item_count']).'</span>', 
576:             'link'    => '<span class="post-link">'.sprintf($lang_post['Post posted'], '<a class="permalink" rel="bookmark" title="'.$lang_post['Permalink post'].'" href="'.forum_link($forum_url['post'], $cur_post['id']).'">'.format_time($cur_post['posted']).'</a>').'</span>' 
577:         ); 
578:  
579:         ($hook = get_hook('po_topic_review_pre_item_indent_merge')) ? eval($hook) : null; 
580:  
581:         $forum_page['message'] = parse_message($cur_post['message'], $cur_post['hide_smilies']);588:         $forum_page['message'] = parse_message($cur_post['message'], $cur_post['hide_smilies']);
582: 589: 
583:         // Generate the post heading590:         // Generate the post heading
584:         $forum_page['post_ident'] = array();591:         $forum_page['post_ident'] = array();
585:         $forum_page['post_ident']['num'] = '<span class="post-num">'.forum_number_format($forum_page['item_count']).'</span>';592:         $forum_page['post_ident']['num'] = '<span class="post-num">'.forum_number_format($forum_page['total_post_count'] - $forum_page['item_count'] + 1).'</span>';
586:         $forum_page['post_ident']['byline'] = '<span class="post-byline">'.sprintf($lang_post['Post byline'], '<strong>'.forum_htmlencode($cur_post['poster']).'</strong>').'</span>';593:         $forum_page['post_ident']['byline'] = '<span class="post-byline">'.sprintf($lang_post['Post byline'], '<strong>'.forum_htmlencode($cur_post['poster']).'</strong>').'</span>';
587:         $forum_page['post_ident']['link'] = '<span class="post-link"><a class="permalink" rel="bookmark" title="'.$lang_post['Permalink post'].'" href="'.forum_link($forum_url['post'], $cur_post['id']).'">'.format_time($cur_post['posted']).'</a></span>';594:         $forum_page['post_ident']['link'] = '<span class="post-link"><a class="permalink" rel="bookmark" title="'.$lang_post['Permalink post'].'" href="'.forum_link($forum_url['post'], $cur_post['id']).'">'.format_time($cur_post['posted']).'</a></span>';
588: 595: 


punbb-1.3.1/profile.php punbb-1.3.4/profile.php
  2: /**  2: /**
  3:  * Allows users to view and edit their details.  3:  * Allows users to view and edit their details.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
176:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">176:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
177:                     <div class="sf-box text required">177:                     <div class="sf-box text required">
178:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['New password'] ?> <em><?php echo $lang_common['Required'] ?></em></span> <small><?php echo $lang_profile['Password help'] ?></small></label><br />178:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['New password'] ?> <em><?php echo $lang_common['Required'] ?></em></span> <small><?php echo $lang_profile['Password help'] ?></small></label><br />
179:                         <span class="fld-input"><input type="password" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_new_password1" size="35" value="<?php echo(isset($_POST['req_new_password1']) ? ($_POST['req_new_password1']) : ''); ?>"/></span><br />179:                         <span class="fld-input"><input type="password" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_new_password1" size="35" value="<?php echo(isset($_POST['req_new_password1']) ? forum_htmlencode($_POST['req_new_password1']) : ''); ?>"/></span><br />
180:                     </div>180:                     </div>
181:                 </div>181:                 </div>
182: <?php ($hook = get_hook('pf_change_pass_key_pre_new_password_confirm')) ? eval($hook) : null; ?>182: <?php ($hook = get_hook('pf_change_pass_key_pre_new_password_confirm')) ? eval($hook) : null; ?>
183:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">183:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
184:                     <div class="sf-box text required">184:                     <div class="sf-box text required">
185:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Confirm new password'] ?> <em><?php echo $lang_common['Required'] ?></em></span> <small><?php echo $lang_profile['Confirm password help'] ?></small></label><br />185:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Confirm new password'] ?> <em><?php echo $lang_common['Required'] ?></em></span> <small><?php echo $lang_profile['Confirm password help'] ?></small></label><br />
186:                         <span class="fld-input"><input type="password" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_new_password2" size="35" value="<?php echo(isset($_POST['req_new_password2']) ? ($_POST['req_new_password2']) : ''); ?>"/></span><br />186:                         <span class="fld-input"><input type="password" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_new_password2" size="35" value="<?php echo(isset($_POST['req_new_password2']) ? forum_htmlencode($_POST['req_new_password2']) : ''); ?>"/></span><br />
187:                     </div>187:                     </div>
188:                 </div>188:                 </div>
189: <?php ($hook = get_hook('pf_change_pass_key_pre_fieldset_end')) ? eval($hook) : null; ?>189: <?php ($hook = get_hook('pf_change_pass_key_pre_fieldset_end')) ? eval($hook) : null; ?>
337:                 <legend class="group-legend"><strong><?php echo $lang_common['Required information'] ?></strong></legend>337:                 <legend class="group-legend"><strong><?php echo $lang_common['Required information'] ?></strong></legend>
338: <?php ($hook = get_hook('pf_change_pass_normal_pre_old_password')) ? eval($hook) : null; ?>338: <?php ($hook = get_hook('pf_change_pass_normal_pre_old_password')) ? eval($hook) : null; ?>
339: <?php if (!$forum_user['is_admmod']): ?>339: <?php if (!$forum_user['is_admmod']): ?>
340:                                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">340:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
341:                     <div class="sf-box text required">341:                     <div class="sf-box text required">
342:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Old password'] ?> <em><?php echo $lang_common['Required'] ?></em></span> <small><?php echo $lang_profile['Old password help'] ?></small></label><br />342:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Old password'] ?> <em><?php echo $lang_common['Required'] ?></em></span> <small><?php echo $lang_profile['Old password help'] ?></small></label><br />
343:                         <span class="fld-input"><input type="password" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_old_password" size="35" value="<?php echo(isset($_POST['req_old_password']) ? ($_POST['req_old_password']) : ''); ?>"/></span>343:                         <span class="fld-input"><input type="password" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_old_password" size="35" value="<?php echo(isset($_POST['req_old_password']) ? forum_htmlencode($_POST['req_old_password']) : ''); ?>"/></span>
344:                     </div>344:                     </div>
345:                 </div>345:                 </div>
346: <?php endif; ($hook = get_hook('pf_change_pass_normal_pre_new_password')) ? eval($hook) : null; ?>346: <?php endif; ($hook = get_hook('pf_change_pass_normal_pre_new_password')) ? eval($hook) : null; ?>
347:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">347:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
348:                     <div class="sf-box text required">348:                     <div class="sf-box text required">
349:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['New password'] ?> <em><?php echo $lang_common['Required'] ?></em></span> <small><?php echo $lang_profile['Password help'] ?></small></label><br />349:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['New password'] ?> <em><?php echo $lang_common['Required'] ?></em></span> <small><?php echo $lang_profile['Password help'] ?></small></label><br />
350:                         <span class="fld-input"><input type="password" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_new_password1" size="35" value="<?php echo(isset($_POST['req_new_password1']) ? ($_POST['req_new_password1']) : ''); ?>"/></span><br />350:                         <span class="fld-input"><input type="password" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_new_password1" size="35" value="<?php echo(isset($_POST['req_new_password1']) ? forum_htmlencode($_POST['req_new_password1']) : ''); ?>"/></span><br />
351:                     </div>351:                     </div>
352:                 </div>352:                 </div>
353: <?php ($hook = get_hook('pf_change_pass_normal_pre_new_password_confirm')) ? eval($hook) : null; ?>353: <?php ($hook = get_hook('pf_change_pass_normal_pre_new_password_confirm')) ? eval($hook) : null; ?>
354:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">354:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
355:                     <div class="sf-box text required">355:                     <div class="sf-box text required">
356:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Confirm new password'] ?> <em><?php echo $lang_common['Required'] ?></em></span> <small><?php echo $lang_profile['Confirm password help'] ?></small></label><br />356:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Confirm new password'] ?> <em><?php echo $lang_common['Required'] ?></em></span> <small><?php echo $lang_profile['Confirm password help'] ?></small></label><br />
357:                         <span class="fld-input"><input type="password" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_new_password2" size="35" value="<?php echo(isset($_POST['req_new_password2']) ? ($_POST['req_new_password2']) : ''); ?>"/></span><br />357:                         <span class="fld-input"><input type="password" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_new_password2" size="35" value="<?php echo(isset($_POST['req_new_password2']) ? forum_htmlencode($_POST['req_new_password2']) : ''); ?>"/></span><br />
358:                     </div>358:                     </div>
359:                 </div>359:                 </div>
360: <?php ($hook = get_hook('pf_change_pass_normal_pre_fieldset_end')) ? eval($hook) : null; ?>360: <?php ($hook = get_hook('pf_change_pass_normal_pre_fieldset_end')) ? eval($hook) : null; ?>
430:         if (!is_valid_email($new_email))430:         if (!is_valid_email($new_email))
431:             $errors[] = $lang_common['Invalid e-mail'];431:             $errors[] = $lang_common['Invalid e-mail'];
432: 432: 
433:         // Check it it's a banned e-mail address433:         // Check if it's a banned e-mail address
434:         if (is_banned_email($new_email))434:         if (is_banned_email($new_email))
435:         {435:         {
436:             ($hook = get_hook('pf_change_email_normal_banned_email')) ? eval($hook) : null;436:             ($hook = get_hook('pf_change_email_normal_banned_email')) ? eval($hook) : null;
476:         // Did everything go according to plan?476:         // Did everything go according to plan?
477:         if (empty($errors))477:         if (empty($errors))
478:         {478:         {
 479:             if ($forum_config['o_regs_verify'] != '1')
 480:             {
 481:                 // We have no confirmed e-mail so we change e-mail right now
 482:                 $query = array(
 483:                     'UPDATE'    => 'users',
 484:                     'SET'        => 'email=\''.$forum_db->escape($new_email).'\'',
 485:                     'WHERE'        => 'id='.$id
 486:                 );
 487: 
 488:                 ($hook = get_hook('pf_change_email_key_qr_update_email')) ? eval($hook) : null;
 489:                 $forum_db->query_build($query) or error(__FILE__, __LINE__);
 490: 
 491:                 redirect(forum_link($forum_url['profile_about'], $id), $lang_profile['E-mail updated redirect']);
 492:             }
 493: 
 494:             // We have a confirmed e-mail so we going to send an activation link
 495: 
479:             $new_email_key = random_key(8, true);496:             $new_email_key = random_key(8, true);
480: 497: 
481:             // Save new e-mail and activation key498:             // Save new e-mail and activation key
593:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">610:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
594:                     <div class="sf-box text required">611:                     <div class="sf-box text required">
595:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Password'] ?> <em><?php echo $lang_common['Required'] ?></em></span></label><br />612:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Password'] ?> <em><?php echo $lang_common['Required'] ?></em></span></label><br />
596:                         <span class="fld-input"><input type="password" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_password" size="25" value="<?php echo(isset($_POST['req_password']) ? ($_POST['req_password']) : ''); ?>"/></span>613:                         <span class="fld-input"><input type="password" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_password" size="25" value="<?php echo(isset($_POST['req_password']) ? forum_htmlencode($_POST['req_password']) : ''); ?>"/></span>
597:                     </div>614:                     </div>
598:                 </div>615:                 </div>
599: <?php ($hook = get_hook('pf_change_email_normal_pre_fieldset_end')) ? eval($hook) : null; ?>616: <?php ($hook = get_hook('pf_change_email_normal_pre_fieldset_end')) ? eval($hook) : null; ?>
889:                     $form['num_posts'] = intval($_POST['num_posts']);906:                     $form['num_posts'] = intval($_POST['num_posts']);
890:             }907:             }
891: 908: 
892:             if ($forum_config['o_regs_verify'] == '0' || $forum_user['is_admmod'])909:             if ($forum_user['is_admmod'])
893:             {910:             {
894:                 if (!defined('FORUM_EMAIL_FUNCTIONS_LOADED'))911:                 if (!defined('FORUM_EMAIL_FUNCTIONS_LOADED'))
895:                     require FORUM_ROOT.'include/email.php';912:                     require FORUM_ROOT.'include/email.php';
1284:     $forum_user['g_id'] != FORUM_ADMIN &&1301:     $forum_user['g_id'] != FORUM_ADMIN &&
1285:     ($forum_user['g_moderator'] != '1' || $forum_user['g_mod_edit_users'] == '0' || $user['g_id'] == FORUM_ADMIN || $user['g_moderator'] == '1'))1302:     ($forum_user['g_moderator'] != '1' || $forum_user['g_mod_edit_users'] == '0' || $user['g_id'] == FORUM_ADMIN || $user['g_moderator'] == '1'))
1286: {1303: {
1287:     ($hook = get_hook('pf_view_details_selected')) ? eval($hook) : null; 
1288:  
1289:     // Setup user identification1304:     // Setup user identification
1290:     $forum_page['user_ident'] = array();1305:     $forum_page['user_ident'] = array();
1291: 1306: 
1292:     ($hook = get_hook('pf_view_details_selected')) ? eval($hook) : null;1307:     ($hook = get_hook('pf_view_details_selected')) ? eval($hook) : null;
1293: 1308: 
1294:     $forum_page['user_ident']['username'] = '<li class="username'.(($user['realname'] =='') ? ' fn nickname' :  ' nickname').'"><strong>'.forum_htmlencode($user['username']).'</strong></li>';1309:     $forum_page['user_ident']['username'] = '<li class="username'.(($user['realname'] =='') ? ' fn nickname' :  ' nickname').'"><strong>'.forum_htmlencode($user['username']).'</strong></li>';
1295:     $forum_page['user_ident']['usertitle'] = '<li class="usertitle"><span>'.get_title($user).'</span></li>'; 
1296: 1310: 
1297:     if ($forum_config['o_avatars'] == '1')1311:     if ($forum_config['o_avatars'] == '1')
1298:     {1312:     {
1302:             $forum_page['user_ident']['avatar'] = '<li class="useravatar">'.$forum_page['avatar_markup'].'</li>';1316:             $forum_page['user_ident']['avatar'] = '<li class="useravatar">'.$forum_page['avatar_markup'].'</li>';
1303:     }1317:     }
1304: 1318: 
 1319:     $forum_page['user_ident']['usertitle'] = '<li class="usertitle"><span>'.get_title($user).'</span></li>';
 1320: 
1305:     // Setup user information1321:     // Setup user information
1306:     $forum_page['user_info'] = array();1322:     $forum_page['user_info'] = array();
1307: 1323: 
1407:                     </ul>1423:                     </ul>
1408:                 </div>1424:                 </div>
1409:             </div>1425:             </div>
1410: <?php ($hook = get_hook('pf_view_details_pre_user_activity_info')) ? eval($hook) : null; ?>1426: <?php endif; ($hook = get_hook('pf_view_details_pre_user_activity_info')) ? eval($hook) : null; ?>
1411: <?php endif; if (!empty($forum_page['user_activity'])): ?>1427: <?php if (!empty($forum_page['user_activity'])): ?>
1412:             <div class="ct-set data-set set<?php echo ++$forum_page['item_count'] ?>">1428:             <div class="ct-set data-set set<?php echo ++$forum_page['item_count'] ?>">
1413:                 <div class="ct-box data-box">1429:                 <div class="ct-box data-box">
1414:                     <h3 class="ct-legend hn"><span><?php echo $lang_profile['Posts and topics'] ?></span></h3>1430:                     <h3 class="ct-legend hn"><span><?php echo $lang_profile['Posts and topics'] ?></span></h3>
1417:                     </ul>1433:                     </ul>
1418:                 </div>1434:                 </div>
1419:             </div>1435:             </div>
1420: <?php ($hook = get_hook('pf_view_details_pre_user_sig_info')) ? eval($hook) : null; ?>1436: <?php endif; ($hook = get_hook('pf_view_details_pre_user_sig_info')) ? eval($hook) : null; ?>
1421: <?php endif; if (isset($forum_page['sig_demo'])): ?>1437: <?php if (isset($forum_page['sig_demo'])): ?>
1422:             <div class="ct-set data-set set<?php echo ++$forum_page['item_count'] ?>">1438:             <div class="ct-set data-set set<?php echo ++$forum_page['item_count'] ?>">
1423:                 <div class="ct-box data-box">1439:                 <div class="ct-box data-box">
1424:                     <h3 class="ct-legend hn"><span><?php echo $lang_profile['Current signature'] ?></span></h3>1440:                     <h3 class="ct-legend hn"><span><?php echo $lang_profile['Current signature'] ?></span></h3>
1486:         ($hook = get_hook('pf_change_details_about_selected')) ? eval($hook) : null;1502:         ($hook = get_hook('pf_change_details_about_selected')) ? eval($hook) : null;
1487: 1503: 
1488:         $forum_page['user_ident']['username'] = '<li class="username'.(($user['realname'] =='') ? ' fn nickname' :  ' nickname').'"><strong>'.forum_htmlencode($user['username']).'</strong></li>';1504:         $forum_page['user_ident']['username'] = '<li class="username'.(($user['realname'] =='') ? ' fn nickname' :  ' nickname').'"><strong>'.forum_htmlencode($user['username']).'</strong></li>';
1489:         $forum_page['user_ident']['usertitle'] = '<li class="usertitle"><span>'.get_title($user).'</span></li>'; 
1490: 1505: 
1491:         if ($forum_config['o_avatars'] == '1')1506:         if ($forum_config['o_avatars'] == '1')
1492:         {1507:         {
1496:                 $forum_page['user_ident']['avatar'] = '<li class="useravatar">'.$forum_page['avatar_markup'].'</li>';1511:                 $forum_page['user_ident']['avatar'] = '<li class="useravatar">'.$forum_page['avatar_markup'].'</li>';
1497:         }1512:         }
1498: 1513: 
 1514:         $forum_page['user_ident']['usertitle'] = '<li class="usertitle"><span>'.get_title($user).'</span></li>';
 1515: 
1499:         // Create array for private information1516:         // Create array for private information
1500:         $forum_page['user_private'] = array();1517:         $forum_page['user_private'] = array();
1501: 1518: 
1549: 1566: 
1550:         // Setup user messaging1567:         // Setup user messaging
1551:         if ($user['jabber'] !='')1568:         if ($user['jabber'] !='')
1552:             $forum_page['user_contact']['jabber'] = '<li><span><strong>'.$lang_profile['Jabber'].':</strong> '.forum_htmlencode(($forum_config['o_censoring'] == '1') ? censor_words($user['jabber']) : $user['jabber']).'</span></li>';1569:             $forum_page['user_contact']['jabber'] = '<li><span>'.$lang_profile['Jabber'].': <strong>'.forum_htmlencode(($forum_config['o_censoring'] == '1') ? censor_words($user['jabber']) : $user['jabber']).'</strong></span></li>';
1553:         if ($user['icq'] !='')1570:         if ($user['icq'] !='')
1554:             $forum_page['user_contact']['icq'] = '<li><span><strong>'.$lang_profile['ICQ'].':</strong> '.forum_htmlencode($user['icq']).'</span></li>';1571:             $forum_page['user_contact']['icq'] = '<li><span>'.$lang_profile['ICQ'].': <strong>'.forum_htmlencode($user['icq']).'</strong></span></li>';
1555:         if ($user['msn'] !='')1572:         if ($user['msn'] !='')
1556:             $forum_page['user_contact']['msn'] = '<li><span><strong>'.$lang_profile['MSN'].':</strong> '.forum_htmlencode(($forum_config['o_censoring'] == '1') ? censor_words($user['msn']) : $user['msn']).'</span></li>';1573:             $forum_page['user_contact']['msn'] = '<li><span>'.$lang_profile['MSN'].': <strong>'.forum_htmlencode(($forum_config['o_censoring'] == '1') ? censor_words($user['msn']) : $user['msn']).'</strong></span></li>';
1557:         if ($user['aim'] !='')1574:         if ($user['aim'] !='')
1558:             $forum_page['user_contact']['aim'] = '<li><span><strong>'.$lang_profile['AOL IM'].':</strong> '.forum_htmlencode(($forum_config['o_censoring'] == '1') ? censor_words($user['aim']) : $user['aim']).'</span></li>';1575:             $forum_page['user_contact']['aim'] = '<li><span>'.$lang_profile['AOL IM'].': <strong>'.forum_htmlencode(($forum_config['o_censoring'] == '1') ? censor_words($user['aim']) : $user['aim']).'</strong></span></li>';
1559:         if ($user['yahoo'] !='')1576:         if ($user['yahoo'] !='')
1560:             $forum_page['user_contact']['yahoo'] = '<li><span><strong>'.$lang_profile['Yahoo'].':</strong> '.forum_htmlencode(($forum_config['o_censoring'] == '1') ? censor_words($user['yahoo']) : $user['yahoo']).'</span></li>';1577:             $forum_page['user_contact']['yahoo'] = '<li><span>'.$lang_profile['Yahoo'].': <strong>'.forum_htmlencode(($forum_config['o_censoring'] == '1') ? censor_words($user['yahoo']) : $user['yahoo']).'</strong></span></li>';
1561: 1578: 
1562:         // Setup signature demo1579:         // Setup signature demo
1563:         if ($forum_config['o_signatures'] == '1' && isset($parsed_signature))1580:         if ($forum_config['o_signatures'] == '1' && isset($parsed_signature))
1580:         if ($forum_page['own_profile'] || $forum_user['g_id'] == FORUM_ADMIN || ($forum_user['g_moderator'] == '1' && $forum_user['g_mod_change_passwords'] == '1'))1597:         if ($forum_page['own_profile'] || $forum_user['g_id'] == FORUM_ADMIN || ($forum_user['g_moderator'] == '1' && $forum_user['g_mod_change_passwords'] == '1'))
1581:             $forum_page['user_options']['change_password'] = '<span'.(empty($forum_page['user_options']) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['change_password'], $id).'">'.(($forum_page['own_profile']) ? $lang_profile['Change your password'] : sprintf($lang_profile['Change user password'], forum_htmlencode($user['username']))).'</a></span>';1598:             $forum_page['user_options']['change_password'] = '<span'.(empty($forum_page['user_options']) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['change_password'], $id).'">'.(($forum_page['own_profile']) ? $lang_profile['Change your password'] : sprintf($lang_profile['Change user password'], forum_htmlencode($user['username']))).'</a></span>';
1582: 1599: 
1583:         if (!$forum_user['is_admmod'] && $forum_config['o_regs_verify'] == '1')1600:         if (!$forum_user['is_admmod'])
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>';1601:             $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>';
1585: 1602: 
1586:         $forum_page['group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0;1603:         $forum_page['group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0;
1690:             $forum_page['hidden_fields']['old_username'] = '<input type="hidden" name="old_username" value="'.forum_htmlencode($user['username']).'" />';1707:             $forum_page['hidden_fields']['old_username'] = '<input type="hidden" name="old_username" value="'.forum_htmlencode($user['username']).'" />';
1691: 1708: 
1692:         // Does the form have required fields1709:         // Does the form have required fields
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);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']) ? true : false);
1694: 1711: 
1695:         ($hook = get_hook('pf_change_details_identity_pre_header_load')) ? eval($hook) : null;1712:         ($hook = get_hook('pf_change_details_identity_pre_header_load')) ? eval($hook) : null;
1696: 1713: 
1750:                     </div>1767:                     </div>
1751:                 </div>1768:                 </div>
1752: <?php endif; ($hook = get_hook('pf_change_details_identity_pre_email')) ? eval($hook) : null; ?>1769: <?php endif; ($hook = get_hook('pf_change_details_identity_pre_email')) ? eval($hook) : null; ?>
1753: <?php if ($forum_user['is_admmod'] || $forum_config['o_regs_verify'] != '1'): ?>1770: <?php if ($forum_user['is_admmod']): ?>
1754:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">1771:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
1755:                     <div class="sf-box text required">1772:                     <div class="sf-box text required">
1756:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['E-mail'] ?> <em><?php echo $lang_common['Required'] ?></em></span> <small><?php echo $lang_profile['E-mail help'] ?></small></label><br />1773:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['E-mail'] ?> <em><?php echo $lang_common['Required'] ?></em></span> <small><?php echo $lang_profile['E-mail help'] ?></small></label><br />
2532: 2549: 
2533:             echo "\t\t\t".implode("\n\t\t\t", $forum_page['user_management'])."\n";2550:             echo "\t\t\t".implode("\n\t\t\t", $forum_page['user_management'])."\n";
2534: 2551: 
2535:             ($hook = get_hook('pf_change_details_admin_pre_group_membership')) ? eval($hook) : null;2552:             ($hook = get_hook('pf_change_details_admin_pre_membership')) ? eval($hook) : null;
2536: 2553: 
2537:             if ($forum_user['g_moderator'] != '1' && !$forum_page['own_profile'])2554:             if ($forum_user['g_moderator'] != '1' && !$forum_page['own_profile'])
2538:             {2555:             {


punbb-1.3.1/register.php punbb-1.3.4/register.php
  2: /**  2: /**
  3:  * Allows the creation of new user accounts.  3:  * Allows the creation of new user accounts.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
 74:         <div class="ct-box user-box"> 74:         <div class="ct-box user-box">
 75:             <?php echo $forum_config['o_rules_message'] ?> 75:             <?php echo $forum_config['o_rules_message'] ?>
 76:         </div> 76:         </div>
 77:         <form class="frm-form" method="get" accept-charset="utf-8" action="<?php echo $base_url ?>/register.php"> 77:         <form class="frm-form" method="get" accept-charset="utf-8" action="<?php echo forum_link($forum_url['register']) ?>">
 78: <?php ($hook = get_hook('rg_rules_pre_group')) ? eval($hook) : null; ?> 78: <?php ($hook = get_hook('rg_rules_pre_group')) ? eval($hook) : null; ?>
 79:             <div class="frm-group group<?php echo ++$forum_page['group_count'] ?>"> 79:             <div class="frm-group group<?php echo ++$forum_page['group_count'] ?>">
 80: <?php ($hook = get_hook('rg_rules_pre_agree_checkbox')) ? eval($hook) : null; ?> 80: <?php ($hook = get_hook('rg_rules_pre_agree_checkbox')) ? eval($hook) : null; ?>
264: 264: 
265: // Setup form265: // Setup form
266: $forum_page['group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0;266: $forum_page['group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0;
267: $forum_page['form_action'] = $base_url.'/register.php?action=register';267: $forum_page['form_action'] = forum_link($forum_url['register']).'?action=register';
268: 268: 
269: // Setup form information269: // Setup form information
270: $forum_page['frm_info']['intro'] = '<p>'.$lang_profile['Register intro'].'</p>';270: $forum_page['frm_info']['intro'] = '<p>'.$lang_profile['Register intro'].'</p>';


punbb-1.3.1/rewrite.php punbb-1.3.4/rewrite.php
  2: /**  2: /**
  3:  * Rewrites SEF URLs to their actual files.  3:  * Rewrites SEF URLs to their actual files.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
 78: // If we don't know what to rewrite to, we show a bad request messsage 78: // If we don't know what to rewrite to, we show a bad request messsage
 79: if (empty($rewritten_url)) 79: if (empty($rewritten_url))
 80: { 80: {
 81:     header('HTTP/1.x 404 Not Found'); 81:     define('FORUM_HTTP_RESPONSE_CODE_SET', 1);
  82:     header('HTTP/1.1 404 Not Found');
 82:  83: 
 83:     // Allow an extension to override the "Bad request" message with a custom 404 page 84:     // Allow an extension to override the "Bad request" message with a custom 404 page
 84:     ($hook = get_hook('re_page_not_found')) ? eval($hook) : null; 85:     ($hook = get_hook('re_page_not_found')) ? eval($hook) : null;


punbb-1.3.1/search.php punbb-1.3.4/search.php
  2: /**  2: /**
  3:  * Allows users to search the forum based on various criteria.  3:  * Allows users to search the forum based on various criteria.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
 42: // We aren't just grabbing a cached search 42: // We aren't just grabbing a cached search
 43: else if (isset($_GET['action'])) 43: else if (isset($_GET['action']))
 44: { 44: {
 45:     $action = (isset($_GET['action'])) ? $_GET['action'] : null; 45:     $action = $_GET['action'];
 46:  46: 
 47:     // Validate action 47:     // Validate action
 48:     if (!validate_search_action($action)) 48:     if (!validate_search_action($action))
191:     <div class="main-subhead">191:     <div class="main-subhead">
192:         <p class="item-summary forum-noview"><span><?php printf($lang_forum['Search subtitle'], implode(' ', $forum_page['item_header']['subject']), implode(', ', $forum_page['item_header']['info'])) ?></span></p>192:         <p class="item-summary forum-noview"><span><?php printf($lang_forum['Search subtitle'], implode(' ', $forum_page['item_header']['subject']), implode(', ', $forum_page['item_header']['info'])) ?></span></p>
193:     </div>193:     </div>
194:     <div class="main-content main-forum forum-noview">194:     <div class="main-content main-forum forum-forums">
195: <?php195: <?php
196: 196: 
197:     }197:     }
237:         {237:         {
238:             // Generate the result heading238:             // Generate the result heading
239:             $forum_page['post_ident'] = array();239:             $forum_page['post_ident'] = array();
240:             $forum_page['post_ident']['num']    = '<span class="post-num">'.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span>';240:             $forum_page['post_ident']['num'] = '<span class="post-num">'.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span>';
241:             $forum_page['post_ident']['byline'] = '<span class="post-byline">'.sprintf((($cur_set['pid'] == $cur_set['first_post_id']) ? $lang_topic['Topic byline'] : $lang_topic['Reply byline']), '<strong>'.forum_htmlencode($cur_set['pposter']).'</strong>').'</span>';241:             $forum_page['post_ident']['byline'] = '<span class="post-byline">'.sprintf((($cur_set['pid'] == $cur_set['first_post_id']) ? $lang_topic['Topic byline'] : $lang_topic['Reply byline']), '<strong>'.forum_htmlencode($cur_set['pposter']).'</strong>').'</span>';
242:             $forum_page['post_ident']['link'] = '<span class="post-link"><a class="permalink" rel="bookmark" title="'.$lang_topic['Permalink post'].'" href="'.forum_link($forum_url['post'], $cur_set['pid']).'">'.format_time($cur_set['pposted']).'</a></span>';242:             $forum_page['post_ident']['link'] = '<span class="post-link"><a class="permalink" rel="bookmark" title="'.$lang_topic['Permalink post'].'" href="'.forum_link($forum_url['post'], $cur_set['pid']).'">'.format_time($cur_set['pposted']).'</a></span>';
243: 243: 
305:         {305:         {
306:             // Start from scratch306:             // Start from scratch
307:             $forum_page['item_subject'] = $forum_page['item_body'] = $forum_page['item_status'] = $forum_page['item_nav'] = $forum_page['item_title'] = $forum_page['item_title_status'] = array();307:             $forum_page['item_subject'] = $forum_page['item_body'] = $forum_page['item_status'] = $forum_page['item_nav'] = $forum_page['item_title'] = $forum_page['item_title_status'] = array();
308:             $forum_page['item_indicator'] = ''; 
309: 308: 
310:             // Assemble the Topic heading309:             // Assemble the Topic heading
311: 310: 
335: 334: 
336:             $forum_page['item_title']['link'] = '<a href="'.forum_link($forum_url['topic'], array($cur_set['tid'], sef_friendly($cur_set['subject']))).'">'.forum_htmlencode($cur_set['subject']).'</a>';335:             $forum_page['item_title']['link'] = '<a href="'.forum_link($forum_url['topic'], array($cur_set['tid'], sef_friendly($cur_set['subject']))).'">'.forum_htmlencode($cur_set['subject']).'</a>';
337: 336: 
 337:             ($hook = get_hook('se_results_topics_row_pre_item_title_merge')) ? eval($hook) : null;
 338: 
 339:             $forum_page['item_body']['subject']['title'] = '<h3 class="hn"><span class="item-num">'.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span> '.implode(' ', $forum_page['item_title']).'</h3>';
 340: 
338:             $forum_page['item_pages'] = ceil(($cur_set['num_replies'] + 1) / $forum_user['disp_posts']);341:             $forum_page['item_pages'] = ceil(($cur_set['num_replies'] + 1) / $forum_user['disp_posts']);
339: 342: 
340:             if ($forum_page['item_pages'] > 1)343:             if ($forum_page['item_pages'] > 1)
349: 352: 
350:             ($hook = get_hook('se_results_topics_row_pre_item_nav_merge')) ? eval($hook) : null;353:             ($hook = get_hook('se_results_topics_row_pre_item_nav_merge')) ? eval($hook) : null;
351: 354: 
352:             if (!empty($forum_page['item_nav']))355:             $forum_page['item_subject']['starter'] = '<span class="item-starter">'.sprintf($lang_forum['Topic starter'], forum_htmlencode($cur_set['poster'])).'</span>';
353:                 $forum_page['item_title']['nav'] = '<span class="item-nav">'.sprintf($lang_forum['Topic navigation'], implode('&#160;&#160;', $forum_page['item_nav'])).'</span>'; 
354:  
355:             ($hook = get_hook('se_results_topics_row_pre_item_title_merge')) ? eval($hook) : null; 
356:  
357:             $forum_page['item_body']['subject']['title'] = '<h3 class="hn"><span class="item-num">'.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span> '.implode(' ', $forum_page['item_title']).'</h3>'; 
358: 356: 
359:             $forum_page['item_subject']['starter'] = '<span class="item-starter">'.sprintf($lang_forum['Topic starter'], '<cite>'.forum_htmlencode($cur_set['poster']).'</cite>').'</span>';357:             if (!empty($forum_page['item_nav']))
 358:                 $forum_page['item_subject']['nav'] = '<span class="item-nav">'.sprintf($lang_forum['Topic navigation'], implode('&#160;&#160;', $forum_page['item_nav'])).'</span>';
360: 359: 
361:             ($hook = get_hook('se_results_topics_row_pre_item_subject_merge')) ? eval($hook) : null;360:             ($hook = get_hook('se_results_topics_row_pre_item_subject_merge')) ? eval($hook) : null;
362: 361: 
363:             $forum_page['item_body']['subject']['desc'] = implode(' ', $forum_page['item_subject']);362:             $forum_page['item_body']['subject']['desc'] = '<p>'.implode(' ', $forum_page['item_subject']).'</p>';
364: 363: 
365:             if (empty($forum_page['item_status']))364:             if (empty($forum_page['item_status']))
366:                 $forum_page['item_status']['normal'] = 'normal';365:                 $forum_page['item_status']['normal'] = 'normal';
369: 368: 
370:             $forum_page['item_style'] = (($forum_page['item_count'] % 2 != 0) ? ' odd' : ' even').(($forum_page['item_count'] == 1) ? ' main-first-item' : '').((!empty($forum_page['item_status'])) ? ' '.implode(' ', $forum_page['item_status']) : '');369:             $forum_page['item_style'] = (($forum_page['item_count'] % 2 != 0) ? ' odd' : ' even').(($forum_page['item_count'] == 1) ? ' main-first-item' : '').((!empty($forum_page['item_status'])) ? ' '.implode(' ', $forum_page['item_status']) : '');
371: 370: 
372:             $forum_page['item_body']['info']['forum'] = '<li class="info-forum"><strong>'.$cur_set['forum_name'].'</strong> <span class="label">'.(($cur_set['num_replies'] == 1) ? $lang_forum['Reply'] : $lang_forum['Replies']).'</span></li>';371:             $forum_page['item_body']['info']['forum'] = '<li class="info-forum"><span class="label">'.$lang_search['Posted in'].'</span><a href="'.forum_link($forum_url['forum'], array($cur_set['forum_id'], sef_friendly($cur_set['forum_name']))).'">'.$cur_set['forum_name'].'</a></li>';
373:             $forum_page['item_body']['info']['replies'] = '<li class="info-replies"><strong>'.forum_number_format($cur_set['num_replies']).'</strong> <span class="label">'.(($cur_set['num_replies'] == 1) ? $lang_forum['Reply'] : $lang_forum['Replies']).'</span></li>';372:             $forum_page['item_body']['info']['replies'] = '<li class="info-replies"><strong>'.forum_number_format($cur_set['num_replies']).'</strong> <span class="label">'.(($cur_set['num_replies'] == 1) ? $lang_forum['Reply'] : $lang_forum['Replies']).'</span></li>';
374:             $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_set['last_post_id']).'">'.format_time($cur_set['last_post']).'</a></strong> <cite>'.sprintf($lang_forum['by poster'], forum_htmlencode($cur_set['last_poster'])).'</cite></li>';373:             $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_set['last_post_id']).'">'.format_time($cur_set['last_post']).'</a></strong> <cite>'.sprintf($lang_forum['by poster'], forum_htmlencode($cur_set['last_poster'])).'</cite></li>';
375: 374: 
393: ?>392: ?>
394:     </div>393:     </div>
395: 394: 
396:             <div class="main-foot">395:     <div class="main-foot">
397: <?php396: <?php
398: 397: 
399:     if (!empty($forum_page['main_foot_options']))398:     if (!empty($forum_page['main_foot_options']))
400:         echo "\n\t\t\t".'<p class="options">'.implode(' ', $forum_page['main_foot_options']).'</p>';399:         echo "\n\t\t\t".'<p class="options">'.implode(' ', $forum_page['main_foot_options']).'</p>';
401: 400: 
402: ?>401: ?>
403:         <p><?php echo $forum_page['items_info'] ?></p>402:         <h2 class="hn"><span><?php echo $forum_page['items_info'] ?></span></h2>
404:     </div>403:     </div>
405: <?php404: <?php
406: 405: 
494:                         <span class="fld-input"><input id="fld<?php echo $forum_page['fld_count'] ?>" type="text" name="author" size="25" maxlength="25" /></span>493:                         <span class="fld-input"><input id="fld<?php echo $forum_page['fld_count'] ?>" type="text" name="author" size="25" maxlength="25" /></span>
495:                     </div>494:                     </div>
496:                 </div>495:                 </div>
 496: <?php ($hook = get_hook('se_pre_search_in')) ? eval($hook) : null; ?>
 497:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
 498:                     <div class="sf-box select">
 499:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_search['Search in'] ?></span></label><br />
 500:                         <span class="fld-input"><select id="fld<?php echo $forum_page['fld_count'] ?>" name="search_in">
 501:                             <option value="all"><?php echo $lang_search['Message and subject'] ?></option>
 502:                             <option value="message"><?php echo $lang_search['Message only'] ?></option>
 503:                             <option value="topic"><?php echo $lang_search['Topic only'] ?></option>
 504:                         </select></span>
 505:                     </div>
 506:                 </div>
497: <?php ($hook = get_hook('se_pre_forum_fieldset')) ? eval($hook) : null; ?>507: <?php ($hook = get_hook('se_pre_forum_fieldset')) ? eval($hook) : null; ?>
498:                 <fieldset class="mf-set set<?php echo ++$forum_page['item_count'] ?>">508:                 <fieldset class="mf-set set<?php echo ++$forum_page['item_count'] ?>">
499:                     <legend><span><?php echo $lang_search['Forum search'] ?> <em><?php echo ($forum_config['o_search_all_forums'] == '1' || $forum_user['is_admmod']) ? $lang_search['Forum search default'] : $lang_search['Forum search require'] ?></em></span></legend>509:                     <legend><span><?php echo $lang_search['Forum search'] ?> <em><?php echo ($forum_config['o_search_all_forums'] == '1' || $forum_user['is_admmod']) ? $lang_search['Forum search default'] : $lang_search['Forum search require'] ?></em></span></legend>


punbb-1.3.1/style/Oxygen/Oxygen.css punbb-1.3.4/style/Oxygen/Oxygen.css
 83:     line-height: 0.0; 83:     line-height: 0.0;
 84:     overflow:hidden; 84:     overflow:hidden;
 85:     visibility: hidden; 85:     visibility: hidden;
 86:      clear: both; 86:     clear: both;
 87:     } 87:     }
 88:  88: 
 89: /* Hidden items 89: /* Hidden items
112: .brd .main-head .hn small,112: .brd .main-head .hn small,
113: .brd .entry-title,113: .brd .entry-title,
114: .brd .menu-page .main-head {114: .brd .menu-page .main-head {
115:      font-size: 0;115:     font-size: 0;
116:      left: -999em;116:     left: -999em;
117:      text-indent: -999em;117:     text-indent: -999em;
118:      position:absolute;118:     position:absolute;
119:      line-height: 0em;119:     line-height: 0em;
120:      visibility: hidden;120:     visibility: hidden;
121:      }121:     }
122: 122: 
123: 123: 
124: /*************************************************************124: /*************************************************************
211:     border-bottom-width: 1px;211:     border-bottom-width: 1px;
212:     }212:     }
213: 213: 
214: .brd .main-head {214: .brd .main-head, .brd .main-foot {
215:     border-style: solid;215:     border-style: solid;
216:     border-width: 1px;216:     border-width: 1px;
217:     padding: 0 1.417em;217:     padding: 0 1.417em;
218:     }218:     }
219: 219: 
220: .brd .main-head .hn, .brd .main-foot .hn{220: .brd .main-head .hn, .brd .main-foot .hn {
221:     font-size: 1.084em;221:     font-size: 1.084em;
222:     padding-right: 10em;222:     padding-right: 10em;
223:     }223:     }
225: .brd h2.main-subhead {225: .brd h2.main-subhead {
226:     border-style: solid;226:     border-style: solid;
227:     border-width: 1px;227:     border-width: 1px;
228:     padding: 0 1.417em; 
229:     font-size: 1.084em;228:     font-size: 1.084em;
230:     padding: 0.462em 10em 0.426em 1.417em;229:     padding: 0.462em 10em 0.426em 1.417em;
231:     }230:     }
249:     position: relative;248:     position: relative;
250:     }249:     }
251: 250: 
252: .brd .main-head, 
253: .brd .main-foot { 
254:     padding: 0 1.5em; 
255:     border-style: none; 
256:     border-width: 1px; 
257:     } 
258:  
259: .brd .main-foot {251: .brd .main-foot {
260:     margin-top: -1em;252:     margin-top: -1em;
261:     }253:     }
306:     }298:     }
307: 299: 
308: .brd .extension .options, .brd .hotfix .options {300: .brd .extension .options, .brd .hotfix .options {
309:     border-top-style:dashed;301:     border-top-style: dashed;
310:     border-top-width:1px;302:     border-top-width: 1px;
311: }303:     }
312: 304: 
313: /* Content Containers305: /* Content Containers
314: -------------------------------------------------------------*/306: -------------------------------------------------------------*/
652: 644: 
653: .brd .crumbs {645: .brd .crumbs {
654:     margin: 0.5em 0em;646:     margin: 0.5em 0em;
655:     padding: 0em 1.5em;647:     padding: 0em 1.417em;
656:     font-size: 1.084em;648:     font-size: 1.084em;
657:     }649:     }
658: 650: 
669:     }661:     }
670: 662: 
671: #brd-stats ul li.st-users {663: #brd-stats ul li.st-users {
672:      float: left;664:     float: left;
673:      clear: both;665:     clear: both;
674:      white-space: nowrap;666:     white-space: nowrap;
675:      }667:     }
676: 668: 
677:  #brd-stats ul li.st-activity {669:  #brd-stats ul li.st-activity {
678:      text-align: right;670:     text-align: right;
679:      display: block;671:     display: block;
680:      white-space: nowrap;672:     white-space: nowrap;
681:      }673:     }
682: 674: 
683:  #brd-stats li strong {675:  #brd-stats li strong {
684:      font-weight: bold;676:     font-weight: bold;
685:      }677:     }
686: 678: 
687: #brd-online {679: #brd-online {
688:     padding-top: 0.5em;680:     padding-top: 0.5em;
695:     }687:     }
696: 688: 
697:  #brd-online .hn {689:  #brd-online .hn {
698:      float: left;690:     float: left;
699:      margin-right: 0.5em;691:     margin-right: 0.5em;
700:      }692:     }
701: 693: 
702: /* Footer694: /* Footer
703: -------------------------------------------------------------*/695: -------------------------------------------------------------*/
704: 696: 
705: #brd-about p { 
706:     float: left; 
707:     margin: 0 1em; 
708:     } 
709:  
710: #brd-about #qjump {697: #brd-about #qjump {
711:     float: left;698:     float: left;
712:     padding: 0.5em 0;699:     padding: 0.5em 0;
719: 706: 
720: #brd-about #copyright {707: #brd-about #copyright {
721:     text-align: right;708:     text-align: right;
722:     float: right; 
723:     margin: 0;709:     margin: 0;
724:     }710:     }
725: 711: 
726: #brd-about #querytime {712: #querytime {
727:     text-align: center;713:     text-align: center;
728:     font-size: 0.9em;714:     font-size: 0.9em;
729:     }715:     }
730: 716: 
 717: #extensions-used {
 718:     border-bottom: 1px dotted;
 719: }
 720: 
731: /* Main and Content Options721: /* Main and Content Options
732: -------------------------------------------------------------*/722: -------------------------------------------------------------*/
733: 723: 
786:     padding: 0.5em 0;776:     padding: 0.5em 0;
787:     white-space: nowrap;777:     white-space: nowrap;
788:     font-weight: normal;778:     font-weight: normal;
789:     text-transform: capitalize;779:     }
 780: 
 781: .brd .item-summary strong:first-letter {
 782:     text-transform: uppercase;
790:     }783:     }
791: 784: 
792: .brd .item-summary .subject-title {785: .brd .item-summary .subject-title {
848: 841: 
849: .brd .main-content .main-item p,842: .brd .main-content .main-item p,
850: .brd .main-content .main-item .hn {843: .brd .main-content .main-item .hn {
851:      padding: 0;844:     padding: 0;
852:      }845:     }
853: 846: 
854: .brd .main-content .main-item .hn .item-status {847: .brd .main-content .main-item .hn .item-status {
855:      font-weight:normal;848:     font-weight:normal;
856:      }849:     }
857: 850: 
858: .brd .main-content .main-item .hn .item-status em {851: .brd .main-content .main-item .hn .item-status em {
859:      font-style:normal;852:     font-style:normal;
860:      }853:     }
861: 854: 
862: .brd .main-content .main-item .item-subject,855: .brd .main-content .main-item .item-subject,
863: .brd .main-content .main-item li {856: .brd .main-content .main-item li {
864:      float: left;857:     float: left;
865:      border-left-style: solid;858:     border-left-style: solid;
866:      border-left-width: 1px;859:     border-left-width: 1px;
867:      margin: 0 -2px -9.7em 0;860:     margin: 0 -2px -9.7em 0;
868:      position: relative;861:     position: relative;
869:      padding-top: 0.6em;862:     padding-top: 0.6em;
870:      padding-bottom: 10.4em;863:     padding-bottom: 10.4em;
871:      }864:     }
872: 865: 
873: .brd .main-content .main-item .item-subject {866: .brd .main-content .main-item .item-subject {
874:      overflow: hidden;867:     overflow: hidden;
875:      width: 100%;868:     width: 100%;
876:       }869:     }
877: 870: 
878: .brd .main-content .main-item li.info-topics,871: .brd .main-content .main-item li.info-topics,
879: .brd .main-content .main-item li.info-forum,872: .brd .main-content .main-item li.info-forum,
880: .brd .main-content .main-item li.info-posts,873: .brd .main-content .main-item li.info-posts,
881: .brd .main-content .main-item li.info-views,874: .brd .main-content .main-item li.info-views,
882: .brd .main-content .main-item li.info-replies {875: .brd .main-content .main-item li.info-replies {
883:      width: 7em;876:     width: 7em;
884:      text-align:center;877:     text-align: center;
885:      }878:     }
886: 879: 
887: .brd .main-content .main-item li.info-forum {880: .brd .main-content .main-item li.info-forum {
888:      width: 20em;881:     width: 20em;
889:      }882:     }
890: 883: 
891: .brd .main-content .main-item li.info-lastpost {884: .brd .main-content .main-item li.info-lastpost {
892:       width: 20em;885:     width: 20em;
893:       }886:     }
894: 887: 
895: .brd .main-content .main-item li.info-lastpost cite {888: .brd .main-content .main-item li.info-lastpost cite {
896:     overflow: hidden;889:     overflow: hidden;
921:     }914:     }
922: 915: 
923: .brd .forum-noview .main-item {916: .brd .forum-noview .main-item {
924:     padding-right: 48em;917:     padding-right: 28em;
925:     }918:     }
926: 919: 
927: .brd .forum-noview .main-item ul {920: .brd .forum-noview .main-item ul {
 921:     width: 27em;
 922:     right: -28em;
 923:     margin-left: -27em;
 924:     }
 925: 
 926: .brd .forum-forums .main-item {
 927:     padding-right: 48em;
 928:     }
 929: 
 930: .brd .forum-forums .main-item ul {
928:     width: 47em;931:     width: 47em;
929:     right: -48em;932:     right: -48em;
930:     margin-left: -47em;933:     margin-left: -47em;
931:     }934:     }
932: 935: 
933: .brd .main-content .main-item .item-subject span.modlist {936: .brd .main-content .main-item .item-subject span.modlist {
934:      display: block;937:     display: block;
935:      }938:     }
936: 939: 
937: .brd .main-content .main-item .hn strong {940: .brd .main-content .main-item .hn strong {
938:       font-size: 1em;941:     font-size: 1em;
939:       }942:     }
940: 943: 
941: .brd .main-content .main-item .hn strong span {944: .brd .main-content .main-item .hn strong span {
942:     font-weight: normal;945:     font-weight: normal;
945:  #brd-index .main-content .main-item .hn span {948:  #brd-index .main-content .main-item .hn span {
946:     font-size: 1.084em;949:     font-size: 1.084em;
947:     font-weight: bold;950:     font-weight: bold;
948:      }951:     }
949: #brd-index .main-content .main-item .hn small {952: #brd-index .main-content .main-item .hn small {
950:     font-size: 1em;953:     font-size: 1em;
951:     }954:     }
964:     font-style: normal;967:     font-style: normal;
965:     }968:     }
966: 969: 
967: .brd .main-content .main-item .item-subject .hn {970: .brd .main-content .main-item .item-subject .hn,
968:     display:inline; 
969:     margin: 0 0 0 1.5em; 
970:      } 
971:  
972: .brd .main-content .main-item .item-subject p {971: .brd .main-content .main-item .item-subject p {
973:     margin: 0 0 0 1.5em;972:     margin: 0 0 0 1.5em;
974:      }973:     }
975: 974: 
976: .brd .main-content .main-item li.info-lastpost cite,975: .brd .main-content .main-item li.info-lastpost cite,
977: .brd .main-content .main-item li.info-lastpost span {976: .brd .main-content .main-item li.info-lastpost span,
978:      display: block;977: .brd .main-content .main-item li.info-forum a {
979:      padding: 0 1em;978:     display: block;
980:      font-style: normal;979:     padding: 0 1em;
981:      font-weight: normal;980:     font-style: normal;
982:      }981:     font-weight: normal;
 982:     }
983: 983: 
984: .brd .main-content .main-item li.info-lastpost strong {984: .brd .main-content .main-item li.info-lastpost strong {
985:      padding: 0 0 0 1em;985:     padding: 0 0 0 1em;
986:      font-style: normal;986:     font-style: normal;
987:      font-weight: normal;987:     font-weight: normal;
988:      }988:     }
989: 989: 
990: .brd .main-content .main-item li.info-select {990: .brd .main-content .main-item li.info-select {
991:      position: absolute;991:     position: absolute;
992:      right: 0;992:     right: 0;
993:      top: 0;993:     top: 0;
994:      padding: 0.3em;994:     padding: 0.3em;
995:      border-style: none none solid solid;995:     border-style: none none solid solid;
996:      border-width: 1px;996:     border-width: 1px;
997:      }997:     }
998: 998: 
999: .brd .main-content .main-item .icon {999: .brd .main-content .main-item .icon {
1000:      border-style: solid;1000:     border-style: solid;
1001:      border-width: 0.5833em;1001:     border-width: 0.5833em;
1002:      height: 0;1002:     height: 0;
1003:      width: 0;1003:     width: 0;
1004:      float: left;1004:     float: left;
1005:      margin-top: 0.667em;1005:     margin-top: 0.667em;
1006:      margin-left: -2.417em;1006:     margin-left: -2.417em;
1007:      }1007:     }
1008: 1008: 
1009: .brd .main-content .main-item .hn .posted-mark {1009: .brd .main-content .main-item .hn .posted-mark {
1010:      position: absolute;1010:     position: absolute;
1011:      font-size: 2em;1011:     font-size: 2em;
1012:      width: 1em;1012:     width: 1em;
1013:      left: -0.5em;1013:     left: -0.5em;
1014:      top: 0;1014:     top: 0;
1015:      }1015:     }
1016: 1016: 
1017: /*************************************************************1017: /*************************************************************
1018: F - MAIN CONTENT - FORMS1018: F - MAIN CONTENT - FORMS
1157: 1157: 
1158: .brd .mf-box .mf-item {1158: .brd .mf-box .mf-item {
1159:     position: relative;1159:     position: relative;
1160:     top: -0.15em;1160:     top: -0.166em;
1161:     padding: 0.25em 0;1161:     padding: 0.25em 0;
1162:     }1162:     }
1163: 1163: 
1416:     margin-left: 18em;1416:     margin-left: 18em;
1417:     border-style: none none none solid;1417:     border-style: none none none solid;
1418:     border-width: 1px;1418:     border-width: 1px;
1419:     zoom: 1; 
1420:     }1419:     }
1421: 1420: 
1422: .brd .posthead .hn {1421: .brd .posthead .hn {
1628:     padding: 1em 0.75em;1627:     padding: 1em 0.75em;
1629:     }1628:     }
1630: 1629: 
1631: .brd .entry-content .codebox code {1630: .brd .entry-content .codebox code, #brd-debug table .tcl, #brd-debug table .tcr {
1632:     font-family: monospace;1631:     font-family: monospace;
1633:     }1632:     }
1634: 1633: 
1711:     text-align: center;1710:     text-align: center;
1712:     }1711:     }
1713: 1712: 
1714: #brd-debug  table .tc0 {1713: #brd-debug  table .tc1 {
1715:     white-space:normal;1714:     white-space: normal;
1716:     width: 15%;1715:     width: 10%;
1717:     }1716:     }
1718: 1717: 
1719: #brd-debug table .tc1 {1718: #brd-debug table .tcr {
1720:     white-space: normal;1719:     white-space: normal;
1721:     width: 90%;1720:     width: 90%;
1722:     }1721:     }


punbb-1.3.1/style/Oxygen/Oxygen_cs.css punbb-1.3.4/style/Oxygen/Oxygen_cs.css
326:     background: #F4F4F4;326:     background: #F4F4F4;
327:     }327:     }
328: 328: 
329: .brd .content-head { 
330:  
331:     } 
332:  
333: .brd th { 
334:     background: #EAEEF5; 
335:     border-bottom-color: #fff; 
336:     border-top-color: #ddd; 
337:     } 
338:  
339: .brd .group-head {329: .brd .group-head {
340:     background: #EDF1F5;330:     background: #EDF1F5;
341:     border-color: #DBE0E4;331:     border-color: #DBE0E4;
360:     background: #F4F4F4;350:     background: #F4F4F4;
361:     }351:     }
362: 352: 
363: .brd .main-frm .ct-group td{353: .brd .main-frm .ct-group td {
364:     background: #FBFBFB;354:     background: #FBFBFB;
365:     }355:     }
366: 356: 
 357: #extensions-used {
 358:     border-bottom-color: #999;
 359: }
 360: 
367: 361: 
368: /* Status indicators362: /* Status indicators
369: ----------------------------------------------------------------*/363: ----------------------------------------------------------------*/
370: 364: 
371: .brd .main-content .main-item .icon {365: .brd .main-content .main-item .icon {
372:     border-color: #EDF1F5 #DDE0E4 #C6CBD3 #BABFC6366:     border-color: #EDF1F5 #DDE0E4 #C6CBD3 #BABFC6;
373:     }367:     }
374: 368: 
375: .brd .main-content .redirect .icon {369: .brd .main-content .redirect .icon {
376:     border-color: #f4f4f4 #f4f4f4 #f4f4f4 #f4f4f4370:     border-color: #f4f4f4 #f4f4f4 #f4f4f4 #f4f4f4;
377:     }371:     }
378: 372: 
379: .brd .main-content .sticky .icon {373: .brd .main-content .sticky .icon {
380:     border-color: #D7E5F3 #C3CFDC #9FB3C7 #90A2B4374:     border-color: #D7E5F3 #C3CFDC #9FB3C7 #90A2B4;
381:     }375:     }
382: 376: 
383: .brd .main-content .closed .icon {377: .brd .main-content .closed .icon {
384:     border-color: #ACACAC #979797 #898989 #7A7A7A378:     border-color: #ACACAC #979797 #898989 #7A7A7A;
385:     }379:     }
386: 380: 
387: .brd .main-content .sticky .closed {381: .brd .main-content .sticky .closed .icon {
388:     border-color: #D7E5F3 #C3CFDC #898989 #7A7A7A382:     border-color: #D7E5F3 #C3CFDC #898989 #7A7A7A;
389:     }383:     }
390: 384: 
391: .brd .main-content .new .icon {385: .brd .main-content .new .icon {
392:     border-color: #2B75AD #235E8C #1F537B #266799386:     border-color: #2B75AD #235E8C #1F537B #266799;
393:     }387:     }
394: 388: 
395: 389: 


punbb-1.3.1/style/Oxygen/Oxygen_ie6.css punbb-1.3.4/style/Oxygen/Oxygen_ie6.css
 27: .brd span.fld-input, 27: .brd span.fld-input,
 28: .brd .main-subhead .hn, 28: .brd .main-subhead .hn,
 29: .brd .post, 29: .brd .post,
  30: .brd .posthead,
 30: .brd .postbody, 31: .brd .postbody,
 31: .brd .post-entry, 32: .brd .post-entry,
 32: .brd .postfoot .post-options { 33: .brd .postfoot .post-options {
 33:     zoom: 1; 34:     zoom: 1;
 34:     } 35:     }
 35:  36: 
  37: .brd .ct-box ol, .brd .ct-box ol * {
  38:     zoom: normal;
  39:     }
  40: 
  41: .brd .postfoot .post-contacts {
  42:     position: absolute;
  43:     }
  44: 
 36: /* Forms 45: /* Forms
 37: -------------------------------------------------------------*/ 46: -------------------------------------------------------------*/
 38:  47: 
 58:  67: 
 59: #brd-admin-censoring #info-censored-intro, #brd-admin-ranks #info-ranks-intro { margin-bottom: 3em; } 68: #brd-admin-censoring #info-censored-intro, #brd-admin-ranks #info-ranks-intro { margin-bottom: 3em; }
 60:  69: 
 61: /* Adding space between topic subject and its' info */ 
 62: #brd-viewforum .item-nav, .main-forum .item-subject .item-starter { margin-left: 1ex; } 
 63:  
 64: .important strong { margin-right: 1ex; } 70: .important strong { margin-right: 1ex; }
 65:  71: 
 66: #brd-stats .st-users { margin-bottom: -1ex; } 72: #brd-stats .st-users { margin-bottom: -1ex; }
 80: .brd #brd-index .main-head { position: relative; } 86: .brd #brd-index .main-head { position: relative; }
 81:  87: 
 82: .brd .main-content .main-item .hn .posted-mark { 88: .brd .main-content .main-item .hn .posted-mark {
 83:      left: 0.2em; 89:     left: 0.2em;
 84:     } 90:     }
  91: 
  92: /* Footer
  93: -------------------------------------------------------------*/
  94: 
  95: #brd-about p#extensions-used {
  96:     clear: left;
  97:     }
 85:  98: 


punbb-1.3.1/style/Oxygen/Oxygen_ie7.css punbb-1.3.4/style/Oxygen/Oxygen_ie7.css
 26: .brd span.fld-input, 26: .brd span.fld-input,
 27: .brd .main-subhead .hn, 27: .brd .main-subhead .hn,
 28: .brd .post, 28: .brd .post,
  29: .brd .posthead,
 29: .brd .postbody, 30: .brd .postbody,
 30: .brd .post-entry, 31: .brd .post-entry,
 31: .brd .postfoot .post-options, 32: .brd .postfoot .post-options,
 58:  59: 
 59: #brd-admin-settings-setup #fld19, #brd-post textarea#fld1, #brd-post textarea#fld2, #brd-viewtopic textarea#fld1, #brd-postedit #fld2 { 60: #brd-admin-settings-setup #fld19, #brd-post textarea#fld1, #brd-post textarea#fld2, #brd-viewtopic textarea#fld1, #brd-postedit #fld2 {
 60:     margin-top: -19px; 61:     margin-top: -19px;
 61: } 
 62:  62: 
  63:     }
  64: 
  65: .item-starter{
  66:     position: relative;
  67:     left: -0.5em;
  68:     }
 63:  69: 


punbb-1.3.1/userlist.php punbb-1.3.4/userlist.php
  2: /**  2: /**
  3:  * Provides a list of forum users that can be sorted based on various criteria.  3:  * Provides a list of forum users that can be sorted based on various criteria.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
 27: $forum_page['username'] = (isset($_GET['username']) && $_GET['username'] != '-' && $forum_user['g_search_users'] == '1') ? $_GET['username'] : ''; 27: $forum_page['username'] = (isset($_GET['username']) && $_GET['username'] != '-' && $forum_user['g_search_users'] == '1') ? $_GET['username'] : '';
 28: $forum_page['show_group'] = (!isset($_GET['show_group']) || intval($_GET['show_group']) < -1 && intval($_GET['show_group']) > 2) ? -1 : intval($_GET['show_group']); 28: $forum_page['show_group'] = (!isset($_GET['show_group']) || intval($_GET['show_group']) < -1 && intval($_GET['show_group']) > 2) ? -1 : intval($_GET['show_group']);
 29: $forum_page['sort_by'] = (!isset($_GET['sort_by']) || $_GET['sort_by'] != 'username' && $_GET['sort_by'] != 'registered' && ($_GET['sort_by'] != 'num_posts' || !$forum_page['show_post_count'])) ? 'username' : $_GET['sort_by']; 29: $forum_page['sort_by'] = (!isset($_GET['sort_by']) || $_GET['sort_by'] != 'username' && $_GET['sort_by'] != 'registered' && ($_GET['sort_by'] != 'num_posts' || !$forum_page['show_post_count'])) ? 'username' : $_GET['sort_by'];
 30: $forum_page['sort_dir'] = (!isset($_GET['sort_dir']) || $_GET['sort_dir'] != 'ASC' && $_GET['sort_dir'] != 'DESC') ? 'ASC' : strtoupper($_GET['sort_dir']); 30: $forum_page['sort_dir'] = (!isset($_GET['sort_dir']) || strtoupper($_GET['sort_dir']) != 'ASC' && strtoupper($_GET['sort_dir']) != 'DESC') ? 'ASC' : strtoupper($_GET['sort_dir']);
 31:  31: 
 32:  32: 
 33: // Create any SQL for the WHERE clause 33: // Create any SQL for the WHERE clause
 42:  42: 
 43: // Fetch user count 43: // Fetch user count
 44: $query = array( 44: $query = array(
 45:     'SELECT'    => 'COUNT(u.id) - 1', 45:     'SELECT'    => 'COUNT(u.id)',
 46:     'FROM'        => 'users AS u', 46:     'FROM'        => 'users AS u',
 47:     'WHERE'        => 'u.group_id != '.FORUM_UNVERIFIED 47:     'WHERE'        => 'u.id > 1 AND u.group_id != '.FORUM_UNVERIFIED
 48: ); 48: );
 49:  49: 
 50: if (!empty($where_sql)) 50: if (!empty($where_sql))
 56:  56: 
 57: // Determine the user offset (based on $_GET['p']) 57: // Determine the user offset (based on $_GET['p'])
 58: $forum_page['num_pages'] = ceil($forum_page['num_users'] / 50); 58: $forum_page['num_pages'] = ceil($forum_page['num_users'] / 50);
 59: $forum_page['page'] = (!isset($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $forum_page['num_pages']) ? 1 : intval($_GET['p']); 59: $forum_page['page'] = (!isset($_GET['p']) || !is_numeric($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $forum_page['num_pages']) ? 1 : intval($_GET['p']);
 60: $forum_page['start_from'] = 50 * ($forum_page['page'] - 1); 60: $forum_page['start_from'] = 50 * ($forum_page['page'] - 1);
 61: $forum_page['finish_at'] = min(($forum_page['start_from'] + 50), ($forum_page['num_users'])); 61: $forum_page['finish_at'] = min(($forum_page['start_from'] + 50), ($forum_page['num_users']));
 62:  62: 
 68:     $forum_page['items_info'] = $lang_ul['Users']; 68:     $forum_page['items_info'] = $lang_ul['Users'];
 69:  69: 
 70: // Generate paging links 70: // Generate paging links
 71: $forum_page['page_post']['paging'] = '<p class="paging"><span class="pages">'.$lang_common['Pages'].'</span> '.paginate($forum_page['num_pages'], $forum_page['page'], $forum_url['users_browse'], $lang_common['Paging separator'], array($forum_page['show_group'], $forum_page['sort_by'], strtoupper($forum_page['sort_dir']), ($forum_page['username'] != '') ? urlencode($forum_page['username']) : '-')).'</p>'; 71: $forum_page['page_post']['paging'] = '<p class="paging"><span class="pages">'.$lang_common['Pages'].'</span> '.paginate($forum_page['num_pages'], $forum_page['page'], $forum_url['users_browse'], $lang_common['Paging separator'], array($forum_page['show_group'], $forum_page['sort_by'], $forum_page['sort_dir'], ($forum_page['username'] != '') ? urlencode($forum_page['username']) : '-')).'</p>';
 72:  72: 
 73: // Navigation links for header and page numbering for title/meta description 73: // Navigation links for header and page numbering for title/meta description
 74: if ($forum_page['page'] < $forum_page['num_pages']) 74: if ($forum_page['page'] < $forum_page['num_pages'])
 75: { 75: {
 76:     $forum_page['nav']['last'] = '<link rel="last" href="'.forum_sublink($forum_url['users_browse'], $forum_url['page'], $forum_page['num_pages'], array($forum_page['show_group'], $forum_page['sort_by'], strtoupper($forum_page['sort_dir']), ($forum_page['username'] != '') ? urlencode($forum_page['username']) : '-')).'" title="'.$lang_common['Page'].' '.$forum_page['num_pages'].'" />'; 76:     $forum_page['nav']['last'] = '<link rel="last" href="'.forum_sublink($forum_url['users_browse'], $forum_url['page'], $forum_page['num_pages'], array($forum_page['show_group'], $forum_page['sort_by'], $forum_page['sort_dir'], ($forum_page['username'] != '') ? urlencode($forum_page['username']) : '-')).'" title="'.$lang_common['Page'].' '.$forum_page['num_pages'].'" />';
 77:     $forum_page['nav']['next'] = '<link rel="next" href="'.forum_sublink($forum_url['users_browse'], $forum_url['page'], ($forum_page['page'] + 1), array($forum_page['show_group'], $forum_page['sort_by'], strtoupper($forum_page['sort_dir']), ($forum_page['username'] != '') ? urlencode($forum_page['username']) : '-')).'" title="'.$lang_common['Page'].' '.($forum_page['page'] + 1).'" />'; 77:     $forum_page['nav']['next'] = '<link rel="next" href="'.forum_sublink($forum_url['users_browse'], $forum_url['page'], ($forum_page['page'] + 1), array($forum_page['show_group'], $forum_page['sort_by'], $forum_page['sort_dir'], ($forum_page['username'] != '') ? urlencode($forum_page['username']) : '-')).'" title="'.$lang_common['Page'].' '.($forum_page['page'] + 1).'" />';
 78: } 78: }
 79: if ($forum_page['page'] > 1) 79: if ($forum_page['page'] > 1)
 80: { 80: {
 81:     $forum_page['nav']['prev'] = '<link rel="prev" href="'.forum_sublink($forum_url['users_browse'], $forum_url['page'], ($forum_page['page'] - 1), array($forum_page['show_group'], $forum_page['sort_by'], strtoupper($forum_page['sort_dir']), ($forum_page['username'] != '') ? urlencode($forum_page['username']) : '-')).'" title="'.$lang_common['Page'].' '.($forum_page['page'] - 1).'" />'; 81:     $forum_page['nav']['prev'] = '<link rel="prev" href="'.forum_sublink($forum_url['users_browse'], $forum_url['page'], ($forum_page['page'] - 1), array($forum_page['show_group'], $forum_page['sort_by'], $forum_page['sort_dir'], ($forum_page['username'] != '') ? urlencode($forum_page['username']) : '-')).'" title="'.$lang_common['Page'].' '.($forum_page['page'] - 1).'" />';
 82:     $forum_page['nav']['first'] = '<link rel="first" href="'.forum_link($forum_url['users_browse'], array($forum_page['show_group'], $forum_page['sort_by'], strtoupper($forum_page['sort_dir']), ($forum_page['username'] != '') ? urlencode($forum_page['username']) : '-')).'" title="'.$lang_common['Page'].' 1" />'; 82:     $forum_page['nav']['first'] = '<link rel="first" href="'.forum_link($forum_url['users_browse'], array($forum_page['show_group'], $forum_page['sort_by'], $forum_page['sort_dir'], ($forum_page['username'] != '') ? urlencode($forum_page['username']) : '-')).'" title="'.$lang_common['Page'].' 1" />';
 83: } 83: }
 84:  84: 
 85: // Setup main options 85: // Setup main options
121: <?php121: <?php
122: 122: 
123:     if (!empty($forum_page['main_head_options']))123:     if (!empty($forum_page['main_head_options']))
124:         echo "\n\t\t\t".'<p class="options">'.implode(' ', $forum_page['main_head_options']).'</p>';124:         echo "\t\t".'<p class="options">'.implode(' ', $forum_page['main_head_options']).'</p>'."\n";
125: 125: 
126: ?>126: ?>
127:         <h2 class="hn"><span><?php echo $forum_page['items_info'] ?></span></h2>127:         <h2 class="hn"><span><?php echo $forum_page['items_info'] ?></span></h2>
133:             <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">133:             <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">
134:                 <legend class="group-legend"><strong><?php echo $lang_ul['User find legend'] ?></strong></legend>134:                 <legend class="group-legend"><strong><?php echo $lang_ul['User find legend'] ?></strong></legend>
135: <?php ($hook = get_hook('ul_pre_username')) ? eval($hook) : null; ?>135: <?php ($hook = get_hook('ul_pre_username')) ? eval($hook) : null; ?>
136: <?php if ($forum_user['g_search_users'] == '1'): ?>                <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">136: <?php if ($forum_user['g_search_users'] == '1'): ?>
 137:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
137:                     <div class="sf-box text">138:                     <div class="sf-box text">
138:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_ul['Search for username'] ?></span> <small><?php echo $lang_ul['Username help'] ?></small></label><br />139:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_ul['Search for username'] ?></span> <small><?php echo $lang_ul['Username help'] ?></small></label><br />
139:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="username" value="<?php echo forum_htmlencode($forum_page['username']) ?>" size="35" maxlength="25" /></span>140:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="username" value="<?php echo forum_htmlencode($forum_page['username']) ?>" size="35" maxlength="25" /></span>
180:                         <span class="fld-input"><select id="fld<?php echo $forum_page['fld_count'] ?>" name="sort_by">181:                         <span class="fld-input"><select id="fld<?php echo $forum_page['fld_count'] ?>" name="sort_by">
181:                         <option value="username"<?php if ($forum_page['sort_by'] == 'username') echo ' selected="selected"' ?>><?php echo $lang_ul['Username'] ?></option>182:                         <option value="username"<?php if ($forum_page['sort_by'] == 'username') echo ' selected="selected"' ?>><?php echo $lang_ul['Username'] ?></option>
182:                         <option value="registered"<?php if ($forum_page['sort_by'] == 'registered') echo ' selected="selected"' ?>><?php echo $lang_ul['Registered'] ?></option>183:                         <option value="registered"<?php if ($forum_page['sort_by'] == 'registered') echo ' selected="selected"' ?>><?php echo $lang_ul['Registered'] ?></option>
183: <?php if ($forum_page['show_post_count']): ?>                        <option value="num_posts"<?php if ($forum_page['sort_by'] == 'num_posts') echo ' selected="selected"' ?>><?php echo $lang_ul['No of posts'] ?></option>184: <?php if ($forum_page['show_post_count']): ?>
184: <?php endif; ($hook = get_hook('ul_new_sort_by_option')) ? eval($hook) : null; ?>                        </select></span>185:                         <option value="num_posts"<?php if ($forum_page['sort_by'] == 'num_posts') echo ' selected="selected"' ?>><?php echo $lang_ul['No of posts'] ?></option>
 186: <?php endif; ($hook = get_hook('ul_new_sort_by_option')) ? eval($hook) : null; ?>
 187:                         </select></span>
185:                     </div>188:                     </div>
186:                 </div>189:                 </div>
187: <?php ($hook = get_hook('ul_pre_sort_order_fieldset')) ? eval($hook) : null; ?>190: <?php ($hook = get_hook('ul_pre_sort_order_fieldset')) ? eval($hook) : null; ?>
310:         echo "\n\t\t\t".'<p class="options">'.implode(' ', $forum_page['main_foot_options']).'</p>';313:         echo "\n\t\t\t".'<p class="options">'.implode(' ', $forum_page['main_foot_options']).'</p>';
311: 314: 
312: ?>315: ?>
313:         <p><?php echo $forum_page['items_info'] ?></p>316:         <h2 class="hn"><span><?php echo $forum_page['items_info'] ?></span></h2>
314:     </div>317:     </div>
315: <?php318: <?php
316: 319: 


punbb-1.3.1/viewforum.php punbb-1.3.4/viewforum.php
  2: /**  2: /**
  3:  * Lists the topics in the specified forum.  3:  * Lists the topics in the specified forum.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
 70:  70: 
 71: // Determine the topic offset (based on $_GET['p']) 71: // Determine the topic offset (based on $_GET['p'])
 72: $forum_page['num_pages'] = ceil($cur_forum['num_topics'] / $forum_user['disp_topics']); 72: $forum_page['num_pages'] = ceil($cur_forum['num_topics'] / $forum_user['disp_topics']);
 73: $forum_page['page'] = (!isset($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $forum_page['num_pages']) ? 1 : $_GET['p']; 73: $forum_page['page'] = (!isset($_GET['p']) || !is_numeric($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $forum_page['num_pages']) ? 1 : $_GET['p'];
 74: $forum_page['start_from'] = $forum_user['disp_topics'] * ($forum_page['page'] - 1); 74: $forum_page['start_from'] = $forum_user['disp_topics'] * ($forum_page['page'] - 1);
 75: $forum_page['finish_at'] = min(($forum_page['start_from'] + $forum_user['disp_topics']), ($cur_forum['num_topics'])); 75: $forum_page['finish_at'] = min(($forum_page['start_from'] + $forum_user['disp_topics']), ($cur_forum['num_topics']));
 76: $forum_page['items_info'] = generate_items_info($lang_forum['Topics'], ($forum_page['start_from'] + 1), $cur_forum['num_topics']); 76: $forum_page['items_info'] = generate_items_info($lang_forum['Topics'], ($forum_page['start_from'] + 1), $cur_forum['num_topics']);
204: 204: 
205:         // Start from scratch205:         // Start from scratch
206:         $forum_page['item_subject'] = $forum_page['item_body'] = $forum_page['item_status'] = $forum_page['item_nav'] = $forum_page['item_title'] = $forum_page['item_title_status'] = array();206:         $forum_page['item_subject'] = $forum_page['item_body'] = $forum_page['item_status'] = $forum_page['item_nav'] = $forum_page['item_title'] = $forum_page['item_title_status'] = array();
207:         $forum_page['item_indicator'] = ''; 
208: 207: 
209:         if ($forum_config['o_censoring'] == '1')208:         if ($forum_config['o_censoring'] == '1')
210:             $cur_topic['subject'] = censor_words($cur_topic['subject']);209:             $cur_topic['subject'] = censor_words($cur_topic['subject']);
211: 210: 
 211:         $forum_page['item_subject']['starter'] = '<span class="item-starter">'.sprintf($lang_forum['Topic starter'], forum_htmlencode($cur_topic['poster'])).'</span>';
 212: 
212:         if ($cur_topic['moved_to'] != null)213:         if ($cur_topic['moved_to'] != null)
213:         {214:         {
214:             $forum_page['item_status']['moved'] = 'moved';215:             $forum_page['item_status']['moved'] = 'moved';
259: 260: 
260:             $forum_page['item_body']['subject']['title'] = '<h3 class="hn"><span class="item-num">'.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span> '.implode(' ', $forum_page['item_title']).'</h3>';261:             $forum_page['item_body']['subject']['title'] = '<h3 class="hn"><span class="item-num">'.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span> '.implode(' ', $forum_page['item_title']).'</h3>';
261: 262: 
262:             // Assemble the Topic subject 
263:  
264:             if (empty($forum_page['item_status']))263:             if (empty($forum_page['item_status']))
265:                 $forum_page['item_status']['normal'] = 'normal';264:                 $forum_page['item_status']['normal'] = 'normal';
266: 265: 
281:             if (!empty($forum_page['item_nav']))280:             if (!empty($forum_page['item_nav']))
282:                 $forum_page['item_subject']['nav'] = '<span class="item-nav">'.sprintf($lang_forum['Topic navigation'], implode('&#160;&#160;', $forum_page['item_nav'])).'</span>';281:                 $forum_page['item_subject']['nav'] = '<span class="item-nav">'.sprintf($lang_forum['Topic navigation'], implode('&#160;&#160;', $forum_page['item_nav'])).'</span>';
283: 282: 
284:             ($hook = get_hook('vf_topic_loop_normal_topic_pre_item_subject_merge')) ? eval($hook) : null;283:             // Assemble the Topic subject
285: 284: 
286:             $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>';285:             $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>';
287: 286: 
291:             $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>';290:             $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>';
292:         }291:         }
293: 292: 
294:         $forum_page['item_subject']['starter'] = '<span class="item-starter">'.sprintf($lang_forum['Topic starter'], '<cite>'.forum_htmlencode($cur_topic['poster']).'</cite>').'</span>';293:         ($hook = get_hook('vf_row_pre_item_subject_merge')) ? eval($hook) : null;
295:         $forum_page['item_body']['subject']['desc'] = implode(' ', $forum_page['item_subject']);294: 
 295:         $forum_page['item_body']['subject']['desc'] = '<p>'.implode(' ', $forum_page['item_subject']).'</p>';
296: 296: 
297:         ($hook = get_hook('vf_row_pre_item_status_merge')) ? eval($hook) : null;297:         ($hook = get_hook('vf_row_pre_item_status_merge')) ? eval($hook) : null;
298: 298: 
316: 316: 
317: ?>317: ?>
318:     </div>318:     </div>
319:         <div class="main-foot">319:     <div class="main-foot">
320: <?php320: <?php
321: 321: 
322:     if (!empty($forum_page['main_foot_options']))322:     if (!empty($forum_page['main_foot_options']))
323:         echo "\n\t\t\t".'<p class="options">'.implode(' ', $forum_page['main_foot_options']).'</p>';323:         echo "\n\t\t\t".'<p class="options">'.implode(' ', $forum_page['main_foot_options']).'</p>';
324: 324: 
325: ?>325: ?>
326:         <p><?php echo $forum_page['items_info'] ?></p>326:         <h2 class="hn"><span><?php echo $forum_page['items_info'] ?></span></h2>
327:     </div>327:     </div>
328: <?php328: <?php
329: 329: 
349:         </div>349:         </div>
350:     </div>350:     </div>
351:     <div class="main-foot">351:     <div class="main-foot">
352:         <p><?php echo $lang_forum['Empty forum'] ?></p>352:         <h2 class="hn"><span><?php echo $lang_forum['Empty forum'] ?></span></h2>
353:     </div>353:     </div>
354: <?php354: <?php
355: 355: 


punbb-1.3.1/viewtopic.php punbb-1.3.4/viewtopic.php
  2: /**  2: /**
  3:  * Lists the posts in the specified topic.  3:  * Lists the posts in the specified topic.
  4:  *  4:  *
  5:  * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org  5:  * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org
  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher  6:  * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
  7:  * @package PunBB  7:  * @package PunBB
  8:  */  8:  */
113: 113: 
114: // Fetch some info about the topic114: // Fetch some info about the topic
115: $query = array(115: $query = array(
116:     'SELECT'    => 't.subject, t.posted, t.poster, t.first_post_id, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies',116:     'SELECT'    => 't.subject, t.first_post_id, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies',
117:     'FROM'        => 'topics AS t',117:     'FROM'        => 'topics AS t',
118:     'JOINS'        => array(118:     'JOINS'        => array(
119:         array(119:         array(
128:     'WHERE'        => '(fp.read_forum IS NULL OR fp.read_forum=1) AND t.id='.$id.' AND t.moved_to IS NULL'128:     'WHERE'        => '(fp.read_forum IS NULL OR fp.read_forum=1) AND t.id='.$id.' AND t.moved_to IS NULL'
129: );129: );
130: 130: 
131: if (!$forum_user['is_guest'])131: if (!$forum_user['is_guest'] && $forum_config['o_subscriptions'] == '1')
132: {132: {
133:     $query['SELECT'] .= ', s.user_id AS is_subscribed';133:     $query['SELECT'] .= ', s.user_id AS is_subscribed';
134:     $query['JOINS'][] = array(134:     $query['JOINS'][] = array(
166: 166: 
167: // Determine the post offset (based on $_GET['p'])167: // Determine the post offset (based on $_GET['p'])
168: $forum_page['num_pages'] = ceil(($cur_topic['num_replies'] + 1) / $forum_user['disp_posts']);168: $forum_page['num_pages'] = ceil(($cur_topic['num_replies'] + 1) / $forum_user['disp_posts']);
169: $forum_page['page'] = (!isset($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $forum_page['num_pages']) ? 1 : $_GET['p'];169: $forum_page['page'] = (!isset($_GET['p']) || !is_numeric($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $forum_page['num_pages']) ? 1 : $_GET['p'];
170: $forum_page['start_from'] = $forum_user['disp_posts'] * ($forum_page['page'] - 1);170: $forum_page['start_from'] = $forum_user['disp_posts'] * ($forum_page['page'] - 1);
171: $forum_page['finish_at'] = min(($forum_page['start_from'] + $forum_user['disp_posts']), ($cur_topic['num_replies'] + 1));171: $forum_page['finish_at'] = min(($forum_page['start_from'] + $forum_user['disp_posts']), ($cur_topic['num_replies'] + 1));
172: $forum_page['items_info'] =  generate_items_info($lang_topic['Posts'], ($forum_page['start_from'] + 1), ($cur_topic['num_replies'] + 1));172: $forum_page['items_info'] =  generate_items_info($lang_topic['Posts'], ($forum_page['start_from'] + 1), ($cur_topic['num_replies'] + 1));
193: 193: 
194: if ($forum_user['may_post'])194: if ($forum_user['may_post'])
195:     $forum_page['page_post']['posting'] = '<p class="posting"><a class="newpost" href="'.forum_link($forum_url['new_reply'], $id).'"><span>'.$lang_topic['Post reply'].'</span></a></p>';195:     $forum_page['page_post']['posting'] = '<p class="posting"><a class="newpost" href="'.forum_link($forum_url['new_reply'], $id).'"><span>'.$lang_topic['Post reply'].'</span></a></p>';
196: else if (!$forum_user['may_post'] && !$forum_user['is_guest'] && $cur_topic['closed'] != '1')196: else if ($forum_user['is_guest'])
197:     $forum_page['page_post']['posting'] = '<p class="posting">'.$lang_topic['No permission'].'</p>'; 
198: if (!$forum_user['may_post'] && $forum_user['is_guest']) 
199:     $forum_page['page_post']['posting'] = '<p class="posting">'.sprintf($lang_topic['Login to post'], '<a href="'.forum_link($forum_url['login']).'">'.$lang_common['login'].'</a>', '<a href="'.forum_link($forum_url['register']).'">'.$lang_common['register'].'</a>').'</p>';197:     $forum_page['page_post']['posting'] = '<p class="posting">'.sprintf($lang_topic['Login to post'], '<a href="'.forum_link($forum_url['login']).'">'.$lang_common['login'].'</a>', '<a href="'.forum_link($forum_url['register']).'">'.$lang_common['register'].'</a>').'</p>';
 198: else if ($cur_topic['closed'] == '1')
 199:     $forum_page['page_post']['posting'] = '<p class="posting">'.$lang_topic['Topic closed info'].'</p>';
 200: else
 201:     $forum_page['page_post']['posting'] = '<p class="posting">'.$lang_topic['No permission'].'</p>';
200: 202: 
201: // Setup main options203: // Setup main options
202: $forum_page['main_title'] = $lang_topic['Topic options'];204: $forum_page['main_title'] = $lang_topic['Topic options'];
203: $forum_page['main_head_options'] = array(205: $forum_page['main_head_options'] = array(
204:     'rss' => '<span class="feed first-item"><a class="feed-option" href="'.forum_link($forum_url['topic_rss'], $id).'">'.$lang_topic['RSS topic feed'].'</a></span>'206:     'rss' => '<span class="feed first-item"><a class="feed" href="'.forum_link($forum_url['topic_rss'], $id).'">'.$lang_topic['RSS topic feed'].'</a></span>'
205: );207: );
206: 208: 
207: if (!$forum_user['is_guest'] && $forum_config['o_subscriptions'] == '1')209: if (!$forum_user['is_guest'] && $forum_config['o_subscriptions'] == '1')
331:         if ($cur_post['poster_id'] > 1)333:         if ($cur_post['poster_id'] > 1)
332:         {334:         {
333:             if ($forum_config['o_avatars'] == '1' && $forum_user['show_avatars'] != '0')335:             if ($forum_config['o_avatars'] == '1' && $forum_user['show_avatars'] != '0')
 336:             {
334:                 $forum_page['avatar_markup'] = generate_avatar_markup($cur_post['poster_id']);337:                 $forum_page['avatar_markup'] = generate_avatar_markup($cur_post['poster_id']);
335: 338: 
336:             if (!empty($forum_page['avatar_markup']))339:                 if (!empty($forum_page['avatar_markup']))
337:                 $forum_page['author_ident']['avatar'] = '<li class="useravatar">'.$forum_page['avatar_markup'].'</li>';340:                     $forum_page['author_ident']['avatar'] = '<li class="useravatar">'.$forum_page['avatar_markup'].'</li>';
 341:             }
338: 342: 
339:             $forum_page['author_ident']['username'] = '<li class="username">'.(($forum_user['g_view_users'] == '1') ? '<a title="'.sprintf($lang_topic['Go to profile'], forum_htmlencode($cur_post['username'])).'" href="'.forum_link($forum_url['user'], $cur_post['poster_id']).'">'.forum_htmlencode($cur_post['username']).'</a>' : '<strong>'.forum_htmlencode($cur_post['username']).'</strong>').'</li>';343:             $forum_page['author_ident']['username'] = '<li class="username">'.(($forum_user['g_view_users'] == '1') ? '<a title="'.sprintf($lang_topic['Go to profile'], forum_htmlencode($cur_post['username'])).'" href="'.forum_link($forum_url['user'], $cur_post['poster_id']).'">'.forum_htmlencode($cur_post['username']).'</a>' : '<strong>'.forum_htmlencode($cur_post['username']).'</strong>').'</li>';
340:             $forum_page['author_ident']['usertitle'] = '<li class="usertitle"><span>'.get_title($cur_post).'</span></li>';344:             $forum_page['author_ident']['usertitle'] = '<li class="usertitle"><span>'.get_title($cur_post).'</span></li>';
365:                     if ($forum_config['o_censoring'] == '1')369:                     if ($forum_config['o_censoring'] == '1')
366:                         $cur_post['location'] = censor_words($cur_post['location']);370:                         $cur_post['location'] = censor_words($cur_post['location']);
367: 371: 
368:                     $forum_page['author_info']['from'] = '<li><span>'.$lang_topic['From'].' <strong> '.forum_htmlencode($cur_post['location']).'</strong></span></li>';372:                     $forum_page['author_info']['from'] = '<li><span>'.$lang_topic['From'].' <strong>'.forum_htmlencode($cur_post['location']).'</strong></span></li>';
369:                 }373:                 }
370: 374: 
371:                 $forum_page['author_info']['registered'] = '<li><span>'.$lang_topic['Registered'].' <strong> '.format_time($cur_post['registered'], 1).'</strong></span></li>';375:                 $forum_page['author_info']['registered'] = '<li><span>'.$lang_topic['Registered'].' <strong>'.format_time($cur_post['registered'], 1).'</strong></span></li>';
372: 376: 
373:                 if ($forum_config['o_show_post_count'] == '1' || $forum_user['is_admmod'])377:                 if ($forum_config['o_show_post_count'] == '1' || $forum_user['is_admmod'])
374:                     $forum_page['author_info']['posts'] = '<li><span>'.$lang_topic['Posts info'].' <strong> '.forum_number_format($cur_post['num_posts']).'</strong></span></li>';378:                     $forum_page['author_info']['posts'] = '<li><span>'.$lang_topic['Posts info'].' <strong>'.forum_number_format($cur_post['num_posts']).'</strong></span></li>';
375:             }379:             }
376: 380: 
377:             if ($forum_user['is_admmod'])381:             if ($forum_user['is_admmod'])
378:             {382:             {
379:                 if ($cur_post['admin_note'] != '')383:                 if ($cur_post['admin_note'] != '')
380:                     $forum_page['author_info']['note'] = '<li><span>'.$lang_topic['Note'].' <strong> '.forum_htmlencode($cur_post['admin_note']).'</strong></span></li>';384:                     $forum_page['author_info']['note'] = '<li><span>'.$lang_topic['Note'].' <strong>'.forum_htmlencode($cur_post['admin_note']).'</strong></span></li>';
381:             }385:             }
382:         }386:         }
383:     }387:     }
396:             if ($cur_post['poster_id'] > 1)400:             if ($cur_post['poster_id'] > 1)
397:             {401:             {
398:                 if ($cur_post['url'] != '')402:                 if ($cur_post['url'] != '')
399:                     $forum_page['post_contacts']['url'] = '<span class="user-url'.(!empty($forum_page['post_contacts']) ? ' first-item' : '').'"><a class="external" href="'.forum_htmlencode(($forum_config['o_censoring'] == '1') ? censor_words($cur_post['url']) : $cur_post['url']).'">'.sprintf($lang_topic['Visit website'], '<span>'.sprintf($lang_topic['User possessive'], forum_htmlencode($cur_post['username'])).'</span>').'</a></span>';403:                     $forum_page['post_contacts']['url'] = '<span class="user-url'.(empty($forum_page['post_contacts']) ? ' first-item' : '').'"><a class="external" href="'.forum_htmlencode(($forum_config['o_censoring'] == '1') ? censor_words($cur_post['url']) : $cur_post['url']).'">'.sprintf($lang_topic['Visit website'], '<span>'.sprintf($lang_topic['User possessive'], forum_htmlencode($cur_post['username'])).'</span>').'</a></span>';
400:                 if ((($cur_post['email_setting'] == '0' && !$forum_user['is_guest']) || $forum_user['is_admmod']) && $forum_user['g_send_email'] == '1')404:                 if ((($cur_post['email_setting'] == '0' && !$forum_user['is_guest']) || $forum_user['is_admmod']) && $forum_user['g_send_email'] == '1')
401:                     $forum_page['post_contacts']['email'] = '<span class="user-email'.(!empty($forum_page['post_contacts']) ? ' first-item' : '').'"><a href="mailto:'.forum_htmlencode($cur_post['email']).'">'.$lang_topic['E-mail'].'<span>&#160;'.forum_htmlencode($cur_post['username']).'</span></a></span>';405:                     $forum_page['post_contacts']['email'] = '<span class="user-email'.(empty($forum_page['post_contacts']) ? ' first-item' : '').'"><a href="mailto:'.forum_htmlencode($cur_post['email']).'">'.$lang_topic['E-mail'].'<span>&#160;'.forum_htmlencode($cur_post['username']).'</span></a></span>';
402:                 else if ($cur_post['email_setting'] == '1' && !$forum_user['is_guest'] && $forum_user['g_send_email'] == '1')406:                 else if ($cur_post['email_setting'] == '1' && !$forum_user['is_guest'] && $forum_user['g_send_email'] == '1')
403:                     $forum_page['post_contacts']['email'] = '<span class="user-email'.(!empty($forum_page['post_contacts']) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['email'], $cur_post['poster_id']).'">'.$lang_topic['E-mail'].'<span>&#160;'.forum_htmlencode($cur_post['username']).'</span></a></span>';407:                     $forum_page['post_contacts']['email'] = '<span class="user-email'.(empty($forum_page['post_contacts']) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['email'], $cur_post['poster_id']).'">'.$lang_topic['E-mail'].'<span>&#160;'.forum_htmlencode($cur_post['username']).'</span></a></span>';
404:             }408:             }
405:             else409:             else
406:             {410:             {
407:                 if ($cur_post['poster_email'] != '' && !$forum_user['is_guest'] && $forum_user['g_send_email'] == '1')411:                 if ($cur_post['poster_email'] != '' && !$forum_user['is_guest'] && $forum_user['g_send_email'] == '1')
408:                     $forum_page['post_contacts']['email'] = '<span class="user-email'.(!empty($forum_page['post_contacts']) ? ' first-item' : '').'"><a href="mailto:'.forum_htmlencode($cur_post['poster_email']).'">'.$lang_topic['E-mail'].'<span>&#160;'.forum_htmlencode($cur_post['username']).'</span></a></span>';412:                     $forum_page['post_contacts']['email'] = '<span class="user-email'.(empty($forum_page['post_contacts']) ? ' first-item' : '').'"><a href="mailto:'.forum_htmlencode($cur_post['poster_email']).'">'.$lang_topic['E-mail'].'<span>&#160;'.forum_htmlencode($cur_post['username']).'</span></a></span>';
409:             }413:             }
410:         }414:         }
411: 415: 
418:     // Generate the post options links422:     // Generate the post options links
419:     if (!$forum_user['is_guest'])423:     if (!$forum_user['is_guest'])
420:     {424:     {
421:         $forum_page['post_actions']['report'] = '<span class="report-post'.(!empty($forum_page['post_actions']) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['report'], $cur_post['id']).'">'.$lang_topic['Report'].'<span> '.$lang_topic['Post'].' '.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span></a></span>';425:         $forum_page['post_actions']['report'] = '<span class="report-post'.(empty($forum_page['post_actions']) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['report'], $cur_post['id']).'">'.$lang_topic['Report'].'<span> '.$lang_topic['Post'].' '.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span></a></span>';
422: 426: 
423:         if (!$forum_page['is_admmod'])427:         if (!$forum_page['is_admmod'])
424:         {428:         {
427:                 if ($cur_post['poster_id'] == $forum_user['id'])431:                 if ($cur_post['poster_id'] == $forum_user['id'])
428:                 {432:                 {
429:                     if (($forum_page['start_from'] + $forum_page['item_count']) == 1 && $forum_user['g_delete_topics'] == '1')433:                     if (($forum_page['start_from'] + $forum_page['item_count']) == 1 && $forum_user['g_delete_topics'] == '1')
430:                         $forum_page['post_actions']['delete'] = '<span class="delete-topic'.(!empty($forum_page['post_actions']) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['delete'], $cur_topic['first_post_id']).'">'.$lang_topic['Delete topic'].'</a></span>';434:                         $forum_page['post_actions']['delete'] = '<span class="delete-topic'.(empty($forum_page['post_actions']) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['delete'], $cur_topic['first_post_id']).'">'.$lang_topic['Delete topic'].'</a></span>';
431:                     if (($forum_page['start_from'] + $forum_page['item_count']) > 1 && $forum_user['g_delete_posts'] == '1')435:                     if (($forum_page['start_from'] + $forum_page['item_count']) > 1 && $forum_user['g_delete_posts'] == '1')
432:                         $forum_page['post_actions']['delete'] = '<span class="delete-post'.(!empty($forum_page['post_actions']) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['delete'], $cur_post['id']).'">'.$lang_topic['Delete'].'<span> '.$lang_topic['Post'].' '.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span></a></span>';436:                         $forum_page['post_actions']['delete'] = '<span class="delete-post'.(empty($forum_page['post_actions']) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['delete'], $cur_post['id']).'">'.$lang_topic['Delete'].'<span> '.$lang_topic['Post'].' '.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span></a></span>';
433:                     if ($forum_user['g_edit_posts'] == '1')437:                     if ($forum_user['g_edit_posts'] == '1')
434:                         $forum_page['post_actions']['edit'] = '<span class="edit-post'.(!empty($forum_page['post_actions']) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['edit'], $cur_post['id']).'">'.$lang_topic['Edit'].'<span> '.$lang_topic['Post'].' '.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span></a></span>';438:                         $forum_page['post_actions']['edit'] = '<span class="edit-post'.(empty($forum_page['post_actions']) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['edit'], $cur_post['id']).'">'.$lang_topic['Edit'].'<span> '.$lang_topic['Post'].' '.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span></a></span>';
435:                 }439:                 }
436: 440: 
437:                 if (($cur_topic['post_replies'] == '' && $forum_user['g_post_replies'] == '1') || $cur_topic['post_replies'] == '1')441:                 if (($cur_topic['post_replies'] == '' && $forum_user['g_post_replies'] == '1') || $cur_topic['post_replies'] == '1')
438:                     $forum_page['post_actions']['quote'] = '<span class="quote-post'.(!empty($forum_page['post_actions']) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['quote'], array($id, $cur_post['id'])).'">'.$lang_topic['Quote'].'<span> '.$lang_topic['Post'].' '.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span></a></span>';442:                     $forum_page['post_actions']['quote'] = '<span class="quote-post'.(empty($forum_page['post_actions']) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['quote'], array($id, $cur_post['id'])).'">'.$lang_topic['Quote'].'<span> '.$lang_topic['Post'].' '.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span></a></span>';
439:             }443:             }
440:         }444:         }
441:         else445:         else
442:         {446:         {
443:             if (($forum_page['start_from'] + $forum_page['item_count']) == 1)447:             if (($forum_page['start_from'] + $forum_page['item_count']) == 1)
444:                 $forum_page['post_actions']['delete'] = '<span class="delete-topic'.(!empty($forum_page['post_actions']) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['delete'], $cur_topic['first_post_id']).'">'.$lang_topic['Delete topic'].'</a></span>';448:                 $forum_page['post_actions']['delete'] = '<span class="delete-topic'.(empty($forum_page['post_actions']) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['delete'], $cur_topic['first_post_id']).'">'.$lang_topic['Delete topic'].'</a></span>';
445:             else449:             else
446:                 $forum_page['post_actions']['delete'] = '<span class="delete-post'.(!empty($forum_page['post_actions']) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['delete'], $cur_post['id']).'">'.$lang_topic['Delete'].'<span> '.$lang_topic['Post'].' '.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span></a></span>';450:                 $forum_page['post_actions']['delete'] = '<span class="delete-post'.(empty($forum_page['post_actions']) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['delete'], $cur_post['id']).'">'.$lang_topic['Delete'].'<span> '.$lang_topic['Post'].' '.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span></a></span>';
447: 451: 
448:             $forum_page['post_actions']['edit'] = '<span class="edit-post'.(!empty($forum_page['post_actions']) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['edit'], $cur_post['id']).'">'.$lang_topic['Edit'].'<span> '.$lang_topic['Post'].' '.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span></a></span>';452:             $forum_page['post_actions']['edit'] = '<span class="edit-post'.(empty($forum_page['post_actions']) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['edit'], $cur_post['id']).'">'.$lang_topic['Edit'].'<span> '.$lang_topic['Post'].' '.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span></a></span>';
449:             $forum_page['post_actions']['quote'] = '<span class="quote-post'.(!empty($forum_page['post_actions']) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['quote'], array($id, $cur_post['id'])).'">'.$lang_topic['Quote'].'<span> '.$lang_topic['Post'].' '.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span></a></span>';453:             $forum_page['post_actions']['quote'] = '<span class="quote-post'.(empty($forum_page['post_actions']) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['quote'], array($id, $cur_post['id'])).'">'.$lang_topic['Quote'].'<span> '.$lang_topic['Post'].' '.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span></a></span>';
450:         }454:         }
451:     }455:     }
452:     else456:     else
454:         if ($cur_topic['closed'] == '0')458:         if ($cur_topic['closed'] == '0')
455:         {459:         {
456:             if (($cur_topic['post_replies'] == '' && $forum_user['g_post_replies'] == '1') || $cur_topic['post_replies'] == '1')460:             if (($cur_topic['post_replies'] == '' && $forum_user['g_post_replies'] == '1') || $cur_topic['post_replies'] == '1')
457:                 $forum_page['post_actions']['quote'] = '<span class="report-post'.(!empty($forum_page['post_actions']) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['quote'], array($id, $cur_post['id'])).'">'.$lang_topic['Quote'].'<span> '.$lang_topic['Post'].' '.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span></a></span>';461:                 $forum_page['post_actions']['quote'] = '<span class="report-post'.(empty($forum_page['post_actions']) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['quote'], array($id, $cur_post['id'])).'">'.$lang_topic['Quote'].'<span> '.$lang_topic['Post'].' '.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span></a></span>';
458:         }462:         }
459:     }463:     }
460: 464: 
540: <?php ($hook = get_hook('vt_row_new_post_entry_data')) ? eval($hook) : null; ?>544: <?php ($hook = get_hook('vt_row_new_post_entry_data')) ? eval($hook) : null; ?>
541:                 </div>545:                 </div>
542:             </div>546:             </div>
543: <?php if (!empty($forum_page['post_options'])): ?>            <div class="postfoot">547: <?php if (!empty($forum_page['post_options'])): ?>
 548:             <div class="postfoot">
544:                 <div class="post-options">549:                 <div class="post-options">
545:                     <?php echo implode("\n\t\t\t\t\t", $forum_page['post_options'])."\n" ?>550:                     <?php echo implode("\n\t\t\t\t\t", $forum_page['post_options'])."\n" ?>
546:                 </div>551:                 </div>
547:             </div>552:             </div>
548: <?php endif; ?>        </div>553: <?php endif; ?>
 554:         </div>
549: <?php555: <?php
550: 556: 
551: }557: }
553: ?>559: ?>
554:     </div>560:     </div>
555: 561: 
556:         <div class="main-foot">562:     <div class="main-foot">
557: <?php563: <?php
558: 564: 
559:     if (!empty($forum_page['main_foot_options']))565:     if (!empty($forum_page['main_foot_options']))
560:         echo "\n\t\t\t".'<p class="options">'.implode(' ', $forum_page['main_foot_options']).'</p>';566:         echo "\n\t\t\t".'<p class="options">'.implode(' ', $forum_page['main_foot_options']).'</p>';
561: 567: 
562: ?>568: ?>
563:         <p><?php echo $forum_page['items_info'] ?></p>569:         <h2 class="hn"><span><?php echo $forum_page['items_info'] ?></span></h2>
564:     </div>570:     </div>
565: <?php571: <?php
566: 572: 


hdiff - version: 2.1.0 (modified)