PunBB 1.3 to 1.3.5 changes Legend
Lines removed 
Lines changed
 Lines added

punbb-1.3/README punbb-1.3.5/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/admin/bans.php punbb-1.3.5/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:  */
 24: require FORUM_ROOT.'lang/'.$forum_user['language'].'/admin_common.php'; 24: require FORUM_ROOT.'lang/'.$forum_user['language'].'/admin_common.php';
 25: require FORUM_ROOT.'lang/'.$forum_user['language'].'/admin_bans.php'; 25: require FORUM_ROOT.'lang/'.$forum_user['language'].'/admin_bans.php';
 26:  26: 
 27:  
 28: // Add/edit a ban (stage 1) 27: // Add/edit a ban (stage 1)
 29: if (isset($_REQUEST['add_ban']) || isset($_GET['edit_ban'])) 28: if (isset($_REQUEST['add_ban']) || isset($_GET['edit_ban']))
 30: { 29: {
134:     // Setup breadcrumbs133:     // Setup breadcrumbs
135:     $forum_page['crumbs'] = array(134:     $forum_page['crumbs'] = array(
136:         array($forum_config['o_board_title'], forum_link($forum_url['index'])),135:         array($forum_config['o_board_title'], forum_link($forum_url['index'])),
137:         array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])),136:         array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index']))
138:         array($lang_admin_common['Users'], forum_link($forum_url['admin_users'])), 
139:         array($lang_admin_common['Bans'], forum_link($forum_url['admin_bans'])), 
140:         $lang_admin_bans['Ban advanced'] 
141:     );137:     );
 138:     if ($forum_user['g_id'] == FORUM_ADMIN)
 139:         $forum_page['crumbs'][] = array($lang_admin_common['Users'], forum_link($forum_url['admin_users']));
 140:     $forum_page['crumbs'][] = array($lang_admin_common['Bans'], forum_link($forum_url['admin_bans']));
 141:     $forum_page['crumbs'][] = $lang_admin_bans['Ban advanced'];
142: 142: 
143:     ($hook = get_hook('aba_add_edit_ban_pre_header_load')) ? eval($hook) : null;143:     ($hook = get_hook('aba_add_edit_ban_pre_header_load')) ? eval($hook) : null;
144: 144: 
156:         <h2 class="hn"><span><?php echo $lang_admin_bans['Ban advanced heading'] ?></span></h2>156:         <h2 class="hn"><span><?php echo $lang_admin_bans['Ban advanced heading'] ?></span></h2>
157:     </div>157:     </div>
158:     <div class="main-content main-frm">158:     <div class="main-content main-frm">
159:         <div class="ct-box">159:         <div class="ct-box warn-box">
160:             <p class="warn"><?php echo $lang_admin_bans['Ban IP warning'] ?></p>160:             <p class="warn"><?php echo $lang_admin_bans['Ban IP warning'] ?></p>
161:         </div>161:         </div>
162:         <form class="frm-form" method="post" accept-charset="utf-8" action="<?php echo forum_link($forum_url['admin_bans']) ?>">162:         <form class="frm-form" method="post" accept-charset="utf-8" action="<?php echo forum_link($forum_url['admin_bans']) ?>">
163:             <div class="hidden">163:             <div class="hidden">
164:                 <input type="hidden" name="csrf_token" value="<?php echo generate_form_token(forum_link($forum_url['admin_bans'])) ?>" />164:                 <input type="hidden" name="csrf_token" value="<?php echo generate_form_token(forum_link($forum_url['admin_bans'])) ?>" />
165:                 <input type="hidden" name="mode" value="<?php echo $mode ?>" />165:                 <input type="hidden" name="mode" value="<?php echo $mode ?>" />
166: <?php if ($mode == 'edit'): ?>                <input type="hidden" name="ban_id" value="<?php echo $ban_id ?>" />166: <?php if ($mode == 'edit'): ?>
167: <?php endif; ?>            </div>167:                 <input type="hidden" name="ban_id" value="<?php echo $ban_id ?>" />
 168: <?php endif; ?>
 169:             </div>
168: <?php ($hook = get_hook('aba_add_edit_ban_pre_criteria_fieldset')) ? eval($hook) : null; ?>170: <?php ($hook = get_hook('aba_add_edit_ban_pre_criteria_fieldset')) ? eval($hook) : null; ?>
169:             <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">171:             <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">
170:                 <legend class="group-legend"><span><?php echo $lang_admin_bans['Ban criteria legend'] ?></span></legend>172:                 <legend class="group-legend"><span><?php echo $lang_admin_bans['Ban criteria legend'] ?></span></legend>
390: // Setup breadcrumbs392: // Setup breadcrumbs
391: $forum_page['crumbs'] = array(393: $forum_page['crumbs'] = array(
392:     array($forum_config['o_board_title'], forum_link($forum_url['index'])),394:     array($forum_config['o_board_title'], forum_link($forum_url['index'])),
393:     array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])),395:     array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index']))
394:     array($lang_admin_common['Users'], forum_link($forum_url['admin_users'])), 
395:     array($lang_admin_common['Bans'], forum_link($forum_url['admin_bans'])) 
396: );396: );
 397: if ($forum_user['g_id'] == FORUM_ADMIN)
 398:     $forum_page['crumbs'][] = array($lang_admin_common['Users'], forum_link($forum_url['admin_users']));
 399: $forum_page['crumbs'][] = array($lang_admin_common['Bans'], forum_link($forum_url['admin_bans']));
 400: 
 401: 
 402: // Fetch user count
 403: $query = array(
 404:     'SELECT'    =>    'COUNT(id)',
 405:     'FROM'        =>    'bans'
 406: );
 407: 
 408: $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
 409: $forum_page['num_bans'] = $forum_db->result($result);
 410: $forum_page['num_pages'] = ceil($forum_page['num_bans'] / $forum_user['disp_topics']);
 411: $forum_page['page'] = (!isset($_GET['p']) || !is_numeric($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $forum_page['num_pages']) ? 1 : intval($_GET['p']);
 412: $forum_page['start_from'] = $forum_user['disp_topics'] * ($forum_page['page'] - 1);
 413: $forum_page['finish_at'] = min(($forum_page['start_from'] + $forum_user['disp_topics']), ($forum_page['num_bans']));
 414: 
 415: // Generate paging
 416: $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['admin_bans'], $lang_common['Paging separator'], null, true).'</p>';
 417: 
 418: // Navigation links for header and page numbering for title/meta description
 419: if ($forum_page['page'] < $forum_page['num_pages'])
 420: {
 421:     $forum_page['nav']['last'] = '<link rel="last" href="'.forum_sublink($forum_url['admin_bans'], $forum_url['page'], $forum_page['num_pages']).'" title="'.$lang_common['Page'].' '.$forum_page['num_pages'].'" />';
 422:     $forum_page['nav']['next'] = '<link rel="next" href="'.forum_sublink($forum_url['admin_bans'], $forum_url['page'], ($forum_page['page'] + 1)).'" title="'.$lang_common['Page'].' '.($forum_page['page'] + 1).'" />';
 423: }
 424: if ($forum_page['page'] > 1)
 425: {
 426:     $forum_page['nav']['prev'] = '<link rel="prev" href="'.forum_sublink($forum_url['admin_bans'], $forum_url['page'], ($forum_page['page'] - 1)).'" title="'.$lang_common['Page'].' '.($forum_page['page'] - 1).'" />';
 427:     $forum_page['nav']['first'] = '<link rel="first" href="'.forum_link($forum_url['admin_bans']).'" title="'.$lang_common['Page'].' 1" />';
 428: }
397: 429: 
398: ($hook = get_hook('aba_pre_header_load')) ? eval($hook) : null;430: ($hook = get_hook('aba_pre_header_load')) ? eval($hook) : null;
399: 431: 
444:     <div class="main-content main-frm">476:     <div class="main-content main-frm">
445: <?php477: <?php
446: 478: 
447: if (!empty($forum_bans))479: if ($forum_page['num_bans'] > 0)
448: {480: {
449: 481: 
450: ?>482: ?>
451:         <div class="ct-group">483:         <div class="ct-group">
452: <?php484: <?php
453: 485: 
 486:     // Grab the bans
 487:     $query = array(
 488:         'SELECT'    => 'b.*, u.username AS ban_creator_username',
 489:         'FROM'        => 'bans AS b',
 490:         'JOINS'        => array(
 491:             array(
 492:                 'LEFT JOIN'        => 'users AS u',
 493:                 'ON'            => 'u.id=b.ban_creator'
 494:             )
 495:         ),
 496:         'ORDER BY'    => 'b.id',
 497:         'LIMIT'        => $forum_page['start_from'].', '.$forum_page['finish_at']
 498:     );
 499: 
 500:     $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
 501: 
454:     $forum_page['item_num'] = 0;502:     $forum_page['item_num'] = 0;
455:     foreach ($forum_bans as $ban_key => $cur_ban)503:     while ($cur_ban = $forum_db->fetch_assoc($result))
456:     {504:     {
457:         $forum_page['ban_info'] = array();505:         $forum_page['ban_info'] = array();
458:         $forum_page['ban_creator'] = ($cur_ban['ban_creator_username'] != '') ? '<a href="'.forum_link($forum_url['user'], $cur_ban['ban_creator']).'">'.forum_htmlencode($cur_ban['ban_creator_username']).'</a>' : $lang_admin_common['Unknown'];506:         $forum_page['ban_creator'] = ($cur_ban['ban_creator_username'] != '') ? '<a href="'.forum_link($forum_url['user'], $cur_ban['ban_creator']).'">'.forum_htmlencode($cur_ban['ban_creator_username']).'</a>' : $lang_admin_common['Unknown'];
481:                         <h3 class=""><span><?php printf($lang_admin_bans['Current ban head'], $forum_page['ban_creator']) ?></span></h3>529:                         <h3 class=""><span><?php printf($lang_admin_bans['Current ban head'], $forum_page['ban_creator']) ?></span></h3>
482:                         <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>530:                         <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>
483:                     </div>531:                     </div>
484: <?php if (!empty($forum_page['ban_info'])): ?>                <ul>532: <?php if (!empty($forum_page['ban_info'])): ?>
 533:                 <ul>
485:                     <?php echo implode("\n", $forum_page['ban_info'])."\n" ?>534:                     <?php echo implode("\n", $forum_page['ban_info'])."\n" ?>
486:                     </ul>535:                     </ul>
487: <?php endif; ?>                </div>536: <?php endif; ?>
 537:                 </div>
488:             </div>538:             </div>
489: <?php539: <?php
490: 540: 


punbb-1.3/admin/categories.php punbb-1.3.5/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/admin/censoring.php punbb-1.3.5/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:  */
138: // Setup breadcrumbs138: // Setup breadcrumbs
139: $forum_page['crumbs'] = array(139: $forum_page['crumbs'] = array(
140:     array($forum_config['o_board_title'], forum_link($forum_url['index'])),140:     array($forum_config['o_board_title'], forum_link($forum_url['index'])),
141:     array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])),141:     array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index']))
142:     array($lang_admin_common['Settings'], forum_link($forum_url['admin_settings_setup'])), 
143:     array($lang_admin_common['Censoring'], forum_link($forum_url['admin_censoring'])) 
144: );142: );
 143: if ($forum_user['g_id'] == FORUM_ADMIN)
 144:     $forum_page['crumbs'][] = array($lang_admin_common['Settings'], forum_link($forum_url['admin_settings_setup']));
 145: $forum_page['crumbs'][] = array($lang_admin_common['Censoring'], forum_link($forum_url['admin_censoring']));
 146: 
145: 147: 
146: ($hook = get_hook('acs_pre_header_load')) ? eval($hook) : null;148: ($hook = get_hook('acs_pre_header_load')) ? eval($hook) : null;
147: 149: 


punbb-1.3/admin/db_update.php punbb-1.3.5/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'); 13: define('UPDATE_TO', '1.3.5');
 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);
 46:  47: 
 47: // Turn off magic_quotes_runtime 48: // Turn off magic_quotes_runtime
 48: set_magic_quotes_runtime(0); 49: if (get_magic_quotes_runtime())
  50:     @ini_set('magic_quotes_runtime', false);
 49:  51: 
 50: // Turn off PHP time limit 52: // Turn off PHP time limit
 51: @set_time_limit(0); 53: @set_time_limit(0);
284:     $seems_utf8 = true;286:     $seems_utf8 = true;
285: 287: 
286:     $query = array(288:     $query = array(
287:         'SELECT'    => 'MIN(id), MAX(id)',289:         'SELECT'    => 'MIN(id), MAX(id), COUNT(id)',
288:         'FROM'        => 'posts'290:         'FROM'        => 'posts'
289:     );291:     );
290: 292: 
291:     $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);293:     $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
292:     list($min_id, $max_id) = $forum_db->fetch_row($result);294:     list($min_id, $max_id, $count_id) = $forum_db->fetch_row($result);
 295: 
 296:     if ($count_id == 0)
 297:         return false;
293: 298: 
294:     // Get a random soup of data and check if it appears to be UTF-8299:     // Get a random soup of data and check if it appears to be UTF-8
295:     for ($i = 0; $i < 100; ++$i)300:     for ($i = 0; $i < 100; ++$i)
408: <div id="brd-main" class="main basic">413: <div id="brd-main" class="main basic">
409: 414: 
410:     <div class="main-head">415:     <div class="main-head">
411:         <h1 class="hn"><span>PunBB Database Update : Perform update of database tables</span></h1>416:         <h1 class="hn"><span>PunBB Database Update: Perform update of database tables</span></h1>
412:     </div>417:     </div>
413: 418: 
414:     <div class="main-content frm">419:     <div class="main-content frm">
416:             <ul class="spaced">421:             <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>422:                 <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>423:                 <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>424:                 <li><span>Did you read the update instructions in the documentation? If not, start there.</span></li>
420: <?php425: <?php
421: 426: 
422: if (strpos($cur_version, '1.2') === 0 && (!$db_seems_utf8 || isset($_GET['force'])))427: if (strpos($cur_version, '1.2') === 0 && (!$db_seems_utf8 || isset($_GET['force'])))
725: 730: 
726:         // Make all IP fields VARCHAR(39) to support IPv6731:         // Make all IP fields VARCHAR(39) to support IPv6
727:         $forum_db->alter_field('posts', 'poster_ip', 'VARCHAR(39)', true);732:         $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');733:         $forum_db->alter_field('users', 'registration_ip', 'VARCHAR(39)', false, '0.0.0.0');
729: 734: 
730:         // Add the DST option to the users table735:         // Add the DST option to the users table
731:         $forum_db->add_field('users', 'dst', 'TINYINT(1)', false, 0, 'timezone');736:         $forum_db->add_field('users', 'dst', 'TINYINT(1)', false, 0, 'timezone');
1165:             }1170:             }
1166:         }1171:         }
1167: 1172: 
 1173:         // Add the index for the post time
 1174:         if (!$forum_db->index_exists('posts', 'posted_idx'))
 1175:             $forum_db->add_index('posts', 'posted_idx', array('posted'));
 1176: 
1168:         // Move any users with the old unverified status to their new group1177:         // Move any users with the old unverified status to their new group
1169:         $query = array(1178:         $query = array(
1170:             'UPDATE'    => 'users',1179:             'UPDATE'    => 'users',
1203:         }1212:         }
1204: 1213: 
1205:         // Should we do charset conversion or not?1214:         // Should we do charset conversion or not?
1206:         if (strpos($cur_version, '1.2') === 0 && isset($_GET['convert_charset']))1215:         if (strpos($cur_version, '1.3') === 0)
 1216:             $query_str = '?stage=finish';
 1217:         elseif (strpos($cur_version, '1.2') === 0 && isset($_GET['convert_charset']))
