Changeset 566
- Timestamp:
- 08/31/08 12:15:42 (4 months ago)
- Location:
- fluxbb/branches/fluxbb-1.3-dev/upload
- Files:
-
- 2 added
- 21 modified
-
admin/db_update.php (modified) (9 diffs)
-
admin/index.php (modified) (1 diff)
-
admin/install.php (modified) (8 diffs)
-
admin/reindex.php (modified) (1 diff)
-
delete.php (modified) (4 diffs)
-
edit.php (modified) (2 diffs)
-
footer.php (modified) (2 diffs)
-
header.php (modified) (2 diffs)
-
include/dblayer/common_db.php (modified) (1 diff)
-
include/dblayer/mysql_innodb.php (added)
-
include/dblayer/mysqli_innodb.php (added)
-
index.php (modified) (1 diff)
-
lang/English/install.php (modified) (2 diffs)
-
login.php (modified) (3 diffs)
-
misc.php (modified) (2 diffs)
-
moderate.php (modified) (12 diffs)
-
post.php (modified) (7 diffs)
-
profile.php (modified) (11 diffs)
-
register.php (modified) (2 diffs)
-
search.php (modified) (8 diffs)
-
userlist.php (modified) (4 diffs)
-
viewforum.php (modified) (4 diffs)
-
viewtopic.php (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fluxbb/branches/fluxbb-1.3-dev/upload/admin/db_update.php
r544 r566 90 90 91 91 // If MySQL, make sure it's at least 4.1.2 92 if ($db_type == 'mysql' || $db_type == 'mysqli' )92 if ($db_type == 'mysql' || $db_type == 'mysqli' || $db_type == 'mysql_innodb' || $db_type == 'mysqli_innodb') 93 93 { 94 94 $result = $forum_db->query('SELECT VERSION()') or error(__FILE__, __LINE__); … … 474 474 case 'start': 475 475 // Put back dropped search tables 476 if (!$forum_db->table_exists('search_cache') && ($db_type == 'mysql' || $db_type == 'mysqli' ))476 if (!$forum_db->table_exists('search_cache') && ($db_type == 'mysql' || $db_type == 'mysqli' || $db_type == 'mysql_innodb' || $db_type == 'mysqli_innodb')) 477 477 { 478 478 $schema = array( … … 606 606 607 607 // Make sure the collation on "word" in the search_words table is utf8_bin 608 if ($db_type == 'mysql' || $db_type == 'mysqli' )608 if ($db_type == 'mysql' || $db_type == 'mysqli' || $db_type == 'mysql_innodb' || $db_type == 'mysqli_innodb') 609 609 { 610 610 $result = $forum_db->query('SHOW FULL COLUMNS FROM '.$forum_db->prefix.'search_words') or error(__FILE__, __LINE__); … … 672 672 $forum_db->add_field('extension_hooks', 'priority', 'TINYINT(1)', false, 5, 'installed'); 673 673 674 if ($db_type == 'mysql' || $db_type == 'mysqli' )674 if ($db_type == 'mysql' || $db_type == 'mysqli' || $db_type == 'mysql_innodb' || $db_type == 'mysqli_innodb') 675 675 { 676 676 // Make all e-mail fields VARCHAR(80) … … 696 696 case 'mysql': 697 697 case 'mysqli': 698 case 'mysql_innodb': 699 case 'mysqli_innodb': 698 700 $forum_db->query('ALTER TABLE '.$forum_db->prefix.'posts CHANGE poster_ip poster_ip VARCHAR(39)') or error(__FILE__, __LINE__); 699 701 $forum_db->query('ALTER TABLE '.$forum_db->prefix.'users CHANGE registration_ip registration_ip VARCHAR(39) NOT NULL DEFAULT \'0.0.0.0\'') or error(__FILE__, __LINE__); … … 867 869 case 'mysql': 868 870 case 'mysqli': 871 case 'mysql_innodb': 872 case 'mysqli_innodb': 869 873 $forum_db->add_index('online', 'user_id_ident_idx', array('user_id', 'ident(25)'), true); 870 874 break; … … 884 888 case 'mysql': 885 889 case 'mysqli': 890 case 'mysql_innodb': 891 case 'mysqli_innodb': 886 892 $forum_db->add_index('online', 'ident_idx', array('ident(25)')); 887 893 break; … … 953 959 $forum_db->query('DELETE FROM '.$forum_db->prefix.'extension_hooks WHERE extension_id = \''.$cur_ext['id'].'\'') or error(__FILE__, __LINE__); 954 960 $forum_db->query('DELETE FROM '.$forum_db->prefix.'extensions WHERE id = \''.$cur_ext['id'].'\'') or error(__FILE__, __LINE__); 961 } 962 963 // If the tables aren't already InnoDB, make it so 964 // This should only occur if config.php is manually changed to use InnoDB 965 if ($db_type == 'mysql_innodb' || $db_type == 'mysqli_innodb') 966 { 967 $result = $forum_db->query('SHOW TABLE STATUS FROM `'.$db_name.'` LIKE \''.$db_prefix.'%\''); 968 while ($row = $forum_db->fetch_assoc($result)) 969 if($row['Engine'] != 'InnoDB') 970 $forum_db->query('ALTER TABLE '.$row['Name'].' ENGINE = \'InnoDB\''); 955 971 } 956 972 … … 1236 1252 case 'conv_tables': 1237 1253 // Do the cumbersome charset conversion of MySQL tables/columns 1238 if ($db_type == 'mysql' || $db_type == 'mysqli' )1254 if ($db_type == 'mysql' || $db_type == 'mysqli' || $db_type == 'mysql_innodb' || $db_type == 'mysqli_innodb') 1239 1255 { 1240 1256 echo 'Converting table '.$forum_db->prefix.'bans âŠ<br />'."\n"; flush(); -
fluxbb/branches/fluxbb-1.3-dev/upload/admin/index.php
r563 r566 117 117 118 118 // Collect some additional info about MySQL 119 if ($db_type == 'mysql' || $db_type == 'mysqli' )119 if ($db_type == 'mysql' || $db_type == 'mysqli' || $db_type == 'mysql_innodb' || $db_type == 'mysqli_innodb') 120 120 { 121 121 $db_version = 'MySQL '.$db_version; -
fluxbb/branches/fluxbb-1.3-dev/upload/admin/install.php
r543 r566 82 82 $dual_mysql = false; 83 83 $db_extensions = array(); 84 $mysql_innodb = false; 84 85 if (function_exists('mysqli_connect')) 86 { 85 87 $db_extensions[] = array('mysqli', 'MySQL Improved'); 88 $db_extensions[] = array('mysqli_innodb', 'MySQL Improved (InnoDB)'); 89 $mysql_innodb = true; 90 } 86 91 if (function_exists('mysql_connect')) 87 92 { 88 93 $db_extensions[] = array('mysql', 'MySQL Standard'); 89 90 if (count($db_extensions) > 1) 94 $db_extensions[] = array('mysql_innodb', 'MySQL Standard (InnoDB)'); 95 $mysql_innodb = true; 96 97 if (count($db_extensions) > 2) 91 98 $dual_mysql = true; 92 99 } … … 143 150 <p><?php echo $lang_install['Part1 intro'] ?></p> 144 151 <ul class="spaced"> 145 <li><span><strong><?php echo $lang_install['Database type'] ?></strong> <?php echo $lang_install['Database type info'] ?><?php if ($dual_mysql) echo ' '.$lang_install['Mysql typeinfo'] ?></span></li>152 <li><span><strong><?php echo $lang_install['Database type'] ?></strong> <?php echo $lang_install['Database type info']; if ($dual_mysql) echo ' '.$lang_install['Mysql type info']; if ($mysql_innodb) echo ' '.$lang_install['MySQL InnoDB info'] ?></span></li> 146 153 <li><span><strong><?php echo $lang_install['Database server'] ?></strong> <?php echo $lang_install['Database server info'] ?></span></li> 147 154 <li><span><strong><?php echo $lang_install['Database name'] ?></strong> <?php echo $lang_install['Database name info'] ?></span></li> … … 361 368 break; 362 369 370 case 'mysql_innodb': 371 require FORUM_ROOT.'include/dblayer/mysql_innodb.php'; 372 break; 373 374 case 'mysqli_innodb': 375 require FORUM_ROOT.'include/dblayer/mysqli_innodb.php'; 376 break; 377 363 378 case 'pgsql': 364 379 require FORUM_ROOT.'include/dblayer/pgsql.php'; … … 378 393 379 394 // If MySQL, make sure it's at least 4.1.2 380 if ($db_type == 'mysql' || $db_type == 'mysqli' )395 if ($db_type == 'mysql' || $db_type == 'mysqli' || $db_type == 'mysql_innodb' || $db_type == 'mysqli_innodb') 381 396 { 382 397 $result = $forum_db->query('SELECT VERSION()') or error(__FILE__, __LINE__); … … 400 415 error(sprintf($lang_install['FluxBB already installed'], $db_prefix, $db_name)); 401 416 417 // Check if InnoDB is available 418 if ($db_type == 'mysql_innodb' || $db_type == 'mysqli_innodb') 419 { 420 $result = $forum_db->query('SHOW VARIABLES LIKE \'have_innodb\''); 421 if((strtoupper($forum_db->result($result)) != 'YES')) 422 error($lang_install['InnoDB not enabled']); 423 } 402 424 403 425 // Start a transaction … … 852 874 ); 853 875 854 if ($db_type == 'mysql' || $db_type == 'mysqli' )876 if ($db_type == 'mysql' || $db_type == 'mysqli' || $db_type == 'mysql_innodb' || $db_type == 'mysqli_innodb') 855 877 { 856 878 $schema['UNIQUE KEYS']['user_id_ident_idx'] = array('user_id', 'ident(25)'); 857 879 $schema['INDEXES']['ident_idx'] = array('ident(25)'); 858 880 } 881 882 if ($db_type == 'mysql_innodb' || $db_type == 'mysqli_innodb') 883 $schema['ENGINE'] = 'InnoDB'; 859 884 860 885 $forum_db->create_table('online', $schema); … … 1022 1047 ); 1023 1048 1024 if ($db_type == 'mysql' || $db_type == 'mysqli' )1049 if ($db_type == 'mysql' || $db_type == 'mysqli' || $db_type == 'mysql_innodb' || $db_type == 'mysqli_innodb') 1025 1050 $schema['INDEXES']['ident_idx'] = array('ident(8)'); 1026 1051 … … 1389 1414 ); 1390 1415 1391 if ($db_type == 'mysql' || $db_type == 'mysqli' )1416 if ($db_type == 'mysql' || $db_type == 'mysqli' || $db_type == 'mysql_innodb' || $db_type == 'mysqli_innodb') 1392 1417 $schema['INDEXES']['username_idx'] = array('username(8)'); 1393 1418 -
fluxbb/branches/fluxbb-1.3-dev/upload/admin/reindex.php
r563 r566 68 68 case 'mysql': 69 69 case 'mysqli': 70 case 'mysql_innodb': 71 case 'mysqli_innodb': 70 72 $result = $forum_db->query('ALTER TABLE '.$forum_db->prefix.'search_words auto_increment=1') or error(__FILE__, __LINE__); 71 73 break; -
fluxbb/branches/fluxbb-1.3-dev/upload/delete.php
r564 r566 131 131 132 132 // Generate the post heading 133 $forum_page['post_ident'] = array(); 134 $forum_page['post_ident']['byline'] = '<span class="post-byline">'.sprintf((($cur_post['is_topic']) ? $lang_delete['Topic byline'] : $lang_delete['Reply byline']), '<strong>'.forum_htmlencode($cur_post['poster']).'</strong>').'</span>'; 135 $forum_page['post_ident']['link'] = '<span class="post-link"><a class="permalink" href="'.forum_link($forum_url['post'], $cur_post['tid']).'">'.format_time($cur_post['posted']).'</a></span>'; 133 $forum_page['item_ident'] = array( 134 'user' => '<cite>'.($cur_post['is_topic'] ? sprintf($lang_delete['Topic by'], forum_htmlencode($cur_post['poster'])) : sprintf($lang_delete['Reply by'], forum_htmlencode($cur_post['poster']))).'</cite>', 135 'date' => '<span>'.format_time($cur_post['posted']).'</span>' 136 ); 136 137 137 138 ($hook = get_hook('dl_pre_item_ident_merge')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 139 140 $forum_page['item_head'] = '<a href="'.forum_link($forum_url['post'], $cur_post['tid']).'">'.implode(' ', $forum_page['item_ident']).'</a>'; 138 141 139 142 // Generate the post title … … 144 147 145 148 $forum_page['item_subject'] = forum_htmlencode($forum_page['item_subject']); 149 146 150 147 151 // Setup breadcrumbs … … 156 160 157 161 define ('FORUM_PAGE', 'postdelete'); 162 define ('FORUM_PAGE_TYPE', 'basic'); 158 163 require FORUM_ROOT.'header.php'; 159 164 … … 173 178 <div class="post singlepost"> 174 179 <div class="posthead"> 175 <h3 class="hn post-ident"><?php echo implode(' ', $forum_page['post_ident'])?></h3>180 <h3 class="hn"><?php echo $forum_page['item_head'] ?></h3> 176 181 <?php ($hook = get_hook('dl_new_post_head_option')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 177 182 </div> 178 183 <div class="postbody"> 184 <div class="user"> 185 <h4 class="user-ident"><strong class="username"><?php echo forum_htmlencode($cur_post['poster']) ?></strong></h4> 186 <?php ($hook = get_hook('dl_new_post_user_data')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 187 </div> 179 188 <div class="post-entry"> 180 189 <h4 class="entry-title hn"><?php echo $forum_page['item_subject'] ?></h4> -
fluxbb/branches/fluxbb-1.3-dev/upload/edit.php
r564 r566 218 218 require FORUM_ROOT.'include/parser.php'; 219 219 220 // Generate the post heading 221 $forum_page['post_ident'] = array(); 222 $forum_page['post_ident']['num'] = '<span class="post-num">#</span>'; 223 $forum_page['post_ident']['byline'] = '<span class="post-byline">'.sprintf((($id == $cur_post['first_post_id']) ? $lang_post['Topic byline'] : $lang_post['Reply byline']), '<strong>'.forum_htmlencode($cur_post['poster']).'</strong>').'</span>'; 224 $forum_page['post_ident']['link'] = '<span class="post-link">'.format_time(time()).'</span>'; 220 $forum_page['preview_ident'] = array( 221 'user' => '<span class="username">'.sprintf($lang_post['Preview by'], '<strong>'.forum_htmlencode($cur_post['poster']).'</strong>').'</span>', 222 'link' => format_time(time()) 223 ); 225 224 226 225 $forum_page['preview_message'] = parse_message($message, $hide_smilies); 226 $forum_page['preview_poster'] = '<strong class="username">'.forum_htmlencode($cur_post['poster']).'</strong>'; 227 227 228 228 ($hook = get_hook('ed_preview_pre_display')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; … … 235 235 <div class="post singlepost"> 236 236 <div class="posthead"> 237 <h3 class="hn"><?php echo implode(' ', $forum_page['p ost_ident']) ?></h3>237 <h3 class="hn"><?php echo implode(' ', $forum_page['preview_ident']) ?></h3> 238 238 <?php ($hook = get_hook('ed_preview_new_post_head_option')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 239 239 </div> -
fluxbb/branches/fluxbb-1.3-dev/upload/footer.php
r563 r566 17 17 18 18 ($hook = get_hook('ft_about_output_start')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 19 20 ?> 21 <div id="brd-about" class="gen-content"> 22 <?php 23 19 24 ($hook = get_hook('ft_about_pre_quickjump')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 20 25 … … 44 49 ?> 45 50 <p id="copyright">Powered by <strong><a href="http://fluxbb.org/">FluxBB</a><?php if ($forum_config['o_show_version'] == '1') echo ' '.$forum_config['o_cur_version']; ?></strong></p> 51 </div> 46 52 <?php 47 53 -
fluxbb/branches/fluxbb-1.3-dev/upload/header.php
r565 r566 143 143 $gen_elements = array(); 144 144 145 // Forum page id and classes 146 if (substr(FORUM_PAGE, 0, 5) == 'admin') 147 define('FORUM_PAGE_TYPE', 'admin-page'); 148 else 149 { 150 if (!empty($forum_page['page_post'])) 151 define('FORUM_PAGE_TYPE', 'paged-page'); 152 else if (!empty($forum_page['main_menu'])) 153 define('FORUM_PAGE_TYPE', 'menu-page'); 154 else 155 define('FORUM_PAGE_TYPE', 'basic-page'); 156 } 157 158 $gen_elements['<!-- forum_page -->'] = 'id="brd-'.FORUM_PAGE.'" class="brd-page '.FORUM_PAGE_TYPE.'"'; 145 // Forum page class 146 $gen_elements['<!-- forum_page -->'] = 'id="brd-'.FORUM_PAGE.'"'; 159 147 160 148 // Skip link … … 276 264 $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>' : ''; 277 265 266 // Page type class 267 $main_elements['<!-- forum_page_type -->'] = (defined('FORUM_PAGE_TYPE')) ? FORUM_PAGE_TYPE.((substr(FORUM_PAGE, 0, 5) == 'admin') ? ' admin' : '') : ((substr(FORUM_PAGE, 0, 5) == 'admin') ? 'admin' : 'basic'); 268 278 269 // Main section heading 279 $main_elements['<!-- forum_main_head -->'] = '<div class="main-head">'."\n\t ".'<h1 class="hn"><span>'.((isset($forum_page['main_head'])) ? $forum_page['main_head'] : end($forum_page['crumbs'])).(isset($forum_page['main_head_pages']) ? ' <small>'.$forum_page['main_head_pages'].'</small>' : '').'</span></h1>'."\n".'</div>';270 $main_elements['<!-- forum_main_head -->'] = '<div class="main-head">'."\n\t\t".'<h1 class="hn"><span>'.((isset($forum_page['main_head'])) ? $forum_page['main_head'] : end($forum_page['crumbs'])).'</span></h1>'."\n\t".'</div>'; 280 271 281 272 // Top pagination and post links -
fluxbb/branches/fluxbb-1.3-dev/upload/include/dblayer/common_db.php
r479 r566 38 38 break; 39 39 40 case 'mysql_innodb': 41 require FORUM_ROOT.'include/dblayer/mysql_innodb.php'; 42 break; 43 44 case 'mysqli_innodb': 45 require FORUM_ROOT.'include/dblayer/mysqli_innodb.php'; 46 break; 47 40 48 case 'pgsql': 41 49 require FORUM_ROOT.'include/dblayer/pgsql.php'; -
fluxbb/branches/fluxbb-1.3-dev/upload/index.php
r563 r566 66 66 define('FORUM_ALLOW_INDEX', 1); 67 67 define('FORUM_PAGE', 'index'); 68 define('FORUM_PAGE_TYPE', 'index'); 68 69 require FORUM_ROOT.'header.php'; 69 70 -
fluxbb/branches/fluxbb-1.3-dev/upload/lang/English/install.php
r543 r566 18 18 'Database type info' => 'FluxBB 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 19 'Mysql type info' => 'FluxBB 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' => 'FluxBB 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.', 20 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\'.', 21 22 'Database name info' => 'Enter the name of the database that FluxBB 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, FluxBB will attempt to create it.', … … 73 74 'SQLite prefix collision' => 'The table prefix \'sqlite_\' is reserved for use by the SQLite engine. Please choose a different prefix.', 74 75 'FluxBB already installed' => 'A table called "%1$susers" is already present in the database "%2$s". This could mean that FluxBB is already installed or that another piece of software is installed and is occupying one or more of the table names FluxBB requires. If you want to install multiple copies of FluxBB in the same database, you must choose a different table prefix.', 76 '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.', 75 77 76 78 // Used in the install -
fluxbb/branches/fluxbb-1.3-dev/upload/login.php
r563 r566 40 40 ); 41 41 42 if ($db_type == 'mysql' || $db_type == 'mysqli' )42 if ($db_type == 'mysql' || $db_type == 'mysqli' || $db_type == 'mysql_innodb' || $db_type == 'mysqli_innodb') 43 43 $query['WHERE'] = 'username=\''.$forum_db->escape($form_username).'\''; 44 44 else … … 268 268 269 269 define ('FORUM_PAGE', 'reqpass'); 270 define ('FORUM_PAGE_TYPE', 'basic'); 270 271 require FORUM_ROOT.'header.php'; 271 272 … … 364 365 365 366 define('FORUM_PAGE', 'login'); 367 define('FORUM_PAGE_TYPE', 'basic'); 366 368 require FORUM_ROOT.'header.php'; 367 369 -
fluxbb/branches/fluxbb-1.3-dev/upload/misc.php
r563 r566 259 259 260 260 define('FORUM_PAGE', 'formemail'); 261 define('FORUM_PAGE_TYPE', 'basic'); 261 262 require FORUM_ROOT.'header.php'; 262 263 … … 459 460 460 461 define('FORUM_PAGE', 'report'); 462 define('FORUM_PAGE_TYPE', 'report'); 461 463 require FORUM_ROOT.'header.php'; 462 464 -
fluxbb/branches/fluxbb-1.3-dev/upload/moderate.php
r565 r566 417 417 $forum_page['start_from'] = $forum_user['disp_posts'] * ($forum_page['page'] - 1); 418 418 $forum_page['finish_at'] = min(($forum_page['start_from'] + $forum_user['disp_posts']), ($cur_topic['num_replies'] + 1)); 419 $forum_page[' items_info'] = generate_items_info($lang_misc['Posts'], ($forum_page['start_from'] + 1), ($cur_topic['num_replies'] + 1));419 $forum_page['page_info'] = generate_page_info($lang_misc['Posts'], ($forum_page['start_from'] + 1), ($cur_topic['num_replies'] + 1)); 420 420 421 421 // Generate paging links … … 451 451 $forum_page['main_head'] = sprintf($lang_misc['Moderate topic head'], forum_htmlencode($cur_topic['subject'])); 452 452 453 if ($forum_page['num_pages'] > 1)454 $forum_page['main_head_pages'] = sprintf($lang_common['Page info'], $forum_page['page'], $forum_page['num_pages']);455 456 453 ($hook = get_hook('mr_post_actions_pre_header_load')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 457 454 458 455 define('FORUM_PAGE', 'modtopic'); 456 define('FORUM_PAGE_TYPE','topic'); 459 457 require FORUM_ROOT.'header.php'; 460 458 … … 466 464 ?> 467 465 <div class="main-pagehead"> 468 <h2 class="hn"><span><?php echo $forum_page[' items_info'] ?></span></h2>466 <h2 class="hn"><span><?php echo $forum_page['page_info'] ?></span></h2> 469 467 </div> 470 468 <form id="mr-post-actions-form" class="newform" method="post" accept-charset="utf-8" action="<?php echo $forum_page['form_action'] ?>"> … … 508 506 ++$forum_page['item_count']; 509 507 510 $forum_page['post_ident'] = array();511 508 $forum_page['message'] = array(); 512 $forum_page['author_title'] = '';513 509 $forum_page['user_ident'] = array(); 514 510 $cur_post['username'] = $cur_post['poster']; 515 511 516 512 // Generate the post heading 517 $forum_page['post_ident']['num'] = '<span class="post-num">'.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span>'; 518 519 if ($cur_post['poster_id'] > 1) 520 $forum_page['post_ident']['byline'] = '<span class="post-byline">'.sprintf((($cur_post['id'] == $cur_topic['first_post_id']) ? $lang_topic['Topic byline'] : $lang_topic['Reply byline']), (($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>')).'</span>'; 521 else 522 $forum_page['post_ident']['byline'] = '<span class="post-byline">'.sprintf((($cur_post['id'] == $cur_topic['first_post_id']) ? $lang_topic['Topic byline'] : $lang_topic['Reply byline']), '<strong>'.forum_htmlencode($cur_post['username']).'</strong>').'</span>'; 523 524 $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_post['id']).'">'.format_time($cur_post['posted']).'</a></span>'; 513 $forum_page['item_ident'] = array( 514 'num' => '<strong>'.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</strong>', 515 'user' => '<cite>'.($cur_topic['posted'] == $cur_post['posted'] ? sprintf($lang_topic['Topic by'], forum_htmlencode($cur_post['username'])) : sprintf($lang_topic['Reply by'], forum_htmlencode($cur_post['username']))).'</cite>', 516 'date' => '<span>'.format_time($cur_post['posted']).'</span>' 517 ); 525 518 526 519 ($hook = get_hook('mr_row_pre_item_ident_merge')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 520 521 $forum_page['item_head'] = '<a class="permalink" rel="bookmark" title="'.$lang_topic['Permalink post'].'" href="'.forum_link($forum_url['post'], $cur_post['id']).'">'.implode(' ', $forum_page['item_ident']).'</a>'; 527 522 528 523 // Generate the checkbox field … … 531 526 532 527 // Generate author identification 533 $forum_page[' author_ident']['username'] = '<li class="username">'.(($cur_post['poster_id'] > '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>';534 $forum_page[' author_ident']['usertitle'] = '<li class="usertitle"><span>'.get_title($cur_post).'</span></li>';528 $forum_page['user_ident']['username'] = (($cur_post['poster_id'] > 1) ? '<strong class="username"><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'