1207:             $query_str = '?stage=conv_misc&req_old_charset='.$old_charset.'&req_per_page='.PER_PAGE;1218:             $query_str = '?stage=conv_misc&req_old_charset='.$old_charset.'&req_per_page='.PER_PAGE;
1208:         else1219:         else
1209:             $query_str = '?stage=conv_tables';1220:             $query_str = '?stage=conv_tables';
1222:         $forum_db->set_names('utf8');1233:         $forum_db->set_names('utf8');
1223: 1234: 
1224:         // Convert config1235:         // Convert config
1225:         echo 'Converting configuration …'."<br />\n";1236:         echo 'Converting configuration…'."<br />\n";
1226:         foreach ($forum_config as $conf_name => $conf_value)1237:         foreach ($forum_config as $conf_name => $conf_value)
1227:         {1238:         {
1228:             if (convert_to_utf8($conf_value, $old_charset))1239:             if (convert_to_utf8($conf_value, $old_charset))
1238:         }1249:         }
1239: 1250: 
1240:         // Convert categories1251:         // Convert categories
1241:         echo 'Converting categories …'."<br />\n";1252:         echo 'Converting categories…'."<br />\n";
1242:         $query = array(1253:         $query = array(
1243:             'SELECT'    => 'id, cat_name',1254:             'SELECT'    => 'id, cat_name',
1244:             'FROM'        => 'categories',1255:             'FROM'        => 'categories',
1261:         }1272:         }
1262: 1273: 
1263:         // Convert forums1274:         // Convert forums
1264:         echo 'Converting forums …'."<br />\n";1275:         echo 'Converting forums…'."<br />\n";
1265:         $query = array(1276:         $query = array(
1266:             'SELECT'    => 'id, forum_name, forum_desc, moderators',1277:             'SELECT'    => 'id, forum_name, forum_desc, moderators',
1267:             'FROM'        => 'forums',1278:             'FROM'        => 'forums',
1295:         }1306:         }
1296: 1307: 
1297:         // Convert groups1308:         // Convert groups
1298:         echo 'Converting groups …'."<br />\n";1309:         echo 'Converting groups…'."<br />\n";
1299:         $query = array(1310:         $query = array(
1300:             'SELECT'    => 'g_id, g_title, g_user_title',1311:             'SELECT'    => 'g_id, g_title, g_user_title',
1301:             'FROM'        => 'groups',1312:             'FROM'        => 'groups',
1320:         }1331:         }
1321: 1332: 
1322:         // Convert ranks1333:         // Convert ranks
1323:         echo 'Converting ranks …'."<br />\n";1334:         echo 'Converting ranks…'."<br />\n";
1324:         $query = array(1335:         $query = array(
1325:             'SELECT'    => 'id, rank',1336:             'SELECT'    => 'id, rank',
1326:             'FROM'        => 'ranks',1337:             'FROM'        => 'ranks',
1343:         }1354:         }
1344: 1355: 
1345:         // Convert censor words1356:         // Convert censor words
1346:         echo 'Converting censor words …'."<br />\n";1357:         echo 'Converting censor words…'."<br />\n";
1347:         $query = array(1358:         $query = array(
1348:             'SELECT'    => 'id, search_for, replace_with',1359:             'SELECT'    => 'id, search_for, replace_with',
1349:             'FROM'        => 'censoring',1360:             'FROM'        => 'censoring',
1408:         $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);1419:         $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
1409:         while ($cur_item = $forum_db->fetch_assoc($result))1420:         while ($cur_item = $forum_db->fetch_assoc($result))
1410:         {1421:         {
1411:             echo 'Converting report '.$cur_item['id'].' …<br />'."\n";1422:             echo 'Converting report '.$cur_item['id'].'…<br />'."\n";
1412:             if (convert_to_utf8($cur_item['message'], $old_charset))1423:             if (convert_to_utf8($cur_item['message'], $old_charset))
1413:             {1424:             {
1414:                 $query = array(1425:                 $query = array(
1477:         $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);1488:         $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
1478:         while ($cur_item = $forum_db->fetch_assoc($result))1489:         while ($cur_item = $forum_db->fetch_assoc($result))
1479:         {1490:         {
1480:             echo 'Converting search word '.$cur_item['id'].' …<br />'."\n";1491:             echo 'Converting search word '.$cur_item['id'].'…<br />'."\n";
1481:             if (convert_to_utf8($cur_item['word'], $old_charset))1492:             if (convert_to_utf8($cur_item['word'], $old_charset))
1482:             {1493:             {
1483:                 $query = array(1494:                 $query = array(
1535:         $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);1546:         $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
1536:         while ($cur_item = $forum_db->fetch_assoc($result))1547:         while ($cur_item = $forum_db->fetch_assoc($result))
1537:         {1548:         {
1538:             echo 'Converting user '.$cur_item['id'].' …<br />'."\n";1549:             echo 'Converting user '.$cur_item['id'].'…<br />'."\n";
1539:             if (convert_to_utf8($cur_item['username'], $old_charset) | convert_to_utf8($cur_item['title'], $old_charset) | convert_to_utf8($cur_item['realname'], $old_charset) | convert_to_utf8($cur_item['location'], $old_charset) | convert_to_utf8($cur_item['signature'], $old_charset) | convert_to_utf8($cur_item['admin_note'], $old_charset))1550:             if (convert_to_utf8($cur_item['username'], $old_charset) | convert_to_utf8($cur_item['title'], $old_charset) | convert_to_utf8($cur_item['realname'], $old_charset) | convert_to_utf8($cur_item['location'], $old_charset) | convert_to_utf8($cur_item['signature'], $old_charset) | convert_to_utf8($cur_item['admin_note'], $old_charset))
1540:             {1551:             {
1541:                 $cur_item['title'] = $cur_item['title'] != '' ? '\''.$forum_db->escape($cur_item['title']).'\'' : 'NULL';1552:                 $cur_item['title'] = $cur_item['title'] != '' ? '\''.$forum_db->escape($cur_item['title']).'\'' : 'NULL';
1610:         $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);1621:         $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
1611:         while ($cur_item = $forum_db->fetch_assoc($result))1622:         while ($cur_item = $forum_db->fetch_assoc($result))
1612:         {1623:         {
1613:             echo 'Converting topic '.$cur_item['id'].' …<br />'."\n";1624:             echo 'Converting topic '.$cur_item['id'].'…<br />'."\n";
1614:             if (convert_to_utf8($cur_item['poster'], $old_charset) | convert_to_utf8($cur_item['subject'], $old_charset) | convert_to_utf8($cur_item['last_poster'], $old_charset))1625:             if (convert_to_utf8($cur_item['poster'], $old_charset) | convert_to_utf8($cur_item['subject'], $old_charset) | convert_to_utf8($cur_item['last_poster'], $old_charset))
1615:             {1626:             {
1616:                 $query = array(1627:                 $query = array(
1679:         $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);1690:         $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
1680:         while ($cur_item = $forum_db->fetch_assoc($result))1691:         while ($cur_item = $forum_db->fetch_assoc($result))
1681:         {1692:         {
1682:             echo 'Converting post '.$cur_item['id'].' …<br />'."\n";1693:             echo 'Converting post '.$cur_item['id'].'…<br />'."\n";
1683:             if (convert_to_utf8($cur_item['poster'], $old_charset) | convert_to_utf8($cur_item['message'], $old_charset) | convert_to_utf8($cur_item['edited_by'], $old_charset))1694:             if (convert_to_utf8($cur_item['poster'], $old_charset) | convert_to_utf8($cur_item['message'], $old_charset) | convert_to_utf8($cur_item['edited_by'], $old_charset))
1684:             {1695:             {
1685:                 $cur_item['edited_by'] = $cur_item['edited_by'] != '' ? '\''.$forum_db->escape($cur_item['edited_by']).'\'' : 'NULL';1696:                 $cur_item['edited_by'] = $cur_item['edited_by'] != '' ? '\''.$forum_db->escape($cur_item['edited_by']).'\'' : 'NULL';
1716:         // Do the cumbersome charset conversion of MySQL tables/columns1727:         // Do the cumbersome charset conversion of MySQL tables/columns
1717:         if ($db_type == 'mysql' || $db_type == 'mysqli')1728:         if ($db_type == 'mysql' || $db_type == 'mysqli')
1718:         {1729:         {
1719:             echo 'Converting table '.$forum_db->prefix.'bans …<br />'."\n"; flush();1730:             echo 'Converting table '.$forum_db->prefix.'bans…<br />'."\n"; flush();
1720:             convert_table_utf8($forum_db->prefix.'bans');1731:             convert_table_utf8($forum_db->prefix.'bans');
1721:             echo 'Converting table '.$forum_db->prefix.'categories …<br />'."\n"; flush();1732:             echo 'Converting table '.$forum_db->prefix.'categories…<br />'."\n"; flush();
1722:             convert_table_utf8($forum_db->prefix.'categories');1733:             convert_table_utf8($forum_db->prefix.'categories');
1723:             echo 'Converting table '.$forum_db->prefix.'censoring …<br />'."\n"; flush();1734:             echo 'Converting table '.$forum_db->prefix.'censoring…<br />'."\n"; flush();
1724:             convert_table_utf8($forum_db->prefix.'censoring');1735:             convert_table_utf8($forum_db->prefix.'censoring');
1725:             echo 'Converting table '.$forum_db->prefix.'config …<br />'."\n"; flush();1736:             echo 'Converting table '.$forum_db->prefix.'config…<br />'."\n"; flush();
1726:             convert_table_utf8($forum_db->prefix.'config');1737:             convert_table_utf8($forum_db->prefix.'config');
1727:             echo 'Converting table '.$forum_db->prefix.'extension_hooks …<br />'."\n"; flush();1738:             echo 'Converting table '.$forum_db->prefix.'extension_hooks…<br />'."\n"; flush();
1728:             convert_table_utf8($forum_db->prefix.'extension_hooks');1739:             convert_table_utf8($forum_db->prefix.'extension_hooks');
1729:             echo 'Converting table '.$forum_db->prefix.'extensions …<br />'."\n"; flush();1740:             echo 'Converting table '.$forum_db->prefix.'extensions…<br />'."\n"; flush();
1730:             convert_table_utf8($forum_db->prefix.'extensions');1741:             convert_table_utf8($forum_db->prefix.'extensions');
1731:             echo 'Converting table '.$forum_db->prefix.'forum_perms …<br />'."\n"; flush();1742:             echo 'Converting table '.$forum_db->prefix.'forum_perms…<br />'."\n"; flush();
1732:             convert_table_utf8($forum_db->prefix.'forum_perms');1743:             convert_table_utf8($forum_db->prefix.'forum_perms');
1733:             echo 'Converting table '.$forum_db->prefix.'forums …<br />'."\n"; flush();1744:             echo 'Converting table '.$forum_db->prefix.'forums…<br />'."\n"; flush();
1734:             convert_table_utf8($forum_db->prefix.'forums');1745:             convert_table_utf8($forum_db->prefix.'forums');
1735:             echo 'Converting table '.$forum_db->prefix.'groups …<br />'."\n"; flush();1746:             echo 'Converting table '.$forum_db->prefix.'groups…<br />'."\n"; flush();
1736:             convert_table_utf8($forum_db->prefix.'groups');1747:             convert_table_utf8($forum_db->prefix.'groups');
1737:             echo 'Converting table '.$forum_db->prefix.'online …<br />'."\n"; flush();1748:             echo 'Converting table '.$forum_db->prefix.'online…<br />'."\n"; flush();
1738:             convert_table_utf8($forum_db->prefix.'online');1749:             convert_table_utf8($forum_db->prefix.'online');
1739:             echo 'Converting table '.$forum_db->prefix.'posts …<br />'."\n"; flush();1750:             echo 'Converting table '.$forum_db->prefix.'posts…<br />'."\n"; flush();
1740:             convert_table_utf8($forum_db->prefix.'posts');1751:             convert_table_utf8($forum_db->prefix.'posts');
1741:             echo 'Converting table '.$forum_db->prefix.'ranks …<br />'."\n"; flush();1752:             echo 'Converting table '.$forum_db->prefix.'ranks…<br />'."\n"; flush();
1742:             convert_table_utf8($forum_db->prefix.'ranks');1753:             convert_table_utf8($forum_db->prefix.'ranks');
1743:             echo 'Converting table '.$forum_db->prefix.'reports …<br />'."\n"; flush();1754:             echo 'Converting table '.$forum_db->prefix.'reports…<br />'."\n"; flush();
1744:             convert_table_utf8($forum_db->prefix.'reports');1755:             convert_table_utf8($forum_db->prefix.'reports');
1745:             echo 'Converting table '.$forum_db->prefix.'search_cache …<br />'."\n"; flush();1756:             echo 'Converting table '.$forum_db->prefix.'search_cache…<br />'."\n"; flush();
1746:             convert_table_utf8($forum_db->prefix.'search_cache');1757:             convert_table_utf8($forum_db->prefix.'search_cache');
1747:             echo 'Converting table '.$forum_db->prefix.'search_matches …<br />'."\n"; flush();1758:             echo 'Converting table '.$forum_db->prefix.'search_matches…<br />'."\n"; flush();
1748:             convert_table_utf8($forum_db->prefix.'search_matches');1759:             convert_table_utf8($forum_db->prefix.'search_matches');
1749:             echo 'Converting table '.$forum_db->prefix.'search_words …<br />'."\n"; flush();1760:             echo 'Converting table '.$forum_db->prefix.'search_words…<br />'."\n"; flush();
1750:             convert_table_utf8($forum_db->prefix.'search_words');1761:             convert_table_utf8($forum_db->prefix.'search_words');
1751:             echo 'Converting table '.$forum_db->prefix.'subscriptions …<br />'."\n"; flush();1762:             echo 'Converting table '.$forum_db->prefix.'subscriptions…<br />'."\n"; flush();
1752:             convert_table_utf8($forum_db->prefix.'subscriptions');1763:             convert_table_utf8($forum_db->prefix.'subscriptions');
1753:             echo 'Converting table '.$forum_db->prefix.'topics …<br />'."\n"; flush();1764:             echo 'Converting table '.$forum_db->prefix.'topics…<br />'."\n"; flush();
1754:             convert_table_utf8($forum_db->prefix.'topics');1765:             convert_table_utf8($forum_db->prefix.'topics');
1755:             echo 'Converting table '.$forum_db->prefix.'users …<br />'."\n"; flush();1766:             echo 'Converting table '.$forum_db->prefix.'users…<br />'."\n"; flush();
1756:             convert_table_utf8($forum_db->prefix.'users');1767:             convert_table_utf8($forum_db->prefix.'users');
1757:         }1768:         }
1758: 1769: 
1794:         $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);1805:         $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
1795:         while ($cur_item = $forum_db->fetch_assoc($result))1806:         while ($cur_item = $forum_db->fetch_assoc($result))
1796:         {1807:         {
1797:             echo 'Preparsing post '.$cur_item['id'].' …<br />'."\n";1808:             echo 'Preparsing post '.$cur_item['id'].'…<br />'."\n";
1798:             $preparse_errors = array();1809:             $preparse_errors = array();
1799: 1810: 
1800:             $query = array(1811:             $query = array(
1847:         $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);1858:         $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
1848:         while ($cur_item = $forum_db->fetch_assoc($result))1859:         while ($cur_item = $forum_db->fetch_assoc($result))
1849:         {1860:         {
1850:             echo 'Preparsing signature '.$cur_item['id'].' …<br />'."\n";1861:             echo 'Preparsing signature '.$cur_item['id'].'…<br />'."\n";
1851:             $preparse_errors = array();1862:             $preparse_errors = array();
1852: 1863: 
1853:             $query = array(1864:             $query = array(
1991:     <div class="main-content frm">2002:     <div class="main-content frm">
1992:         <div class="ct-box info-box">2003:         <div class="ct-box info-box">
1993:             <p>Your forum database was updated successfully.</p>2004:             <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>2005: <?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>2006:             <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>
 2007: <?php else: ?>
 2008:             <p>You may <a href="<?php echo $base_url ?>/index.php">go to the forum index</a> now.</p>
1996: <?php endif; ?>        </div>2009: <?php endif; ?>        </div>
1997: <?php if (isset($new_config) && !$written): ?>        <form class="frm-form" action="foo">2010: <?php if (isset($new_config) && !$written): ?>
 2011:         <form class="frm-form" action="foo">
1998:             <fieldset class="frm-group group1">2012:             <fieldset class="frm-group group1">
1999:                 <legend class="group-legend"><span>New config.php contents</span></legend>2013:                 <legend class="group-legend"><span>New config.php contents</span></legend>
2000:                 <div class="txt-set set1">2014:                 <div class="txt-set set1">


punbb-1.3/admin/extensions.php punbb-1.3.5/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
983:         );989:         );
984: 990: 
985:         if ($forum_config['o_check_for_versions'] == 1 && isset($forum_ext_last_versions[$id]) && version_compare($ext['version'], $forum_ext_last_versions[$id]['version'], '<'))991:         if ($forum_config['o_check_for_versions'] == 1 && isset($forum_ext_last_versions[$id]) && version_compare($ext['version'], $forum_ext_last_versions[$id]['version'], '<'))
986:             $forum_page['ext_actions']['latest_ver'] = '<a href="'.$forum_ext_last_versions[$id]['repo_url'].'/'.$id.'/'.$id.'.zip">'.$lang_admin_ext['Download latest version'].'</a>';992:             $forum_page['ext_actions']['latest_ver'] = '<span><a href="'.$forum_ext_last_versions[$id]['repo_url'].'/'.$id.'/'.$id.'.zip">'.$lang_admin_ext['Download latest version'].'</a></span>';
987: 993: 
988:         ($hook = get_hook('aex_section_manage_pre_ext_actions')) ? eval($hook) : null;994:         ($hook = get_hook('aex_section_manage_pre_ext_actions')) ? eval($hook) : null;
989: 995: 


punbb-1.3/admin/forums.php punbb-1.3.5/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>';
780:                     <div class="mf-box">779:                     <div class="mf-box">
781: <?php ($hook = get_hook('afo_pre_edit_cur_forum_name')) ? eval($hook) : null; ?>780: <?php ($hook = get_hook('afo_pre_edit_cur_forum_name')) ? eval($hook) : null; ?>
782:                         <div class="mf-field mf-field1 forum-field">781:                         <div class="mf-field mf-field1 forum-field">
783:                             <span class="aslabel">Forum name:</span>782:                             <span class="aslabel"><?php echo $lang_admin_forums['Forum name'] ?></span>
784:                             <span class="fld-input"><?php echo forum_htmlencode($cur_forum['forum_name']) ?></span>783:                             <span class="fld-input"><?php echo forum_htmlencode($cur_forum['forum_name']) ?></span>
785:                         </div>784:                         </div>
786: <?php ($hook = get_hook('afo_pre_edit_cur_forum_position')) ? eval($hook) : null; ?>785: <?php ($hook = get_hook('afo_pre_edit_cur_forum_position')) ? eval($hook) : null; ?>


punbb-1.3/admin/groups.php punbb-1.3.5/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/admin/index.php punbb-1.3.5/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:  */
140: else if (ini_get('eaccelerator.enable'))140: else if (ini_get('eaccelerator.enable'))
141:     $php_accelerator = '<a href="http://eaccelerator.net/">eAccelerator</a>';141:     $php_accelerator = '<a href="http://eaccelerator.net/">eAccelerator</a>';
142: else if (ini_get('xcache.cacher'))142: else if (ini_get('xcache.cacher'))
143:     $php_accelerator = '<a href="http://trac.lighttpd.net/xcache/">XCache</a>';143:     $php_accelerator = '<a href="http://xcache.lighttpd.net/">XCache</a>';
144: else144: else
145:     $php_accelerator = $lang_admin_index['Not applicable'];145:     $php_accelerator = $lang_admin_index['Not applicable'];
146: 146: 
147: // Setup breadcrumbs147: // Setup breadcrumbs
148: $forum_page['crumbs'] = array(148: $forum_page['crumbs'] = array(
149:     array($forum_config['o_board_title'], forum_link($forum_url['index'])),149:     array($forum_config['o_board_title'], forum_link($forum_url['index'])),
150:     array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])),150:     array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index']))
151:     array($lang_admin_common['Start'], forum_link($forum_url['admin_index'])), 
152:     array($lang_admin_common['Information'], forum_link($forum_url['admin_index'])) 
153: );151: );
 152: if ($forum_user['g_id'] == FORUM_ADMIN)
 153:     $forum_page['crumbs'][] = array($lang_admin_common['Start'], forum_link($forum_url['admin_index']));
 154: $forum_page['crumbs'][] = array($lang_admin_common['Information'], forum_link($forum_url['admin_index']));
154: 155: 
155: ($hook = get_hook('ain_pre_header_load')) ? eval($hook) : null;156: ($hook = get_hook('ain_pre_header_load')) ? eval($hook) : null;
156: 157: 
185:                     <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>
186:                     <ul class="data-list">187:                     <ul class="data-list">
187:                         <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>
188:                         <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>
189: <?php if (isset($punbb_updates)): ?>190: <?php if (isset($punbb_updates)): ?>
190:                         <li><span><?php echo $punbb_updates ?></span></li>191:                         <li><span><?php echo $punbb_updates ?></span></li>
191: <?php endif; ?>192: <?php endif; ?>
217:                     <ul class="data-list">218:                     <ul class="data-list">
218:                         <li><span><?php echo implode(' ', $forum_db->get_version()) ?></span></li>219:                         <li><span><?php echo implode(' ', $forum_db->get_version()) ?></span></li>
219: <?php if (isset($total_records) && isset($total_size)): ?>220: <?php if (isset($total_records) && isset($total_size)): ?>
220:                             <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>
221:                         <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>
222: <?php endif; ?>223: <?php endif; ?>
223:                     </ul>224:                     </ul>


punbb-1.3/admin/install.php punbb-1.3.5/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-2011 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'); 13: define('FORUM_VERSION', '1.3.5');
 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: 
 64: // Load the language file 65: // Load the language files
 65: require FORUM_ROOT.'lang/'.$language.'/install.php'; 66: require FORUM_ROOT.'lang/'.$language.'/install.php';
 66:  67: require FORUM_ROOT.'lang/'.$language.'/admin_settings.php';
 67:  68: 
 68: if (isset($_POST['generate_config'])) 69: if (isset($_POST['generate_config']))
 69: { 70: {
 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: {
 90:     $dual_mysql = false; 92:     $dual_mysql = false;
 91:     $db_extensions = array(); 93:     $db_extensions = array();
 92:     if (function_exists('mysqli_connect')) 94:     if (function_exists('mysqli_connect'))
  95:     {
 93:         $db_extensions[] = array('mysqli', 'MySQL Improved'); 96:         $db_extensions[] = array('mysqli', 'MySQL Improved');
  97:     }
  98: 
 94:     if (function_exists('mysql_connect')) 99:     if (function_exists('mysql_connect'))
 95:     {100:     {
 96:         $db_extensions[] = array('mysql', 'MySQL Standard');101:         $db_extensions[] = array('mysql', 'MySQL Standard');
147:     if (count($languages) > 1)152:     if (count($languages) > 1)
148:     {153:     {
149: 154: 
150: ?>155: ?>    <form class="frm-form" method="get" accept-charset="utf-8" action="install.php">
151:     <form class="frm-form" method="get" accept-charset="utf-8" action="install.php"> 
152:     <div class="main-subhead">156:     <div class="main-subhead">
153:         <h2 class="hn"><span><?php echo $lang_install['Choose language'] ?></span></h2>157:         <h2 class="hn"><span><?php echo $lang_install['Choose language'] ?></span></h2>
154:     </div>158:     </div>
164:         foreach ($languages as $lang)168:         foreach ($languages as $lang)
165:             echo "\t\t\t\t\t".'<option value="'.$lang.'"'.($language == $lang ? ' selected="selected"' : '').'>'.$lang.'</option>'."\n";169:             echo "\t\t\t\t\t".'<option value="'.$lang.'"'.($language == $lang ? ' selected="selected"' : '').'>'.$lang.'</option>'."\n";
166: 170: 
167: ?>171: ?>                    </select></span>
168:                     </select></span> 
169:                 </div>172:                 </div>
170:             </div>173:             </div>
171:         </fieldset>174:         </fieldset>
178: 181: 
179:     }182:     }
180: 183: 
181: ?>184: ?>    <form class="frm-form" method="post" accept-charset="utf-8" action="install.php">
182:     <form class="frm-form" method="post" accept-charset="utf-8" action="install.php"> 
183:     <div class="hidden">185:     <div class="hidden">
184:         <input type="hidden" name="form_sent" value="1" />186:         <input type="hidden" name="form_sent" value="1" />
185:     </div>187:     </div>
211:     foreach ($db_extensions as $db_type)213:     foreach ($db_extensions as $db_type)
212:         echo "\t\t\t\t\t".'<option value="'.$db_type[0].'">'.$db_type[1].'</option>'."\n";214:         echo "\t\t\t\t\t".'<option value="'.$db_type[0].'">'.$db_type[1].'</option>'."\n";
213: 215: 
214: ?>216: ?>                    </select></span>
215:                     </select></span> 
216:                 </div>217:                 </div>
217:             </div>218:             </div>
218:             <div class="sf-set set1">219:             <div class="sf-set set1">
219:                 <div class="sf-box text required">220:                 <div class="sf-box text required">
220:                     <label for="fld2"><span><?php echo $lang_install['Database server'] ?> <em><?php echo $lang_install['Required'] ?></em></span> <small><?php echo $lang_install['Database server help'] ?></small></label><br />221:                     <label for="fld2"><span><?php echo $lang_install['Database server'] ?> <em><?php echo $lang_install['Required'] ?></em></span> <small><?php echo $lang_install['Database server help'] ?></small></label><br />
221:                     <span class="fld-input"><input id="fld2" type="text" name="req_db_host" value="localhost" size="50" maxlength="100" /></span>222:                     <span class="fld-input"><input id="fld2" type="text" name="req_db_host" value="localhost" size="35" maxlength="100" /></span>
222:                 </div>223:                 </div>
223:             </div>224:             </div>
224:             <div class="sf-set set2">225:             <div class="sf-set set2">
278:             <div class="sf-set set4">279:             <div class="sf-set set4">
279:                 <div class="sf-box text required">280:                 <div class="sf-box text required">
280:                     <label for="fld10"><span><?php echo $lang_install['Admin e-mail'] ?> <em><?php echo $lang_install['Required'] ?></em></span> <small><?php echo $lang_install['E-mail address help'] ?></small></label><br />281:                     <label for="fld10"><span><?php echo $lang_install['Admin e-mail'] ?> <em><?php echo $lang_install['Required'] ?></em></span> <small><?php echo $lang_install['E-mail address help'] ?></small></label><br />
281:                     <span class="fld-input"><input id="fld10" type="text" name="req_email" size="50" maxlength="80" /></span>282:                     <span class="fld-input"><input id="fld10" type="text" name="req_email" size="35" maxlength="80" /></span>
282:                 </div>283:                 </div>
283:             </div>284:             </div>
284:         </fieldset>285:         </fieldset>
299:             <div class="sf-set set1">300:             <div class="sf-set set1">
300:                 <div class="sf-box text">301:                 <div class="sf-box text">
301:                     <label for="fld11"><span><?php echo $lang_install['Board title'] ?></span></label><br />302:                     <label for="fld11"><span><?php echo $lang_install['Board title'] ?></span></label><br />
302:                     <span class="fld-input"><input id="fld11" type="text" name="board_title" size="50" maxlength="255" /></span>303:                     <span class="fld-input"><input id="fld11" type="text" name="board_title" size="35" maxlength="255" /></span>
303:                 </div>304:                 </div>
304:             </div>305:             </div>
305:             <div class="sf-set set2">306:             <div class="sf-set set2">
306:                 <div class="sf-box text">307:                 <div class="sf-box text">
307:                     <label for="fld12"><span><?php echo $lang_install['Board description'] ?></span></label><br />308:                     <label for="fld12"><span><?php echo $lang_install['Board description'] ?></span></label><br />
308:                     <span class="fld-input"><input id="fld12" type="text" name="board_descrip" size="50" maxlength="255" /></span>309:                     <span class="fld-input"><input id="fld12" type="text" name="board_descrip" size="35" maxlength="255" /></span>
309:                 </div>310:                 </div>
310:             </div>311:             </div>
311:             <div class="sf-set set3">312:             <div class="sf-set set3">
312:                 <div class="sf-box text required">313:                 <div class="sf-box text required">
313:                     <label for="fld13"><span><?php echo $lang_install['Base URL'] ?> <em><?php echo $lang_install['Required'] ?></em></span> <small><?php echo $lang_install['Base URL help'] ?></small></label><br />314:                     <label for="fld13"><span><?php echo $lang_install['Base URL'] ?> <em><?php echo $lang_install['Required'] ?></em></span> <small><?php echo $lang_install['Base URL help'] ?></small></label><br />
314:                     <span class="fld-input"><input id="fld13" type="text" name="req_base_url" value="<?php echo $base_url_guess ?>" size="60" maxlength="100" /></span>315:                     <span class="fld-input"><input id="fld13" type="text" name="req_base_url" value="<?php echo $base_url_guess ?>" size="35" maxlength="100" /></span>
315:                 </div>316:                 </div>
316:             </div>317:             </div>
317: <?php318: <?php
318: 319: 
319:     if (count($languages) > 1)320:     if (count($languages) > 1)
320:     {321:     {
321: ?>322: 
322:             <div class="sf-set set4">323: ?>            <div class="sf-set set4">
323:                 <div class="sf-box text">324:                 <div class="sf-box text">
324:                     <label for="fld14"><span><?php echo $lang_install['Default language'] ?></span> <small><?php echo $lang_install['Default language help'] ?></small></label><br />325:                     <label for="fld14"><span><?php echo $lang_install['Default language'] ?></span> <small><?php echo $lang_install['Default language help'] ?></small></label><br />
325:                     <span class="fld-input"><select id="fld14" name="req_language">326:                     <span class="fld-input"><select id="fld14" name="req_language">
328:         foreach ($languages as $lang)329:         foreach ($languages as $lang)
329:             echo "\t\t\t\t\t".'<option value="'.$lang.'"'.($language == $lang ? ' selected="selected"' : '').'>'.$lang.'</option>'."\n";330:             echo "\t\t\t\t\t".'<option value="'.$lang.'"'.($language == $lang ? ' selected="selected"' : '').'>'.$lang.'</option>'."\n";
330: 331: 
331: ?>332: ?>                    </select></span>
332:                     </select></span> 
333:                 </div>333:                 </div>
334:             </div>334:             </div>
335: <?php335: <?php
 336: 
336:     }337:     }
337:     else338:     else
338:     {339:     {
339: ?>340: 
340:             <div class="hidden">341: ?>            <div class="hidden">
341:                 <input type="hidden" name="req_language" value="<?php echo $languages[0]; ?>" />342:                 <input type="hidden" name="req_language" value="<?php echo $languages[0]; ?>" />
342:             </div>343:             </div>
343: <?php344: <?php
344:     }345:     }
345: 346: 
346: ?>347:     if (file_exists(FORUM_ROOT.'extensions/pun_repository/manifest.xml'))
347:             <div class="sf-set set5">348:     {
 349: 
 350: ?>            <div class="sf-set set5">
348:                 <div class="sf-box checkbox">351:                 <div class="sf-box checkbox">
349:                     <span class="fld-input"><input id="fld15" type="checkbox" name="install_pun_repository" value="1" checked="checked" /></span>352:                     <span class="fld-input"><input id="fld15" type="checkbox" name="install_pun_repository" value="1" checked="checked" /></span>
350:                     <label for="fld15"><span><?php echo $lang_install['Pun repository'] ?></span> <?php echo $lang_install['Pun repository help'] ?></label><br />353:                     <label for="fld15"><span><?php echo $lang_install['Pun repository'] ?></span> <?php echo $lang_install['Pun repository help'] ?></label><br />
351:                 </div>354:                 </div>
352:             </div>355:             </div>
 356: <?php
 357: 
 358:     }
 359: 
 360: ?>
353:         </fieldset>361:         </fieldset>
354:         <div class="frm-buttons">362:         <div class="frm-buttons">
355:             <span class="submit"><input type="submit" name="start" value="<?php echo $lang_install['Start install'] ?>" /></span>363:             <span class="submit"><input type="submit" name="start" value="<?php echo $lang_install['Start install'] ?>" /></span>
456:             break;464:             break;
457: 465: 
458:         default:466:         default:
459:             error(sprintf($lang_install['No such database type'], $db_type));467:             error(sprintf($lang_install['No such database type'], forum_htmlencode($db_type)));
460:     }468:     }
461: 469: 
462:     // Create the database object (and connect/select db)470:     // Create the database object (and connect/select db)
468:     {476:     {
469:         $mysql_info = $forum_db->get_version();477:         $mysql_info = $forum_db->get_version();
470:         if (version_compare($mysql_info['version'], MIN_MYSQL_VERSION, '<'))478:         if (version_compare($mysql_info['version'], MIN_MYSQL_VERSION, '<'))
471:             error(sprintf($lang_install['Invalid MySQL version'], $mysql_version, MIN_MYSQL_VERSION));479:             error(sprintf($lang_install['Invalid MySQL version'], forum_htmlencode($mysql_info['version']), MIN_MYSQL_VERSION));
472:     }480:     }
473: 481: 
474:     // Validate prefix482:     // Validate prefix
1015:         'PRIMARY KEY'    => array('id'),1023:         'PRIMARY KEY'    => array('id'),
1016:         'INDEXES'        => array(1024:         'INDEXES'        => array(
1017:             'topic_id_idx'    => array('topic_id'),1025:             'topic_id_idx'    => array('topic_id'),
1018:             'multi_idx'        => array('poster_id', 'topic_id')1026:             'multi_idx'        => array('poster_id', 'topic_id'),
 1027:             'posted_idx'    => array('posted')
1019:         )1028:         )
1020:     );1029:     );
1021: 1030: 
1597:         'o_date_format'                => "'Y-m-d'",1606:         'o_date_format'                => "'Y-m-d'",
1598:         'o_check_for_updates'        => "'$check_for_updates'",1607:         'o_check_for_updates'        => "'$check_for_updates'",
1599:         'o_check_for_versions'        => "'$check_for_updates'",1608:         'o_check_for_versions'        => "'$check_for_updates'",
1600:         'o_timeout_visit'            => "'1800'",1609:         'o_timeout_visit'            => "'5400'",
1601:         'o_timeout_online'            => "'300'",1610:         'o_timeout_online'            => "'300'",
1602:         'o_redirect_delay'            => "'1'",1611:         'o_redirect_delay'            => "'1'",
1603:         'o_show_version'            => "'0'",1612:         'o_show_version'            => "'0'",
1650:         'o_rules'                    => "'0'",1659:         'o_rules'                    => "'0'",
1651:         'o_rules_message'            => "'".$lang_install['Default rules']."'",1660:         'o_rules_message'            => "'".$lang_install['Default rules']."'",
1652:         'o_maintenance'                => "'0'",1661:         'o_maintenance'                => "'0'",
1653:         'o_maintenance_message'        => "'".$lang_install['Default maint message']."'",1662:         'o_maintenance_message'        => "'".$lang_admin_settings['Maintenance message default']."'",
1654:         'o_default_dst'                => "'0'",1663:         'o_default_dst'                => "'0'",
1655:         'p_message_bbcode'            => "'1'",1664:         'p_message_bbcode'            => "'1'",
1656:         'p_message_img_tag'            => "'1'",1665:         'p_message_img_tag'            => "'1'",
1741: 1750: 
1742: 1751: 
1743:     $alerts = array();1752:     $alerts = array();
 1753: 
1744:     // Check if the cache directory is writable1754:     // Check if the cache directory is writable
1745:     if (!is_writable('./cache/'))1755:     if (!is_writable(FORUM_ROOT.'cache/'))
1746:         $alerts[] = '<li>'.$lang_install['No cache write'].'</li>';1756:         $alerts[] = '<li><span>'.$lang_install['No cache write'].'</span></li>';
1747: 1757: 
1748:     // Check if default avatar directory is writable1758:     // Check if default avatar directory is writable
1749:     if (!is_writable('./img/avatars/'))1759:     if (!is_writable(FORUM_ROOT.'img/avatars/'))
1750:         $alerts[] = '<li>'.$lang_install['No avatar write'].'</li>';1760:         $alerts[] = '<li><span>'.$lang_install['No avatar write'].'</span></li>';
1751: 1761: 
1752:     // Check if we disabled uploading avatars because file_uploads was disabled1762:     // Check if we disabled uploading avatars because file_uploads was disabled
1753:     if ($avatars == '0')1763:     if ($avatars == '0')
1754:         $alerts[] = '<li>'.$lang_install['File upload alert'].'</li>';1764:         $alerts[] = '<li><span>'.$lang_install['File upload alert'].'</span></li>';
1755: 1765: 
1756:     // Add some random bytes at the end of the cookie name to prevent collisions1766:     // Add some random bytes at the end of the cookie name to prevent collisions
1757:     $cookie_name = 'forum_cookie_'.random_key(6, false, true);1767:     $cookie_name = 'forum_cookie_'.random_key(6, false, true);
1819: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />1829: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
1820: <title>PunBB Installation</title>1830: <title>PunBB Installation</title>
1821: <link rel="stylesheet" type="text/css" href="<?php echo FORUM_ROOT ?>style/Oxygen/Oxygen.css" />1831: <link rel="stylesheet" type="text/css" href="<?php echo FORUM_ROOT ?>style/Oxygen/Oxygen.css" />
1822: <link rel="stylesheet" type="text/css" href="<?php echo FORUM_ROOT ?>style/Oxygen/Oxygen_forms.css" /> 
1823: <link rel="stylesheet" type="text/css" href="<?php echo FORUM_ROOT ?>style/Oxygen/Oxygen_cs.css" />1832: <link rel="stylesheet" type="text/css" href="<?php echo FORUM_ROOT ?>style/Oxygen/Oxygen_cs.css" />
1824: <!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="<?php echo FORUM_ROOT ?>style/Oxygen/Oxygen_ie.css" /><![endif]-->1833: <!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="<?php echo FORUM_ROOT ?>style/Oxygen/Oxygen_ie6.css" /><![endif]-->
 1834: <!--[if IE 7]><link rel="stylesheet" type="text/css" href="<?php echo FORUM_ROOT ?>style/Oxygen/Oxygen_ie7.css" /><![endif]-->
1825: </head>1835: </head>
1826: 1836: 
1827: <body>1837: <body>
1838:     <p><?php echo $lang_install['Success welcome'] ?></p>1848:     <p><?php echo $lang_install['Success welcome'] ?></p>
1839: </div>1849: </div>
1840: 1850: 
1841: <?php 
1842: ?> 
1843:  
1844: <div id="brd-main" class="main basic">1851: <div id="brd-main" class="main basic">
1845: 1852: 
1846:     <div class="main-head">1853:     <div class="main-head">
1848:     </div>1855:     </div>
1849: 1856: 
1850:     <div class="main-content main-frm">1857:     <div class="main-content main-frm">
1851: <?php1858: <?php if (!empty($alerts)): ?>
 1859:         <div class="ct-box error-box">
 1860:             <p class="warn"><strong><?php echo $lang_install['Warning'] ?></strong></p>
 1861:             <ul>
 1862:                 <?php echo implode("\n\t\t\t\t", $alerts)."\n" ?>
 1863:             </ul>
 1864:         </div>
 1865: <?php endif;
1852: 1866: 
1853: if (!$written)1867: if (!$written)
1854: {1868: {
1855: 1869: 
1856: ?>1870: ?>
1857:         <div class="ct-box warn-box">1871:         <div class="ct-box info-box">
1858:             <p class="warn"><?php echo $lang_install['No write info 1'] ?></p>1872:             <p class="warn"><?php echo $lang_install['No write info 1'] ?></p>
1859:             <p class="warn"><?php printf($lang_install['No write info 2'], '<a href="'.FORUM_ROOT.'index.php">'.$lang_install['Go to index'].'</a>') ?></p>1873:             <p class="warn"><?php printf($lang_install['No write info 2'], '<a href="'.FORUM_ROOT.'index.php">'.$lang_install['Go to index'].'</a>') ?></p>
1860:         </div>1874:         </div>
1861: <?php if (!empty($alerts)): ?>        <div class="ct-box error-box">1875:         <form class="frm-form" method="post" accept-charset="utf-8" action="install.php">
1862:             <?php echo $lang_install['Warning'] ?></p> 
1863:             <ul> 
1864:                 <?php echo implode("\n\t\t\t\t", $alerts)."\n" ?> 
1865:             </ul> 
1866:         </div> 
1867: <?php endif; ?>        <form class="frm-form" method="post" accept-charset="utf-8" action="install.php"> 
1868:             <div class="hidden">1876:             <div class="hidden">
1869:             <input type="hidden" name="generate_config" value="1" />1877:             <input type="hidden" name="generate_config" value="1" />
1870:             <input type="hidden" name="db_type" value="<?php echo $db_type; ?>" />1878:             <input type="hidden" name="db_type" value="<?php echo $db_type; ?>" />


punbb-1.3/admin/prune.php punbb-1.3.5/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/admin/ranks.php punbb-1.3.5/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/admin/reindex.php punbb-1.3.5/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/admin/reports.php punbb-1.3.5/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:  */
 54: // Setup breadcrumbs 54: // Setup breadcrumbs
 55: $forum_page['crumbs'] = array( 55: $forum_page['crumbs'] = array(
 56:     array($forum_config['o_board_title'], forum_link($forum_url['index'])), 56:     array($forum_config['o_board_title'], forum_link($forum_url['index'])),
 57:     array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])), 57:     array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index']))
 58:     array($lang_admin_common['Management'], forum_link($forum_url['admin_reports'])), 
 59:     array($lang_admin_common['Reports'], forum_link($forum_url['admin_reports'])) 
 60: ); 58: );
  59: if ($forum_user['g_id'] == FORUM_ADMIN)
  60:     $forum_page['crumbs'][] = array($lang_admin_common['Management'], forum_link($forum_url['admin_reports']));
  61: $forum_page['crumbs'][] = array($lang_admin_common['Reports'], forum_link($forum_url['admin_reports']));
 61:  62: 
 62: ($hook = get_hook('arp_pre_header_load')) ? eval($hook) : null; 63: ($hook = get_hook('arp_pre_header_load')) ? eval($hook) : null;
 63:  64: 


punbb-1.3/admin/settings.php punbb-1.3.5/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: 
266:         array($lang_admin_common['Setup'], forum_link($forum_url['admin_settings_setup']))266:         array($lang_admin_common['Setup'], forum_link($forum_url['admin_settings_setup']))
267:     );267:     );
268: 268: 
269:     $forum_page['main_head'] = $lang_admin_common['Settings']; 
270:  
271:     ($hook = get_hook('aop_setup_pre_header_load')) ? eval($hook) : null;269:     ($hook = get_hook('aop_setup_pre_header_load')) ? eval($hook) : null;
272: 270: 
273:     define('FORUM_PAGE_SECTION', 'settings');271:     define('FORUM_PAGE_SECTION', 'settings');
980:                         <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Update check'] ?></span> <?php echo $lang_admin_settings['Update check label'] ?></label>978:                         <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Update check'] ?></span> <?php echo $lang_admin_settings['Update check label'] ?></label>
981:                     </div>979:                     </div>
982:                 </div>980:                 </div>
983: <?php ($hook = get_hook('aop_features_pre_updates_fieldset_end')) ? eval($hook) : null; ?> 
984:             </fieldset> 
985:             <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>"> 
986:                 <legend class="group-legend"><strong><?php echo $lang_admin_settings['Check for versions'] ?></strong></legend> 
987: <?php ($hook = get_hook('aop_features_pre_version_updates_checkbox')) ? eval($hook) : null; ?>981: <?php ($hook = get_hook('aop_features_pre_version_updates_checkbox')) ? eval($hook) : null; ?>
988:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">982:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
989:                     <div class="sf-box checkbox">983:                     <div class="sf-box checkbox">
991:                         <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Check for versions'] ?></span> <?php echo $lang_admin_settings['Auto check for versions'] ?></label>985:                         <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Check for versions'] ?></span> <?php echo $lang_admin_settings['Auto check for versions'] ?></label>
992:                     </div>986:                     </div>
993:                 </div>987:                 </div>
994: <?php ($hook = get_hook('aop_features_pre_version_updates_fieldset_end')) ? eval($hook) : null; ?>988: <?php ($hook = get_hook('aop_features_pre_updates_fieldset_end')) ? eval($hook) : null; ?>
995:             </fieldset>989:             </fieldset>
996: <?php ($hook = get_hook('aop_features_updates_fieldset_end')) ? eval($hook) : null; ?>990: <?php ($hook = get_hook('aop_features_updates_fieldset_end')) ? eval($hook) : null; ?>
997: <?php else: ?>991: <?php else: ?>
1268:     ($hook = get_hook('aop_maintenance_output_start')) ? eval($hook) : null;1262:     ($hook = get_hook('aop_maintenance_output_start')) ? eval($hook) : null;
1269: 1263: 
1270: ?>1264: ?>
 1265:     <div class="main-subhead">
 1266:         <h2 class="hn"><span><?php echo $lang_admin_settings['Maintenance head'] ?></span></h2>
 1267:     </div>
1271:     <div class="main-content main-frm">1268:     <div class="main-content main-frm">
1272:         <div class="content-head"> 
1273:             <h2 class="hn"><span><?php echo $lang_admin_settings['Maintenance head'] ?></span></h2> 
1274:         </div> 
1275:         <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']) ?>">
1276:             <div class="hidden">1270:             <div class="hidden">
1277:                 <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'])) ?>" />
1278:                 <input type="hidden" name="form_sent" value="1" />1272:                 <input type="hidden" name="form_sent" value="1" />
1279:             </div>1273:             </div>
1280:             <div class="ct-box">1274:             <div class="ct-box warn-box">
1281:                 <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>
1282:                 <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>
1283:             </div>1277:             </div>


punbb-1.3/admin/users.php punbb-1.3.5/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:  */
 50:     // Setup breadcrumbs 50:     // Setup breadcrumbs
 51:     $forum_page['crumbs'] = array( 51:     $forum_page['crumbs'] = array(
 52:         array($forum_config['o_board_title'], forum_link($forum_url['index'])), 52:         array($forum_config['o_board_title'], forum_link($forum_url['index'])),
 53:         array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])), 53:         array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index']))
 54:         array($lang_admin_common['Users'], forum_link($forum_url['admin_users'])), 
 55:         array($lang_admin_common['Searches'], forum_link($forum_url['admin_users'])), 
 56:         $lang_admin_users['User search results'] 
 57:     ); 54:     );
  55:     if ($forum_user['g_id'] == FORUM_ADMIN)
  56:         $forum_page['crumbs'][] = array($lang_admin_common['Users'], forum_link($forum_url['admin_users']));
  57:     $forum_page['crumbs'][] = array($lang_admin_common['Searches'], forum_link($forum_url['admin_users']));
  58:     $forum_page['crumbs'][] = $lang_admin_users['User search results'];
 58:  59: 
 59:     ($hook = get_hook('aus_ip_stats_pre_header_load')) ? eval($hook) : null; 60:     ($hook = get_hook('aus_ip_stats_pre_header_load')) ? eval($hook) : null;
 60:  61: 
198:     // Setup breadcrumbs199:     // Setup breadcrumbs
199:     $forum_page['crumbs'] = array(200:     $forum_page['crumbs'] = array(
200:         array($forum_config['o_board_title'], forum_link($forum_url['index'])),201:         array($forum_config['o_board_title'], forum_link($forum_url['index'])),
201:         array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])),202:         array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index']))
202:         array($lang_admin_common['Users'], forum_link($forum_url['admin_users'])), 
203:         array($lang_admin_common['Searches'], forum_link($forum_url['admin_users'])), 
204:         $lang_admin_users['User search results'] 
205:     );203:     );
 204:     if ($forum_user['g_id'] == FORUM_ADMIN)
 205:         $forum_page['crumbs'][] = array($lang_admin_common['Users'], forum_link($forum_url['admin_users']));
 206:     $forum_page['crumbs'][] = array($lang_admin_common['Searches'], forum_link($forum_url['admin_users']));
 207:     $forum_page['crumbs'][] = $lang_admin_users['User search results'];
206: 208: 
207:     ($hook = get_hook('aus_show_users_pre_header_load')) ? eval($hook) : null;209:     ($hook = get_hook('aus_show_users_pre_header_load')) ? eval($hook) : null;
208: 210: 
605:     // Setup breadcrumbs607:     // Setup breadcrumbs
606:     $forum_page['crumbs'] = array(608:     $forum_page['crumbs'] = array(
607:         array($forum_config['o_board_title'], forum_link($forum_url['index'])),609:         array($forum_config['o_board_title'], forum_link($forum_url['index'])),
608:         array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])),610:         array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index']))
609:         array($lang_admin_common['Users'], forum_link($forum_url['admin_users'])), 
610:         array($lang_admin_common['Searches'], forum_link($forum_url['admin_users'])), 
611:         $lang_admin_users['Ban users'] 
612:     );611:     );
 612:     if ($forum_user['g_id'] == FORUM_ADMIN)
 613:         $forum_page['crumbs'][] = array($lang_admin_common['Users'], forum_link($forum_url['admin_users']));
 614:     $forum_page['crumbs'][] = array($lang_admin_common['Searches'], forum_link($forum_url['admin_users']));
 615:     $forum_page['crumbs'][] = $lang_admin_users['Ban users'];
613: 616: 
614:     ($hook = get_hook('aus_ban_users_pre_header_load')) ? eval($hook) : null;617:     ($hook = get_hook('aus_ban_users_pre_header_load')) ? eval($hook) : null;
615: 618: 
809: }812: }
810: 813: 
811: 814: 
812: else if (isset($_POST['find_user']))815: else if (isset($_GET['find_user']))
813: {816: {
814:     $form = $_POST['form'];817:     $form = isset($_GET['form']) ? $_GET['form'] : array();
815:     $form['username'] = $_POST['username'];818: 
 819:     // trim() all elements in $form
 820:     $form = array_map('forum_trim', $form);
 821:     $conditions = $query_str = array();
 822: 
 823:     //Check up for order_by and direction values
 824:     $order_by = isset($_GET['order_by']) ? forum_trim($_GET['order_by']) : null;
 825:     $direction = isset($_GET['direction']) ? forum_trim($_GET['direction']) : null;
 826:     if ($order_by == null || $direction == null)
 827:         message($lang_common['Bad request']);
 828: 
 829:     if (!in_array($order_by, array('username', 'email', 'num_posts', 'num_posts', 'registered')) || !in_array($direction, array('ASC', 'DESC')))
 830:         message($lang_common['Bad request']);
816: 831: 
817:     ($hook = get_hook('aus_find_user_selected')) ? eval($hook) : null;832:     ($hook = get_hook('aus_find_user_selected')) ? eval($hook) : null;
818: 833: 
819:     // forum_trim() all elements in $form834:     $query_str[] = 'order_by='.$order_by;
820:     $form = array_map('trim', $form);835:     $query_str[] = 'direction='.$direction;
821:     $conditions = array();836: 
822: 837:     $posts_greater = isset($_GET['posts_greater']) ? forum_trim($_GET['posts_greater']) : '';
823:     $posts_greater = forum_trim($_POST['posts_greater']);838:     $posts_less = isset($_GET['posts_less']) ? forum_trim($_GET['posts_less']) : '';
824:     $posts_less = forum_trim($_POST['posts_less']);839:     $last_post_after = isset($_GET['last_post_after']) ? forum_trim($_GET['last_post_after']) : '';
825:     $last_post_after = forum_trim($_POST['last_post_after']);840:     $last_post_before = isset($_GET['last_post_before']) ? forum_trim($_GET['last_post_before']) : '';
826:     $last_post_before = forum_trim($_POST['last_post_before']);841:     $registered_after = isset($_GET['registered_after']) ? forum_trim($_GET['registered_after']) : '';
827:     $registered_after = forum_trim($_POST['registered_after']);842:     $registered_before = isset($_GET['registered_before']) ? forum_trim($_GET['registered_before']) : '';
828:     $registered_before = forum_trim($_POST['registered_before']);843:     $user_group = isset($_GET['user_group']) ? intval($_GET['user_group']) : -1;
829:     $order_by = $_POST['order_by'];844: 
830:     $direction = $_POST['direction'];845:     $query_str[] = 'user_group='.$user_group;
831:     $user_group = $_POST['user_group']; 
832: 846: 
833:     if ((!empty($posts_greater) || !empty($posts_less)) && !ctype_digit($posts_greater.$posts_less))847:     if ((!empty($posts_greater) || !empty($posts_less)) && !ctype_digit($posts_greater.$posts_less))
834:         message($lang_admin_users['Non numeric value message']);848:         message($lang_admin_users['Non numeric value message']);
835: 849: 
836:     // Try to convert date/time to timestamps850:     // Try to convert date/time to timestamps
837:     if ($last_post_after != '')851:     if ($last_post_after != '')
838:         $last_post_after = strtotime($last_post_after);852:     {
839:     if ($last_post_before != '')853:         $query_str[] = 'last_post_after='.$last_post_after;
840:         $last_post_before = strtotime($last_post_before); 
841:     if ($registered_after != '') 
842:         $registered_after = strtotime($registered_after); 
843:     if ($registered_before != '') 
844:         $registered_before = strtotime($registered_before); 
845: 854: 
846:     if ($last_post_after == -1 || $last_post_before == -1 || $registered_after == -1 || $registered_before == -1)855:         $last_post_after = strtotime($last_post_after);
847:         message($lang_admin_users['Invalid date/time message']);856:         if ($last_post_after === false || $last_post_after == -1)
 857:             message($lang_admin_users['Invalid date/time message']);
848: 858: 
849:     if ($last_post_after != '') 
850:         $conditions[] = 'u.last_post>'.$last_post_after;859:         $conditions[] = 'u.last_post>'.$last_post_after;
 860:     }
851:     if ($last_post_before != '')861:     if ($last_post_before != '')
 862:     {
 863:         $query_str[] = 'last_post_before='.$last_post_before;
 864: 
 865:         $last_post_before = strtotime($last_post_before);
 866:         if ($last_post_before === false || $last_post_before == -1)
 867:             message($lang_admin_users['Invalid date/time message']);
 868: 
852:         $conditions[] = 'u.last_post<'.$last_post_before;869:         $conditions[] = 'u.last_post<'.$last_post_before;
 870:     }
853:     if ($registered_after != '')871:     if ($registered_after != '')
 872:     {
 873:         $query_str[] = 'registered_after='.$registered_after;
 874: 
 875:         $registered_after = strtotime($registered_after);
 876:         if ($registered_after === false || $registered_after == -1)
 877:             message($lang_admin_users['Invalid date/time message']);
 878: 
854:         $conditions[] = 'u.registered>'.$registered_after;879:         $conditions[] = 'u.registered>'.$registered_after;
 880:     }
855:     if ($registered_before != '')881:     if ($registered_before != '')
 882:     {
 883:         $query_str[] = 'registered_before='.$registered_before;
 884: 
 885:         $registered_before = strtotime($registered_before);
 886:         if ($registered_before === false || $registered_before == -1)
 887:             message($lang_admin_users['Invalid date/time message']);
 888: 
856:         $conditions[] = 'u.registered<'.$registered_before;889:         $conditions[] = 'u.registered<'.$registered_before;
 890:     }
857: 891: 
858:     $like_command = ($db_type == 'pgsql') ? 'ILIKE' : 'LIKE';892:     $like_command = ($db_type == 'pgsql') ? 'ILIKE' : 'LIKE';
859:     foreach ($form as $key => $input)893:     foreach ($form as $key => $input)
860:     {894:     {
861:         if ($input != '' && in_array($key, array('username', 'email', 'title', 'realname', 'url', 'jabber', 'icq', 'msn', 'aim', 'yahoo', 'location', 'signature', 'admin_note')))895:         if ($input != '' && in_array($key, array('username', 'email', 'title', 'realname', 'url', 'jabber', 'icq', 'msn', 'aim', 'yahoo', 'location', 'signature', 'admin_note')))
 896:         {
862:             $conditions[] = 'u.'.$forum_db->escape($key).' '.$like_command.' \''.$forum_db->escape(str_replace('*', '%', $input)).'\'';897:             $conditions[] = 'u.'.$forum_db->escape($key).' '.$like_command.' \''.$forum_db->escape(str_replace('*', '%', $input)).'\'';
 898:             $query_str[] = 'form%5B'.$key.'%5D='.urlencode($input);
 899:         }
863:     }900:     }
864: 901: 
865:     if ($posts_greater != '')902:     if ($posts_greater != '')
 903:     {
 904:         $query_str[] = 'posts_greater='.$posts_greater;
866:         $conditions[] = 'u.num_posts>'.$posts_greater;905:         $conditions[] = 'u.num_posts>'.$posts_greater;
 906:     }
867:     if ($posts_less != '')907:     if ($posts_less != '')
 908:     {
 909:         $query_str[] = 'posts_less='.$posts_less;
868:         $conditions[] = 'u.num_posts<'.$posts_less;910:         $conditions[] = 'u.num_posts<'.$posts_less;
 911:     }
869: 912: 
870:     if ($user_group != 'all')913:     if ($user_group > -1)
871:         $conditions[] = 'u.group_id='.intval($user_group);914:         $conditions[] = 'u.group_id='.intval($user_group);
872: 915: 
873:     if (empty($conditions))916:     if (empty($conditions))
874:         message($lang_admin_users['No search terms message']);917:         message($lang_admin_users['No search terms message']);
875: 918: 
876:  
877:     // Load the misc.php language file919:     // Load the misc.php language file
878:     require FORUM_ROOT.'lang/'.$forum_user['language'].'/misc.php';920:     require FORUM_ROOT.'lang/'.$forum_user['language'].'/misc.php';
879: 921: 
880:     // Find any users matching the conditions922:     // Fetch user count
881:     $query = array(923:     $query = array(
882:         'SELECT'    => 'u.id, u.username, u.email, u.title, u.num_posts, u.admin_note, g.g_id, g.g_user_title',924:         'SELECT'    => 'COUNT(id)',
883:         'FROM'        => 'users AS u',925:         'FROM'        => 'users AS u',
884:         'JOINS'        => array(926:         'JOINS'        => array(
885:             array(927:             array(
887:                 'ON'            => 'g.g_id=u.group_id'929:                 'ON'            => 'g.g_id=u.group_id'
888:             )930:             )
889:         ),931:         ),
890:         'WHERE'        => 'u.id>1 AND '.implode(' AND ', $conditions),932:         'WHERE'        => 'u.id>1 AND '.implode(' AND ', $conditions)
891:         'ORDER BY'    => $forum_db->escape($order_by).' '.$forum_db->escape($direction) 
892:     );933:     );
893: 934: 
894:     ($hook = get_hook('aus_find_user_qr_find_users')) ? eval($hook) : null;935:     ($hook = get_hook('aus_find_user_qr_count_find_users')) ? eval($hook) : null;
895:     $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); 
896:     $forum_page['num_users'] = $forum_db->num_rows($result); 
897: 936: 
 937:     $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
 938:     $forum_page['num_users'] = $forum_db->result($result);
 939:     $forum_page['num_pages'] = ceil($forum_page['num_users'] / $forum_user['disp_topics']);
 940:     $forum_page['page'] = (!isset($_GET['p']) || !is_numeric($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $forum_page['num_pages']) ? 1 : $_GET['p'];
 941:     $forum_page['start_from'] = $forum_user['disp_topics'] * ($forum_page['page'] - 1);
 942:     $forum_page['finish_at'] = min(($forum_page['start_from'] + $forum_user['disp_topics']), ($forum_page['num_users']));
898: 943: 
899:     // Setup breadcrumbs944:     // Setup breadcrumbs
900:     $forum_page['crumbs'] = array(945:     $forum_page['crumbs'] = array(
901:         array($forum_config['o_board_title'], forum_link($forum_url['index'])),946:         array($forum_config['o_board_title'], forum_link($forum_url['index'])),
902:         array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])),947:         array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index']))
903:         array($lang_admin_common['Users'], forum_link($forum_url['admin_users'])), 
904:         array($lang_admin_common['Searches'], forum_link($forum_url['admin_users'])), 
905:         $lang_admin_users['User search results'] 
906:     );948:     );
 949:     if ($forum_user['g_id'] == FORUM_ADMIN)
 950:         $forum_page['crumbs'][] = array($lang_admin_common['Users'], forum_link($forum_url['admin_users']));
 951:     $forum_page['crumbs'][] = array($lang_admin_common['Searches'], forum_link($forum_url['admin_users']));
 952:     $forum_page['crumbs'][] = $lang_admin_users['User search results'];
 953: 
 954:     // Generate paging
 955:     $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['admin_users'].'?find_user=&amp;'.implode('&amp;', $query_str), $lang_common['Paging separator'], null, true).'</p>';
907: 956: 
908:     ($hook = get_hook('aus_find_user_pre_header_load')) ? eval($hook) : null;957:     ($hook = get_hook('aus_find_user_pre_header_load')) ? eval($hook) : null;
909: 958: 
951:             <tbody>1000:             <tbody>
952: <?php1001: <?php
953: 1002: 
 1003:     // Find any users matching the conditions
 1004:     $query = array(
 1005:         'SELECT'    => 'u.id, u.username, u.email, u.title, u.num_posts, u.admin_note, g.g_id, g.g_user_title',
 1006:         'FROM'        => 'users AS u',
 1007:         'JOINS'        => array(
 1008:             array(
 1009:                 'LEFT JOIN'        => 'groups AS g',
 1010:                 'ON'            => 'g.g_id=u.group_id'
 1011:             )
 1012:         ),
 1013:         'WHERE'        => 'u.id>1 AND '.implode(' AND ', $conditions),
 1014:         'ORDER BY'    => $order_by.' '.$direction,
 1015:         'LIMIT'        => $forum_page['start_from'].', '.$forum_page['finish_at']
 1016:     );
 1017: 
 1018:     ($hook = get_hook('aus_find_user_qr_find_users')) ? eval($hook) : null;
 1019: 
 1020:     $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
 1021: 
954:     if ($forum_page['num_users'] > 0)1022:     if ($forum_page['num_users'] > 0)
955:     {1023:     {
956:         $forum_page['item_count'] = 0;1024:         $forum_page['item_count'] = 0;
1071: 1139: 
1072: // Setup form1140: // Setup form
1073: $forum_page['group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0;1141: $forum_page['group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0;
1074: $forum_page['form_action'] = ''; 
1075: 1142: 
1076: // Setup breadcrumbs1143: // Setup breadcrumbs
1077: $forum_page['crumbs'] = array(1144: $forum_page['crumbs'] = array(
1078:     array($forum_config['o_board_title'], forum_link($forum_url['index'])),1145:     array($forum_config['o_board_title'], forum_link($forum_url['index'])),
1079:     array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])),1146:     array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index']))
1080:     array($lang_admin_common['Users'], forum_link($forum_url['admin_users'])), 
1081:     array($lang_admin_common['Searches'], forum_link($forum_url['admin_users'])), 
1082: );1147: );
 1148: if ($forum_user['g_id'] == FORUM_ADMIN)
 1149:     $forum_page['crumbs'][] = array($lang_admin_common['Users'], forum_link($forum_url['admin_users']));
 1150: $forum_page['crumbs'][] = array($lang_admin_common['Searches'], forum_link($forum_url['admin_users']));
1083: 1151: 
1084: ($hook = get_hook('aus_search_form_pre_header_load')) ? eval($hook) : null;1152: ($hook = get_hook('aus_search_form_pre_header_load')) ? eval($hook) : null;
1085: 1153: 
1097:         <h2 class="hn"><span><?php echo $lang_admin_users['Search head'] ?></span></h2>1165:         <h2 class="hn"><span><?php echo $lang_admin_users['Search head'] ?></span></h2>
1098:     </div>1166:     </div>
1099:     <div class="main-content main-frm">1167:     <div class="main-content main-frm">
1100:         <form class="frm-form" method="post" accept-charset="utf-8" action="<?php echo forum_link($forum_url['admin_users']) ?>?action=find_user">1168:         <form class="frm-form" method="get" accept-charset="utf-8" action="<?php echo forum_link($forum_url['admin_users']) ?>">
1101:             <div class="hidden">1169:             <div class="hidden">
1102:                 <input type="hidden" name="csrf_token" value="<?php echo generate_form_token(forum_link($forum_url['admin_users']).'?action=find_user') ?>" />1170:                 <input type="hidden" name="csrf_token" value="<?php echo generate_form_token(forum_link($forum_url['admin_users']).'?action=find_user') ?>" />
1103:             </div>1171:             </div>
1111:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">1179:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
1112:                     <div class="sf-box text">1180:                     <div class="sf-box text">
1113:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_users['Username label'] ?></span></label><br />1181:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_users['Username label'] ?></span></label><br />
1114:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="username" size="25" maxlength="25" /></span>1182:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[username]" size="35" maxlength="25" /></span>
1115:                     </div>1183:                     </div>
1116:                 </div>1184:                 </div>
1117: <?php ($hook = get_hook('aus_search_form_pre_user_title')) ? eval($hook) : null; ?>1185: <?php ($hook = get_hook('aus_search_form_pre_user_title')) ? eval($hook) : null; ?>
1118:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">1186:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
1119:                     <div class="sf-box text">1187:                     <div class="sf-box text">
1120:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_users['Title label'] ?></span></label><br />1188:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_users['Title label'] ?></span></label><br />
1121:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[title]" size="30" maxlength="50" /></span>1189:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[title]" size="35" maxlength="50" /></span>
1122:                     </div>1190:                     </div>
1123:                 </div>1191:                 </div>
1124: <?php ($hook = get_hook('aus_search_form_pre_realname')) ? eval($hook) : null; ?>1192: <?php ($hook = get_hook('aus_search_form_pre_realname')) ? eval($hook) : null; ?>
1125:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">1193:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
1126:                     <div class="sf-box text">1194:                     <div class="sf-box text">
1127:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_users['Real name label'] ?></span></label><br />1195:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_users['Real name label'] ?></span></label><br />
1128:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[realname]" size="30" maxlength="40" /></span>1196:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[realname]" size="35" maxlength="40" /></span>
1129:                     </div>1197:                     </div>
1130:                 </div>1198:                 </div>
1131: <?php ($hook = get_hook('aus_search_form_pre_location')) ? eval($hook) : null; ?>1199: <?php ($hook = get_hook('aus_search_form_pre_location')) ? eval($hook) : null; ?>
1132:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">1200:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
1133:                     <div class="sf-box text">1201:                     <div class="sf-box text">
1134:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_users['Location label'] ?></span></label><br />1202:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_users['Location label'] ?></span></label><br />
1135:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[location]" size="30" maxlength="30" /></span>1203:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[location]" size="35" maxlength="30" /></span>
1136:                     </div>1204:                     </div>
1137:                 </div>1205:                 </div>
1138: <?php ($hook = get_hook('aus_search_form_pre_signature')) ? eval($hook) : null; ?>1206: <?php ($hook = get_hook('aus_search_form_pre_signature')) ? eval($hook) : null; ?>
1146:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">1214:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
1147:                     <div class="sf-box text">1215:                     <div class="sf-box text">
1148:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_users['Admin note label'] ?></span></label><br />1216:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_users['Admin note label'] ?></span></label><br />
1149:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[admin_note]" size="30" maxlength="30" /></span>1217:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[admin_note]" size="35" maxlength="30" /></span>
1150:                     </div>1218:                     </div>
1151:                 </div>1219:                 </div>
1152: <?php ($hook = get_hook('aus_search_form_pre_user_details_fieldset_end')) ? eval($hook) : null; ?>1220: <?php ($hook = get_hook('aus_search_form_pre_user_details_fieldset_end')) ? eval($hook) : null; ?>
1160:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">1228:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
1161:                     <div class="sf-box text">1229:                     <div class="sf-box text">
1162:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_users['E-mail address label'] ?></span></label><br />1230:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_users['E-mail address label'] ?></span></label><br />
1163:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[email]" size="30" maxlength="80" /></span>1231:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[email]" size="35" maxlength="80" /></span>
1164:                     </div>1232:                     </div>
1165:                 </div>1233:                 </div>
1166: <?php ($hook = get_hook('aus_search_form_pre_website')) ? eval($hook) : null; ?>                <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">1234: <?php ($hook = get_hook('aus_search_form_pre_website')) ? eval($hook) : null; ?>                <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
1172: <?php ($hook = get_hook('aus_search_form_pre_jabber')) ? eval($hook) : null; ?>                <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">1240: <?php ($hook = get_hook('aus_search_form_pre_jabber')) ? eval($hook) : null; ?>                <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
1173:                     <div class="sf-box text">1241:                     <div class="sf-box text">
1174:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_users['Jabber label'] ?></span></label><br />1242:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_users['Jabber label'] ?></span></label><br />
1175:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[jabber]" size="30" maxlength="80" /></span>1243:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[jabber]" size="35" maxlength="80" /></span>
1176:                     </div>1244:                     </div>
1177:                 </div>1245:                 </div>
1178: <?php ($hook = get_hook('aus_search_form_pre_icq')) ? eval($hook) : null; ?>                <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">1246: <?php ($hook = get_hook('aus_search_form_pre_icq')) ? eval($hook) : null; ?>                <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
1184: <?php ($hook = get_hook('aus_search_form_pre_msn')) ? eval($hook) : null; ?>                <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">1252: <?php ($hook = get_hook('aus_search_form_pre_msn')) ? eval($hook) : null; ?>                <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
1185:                     <div class="sf-box text">1253:                     <div class="sf-box text">
1186:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_users['MSN Messenger label'] ?></span></label><br />1254:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_users['MSN Messenger label'] ?></span></label><br />
1187:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[msn]" size="30" maxlength="80" /></span>1255:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[msn]" size="35" maxlength="80" /></span>
1188:                     </div>1256:                     </div>
1189:                 </div>1257:                 </div>
1190: <?php ($hook = get_hook('aus_search_form_pre_aim')) ? eval($hook) : null; ?>                <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">1258: <?php ($hook = get_hook('aus_search_form_pre_aim')) ? eval($hook) : null; ?>                <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
1293:                     <div class="sf-box select">1361:                     <div class="sf-box select">
1294:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_users['User group label'] ?></span></label><br />1362:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_users['User group label'] ?></span></label><br />
1295:                         <span class="fld-input"><select id="fld<?php echo $forum_page['fld_count'] ?>" name="user_group">1363:                         <span class="fld-input"><select id="fld<?php echo $forum_page['fld_count'] ?>" name="user_group">
1296:                             <option value="all" selected="selected"><?php echo $lang_admin_users['All groups'] ?></option>1364:                             <option value="-1" selected="selected"><?php echo $lang_admin_users['All groups'] ?></option>
1297:                             <option value="<?php echo FORUM_UNVERIFIED ?>"><?php echo $lang_admin_users['Unverified users'] ?></option>1365:                             <option value="<?php echo FORUM_UNVERIFIED ?>"><?php echo $lang_admin_users['Unverified users'] ?></option>
1298: <?php1366: <?php
1299: 1367: 


punbb-1.3/delete.php punbb-1.3.5/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/edit.php punbb-1.3.5/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:  */
 91:             $errors[] = $lang_post['No subject']; 91:             $errors[] = $lang_post['No subject'];
 92:         else if (utf8_strlen($subject) > 70) 92:         else if (utf8_strlen($subject) > 70)
 93:             $errors[] = $lang_post['Too long subject']; 93:             $errors[] = $lang_post['Too long subject'];
 94:         else if ($forum_config['p_subject_all_caps'] == '0' && utf8_strtoupper($subject) == $subject && !$forum_page['is_admmod']) 94:         else if ($forum_config['p_subject_all_caps'] == '0' && check_is_all_caps($subject) && !$forum_page['is_admmod'])
 95:             $subject = utf8_ucwords(utf8_strtolower($subject)); 95:             $subject = utf8_ucwords(utf8_strtolower($subject));
 96:     } 96:     }
 97:  97: 
100: 100: 
101:     if (strlen($message) > FORUM_MAX_POSTSIZE_BYTES)101:     if (strlen($message) > FORUM_MAX_POSTSIZE_BYTES)
102:         $errors[] = sprintf($lang_post['Too long message'], forum_number_format(strlen($message)), forum_number_format(FORUM_MAX_POSTSIZE_BYTES));102:         $errors[] = sprintf($lang_post['Too long message'], forum_number_format(strlen($message)), forum_number_format(FORUM_MAX_POSTSIZE_BYTES));
103:     else if ($forum_config['p_message_all_caps'] == '0' && utf8_strtoupper($message) == $message && !$forum_page['is_admmod'])103:     else if ($forum_config['p_message_all_caps'] == '0' && check_is_all_caps($message) && !$forum_page['is_admmod'])
104:         $message = utf8_ucwords(utf8_strtolower($message));104:         $message = utf8_ucwords(utf8_strtolower($message));
105: 105: 
106:     // Validate BBCode syntax106:     // Validate BBCode syntax
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/extern.php punbb-1.3.5/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";
128:         echo "\t\t\t".'<link>'.$item['link'].'</link>'."\n";129:         echo "\t\t\t".'<link>'.$item['link'].'</link>'."\n";
129:         echo "\t\t\t".'<description><![CDATA['.escape_cdata($item['description']).']]></description>'."\n";130:         echo "\t\t\t".'<description><![CDATA['.escape_cdata($item['description']).']]></description>'."\n";
130:         echo "\t\t\t".'<author><![CDATA['.(isset($item['author']['email']) ? escape_cdata($item['author']['email']) : 'dummy@example.com').' ('.escape_cdata($item['author']['name']).')]]></author>'."\n";131:         echo "\t\t\t".'<author><![CDATA['.(isset($item['author']['email']) ? escape_cdata($item['author']['email']) : 'null@example.com').' ('.escape_cdata($item['author']['name']).')]]></author>'."\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:     {
253:         if (utf8_strlen($item['title']) > FORUM_EXTERN_MAX_SUBJECT_LENGTH)267:         if (utf8_strlen($item['title']) > FORUM_EXTERN_MAX_SUBJECT_LENGTH)
254:             $subject_truncated = forum_htmlencode(forum_trim(utf8_substr($item['title'], 0, (FORUM_EXTERN_MAX_SUBJECT_LENGTH - 5)))).' …';268:             $subject_truncated = forum_htmlencode(forum_trim(utf8_substr($item['title'], 0, (FORUM_EXTERN_MAX_SUBJECT_LENGTH - 5)))).'…';
255:         else269:         else
256:             $subject_truncated = forum_htmlencode($item['title']);270:             $subject_truncated = forum_htmlencode($item['title']);
257: 271: 
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(
318:                     'INNER JOIN'    => 'users AS u',337:                     'INNER JOIN'    => 'users AS u',
319:                     'ON'        => 'u.id = p.poster_id'338:                     'ON'            => 'u.id = p.poster_id'
320:                 )339:                 )
321:             ),340:             ),
322:             'WHERE'        => 'p.topic_id='.$tid,341:             'WHERE'        => 'p.topic_id='.$tid,
323:             'ORDER BY'    => 'p.posted DESC',342:             'ORDER BY'    => 'p.posted DESC',
324:             'LIMIT'        => $show343:             'LIMIT'        => $show
325:         );344:         );
326:  
327:         ($hook = get_hook('ex_qr_get_posts')) ? eval($hook) : null;345:         ($hook = get_hook('ex_qr_get_posts')) ? eval($hook) : null;
328:         $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);346:         $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
 347: 
329:         while ($cur_post = $forum_db->fetch_assoc($result))348:         while ($cur_post = $forum_db->fetch_assoc($result))
330:         {349:         {
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.posted, t.subject, 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(
402:                     'INNER JOIN'    => 'posts AS p',448:                     'INNER JOIN'    => 'posts AS p',
403:                     'ON'            => 'p.id=t.first_post_id'449:                     'ON'            => 'p.id = t.first_post_id'
404:                 ),450:                 ),
405:                 array(451:                 array(
406:                     'INNER JOIN'        => 'users AS u',452:                     'INNER JOIN'    => 'users AS u',
407:                     'ON'            => 'u.id = p.poster_id'453:                     'ON'            => 'u.id = p.poster_id'
408:                 ),454:                 ),
409:                 array(455:                 array(
410:                     'LEFT JOIN'        => 'forum_perms AS fp',456:                     'LEFT JOIN'        => 'forum_perms AS fp',
411:                     'ON'            => '(fp.forum_id=t.forum_id AND fp.group_id='.$forum_user['g_id'].')'457:                     'ON'            => '(fp.forum_id = t.forum_id AND fp.group_id = '.$forum_user['g_id'].')'
412:                 )458:                 )
413:             ),459:             ),
414:             'WHERE'        => '(fp.read_forum IS NULL OR fp.read_forum=1) AND t.moved_to IS NULL',460:             'WHERE'        => '(fp.read_forum IS NULL OR fp.read_forum = 1) AND t.moved_to IS NULL',
415:             'ORDER BY'    => 't.last_post DESC',461:             'ORDER BY'    => 't.posted DESC',
416:             'LIMIT'        => $show462:             'LIMIT'        => $show
417:         );463:         );
418: 464: 
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['poster']
439:                 ),487:                 ),
440:                 'pubdate'        =>    $cur_topic['last_post']488:                 'pubdate'        =>    $cur_topic['posted']
441:             );489:             );
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/footer.php punbb-1.3.5/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/header.php punbb-1.3.5/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:  */
 76: if (!defined('FORUM_ALLOW_INDEX')) 76: if (!defined('FORUM_ALLOW_INDEX'))
 77:     $forum_head['robots'] = '<meta name="ROBOTS" content="NOINDEX, FOLLOW" />'; 77:     $forum_head['robots'] = '<meta name="ROBOTS" content="NOINDEX, FOLLOW" />';
 78: else 78: else
 79:     $forum_head['descriptions'] = '<meta name="description" content="'.generate_crumbs(true).' '.$lang_common['Title separator'].' '.forum_htmlencode($forum_config['o_board_desc']).'" />'; 79:     $forum_head['descriptions'] = '<meta name="description" content="'.generate_crumbs(true).$lang_common['Title separator'].forum_htmlencode($forum_config['o_board_desc']).'" />';
 80:  80: 
 81: // Should we output a MicroID? http://microid.org/ 81: // Should we output a MicroID? http://microid.org/
 82: if (strpos(FORUM_PAGE, 'profile') === 0) 82: if (strpos(FORUM_PAGE, 'profile') === 0)
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']))
254:             $alert_items['update_hotfix'] = '<p><strong>'.$lang_common['Updates'].'</strong> '.$lang_common['Updates hf'].'</p>';254:             $alert_items['update_hotfix'] = '<p><strong>'.$lang_common['Updates'].'</strong> '.sprintf($lang_common['Updates hf'], forum_link($forum_url['admin_extensions_hotfixes'])).'</p>';
255:     }255:     }
256: 256: 
257:     // Warn the admin that their version of the database is newer than the version supported by the code257:     // Warn the admin that their version of the database is newer than the version supported by the code
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/help.php punbb-1.3.5/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/include/cache.php punbb-1.3.5/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:  */
297:     $output = array();297:     $output = array();
298:     while ($cur_hook = $forum_db->fetch_assoc($result))298:     while ($cur_hook = $forum_db->fetch_assoc($result))
299:     {299:     {
300:         $load_ext_info = '$ext_info_stack[] = array('."\n".300:         $load_ext_info = '$GLOBALS[\'ext_info_stack\'][] = array('."\n".
301:             '\'id\'                => \''.$cur_hook['extension_id'].'\','."\n".301:             '\'id\'                => \''.$cur_hook['extension_id'].'\','."\n".
302:             '\'path\'            => FORUM_ROOT.\'extensions/'.$cur_hook['extension_id'].'\','."\n".302:             '\'path\'            => FORUM_ROOT.\'extensions/'.$cur_hook['extension_id'].'\','."\n".
303:             '\'url\'            => $GLOBALS[\'base_url\'].\'/extensions/'.$cur_hook['extension_id'].'\','."\n".303:             '\'url\'            => $GLOBALS[\'base_url\'].\'/extensions/'.$cur_hook['extension_id'].'\','."\n".
316:                 '\'url\'            => $GLOBALS[\'base_url\'].\'/extensions/'.$cur_dependency.'\'),'."\n";316:                 '\'url\'            => $GLOBALS[\'base_url\'].\'/extensions/'.$cur_dependency.'\'),'."\n";
317:         }317:         }
318: 318: 
319:         $load_ext_info .= ')'."\n".');'."\n".'$ext_info = $ext_info_stack[count($ext_info_stack) - 1];';319:         $load_ext_info .= ')'."\n".');'."\n".'$ext_info = $GLOBALS[\'ext_info_stack\'][count($GLOBALS[\'ext_info_stack\']) - 1];';
320:         $unload_ext_info = 'array_pop($ext_info_stack);'."\n".'$ext_info = empty($ext_info_stack) ? array() : $ext_info_stack[count($ext_info_stack) - 1];';320:         $unload_ext_info = 'array_pop($GLOBALS[\'ext_info_stack\']);'."\n".'$ext_info = empty($GLOBALS[\'ext_info_stack\']) ? array() : $GLOBALS[\'ext_info_stack\'][count($GLOBALS[\'ext_info_stack\']) - 1];';
321: 321: 
322:         $output[$cur_hook['id']][] = $load_ext_info."\n\n".$cur_hook['code']."\n\n".$unload_ext_info."\n";322:         $output[$cur_hook['id']][] = $load_ext_info."\n\n".$cur_hook['code']."\n\n".$unload_ext_info."\n";
323:     }323:     }
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/include/common.php punbb-1.3.5/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:  */
 16:  16: 
 17: // Turn off magic_quotes_runtime 17: // Turn off magic_quotes_runtime
 18: if (get_magic_quotes_runtime()) 18: if (get_magic_quotes_runtime())
 19:     set_magic_quotes_runtime(0); 19:     @ini_set('magic_quotes_runtime', false);
 20:  20: 
 21: // Strip slashes from GET/POST/COOKIE (if magic_quotes_gpc is enabled) 21: // Strip slashes from GET/POST/COOKIE (if magic_quotes_gpc is enabled)
 22: if (get_magic_quotes_gpc()) 22: if (get_magic_quotes_gpc())


punbb-1.3/include/common_admin.php punbb-1.3.5/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:  */
 35:             if ($forum_config['o_censoring'] == '1') 35:             if ($forum_config['o_censoring'] == '1')
 36:                 $forum_page['admin_submenu']['censoring'] = '<li class="'.((FORUM_PAGE == 'admin-censoring') ? 'active' : 'normal').((empty($forum_page['admin_submenu'])) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['admin_censoring']).'">'.$lang_admin_common['Censoring'].'</a></li>'; 36:                 $forum_page['admin_submenu']['censoring'] = '<li class="'.((FORUM_PAGE == 'admin-censoring') ? 'active' : 'normal').((empty($forum_page['admin_submenu'])) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['admin_censoring']).'">'.$lang_admin_common['Censoring'].'</a></li>';
 37:  37: 
 38:             $form_page['admin_submenu']['reports'] = '<li class="'.((FORUM_PAGE == 'admin-reports') ? 'active' : 'normal').((empty($forum_page['admin_submenu'])) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['admin_reports']).'">'.$lang_admin_common['Reports'].'</a></li>'; 38:             $forum_page['admin_submenu']['reports'] = '<li class="'.((FORUM_PAGE == 'admin-reports') ? 'active' : 'normal').((empty($forum_page['admin_submenu'])) ? ' first-item' : '').'"><a href="'.forum_link($forum_url['admin_reports']).'">'.$lang_admin_common['Reports'].'</a></li>';
 39:  39: 
 40:             if ($forum_user['g_mod_ban_users'] == '1') 40:             if ($forum_user['g_mod_ban_users'] == '1')
 41:                 $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>'; 41:                 $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>';
 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/include/dblayer/common_db.php punbb-1.3.5/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/include/dblayer/mysql.php punbb-1.3.5/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/include/dblayer/mysqli.php punbb-1.3.5/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/include/dblayer/pgsql.php punbb-1.3.5/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/include/dblayer/sqlite.php punbb-1.3.5/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:  */
579:         if (!empty($table['indices']))579:         if (!empty($table['indices']))
580:         {580:         {
581:             foreach ($table['indices'] as $cur_index)581:             foreach ($table['indices'] as $cur_index)
582:                 $this->query($cur_index) or error(__FILE__, __LINE__);582:                 if (!preg_match('#\(.*'.$field_name.'.*\)#', $cur_index))
 583:                     $this->query($cur_index) or error(__FILE__, __LINE__);
583:         }584:         }
584: 585: 
585:         //Copy content back586:         //Copy content back


punbb-1.3/include/email.php punbb-1.3.5/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/include/essentials.php punbb-1.3.5/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'); 18: define('FORUM_VERSION', '1.3.5');
 19: define('FORUM_DB_REVISION', 3); 19: define('FORUM_DB_REVISION', 4);
  20: 
  21: // Record the start time (will be used to calculate the generation time for the page)
  22: list($usec, $sec) = explode(' ', microtime());
  23: $forum_start = ((float)$usec + (float)$sec);
 20:  24: 
 21: // Load the functions script 25: // Load the functions script
 22: require FORUM_ROOT.'include/functions.php'; 26: require FORUM_ROOT.'include/functions.php';
 58:     exit; 62:     exit;
 59: } 63: }
 60:  64: 
 61: // Record the start time (will be used to calculate the generation time for the page) 
 62: list($usec, $sec) = explode(' ', microtime()); 
 63: $forum_start = ((float)$usec + (float)$sec); 
 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: 
 114: // For sqlite "show dot" options always disabled
 115: if ($db_type == 'sqlite')
 116: {
 117:     $forum_config['o_show_dot'] = '0';
 118: }
111: 119: 
112: // Load hooks120: // Load hooks
113: if (file_exists(FORUM_CACHE_DIR.'cache_hooks.php'))121: if (file_exists(FORUM_CACHE_DIR.'cache_hooks.php'))


punbb-1.3/include/functions.php punbb-1.3.5/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:  */
404:     if ($type == FORUM_FT_DATETIME || $type == FORUM_FT_TIME)404:     if ($type == FORUM_FT_DATETIME || $type == FORUM_FT_TIME)
405:         $formatted_time .= gmdate($time_format, $timestamp);405:         $formatted_time .= gmdate($time_format, $timestamp);
406: 406: 
 407:     ($hook = get_hook('fn_format_time_end')) ? eval($hook) : null;
 408: 
407:     return $formatted_time;409:     return $formatted_time;
408: }410: }
409: 411: 
448:         else450:         else
449:         {451:         {
450:             $links['search'] = '<li id="navsearch"'.((FORUM_PAGE == 'search') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['search']).'">'.$lang_common['Search'].'</a></li>';452:             $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>';453:             $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>';454:             $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>';455:             $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:         }456:         }
555: 557: 
556: 558: 
557: // Generate a string with numbered links (for multipage scripts)559: // Generate a string with numbered links (for multipage scripts)
558: function paginate($num_pages, $cur_page, $link, $separator, $args = null)560: function paginate($num_pages, $cur_page, $link, $separator, $args = null, $is_default_scheme = null)
559: {561: {
560:     global $forum_url, $lang_common;562:     global $forum_url, $lang_common;
561: 563: 
 564:     if ($is_default_scheme == null)
 565:         $forum_url_page = $forum_url['page'];
 566:     else
 567:     {
 568:         $forum_url_page = '&amp;p=$1';
 569:         unset($forum_url['insertion_find']);
 570:     }
 571: 
562:     $pages = array();572:     $pages = array();
563:     $link_to_all = false;573:     $link_to_all = false;
564: 574: 
574:     }584:     }
575: 585: 
576:     if ($num_pages <= 1)586:     if ($num_pages <= 1)
577:         $pages = array('<strong class="first-item">1</strong>');587:         $pages = array('<strong class="first-item">'.forum_number_format(1).'</strong>');
578:     else588:     else
579:     {589:     {
580:         // Add a previous page link590:         // Add a previous page link
581:         if ($num_pages > 1 && $cur_page > 1)591:         if ($num_pages > 1 && $cur_page > 1)
582:             $pages[] = '<a'.(empty($pages) ? ' class="first-item"' : '').' href="'.forum_sublink($link, $forum_url['page'], ($cur_page - 1), $args).'">'.$lang_common['Previous'].'</a>';592:             $pages[] = '<a'.(empty($pages) ? ' class="first-item"' : '').' href="'.forum_sublink($link, $forum_url_page, ($cur_page - 1), $args).'">'.$lang_common['Previous'].'</a>';
583: 593: 
584:         if ($cur_page > 3)594:         if ($cur_page > 3)
585:         {595:         {
586:             $pages[] = '<a'.(empty($pages) ? ' class="first-item"' : '').' href="'.forum_sublink($link, $forum_url['page'], 1, $args).'">1</a>';596:             $pages[] = '<a'.(empty($pages) ? ' class="first-item"' : '').' href="'.forum_sublink($link, $forum_url_page, 1, $args).'">'.forum_number_format(1).'</a>';
587: 597: 
588:             if ($cur_page > 5)598:             if ($cur_page > 5)
589:                 $pages[] = '<span>'.$lang_common['Spacer'].'</span>';599:                 $pages[] = '<span>'.$lang_common['Spacer'].'</span>';
594:             if ($current < 1 || $current > $num_pages)604:             if ($current < 1 || $current > $num_pages)
595:                 continue;605:                 continue;
596:             else if ($current != $cur_page || $link_to_all)606:             else if ($current != $cur_page || $link_to_all)
597:                 $pages[] = '<a'.(empty($pages) ? ' class="first-item" ' : '').' href="'.forum_sublink($link, $forum_url['page'], $current, $args).'">'.forum_number_format($current).'</a>';607:                 $pages[] = '<a'.(empty($pages) ? ' class="first-item" ' : '').' href="'.forum_sublink($link, $forum_url_page, $current, $args).'">'.forum_number_format($current).'</a>';
598:             else608:             else
599:                 $pages[] = '<strong'.(empty($pages) ? ' class="first-item"' : '').'>'.forum_number_format($current).'</strong>';609:                 $pages[] = '<strong'.(empty($pages) ? ' class="first-item"' : '').'>'.forum_number_format($current).'</strong>';
600: 610: 
603:             if ($cur_page != ($num_pages-3) && $cur_page != ($num_pages-4))613:             if ($cur_page != ($num_pages-3) && $cur_page != ($num_pages-4))
604:                 $pages[] = '<span>'.$lang_common['Spacer'].'</span>';614:                 $pages[] = '<span>'.$lang_common['Spacer'].'</span>';
605: 615: 
606:             $pages[] = '<a'.(empty($pages) ? ' class="first-item" ' : '').' href="'.forum_sublink($link, $forum_url['page'], $num_pages, $args).'">'.forum_number_format($num_pages).'</a>';616:             $pages[] = '<a'.(empty($pages) ? ' class="first-item" ' : '').' href="'.forum_sublink($link, $forum_url_page, $num_pages, $args).'">'.forum_number_format($num_pages).'</a>';
607:         }617:         }
608: 618: 
609:         // Add a next page link619:         // Add a next page link
610:         if ($num_pages > 1 && !$link_to_all && $cur_page < $num_pages)620:         if ($num_pages > 1 && !$link_to_all && $cur_page < $num_pages)
611:             $pages[] = '<a'.(empty($pages) ? ' class="first-item" ' : '').' href="'.forum_sublink($link, $forum_url['page'], ($cur_page + 1), $args).'">'.$lang_common['Next'].'</a>';621:             $pages[] = '<a'.(empty($pages) ? ' class="first-item" ' : '').' href="'.forum_sublink($link, $forum_url_page, ($cur_page + 1), $args).'">'.$lang_common['Next'].'</a>';
612:     }622:     }
613: 623: 
614:     ($hook = get_hook('fn_paginate_end')) ? eval($hook) : null;624:     ($hook = get_hook('fn_paginate_end')) ? eval($hook) : null;
631: <div id="brd-debug" class="main">641: <div id="brd-debug" class="main">
632: 642: 
633:     <div class="main-head">643:     <div class="main-head">
634:         <h2><span><?php echo $lang_common['Debug table'] ?></span></h2>644:         <h2 class="hn"><span><?php echo $lang_common['Debug table'] ?></span></h2>
635:     </div>645:     </div>
636: 646: 
637:     <div class="main-content debug">647:     <div class="main-content debug">
749:     global $forum_config, $forum_user;759:     global $forum_config, $forum_user;
750:     static $lang_url_replace, $forum_reserved_strings;760:     static $lang_url_replace, $forum_reserved_strings;
751: 761: 
752:     if (!isset($lang_replace))762:     if (!isset($lang_url_replace))
753:         require FORUM_ROOT.'lang/'.$forum_user['language'].'/url_replace.php';763:         require FORUM_ROOT.'lang/'.$forum_user['language'].'/url_replace.php';
754: 764: 
755:     if (!isset($forum_reserved_strings))765:     if (!isset($forum_reserved_strings))
772:     foreach ($forum_reserved_strings as $match => $replace)782:     foreach ($forum_reserved_strings as $match => $replace)
773:         if ($str == $match)783:         if ($str == $match)
774:             return $replace;784:             return $replace;
 785:         else if ($match != '')
 786:             $str = str_replace($match, $replace, $str);
775: 787: 
776:     return $str;788:     return $str;
777: }789: }
938: {950: {
939:       $schemes = array();951:       $schemes = array();
940: 952: 
941:     foreach (glob(FORUM_ROOT.'include/url/*') as $dirname)953:     if($handle = opendir(FORUM_ROOT.'include/url'))
942:         if (is_dir($dirname) && file_exists($dirname.'/forum_urls.php'))954:     {
943:             $schemes[] = basename($dirname);955:         while (false !== ($dirname = readdir($handle)))
 956:         {
 957:             $dirname =  FORUM_ROOT.'include/url/'.$dirname;
 958:             if (is_dir($dirname) && file_exists($dirname.'/forum_urls.php'))
 959:                 $schemes[] = basename($dirname);
 960:         }
 961:         closedir($handle);
 962:     }
944: 963: 
945:     ($hook = get_hook('fn_get_scheme_packs_end')) ? eval($hook) : null;964:     ($hook = get_hook('fn_get_scheme_packs_end')) ? eval($hook) : null;
946: 965: 
953: {972: {
954:     $styles = array();973:     $styles = array();
955: 974: 
956:     foreach (glob(FORUM_ROOT.'style/*') as $dirname)975:     if($handle = opendir(FORUM_ROOT.'style'))
957:     {976:     {
958:         $tempname = basename($dirname);977:         while (false !== ($dirname = readdir($handle)))
959:         if (is_dir($dirname) && file_exists($dirname.'/'.$tempname.'.php'))978:         {
960:             $styles[] = $tempname;979:             $dirname =  FORUM_ROOT.'style/'.$dirname;
 980:             $tempname = basename($dirname);
 981:             if (is_dir($dirname) && file_exists($dirname.'/'.$tempname.'.php'))
 982:                 $styles[] = $tempname;
 983:         }
 984:         closedir($handle);
961:     }985:     }
962: 986: 
963:     ($hook = get_hook('fn_get_style_packs_end')) ? eval($hook) : null;987:     ($hook = get_hook('fn_get_style_packs_end')) ? eval($hook) : null;
971: {995: {
972:     $languages = array();996:     $languages = array();
973: 997: 
974:     foreach (glob(FORUM_ROOT.'lang/*') as $dirname)998:     if($handle = opendir(FORUM_ROOT.'lang'))
975:         if (is_dir($dirname) && file_exists($dirname.'/common.php'))999:     {
976:             $languages[] = basename($dirname);1000:         while (false !== ($dirname = readdir($handle)))
 1001:         {
 1002:             $dirname =  FORUM_ROOT.'lang/'.$dirname;
 1003:             if (is_dir($dirname) && file_exists($dirname.'/common.php'))
 1004:                 $languages[] = basename($dirname);
 1005:         }
 1006:         closedir($handle);
 1007:     }
977: 1008: 
978:     ($hook = get_hook('fn_get_language_packs_end')) ? eval($hook) : null;1009:     ($hook = get_hook('fn_get_language_packs_end')) ? eval($hook) : null;
979: 1010: 
1341: 1372: 
1342:     $forum_user = $forum_db->fetch_assoc($result);1373:     $forum_user = $forum_db->fetch_assoc($result);
1343: 1374: 
1344:     // Update online list1375:     if (!defined('FORUM_QUIET_VISIT'))
1345:     if (!$forum_user['logged']) 
1346:     {1376:     {
1347:         $forum_user['logged'] = time();1377:         // Update online list
1348:         $forum_user['csrf_token'] = random_key(40, false, true);1378:         if (!$forum_user['logged'])
1349:         $forum_user['prev_url'] = get_current_url(255);1379:         {
 1380:             $forum_user['logged'] = time();
 1381:             $forum_user['csrf_token'] = random_key(40, false, true);
 1382:             $forum_user['prev_url'] = get_current_url(255);
1350: 1383: 
1351:         // REPLACE INTO avoids a user having two rows in the online table1384:             // REPLACE INTO avoids a user having two rows in the online table
1352:         $query = array(1385:             $query = array(
1353:             'REPLACE'    => 'user_id, ident, logged, csrf_token',1386:                 'REPLACE'    => 'user_id, ident, logged, csrf_token',
1354:             'INTO'        => 'online',1387:                 'INTO'        => 'online',
1355:             'VALUES'    => '1, \''.$forum_db->escape($remote_addr).'\', '.$forum_user['logged'].', \''.$forum_user['csrf_token'].'\'',1388:                 'VALUES'    => '1, \''.$forum_db->escape($remote_addr).'\', '.$forum_user['logged'].', \''.$forum_user['csrf_token'].'\'',
1356:             'UNIQUE'    => 'user_id=1 AND ident=\''.$forum_db->escape($remote_addr).'\''1389:                 'UNIQUE'    => 'user_id=1 AND ident=\''.$forum_db->escape($remote_addr).'\''
1357:         );1390:             );
1358: 1391: 
1359:         if ($forum_user['prev_url'] != null)1392:             if ($forum_user['prev_url'] != null)
1360:         {1393:             {
1361:             $query['REPLACE'] .= ', prev_url';1394:                 $query['REPLACE'] .= ', prev_url';
1362:             $query['VALUES'] .= ', \''.$forum_db->escape($forum_user['prev_url']).'\'';1395:                 $query['VALUES'] .= ', \''.$forum_db->escape($forum_user['prev_url']).'\'';
1363:         }1396:             }
1364: 1397: 
1365:         ($hook = get_hook('fn_set_default_user_qr_add_online_guest_user')) ? eval($hook) : null;1398:             ($hook = get_hook('fn_set_default_user_qr_add_online_guest_user')) ? eval($hook) : null;
1366:         $forum_db->query_build($query) or error(__FILE__, __LINE__);1399:             $forum_db->query_build($query) or error(__FILE__, __LINE__);
1367:     }1400:         }
1368:     else1401:         else
1369:     {1402:         {
1370:         $query = array(1403:             $query = array(
1371:             'UPDATE'    => 'online',1404:                 'UPDATE'    => 'online',
1372:             'SET'        => 'logged='.time(),1405:                 'SET'        => 'logged='.time(),
1373:             'WHERE'        => 'ident=\''.$forum_db->escape($remote_addr).'\''1406:                 'WHERE'        => 'ident=\''.$forum_db->escape($remote_addr).'\''
1374:         );1407:             );
1375: 1408: 
1376:         $current_url = get_current_url(255);1409:             $current_url = get_current_url(255);
1377:         if ($current_url != null)1410:             if ($current_url != null)
1378:             $query['SET'] .= ', prev_url=\''.$forum_db->escape($current_url).'\'';1411:                 $query['SET'] .= ', prev_url=\''.$forum_db->escape($current_url).'\'';
1379: 1412: 
1380:         ($hook = get_hook('fn_set_default_user_qr_update_online_guest_user')) ? eval($hook) : null;1413:             ($hook = get_hook('fn_set_default_user_qr_update_online_guest_user')) ? eval($hook) : null;
1381:         $forum_db->query_build($query) or error(__FILE__, __LINE__);1414:             $forum_db->query_build($query) or error(__FILE__, __LINE__);
 1415:         }
1382:     }1416:     }
1383: 1417: 
1384:     $forum_user['disp_topics'] = $forum_config['o_disp_topics_default'];1418:     $forum_user['disp_topics'] = $forum_config['o_disp_topics_default'];
1389:     $forum_user['style'] = $forum_config['o_default_style'];1423:     $forum_user['style'] = $forum_config['o_default_style'];
1390:     $forum_user['is_guest'] = true;1424:     $forum_user['is_guest'] = true;
1391:     $forum_user['is_admmod'] = false;1425:     $forum_user['is_admmod'] = false;
 1426: 
 1427:     ($hook = get_hook('fn_set_default_user_end')) ? eval($hook) : null;
1392: }1428: }
1393: 1429: 
1394: 1430: 
1433:         if ($cur_ban['username'] != '' && utf8_strtolower($forum_user['username']) == utf8_strtolower($cur_ban['username']))1469:         if ($cur_ban['username'] != '' && utf8_strtolower($forum_user['username']) == utf8_strtolower($cur_ban['username']))
1434:             $is_banned = true;1470:             $is_banned = true;
1435: 1471: 
 1472:         if ($cur_ban['email'] != '' && $forum_user['email'] == $cur_ban['email'])
 1473:             $is_banned = true;
 1474: 
1436:         if ($cur_ban['ip'] != '')1475:         if ($cur_ban['ip'] != '')
1437:         {1476:         {
1438:             $cur_ban_ips = explode(' ', $cur_ban['ip']);1477:             $cur_ban_ips = explode(' ', $cur_ban['ip']);
1515:         else1554:         else
1516:         {1555:         {
1517:             // If the entry is older than "o_timeout_visit", update last_visit for the user in question, then delete him/her from the online list1556:             // If the entry is older than "o_timeout_visit", update last_visit for the user in question, then delete him/her from the online list
1518:             if ($cur_user['idle'] != '0')1557:             if ($cur_user['logged'] < ($now - $forum_config['o_timeout_visit']))
1519:             {1558:             {
1520:                 $query = array(1559:                 $query = array(
1521:                     'UPDATE'    => 'users',1560:                     'UPDATE'    => 'users',
2572:     if (isset($_POST['confirm_cancel']))2611:     if (isset($_POST['confirm_cancel']))
2573:         redirect(forum_htmlencode($_POST['prev_url']), $lang_common['Cancel redirect']);2612:         redirect(forum_htmlencode($_POST['prev_url']), $lang_common['Cancel redirect']);
2574: 2613: 
2575:         // A helper function for csrf_confirm_form. It takes a multi-dimensional array and returns it as a2614:     // A helper function for csrf_confirm_form. It takes a multi-dimensional array and returns it as a
2576:     // single-dimensional array suitable for use in hidden fields.2615:     // single-dimensional array suitable for use in hidden fields.
2577:         function _csrf_confirm_form($key, $values)2616:     function _csrf_confirm_form($key, $values)
2578:     {2617:     {
2579:         $fields = array();2618:         $fields = array();
2580: 2619: 
2753: 2792: 
2754: 2793: 
2755:     // START SUBST - <!-- forum_head -->2794:     // START SUBST - <!-- forum_head -->
 2795: 
2756:     ob_start();2796:     ob_start();
2757: 2797: 
2758: ?>2798:     require FORUM_ROOT.'style/'.$forum_user['style'].'/'.$forum_user['style'].'.php';
2759: <title><?php echo $lang_common['Maintenance'].' - '.forum_htmlencode($forum_config['o_board_title']) ?></title> 
2760: <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' ?>" /> 
2761: <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' ?>" /> 
2762: <!--[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]--> 
2763: <!--[if IE 7]><link rel="stylesheet" type="text/css" href="<?php echo $base_url ?>/style/<?php echo $forum_user['style'] ?>/<?php echo $forum_user['style'].'_fix7.css' ?>" /><![endif]--> 
2764: <?php 
2765: 2799: 
2766:     $tpl_temp = forum_trim(ob_get_contents());2800:     $tpl_temp = forum_trim(ob_get_contents());
2767:     $tpl_maint = str_replace('<!-- forum_head -->', $tpl_temp, $tpl_maint);2801:     $tpl_maint = str_replace('<!-- forum_head -->', $tpl_temp, $tpl_maint);
2773:     ob_start();2807:     ob_start();
2774: 2808: 
2775: ?>2809: ?>
2776: <div id="brd-main" class="main basic"> 
2777:  
2778:     <div class="main-head">2810:     <div class="main-head">
2779:         <h1 class="hn"><span><?php echo $lang_common['Maintenance mode'] ?></span></h1>2811:         <h1 class="hn"><span><?php echo $lang_common['Maintenance mode'] ?></span></h1>
2780:     </div>2812:     </div>
2783:             <?php echo $message."\n" ?>2815:             <?php echo $message."\n" ?>
2784:         </div>2816:         </div>
2785:     </div>2817:     </div>
2786:  
2787: </div> 
2788: <?php2818: <?php
2789: 2819: 
2790:     $tpl_temp = "\t".forum_trim(ob_get_contents());2820:     $tpl_temp = "\t".forum_trim(ob_get_contents());
2868:     // START SUBST - <!-- forum_head -->2898:     // START SUBST - <!-- forum_head -->
2869: 2899: 
2870:     $forum_head['refresh'] = '<meta http-equiv="refresh" content="'.$forum_config['o_redirect_delay'].';URL='.str_replace(array('<', '>', '"'), array('&lt;', '&gt;', '&quot;'), $destination_url).'" />';2900:     $forum_head['refresh'] = '<meta http-equiv="refresh" content="'.$forum_config['o_redirect_delay'].';URL='.str_replace(array('<', '>', '"'), array('&lt;', '&gt;', '&quot;'), $destination_url).'" />';
2871:     $forum_head['title'] = '<title>'.$lang_common['Redirecting'].' - '.forum_htmlencode($forum_config['o_board_title']).'</title>';2901:     $forum_head['title'] = '<title>'.$lang_common['Redirecting'].$lang_common['Title separator'].forum_htmlencode($forum_config['o_board_title']).'</title>';
2872: 2902: 
2873:     ob_start();2903:     ob_start();
2874: 2904: 
2947: // Display a simple error message2977: // Display a simple error message
2948: function error()2978: function error()
2949: {2979: {
 2980:     global $forum_config;
 2981: 
2950:     if (!headers_sent())2982:     if (!headers_sent())
2951:     {2983:     {
 2984:         // if no HTTP responce code is set we send 503
 2985:         if (!defined('FORUM_HTTP_RESPONSE_CODE_SET'))
 2986:             header('HTTP/1.1 503 Service Temporarily Unavailable');
2952:         header('Content-type: text/html; charset=utf-8');2987:         header('Content-type: text/html; charset=utf-8');
2953:         header('HTTP/1.1 503 Service Temporarily Unavailable'); 
2954:     }2988:     }
2955: 2989: 
2956:     global $forum_config; 
2957:  
2958:     /*2990:     /*
2959:         Parse input parameters. Possible function signatures:2991:         Parse input parameters. Possible function signatures:
2960:         error('Error message.');2992:         error('Error message.');
2987:     while (@ob_end_clean());3019:     while (@ob_end_clean());
2988: 3020: 
2989:     // "Restart" output buffering if we are using ob_gzhandler (since the gzip header is already sent)3021:     // "Restart" output buffering if we are using ob_gzhandler (since the gzip header is already sent)
2990:     if (!empty($forum_config['o_gzip']) && extension_loaded('zlib') && (strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false || strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'deflate') !== false))3022:     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))
2991:         ob_start('ob_gzhandler');3023:         ob_start('ob_gzhandler');
2992: 3024: 
2993: ?>3025: ?>
3038: 3070: 
3039:     exit;3071:     exit;
3040: }3072: }
 3073: 
 3074: // Check the text is CAPSED
 3075: function check_is_all_caps($text)
 3076: {
 3077:     return (bool)/**/(utf8_strtoupper($text) == $text && utf8_strtolower($text) != $text);
 3078: }
3041: 3079: 


punbb-1.3/include/parser.php punbb-1.3.5/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:  */
 44:         if (strpos($text, '[code]') !== false && strpos($text, '[/code]') !== false) 44:         if (strpos($text, '[code]') !== false && strpos($text, '[/code]') !== false)
 45:         { 45:         {
 46:             list($inside, $outside) = split_text($text, '[code]', '[/code]', $errors); 46:             list($inside, $outside) = split_text($text, '[code]', '[/code]', $errors);
 47:             $text = implode("\0", $outside); 47:             $text = implode("\xc1", $outside);
 48:         } 48:         }
 49:  49: 
 50:         // Tidy up lists 50:         // Tidy up lists
 51:         $pattern = array('/\[list(?:=([1a\*]))?\]((?>(?:(?!\[list(?:=(?:[1a\*]))\]|\[\/list\]).+?)|(?R))*)\[\/list\]/ems'); 51:         $pattern = array('%\[list(?:=([1a*]))?+\]((?:(?>.*?(?=\[list(?:=[1a*])?+\]|\[/list\]))|(?R))*)\[/list\]%ise');
 52:         $replace = array('preparse_list_tag(\'$2\', \'$1\', $errors)'); 52:         $replace = array('preparse_list_tag(\'$2\', \'$1\', $errors)');
 53:         $text = preg_replace($pattern, $replace, $text); 53:         $text = preg_replace($pattern, $replace, $text);
 54:  54: 
 60:         // If we split up the message before we have to concatenate it together again (code tags) 60:         // If we split up the message before we have to concatenate it together again (code tags)
 61:         if (isset($inside)) 61:         if (isset($inside))
 62:         { 62:         {
 63:             $outside = explode("\0", $text); 63:             $outside = explode("\xc1", $text);
 64:             $text = ''; 64:             $text = '';
 65:  65: 
 66:             $num_tokens = count($outside); 66:             $num_tokens = count($outside);
520: 520: 
521:     if (strpos($content,'[list') !== false)521:     if (strpos($content,'[list') !== false)
522:     {522:     {
523:         $pattern = array('/\[list(?:=([1a\*]))?\]((?>(?:(?!\[list(?:=(?:[1a\*]))\]|\[\/list\]).+?)|(?R))*)\[\/list\]/ems');523:         $pattern = array('%\[list(?:=([1a*]))?+\]((?:(?>.*?(?=\[list(?:=[1a*])?+\]|\[/list\]))|(?R))*)\[/list\]%ise');
524:         $replace = array('preparse_list_tag(\'$2\', \'$1\', $errors)');524:         $replace = array('preparse_list_tag(\'$2\', \'$1\', $errors)');
525:         $content = preg_replace($pattern, $replace, $content);525:         $content = preg_replace($pattern, $replace, $content);
526:     }526:     }
592: 592: 
593:     // Ok, not very pretty :-)593:     // Ok, not very pretty :-)
594:     if (!$bbcode)594:     if (!$bbcode)
595:         $link = ($link == '' || $link == $url) ? ((utf8_strlen($url) > 55) ? utf8_substr($url, 0 , 39).' &#133; '.utf8_substr($url, -10) : $url) : stripslashes($link);595:         $link = ($link == '' || $link == $url) ? ((utf8_strlen($url) > 55) ? utf8_substr($url, 0 , 39).' … '.utf8_substr($url, -10) : $url) : stripslashes($link);
596: 596: 
597:     $return = ($hook = get_hook('ps_handle_url_tag_end')) ? eval($hook) : null;597:     $return = ($hook = get_hook('ps_handle_url_tag_end')) ? eval($hook) : null;
598:     if ($return != null)598:     if ($return != null)
649: 649: 
650:     if (strpos($content,'[list') !== false)650:     if (strpos($content,'[list') !== false)
651:     {651:     {
652:         $pattern = array('/\[list(?:=([1a\*]))?\]((?>(?:(?!\[list(?:=(?:[1a\*]))\]|\[\/list\]).+?)|(?R))*)\[\/list\]/ems');652:         $pattern = array('%\[list(?:=([1a*]))?+\]((?:(?>.*?(?=\[list(?:=[1a*])?+\]|\[/list\]))|(?R))*)\[/list\]%ise');
653:         $replace = array('handle_list_tag(\'$2\', \'$1\')');653:         $replace = array('handle_list_tag(\'$2\', \'$1\')');
654:         $content = preg_replace($pattern, $replace, $content);654:         $content = preg_replace($pattern, $replace, $content);
655:     }655:     }
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: 
689:     if (!$is_signature)689:     if (!$is_signature)
690:     {690:     {
691:         $pattern[] = '/\[list(?:=([1a\*]))?\]((?>(?:(?!\[list(?:=(?:[1a\*]))\]|\[\/list\]).+?)|(?R))*)\[\/list\]/ems';691:         $pattern[] = '%\[list(?:=([1a*]))?+\]((?:(?>.*?(?=\[list(?:=[1a*])?+\]|\[/list\]))|(?R))*)\[/list\]%ise';
692:         $replace[] = 'handle_list_tag(\'$2\', \'$1\')';692:         $replace[] = 'handle_list_tag(\'$2\', \'$1\')';
693:     }693:     }
694: 694: 
700: 700: 
701:     $replace[] = '<strong>$1</strong>';701:     $replace[] = '<strong>$1</strong>';
702:     $replace[] = '<em>$1</em>';702:     $replace[] = '<em>$1</em>';
703:     $replace[] = '<em class="bbuline">$1</em>';703:     $replace[] = '<span class="bbu">$1</span>';
704:     $replace[] = '<span style="color: $1">$2</span>';704:     $replace[] = '<span style="color: $1">$2</span>';
705:     $replace[] = '</p><h5>$1</h5><p>';705:     $replace[] = '</p><h5>$1</h5><p>';
706: 706: 
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: 
807:     if (strpos($text, '[code]') !== false && strpos($text, '[/code]') !== false)813:     if (strpos($text, '[code]') !== false && strpos($text, '[/code]') !== false)
808:     {814:     {
809:         list($inside, $outside) = split_text($text, '[code]', '[/code]', $errors);815:         list($inside, $outside) = split_text($text, '[code]', '[/code]', $errors);
810:         $text = implode("\0", $outside);816:         $text = implode("\xc1", $outside);
811:     }817:     }
812: 818: 
813:     $return = ($hook = get_hook('ps_parse_message_post_split')) ? eval($hook) : null;819:     $return = ($hook = get_hook('ps_parse_message_post_split')) ? eval($hook) : null;
836:     // If we split up the message before we have to concatenate it together again (code tags)842:     // If we split up the message before we have to concatenate it together again (code tags)
837:     if (isset($inside))843:     if (isset($inside))
838:     {844:     {
839:         $outside = explode("\0", $text);845:         $outside = explode("\xc1", $text);
840:         $text = '';846:         $text = '';
841: 847: 
842:         $num_tokens = count($outside);848:         $num_tokens = count($outside);


punbb-1.3/include/search_functions.php punbb-1.3.5/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/include/search_idx.php punbb-1.3.5/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/include/url/Default/forum_urls.php punbb-1.3.5/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:  */
 79:     'unstick'                        =>    'moderate.php?fid=$1&amp;unstick=$2&amp;csrf_token=$3', 79:     'unstick'                        =>    'moderate.php?fid=$1&amp;unstick=$2&amp;csrf_token=$3',
 80:     'moderate_topic'                =>    'moderate.php?fid=$1&amp;tid=$2', 80:     'moderate_topic'                =>    'moderate.php?fid=$1&amp;tid=$2',
 81:     'admin_index'                    =>    'admin/index.php', 81:     'admin_index'                    =>    'admin/index.php',
 82:     'admin_bans'                    =>    'admin/bans.php', 82:     'admin_bans'                    =>    'admin/bans.php?sort_by=1',
 83:     'admin_categories'                =>    'admin/categories.php', 83:     'admin_categories'                =>    'admin/categories.php',
 84:     'admin_censoring'                =>    'admin/censoring.php', 84:     'admin_censoring'                =>    'admin/censoring.php',
 85:     'admin_extensions_manage'        =>    'admin/extensions.php?section=manage', 85:     'admin_extensions_manage'        =>    'admin/extensions.php?section=manage',


punbb-1.3/include/url/Default/index.html punbb-1.3.5/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/include/url/Default/reserved_strings.php punbb-1.3.5/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/include/url/Default/rewrite_rules.php punbb-1.3.5/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/include/url/File_based/forum_urls.php punbb-1.3.5/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:  */
 81:     'unstick'                        =>    'unstick$1-$2-$3.html', 81:     'unstick'                        =>    'unstick$1-$2-$3.html',
 82:     'moderate_topic'                =>    'moderate$1-$2.html', 82:     'moderate_topic'                =>    'moderate$1-$2.html',
 83:     'admin_index'                    =>    'admin/index.php', 83:     'admin_index'                    =>    'admin/index.php',
 84:     'admin_bans'                    =>    'admin/bans.php', 84:     'admin_bans'                    =>    'admin/bans.php?sort_by=1',
 85:     'admin_categories'                =>    'admin/categories.php', 85:     'admin_categories'                =>    'admin/categories.php',
 86:     'admin_censoring'                =>    'admin/censoring.php', 86:     'admin_censoring'                =>    'admin/censoring.php',
 87:     'admin_extensions_manage'        =>    'admin/extensions.php?section=manage', 87:     'admin_extensions_manage'        =>    'admin/extensions.php?section=manage',


punbb-1.3/include/url/File_based/index.html punbb-1.3.5/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/include/url/File_based/reserved_strings.php punbb-1.3.5/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/include/url/File_based/rewrite_rules.php punbb-1.3.5/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/include/url/File_based_(fancy)/forum_urls.php punbb-1.3.5/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:  */
 82:     'unstick'                        =>    'unstick$1-$2-$3.html', 82:     'unstick'                        =>    'unstick$1-$2-$3.html',
 83:     'moderate_topic'                =>    'moderate$1-$2.html', 83:     'moderate_topic'                =>    'moderate$1-$2.html',
 84:     'admin_index'                    =>    'admin/index.php', 84:     'admin_index'                    =>    'admin/index.php',
 85:     'admin_bans'                    =>    'admin/bans.php', 85:     'admin_bans'                    =>    'admin/bans.php?sort_by=1',
 86:     'admin_categories'                =>    'admin/categories.php', 86:     'admin_categories'                =>    'admin/categories.php',
 87:     'admin_censoring'                =>    'admin/censoring.php', 87:     'admin_censoring'                =>    'admin/censoring.php',
 88:     'admin_extensions_manage'        =>    'admin/extensions.php?section=manage', 88:     'admin_extensions_manage'        =>    'admin/extensions.php?section=manage',


punbb-1.3/include/url/File_based_(fancy)/index.html punbb-1.3.5/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/include/url/File_based_(fancy)/reserved_strings.php punbb-1.3.5/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/include/url/File_based_(fancy)/rewrite_rules.php punbb-1.3.5/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/include/url/Folder_based/forum_urls.php punbb-1.3.5/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:  */
 79:     'unstick'                        =>    'unstick/$1/$2/$3/', 79:     'unstick'                        =>    'unstick/$1/$2/$3/',
 80:     'moderate_topic'                =>    'moderate/$1/$2/', 80:     'moderate_topic'                =>    'moderate/$1/$2/',
 81:     'admin_index'                    =>    'admin/index.php', 81:     'admin_index'                    =>    'admin/index.php',
 82:     'admin_bans'                    =>    'admin/bans.php', 82:     'admin_bans'                    =>    'admin/bans.php?sort_by=1',
 83:     'admin_categories'                =>    'admin/categories.php', 83:     'admin_categories'                =>    'admin/categories.php',
 84:     'admin_censoring'                =>    'admin/censoring.php', 84:     'admin_censoring'                =>    'admin/censoring.php',
 85:     'admin_extensions_manage'        =>    'admin/extensions.php?section=manage', 85:     'admin_extensions_manage'        =>    'admin/extensions.php?section=manage',


punbb-1.3/include/url/Folder_based/index.html punbb-1.3.5/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/include/url/Folder_based/reserved_strings.php punbb-1.3.5/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/include/url/Folder_based/rewrite_rules.php punbb-1.3.5/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/include/url/Folder_based_(fancy)/forum_urls.php punbb-1.3.5/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:  */
 80:     'unstick'                        =>    'unstick/$1/$2/$3/', 80:     'unstick'                        =>    'unstick/$1/$2/$3/',
 81:     'moderate_topic'                =>    'moderate/$1/$2/', 81:     'moderate_topic'                =>    'moderate/$1/$2/',
 82:     'admin_index'                    =>    'admin/index.php', 82:     'admin_index'                    =>    'admin/index.php',
 83:     'admin_bans'                    =>    'admin/bans.php', 83:     'admin_bans'                    =>    'admin/bans.php?sort_by=1',
 84:     'admin_categories'                =>    'admin/categories.php', 84:     'admin_categories'                =>    'admin/categories.php',
 85:     'admin_censoring'                =>    'admin/censoring.php', 85:     'admin_censoring'                =>    'admin/censoring.php',
 86:     'admin_extensions_manage'        =>    'admin/extensions.php?section=manage', 86:     'admin_extensions_manage'        =>    'admin/extensions.php?section=manage',


punbb-1.3/include/url/Folder_based_(fancy)/index.html punbb-1.3.5/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/include/url/Folder_based_(fancy)/reserved_strings.php punbb-1.3.5/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/include/url/Folder_based_(fancy)/rewrite_rules.php punbb-1.3.5/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/include/xml.php punbb-1.3.5/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/index.php punbb-1.3.5/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'] != '')
349: ?>347: ?>
350: <div id="brd-online" class="gen-content">348: <div id="brd-online" class="gen-content">
351:     <h3 class="hn"><span><?php printf($lang_index['Currently online'], implode($lang_index['Online stats separator'], $forum_page['online_info'])) ?></span></h3>349:     <h3 class="hn"><span><?php printf($lang_index['Currently online'], implode($lang_index['Online stats separator'], $forum_page['online_info'])) ?></span></h3>
352: <?php if (!empty($users)): ?>    <p><?php echo implode($lang_index['Online list separator'], $users) ?></p>350: <?php if (!empty($users)): ?>
 351:     <p><?php echo implode($lang_index['Online list separator'], $users) ?></p>
353: <?php endif; ($hook = get_hook('in_new_online_data')) ? eval($hook) : null; ?>352: <?php endif; ($hook = get_hook('in_new_online_data')) ? eval($hook) : null; ?>
354: </div>353: </div>
355: <?php354: <?php


punbb-1.3/lang/English/admin_common.php punbb-1.3.5/lang/English/admin_common.php
  5:   5: 
  6: // Common items  6: // Common items
  7: 'Save changes'                    =>    'Save changes',  7: 'Save changes'                    =>    'Save changes',
  8: 'Redirect'                        =>    'Redirecting …',  8: 'Redirect'                        =>    'Redirecting…',
  9: 'Add'                            =>    'Add',  9: 'Add'                            =>    'Add',
 10: 'Add new'                        =>    'Add new', 10: 'Add new'                        =>    'Add new',
 11: 'Delete'                        =>    'Delete', 11: 'Delete'                        =>    'Delete',
 19: 'Save'                            =>    'Save', 19: 'Save'                            =>    'Save',
 20: 'E-mail'                        =>    'E-mail', 20: 'E-mail'                        =>    'E-mail',
 21: 'Cancel'                        =>    'Cancel', 21: 'Cancel'                        =>    'Cancel',
 22: 'Cancel redirect'                =>    'Operation cancelled. Redirecting …', 22: 'Cancel redirect'                =>    'Operation cancelled. Redirecting…',
 23: 'Unknown'                        =>    'Unknown', 23: 'Unknown'                        =>    'Unknown',
 24: 'Delete help'                    =>    'Requires confirmation via separate form.', 24: 'Delete help'                    =>    'Requires confirmation via separate form.',
 25: 'Select all'                    =>    'Select all', 25: 'Select all'                    =>    'Select all',


punbb-1.3/lang/English/admin_forums.php punbb-1.3.5/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/lang/English/admin_index.php punbb-1.3.5/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-2011 <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/lang/English/admin_ranks.php punbb-1.3.5/lang/English/admin_ranks.php
 13: 'Rank removed'                    =>    'Rank removed.', 13: 'Rank removed'                    =>    'Rank removed.',
 14: 'Add rank intro'                =>    'Enter a rank and the minimum number of posts that a user has to have to acquire the rank. Different ranks cannot have the same value for minimum posts. If a title is set for a user, the title will be displayed instead of any rank. For this to have any effect "<strong>User ranks</strong>" must be enabled in %s.', 14: 'Add rank intro'                =>    'Enter a rank and the minimum number of posts that a user has to have to acquire the rank. Different ranks cannot have the same value for minimum posts. If a title is set for a user, the title will be displayed instead of any rank. For this to have any effect "<strong>User ranks</strong>" must be enabled in %s.',
 15: 'Add rank'                        =>    'Add rank', 15: 'Add rank'                        =>    'Add rank',
 16: 'Add new rank'                    =>    'Add new rank', 
 17: 'Add rank legend'                =>    'New rank details', 16: 'Add rank legend'                =>    'New rank details',
 18: 'Rank title label'                =>    'Rank title', 17: 'Rank title label'                =>    'Rank title',
 19: 'Min posts label'                =>    'Minimum posts', 18: 'Min posts label'                =>    'Minimum posts',
 20: 'Existing ranks'                =>    'Existing ranks', 
 21: 'Existing ranks legend'            =>    'Edit or remove existing user ranks', 19: 'Existing ranks legend'            =>    'Edit or remove existing user ranks',
 22: 'No ranks'                        =>    'No ranks in list.', 20: 'No ranks'                        =>    'No ranks in list.',
 23: 'Update'                        =>    'Update', 21: 'Update'                        =>    'Update',


punbb-1.3/lang/English/admin_reindex.php punbb-1.3.5/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).',
 17: 'Rebuilding index title'    =>    'Rebuilding search index &#8230;', 17: 'Rebuilding index title'    =>    'Rebuilding search index…',
 18: 'Rebuilding index'            =>    'Rebuilding index &#8230; This might be a good time to put on some coffee :-)', 18: 'Rebuilding index'            =>    'Rebuilding index… This might be a good time to put on some coffee :-)',
 19: 'Processing post'            =>    'Processing post <strong>%s</strong> in topic <strong>%s</strong>.', 19: 'Processing post'            =>    'Processing post <strong>%s</strong> in topic <strong>%s</strong>.',
 20: 'Javascript redirect'        =>    'JavaScript redirect unsuccessful.', 20: 'Javascript redirect'        =>    'JavaScript redirect unsuccessful.',
 21: 'Click to continue'            =>    'Click here to continue', 21: 'Click to continue'            =>    'Click here to continue',


punbb-1.3/lang/English/admin_settings.php punbb-1.3.5/lang/English/admin_settings.php
 24: 'Setup timeouts'                =>    'Default timeouts and redirect delay', 24: 'Setup timeouts'                =>    'Default timeouts and redirect delay',
 25: 'Setup timeouts legend'            =>    'Timeout defaults', 25: 'Setup timeouts legend'            =>    'Timeout defaults',
 26: 'Visit timeout label'            =>    'Visit timeout', 26: 'Visit timeout label'            =>    'Visit timeout',
 27: 'Visit timeout help'            =>    'Seconds idle before last visit data is updated', 27: 'Visit timeout help'            =>    'Seconds idle before user is logged out',
 28: 'Online timeout label'            =>    'Online timeout', 28: 'Online timeout label'            =>    'Online timeout',
 29: 'Online timeout help'            =>    'Seconds idle before being removed from the online users list', 29: 'Online timeout help'            =>    'Seconds idle before being removed from the online users list',
 30: 'Redirect time label'            =>    'Redirect wait', 30: 'Redirect time label'            =>    'Redirect wait',
 43: 'Report email label'            =>    'By e-mail to those on mailing list.', 43: 'Report email label'            =>    'By e-mail to those on mailing list.',
 44: 'Setup URL'                        =>    'URL Scheme (<abbr title ="Search Engine Friendly">SEF</abbr> URLs) for your board\'s pages', 44: 'Setup URL'                        =>    'URL Scheme (<abbr title ="Search Engine Friendly">SEF</abbr> URLs) for your board\'s pages',
 45: 'Setup URL legend'                =>    'Select a scheme', 45: 'Setup URL legend'                =>    'Select a scheme',
 46: 'URL scheme info'                =>    '<strong>WARNING!</strong> If you select any scheme other than the default scheme you must copy/upload the file .htaccess from the extras directory into the forum root directory. The server that hosts the forums must be configured with mod_rewrite support and must allow the use of .htaccess files. For servers other than Apache, please refer to your servers documentation.', 46: 'URL scheme info'                =>    '<strong>WARNING!</strong> If you select any scheme other than the default scheme you must copy/rename the file <em>.htaccess.dist</em> to <em>.htaccess</em> in the forum root directory. The server that hosts the forums must be configured with mod_rewrite support and must allow the use of <em>.htaccess</em> files. For servers other than Apache, please refer to your servers documentation.',
 47: 'URL scheme label'                =>    'URL scheme', 47: 'URL scheme label'                =>    'URL scheme',
 48: 'URL scheme help'                =>    'Make sure you have read and understood the information above.', 48: 'URL scheme help'                =>    'Make sure you have read and understood the information above.',
 49: 'Setup links'                    =>    'Add your own links to the main navigation menu', 49: 'Setup links'                    =>    'Add your own links to the main navigation menu',
 51: 'Setup links legend'            =>    'Menu items', 51: 'Setup links legend'            =>    'Menu items',
 52: 'Enter links label'                =>    'Enter your links', 52: 'Enter links label'                =>    'Enter your links',
 53: 'Error no board title'            =>    'You must enter a board title.', 53: 'Error no board title'            =>    'You must enter a board title.',
 54: 'Error timeout value'            =>    'The value of "Timeout online" must be smaller than the value of "Timeout visit".', 54: 'Error timeout value'            =>    'The value of "Online timeout" must be smaller than the value of "Visit timeout".',
 55:  55: 
 56:  56: 
 57: // Features section 57: // Features section
 78: 'Guest posting'                    =>    'Guest posting', 78: 'Guest posting'                    =>    'Guest posting',
 79: 'Guest posting label'            =>    'Guests must supply e-mail addresses when posting.', 79: 'Guest posting label'            =>    'Guests must supply e-mail addresses when posting.',
 80: 'User has posted'                =>    'User has posted', 80: 'User has posted'                =>    'User has posted',
 81: 'User has posted label'            =>    'Display a dot in front of topics to indicate to a user that they have posted in that topic earlier. Disable if you are experiencing high server load.', 81: 'User has posted label'            =>    'Display a dot in front of topics to indicate to a user that they have posted in that topic earlier. Disable if you are experiencing high server load. Ignore for SQLite.',
 82: 'Topic views'                    =>    'Topic views', 82: 'Topic views'                    =>    'Topic views',
 83: 'Topic views label'                =>    'Keep track of the number of views a topic has. Disable if you are experiencing high server load in a busy forum.', 83: 'Topic views label'                =>    'Keep track of the number of views a topic has. Disable if you are experiencing high server load in a busy forum.',
 84: 'User post count'                =>    'User post count', 84: 'User post count'                =>    'User post count',
 96: 'All caps message label'        =>    'Allow messages to contain only capital letters.', 96: 'All caps message label'        =>    'Allow messages to contain only capital letters.',
 97: 'All caps subject label'        =>    'Allow subjects to contain only capital letters.', 97: 'All caps subject label'        =>    'Allow subjects to contain only capital letters.',
 98: 'Indent size label'                =>    '[code] tag indent size', 98: 'Indent size label'                =>    '[code] tag indent size',
 99: 'Indent size help'                =>    'Indent text by this many spaces. If set to 8, a regular tab will be used', 99: 'Indent size help'                =>    'Indent text by this many spaces. If set to 8, a regular tab will be used.',
100: 'Quote depth label'                =>    'Maximum [quote] depth',100: 'Quote depth label'                =>    'Maximum [quote] depth',
101: 'Quote depth help'                =>    'The maximum times a [quote] tag can go inside other [quote] tags, any tags deeper than this will be discarded',101: 'Quote depth help'                =>    'The maximum times a [quote] tag can go inside other [quote] tags, any tags deeper than this will be discarded.',
102: 'Features sigs'                    =>    'User signatures and signature content',102: 'Features sigs'                    =>    'User signatures and signature content',
103: 'Features sigs legend'            =>    'Signature options',103: 'Features sigs legend'            =>    'Signature options',
104: 'Allow signatures'                =>    'Allow signatures',104: 'Allow signatures'                =>    'Allow signatures',
164: 'Allow form e-mail label'        =>    'Hide e-mail address but allow e-mail via the forum.',164: 'Allow form e-mail label'        =>    'Hide e-mail address but allow e-mail via the forum.',
165: 'Disallow form e-mail label'    =>    'Hide e-mail address and disallow e-mail via the forum.',165: 'Disallow form e-mail label'    =>    'Hide e-mail address and disallow e-mail via the forum.',
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 menu 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
196: 196: 
197: // Maintenance section197: // Maintenance section
198: 'Maintenance head'                =>    'Setup maintenance message and activate maintenance mode',198: 'Maintenance head'                =>    'Setup maintenance message and activate maintenance mode',
199: 'Maintenance mode info'            =>    '<strong>IMPORTANT!</strong> Putting the board into maintenance mode means it will only be available to administrators. This should be used if the board needs to taken down temporarily for maintenance.',199: 'Maintenance mode info'            =>    '<strong>IMPORTANT!</strong> Putting the board into maintenance mode means it will only be available to administrators. This should be used if the board needs to be taken down temporarily for maintenance.',
200: 'Maintenance mode warn'            =>    '<strong>WARNING!</strong> DO NOT LOGOUT when the board is in maintenance mode. You will not be able to login again.',200: 'Maintenance mode warn'            =>    '<strong>WARNING!</strong> DO NOT LOGOUT when the board is in maintenance mode. You will not be able to login again.',
201: 'Maintenance legend'            =>    'Maintenance',201: 'Maintenance legend'            =>    'Maintenance',
202: 'Maintenance mode'                =>    'Maintenance mode',202: 'Maintenance mode'                =>    'Maintenance mode',


punbb-1.3/lang/English/admin_users.php punbb-1.3.5/lang/English/admin_users.php
 76: 'Ban admin message'                =>    'One of the selected users is an administrator and can\'t be banned. If you want to ban an administrator, you must first move him/her to any other user group.', 76: 'Ban admin message'                =>    'One of the selected users is an administrator and can\'t be banned. If you want to ban an administrator, you must first move him/her to any other user group.',
 77: 'Users banned'                    =>    'Users banned.', 77: 'Users banned'                    =>    'Users banned.',
 78: 'Mass ban info'                    =>    'You may set a message to be displayed to the banned users and set the date their bans are to expire.', 78: 'Mass ban info'                    =>    'You may set a message to be displayed to the banned users and set the date their bans are to expire.',
  79: 'Ban settings legend'            =>     'Ban users',
 79: 'Change group head'                =>    'Move the selected users to a new group', 80: 'Change group head'                =>    'Move the selected users to a new group',
 80: 'User groups updated'            =>    'User groups updated.', 81: 'User groups updated'            =>    'User groups updated.',
 81: 'Move users legend'                =>    'Move users', 82: 'Move users legend'                =>    'Move users',


punbb-1.3/lang/English/common.php punbb-1.3.5/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.',
 50: 'Unanswered topics title'    =>    'Find topics which have not been replied to.', 50: 'Unanswered topics title'    =>    'Find topics which have not been replied to.',
 51: 'Username'                    =>    'Username', 51: 'Username'                    =>    'Username',
 52: 'Registered'                =>    'Registered', 52: 'Registered'                =>    'Registered',
 53: 'Write message'                =>    'Write message:', 53: 'Write message'                =>    'Write message',
 54: 'Forum'                        =>    'Forum', 54: 'Forum'                        =>    'Forum',
 55: 'Posts'                        =>    'Posts', 55: 'Posts'                        =>    'Posts',
 56: 'Pages'                        =>    'Pages', 56: 'Pages'                        =>    'Pages',
 76: 'Paging separator'            =>    ' ', //The character or text that separates page numbers for page navigation generally 76: 'Paging separator'            =>    ' ', //The character or text that separates page numbers for page navigation generally
 77: 'Previous'                    =>    'Previous', 77: 'Previous'                    =>    'Previous',
 78: 'Next'                        =>    'Next', 78: 'Next'                        =>    'Next',
 79: 'Cancel redirect'            =>    'Operation cancelled. Redirecting …', 79: 'Cancel redirect'            =>    'Operation cancelled. Redirecting…',
 80: 'No confirm redirect'        =>    'No confirmation provided. Operation cancelled. Redirecting …', 80: 'No confirm redirect'        =>    'No confirmation provided. Operation cancelled. Redirecting…',
 81: 'Please confirm'            =>    'Please confirm:', 81: 'Please confirm'            =>    'Please confirm:',
 82: 'Help page'                    =>    'Help with: %s', 82: 'Help page'                    =>    'Help with: %s',
 83: 'Re'                        =>    'Re:', 83: 'Re'                        =>    'Re:',
 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: 'Installed extension'        =>    'The %s official extension is installed. Copyright &copy; 2003&ndash;2011 <a href="http://punbb.informer.com/">PunBB</a>.',
  91: 'Installed extensions'        =>    'Currently installed <span id="extensions-used" title="%s">%s official extensions</span>. Copyright &copy; 2003&ndash;2011 <a href="http://punbb.informer.com/">PunBB</a>.',
 90:  92: 
 91: // CSRF confirmation form 93: // CSRF confirmation form
 92: 'Confirm'                    =>    'Confirm',    // Button 94: 'Confirm'                    =>    'Confirm',    // Button
133: // Alerts135: // Alerts
134: 'New alerts'                =>    'New Alerts',136: 'New alerts'                =>    'New Alerts',
135: 'Maintenance alert'            =>    '<strong>WARNING! Maintenance mode enabled.</strong> This board is currently in maintenance mode. <em>DO NOT</em> logout, if you do you will not be able to login again.',137: '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',138: '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.',139: 'Updates failed'            =>    'The latest attempt at checking for updates against the punbb.informer.com updates service failed. This probably just means that the service is temporarily overloaded or out of order. However, if this alert does not disappear within a day or two, you should disable the automatic check for updates and check for updates manually in the future.',
138: 'Updates version n hf'        =>    'A newer version of PunBB, version %s, is available for download at <a href="http://punbb.informer.com/">punbb.informer.com</a>. Furthermore, one or more hotfix extensions are available for install on the Extensions tab of the admin interface.',140: '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>.',141: 'Updates version'            =>    'A newer version of PunBB, version %s, is available for download at <a href="http://punbb.informer.com/">punbb.informer.com</a>.',
140: 'Updates hf'                =>    'One or more hotfix extensions are available for install on the Extensions tab of the admin interface.',142: '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',143: 'Database mismatch'            =>    'Database version mismatch',
142: 'Database mismatch alert'    =>    'Your PunBB database is meant to be used in conjunction with a newer version of the PunBB code. This mismatch can lead to your forum not working properly. It is suggested that you upgrade your forum to the newest version of PunBB.',144: 'Database mismatch alert'    =>    'Your PunBB database is meant to be used in conjunction with a newer version of the PunBB code. This mismatch can lead to your forum not working properly. It is suggested that you upgrade your forum to the newest version of PunBB.',
143: 145: 
146: 'Jump to'                    =>    'Jump to forum:',148: 'Jump to'                    =>    'Jump to forum:',
147: 149: 
148: // For extern.php RSS feed150: // For extern.php RSS feed
149: 'ATOM Feed'                    =>    'Atom', 
150: 'RSS Feed'                    =>    'RSS', 
151: 'RSS description'            =>    'The most recent topics at %s.',151: 'RSS description'            =>    'The most recent topics at %s.',
152: 'RSS description topic'        =>    'The most recent posts in %s.',152: '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)153: 'RSS reply'                    =>    'Re: ',    // The topic subject will be appended to this string (to signify a reply)
154: 154: 
155: // Accessibility155: // Accessibility
156: 'Skip to content'                    =>    'Skip to forum content',156: 'Skip to content'            =>    'Skip to forum content',
157: 157: 
158: // Debug information158: // Debug information
159: 'Querytime'                        =>    'Generated in %1$s seconds, %2$s queries executed',159: 'Querytime'                    =>    'Generated in %1$s seconds, %2$s queries executed',
160: 'Debug table'                        =>    'Debug information',160: 'Debug table'                =>    'Debug information',
161: 'Debug summary'                        =>    'Database query performance information',161: 'Debug summary'                =>    'Database query performance information',
162: 'Query times'                        =>    'Time (s)',162: 'Query times'                =>    'Time (s)',
163: 'Query'                            =>    'Query',163: 'Query'                        =>    'Query',
164: 'Total query time'                    =>    'Total query time',164: 'Total query time'            =>    'Total query time',
165: 165: 
166: );166: );


punbb-1.3/lang/English/delete.php punbb-1.3.5/lang/English/delete.php
 16: 'Topic title'            =>    'Topic: %s', 16: 'Topic title'            =>    'Topic: %s',
 17: 'Reply title'            =>    'Reply to: %s', 17: 'Reply title'            =>    'Reply to: %s',
 18: 'Please confirm'        =>    'Please confirm:', 18: 'Please confirm'        =>    'Please confirm:',
 19: 'Post del redirect'        =>    'Post deleted. Redirecting …', 19: 'Post del redirect'        =>    'Post deleted. Redirecting…',
 20: 'Topic del redirect'    =>    'Topic deleted. Redirecting …', 20: 'Topic del redirect'    =>    'Topic deleted. Redirecting…',
 21:  21: 
 22: ); 22: );


punbb-1.3/lang/English/forum.php punbb-1.3.5/lang/English/forum.php
 23: 'No views info'                =>    'No viewing information', 23: 'No views info'                =>    'No viewing information',
 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',
 31: 'Pages'                        =>    'Pages', 31: 'Pages'                        =>    'Pages',
 32: 'Post topic'                =>    'Post new topic', 32: 'Post topic'                =>    'Post new topic',
 33: 'Login to post'                =>    'You must %1$s or %2$s to post a new topic', 33: 'Login to post'                =>    'You must %1$s or %2$s to post a new topic',
 34: 'No permission'                =>    'Sorry! no permission to post new topics', 34: 'No permission'                =>    'Sorry! no permission to post new topics',
 35: 'Moved'                        =>    'Moved:', 35: 'Moved'                        =>    'Moved',
 36: 'Sticky'                    =>    'Sticky', 36: 'Sticky'                    =>    'Sticky',
 37: 'Closed'                    =>    'Closed', 37: 'Closed'                    =>    'Closed',
 38: 'Empty forum'                =>    'Empty forum', 38: 'Empty forum'                =>    'Empty forum',
 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/lang/English/help.php punbb-1.3.5/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/lang/English/index.php punbb-1.3.5/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/lang/English/install.php punbb-1.3.5/lang/English/install.php
  4: $lang_install = array(  4: $lang_install = array(
  5:   5: 
  6: // Install Form  6: // Install Form
  7: 'Install PunBB'            =>    'Install PunBB %s',  7: 'Install PunBB'                =>    'Install PunBB %s',
   8: 'Choose language'            =>    'Change installer language',
   9: 'Choose language help'        =>    'You can change the language of this install script if you find it easier to follow the instructions in your own language. Just choose your language from the list of installed ones below.',
  10: 'Installer language'        =>    'Installer language:',
  11: 'Choose language legend'    =>    'Installer language',
  8: 'Install intro'                =>    'In order to install PunBB you must complete the form set out below. Please read the instructions provided before completing the form. If you encounter any difficulties with the installation, please refer to the documentation supplied as part of PunBB\'s download package.', 12: 'Install intro'                =>    'In order to install PunBB you must complete the form set out below. Please read the instructions provided before completing the form. If you encounter any difficulties with the installation, please refer to the documentation supplied as part of PunBB\'s download package.',
  9: 'Part1'                        =>    'Part 1 - Database setup', 13: 'Part1'                        =>    'Part 1 - Database setup',
 10: 'Part1 intro'                =>    'Please enter the requested information in order to setup your database for PunBB. You must know all the information asked for before proceeding with the installation. Help with completing this part of the form is set out below.', 14: 'Part1 intro'                =>    'Please enter the requested information in order to setup your database for PunBB. You must know all the information asked for before proceeding with the installation. Help with completing this part of the form is set out below.',
 17: 'Table prefix'                =>    'Table prefix', 21: 'Table prefix'                =>    'Table prefix',
 18: '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.',
 19: '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.',
 20: '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.', 
 21: '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\'.',
 22: '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.',
 23: '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.',
 74: '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.',
 75: '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.',
 76: '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.',
 77: '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.',
 78:  81: 
 79: // 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)',
 80: 'Default announce heading'    =>    'Sample announcement', 85: 'Default announce heading'    =>    'Sample announcement',
 81: 'Default announce message'    =>    '<p>Enter your announcement here.</p>', 86: 'Default announce message'    =>    '<p>Enter your announcement here.</p>',
 82: 'Default maint message'        =>    "The forums are temporarily down for maintenance. Please try again in a few minutes.<br />\\n<br />\\n/Administrator", 
 83: 'Default rules'                =>    'Enter your rules here.', 87: 'Default rules'                =>    'Enter your rules here.',
 84: 'Default category name'        =>    'Test category', 88: 'Default category name'        =>    'Test category',
 85: 'Default forum name'        =>    'Test forum', 89: 'Default forum name'        =>    'Test forum',


punbb-1.3/lang/English/login.php punbb-1.3.5/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
 13: 'E-mail address help'                =>    'Enter the e-mail address set in your profile.', 13: 'E-mail address help'                =>    'Enter the e-mail address set in your profile.',
 14: 'Login errors'                        =>    '<strong>Warning!</strong> The following errors must be corrected before you can login:', 14: 'Login errors'                        =>    '<strong>Warning!</strong> The following errors must be corrected before you can login:',
 15: 'Wrong user/pass'                    =>    'Incorrect username and/or password.', 15: 'Wrong user/pass'                    =>    'Incorrect username and/or password.',
 16: 'Login redirect'                    =>    'Logged in successfully. Redirecting …', 16: 'Login redirect'                    =>    'Logged in successfully. Redirecting…',
 17: 'Logout redirect'                    =>    'Logged out. Redirecting …', 17: 'Logout redirect'                    =>    'Logged out. Redirecting…',
 18: 'No e-mail match'                    =>    'There is no user registered with the e-mail address %s.', 18: 'No e-mail match'                    =>    'There is no user registered with the e-mail address %s.',
 19: 'Invalid e-mail'                    =>    'The e-mail address you entered is invalid.', 19: 'Invalid e-mail'                    =>    'The e-mail address you entered is invalid.',
 20: 'Login options'                        =>    'Do you need to %1$s or obtain a %2$s before you login?', 20: 'Login options'                        =>    'Do you need to %1$s or obtain a %2$s before you login?',
 25: 'New password request'                =>    'New password request', 25: 'New password request'                =>    'New password request',
 26: 'New password errors'                =>    '<strong>Warning!</strong> The following errors must be corrected before a new password can be sent:', 26: 'New password errors'                =>    '<strong>Warning!</strong> The following errors must be corrected before a new password can be sent:',
 27: 'New password info'                    =>    '<strong>Important!</strong> An e-mail will be sent to the specified address with instructions on how to change your password.', 27: 'New password info'                    =>    '<strong>Important!</strong> An e-mail will be sent to the specified address with instructions on how to change your password.',
 28: 'New password cancel redirect'        =>    'New password request cancelled. Redirecting …', 28: 'New password cancel redirect'        =>    'New password request cancelled. Redirecting…',
 29: 'Forget mail'                        =>    'An e-mail has been sent to the specified address with instructions on how to change your password. If it does not arrive you can contact the forum administrator at %s.', 29: 'Forget mail'                        =>    'An e-mail has been sent to the specified address with instructions on how to change your password. If it does not arrive you can contact the forum administrator at %s.',
 30: 'Persistent login'                    =>    'Log me in automatically each time I visit.' 30: 'Persistent login'                    =>    'Log me in automatically each time I visit.'
 31:  31: 


punbb-1.3/lang/English/mail_templates/welcome.tpl punbb-1.3.5/lang/English/mail_templates/welcome.tpl
  1: Subject: Welcome to <board_title>!  1: Subject: Welcome to <board_title>!
  2:   2: 
  3: Thank you for registering in the forums at <base_url>. Your username on the forums is <username>, as you requested. To complete your registration, you need to set a password for your account.  3: Thank you for registering in the forums at <base_url>. Your username on the forums is <username>, as you requested.
   4: 
   5: To complete your registration, you need to set a password for your account. It must be done in 72 hours, or else your account will be deleted.
  4:   6: 
  5: To set your password, please visit the following page:  7: To set your password, please visit the following page:
  6: <activation_url>  8: <activation_url>
  7:   9: 
  8: --  10: --
  9: <board_mailer> 11: <board_mailer>
 10: (Do not reply to this message) 
 11:  12: 
  13: (Do not reply to this message)


punbb-1.3/lang/English/misc.php punbb-1.3.5/lang/English/misc.php
  3: // Language definitions used in various scripts  3: // Language definitions used in various scripts
  4: $lang_misc = array(  4: $lang_misc = array(
  5:   5: 
  6: 'Mark read redirect'        =>    'All topics and forums have been marked as read. Redirecting …',  6: 'Mark read redirect'        =>    'All topics and forums have been marked as read. Redirecting…',
  7: 'Mark forum read redirect'    =>    'All topics in the specified forum have been marked as read. Redirecting …',  7: 'Mark forum read redirect'    =>    'All topics in the specified forum have been marked as read. Redirecting…',
  8:   8: 
  9: // Send e-mail  9: // Send e-mail
 10: 'Form e-mail disabled'        =>    'The user you are trying to send an e-mail to has disabled form e-mail.', 10: 'Form e-mail disabled'        =>    'The user you are trying to send an e-mail to has disabled form e-mail.',
 13: 'No e-mail message'            =>    'You must enter a message.', 13: 'No e-mail message'            =>    'You must enter a message.',
 14: 'Too long e-mail message'    =>    'Your message length is %s bytes. This exceeds the %s bytes limit.', 14: 'Too long e-mail message'    =>    'Your message length is %s bytes. This exceeds the %s bytes limit.',
 15: 'Email flood'                =>    'At least %s seconds have to pass between sent emails. Please wait a while and try sending again.', 15: 'Email flood'                =>    'At least %s seconds have to pass between sent emails. Please wait a while and try sending again.',
 16: 'E-mail sent redirect'        =>    'E-mail sent. Redirecting …', 16: 'E-mail sent redirect'        =>    'E-mail sent. Redirecting…',
 17: 'E-mail subject'            =>    'Subject', 17: 'E-mail subject'            =>    'Subject',
 18: 'E-mail message'            =>    'Message', 18: 'E-mail message'            =>    'Message',
 19: 'E-mail disclosure note'    =>    '<strong>Important!</strong> When you send an e-mail using this form your e-mail address will be disclosed to the recipient.', 19: 'E-mail disclosure note'    =>    '<strong>Important!</strong> When you send an e-mail using this form your e-mail address will be disclosed to the recipient.',
 23: // Report 23: // Report
 24: 'No reason'                    =>    'You must enter a reason.', 24: 'No reason'                    =>    'You must enter a reason.',
 25: 'Report flood'                =>    'At least %s seconds have to pass between reports. Please wait a while and try sending again.', 25: 'Report flood'                =>    'At least %s seconds have to pass between reports. Please wait a while and try sending again.',
 26: 'Report redirect'            =>    'Post reported. Redirecting …', 26: 'Report redirect'            =>    'Post reported. Redirecting…',
 27: 'Report post'                =>    'Report post', 27: 'Report post'                =>    'Report post',
 28: 'Reason'                    =>    'Reason', 28: 'Reason'                    =>    'Reason',
 29: 'Reason help'                =>    'Enter a short reason why you are reporting this post.', 29: 'Reason help'                =>    'Enter a short reason why you are reporting this post.',
  30: 'Too long reason'            =>    'Your report length is %s bytes. This exceeds the %s bytes limit.',
  31: 'Report errors'                =>    '<strong>Warning!</strong> The following errors must be corrected before your report can be sending:',
 30:  32: 
 31: // Subscriptions 33: // Subscriptions
 32: 'Already subscribed'        =>    'You are already subscribed to this topic.', 34: 'Already subscribed'        =>    'You are already subscribed to this topic.',
 33: 'Subscribe redirect'        =>    'Your subscription has been added. Redirecting …', 35: 'Subscribe redirect'        =>    'Your subscription has been added. Redirecting…',
 34: 'Not subscribed'            =>    'You are not subscribed to this topic.', 36: 'Not subscribed'            =>    'You are not subscribed to this topic.',
 35: 'Unsubscribe redirect'        =>    'Your subscription has been removed. Redirecting …', 37: 'Unsubscribe redirect'        =>    'Your subscription has been removed. Redirecting…',
 36:  38: 
 37: // General forum and topic moderation 39: // General forum and topic moderation
 38: 'Moderate forum'            =>    'Moderate forum', 40: 'Moderate forum'            =>    'Moderate forum',
 49: 'Show more users'            =>    'Show more users for this IP', 51: 'Show more users'            =>    'Show more users for this IP',
 50:  52: 
 51: // Moderate forum 53: // Moderate forum
 52: 'Moderate forum head'        =>    'Moderate : %s', 54: 'Moderate forum head'        =>    'Moderate: %s',
 53: 'Topics'                    =>    'Topics', 55: 'Topics'                    =>    'Topics',
 54: 'Move topic'                =>    'Move topic', 56: 'Move topic'                =>    'Move topic',
 55: 'Move topics'                =>    'Move topics', 57: 'Move topics'                =>    'Move topics',
 63: 'Leave redirect'            =>    'Leave a redirect topic in the forum from which the topic was moved.', 65: 'Leave redirect'            =>    'Leave a redirect topic in the forum from which the topic was moved.',
 64: 'Leave redirects'            =>    'Leave redirect topics in the forum from which topics were moved.', 66: 'Leave redirects'            =>    'Leave redirect topics in the forum from which topics were moved.',
 65: 'Leave merge redirects'        =>    'Leave redirect topics for those topics which were merged.', 67: 'Leave merge redirects'        =>    'Leave redirect topics for those topics which were merged.',
 66: 'Move topic redirect'        =>    'Topic moved. Redirecting …', 68: 'Move topic redirect'        =>    'Topic moved. Redirecting…',
 67: 'Move topics redirect'        =>    'Topics moved. Redirecting …', 69: 'Move topics redirect'        =>    'Topics moved. Redirecting…',
 68: 'Merge topics redirect'        =>    'Topics merged. Redirecting …', 70: 'Merge topics redirect'        =>    'Topics merged. Redirecting…',
 69: 'Delete topic comply'        =>    'Are you sure you want to delete the selected topic?', 71: 'Delete topic comply'        =>    'Are you sure you want to delete the selected topic?',
 70: 'Delete topics comply'        =>    'Are you sure you want to delete all the selected topics?', 72: 'Delete topics comply'        =>    'Are you sure you want to delete all the selected topics?',
 71: 'Delete topic redirect'        =>    'Topic deleted. Redirecting …', 73: 'Delete topic redirect'        =>    'Topic deleted. Redirecting…',
 72: 'Delete topics redirect'    =>    'Topics deleted. Redirecting …', 74: 'Delete topics redirect'    =>    'Topics deleted. Redirecting…',
 73: 'Open topic redirect'        =>    'Topic opened. Redirecting …', 75: 'Open topic redirect'        =>    'Topic opened. Redirecting…',
 74: 'Open topics redirect'        =>    'Topics opened. Redirecting …', 76: 'Open topics redirect'        =>    'Topics opened. Redirecting…',
 75: 'Close topic redirect'        =>    'Topic closed. Redirecting …', 77: 'Close topic redirect'        =>    'Topic closed. Redirecting…',
 76: 'Close topics redirect'        =>    'Topics closed. Redirecting …', 78: 'Close topics redirect'        =>    'Topics closed. Redirecting…',
 77: 'No topics selected'        =>    'You must select at least one topic.', 79: 'No topics selected'        =>    'You must select at least one topic.',
 78: 'Stick topic redirect'        =>    'Topic is now sticky. Redirecting …', 80: 'Stick topic redirect'        =>    'Topic is now sticky. Redirecting…',
 79: 'Unstick topic redirect'    =>    'Topic no longer sticky. Redirecting …', 81: 'Unstick topic redirect'    =>    'Topic no longer sticky. Redirecting…',
 80: 'Merge error'                =>    'You should select more than 1 topic to merge.', 82: 'Merge error'                =>    'You should select more than 1 topic to merge.',
 81:  83: 
 82: // Moderate topic 84: // Moderate topic
 84: 'Delete posts'                =>    'Delete selected posts', 86: 'Delete posts'                =>    'Delete selected posts',
 85: 'Split posts'                =>    'Split selected posts', 87: 'Split posts'                =>    'Split selected posts',
 86: 'Delete whole topic'        =>    'Delete whole topic', 88: 'Delete whole topic'        =>    'Delete whole topic',
 87: 'Moderate topic head'        =>    'Moderate topic : %s', 89: 'Moderate topic head'        =>    'Moderate topic: %s',
 88: 'New subject'                =>    'New topic subject:', 90: 'New subject'                =>    'New topic subject:',
 89: 'Select post'                =>    'Select post', // Label for checkbox 91: 'Select post'                =>    'Select post', // Label for checkbox
 90: 'Confirm post delete'        =>    'Confirm deletion of all selected posts', 92: 'Confirm post delete'        =>    'Confirm deletion of all selected posts',
 92: 'Confirm topic split'        =>    'Confirm splitting of all selected posts into a new topic', 94: 'Confirm topic split'        =>    'Confirm splitting of all selected posts into a new topic',
 93: 'Confirm topic merge'        =>    'Confirm merging of all selected topics into one topic', 95: 'Confirm topic merge'        =>    'Confirm merging of all selected topics into one topic',
 94: 'Confirm post split'        =>    'Confirm splitting of all selected posts', 96: 'Confirm post split'        =>    'Confirm splitting of all selected posts',
 95: 'Delete posts redirect'        =>    'Posts deleted. Redirecting …', 97: 'Delete posts redirect'        =>    'Posts deleted. Redirecting…',
 96: 'Split posts redirect'        =>    'Posts split into a new topic. Redirecting …', 98: 'Split posts redirect'        =>    'Posts split into a new topic. Redirecting…',
 97: 'No posts selected'            =>    'You must select at least one post.' 99: 'No posts selected'            =>    'You must select at least one post.'
 98: 100: 
 99: );101: );


punbb-1.3/lang/English/post.php punbb-1.3.5/lang/English/post.php
 22: 'Post errors'            =>    '<strong>Warning!</strong> The following errors must be corrected before your message can be posted:', 22: 'Post errors'            =>    '<strong>Warning!</strong> The following errors must be corrected before your message can be posted:',
 23: 'Guest name'            =>    'Guest name',    // For guests (instead of Username) 23: 'Guest name'            =>    'Guest name',    // For guests (instead of Username)
 24: 'Guest e-mail'            =>    'Guest e-mail', 24: 'Guest e-mail'            =>    'Guest e-mail',
 25: 'Post redirect'            =>    'Post entered. Redirecting …', 25: 'Post redirect'            =>    'Post entered. Redirecting…',
 26: 'Post reply'            =>    'Post new reply', 26: 'Post reply'            =>    'Post new reply',
 27: 'Post new topic'        =>    'Post new topic', 27: 'Post new topic'        =>    'Post new topic',
 28: 'Topic subject'            =>    'Topic subject', 28: 'Topic subject'            =>    'Topic subject',
 52: 'Edit post legend'        =>    'Edit message', 52: 'Edit post legend'        =>    'Edit message',
 53: 'Edit topic'            =>    'Edit topic', 53: 'Edit topic'            =>    'Edit topic',
 54: 'Edit reply'            =>    'Edit reply', 54: 'Edit reply'            =>    'Edit reply',
 55: 'Silent edit'            =>    'Silent edit (don\'t display "Last edited by …" in topic view for this edit).', 55: 'Silent edit'            =>    'Silent edit (don\'t display "Last edited by…" in topic view for this edit).',
 56: 'Preview edited topic'    =>    'Preview of your edited topic', 56: 'Preview edited topic'    =>    'Preview of your edited topic',
 57: 'Preview edited reply'    =>    'Preview of your edited reply', 57: 'Preview edited reply'    =>    'Preview of your edited reply',
 58: 'Edit redirect'            =>    'Post updated. Redirecting …' 58: 'Edit redirect'            =>    'Post updated. Redirecting…'
 59:  59: 
 60: ); 60: );


punbb-1.3/lang/English/profile.php punbb-1.3.5/lang/English/profile.php
  3: $lang_profile = array(  3: $lang_profile = array(
  4:   4: 
  5: // Navigation and sections  5: // Navigation and sections
  6: 'Profile redirect'            =>    'Profile updated. Redirecting …',  6: 'Profile redirect'            =>    'Profile updated. Redirecting…',
  7: 'Instructions'                =>    'You will be redirected back to this page',  7: 'Instructions'                =>    'You will be redirected back to this page',
  8: 'Update profile'            =>    'Update profile',  8: 'Update profile'            =>    'Update profile',
  9: 'Subform heading'            =>    '%1$s : %2$s', 
 10:   9: 
 11: // Administration stuff 10: // Administration stuff
 12: 'User delete redirect'        =>    'User deleted. Redirecting …', 11: 'User delete redirect'        =>    'User deleted. Redirecting…',
 13: 'Section admin'                =>    'Administration', 12: 'Section admin'                =>    'Administration',
 14: 'Delete user'                =>    'Delete user', 13: 'Delete user'                =>    'Delete user',
 15: 'Delete warning'            =>    '<strong>Warning!</strong> Once deleted a user and/or their posts cannot be restored.', 14: 'Delete warning'            =>    '<strong>Warning!</strong> Once deleted a user and/or their posts cannot be restored.',
 16: 'Delete posts info'            =>    '<strong>Warning!</strong> If you choose not to delete this user\'s posts they can only be deleted manually at a later time.', 15: 'Delete posts info'            =>    '<strong>Warning!</strong> If you choose not to delete this user\'s posts they can only be deleted manually at a later time.',
 17: 'Delete posts'                =>    'Delete posts', 16: 'Delete posts'                =>    'Delete posts',
 18: 'Delete posts label'        =>    'Delete any posts and topics %s has made.', 17: 'Delete posts label'        =>    'Delete any posts and topics %s has made.',
 19: 'Group membership redirect'    =>    'Group membership updated. Redirecting …', 18: 'Group membership redirect'    =>    'Group membership updated. Redirecting…',
 20: 'Moderate forums redirect'    =>    'Forum moderator rights updated. Redirecting …', 19: 'Moderate forums redirect'    =>    'Forum moderator rights updated. Redirecting…',
 21: 'Ban redirect'                =>    'Redirecting …', 20: 'Ban redirect'                =>    'Redirecting…',
 22: 'Ban user'                    =>    'Ban user', 21: 'Ban user'                    =>    'Ban user',
 23: 'Ban user info'                =>    'Ban this user via the administration console.', 22: 'Ban user info'                =>    'Ban this user via the administration console.',
 24: 'Delete user info'            =>    'Permanently delete this user and, optionally, all their posts.', 23: 'Delete user info'            =>    'Permanently delete this user and, optionally, all their posts.',
 33: // Avatar stuff 32: // Avatar stuff
 34: 'Avatar welcome'            =>    'Set an avatar image to enhance your forum identity', 33: 'Avatar welcome'            =>    'Set an avatar image to enhance your forum identity',
 35: 'Avatar welcome user'        =>    'Set an avatar image to enhance  %s\'s forum identity', 34: 'Avatar welcome user'        =>    'Set an avatar image to enhance  %s\'s forum identity',
 36: 'Avatar deleted redirect'    =>    'Avatar deleted. Redirecting …', 35: 'Avatar deleted redirect'    =>    'Avatar deleted. Redirecting…',
 37: 'Avatars disabled'            =>    'The administrator has disabled avatar support.', 36: 'Avatars disabled'            =>    'The administrator has disabled avatar support.',
 38: 'No file'                    =>    'You did not select a file for upload.', 37: 'No file'                    =>    'You did not select a file for upload.',
 39: 'Too large ini'                =>    'The selected file was too large to upload. The server didn\'t allow the upload.', 38: 'Too large ini'                =>    'The selected file was too large to upload. The server didn\'t allow the upload.',
 45: '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.',
 46: 'Unknown failure'            =>    'An unknown error occurred. Please try again.', 45: 'Unknown failure'            =>    'An unknown error occurred. Please try again.',
 47: 'Avatar'                    =>    'Avatar', 46: 'Avatar'                    =>    'Avatar',
 48: 'Current avatar'            =>    'Current Avatar', 47: 'Current avatar'            =>    'Current avatar',
 49: 'No avatar info'            =>    'No avatar is currently uploaded.', 48: 'No avatar info'            =>    'No avatar is currently uploaded.',
 50: '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.',
 51: '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.',
 52: '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.',
 53: '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).',
 54: 'Delete avatar info'        =>    'Delete avatar to cease displaying any avatar.', 53: 'Delete avatar info'        =>    'Delete avatar to stop displaying any avatar.',
 55: 'Upload avatar file'        =>    'Upload avatar file', 54: 'Upload avatar file'        =>    'Upload avatar file',
 56: 'Avatar upload help'        =>    'Select file then update your profile to install.', 55: 'Avatar upload help'        =>    'Select file then update your profile to install.',
 57: '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.',
170: 'Change pass errors'        =>    '<strong>Warning!</strong> The following errors must be corrected before your password can be updated:',169: 'Change pass errors'        =>    '<strong>Warning!</strong> The following errors must be corrected before your password can be updated:',
171: 'Pass logout'                =>    'A user is currently logged in. Please logout and try again.',170: 'Pass logout'                =>    'A user is currently logged in. Please logout and try again.',
172: 'Pass key bad'                =>    'The specified password activation key was incorrect or has expired. Please re-request a new password. If that fails, contact the forum administrator at %s.',171: 'Pass key bad'                =>    'The specified password activation key was incorrect or has expired. Please re-request a new password. If that fails, contact the forum administrator at %s.',
173: 'Pass updated'                =>    'Password updated. Login with your new password. Redirecting …',172: 'Pass updated'                =>    'Password updated. Login with your new password. Redirecting…',
174: 'Change your password'        =>    'Change your password',173: 'Change your password'        =>    'Change your password',
175: 'Change user password'        =>    'Change %s\'s password',174: 'Change user password'        =>    'Change %s\'s password',
176: 'Old password'                =>    'Old password',175: 'Old password'                =>    'Old password',
178: 'New password'                =>    'New password',177: 'New password'                =>    'New password',
179: 'Confirm new password'        =>    'Confirm new password',178: 'Confirm new password'        =>    'Confirm new password',
180: 'Wrong old password'        =>    'The old password you entered was incorrect.',179: 'Wrong old password'        =>    'The old password you entered was incorrect.',
181: 'Pass updated redirect'        =>    'Password updated. Redirecting …',180: 'Pass updated redirect'        =>    'Password updated. Redirecting…',
182: 181: 
183: // Change E-mail stuff182: // Change E-mail stuff
184: 'Change e-mail errors'        =>    '<strong>Warning!</strong> The following errors must be corrected before your e-mail address can be updated:',183: 'Change e-mail errors'        =>    '<strong>Warning!</strong> The following errors must be corrected before your e-mail address can be updated:',
185: '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.',
186: '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…',
187: 'Wrong password'            =>    'The password you entered was incorrect.',187: 'Wrong password'            =>    'The password you entered was incorrect.',
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: '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.',
189: 'Change your e-mail'        =>    'Change your e-mail address',189: 'Change your e-mail'        =>    'Change your e-mail address',
202: 202: 
203: // Registration stuff (some of these also used by profile)203: // Registration stuff (some of these also used by profile)
204: 'No new regs'                =>    'This forum is not accepting new registrations.',204: 'No new regs'                =>    'This forum is not accepting new registrations.',
205: 'Reg cancel redirect'        =>    'Registration cancelled. Redirecting …',205: 'Reg cancel redirect'        =>    'Registration cancelled. Redirecting…',
206: 'Agreement'                    =>    'Agreement',206: 'Agreement'                    =>    'Agreement',
207: 'Agreement label'            =>    'I agree to the rules set out above and wish to register.',207: 'Agreement label'            =>    'I agree to the rules set out above and wish to register.',
208: 'Agree'                        =>    'Agree',208: 'Agree'                        =>    'Agree',
213: 'Banned e-mail'                =>    'The e-mail address you entered is banned in this forum. Please choose another e-mail address.',213: 'Banned e-mail'                =>    'The e-mail address you entered is banned in this forum. Please choose another e-mail address.',
214: 'Dupe e-mail'                =>    'Someone else is already registered with that e-mail address. Please choose another e-mail address.',214: 'Dupe e-mail'                =>    'Someone else is already registered with that e-mail address. Please choose another e-mail address.',
215: 'Reg e-mail'                =>    'Thank you for registering. An email has been sent to the specified address with instructions on how to activate your new account. If it doesn\'t arrive you can contact the forum administrator at %s.',215: 'Reg e-mail'                =>    'Thank you for registering. An email has been sent to the specified address with instructions on how to activate your new account. If it doesn\'t arrive you can contact the forum administrator at %s.',
216: 'Reg complete'                =>    'Registration complete. Logging in and redirecting …',216: 'Reg complete'                =>    'Registration complete. Logging in and redirecting…',
217: 'Register errors'            =>    '<strong>Warning!</strong> The following errors must be corrected before you can register:',217: 'Register errors'            =>    '<strong>Warning!</strong> The following errors must be corrected before you can register:',
218: 'E-mail info'                =>    '<strong>Important!</strong> An e-mail will be sent to your new address with an activation link. You must click the link in the e-mail you receive to activate the new address. You must therefore ensure that you enter a valid and current e-mail address.',218: 'E-mail info'                =>    '<strong>Important!</strong> An e-mail will be sent to your new address with an activation link. You must click the link in the e-mail you receive to activate the new address. You must therefore ensure that you enter a valid and current e-mail address.',
219: 'Reg e-mail info'            =>    '<strong>Important!</strong> An e-mail with an activation link will be sent to the address you provide. You must click the link in the e-mail in order to activate your new account. You must therefore ensure that you enter a valid and current e-mail address.',219: 'Reg e-mail info'            =>    '<strong>Important!</strong> An e-mail with an activation link will be sent to the address you provide. You must click the link in the e-mail in order to activate your new account. It must be done in 72 hours after registration, or else your account will be deleted.',
220: 'Register at'                =>    'Register at %s',220: 'Register at'                =>    'Register at %s',
221: 'Register intro'            =>    'Registration enables you to use features not available when browsing the board as a guest. The fields below only make up a small part of all the settings you can alter in your profile. If you have any questions regarding this forum you should ask an administrator. Please complete the form below in order to register.',221: 'Register intro'            =>    'Registration enables you to use features not available when browsing the board as a guest. The fields below only make up a small part of all the settings you can alter in your profile. If you have any questions regarding this forum you should ask an administrator. Please complete the form below in order to register.',
222: 'Username'                    =>    'Username',222: 'Username'                    =>    'Username',
253: 'Username too short'        =>    'Usernames must be at least 2 characters long. Please choose another (longer) username.',253: 'Username too short'        =>    'Usernames must be at least 2 characters long. Please choose another (longer) username.',
254: 'Signature quote/code'        =>    'The quote and code BBCodes are not allowed in signatures.',254: 'Signature quote/code'        =>    'The quote and code BBCodes are not allowed in signatures.',
255: 'Invalid e-mail'            =>    'The e-mail address you entered is invalid.',255: 'Invalid e-mail'            =>    'The e-mail address you entered is invalid.',
 256: 'Signature quote/code/list'    =>    'Signature may not contain of the text formatting tags (BBCode) [quote], [code] or [list]. Please choose another tags or delete it.',
256: 257: 
257: );258: );


punbb-1.3/lang/English/search.php punbb-1.3.5/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/lang/English/topic.php punbb-1.3.5/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/lang/English/url_replace.php punbb-1.3.5/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/lang/English/userlist.php punbb-1.3.5/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'
 31: 'User list options'        =>    'User list options' 
 32:  
 33:  29: 
 34: ); 30: );
 35:  31: 


punbb-1.3/login.php punbb-1.3.5/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; ?>
434:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">434:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
435:                     <div class="sf-box checkbox">435:                     <div class="sf-box checkbox">
436:                         <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="save_pass" value="1" /></span>436:                         <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="save_pass" value="1" <?php echo isset($_POST['save_pass']) ? 'checked="checked" ' : '' ?>/></span>
437:                         <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_login['Remember me'] ?></span> <?php echo $lang_login['Persistent login'] ?></label>437:                         <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_login['Remember me'] ?></span> <?php echo $lang_login['Persistent login'] ?></label>
438:                     </div>438:                     </div>
439:                 </div>439:                 </div>


punbb-1.3/misc.php punbb-1.3.5/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:  */
 33:     // Setup breadcrumbs 33:     // Setup breadcrumbs
 34:     $forum_page['crumbs'] = array( 34:     $forum_page['crumbs'] = array(
 35:         array($forum_config['o_board_title'], forum_link($forum_url['index'])), 35:         array($forum_config['o_board_title'], forum_link($forum_url['index'])),
 36:         $lang_common['Rules'] 36:         array($lang_common['Rules'], forum_link($forum_url['rules']))
 37:     ); 37:     );
 38:  38: 
 39:     ($hook = get_hook('mi_rules_pre_header_load')) ? eval($hook) : null; 39:     ($hook = get_hook('mi_rules_pre_header_load')) ? eval($hook) : null;
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;
154:         message($lang_common['No permission']);154:         message($lang_common['No permission']);
155: 155: 
156:     $recipient_id = intval($_GET['email']);156:     $recipient_id = intval($_GET['email']);
 157:     
157:     if ($recipient_id < 2)158:     if ($recipient_id < 2)
158:         message($lang_common['Bad request']);159:         message($lang_common['Bad request']);
159: 160: 
170:     );171:     );
171: 172: 
172:     ($hook = get_hook('mi_email_qr_get_form_email_data')) ? eval($hook) : null;173:     ($hook = get_hook('mi_email_qr_get_form_email_data')) ? eval($hook) : null;
 174: 
173:     $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);175:     $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
 176:     
174:     if (!$forum_db->num_rows($result))177:     if (!$forum_db->num_rows($result))
175:         message($lang_common['Bad request']);178:         message($lang_common['Bad request']);
176: 179: 
179:     if ($email_setting == 2 && !$forum_user['is_admmod'])182:     if ($email_setting == 2 && !$forum_user['is_admmod'])
180:         message($lang_misc['Form e-mail disabled']);183:         message($lang_misc['Form e-mail disabled']);
181: 184: 
 185:     if ($recipient_email == '')
 186:         message($lang_common['Bad request']);
182: 187: 
183:     if (isset($_POST['form_sent']))188:     if (isset($_POST['form_sent']))
184:     {189:     {
367:     {372:     {
368:         ($hook = get_hook('mi_report_form_submitted')) ? eval($hook) : null;373:         ($hook = get_hook('mi_report_form_submitted')) ? eval($hook) : null;
369: 374: 
 375:         // Start with a clean slate
 376:         $errors = array();
 377: 
370:         // Flood protection378:         // Flood protection
371:         if ($forum_user['last_email_sent'] != '' && (time() - $forum_user['last_email_sent']) < $forum_user['g_email_flood'] && (time() - $forum_user['last_email_sent']) >= 0)379:         if ($forum_user['last_email_sent'] != '' && (time() - $forum_user['last_email_sent']) < $forum_user['g_email_flood'] && (time() - $forum_user['last_email_sent']) >= 0)
372:             message(sprintf($lang_misc['Report flood'], $forum_user['g_email_flood']));380:             message(sprintf($lang_misc['Report flood'], $forum_user['g_email_flood']));
376:         if ($reason == '')384:         if ($reason == '')
377:             message($lang_misc['No reason']);385:             message($lang_misc['No reason']);
378: 386: 
379:         // Get some info about the topic we're reporting387:         if (strlen($reason) > FORUM_MAX_POSTSIZE_BYTES)
380:         $query = array( 
381:             'SELECT'    => 't.id, t.subject, t.forum_id', 
382:             'FROM'        => 'posts AS p', 
383:             'JOINS'        => array( 
384:                 array( 
385:                     'INNER JOIN'    => 'topics AS t', 
386:                     'ON'            => 't.id=p.topic_id' 
387:                 ) 
388:             ), 
389:             'WHERE'        => 'p.id='.$post_id 
390:         ); 
391:  
392:         ($hook = get_hook('mi_report_qr_get_topic_data')) ? eval($hook) : null; 
393:         $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); 
394:         if (!$forum_db->num_rows($result)) 
395:             message($lang_common['Bad request']); 
396:  
397:         list($topic_id, $subject, $forum_id) = $forum_db->fetch_row($result); 
398:  
399:         ($hook = get_hook('mi_report_pre_reports_sent')) ? eval($hook) : null; 
400:  
401:         // Should we use the internal report handling? 
402:         if ($forum_config['o_report_method'] == 0 || $forum_config['o_report_method'] == 2) 
403:         {388:         {
 389:             $errors[] = sprintf($lang_misc['Too long reason'], forum_number_format(strlen($reason)), forum_number_format(FORUM_MAX_POSTSIZE_BYTES));
 390:         }
 391: 
 392:         if (empty($errors)) {
 393:             // Get some info about the topic we're reporting
404:             $query = array(394:             $query = array(
405:                 'INSERT'    => 'post_id, topic_id, forum_id, reported_by, created, message',395:                 'SELECT'    => 't.id, t.subject, t.forum_id',
406:                 'INTO'        => 'reports',396:                 'FROM'        => 'posts AS p',
407:                 'VALUES'    => $post_id.', '.$topic_id.', '.$forum_id.', '.$forum_user['id'].', '.time().', \''.$forum_db->escape($reason).'\''397:                 'JOINS'        => array(
 398:                     array(
 399:                         'INNER JOIN'    => 'topics AS t',
 400:                         'ON'            => 't.id=p.topic_id'
 401:                     )
 402:                 ),
 403:                 'WHERE'        => 'p.id='.$post_id
408:             );404:             );
409: 405: 
410:             ($hook = get_hook('mi_report_add_report')) ? eval($hook) : null;406:             ($hook = get_hook('mi_report_qr_get_topic_data')) ? eval($hook) : null;
411:             $forum_db->query_build($query) or error(__FILE__, __LINE__);407:             $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
412:         }408:             if (!$forum_db->num_rows($result))
 409:                 message($lang_common['Bad request']);
413: 410: 
414:         // Should we e-mail the report?411:             list($topic_id, $subject, $forum_id) = $forum_db->fetch_row($result);
415:         if ($forum_config['o_report_method'] == 1 || $forum_config['o_report_method'] == 2)412: 
416:         {413:             ($hook = get_hook('mi_report_pre_reports_sent')) ? eval($hook) : null;
417:             // We send it to the complete mailing-list in one swoop414: 
418:             if ($forum_config['o_mailing_list'] != '')415:             // Should we use the internal report handling?
 416:             if ($forum_config['o_report_method'] == 0 || $forum_config['o_report_method'] == 2)
419:             {417:             {
420:                 $mail_subject = 'Report('.$forum_id.') - \''.$subject.'\'';418:                 $query = array(
421:                 $mail_message = 'User \''.$forum_user['username'].'\' has reported the following message:'."\n".forum_link($forum_url['post'], $post_id)."\n\n".'Reason:'."\n".$reason;419:                     'INSERT'    => 'post_id, topic_id, forum_id, reported_by, created, message',
 420:                     'INTO'        => 'reports',
 421:                     'VALUES'    => $post_id.', '.$topic_id.', '.$forum_id.', '.$forum_user['id'].', '.time().', \''.$forum_db->escape($reason).'\''
 422:                 );
422: 423: 
423:                 if (!defined('FORUM_EMAIL_FUNCTIONS_LOADED'))424:                 ($hook = get_hook('mi_report_add_report')) ? eval($hook) : null;
424:                     require FORUM_ROOT.'include/email.php';425:                 $forum_db->query_build($query) or error(__FILE__, __LINE__);
 426:             }
425: 427: 
426:                 ($hook = get_hook('mi_report_modify_message')) ? eval($hook) : null;428:             // Should we e-mail the report?
 429:             if ($forum_config['o_report_method'] == 1 || $forum_config['o_report_method'] == 2)
 430:             {
 431:                 // We send it to the complete mailing-list in one swoop
 432:                 if ($forum_config['o_mailing_list'] != '')
 433:                 {
 434:                     $mail_subject = 'Report('.$forum_id.') - \''.$subject.'\'';
 435:                     $mail_message = 'User \''.$forum_user['username'].'\' has reported the following message:'."\n".forum_link($forum_url['post'], $post_id)."\n\n".'Reason:'."\n".$reason;
 436: 
 437:                     if (!defined('FORUM_EMAIL_FUNCTIONS_LOADED'))
 438:                         require FORUM_ROOT.'include/email.php';
427: 439: 
428:                 forum_mail($forum_config['o_mailing_list'], $mail_subject, $mail_message);440:                     ($hook = get_hook('mi_report_modify_message')) ? eval($hook) : null;
 441: 
 442:                     forum_mail($forum_config['o_mailing_list'], $mail_subject, $mail_message);
 443:                 }
429:             }444:             }
430:         } 
431: 445: 
432:         // Set last_email_sent time to prevent flooding446:             // Set last_email_sent time to prevent flooding
433:         $query = array(447:             $query = array(
434:             'UPDATE'    => 'users',448:                 'UPDATE'    => 'users',
435:             'SET'        => 'last_email_sent='.time(),449:                 'SET'        => 'last_email_sent='.time(),
436:             'WHERE'        => 'id='.$forum_user['id']450:                 'WHERE'        => 'id='.$forum_user['id']
437:         );451:             );
438: 452: 
439:         ($hook = get_hook('mi_report_qr_update_last_email_sent')) ? eval($hook) : null;453:             ($hook = get_hook('mi_report_qr_update_last_email_sent')) ? eval($hook) : null;
440:         $forum_db->query_build($query) or error(__FILE__, __LINE__);454:             $forum_db->query_build($query) or error(__FILE__, __LINE__);
441: 455: 
442:         ($hook = get_hook('mi_report_pre_redirect')) ? eval($hook) : null;456:             ($hook = get_hook('mi_report_pre_redirect')) ? eval($hook) : null;
443: 457: 
444:         redirect(forum_link($forum_url['post'], $post_id), $lang_misc['Report redirect']);458:             redirect(forum_link($forum_url['post'], $post_id), $lang_misc['Report redirect']);
 459:         }
445:     }460:     }
446: 461: 
447:     // Setup form462:     // Setup form
480:         <div id="req-msg" class="req-warn ct-box error-box">495:         <div id="req-msg" class="req-warn ct-box error-box">
481:             <p class="important"><?php printf($lang_common['Required warn'], '<em>'.$lang_common['Required'].'</em>') ?></p>496:             <p class="important"><?php printf($lang_common['Required warn'], '<em>'.$lang_common['Required'].'</em>') ?></p>
482:         </div>497:         </div>
 498: <?php
 499:         // If there were any errors, show them
 500:         if (!empty($errors)) {
 501:             $forum_page['errors'] = array();
 502:             foreach ($errors as $cur_error) {
 503:                 $forum_page['errors'][] = '<li class="warn"><span>'.$cur_error.'</span></li>';
 504:             }
 505: 
 506:             ($hook = get_hook('mi_pre_report_errors')) ? eval($hook) : null;
 507: ?>
 508:         <div class="ct-box error-box">
 509:             <h2 class="warn hn"><?php echo $lang_misc['Report errors'] ?></h2>
 510:             <ul class="error-list">
 511:                 <?php echo implode("\n\t\t\t\t", $forum_page['errors'])."\n" ?>
 512:             </ul>
 513:         </div>
 514: <?php
 515:         }
 516: ?>
483:         <form id="afocus" class="frm-form" method="post" accept-charset="utf-8" action="<?php echo $forum_page['form_action'] ?>">517:         <form id="afocus" class="frm-form" method="post" accept-charset="utf-8" action="<?php echo $forum_page['form_action'] ?>">
484:             <div class="hidden">518:             <div class="hidden">
485:                 <?php echo implode("\n\t\t\t\t", $forum_page['hidden_fields'])."\n" ?>519:                 <?php echo implode("\n\t\t\t\t", $forum_page['hidden_fields'])."\n" ?>
528: 562: 
529:     // We validate the CSRF token. If it's set in POST and we're at this point, the token is valid.563:     // 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.564:     // 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'])))565:     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();566:         csrf_confirm_form();
533: 567: 
534:     ($hook = get_hook('mi_subscribe_selected')) ? eval($hook) : null;568:     ($hook = get_hook('mi_subscribe_selected')) ? eval($hook) : null;
590: 624: 
591:     // We validate the CSRF token. If it's set in POST and we're at this point, the token is valid.625:     // 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.626:     // 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'])))627:     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();628:         csrf_confirm_form();
595: 629: 
596:     ($hook = get_hook('mi_unsubscribe_selected')) ? eval($hook) : null;630:     ($hook = get_hook('mi_unsubscribe_selected')) ? eval($hook) : null;


punbb-1.3/moderate.php punbb-1.3.5/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:  */
 63:  63: 
 64: // Get some info about the forum we're moderating 64: // Get some info about the forum we're moderating
 65: $query = array( 65: $query = array(
 66:     'SELECT'    => 'f.forum_name, f.redirect_url, f.num_topics, f.moderators', 66:     'SELECT'    => 'f.forum_name, f.redirect_url, f.num_topics, f.moderators, f.sort_by',
 67:     'FROM'        => 'forums AS f', 67:     'FROM'        => 'forums AS f',
 68:     'JOINS'        => array( 68:     'JOINS'        => array(
 69:         array( 69:         array(
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: 
755:             message($lang_misc['No topics selected']);754:             message($lang_misc['No topics selected']);
756: 755: 
757:         if (count($topics) == 1)756:         if (count($topics) == 1)
 757:         {
758:             $topics = $topics[0];758:             $topics = $topics[0];
 759:             $action = 'single';
 760:         }
 761:         else
 762:             $action = 'multiple';
759:     }763:     }
760:     else764:     else
761:     {765:     {
764:             message($lang_common['Bad request']);768:             message($lang_common['Bad request']);
765: 769: 
766:         $action = 'single';770:         $action = 'single';
767: 771:     }
 772:     if ($action == 'single')
 773:     {
768:         // Fetch the topic subject774:         // Fetch the topic subject
769:         $query = array(775:         $query = array(
770:             'SELECT'    => 't.subject',776:             'SELECT'    => 't.subject',
815: 821: 
816:     $forum_page['hidden_fields'] = array(822:     $forum_page['hidden_fields'] = array(
817:         'csrf_token'    => '<input type="hidden" name="csrf_token" value="'.generate_form_token($forum_page['form_action']).'" />',823:         'csrf_token'    => '<input type="hidden" name="csrf_token" value="'.generate_form_token($forum_page['form_action']).'" />',
818:         'topics'        => '<input type="hidden" name="topics" value="'.$topics.'" />'824:         'topics'        => '<input type="hidden" name="topics" value="'.($action == 'single' ? $topics : implode(',', $topics)).'" />'
819:     );825:     );
820: 826: 
821:     // Setup breadcrumbs827:     // Setup breadcrumbs
921:         message($lang_misc['No topics selected']);927:         message($lang_misc['No topics selected']);
922: 928: 
923:     if (count($topics) == 1)929:     if (count($topics) == 1)
924:             message($lang_misc['Merge error']);930:         message($lang_misc['Merge error']);
925: 931: 
926:     if (isset($_POST['merge_topics_comply']))932:     if (isset($_POST['merge_topics_comply']))
927:     {933:     {
1011:         $lang_misc['Merge topics']1017:         $lang_misc['Merge topics']
1012:     );1018:     );
1013: 1019: 
1014:     // Setup main heading 
1015:     $forum_page['main_title'] = end($forum_page['crumbs']); 
1016:  
1017:     ($hook = get_hook('mr_merge_topics_pre_header_load')) ? eval($hook) : null;1020:     ($hook = get_hook('mr_merge_topics_pre_header_load')) ? eval($hook) : null;
1018: 1021: 
1019:     define('FORUM_PAGE', 'dialogue');1022:     define('FORUM_PAGE', 'dialogue');
1035:             </div>1038:             </div>
1036: <?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; ?>
1037:             <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">1040:             <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">
1038:                 <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>
1039: <?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; ?>
1040:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">1043:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
1041:                     <div class="sf-box checkbox">1044:                     <div class="sf-box checkbox">
1420: // Determine the topic offset (based on $_GET['p'])1423: // Determine the topic offset (based on $_GET['p'])
1421: $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']);
1422: 1425: 
1423: $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'];
1424: $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);
1425: $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']));
1426: $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']);
1430:     'SELECT'    => 't.id, t.poster, t.subject, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to',1433:     'SELECT'    => 't.id, t.poster, t.subject, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to',
1431:     'FROM'        => 'topics AS t',1434:     'FROM'        => 'topics AS t',
1432:     'WHERE'        => 'forum_id='.$fid,1435:     'WHERE'        => 'forum_id='.$fid,
1433:     'ORDER BY'    => 't.sticky DESC, last_post DESC',1436:     'ORDER BY'    => 't.sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 't.posted' : 't.last_post').' DESC',
1434:     'LIMIT'        =>    $forum_page['start_from'].', '.$forum_user['disp_topics']1437:     'LIMIT'        =>    $forum_page['start_from'].', '.$forum_user['disp_topics']
1435: );1438: );
1436: 1439: 
1531:         ++$forum_page['item_count'];1534:         ++$forum_page['item_count'];
1532: 1535: 
1533:         // Start from scratch1536:         // Start from scratch
1534:         $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();
1535:         $forum_page['item_indicator'] = ''; 
1536: 1538: 
1537:         if ($forum_config['o_censoring'] == '1')1539:         if ($forum_config['o_censoring'] == '1')
1538:             $cur_topic['subject'] = censor_words($cur_topic['subject']);1540:             $cur_topic['subject'] = censor_words($cur_topic['subject']);
1539: 1541: 
 1542:         $forum_page['item_subject']['starter'] = '<span class="item-starter">'.sprintf($lang_forum['Topic starter'], forum_htmlencode($cur_topic['poster'])).'</span>';
 1543: 
1540:         if ($cur_topic['moved_to'] != null)1544:         if ($cur_topic['moved_to'] != null)
1541:         {1545:         {
1542:             $forum_page['item_status']['moved'] = 'moved';1546:             $forum_page['item_status']['moved'] = 'moved';
1543:             $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>';
1544: 1548: 
1545:             // Combine everything to produce the Topic heading1549:             // Combine everything to produce the Topic heading
1546:             $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>';
1552: 1556: 
1553:             $forum_page['item_body']['info']['replies'] = '<li class="info-replies"><span class="label">'.$lang_forum['No replies info'].'</span></li>';1557:             $forum_page['item_body']['info']['replies'] = '<li class="info-replies"><span class="label">'.$lang_forum['No replies info'].'</span></li>';
1554:             $forum_page['item_body']['info']['lastpost'] = '<li class="info-lastpost"><span class="label">'.$lang_forum['No lastpost info'].'</span></li>';1558:             $forum_page['item_body']['info']['lastpost'] = '<li class="info-lastpost"><span class="label">'.$lang_forum['No lastpost info'].'</span></li>';
1555:             $forum_page['item_body']['info']['select'] = '<li class="info-select"><input id="fld'.++$forum_page['fld_count'].'" type="checkbox" name="topics[]" value="'.$cur_topic['id'].'" /> <label for="fld'.$forum_page['fld_count'].'">'.sprintf($lang_forum['Select topic'], $cur_topic['subject']).'</label></li>';1559:             $forum_page['item_body']['info']['select'] = '<li class="info-select"><input id="fld'.++$forum_page['fld_count'].'" type="checkbox" name="topics[]" value="'.$cur_topic['id'].'" /> <label for="fld'.$forum_page['fld_count'].'">'.sprintf($lang_forum['Select topic'], forum_htmlencode($cur_topic['subject'])).'</label></li>';
1556: 1560: 
1557:             ($hook = get_hook('mr_topic_actions_moved_row_pre_output')) ? eval($hook) : null;1561:             ($hook = get_hook('mr_topic_actions_moved_row_pre_output')) ? eval($hook) : null;
1558:         }1562:         }
1569:                 $forum_page['item_status']['posted'] = 'posted';1573:                 $forum_page['item_status']['posted'] = 'posted';
1570:             }1574:             }
1571: 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: 
1572:             $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>';
1573: 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: 
1574:             $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']);
1575: 1604: 
1576:             if ($forum_page['item_pages'] > 1)1605:             if ($forum_page['item_pages'] > 1)
1583:                 $forum_page['item_status']['new'] = 'new';1612:                 $forum_page['item_status']['new'] = 'new';
1584:             }1613:             }
1585: 1614: 
1586:             if (!empty($forum_page['item_nav']))1615:             ($hook = get_hook('mr_topic_loop_normal_topic_pre_item_nav_merge')) ? eval($hook) : null;
1587:                 $forum_page['item_title']['nav'] = '<span class="item-nav">'.sprintf($lang_forum['Topic navigation'], implode('&#160;&#160;', $forum_page['item_nav'])).'</span>'; 
1588:  
1589:             ($hook = get_hook('mr_topic_actions_moved_row_pre_item_title_merge')) ? eval($hook) : null; 
1590: 1616: 
1591:             $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>';
1592: 1619: 
1593:             // Assemble the Topic subject1620:             // Assemble the Topic subject
1594: 1621: 
1595:             if ($cur_topic['sticky'] == '1')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>';
1596:             { 
1597:                 $forum_page['item_subject_status']['sticky'] = $lang_forum['Sticky']; 
1598:                 $forum_page['item_status']['sticky'] = 'sticky'; 
1599:             } 
1600:  
1601:             if ($cur_topic['closed'] == '1') 
1602:             { 
1603:                 $forum_page['item_subject_status']['closed'] = $lang_forum['Closed']; 
1604:                 $forum_page['item_status']['closed'] = 'closed'; 
1605:             } 
1606:  
1607:             ($hook = get_hook('mr_topic_actions_moved_row_pre_item_subject_status_merge')) ? eval($hook) : null; 
1608:  
1609:             if (!empty($forum_page['item_subject_status'])) 
1610:                 $forum_page['item_subject']['status'] = '<span class="item-status">'.sprintf($lang_forum['Item status'], implode(' ', $forum_page['item_subject_status'])).'</span>'; 
1611:  
1612:             if (empty($forum_page['item_status'])) 
1613:                 $forum_page['item_status']['normal'] = 'normal'; 
1614: 1623: 
1615:             if ($forum_config['o_topic_views'] == '1')1624:             if ($forum_config['o_topic_views'] == '1')
1616:                 $forum_page['item_body']['info']['views'] = '<li class="info-views"><strong>'.forum_number_format($cur_topic['num_views']).'</strong> <span class="label">'.(($cur_topic['num_views'] == 1) ? $lang_forum['View'] : $lang_forum['Views']).'</span></li>';1625:                 $forum_page['item_body']['info']['views'] = '<li class="info-views"><strong>'.forum_number_format($cur_topic['num_views']).'</strong> <span class="label">'.(($cur_topic['num_views'] == 1) ? $lang_forum['View'] : $lang_forum['Views']).'</span></li>';
1617: 1626: 
1618:             $forum_page['item_body']['info']['replies'] = '<li class="info-replies"><strong>'.forum_number_format($cur_topic['num_replies']).'</strong> <span class="label">'.(($cur_topic['num_replies'] == 1) ? $lang_forum['Reply'] : $lang_forum['Replies']).'</span></li>'; 
1619:             $forum_page['item_body']['info']['lastpost'] = '<li class="info-lastpost"><span class="label">'.$lang_forum['Last post'].'</span> <strong><a href="'.forum_link($forum_url['post'], $cur_topic['last_post_id']).'">'.format_time($cur_topic['last_post']).'</a></strong> <cite>'.sprintf($lang_forum['by poster'], forum_htmlencode($cur_topic['last_poster'])).'</cite></li>';1627:             $forum_page['item_body']['info']['lastpost'] = '<li class="info-lastpost"><span class="label">'.$lang_forum['Last post'].'</span> <strong><a href="'.forum_link($forum_url['post'], $cur_topic['last_post_id']).'">'.format_time($cur_topic['last_post']).'</a></strong> <cite>'.sprintf($lang_forum['by poster'], forum_htmlencode($cur_topic['last_poster'])).'</cite></li>';
1620:             $forum_page['item_body']['info']['select'] = '<li class="info-select"><input id="fld'.++$forum_page['fld_count'].'" type="checkbox" name="topics[]" value="'.$cur_topic['id'].'" /> <label for="fld'.$forum_page['fld_count'].'">'.sprintf($lang_forum['Select topic'], $cur_topic['subject']).'</label></li>';1628:             $forum_page['item_body']['info']['select'] = '<li class="info-select"><input id="fld'.++$forum_page['fld_count'].'" type="checkbox" name="topics[]" value="'.$cur_topic['id'].'" /> <label for="fld'.$forum_page['fld_count'].'">'.sprintf($lang_forum['Select topic'], forum_htmlencode($cur_topic['subject'])).'</label></li>';
1621: 1629: 
1622:             ($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;
1623:         }1631:         }
1624: 1632: 
1625:         $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>';
1626:         $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;
1627: 1636: 
1628:         $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']) : '');
1629: 1638: 


punbb-1.3/post.php punbb-1.3.5/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:  */
124:             $errors[] = $lang_post['No subject'];124:             $errors[] = $lang_post['No subject'];
125:         else if (utf8_strlen($subject) > 70)125:         else if (utf8_strlen($subject) > 70)
126:             $errors[] = $lang_post['Too long subject'];126:             $errors[] = $lang_post['Too long subject'];
127:         else if ($forum_config['p_subject_all_caps'] == '0' && utf8_strtoupper($subject) == $subject && !$forum_page['is_admmod'])127:         else if ($forum_config['p_subject_all_caps'] == '0' && check_is_all_caps($subject) && !$forum_page['is_admmod'])
128:             $errors[] = $lang_post['All caps subject'];128:             $errors[] = $lang_post['All caps subject'];
129:     }129:     }
130: 130: 
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: 
165: 168: 
166:     if (strlen($message) > FORUM_MAX_POSTSIZE_BYTES)169:     if (strlen($message) > FORUM_MAX_POSTSIZE_BYTES)
167:         $errors[] = sprintf($lang_post['Too long message'], forum_number_format(strlen($message)), forum_number_format(FORUM_MAX_POSTSIZE_BYTES));170:         $errors[] = sprintf($lang_post['Too long message'], forum_number_format(strlen($message)), forum_number_format(FORUM_MAX_POSTSIZE_BYTES));
168:     else if ($forum_config['p_message_all_caps'] == '0' && utf8_strtoupper($message) == $message && !$forum_page['is_admmod'])171:     else if ($forum_config['p_message_all_caps'] == '0' && check_is_all_caps($message) && !$forum_page['is_admmod'])
169:         $errors[] = $lang_post['All caps message'];172:         $errors[] = $lang_post['All caps message'];
170: 173: 
171:     // Validate BBCode syntax174:     // Validate BBCode syntax
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)
426: <?php ($hook = get_hook('po_pre_guest_username')) ? eval($hook) : null; ?>431: <?php ($hook = get_hook('po_pre_guest_username')) ? eval($hook) : null; ?>
427:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">432:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
428:                     <div class="sf-box text required">433:                     <div class="sf-box text required">
429:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><em><?php echo $lang_common['Required'] ?></em> <?php echo $lang_post['Guest name'] ?></span></label><br />434:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_post['Guest name'] ?> <em><?php echo $lang_common['Required'] ?></em></span></label><br />
430:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_username" value="<?php if (isset($_POST['req_username'])) echo forum_htmlencode($username); ?>" size="35" maxlength="25" /></span>435:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_username" value="<?php if (isset($_POST['req_username'])) echo forum_htmlencode($username); ?>" size="35" maxlength="25" /></span>
431:                     </div>436:                     </div>
432:                 </div>437:                 </div>
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/profile.php punbb-1.3.5/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:  */
123:                 ($forum_page['own_profile']) ? array($lang_profile['Change your password'], forum_link($forum_url['change_password'], $id)) : array(sprintf($lang_profile['Change user password'], forum_htmlencode($user['username'])),forum_link($forum_url['change_password']), $id)123:                 ($forum_page['own_profile']) ? array($lang_profile['Change your password'], forum_link($forum_url['change_password'], $id)) : array(sprintf($lang_profile['Change user password'], forum_htmlencode($user['username'])),forum_link($forum_url['change_password']), $id)
124:             );124:             );
125: 125: 
126:             // Setup headings 
127:             $forum_page['main_head'] = sprintf($lang_profile['Subform heading'], sprintf($lang_profile['Users profile'], forum_htmlencode($user['username'])), end($forum_page['crumbs'])); 
128:  
129:             ($hook = get_hook('pf_change_pass_key_pre_header_load')) ? eval($hook) : null;126:             ($hook = get_hook('pf_change_pass_key_pre_header_load')) ? eval($hook) : null;
130: 127: 
131:             define('FORUM_PAGE', 'profile-changepass');128:             define('FORUM_PAGE', 'profile-changepass');
138: 135: 
139: ?>136: ?>
140:     <div class="main-head">137:     <div class="main-head">
141:         <h2 class="hn"><span><?php printf(($forum_user['id'] == $id) ? $lang_profile['Profile welcome'] : $lang_profile['Profile welcome user'], forum_htmlencode($user['username'])) ?></span></h2>138:         <h2 class="hn"><span><?php echo $forum_page['own_profile'] ? $lang_profile['Change your password'] : sprintf($lang_profile['Change user password'], forum_htmlencode($user['username'])) ?></span></h2>
142:     </div>139:     </div>
143:     <div class="main-content main-frm">140:     <div class="main-content main-frm">
144: <?php141: <?php
179:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">176:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
180:                     <div class="sf-box text required">177:                     <div class="sf-box text required">
181:                         <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 />
182:                         <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 />
183:                     </div>180:                     </div>
184:                 </div>181:                 </div>
185: <?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; ?>
186:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">183:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
187:                     <div class="sf-box text required">184:                     <div class="sf-box text required">
188:                         <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 />
189:                         <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 />
190:                     </div>187:                     </div>
191:                 </div>188:                 </div>
192: <?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; ?>
290:         ($forum_page['own_profile']) ? array($lang_profile['Change your password'], forum_link($forum_url['change_password'], $id)) : array(sprintf($lang_profile['Change user password'], forum_htmlencode($user['username'])),forum_link($forum_url['change_password'], $id))287:         ($forum_page['own_profile']) ? array($lang_profile['Change your password'], forum_link($forum_url['change_password'], $id)) : array(sprintf($lang_profile['Change user password'], forum_htmlencode($user['username'])),forum_link($forum_url['change_password'], $id))
291:     );288:     );
292: 289: 
293:     // Setup headings 
294:     $forum_page['main_head'] = sprintf($lang_profile['Subform heading'], sprintf($lang_profile['Users profile'], forum_htmlencode($user['username'])), end($forum_page['crumbs'])); 
295:  
296:     ($hook = get_hook('pf_change_pass_normal_pre_header_load')) ? eval($hook) : null;290:     ($hook = get_hook('pf_change_pass_normal_pre_header_load')) ? eval($hook) : null;
297: 291: 
298:     define('FORUM_PAGE', 'profile-changepass');292:     define('FORUM_PAGE', 'profile-changepass');
305: 299: 
306: ?>300: ?>
307:     <div class="main-head">301:     <div class="main-head">
308:         <h2 class="hn"><span><?php printf(($forum_user['id'] == $id) ? $lang_profile['Profile welcome'] : $lang_profile['Profile welcome user'], forum_htmlencode($user['username'])) ?></span></h2>302:         <h2 class="hn"><span><?php echo $forum_page['own_profile'] ? $lang_profile['Change your password'] : sprintf($lang_profile['Change user password'], forum_htmlencode($user['username'])) ?></span></h2>
309:     </div>303:     </div>
310:     <div class="main-content main-frm">304:     <div class="main-content main-frm">
311: <?php305: <?php
342:             <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">336:             <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">
343:                 <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>
344: <?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; ?>
345: <?php if (!$forum_user['is_admmod']): ?>339: <?php if (!$forum_user['is_admmod'] || $forum_user['id'] == $id): ?>
346:                                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">340:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
347:                     <div class="sf-box text required">341:                     <div class="sf-box text required">
348:                         <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 />
349:                         <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>
350:                     </div>344:                     </div>
351:                 </div>345:                 </div>
352: <?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; ?>
353:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">347:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
354:                     <div class="sf-box text required">348:                     <div class="sf-box text required">
355:                         <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 />
356:                         <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 />
357:                     </div>351:                     </div>
358:                 </div>352:                 </div>
359: <?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; ?>
360:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">354:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
361:                     <div class="sf-box text required">355:                     <div class="sf-box text required">
362:                         <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 />
363:                         <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 />
364:                     </div>358:                     </div>
365:                 </div>359:                 </div>
366: <?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; ?>
436:         if (!is_valid_email($new_email))430:         if (!is_valid_email($new_email))
437:             $errors[] = $lang_common['Invalid e-mail'];431:             $errors[] = $lang_common['Invalid e-mail'];
438: 432: 
439:         // Check it it's a banned e-mail address433:         // Check if it's a banned e-mail address
440:         if (is_banned_email($new_email))434:         if (is_banned_email($new_email))
441:         {435:         {
442:             ($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;
482:         // Did everything go according to plan?476:         // Did everything go according to plan?
483:         if (empty($errors))477:         if (empty($errors))
484:         {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: 
485:             $new_email_key = random_key(8, true);496:             $new_email_key = random_key(8, true);
486: 497: 
487:             // Save new e-mail and activation key498:             // Save new e-mail and activation key
537:         ($forum_page['own_profile']) ? array($lang_profile['Change your e-mail'], forum_link($forum_url['change_email'], $id)) : array(sprintf($lang_profile['Change user e-mail'], forum_htmlencode($user['username'])), forum_link($forum_url['change_email'], $id))548:         ($forum_page['own_profile']) ? array($lang_profile['Change your e-mail'], forum_link($forum_url['change_email'], $id)) : array(sprintf($lang_profile['Change user e-mail'], forum_htmlencode($user['username'])), forum_link($forum_url['change_email'], $id))
538:     );549:     );
539: 550: 
540:     // Setup headings 
541:     $forum_page['main_head'] = sprintf($lang_profile['Subform heading'], sprintf($lang_profile['Users profile'], forum_htmlencode($user['username'])), end($forum_page['crumbs'])); 
542:  
543:     ($hook = get_hook('pf_change_email_normal_pre_header_load')) ? eval($hook) : null;551:     ($hook = get_hook('pf_change_email_normal_pre_header_load')) ? eval($hook) : null;
544: 552: 
545:     define('FORUM_PAGE', 'profile-changemail');553:     define('FORUM_PAGE', 'profile-changemail');
602:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">610:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
603:                     <div class="sf-box text required">611:                     <div class="sf-box text required">
604:                         <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 />
605:                         <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>
606:                     </div>614:                     </div>
607:                 </div>615:                 </div>
608: <?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; ?>
668:         array($lang_profile['Delete user'], forum_link($forum_url['delete_user'], $id))676:         array($lang_profile['Delete user'], forum_link($forum_url['delete_user'], $id))
669:     );677:     );
670: 678: 
671:     // Setup headings 
672:     $forum_page['main_head'] = array( 
673:         'head' => '<h1 class="hn"><span>'.sprintf($lang_profile['Subform heading'], sprintf($lang_profile['Users profile'], forum_htmlencode($user['username'])), end($forum_page['crumbs'])).'</span></h1>' 
674:     ); 
675:  
676:     ($hook = get_hook('pf_delete_user_pre_header_load')) ? eval($hook) : null;679:     ($hook = get_hook('pf_delete_user_pre_header_load')) ? eval($hook) : null;
677: 680: 
678:     define('FORUM_PAGE', 'dialogue');681:     define('FORUM_PAGE', 'dialogue');
903:                     $form['num_posts'] = intval($_POST['num_posts']);906:                     $form['num_posts'] = intval($_POST['num_posts']);
904:             }907:             }
905: 908: 
906:             if ($forum_config['o_regs_verify'] == '0' || $forum_user['is_admmod'])909:             if ($forum_user['is_admmod'])
907:             {910:             {
908:                 if (!defined('FORUM_EMAIL_FUNCTIONS_LOADED'))911:                 if (!defined('FORUM_EMAIL_FUNCTIONS_LOADED'))
909:                     require FORUM_ROOT.'include/email.php';912:                     require FORUM_ROOT.'include/email.php';
954:             $form['dst'] = (isset($form['dst'])) ? 1 : 0;957:             $form['dst'] = (isset($form['dst'])) ? 1 : 0;
955:             $form['time_format'] = (isset($form['time_format'])) ? intval($form['time_format']) : 0;958:             $form['time_format'] = (isset($form['time_format'])) ? intval($form['time_format']) : 0;
956:             $form['date_format'] = (isset($form['date_format'])) ? intval($form['date_format']) : 0;959:             $form['date_format'] = (isset($form['date_format'])) ? intval($form['date_format']) : 0;
 960:             $form['timezone'] = (isset($form['timezone'])) ? floatval($form['timezone']) : $forum_config['o_default_timezone'];
 961: 
 962:             // Validate timezone
 963:             if (($form['timezone'] > 14.0) || ($form['timezone'] < -12.0)) {
 964:                 message($lang_common['Bad request']);
 965:             }
957: 966: 
958:             $form['email_setting'] = intval($form['email_setting']);967:             $form['email_setting'] = intval($form['email_setting']);
959:             if ($form['email_setting'] < 0 && $form['email_setting'] > 2) $form['email_setting'] = 1;968:             if ($form['email_setting'] < 0 || $form['email_setting'] > 2) $form['email_setting'] = 1;
960: 969: 
961:             if ($forum_config['o_subscriptions'] == '1')970:             if ($forum_config['o_subscriptions'] == '1')
962:             {971:             {
1009:             if (substr_count($form['signature'], "\n") > ($forum_config['p_sig_lines'] - 1))1018:             if (substr_count($form['signature'], "\n") > ($forum_config['p_sig_lines'] - 1))
1010:                 $errors[] = sprintf($lang_profile['Sig too many lines'], forum_number_format($forum_config['p_sig_lines']));1019:                 $errors[] = sprintf($lang_profile['Sig too many lines'], forum_number_format($forum_config['p_sig_lines']));
1011: 1020: 
1012:             if ($form['signature'] != '' && $forum_config['p_sig_all_caps'] == '0' && utf8_strtoupper($form['signature']) == $form['signature'] && !$forum_user['is_admmod'])1021:             if ($form['signature'] != '' && $forum_config['p_sig_all_caps'] == '0' && check_is_all_caps($form['signature']) && !$forum_user['is_admmod'])
1013:                 $form['signature'] = utf8_ucwords(utf8_strtolower($form['signature']));1022:                 $form['signature'] = utf8_ucwords(utf8_strtolower($form['signature']));
1014: 1023: 
1015:             // Validate BBCode syntax1024:             // Validate BBCode syntax
1298:     $forum_user['g_id'] != FORUM_ADMIN &&1307:     $forum_user['g_id'] != FORUM_ADMIN &&
1299:     ($forum_user['g_moderator'] != '1' || $forum_user['g_mod_edit_users'] == '0' || $user['g_id'] == FORUM_ADMIN || $user['g_moderator'] == '1'))1308:     ($forum_user['g_moderator'] != '1' || $forum_user['g_mod_edit_users'] == '0' || $user['g_id'] == FORUM_ADMIN || $user['g_moderator'] == '1'))
1300: {1309: {
1301:     ($hook = get_hook('pf_view_details_selected')) ? eval($hook) : null; 
1302:  
1303:     // Setup user identification1310:     // Setup user identification
1304:     $forum_page['user_ident'] = array();1311:     $forum_page['user_ident'] = array();
1305: 1312: 
1306:     ($hook = get_hook('pf_view_details_selected')) ? eval($hook) : null;1313:     ($hook = get_hook('pf_view_details_selected')) ? eval($hook) : null;
1307: 1314: 
1308:     $forum_page['user_ident']['username'] = '<li class="username'.(($user['realname'] =='') ? ' fn nickname' :  ' nickname').'"><strong>'.forum_htmlencode($user['username']).'</strong></li>';1315:     $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']['usertitle'] = '<li class="usertitle"><span>'.get_title($user).'</span></li>'; 
1310: 1316: 
1311:     if ($forum_config['o_avatars'] == '1')1317:     if ($forum_config['o_avatars'] == '1')
1312:     {1318:     {
1316:             $forum_page['user_ident']['avatar'] = '<li class="useravatar">'.$forum_page['avatar_markup'].'</li>';1322:             $forum_page['user_ident']['avatar'] = '<li class="useravatar">'.$forum_page['avatar_markup'].'</li>';
1317:     }1323:     }
1318: 1324: 
 1325:     $forum_page['user_ident']['usertitle'] = '<li class="usertitle"><span>'.get_title($user).'</span></li>';
 1326: 
1319:     // Setup user information1327:     // Setup user information
1320:     $forum_page['user_info'] = array();1328:     $forum_page['user_info'] = array();
1321: 1329: 
1421:                     </ul>1429:                     </ul>
1422:                 </div>1430:                 </div>
1423:             </div>1431:             </div>
1424: <?php ($hook = get_hook('pf_view_details_pre_user_activity_info')) ? eval($hook) : null; ?>1432: <?php endif; ($hook = get_hook('pf_view_details_pre_user_activity_info')) ? eval($hook) : null; ?>
1425: <?php endif; if (!empty($forum_page['user_activity'])): ?>1433: <?php if (!empty($forum_page['user_activity'])): ?>
1426:             <div class="ct-set data-set set<?php echo ++$forum_page['item_count'] ?>">1434:             <div class="ct-set data-set set<?php echo ++$forum_page['item_count'] ?>">
1427:                 <div class="ct-box data-box">1435:                 <div class="ct-box data-box">
1428:                     <h3 class="ct-legend hn"><span><?php echo $lang_profile['Posts and topics'] ?></span></h3>1436:                     <h3 class="ct-legend hn"><span><?php echo $lang_profile['Posts and topics'] ?></span></h3>
1431:                     </ul>1439:                     </ul>
1432:                 </div>1440:                 </div>
1433:             </div>1441:             </div>
1434: <?php ($hook = get_hook('pf_view_details_pre_user_sig_info')) ? eval($hook) : null; ?>1442: <?php endif; ($hook = get_hook('pf_view_details_pre_user_sig_info')) ? eval($hook) : null; ?>
1435: <?php endif; if (isset($forum_page['sig_demo'])): ?>1443: <?php if (isset($forum_page['sig_demo'])): ?>
1436:             <div class="ct-set data-set set<?php echo ++$forum_page['item_count'] ?>">1444:             <div class="ct-set data-set set<?php echo ++$forum_page['item_count'] ?>">
1437:                 <div class="ct-box data-box">1445:                 <div class="ct-box data-box">
1438:                     <h3 class="ct-legend hn"><span><?php echo $lang_profile['Current signature'] ?></span></h3>1446:                     <h3 class="ct-legend hn"><span><?php echo $lang_profile['Current signature'] ?></span></h3>
1500:         ($hook = get_hook('pf_change_details_about_selected')) ? eval($hook) : null;1508:         ($hook = get_hook('pf_change_details_about_selected')) ? eval($hook) : null;
1501: 1509: 
1502:         $forum_page['user_ident']['username'] = '<li class="username'.(($user['realname'] =='') ? ' fn nickname' :  ' nickname').'"><strong>'.forum_htmlencode($user['username']).'</strong></li>';1510:         $forum_page['user_ident']['username'] = '<li class="username'.(($user['realname'] =='') ? ' fn nickname' :  ' nickname').'"><strong>'.forum_htmlencode($user['username']).'</strong></li>';
1503:         $forum_page['user_ident']['usertitle'] = '<li class="usertitle"><span>'.get_title($user).'</span></li>'; 
1504: 1511: 
1505:         if ($forum_config['o_avatars'] == '1')1512:         if ($forum_config['o_avatars'] == '1')
1506:         {1513:         {
1510:                 $forum_page['user_ident']['avatar'] = '<li class="useravatar">'.$forum_page['avatar_markup'].'</li>';1517:                 $forum_page['user_ident']['avatar'] = '<li class="useravatar">'.$forum_page['avatar_markup'].'</li>';
1511:         }1518:         }
1512: 1519: 
 1520:         $forum_page['user_ident']['usertitle'] = '<li class="usertitle"><span>'.get_title($user).'</span></li>';
 1521: 
1513:         // Create array for private information1522:         // Create array for private information
1514:         $forum_page['user_private'] = array();1523:         $forum_page['user_private'] = array();
1515: 1524: 
1563: 1572: 
1564:         // Setup user messaging1573:         // Setup user messaging
1565:         if ($user['jabber'] !='')1574:         if ($user['jabber'] !='')
1566:             $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>';1575:             $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>';
1567:         if ($user['icq'] !='')1576:         if ($user['icq'] !='')
1568:             $forum_page['user_contact']['icq'] = '<li><span><strong>'.$lang_profile['ICQ'].':</strong> '.forum_htmlencode($user['icq']).'</span></li>';1577:             $forum_page['user_contact']['icq'] = '<li><span>'.$lang_profile['ICQ'].': <strong>'.forum_htmlencode($user['icq']).'</strong></span></li>';
1569:         if ($user['msn'] !='')1578:         if ($user['msn'] !='')
1570:             $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>';1579:             $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>';
1571:         if ($user['aim'] !='')1580:         if ($user['aim'] !='')
1572:             $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>';1581:             $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>';
1573:         if ($user['yahoo'] !='')1582:         if ($user['yahoo'] !='')
1574:             $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>';1583:             $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>';
1575: 1584: 
1576:         // Setup signature demo1585:         // Setup signature demo
1577:         if ($forum_config['o_signatures'] == '1' && isset($parsed_signature))1586:         if ($forum_config['o_signatures'] == '1' && isset($parsed_signature))
1594:         if ($forum_page['own_profile'] || $forum_user['g_id'] == FORUM_ADMIN || ($forum_user['g_moderator'] == '1' && $forum_user['g_mod_change_passwords'] == '1'))1603:         if ($forum_page['own_profile'] || $forum_user['g_id'] == FORUM_ADMIN || ($forum_user['g_moderator'] == '1' && $forum_user['g_mod_change_passwords'] == '1'))
1595:             $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>';1604:             $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>';
1596: 1605: 
1597:         if (!$forum_user['is_admmod'] && $forum_config['o_regs_verify'] == '1')1606:         if (!$forum_user['is_admmod'])
1598:             $forum_page['user_options']['change_email'] = '<span'.(empty($forum_page['user_options']) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['change_email'], $id).'">'.(($forum_page['own_profile']) ? $lang_profile['Change your e-mail'] : sprintf($lang_profile['Change user e-mail'], forum_htmlencode($user['username']))).'</a></span>';1607:             $forum_page['user_options']['change_email'] = '<span'.(empty($forum_page['user_options']) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['change_email'], $id).'">'.(($forum_page['own_profile']) ? $lang_profile['Change your e-mail'] : sprintf($lang_profile['Change user e-mail'], forum_htmlencode($user['username']))).'</a></span>';
1599: 1608: 
1600:         // Setup headings 
1601:         $forum_page['main_head'] = sprintf($lang_profile['Subform heading'], forum_htmlencode(end($forum_page['crumbs'][0])), $lang_profile['Section about']); 
1602:  
1603:         $forum_page['group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0;1609:         $forum_page['group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0;
1604: 1610: 
1605:         ($hook = get_hook('pf_change_details_about_pre_header_load')) ? eval($hook) : null;1611:         ($hook = get_hook('pf_change_details_about_pre_header_load')) ? eval($hook) : null;
1707:             $forum_page['hidden_fields']['old_username'] = '<input type="hidden" name="old_username" value="'.forum_htmlencode($user['username']).'" />';1713:             $forum_page['hidden_fields']['old_username'] = '<input type="hidden" name="old_username" value="'.forum_htmlencode($user['username']).'" />';
1708: 1714: 
1709:         // Does the form have required fields1715:         // Does the form have required fields
1710:         $forum_page['has_required'] = ((($forum_user['is_admmod'] && ($forum_user['g_id'] == FORUM_ADMIN || $forum_user['g_mod_rename_users'] == '1')) || ($forum_user['is_admmod'] || $forum_config['o_regs_verify'] != '1')) ? true : false);1716:         $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);
1711:  
1712:         // Setup headings 
1713:         $forum_page['main_head'] = sprintf($lang_profile['Subform heading'], forum_htmlencode(end($forum_page['crumbs'][0])), $lang_profile['Section identity']); 
1714: 1717: 
1715:         ($hook = get_hook('pf_change_details_identity_pre_header_load')) ? eval($hook) : null;1718:         ($hook = get_hook('pf_change_details_identity_pre_header_load')) ? eval($hook) : null;
1716: 1719: 
1770:                     </div>1773:                     </div>
1771:                 </div>1774:                 </div>
1772: <?php endif; ($hook = get_hook('pf_change_details_identity_pre_email')) ? eval($hook) : null; ?>1775: <?php endif; ($hook = get_hook('pf_change_details_identity_pre_email')) ? eval($hook) : null; ?>
1773: <?php if ($forum_user['is_admmod'] || $forum_config['o_regs_verify'] != '1'): ?>1776: <?php if ($forum_user['is_admmod']): ?>
1774:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">1777:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
1775:                     <div class="sf-box text required">1778:                     <div class="sf-box text required">
1776:                         <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 />1779:                         <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 />
1831:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">1834:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
1832:                     <div class="sf-box text">1835:                     <div class="sf-box text">
1833:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Website'] ?></span></label><br />1836:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Website'] ?></span></label><br />
1834:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[url]" value="<?php echo(isset($form['url']) ? forum_htmlencode($form['url']) : forum_htmlencode($user['url'])) ?>" size="50" maxlength="80" /></span>1837:                         <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[url]" value="<?php echo(isset($form['url']) ? forum_htmlencode($form['url']) : forum_htmlencode($user['url'])) ?>" size="35" maxlength="80" /></span>
1835:                     </div>1838:                     </div>
1836:                 </div>1839:                 </div>
1837: <?php ($hook = get_hook('pf_change_details_identity_pre_jabber')) ? eval($hook) : null; ?>1840: <?php ($hook = get_hook('pf_change_details_identity_pre_jabber')) ? eval($hook) : null; ?>
1838:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">1841:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
1839:                     <div class="sf-box text">1842:                     <div class="sf-box text">
1840:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Jabber'] ?></span></label><br />1843:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Jabber'] ?></span></label><br />
1841:                         <span class="fld-input"><input id="fld<?php echo $forum_page['fld_count'] ?>" type="text" name="form[jabber]" value="<?php echo(isset($form['jabber']) ? forum_htmlencode($form['jabber']) : forum_htmlencode($user['jabber'])) ?>" size="40" maxlength="80" /></span>1844:                         <span class="fld-input"><input id="fld<?php echo $forum_page['fld_count'] ?>" type="text" name="form[jabber]" value="<?php echo(isset($form['jabber']) ? forum_htmlencode($form['jabber']) : forum_htmlencode($user['jabber'])) ?>" size="35" maxlength="80" /></span>
1842:                     </div>1845:                     </div>
1843:                 </div>1846:                 </div>
1844: <?php ($hook = get_hook('pf_change_details_identity_pre_icq')) ? eval($hook) : null; ?>1847: <?php ($hook = get_hook('pf_change_details_identity_pre_icq')) ? eval($hook) : null; ?>
1852:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">1855:                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
1853:                     <div class="sf-box text">1856:                     <div class="sf-box text">
1854:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['MSN'] ?></span></label><br />1857:                         <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['MSN'] ?></span></label><br />
1855:                         <span class="fld-input"><input id="fld<?php echo $forum_page['fld_count'] ?>" type="text" name="form[msn]" value="<?php echo(isset($form['msn']) ? forum_htmlencode($form['msn']) : forum_htmlencode($user['msn'])) ?>" size="40" maxlength="80" /></span>1858:                         <span class="fld-input"><input id="fld<?php echo $forum_page['fld_count'] ?>" type="text" name="form[msn]" value="<?php echo(isset($form['msn']) ? forum_htmlencode($form['msn']) : forum_htmlencode($user['msn'])) ?>" size="35" maxlength="80" /></span>
1856:                     </div>1859:                     </div>
1857:                 </div>1860:                 </div>
1858: <?php ($hook = get_hook('pf_change_details_identity_pre_aim')) ? eval($hook) : null; ?>1861: <?php ($hook = get_hook('pf_change_details_identity_pre_aim')) ? eval($hook) : null; ?>
1925:             'csrf_token'    => '<input type="hidden" name="csrf_token" value="'.generate_form_token($forum_page['form_action']).'" />'1928:             'csrf_token'    => '<input type="hidden" name="csrf_token" value="'.generate_form_token($forum_page['form_action']).'" />'
1926:         );1929:         );
1927: 1930: 
1928:         // Setup headings 
1929:         $forum_page['main_head'] = sprintf($lang_profile['Subform heading'], forum_htmlencode(end($forum_page['crumbs'][0])), $lang_profile['Section settings']); 
1930:  
1931:         ($hook = get_hook('pf_change_details_settings_pre_header_load')) ? eval($hook) : null;1931:         ($hook = get_hook('pf_change_details_settings_pre_header_load')) ? eval($hook) : null;
1932: 1932: 
1933:         define('FORUM_PAGE', 'profile-settings');1933:         define('FORUM_PAGE', 'profile-settings');
2262:         $forum_page['crumbs'] = array(2262:         $forum_page['crumbs'] = array(
2263:             array($forum_config['o_board_title'], forum_link($forum_url['index'])),2263:             array($forum_config['o_board_title'], forum_link($forum_url['index'])),
2264:             array(sprintf($lang_profile['Users profile'], $user['username']), forum_link($forum_url['user'], $id)),2264:             array(sprintf($lang_profile['Users profile'], $user['username']), forum_link($forum_url['user'], $id)),
2265:             array($lang_profile['Section signature'],forum_link($forum_url['profile_signature'], $id))2265:             array($lang_profile['Section signature'], forum_link($forum_url['profile_signature'], $id))
2266:         );2266:         );
2267: 2267: 
2268:         // Setup the form2268:         // Setup the form
2283:         if ($forum_config['o_smilies_sig'] == '1')2283:         if ($forum_config['o_smilies_sig'] == '1')
2284:             $forum_page['text_options']['smilies'] = '<span'.(empty($forum_page['text_options']) ? ' class="first-item"' : '').'><a class="exthelp" href="'.forum_link($forum_url['help'], 'smilies').'" title="'.sprintf($lang_common['Help page'], $lang_common['Smilies']).'">'.$lang_common['Smilies'].'</a></span>';2284:             $forum_page['text_options']['smilies'] = '<span'.(empty($forum_page['text_options']) ? ' class="first-item"' : '').'><a class="exthelp" href="'.forum_link($forum_url['help'], 'smilies').'" title="'.sprintf($lang_common['Help page'], $lang_common['Smilies']).'">'.$lang_common['Smilies'].'</a></span>';
2285: 2285: 
2286:         // Setup headings 
2287:         $forum_page['main_head'] = sprintf($lang_profile['Subform heading'], forum_htmlencode(end($forum_page['crumbs'][0])), $lang_profile['Section signature']); 
2288:  
2289:         ($hook = get_hook('pf_change_details_signature_pre_header_load')) ? eval($hook) : null;2286:         ($hook = get_hook('pf_change_details_signature_pre_header_load')) ? eval($hook) : null;
2290: 2287: 
2291:         define('FORUM_PAGE', 'profile-signature');2288:         define('FORUM_PAGE', 'profile-signature');
2407:             $forum_page['frm_info']['avatar_size'] = '<li><span>'.sprintf($lang_profile['Avatar info size'], $forum_config['o_avatars_width'], $forum_config['o_avatars_height'], forum_number_format($forum_config['o_avatars_size']), forum_number_format(ceil($forum_config['o_avatars_size'] / 1024))).'</span></li>';2404:             $forum_page['frm_info']['avatar_size'] = '<li><span>'.sprintf($lang_profile['Avatar info size'], $forum_config['o_avatars_width'], $forum_config['o_avatars_height'], forum_number_format($forum_config['o_avatars_size']), forum_number_format(ceil($forum_config['o_avatars_size'] / 1024))).'</span></li>';
2408:         }2405:         }
2409: 2406: 
2410:         // Setup headings 
2411:         $forum_page['main_head'] = sprintf($lang_profile['Subform heading'], forum_htmlencode(end($forum_page['crumbs'][0])), $lang_profile['Section avatar']); 
2412:  
2413:         ($hook = get_hook('pf_change_details_avatar_pre_header_load')) ? eval($hook) : null;2407:         ($hook = get_hook('pf_change_details_avatar_pre_header_load')) ? eval($hook) : null;
2414: 2408: 
2415:         define('FORUM_PAGE', 'profile-avatar');2409:         define('FORUM_PAGE', 'profile-avatar');
2532:             $forum_page['user_management']['delete'] = '<div class="ct-set set'.++$forum_page['item_count'].'">'."\n\t\t\t\t".'<div class="ct-box">'."\n\t\t\t\t\t".'<h3 class="ct-legend hn">'.$lang_profile['Delete user'].'</h3>'."\n\t\t\t\t".'<p><a href="'.forum_link($forum_url['delete_user'], $id).'">'.$lang_profile['Delete user info'].'</a></p>'."\n\t\t\t\t".'</div>'."\n\t\t\t".'</div>';2526:             $forum_page['user_management']['delete'] = '<div class="ct-set set'.++$forum_page['item_count'].'">'."\n\t\t\t\t".'<div class="ct-box">'."\n\t\t\t\t\t".'<h3 class="ct-legend hn">'.$lang_profile['Delete user'].'</h3>'."\n\t\t\t\t".'<p><a href="'.forum_link($forum_url['delete_user'], $id).'">'.$lang_profile['Delete user info'].'</a></p>'."\n\t\t\t\t".'</div>'."\n\t\t\t".'</div>';
2533:         }2527:         }
2534: 2528: 
2535:         // Setup headings 
2536:         $forum_page['main_head'] = sprintf($lang_profile['Subform heading'], forum_htmlencode(end($forum_page['crumbs'][0])), $lang_profile['Section admin']); 
2537:  
2538:         ($hook = get_hook('pf_change_details_admin_pre_header_load')) ? eval($hook) : null;2529:         ($hook = get_hook('pf_change_details_admin_pre_header_load')) ? eval($hook) : null;
2539: 2530: 
2540:         define('FORUM_PAGE', 'profile-admin');2531:         define('FORUM_PAGE', 'profile-admin');
2564: 2555: 
2565:             echo "\t\t\t".implode("\n\t\t\t", $forum_page['user_management'])."\n";2556:             echo "\t\t\t".implode("\n\t\t\t", $forum_page['user_management'])."\n";
2566: 2557: 
2567:             ($hook = get_hook('pf_change_details_admin_pre_group_membership')) ? eval($hook) : null;2558:             ($hook = get_hook('pf_change_details_admin_pre_membership')) ? eval($hook) : null;
2568: 2559: 
2569:             if ($forum_user['g_moderator'] != '1' && !$forum_page['own_profile'])2560:             if ($forum_user['g_moderator'] != '1' && !$forum_page['own_profile'])
2570:             {2561:             {


punbb-1.3/register.php punbb-1.3.5/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; ?>
163:         if ($banned_email && $forum_config['p_allow_banned_email'] == '0')163:         if ($banned_email && $forum_config['p_allow_banned_email'] == '0')
164:             $errors[] = $lang_profile['Banned e-mail'];164:             $errors[] = $lang_profile['Banned e-mail'];
165: 165: 
 166:         // Clean old unverified registrators - delete older than 72 hours
 167:         $query = array(
 168:             'DELETE'    => 'users',
 169:             'WHERE'        => 'group_id='.FORUM_UNVERIFIED.' AND activate_key IS NOT NULL AND registered < '.(time() - 259200)
 170:         );
 171:         ($hook = get_hook('rg_register_qr_delete_unverified')) ? eval($hook) : null;
 172:         $forum_db->query_build($query) or error(__FILE__, __LINE__);
 173: 
166:         // Check if someone else already has registered with that e-mail address174:         // Check if someone else already has registered with that e-mail address
167:         $dupe_list = array();175:         $dupe_list = array();
168: 176: 
264: 272: 
265: // Setup form273: // Setup form
266: $forum_page['group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0;274: $forum_page['group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0;
267: $forum_page['form_action'] = $base_url.'/register.php?action=register';275: $forum_page['form_action'] = forum_link($forum_url['register']).'?action=register';
268: 276: 
269: // Setup form information277: // Setup form information
270: $forum_page['frm_info']['intro'] = '<p>'.$lang_profile['Register intro'].'</p>';278: $forum_page['frm_info']['intro'] = '<p>'.$lang_profile['Register intro'].'</p>';


punbb-1.3/rewrite.php punbb-1.3.5/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/search.php punbb-1.3.5/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: 
316:                 $forum_page['item_status']['posted'] = 'posted';315:                 $forum_page['item_status']['posted'] = 'posted';
317:             }316:             }
318: 317: 
319:             $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>';318:             if ($cur_set['sticky'] == '1')
320: 319:             {
321:             $forum_page['item_pages'] = ceil(($cur_set['num_replies'] + 1) / $forum_user['disp_posts']);320:                 $forum_page['item_title_status']['sticky'] = '<em class="sticky">'.$lang_forum['Sticky'].'</em>';
322: 321:                 $forum_page['item_status']['sticky'] = 'sticky';
323:             if ($forum_page['item_pages'] > 1)322:             }
324:                 $forum_page['item_nav']['pages'] = '<span>'.$lang_forum['Pages'].'&#160;</span>'.paginate($forum_page['item_pages'], -1, $forum_url['topic'], $lang_common['Page separator'], array($cur_set['tid'], sef_friendly($cur_set['subject']))); 
325: 323: 
326:             // Does this topic contain posts we haven't read? If so, tag it accordingly.324:             if ($cur_set['closed'] != '0')
327:             if (!$forum_user['is_guest'] && $cur_set['last_post'] > $forum_user['last_visit'] && (!isset($tracked_topics['topics'][$cur_set['tid']]) || $tracked_topics['topics'][$cur_set['tid']] < $cur_set['last_post']) && (!isset($tracked_topics['forums'][$cur_set['forum_id']]) || $tracked_topics['forums'][$cur_set['forum_id']] < $cur_set['last_post'])) 
328:             {325:             {
329:                 $forum_page['item_nav']['new'] = '<em class="item-newposts"><a href="'.forum_link($forum_url['topic_new_posts'], array($cur_set['tid'], sef_friendly($cur_set['subject']))).'" title="'.$lang_forum['New posts info'].'">'.$lang_forum['New posts'].'</a></em>';326:                 $forum_page['item_title_status']['closed'] = '<em class="closed">'.$lang_forum['Closed'].'</em>';
330:                 $forum_page['item_status']['new'] = 'new';327:                 $forum_page['item_status']['closed'] = 'closed';
331:             }328:             }
332: 329: 
333:             ($hook = get_hook('se_results_topics_row_pre_item_nav_merge')) ? eval($hook) : null;330:             ($hook = get_hook('se_results_topics_row_pre_item_subject_status_merge')) ? eval($hook) : null;
334: 331: 
335:             if (!empty($forum_page['item_nav']))332:             if (!empty($forum_page['item_title_status']))
336:                 $forum_page['item_title']['nav'] = '<span class="item-nav">'.sprintf($lang_forum['Topic navigation'], implode('&#160;&#160;', $forum_page['item_nav'])).'</span>';333:                 $forum_page['item_title']['status'] = '<span class="item-status">'.sprintf($lang_forum['Item status'], implode(', ', $forum_page['item_title_status'])).'</span>';
 334: 
 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: 
338:             ($hook = get_hook('se_results_topics_row_pre_item_title_merge')) ? eval($hook) : null;337:             ($hook = get_hook('se_results_topics_row_pre_item_title_merge')) ? eval($hook) : null;
339: 338: 
340:             $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>';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>';
341: 340: 
 341:             $forum_page['item_pages'] = ceil(($cur_set['num_replies'] + 1) / $forum_user['disp_posts']);
342: 342: 
343:             if ($cur_set['sticky'] == '1')343:             if ($forum_page['item_pages'] > 1)
344:             {344:                 $forum_page['item_nav']['pages'] = '<span>'.$lang_forum['Pages'].'&#160;</span>'.paginate($forum_page['item_pages'], -1, $forum_url['topic'], $lang_common['Page separator'], array($cur_set['tid'], sef_friendly($cur_set['subject'])));
345:                 $forum_page['item_subject_status']['sticky'] = $lang_forum['Sticky']; 
346:                 $forum_page['item_status']['sticky'] = 'sticky'; 
347:             } 
348: 345: 
349:             if ($cur_set['closed'] != '0')346:             // Does this topic contain posts we haven't read? If so, tag it accordingly.
 347:             if (!$forum_user['is_guest'] && $cur_set['last_post'] > $forum_user['last_visit'] && (!isset($tracked_topics['topics'][$cur_set['tid']]) || $tracked_topics['topics'][$cur_set['tid']] < $cur_set['last_post']) && (!isset($tracked_topics['forums'][$cur_set['forum_id']]) || $tracked_topics['forums'][$cur_set['forum_id']] < $cur_set['last_post']))
350:             {348:             {
351:                 $forum_page['item_subject_status']['closed'] = $lang_forum['Closed'];349:                 $forum_page['item_nav']['new'] = '<em class="item-newposts"><a href="'.forum_link($forum_url['topic_new_posts'], array($cur_set['tid'], sef_friendly($cur_set['subject']))).'" title="'.$lang_forum['New posts info'].'">'.$lang_forum['New posts'].'</a></em>';
352:                 $forum_page['item_status']['closed'] = 'closed';350:                 $forum_page['item_status']['new'] = 'new';
353:             }351:             }
354: 352: 
355:             ($hook = get_hook('se_results_topics_row_pre_item_subject_status_merge')) ? eval($hook) : null;353:             ($hook = get_hook('se_results_topics_row_pre_item_nav_merge')) ? eval($hook) : null;
356: 354: 
357:             if (!empty($forum_page['item_subject_status']))355:             $forum_page['item_subject']['starter'] = '<span class="item-starter">'.sprintf($lang_forum['Topic starter'], forum_htmlencode($cur_set['poster'])).'</span>';
358:                 $forum_page['item_subject']['status'] = '<span class="item-status">'.sprintf($lang_forum['Item status'], implode(' ', $forum_page['item_subject_status'])).'</span>'; 
359: 356: 
360:             $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>';
361: 359: 
362:             ($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;
363: 361: 
364:             $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>';
365: 363: 
366:             if (empty($forum_page['item_status']))364:             if (empty($forum_page['item_status']))
367:                 $forum_page['item_status']['normal'] = 'normal';365:                 $forum_page['item_status']['normal'] = 'normal';
370: 368: 
371:             $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']) : '');
372: 370: 
373:             $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>';
374:             $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>';
375:             $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>';
376: 374: 
394: ?>392: ?>
395:     </div>393:     </div>
396: 394: 
397:             <div class="main-foot">395:     <div class="main-foot">
398: <?php396: <?php
399: 397: 
400:     if (!empty($forum_page['main_foot_options']))398:     if (!empty($forum_page['main_foot_options']))
401:         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>';
402: 400: 
403: ?>401: ?>
404:         <p><?php echo $forum_page['items_info'] ?></p>402:         <h2 class="hn"><span><?php echo $forum_page['items_info'] ?></span></h2>
405:     </div>403:     </div>
406: <?php404: <?php
407: 405: 
495:                         <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>
496:                     </div>494:                     </div>
497:                 </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>
498: <?php ($hook = get_hook('se_pre_forum_fieldset')) ? eval($hook) : null; ?>507: <?php ($hook = get_hook('se_pre_forum_fieldset')) ? eval($hook) : null; ?>
499:                 <fieldset class="mf-set set<?php echo ++$forum_page['item_count'] ?>">508:                 <fieldset class="mf-set set<?php echo ++$forum_page['item_count'] ?>">
500:                     <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>
524: ($hook = get_hook('se_qr_get_cats_and_forums')) ? eval($hook) : null;533: ($hook = get_hook('se_qr_get_cats_and_forums')) ? eval($hook) : null;
525: $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);534: $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
526: 535: 
527: $cur_category = 0;536: if ($forum_db->num_rows($result) > 0)
528: while ($cur_forum = $forum_db->fetch_assoc($result)) 
529: {537: {
530:     ($hook = get_hook('se_forum_loop_start')) ? eval($hook) : null;538:     $cur_category = 0;
531: 539:     while ($cur_forum = $forum_db->fetch_assoc($result))
532:     if ($cur_forum['cid'] != $cur_category)    // A new category since last iteration? 
533:     {540:     {
534:         if ($cur_category)541:         ($hook = get_hook('se_forum_loop_start')) ? eval($hook) : null;
535:             echo "\t\t\t\t\t\t\t".'</fieldset>'."\n";542: 
 543:         if ($cur_forum['cid'] != $cur_category)    // A new category since last iteration?
 544:         {
 545:             if ($cur_category)
 546:                 echo "\t\t\t\t\t\t\t".'</fieldset>'."\n";
 547: 
 548:             echo "\t\t\t\t\t\t\t".'<fieldset>'."\n\t\t\t\t\t\t\t\t".'<legend><span>'.forum_htmlencode($cur_forum['cat_name']).':</span></legend>'."\n";
 549:             $cur_category = $cur_forum['cid'];
 550:         }
536: 551: 
537:         echo "\t\t\t\t\t\t\t".'<fieldset>'."\n\t\t\t\t\t\t\t\t".'<legend><span>'.forum_htmlencode($cur_forum['cat_name']).':</span></legend>'."\n";552:         echo "\t\t\t\t\t\t\t\t".'<div class="checklist-item"><span class="fld-input"><input type="checkbox" id="fld'.(++$forum_page['fld_count']).'"  name="forum[]" value="'.$cur_forum['fid'].'" /></span> <label for="fld'.$forum_page['fld_count'].'">'.forum_htmlencode($cur_forum['forum_name']).'</label></div>'."\n";
538:         $cur_category = $cur_forum['cid']; 
539:     }553:     }
540: 554: 
541:     echo "\t\t\t\t\t\t\t\t".'<div class="checklist-item"><span class="fld-input"><input type="checkbox" id="fld'.(++$forum_page['fld_count']).'"  name="forum[]" value="'.$cur_forum['fid'].'" /></span> <label for="fld'.$forum_page['fld_count'].'">'.forum_htmlencode($cur_forum['forum_name']).'</label></div>'."\n";555:     echo "\t\t\t\t\t\t\t".'</fieldset>'."\n";
542: }556: }
543: 557: 
544: ?>558: ?>
545:                             </fieldset> 
546:                         </div>559:                         </div>
547:                     </div>560:                     </div>
548: <?php ($hook = get_hook('se_pre_forum_fieldset_end')) ? eval($hook) : null; ?>561: <?php ($hook = get_hook('se_pre_forum_fieldset_end')) ? eval($hook) : null; ?>


punbb-1.3/style/Oxygen/Oxygen.css punbb-1.3.5/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: -------------------------------------------------------------*/
605:     border-bottom: none;597:     border-bottom: none;
606:     }598:     }
607: 599: 
 600: #brd-admin-bans #brd-pagepost-end {
 601:     margin-top: -1em;
 602:     }
608: .brd .paging {603: .brd .paging {
609:     float: left;604:     float: left;
610:     }605:     }
646:     font-weight: normal;641:     font-weight: normal;
647:     }642:     }
648: 643: 
649: .brd .crumbs span, .brd crumbs span * {644: .brd .crumbs span, .brd .crumbs span * {
650:     white-space: nowrap;645:     white-space: nowrap;
651:     }646:     }
652: 647: 
653: .brd .crumbs {648: .brd .crumbs {
654:     margin: 0.5em 0em;649:     margin: 0.5em 0em;
655:     padding: 0em 1.5em;650:     padding: 0em 1.417em;
656:     font-size: 1.084em;651:     font-size: 1.084em;
657:     }652:     }
658: 653: 
669:     }664:     }
670: 665: 
671: #brd-stats ul li.st-users {666: #brd-stats ul li.st-users {
672:      float: left;667:     float: left;
673:      clear: both;668:     clear: both;
674:      white-space: nowrap;669:     white-space: nowrap;
675:      }670:     }
676: 671: 
677:  #brd-stats ul li.st-activity {672:  #brd-stats ul li.st-activity {
678:      text-align: right;673:     text-align: right;
679:      display: block;674:     display: block;
680:      white-space: nowrap;675:     white-space: nowrap;
681:      }676:     }
682: 677: 
683:  #brd-stats li strong {678:  #brd-stats li strong {
684:      font-weight: bold;679:     font-weight: bold;
685:      }680:     }
686: 681: 
687: #brd-online {682: #brd-online {
688:     padding-top: 0.5em;683:     padding-top: 0.5em;
695:     }690:     }
696: 691: 
697:  #brd-online .hn {692:  #brd-online .hn {
698:      float: left;693:     float: left;
699:      margin-right: 0.5em;694:     margin-right: 0.5em;
700:      }695:     }
701: 696: 
702: /* Footer697: /* Footer
703: -------------------------------------------------------------*/698: -------------------------------------------------------------*/
704: 699: 
705: #brd-about p { 
706:     float: left; 
707:     margin: 0 1em; 
708:     } 
709:  
710: #brd-about #qjump {700: #brd-about #qjump {
711:     float: left;701:     float: left;
712:     padding: 0.5em 0;702:     padding: 0.5em 0;
719: 709: 
720: #brd-about #copyright {710: #brd-about #copyright {
721:     text-align: right;711:     text-align: right;
722:     float: right; 
723:     margin: 0;712:     margin: 0;
724:     }713:     }
725: 714: 
726: #brd-about #querytime {715: #querytime {
727:     text-align: center;716:     text-align: center;
728:     font-size: 0.9em;717:     font-size: 0.9em;
729:     }718:     }
730: 719: 
 720: #extensions-used {
 721:     border-bottom: 1px dotted;
 722:     }
 723: 
731: /* Main and Content Options724: /* Main and Content Options
732: -------------------------------------------------------------*/725: -------------------------------------------------------------*/
733: 726: 
734: .brd p.options {727: .brd p.options {
735:     border-top: none;728:     border-top: none;
736:     float:right;729:     float: right;
737:     }730:     }
738: 731: 
739: .brd .main-modoptions .options {732: .brd .main-modoptions .options {
786:     padding: 0.5em 0;779:     padding: 0.5em 0;
787:     white-space: nowrap;780:     white-space: nowrap;
788:     font-weight: normal;781:     font-weight: normal;
789:     text-transform: capitalize;782:     }
 783: 
 784: .brd .item-summary strong:first-letter {
 785:     text-transform: uppercase;
790:     }786:     }
791: 787: 
792: .brd .item-summary .subject-title {788: .brd .item-summary .subject-title {
848: 844: 
849: .brd .main-content .main-item p,845: .brd .main-content .main-item p,
850: .brd .main-content .main-item .hn {846: .brd .main-content .main-item .hn {
851:      padding: 0;847:     padding: 0;
852:      }848:     }
853: 849: 
854: .brd .main-content .main-item .hn .item-status {850: .brd .main-content .main-item .hn .item-status {
855:      font-weight:normal;851:     font-weight: normal;
856:      }852:     }
857: 853: 
858: .brd .main-content .main-item .hn .item-status em {854: .brd .main-content .main-item .hn .item-status em {
859:      font-style:normal;855:     font-style: normal;
860:      }856:     }
861: 857: 
862: .brd .main-content .main-item .item-subject,858: .brd .main-content .main-item .item-subject,
863: .brd .main-content .main-item li {859: .brd .main-content .main-item li {
864:      float: left;860:     float: left;
865:      border-left-style: solid;861:     border-left-style: solid;
866:      border-left-width: 1px;862:     border-left-width: 1px;
867:      margin: 0 -2px -9.7em 0;863:     margin: 0 -2px -9.7em 0;
868:      position: relative;864:     position: relative;
869:      padding-top: 0.6em;865:     padding-top: 0.6em;
870:      padding-bottom: 10.4em;866:     padding-bottom: 10.4em;
871:      }867:     }
872: 868: 
873: .brd .main-content .main-item .item-subject {869: .brd .main-content .main-item .item-subject {
874:      overflow: hidden;870:     overflow: hidden;
875:      width: 100%;871:     width: 100%;
876:       }872:     }
877: 873: 
878: .brd .main-content .main-item li.info-topics,874: .brd .main-content .main-item li.info-topics,
879: .brd .main-content .main-item li.info-forum,875: .brd .main-content .main-item li.info-forum,
880: .brd .main-content .main-item li.info-posts,876: .brd .main-content .main-item li.info-posts,
881: .brd .main-content .main-item li.info-views,877: .brd .main-content .main-item li.info-views,
882: .brd .main-content .main-item li.info-replies {878: .brd .main-content .main-item li.info-replies {
883:      width: 7em;879:     width: 7em;
884:      text-align:center;880:     text-align: center;
885:      }881:     }
886: 882: 
887: .brd .main-content .main-item li.info-forum {883: .brd .main-content .main-item li.info-forum {
888:      width: 20em;884:     width: 20em;
889:      }885:     }
890: 886: 
891: .brd .main-content .main-item li.info-lastpost {887: .brd .main-content .main-item li.info-lastpost {
892:       width: 20em;888:     width: 20em;
893:       }889:     }
894: 890: 
895: .brd .main-content .main-item li.info-lastpost cite {891: .brd .main-content .main-item li.info-lastpost cite {
896:     overflow: hidden;892:     overflow: hidden;
921:     }917:     }
922: 918: 
923: .brd .forum-noview .main-item {919: .brd .forum-noview .main-item {
924:     padding-right: 48em;920:     padding-right: 28em;
925:     }921:     }
926: 922: 
927: .brd .forum-noview .main-item ul {923: .brd .forum-noview .main-item ul {
 924:     width: 27em;
 925:     right: -28em;
 926:     margin-left: -27em;
 927:     }
 928: 
 929: .brd .forum-forums .main-item {
 930:     padding-right: 48em;
 931:     }
 932: 
 933: .brd .forum-forums .main-item ul {
928:     width: 47em;934:     width: 47em;
929:     right: -48em;935:     right: -48em;
930:     margin-left: -47em;936:     margin-left: -47em;
931:     }937:     }
932: 938: 
933: .brd .main-content .main-item .item-subject span.modlist {939: .brd .main-content .main-item .item-subject span.modlist {
934:      display: block;940:     display: block;
935:      }941:     }
936: 942: 
937: .brd .main-content .main-item .hn strong {943: .brd .main-content .main-item .hn strong {
938:       font-size: 1em;944:     font-size: 1em;
939:       }945:     }
940: 946: 
941: .brd .main-content .main-item .hn strong span {947: .brd .main-content .main-item .hn strong span {
942:     font-weight: normal;948:     font-weight: normal;
945:  #brd-index .main-content .main-item .hn span {951:  #brd-index .main-content .main-item .hn span {
946:     font-size: 1.084em;952:     font-size: 1.084em;
947:     font-weight: bold;953:     font-weight: bold;
948:      }954:     }
949: #brd-index .main-content .main-item .hn small {955: #brd-index .main-content .main-item .hn small {
950:     font-size: 1em;956:     font-size: 1em;
951:     }957:     }
964:     font-style: normal;970:     font-style: normal;
965:     }971:     }
966: 972: 
967: .brd .main-content .main-item .item-subject .hn {973: .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 {974: .brd .main-content .main-item .item-subject p {
973:     margin: 0 0 0 1.5em;975:     margin: 0 0 0 1.5em;
974:      }976:     }
975: 977: 
976: .brd .main-content .main-item li.info-lastpost cite,978: .brd .main-content .main-item li.info-lastpost cite,
977: .brd .main-content .main-item li.info-lastpost span {979: .brd .main-content .main-item li.info-lastpost span,
978:      display: block;980: .brd .main-content .main-item li.info-forum a {
979:      padding: 0 1em;981:     display: block;
980:      font-style: normal;982:     padding: 0 1em;
981:      font-weight: normal;983:     font-style: normal;
982:      }984:     font-weight: normal;
 985:     }
983: 986: 
984: .brd .main-content .main-item li.info-lastpost strong {987: .brd .main-content .main-item li.info-lastpost strong {
985:      padding: 0 0 0 1em;988:     padding: 0 0 0 1em;
986:      font-style: normal;989:     font-style: normal;
987:      font-weight: normal;990:     font-weight: normal;
988:      }991:     }
989: 992: 
990: .brd .main-content .main-item li.info-select {993: .brd .main-content .main-item li.info-select {
991:      position: absolute;994:     position: absolute;
992:      right: 0;995:     right: 0;
993:      top: 0;996:     top: 0;
994:      padding: 0.3em;997:     padding: 0.3em;
995:      border-style: none none solid solid;998:     border-style: none none solid solid;
996:      border-width: 1px;999:     border-width: 1px;
997:      }1000:     }
998: 1001: 
999: .brd .main-content .main-item .icon {1002: .brd .main-content .main-item .icon {
1000:      border-style: solid;1003:     border-style: solid;
1001:      border-width: 0.5833em;1004:     border-width: 0.5833em;
1002:      height: 0;1005:     height: 0;
1003:      width: 0;1006:     width: 0;
1004:      float: left;1007:     float: left;
1005:      margin-top: 0.667em;1008:     margin-top: 0.667em;
1006:      margin-left: -2.417em;1009:     margin-left: -2.417em;
1007:      }1010:     }
1008: 1011: 
1009: .brd .main-content .main-item .hn .posted-mark {1012: .brd .main-content .main-item .hn .posted-mark {
1010:      position: absolute;1013:     position: absolute;
1011:      font-size: 2em;1014:     font-size: 2em;
1012:      width: 1em;1015:     width: 1em;
1013:      left: -0.5em;1016:     left: -0.5em;
1014:      top: 0;1017:     top: 0;
1015:      }1018:     }
1016: 1019: 
1017: /*************************************************************1020: /*************************************************************
1018: F - MAIN CONTENT - FORMS1021: F - MAIN CONTENT - FORMS
1157: 1160: 
1158: .brd .mf-box .mf-item {1161: .brd .mf-box .mf-item {
1159:     position: relative;1162:     position: relative;
1160:     top: -0.15em;1163:     top: -0.166em;
1161:     padding: 0.25em 0;1164:     padding: 0.25em 0;
1162:     }1165:     }
1163: 1166: 
1207:     }1210:     }
1208: 1211: 
1209: .brd .mf-set .mf-yesno .mf-item {1212: .brd .mf-set .mf-yesno .mf-item {
1210:     width: 10em;1213:     width: 11em;
1211:     float: left;1214:     float: left;
1212:     }1215:     }
1213: 1216: 
1278:     text-align:left;1281:     text-align:left;
1279:     }1282:     }
1280: 1283: 
 1284: .brd .checklist legend span {
 1285:     width: auto;
 1286:     max-width: 25em;
 1287:     }
 1288: 
 1289: 
1281: .brd .checklist .checklist-item {1290: .brd .checklist .checklist-item {
1282:     position: relative;1291:     position: relative;
1283:     height: auto;1292:     height: auto;
1288:     padding: 0 0 0 2.25em;1297:     padding: 0 0 0 2.25em;
1289:     float: none;1298:     float: none;
1290:     height: 100%;1299:     height: 100%;
1291:     background-color: #fff; 
1292:     }1300:     }
1293: 1301: 
1294: .brd .checklist .checklist-item .fld-input {1302: .brd .checklist .checklist-item .fld-input {
1329:     text-align: left;1337:     text-align: left;
1330:     position: relative;1338:     position: relative;
1331:     margin: 0 1em 0 -1px;1339:     margin: 0 1em 0 -1px;
1332:     padding: 2px 1em;1340:     padding: 2px 1.25em;
1333:     font-size: 0.917em;1341:     font-size: 0.917em;
1334:     z-index: 100;1342:     z-index: 100;
1335:     }1343:     }
1367:     width: 100%;1375:     width: 100%;
1368:     position: relative;1376:     position: relative;
1369:     }1377:     }
1370: 1378:     
1371: .brd .txt-set .required label span em {1379: .brd .txt-set .required label span em { 
1372:     margin-bottom: -1.2em;1380:     margin-bottom: -1.2em; 
1373:     }1381:     }
1374: 1382:      
1375: .brd .req-error {1383: .brd .req-error {
1376:     display: block;1384:     display: block;
1377:     }1385:     }
1416:     margin-left: 18em;1424:     margin-left: 18em;
1417:     border-style: none none none solid;1425:     border-style: none none none solid;
1418:     border-width: 1px;1426:     border-width: 1px;
1419:     zoom: 1; 
1420:     }1427:     }
1421: 1428: 
1422: .brd .posthead .hn {1429: .brd .posthead .hn {
1554:     border-left-width: 0.7em;1561:     border-left-width: 0.7em;
1555:     text-indent: 0.5em;1562:     text-indent: 0.5em;
1556:     }1563:     }
1557: 1564: .brd .postbody .author-info li span strong {
 1565:     font-weight: normal;
 1566: }
1558: .brd .online .author-ident .userstatus span {1567: .brd .online .author-ident .userstatus span {
1559:     font-weight: bold;1568:     font-weight: bold;
1560:     }1569:     }
1626:     padding: 1em 0.75em;1635:     padding: 1em 0.75em;
1627:     }1636:     }
1628: 1637: 
1629: .brd .entry-content .codebox code {1638: .brd .entry-content .codebox code, #brd-debug table .tcl, #brd-debug table .tcr {
1630:     font-family: monospace;1639:     font-family: monospace;
1631:     }1640:     }
1632: 1641: 
1709:     text-align: center;1718:     text-align: center;
1710:     }1719:     }
1711: 1720: 
1712: #brd-debug  table .tc0 {1721: #brd-debug  table .tc1 {
1713:     white-space:normal;1722:     white-space: normal;
1714:     width: 15%;1723:     width: 10%;
1715:     }1724:     }
1716: 1725: 
1717: #brd-debug table .tc1 {1726: #brd-debug table .tcr {
1718:     white-space: normal;1727:     white-space: normal;
1719:     width: 90%;1728:     width: 90%;
1720:     }1729:     }


punbb-1.3/style/Oxygen/Oxygen.php punbb-1.3.5/style/Oxygen/Oxygen.php
  1: <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $base_url.'/style/'.$forum_user['style'] ?>/Oxygen.css" />  1: <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $base_url.'/style/'.$forum_user['style'] ?>/Oxygen.css" />
  2: <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $base_url.'/style/'.$forum_user['style'] ?>/Oxygen_cs.css" />  2: <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $base_url.'/style/'.$forum_user['style'] ?>/Oxygen_cs.css" />
  3: <!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="<?php echo $base_url.'/style/'.$forum_user['style'] ?>/Oxygen_ie6.css" /><![endif]-->  3: <!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="<?php echo $base_url.'/style/'.$forum_user['style'] ?>/Oxygen_ie6.css" /><![endif]-->
  4: <!--[if IE 7]><link rel="stylesheet" type="text/css" href="<?php echo $base_url.'/style/'.$forum_user['style'] ?>/Oxygen_ie7.css" /><![endif]--> 
  5:   4: 
   5: <!--[if IE 7]><link rel="stylesheet" type="text/css" href="<?php echo $base_url.'/style/'.$forum_user['style'] ?>/Oxygen_ie7.css" /><![endif]-->
   6: <!--[if IE 8]><link rel="stylesheet" type="text/css" href="<?php echo $base_url.'/style/'.$forum_user['style'] ?>/Oxygen_ie8.css" /><![endif]-->
  6:   7: 


punbb-1.3/style/Oxygen/Oxygen_cs.css punbb-1.3.5/style/Oxygen/Oxygen_cs.css
 66:     background: #F2F4FA; 66:     background: #F2F4FA;
 67:     } 67:     }
 68:  68: 
 69: .brd .main-content .main-item .hn .item-status em.sticky { 69: .brd .main-content .main-item .hn .item-status em.sticky ,
 70:      color: #314B60; 70: .brd .main-content .main-item .hn .item-status em.closed{
 71:      font-weight: bold; 71:     color: #314B60;
 72:      } 72:     font-weight: bold;
 73:  73:     }
 74: .brd .main-content .main-item .hn .item-status em.closed { 74: 
 75:      color: #314B60; 75: .brd .main-content .main-item .hn .item-status em.moved {
 76:      font-weight: bold; 76:     color: #666;
 77:      } 77:     }
 78:  78: 
 79: .brd .post * { 79: .brd .post * {
 80:     border-color: #DDE4EB 80:     border-color: #DDE4EB
182:     background: #f4f4f4;182:     background: #f4f4f4;
183:     }183:     }
184: 184: 
 185: .brd .help-box .hn {
 186:     color: #294F6E
 187:     }
 188: 
185: .brd .frm-buttons, .brd .extension .options, .brd .hotfix .options {189: .brd .frm-buttons, .brd .extension .options, .brd .hotfix .options {
186:     border-color: #DBE0E4;190:     border-color: #DBE0E4;
187:     }191:     }
326:     background: #F4F4F4;330:     background: #F4F4F4;
327:     }331:     }
328: 332: 
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 {333: .brd .group-head {
340:     background: #EDF1F5;334:     background: #EDF1F5;
341:     border-color: #DBE0E4;335:     border-color: #DBE0E4;
360:     background: #F4F4F4;354:     background: #F4F4F4;
361:     }355:     }
362: 356: 
363: .brd .main-frm .ct-group td{357: .brd .main-frm .ct-group td {
364:     background: #FBFBFB;358:     background: #FBFBFB;
365:     }359:     }
366: 360: 
 361: #extensions-used {
 362:     border-bottom-color: #999;
 363:     }
 364: 
367: 365: 
368: /* Status indicators366: /* Status indicators
369: ----------------------------------------------------------------*/367: ----------------------------------------------------------------*/
370: 368: 
371: .brd .main-content .main-item .icon {369: .brd .main-content .main-item .icon {
372:     border-color: #EDF1F5 #DDE0E4 #C6CBD3 #BABFC6370:     border-color: #EDF1F5 #DDE0E4 #C6CBD3 #BABFC6;
373:     }371:     }
374: 372: 
375: .brd .main-content .redirect .icon {373: .brd .main-content .redirect .icon {
376:     border-color: #f4f4f4 #f4f4f4 #f4f4f4 #f4f4f4374:     border-color: #f4f4f4 #f4f4f4 #f4f4f4 #f4f4f4;
377:     }375:     }
378: 376: 
379: .brd .main-content .sticky .icon {377: .brd .main-content .sticky .icon {
380:     border-color: #D7E5F3 #C3CFDC #9FB3C7 #90A2B4378:     border-color: #D7E5F3 #C3CFDC #9FB3C7 #90A2B4;
381:     }379:     }
382: 380: 
383: .brd .main-content .closed .icon {381: .brd .main-content .closed .icon {
384:     border-color: #ACACAC #979797 #898989 #7A7A7A382:     border-color: #ACACAC #979797 #898989 #7A7A7A;
385:     }383:     }
386: 384: 
387: .brd .main-content .sticky .closed {385: .brd .main-content .sticky.closed .icon {
388:     border-color: #D7E5F3 #C3CFDC #898989 #7A7A7A386:     border-color: #D7E5F3 #C3CFDC #898989 #7A7A7A;
389:     }387:     }
390: 388: 
391: .brd .main-content .new .icon {389: .brd .main-content .new .icon {
392:     border-color: #2B75AD #235E8C #1F537B #266799390:     border-color: #2B75AD #235E8C #1F537B #266799;
393:     }391:     }
394: 392: 
395: 393: 
396: /* Multi Checkbox Widget394: /* Multi Checkbox Widget
397: -------------------------------------------------------------*/395: -------------------------------------------------------------*/
398: 396: 
 397: .brd .checklist .checklist-item label {
 398:     background: #fff;
 399:     }
 400: 
399: .brd .checklist .checklist-item label:hover {401: .brd .checklist .checklist-item label:hover {
400:     background: #EDF1F5;402:     background: #EDF1F5;
401:     }403:     }


punbb-1.3/style/Oxygen/Oxygen_ie6.css punbb-1.3.5/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; }
 79: /* Fix for index.php: no backgroud for the first main-head. */ 85: /* Fix for index.php: no backgroud for the first main-head. */
 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: /* Footer
 83:      left: 0.2em; 89: -------------------------------------------------------------*/
 84:     } 90: 
  91: #brd-about p#extensions-used {
  92:     clear: left;
  93:     }
 85:  94: 


punbb-1.3/style/Oxygen/Oxygen_ie7.css punbb-1.3.5/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/style/Oxygen/Oxygen_ie8.css punbb-1.3.5/style/Oxygen/Oxygen_ie8.css
   1: /*************************************************************
   2: IE8 - FIXES
   3: **************************************************************/
   4: /* Forms
   5: -------------------------------------------------------------*/
   6: .brd .txt-set .required label span em {
   7:     margin-bottom: 0;
   8:     }


punbb-1.3/userlist.php punbb-1.3.5/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/viewforum.php punbb-1.3.5/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';
215:             $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>';216:             $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>';
216: 217: 
217:             // Combine everything to produce the Topic heading218:             // Combine everything to produce the Topic heading
218:             $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>'.$forum_page['item_title']['link'].'</h3>';219:             $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>'.$forum_page['item_title']['link'].'</h3>';
219: 220: 
220:             ($hook = get_hook('vf_topic_loop_moved_topic_pre_item_subject_merge')) ? eval($hook) : null;221:             ($hook = get_hook('vf_topic_loop_moved_topic_pre_item_subject_merge')) ? eval($hook) : null;
221: 222: 
 223:             $forum_page['item_body']['info']['replies'] = '<li class="info-replies"><span class="label">'.$lang_forum['No replies info'].'</span></li>';
 224: 
222:             if ($forum_config['o_topic_views'] == '1')225:             if ($forum_config['o_topic_views'] == '1')
223:                 $forum_page['item_body']['info']['views'] = '<li class="info-views"><span class="label">'.$lang_forum['No views info'].'</span></li>';226:                 $forum_page['item_body']['info']['views'] = '<li class="info-views"><span class="label">'.$lang_forum['No views info'].'</span></li>';
224: 227: 
225:             $forum_page['item_body']['info']['replies'] = '<li class="info-replies"><span class="label">'.$lang_forum['No replies info'].'</span></li>'; 
226:             $forum_page['item_body']['info']['lastpost'] = '<li class="info-lastpost"><span class="label">'.$lang_forum['No lastpost info'].'</span></li>';228:             $forum_page['item_body']['info']['lastpost'] = '<li class="info-lastpost"><span class="label">'.$lang_forum['No lastpost info'].'</span></li>';
227:         }229:         }
228:         else230:         else
259: 261: 
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>';262:             $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: 263: 
262:             // Assemble the Topic subject 
263:  
264:             if (empty($forum_page['item_status']))264:             if (empty($forum_page['item_status']))
265:                 $forum_page['item_status']['normal'] = 'normal';265:                 $forum_page['item_status']['normal'] = 'normal';
266: 266: 
281:             if (!empty($forum_page['item_nav']))281:             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>';282:                 $forum_page['item_subject']['nav'] = '<span class="item-nav">'.sprintf($lang_forum['Topic navigation'], implode('&#160;&#160;', $forum_page['item_nav'])).'</span>';
283: 283: 
284:             ($hook = get_hook('vf_topic_loop_normal_topic_pre_item_subject_merge')) ? eval($hook) : null;284:             // Assemble the Topic subject
285:  
286:             $forum_page['item_body']['subject']['desc'] = implode(' ', $forum_page['item_subject']); 
287: 285: 
288:             $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>';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>';
289: 287: 
293:             $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>';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>';
294:         }292:         }
295: 293: 
296:         $forum_page['item_subject']['starter'] = '<span class="item-starter">'.sprintf($lang_forum['Topic starter'], '<cite>'.forum_htmlencode($cur_topic['poster']).'</cite>').'</span>';294:         ($hook = get_hook('vf_row_pre_item_subject_merge')) ? eval($hook) : null;
297:         $forum_page['item_body']['subject']['desc'] = implode(' ', $forum_page['item_subject']);295: 
 296:         $forum_page['item_body']['subject']['desc'] = '<p>'.implode(' ', $forum_page['item_subject']).'</p>';
298: 297: 
299:         ($hook = get_hook('vf_row_pre_item_status_merge')) ? eval($hook) : null;298:         ($hook = get_hook('vf_row_pre_item_status_merge')) ? eval($hook) : null;
300: 299: 
318: 317: 
319: ?>318: ?>
320:     </div>319:     </div>
321:         <div class="main-foot">320:     <div class="main-foot">
322: <?php321: <?php
323: 322: 
324:     if (!empty($forum_page['main_foot_options']))323:     if (!empty($forum_page['main_foot_options']))
325:         echo "\n\t\t\t".'<p class="options">'.implode(' ', $forum_page['main_foot_options']).'</p>';324:         echo "\n\t\t\t".'<p class="options">'.implode(' ', $forum_page['main_foot_options']).'</p>';
326: 325: 
327: ?>326: ?>
328:         <p><?php echo $forum_page['items_info'] ?></p>327:         <h2 class="hn"><span><?php echo $forum_page['items_info'] ?></span></h2>
329:     </div>328:     </div>
330: <?php329: <?php
331: 330: 
351:         </div>350:         </div>
352:     </div>351:     </div>
353:     <div class="main-foot">352:     <div class="main-foot">
354:         <p><?php echo $lang_forum['Empty forum'] ?></p>353:         <h2 class="hn"><span><?php echo $lang_forum['Empty forum'] ?></span></h2>
355:     </div>354:     </div>
356: <?php355: <?php
357: 356: 


punbb-1.3/viewtopic.php punbb-1.3.5/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')
229: $forum_page['crumbs'] = array(231: $forum_page['crumbs'] = array(
230:     array($forum_config['o_board_title'], forum_link($forum_url['index'])),232:     array($forum_config['o_board_title'], forum_link($forum_url['index'])),
231:     array($cur_topic['forum_name'], forum_link($forum_url['forum'], array($cur_topic['forum_id'], sef_friendly($cur_topic['forum_name'])))),233:     array($cur_topic['forum_name'], forum_link($forum_url['forum'], array($cur_topic['forum_id'], sef_friendly($cur_topic['forum_name'])))),
232:     $cur_topic['subject']234:     array($cur_topic['subject'], forum_link($forum_url['topic'], array($id, sef_friendly($cur_topic['subject']))))
233: );235: );
234: 236: 
235: // Setup main heading237: // Setup main heading
257: <?php259: <?php
258: 260: 
259:     if (!empty($forum_page['main_head_options']))261:     if (!empty($forum_page['main_head_options']))
260:         echo "\n\t\t".'<p class="options">'.implode(' ', $forum_page['main_head_options']).'</p>';262:         echo "\t\t".'<p class="options">'.implode(' ', $forum_page['main_head_options']).'</p>'."\n";
261: 263: 
262: ?>264: ?>
263:         <h2 class="hn"><span><?php echo $forum_page['items_info'] ?></span></h2>265:         <h2 class="hn"><span><?php echo $forum_page['items_info'] ?></span></h2>
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_admmod'] && $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)