punbb-1.2/upload/admin_index.php |
punbb-1.2.1/upload/admin_index.php |
66: // Show phpinfo() output | 66: // Show phpinfo() output |
67: else if ($action == 'phpinfo') | 67: else if ($action == 'phpinfo') |
68: { | 68: { |
| 69: // Is phpinfo() a disabled function? |
| 70: if (strpos(strtolower((string)@ini_get('disable_functions')), 'phpinfo') !== false) |
| 71: message('The PHP function phpinfo() has been disabled on this server.'); |
| 72: |
69: phpinfo(); | 73: phpinfo(); |
70: exit; | 74: exit; |
71: } | 75: } |
72: | 76: |
73: | 77: |
74: // Get the server load averages (if possible) | 78: // Get the server load averages (if possible) |
75: if (@file_exists('/proc/loadavg')) | 79: if (@file_exists('/proc/loadavg') && is_readable('/proc/loadavg')) |
76: { | 80: { |
77: // We use @ just in case | 81: // We use @ just in case |
78: $fh = @fopen('/proc/loadavg', 'r'); | 82: $fh = @fopen('/proc/loadavg', 'r'); |
80: @fclose($fh); | 84: @fclose($fh); |
81: | 85: |
82: $load_averages = @explode(' ', $load_averages); | 86: $load_averages = @explode(' ', $load_averages); |
83: $server_load = isset($load_averages[0]) ? $load_averages[0].' '.$load_averages[1].' '.$load_averages[2] : 'Not available'; | 87: $server_load = isset($load_averages[2]) ? $load_averages[0].' '.$load_averages[1].' '.$load_averages[2] : 'Not available'; |
84: } | 88: } |
85: else if (preg_match('/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/i', @exec('uptime'), $load_averages)) | 89: else if (preg_match('/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/i', @exec('uptime'), $load_averages)) |
86: $server_load = $load_averages[1].' '.$load_averages[2].' '.$load_averages[3]; | 90: $server_load = $load_averages[1].' '.$load_averages[2].' '.$load_averages[3]; |
punbb-1.2/upload/admin_options.php |
punbb-1.2.1/upload/admin_options.php |
67: if (substr($form['avatars_dir'], -1) == '/') | 67: if (substr($form['avatars_dir'], -1) == '/') |
68: $form['avatars_dir'] = substr($form['avatars_dir'], 0, -1); | 68: $form['avatars_dir'] = substr($form['avatars_dir'], 0, -1); |
69: | 69: |
| 70: if ($form['additional_navlinks'] != '') |
| 71: $form['additional_navlinks'] = trim(pun_linebreaks($form['additional_navlinks'])); |
| 72: |
70: if ($form['announcement_message'] != '') | 73: if ($form['announcement_message'] != '') |
71: $form['announcement_message'] = pun_linebreaks($form['announcement_message']); | 74: $form['announcement_message'] = pun_linebreaks($form['announcement_message']); |
72: else | 75: else |
166: </td> | 169: </td> |
167: </tr> | 170: </tr> |
168: <tr> | 171: <tr> |
| 172: <th scope="row">Base URL</th> |
| 173: <td> |
| 174: <input type="text" name="form[base_url]" size="50" maxlength="100" value="<?php echo $pun_config['o_base_url'] ?>" /> |
| 175: <span>The complete URL of the forum without trailing slash (i.e. http://www.mydomain.com/forums). This <strong>must</strong> be correct in order for all admin and moderator features to work. If you get "Bad referer" errors, it's probably incorrect.</span> |
| 176: </td> |
| 177: </tr> |
| 178: <tr> |
169: <th scope="row">Server timezone</th> | 179: <th scope="row">Server timezone</th> |
170: <td> | 180: <td> |
171: <select name="form[server_timezone]"> | 181: <select name="form[server_timezone]"> |
264: </select> | 274: </select> |
265: <span>This is the default style used for guests and users who haven't changed from the default in their profile.</span></td> | 275: <span>This is the default style used for guests and users who haven't changed from the default in their profile.</span></td> |
266: </tr> | 276: </tr> |
267: <tr> | |
268: <th scope="row">Base URL</th> | |
269: <td> | |
270: <input type="text" name="form[base_url]" size="50" maxlength="100" value="<?php echo $pun_config['o_base_url'] ?>" /> | |
271: <span>The complete URL of the forum without trailing slash (i.e. http://www.mydomain.com/forums). This <strong>must</strong> be correct in order for all admin and moderator features to work. If you get "Bad referer" errors, it's probably incorrect.</span> | |
272: </td> | |
273: </tr> | |
274: </table> | 277: </table> |
275: </div> | 278: </div> |
276: </fieldset> | 279: </fieldset> |
457: <td> | 460: <td> |
458: <input type="radio" name="form[search_all_forums]" value="1"<?php if ($pun_config['o_search_all_forums'] == '1') echo ' checked="checked"' ?> /> <strong>Yes</strong> <input type="radio" name="form[search_all_forums]" value="0"<?php if ($pun_config['o_search_all_forums'] == '0') echo ' checked="checked"' ?> /> <strong>No</strong> | 461: <input type="radio" name="form[search_all_forums]" value="1"<?php if ($pun_config['o_search_all_forums'] == '1') echo ' checked="checked"' ?> /> <strong>Yes</strong> <input type="radio" name="form[search_all_forums]" value="0"<?php if ($pun_config['o_search_all_forums'] == '0') echo ' checked="checked"' ?> /> <strong>No</strong> |
459: <span>When disabled, searches will only be allowed in one forum at a time. Disable if server load is high due to excessive searching.</span> | 462: <span>When disabled, searches will only be allowed in one forum at a time. Disable if server load is high due to excessive searching.</span> |
| 463: </td> |
| 464: </tr> |
| 465: <tr> |
| 466: <th scope="row">Additional menu items</th> |
| 467: <td> |
| 468: <textarea name="form[additional_navlinks]" rows="3" cols="55"><?php echo pun_htmlspecialchars($pun_config['o_additional_navlinks']) ?></textarea> |
| 469: <span>By entering HTML hyperlinks into this textbox, any number of items can be added to the navigation menu at the top of all pages. The format for adding new links is X = <a href="URL">LINK</a> where X is the position at which the link should be inserted (e.g. 0 to insert at the beginning and 2 to insert after "User list"). Separate entries with a linebreak.</span> |
460: </td> | 470: </td> |
461: </tr> | 471: </tr> |
462: </table> | 472: </table> |
punbb-1.2/upload/header.php |
punbb-1.2.1/upload/header.php |
114: | 114: |
115: } | 115: } |
116: | 116: |
| 117: $user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? strtolower($_SERVER['HTTP_USER_AGENT']) : ''; |
| 118: if (strpos($user_agent, 'msie') !== false && strpos($user_agent, 'windows') !== false && strpos($user_agent, 'opera') === false) |
| 119: echo '<script type="text/javascript" src="style/imports/minmax.js"></script>'; |
| 120: |
117: $tpl_temp = trim(ob_get_contents()); | 121: $tpl_temp = trim(ob_get_contents()); |
118: $tpl_main = str_replace('<pun_head>', $tpl_temp, $tpl_main); | 122: $tpl_main = str_replace('<pun_head>', $tpl_temp, $tpl_main); |
119: ob_end_clean(); | 123: ob_end_clean(); |
123: // START SUBST - <body> | 127: // START SUBST - <body> |
124: if (isset($focus_element)) | 128: if (isset($focus_element)) |
125: { | 129: { |
126: $tpl_main = str_replace('<body onload="', '<body onload="document.getElementById(\''.$focus_element[0].'\').'.$focus_element[1].'.focus();', $tpl_main); | 130: $tpl_main = str_replace('<body onload="', '<body onload="document.getElementById(\''.$focus_element[0].'\').'.$focus_element[1].'.focus();', $tpl_main); |
127: $tpl_main = str_replace('<body>', '<body onload="document.getElementById(\''.$focus_element[0].'\').'.$focus_element[1].'.focus()">', $tpl_main); | 131: $tpl_main = str_replace('<body>', '<body onload="document.getElementById(\''.$focus_element[0].'\').'.$focus_element[1].'.focus()">', $tpl_main); |
128: } | 132: } |
129: // END SUBST - <body> | 133: // END SUBST - <body> |
154: $tpl_temp = '<div id="brdwelcome" class="inbox">'."\n\t\t\t".'<p>'.$lang_common['Not logged in'].'</p>'."\n\t\t".'</div>'; | 158: $tpl_temp = '<div id="brdwelcome" class="inbox">'."\n\t\t\t".'<p>'.$lang_common['Not logged in'].'</p>'."\n\t\t".'</div>'; |
155: else | 159: else |
156: { | 160: { |
157: $tpl_temp = '<div id="brdwelcome" class="inbox">'."\n\t\t\t".'<p class="conl">'.$lang_common['Logged in as'].' <strong>'.pun_htmlspecialchars($pun_user['username']).'</strong><br />'.$lang_common['Last visit'].': '.format_time($pun_user['last_visit']); | 161: $tpl_temp = '<div id="brdwelcome" class="inbox">'."\n\t\t\t".'<ul class="conl">'."\n\t\t\t\t".'<li>'.$lang_common['Logged in as'].' <strong>'.pun_htmlspecialchars($pun_user['username']).'</strong></li>'."\n\t\t\t\t".'<li>'.$lang_common['Last visit'].': '.format_time($pun_user['last_visit']).'</li>'; |
158: | 162: |
159: if ($pun_user['g_id'] < PUN_GUEST) | 163: if ($pun_user['g_id'] < PUN_GUEST) |
160: { | 164: { |
161: $result_header = $db->query('SELECT COUNT(id) FROM '.$db->prefix.'reports WHERE zapped IS NULL') or error('Unable to fetch reports info', __FILE__, __LINE__, $db->error()); | 165: $result_header = $db->query('SELECT COUNT(id) FROM '.$db->prefix.'reports WHERE zapped IS NULL') or error('Unable to fetch reports info', __FILE__, __LINE__, $db->error()); |
162: | 166: |
163: if ($db->result($result_header)) | 167: if ($db->result($result_header)) |
164: $tpl_temp .= '<br /><strong><a href="admin_reports.php">There are new reports</a></strong>'; | 168: $tpl_temp .= "\n\t\t\t\t".'<li class="reportlink"><strong><a href="admin_reports.php">There are new reports</a></strong></li>'; |
165: | 169: |
166: if ($pun_config['o_maintenance'] == '1') | 170: if ($pun_config['o_maintenance'] == '1') |
167: $tpl_temp .= '<br /><strong><a class="showhot" href="admin_options.php#maintenance">Maintenance mode is enabled!</a></strong>'; | 171: $tpl_temp .= "\n\t\t\t\t".'<li class="maintenancelink"><strong><a href="admin_options.php#maintenance">Maintenance mode is enabled!</a></strong></li>'; |
168: } | 172: } |
169: | 173: |
170: if (basename($_SERVER['PHP_SELF']) == 'index.php') | 174: if (basename($_SERVER['PHP_SELF']) == 'index.php') |
171: $tpl_temp .= '</p>'."\n\t\t\t".'<p class="conr"><a href="search.php?action=show_new">'.$lang_common['Show new posts'].'</a><br /><a href="misc.php?action=markread">'.$lang_common['Mark all as read'].'</a></p>'."\n\t\t\t".'<div class="clearer"></div>'."\n\t\t".'</div>'; | 175: $tpl_temp .= "\n\t\t\t".'</ul>'."\n\t\t\t".'<ul class="conr">'."\n\t\t\t\t".'<li><a href="search.php?action=show_new">'.$lang_common['Show new posts'].'</a></li>'."\n\t\t\t\t".'<li><a href="misc.php?action=markread">'.$lang_common['Mark all as read'].'</a></li>'."\n\t\t\t".'</ul>'."\n\t\t\t".'<div class="clearer"></div>'."\n\t\t".'</div>'; |
172: else if ($_SERVER['QUERY_STRING'] == 'action=show_new') | 176: else if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] == 'action=show_new') |
173: $tpl_temp .= '</p>'."\n\t\t\t".'<p class="conr"><a href="misc.php?action=markread">'.$lang_common['Mark all as read'].'</a></p>'."\n\t\t\t".'<div class="clearer"></div>'."\n\t\t".'</div>'; | 177: $tpl_temp .= "\n\t\t\t".'</ul>'."\n\t\t\t".'<p class="conr"><a href="misc.php?action=markread">'.$lang_common['Mark all as read'].'</a></p>'."\n\t\t\t".'<div class="clearer"></div>'."\n\t\t".'</div>'; |
174: else | 178: else |
175: $tpl_temp .= '</p>'."\n\t\t\t".'<div class="clearer"></div>'."\n\t\t".'</div>'; | 179: $tpl_temp .= "\n\t\t\t".'</ul>'."\n\t\t\t".'<div class="clearer"></div>'."\n\t\t".'</div>'; |
176: } | 180: } |
177: | 181: |
178: $tpl_main = str_replace('<pun_status>', $tpl_temp, $tpl_main); | 182: $tpl_main = str_replace('<pun_status>', $tpl_temp, $tpl_main); |
punbb-1.2/upload/help.php |
punbb-1.2.1/upload/help.php |
37: // Load the help.php language file | 37: // Load the help.php language file |
38: require PUN_ROOT.'lang/'.$pun_user['language'].'/help.php'; | 38: require PUN_ROOT.'lang/'.$pun_user['language'].'/help.php'; |
39: | 39: |
40: // Determine what style to use (for the [img] example) | |
41: if ($pun_user['style'] != '' && @file_exists(PUN_ROOT.'style/'.$pun_user['style'].'.css')) | |
42: $img_url = $pun_config['o_base_url'].'/img/'.$pun_user['style'].'_new.png'; | |
43: else | |
44: $img_url = $pun_config['o_base_url'].'/img/'.$pun_config['o_default_style'].'_new.png'; | |
45: | |
46: | 40: |
47: $page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_help['Help']; | 41: $page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_help['Help']; |
48: require PUN_ROOT.'header.php'; | 42: require PUN_ROOT.'header.php'; |
76: [email=myname@mydomain.com]<?php echo $lang_help['My e-mail address'] ?>[/email] <?php echo $lang_help['produces'] ?> <a href="mailto:myname@mydomain.com"><?php echo $lang_help['My e-mail address'] ?></a><br /><br /> | 70: [email=myname@mydomain.com]<?php echo $lang_help['My e-mail address'] ?>[/email] <?php echo $lang_help['produces'] ?> <a href="mailto:myname@mydomain.com"><?php echo $lang_help['My e-mail address'] ?></a><br /><br /> |
77: </div> | 71: </div> |
78: <p><a name="img"></a><?php echo $lang_help['Images info'] ?></p> | 72: <p><a name="img"></a><?php echo $lang_help['Images info'] ?></p> |
79: <div>[img]<?php echo $img_url ?>[/img] <?php echo $lang_help['produces'] ?> <img src="<?php echo $img_url ?>" alt="" /></div> | 73: <div>[img]http://www.punbb.org/img/small_logo.png[/img] <?php echo $lang_help['produces'] ?> <img src="http://www.punbb.org/img/small_logo.png" alt="http://www.punbb.org/img/small_logo.png" /></div> |
80: </div> | 74: </div> |
81: <h2><?php echo $lang_help['Quotes'] ?></h2> | 75: <h2><?php echo $lang_help['Quotes'] ?></h2> |
82: <div class="box"> | 76: <div class="box"> |
141: for ($next = $i + 1; $next < $num_smilies; ++$next) | 135: for ($next = $i + 1; $next < $num_smilies; ++$next) |
142: { | 136: { |
143: // Did we find a dupe? | 137: // Did we find a dupe? |
144: if ($smiley_img[$i] == $smiley_img[$next]) | 138: if (isset($smiley_img[$next]) && $smiley_img[$i] == $smiley_img[$next]) |
145: { | 139: { |
146: echo ' '.$lang_common['and'].' '.$smiley_text[$next]; | 140: echo ' '.$lang_common['and'].' '.$smiley_text[$next]; |
147: | 141: |
punbb-1.2/upload/include/functions.php |
punbb-1.2.1/upload/include/functions.php |
229: global $pun_config, $lang_common, $pun_user; | 229: global $pun_config, $lang_common, $pun_user; |
230: | 230: |
231: // Index and Userlist should always be displayed | 231: // Index and Userlist should always be displayed |
232: $links[] = '<li><a href="index.php">'.$lang_common['Index'].'</a>'; | 232: $links[] = '<li id="navindex"><a href="index.php">'.$lang_common['Index'].'</a>'; |
233: $links[] = '<li><a href="userlist.php">'.$lang_common['User list'].'</a>'; | 233: $links[] = '<li id="navuserlist"><a href="userlist.php">'.$lang_common['User list'].'</a>'; |
234: | 234: |
235: if ($pun_config['o_rules'] == '1') | 235: if ($pun_config['o_rules'] == '1') |
236: $links[] = '<li><a href="misc.php?action=rules">'.$lang_common['Rules'].'</a>'; | 236: $links[] = '<li id="navrules"><a href="misc.php?action=rules">'.$lang_common['Rules'].'</a>'; |
237: | 237: |
238: if ($pun_user['is_guest']) | 238: if ($pun_user['is_guest']) |
239: { | 239: { |
240: if ($pun_user['g_search'] == '1') | 240: if ($pun_user['g_search'] == '1') |
241: $links[] = '<li><a href="search.php">'.$lang_common['Search'].'</a>'; | 241: $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>'; |
242: | 242: |
243: $links[] = '<li><a href="register.php">'.$lang_common['Register'].'</a>'.$lang_common['Link separator'].'</li><li><a href="login.php">'.$lang_common['Login'].'</a>'; | 243: $links[] = '<li id="navregister"><a href="register.php">'.$lang_common['Register'].'</a>'; |
244: | 244: $links[] = '<li id="navlogin"><a href="login.php">'.$lang_common['Login'].'</a>'; |
245: $info = $lang_common['Not logged in']; | 245: |
246: } | 246: $info = $lang_common['Not logged in']; |
| 247: } |
247: else | 248: else |
248: { | 249: { |
249: if ($pun_user['g_id'] > PUN_MOD) | 250: if ($pun_user['g_id'] > PUN_MOD) |
250: { | 251: { |
251: if ($pun_user['g_search'] == '1') | 252: if ($pun_user['g_search'] == '1') |
252: $links[] = '<li><a href="search.php">'.$lang_common['Search'].'</a>'; | 253: $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>'; |
253: | 254: |
254: $links[] = '<li><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>'; | 255: $links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>'; |
255: $links[] = '<li><a href="login.php?action=out&id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>'; | 256: $links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>'; |
256: } | 257: } |
257: else | 258: else |
258: { | 259: { |
259: $links[] = '<li><a href="search.php">'.$lang_common['Search'].'</a>'; | 260: $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>'; |
260: $links[] = '<li><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>'; | 261: $links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>'; |
261: $links[] = '<li><a href="admin_index.php">'.$lang_common['Admin'].'</a>'; | 262: $links[] = '<li id="navadmin"><a href="admin_index.php">'.$lang_common['Admin'].'</a>'; |
262: $links[] = '<li><a href="login.php?action=out&id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>'; | 263: $links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>'; |
| 264: } |
| 265: } |
| 266: |
| 267: // Are there any additional navlinks we should insert into the array before imploding it? |
| 268: if ($pun_config['o_additional_navlinks'] != '') |
| 269: { |
| 270: if (preg_match_all('#([0-9]+)\s*=\s*(.*?)\n#s', $pun_config['o_additional_navlinks']."\n", $extra_links)) |
| 271: { |
| 272: // Insert any additional links into the $links array (at the correct index) |
| 273: for ($i = 0; $i < count($extra_links[1]); ++$i) |
| 274: array_splice($links, $extra_links[1][$i], 0, array('<li id="navextra'.($i + 1).'">'.$extra_links[2][$i])); |
263: } | 275: } |
264: } | 276: } |
265: | 277: |
266: return '<ul>'.implode($lang_common['Link separator'].'</li>', $links).'</li></ul>'; | 278: return '<ul>'."\n\t\t\t\t".implode($lang_common['Link separator'].'</li>'."\n\t\t\t\t", $links).'</li>'."\n\t\t\t".'</ul>'; |
267: } | 279: } |
268: | 280: |
269: | 281: |
720: // | 732: // |
721: function pun_trim($str) | 733: function pun_trim($str) |
722: { | 734: { |
723: $fishy_chars = array(chr(0x81), chr(0x8D), chr(0x8F), chr(0x90), chr(0x9D), chr(0xA0), chr(0xCA), ' '); | 735: global $lang_common; |
724: | 736: |
725: return trim(str_replace($fishy_chars, ' ', $str)); | 737: if (strpos($lang_common['lang_encoding'], '8859') !== false) |
| 738: { |
| 739: $fishy_chars = array(chr(0x81), chr(0x8D), chr(0x8F), chr(0x90), chr(0x9D), chr(0xA0), chr(0xCA)); |
| 740: return trim(str_replace($fishy_chars, ' ', $str)); |
| 741: } |
| 742: else |
| 743: return trim($str); |
726: } | 744: } |
727: | 745: |
728: | 746: |
812: | 830: |
813: // If the delay is 0 seconds, we might as well skip the redirect all together | 831: // If the delay is 0 seconds, we might as well skip the redirect all together |
814: if ($pun_config['o_redirect_delay'] == '0') | 832: if ($pun_config['o_redirect_delay'] == '0') |
815: header('Location: '.$destination_url); | 833: header('Location: '.str_replace('&', '&', $destination_url)); |
816: | 834: |
817: | 835: |
818: // Load the redirect template | 836: // Load the redirect template |
916: <title><?php echo pun_htmlspecialchars($pun_config['o_board_title']) ?> / Error</title> | 934: <title><?php echo pun_htmlspecialchars($pun_config['o_board_title']) ?> / Error</title> |
917: <style type="text/css"> | 935: <style type="text/css"> |
918: <!-- | 936: <!-- |
919: BODY {margin: 20px 20%; font: 10px Verdana, Arial, Helvetica, sans-serif;} | 937: BODY {MARGIN: 10% 20% auto 20%; font: 10px Verdana, Arial, Helvetica, sans-serif} |
920: #errorbox {border: 1px solid #000;} | 938: #errorbox {BORDER: 1px solid #B84623} |
921: H2 {margin: 0; color: #FFFFFF; background-color: #D25028; font-size: 1.1em; padding: 5px 4px; border-bottom: 1px solid #000;} | 939: H2 {MARGIN: 0; COLOR: #FFFFFF; BACKGROUND-COLOR: #B84623; FONT-SIZE: 1.1em; PADDING: 5px 4px} |
922: #errorbox DIV {padding: 6px 5px; background-color: #dedfdf} | 940: #errorbox DIV {PADDING: 6px 5px; BACKGROUND-COLOR: #F1F1F1} |
923: --> | 941: --> |
924: </style> | 942: </style> |
925: </head> | 943: </head> |
926: <body> | 944: <body> |
927: <div id="errorbox"> | 945: |
928: <h2>An error was encountered</h2> | 946: <div id="errorbox"> |
929: <div> | 947: <h2>An error was encountered</h2> |
| 948: <div> |
930: <?php | 949: <?php |
931: | 950: |
932: if (defined('PUN_DEBUG')) | 951: if (defined('PUN_DEBUG')) |
933: { | 952: { |
934: echo "\t\t\t".'<strong>File:</strong> '.$file.'<br />'."\n\t\t\t".'<strong>Line:</strong> '.$line.'<br /><br />'."\n\t\t\t".'<strong>PunBB reported</strong>: '.$message."\n"; | 953: echo "\t\t".'<strong>File:</strong> '.$file.'<br />'."\n\t\t".'<strong>Line:</strong> '.$line.'<br /><br />'."\n\t\t".'<strong>PunBB reported</strong>: '.$message."\n"; |
935: | 954: |
936: if ($db_error) | 955: if ($db_error) |
937: { | 956: { |
938: echo "\t\t\t".'<br /><br /><strong>Database reported:</strong> '.pun_htmlspecialchars($db_error['error_msg']).(($db_error['error_no']) ? ' (Errno: '.$db_error['error_no'].')' : '')."\n"; | 957: echo "\t\t".'<br /><br /><strong>Database reported:</strong> '.pun_htmlspecialchars($db_error['error_msg']).(($db_error['error_no']) ? ' (Errno: '.$db_error['error_no'].')' : '')."\n"; |
939: | 958: |
940: if ($db_error['error_sql'] != '') | 959: if ($db_error['error_sql'] != '') |
941: echo "\t\t\t".'<br /><br /><strong>Failed query:</strong> '.pun_htmlspecialchars($db_error['error_sql'])."\n"; | 960: echo "\t\t".'<br /><br /><strong>Failed query:</strong> '.pun_htmlspecialchars($db_error['error_sql'])."\n"; |
942: } | 961: } |
943: } | 962: } |
944: else | 963: else |
945: echo "\t\t\t".'Error: <strong>'.$message.'.</strong>'."\n"; | 964: echo "\t\t".'Error: <strong>'.$message.'.</strong>'."\n"; |
946: | 965: |
947: ?> | 966: ?> |
948: </div> | |
949: </div> | 967: </div> |
| 968: </div> |
| 969: |
950: </body> | 970: </body> |
951: </html> | 971: </html> |
952: <?php | 972: <?php |
punbb-1.2/upload/include/parser.php |
punbb-1.2.1/upload/include/parser.php |
67: if (!$is_signature) | 67: if (!$is_signature) |
68: { | 68: { |
69: // For non-signatures, we have to do the quote and code tags as well | 69: // For non-signatures, we have to do the quote and code tags as well |
70: $a[] = '#\[quote=("|"|\'|)(.{2,25})\\1\]\s*#i'; | 70: $a[] = '#\[quote=("|"|\'|)(.*)\\1\]\s*#i'; |
71: $a[] = '#\[quote\]\s*#i'; | 71: $a[] = '#\[quote\]\s*#i'; |
72: $a[] = '#\s*\[/quote\]\s*#i'; | 72: $a[] = '#\s*\[/quote\]\s*#i'; |
73: $a[] = '#\[code\][\r\n]*(.*?)\s*\[/code\]\s*#is'; | 73: $a[] = '#\[code\][\r\n]*(.*?)\s*\[/code\]\s*#is'; |
126: $q_end = strpos($text, '[/quote]'); | 126: $q_end = strpos($text, '[/quote]'); |
127: | 127: |
128: // Look for [quote=username] style quote tags | 128: // Look for [quote=username] style quote tags |
129: if (preg_match('#\[quote=("|"|\'|)(.{2,25})\\1\]#sU', $text, $matches)) | 129: if (preg_match('#\[quote=("|"|\'|)(.*)\\1\]#sU', $text, $matches)) |
130: $q2_start = strpos($text, $matches[0]); | 130: $q2_start = strpos($text, $matches[0]); |
131: else | 131: else |
132: $q2_start = 65536; | 132: $q2_start = 65536; |
280: function handle_img_tag($url, $is_signature = false) | 280: function handle_img_tag($url, $is_signature = false) |
281: { | 281: { |
282: global $lang_common, $pun_config, $pun_user; | 282: global $lang_common, $pun_config, $pun_user; |
283: | |
284: $img_tag = '<a href="'.$url.'"><'.$lang_common['Image link'].'></a>'; | |
285: | 283: |
286: if ($is_signature && $pun_user['show_img_sig'] != '0') | 284: $img_tag = '<a href="'.$url.'"><'.$lang_common['Image link'].'></a>'; |
287: $img_tag = '<img class="sigimage" src="'.$url.'" alt="'.htmlspecialchars($url).'" />'; | 285: |
288: else if (!$is_signature && $pun_user['show_img'] != '0') | 286: if ($is_signature && $pun_user['show_img_sig'] != '0') |
289: $img_tag = '</p><div class="imgbox"><div class="scrollbox"><img src="'.$url.'" alt="'.htmlspecialchars($url).'" /></div></div><p>'; | 287: $img_tag = '<img class="sigimage" src="'.$url.'" alt="'.htmlspecialchars($url).'" />'; |
290: | 288: else if (!$is_signature && $pun_user['show_img'] != '0') |
291: return $img_tag; | 289: $img_tag = '<img class="postimg" src="'.$url.'" alt="'.htmlspecialchars($url).'" />'; |
| 290: |
| 291: return $img_tag; |
292: } | 292: } |
293: | 293: |
294: | 294: |
323: if (strpos($text, 'quote') !== false) | 323: if (strpos($text, 'quote') !== false) |
324: { | 324: { |
325: $text = str_replace('[quote]', '</p><blockquote><div class="incqbox"><p>', $text); | 325: $text = str_replace('[quote]', '</p><blockquote><div class="incqbox"><p>', $text); |
326: $text = preg_replace('#\[quote=("|"|\'|)(.{2,25})\\1\]#seU', '"</p><blockquote><div class=\"incqbox\"><h4>".str_replace(\'[\', \'[\', \'$2\')." ".$lang_common[\'wrote\'].":</h4><p>"', $text); | 326: $text = preg_replace('#\[quote=("|"|\'|)(.*)\\1\]#seU', '"</p><blockquote><div class=\"incqbox\"><h4>".str_replace(\'[\', \'[\', \'$2\')." ".$lang_common[\'wrote\'].":</h4><p>"', $text); |
327: $text = preg_replace('#\[\/quote\]\s*#', '</p></div></blockquote><p>', $text); | 327: $text = preg_replace('#\[\/quote\]\s*#', '</p></div></blockquote><p>', $text); |
328: } | 328: } |
329: | 329: |
punbb-1.2/upload/index.php |
punbb-1.2.1/upload/index.php |
60: <div class="box"> | 60: <div class="box"> |
61: <div class="inbox"> | 61: <div class="inbox"> |
62: <table cellspacing="0"> | 62: <table cellspacing="0"> |
63: <colgroup> | |
64: <col class="tcl" /> | |
65: <col class="tc2" /> | |
66: <col class="tc3" /> | |
67: <col class="tcr" /> | |
68: </colgroup> | |
69: <thead> | 63: <thead> |
70: <tr> | 64: <tr> |
71: <th class="tcl" scope="col"><?php echo $lang_common['Forum'] ?></th> | 65: <th class="tcl" scope="col"><?php echo $lang_common['Forum'] ?></th> |
80: $cur_category = $cur_forum['cid']; | 74: $cur_category = $cur_forum['cid']; |
81: } | 75: } |
82: | 76: |
83: $icon = '<div class="inormal"><div class="nosize">'.$lang_common['Normal icon'].'</div></div>'."\n"; | 77: $item_status = ''; |
| 78: $icon_text = $lang_common['Normal icon']; |
| 79: $icon_type = 'icon'; |
84: | 80: |
85: // Are there new posts? | 81: // Are there new posts? |
86: if (!$pun_user['is_guest'] && $cur_forum['last_post'] > $pun_user['last_visit']) | 82: if (!$pun_user['is_guest'] && $cur_forum['last_post'] > $pun_user['last_visit']) |
87: $icon = '<div class="inew"><div class="nosize">'.$lang_common['New icon'].'</div></div>'."\n"; | 83: { |
| 84: $item_status = 'inew'; |
| 85: $icon_text = $lang_common['New icon']; |
| 86: $icon_type = 'icon inew'; |
| 87: } |
88: | 88: |
89: // Is this a redirect forum? | 89: // Is this a redirect forum? |
90: if ($cur_forum['redirect_url'] != '') | 90: if ($cur_forum['redirect_url'] != '') |
91: { | 91: { |
92: $forum_field = '<h3><a href="'.pun_htmlspecialchars($cur_forum['redirect_url']).'" title="'.$lang_index['Link to'].' '.pun_htmlspecialchars($cur_forum['redirect_url']).'">'.pun_htmlspecialchars($cur_forum['forum_name']).'</a></h3>'; | 92: $forum_field = '<h3><a href="'.pun_htmlspecialchars($cur_forum['redirect_url']).'" title="'.$lang_index['Link to'].' '.pun_htmlspecialchars($cur_forum['redirect_url']).'">'.pun_htmlspecialchars($cur_forum['forum_name']).'</a></h3>'; |
93: $num_topics = $num_posts = ' '; | 93: $num_topics = $num_posts = ' '; |
94: $icon = '<div class="iredirect"><div class="nosize">'.$lang_common['Redirect icon'].'</div></div>'."\n"; | 94: $item_status = 'iredirect'; |
| 95: $icon_text = $lang_common['Redirect icon']; |
| 96: $icon_type = 'icon'; |
95: } | 97: } |
96: else | 98: else |
97: { | 99: { |
101: } | 103: } |
102: | 104: |
103: if ($cur_forum['forum_desc'] != '') | 105: if ($cur_forum['forum_desc'] != '') |
104: $forum_field .= "\n\t\t\t\t\t\t\t".$cur_forum['forum_desc']; | 106: $forum_field .= "\n\t\t\t\t\t\t\t\t".$cur_forum['forum_desc']; |
105: | 107: |
106: | 108: |
107: // If there is a last_post/last_poster. | 109: // If there is a last_post/last_poster. |
108: if ($cur_forum['last_post'] != '') | 110: if ($cur_forum['last_post'] != '') |
109: $last_post = '<a href="viewtopic.php?pid='.$cur_forum['last_post_id'].'#p'.$cur_forum['last_post_id'].'">'.format_time($cur_forum['last_post']).'</a><br />'.$lang_common['by'].' '.pun_htmlspecialchars($cur_forum['last_poster']); | 111: $last_post = '<a href="viewtopic.php?pid='.$cur_forum['last_post_id'].'#p'.$cur_forum['last_post_id'].'">'.format_time($cur_forum['last_post']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_forum['last_poster']).'</span>'; |
110: else | 112: else |
111: $last_post = ' '; | 113: $last_post = ' '; |
112: | 114: |
118: while (list($mod_username, $mod_id) = @each($mods_array)) | 120: while (list($mod_username, $mod_id) = @each($mods_array)) |
119: $moderators[] = '<a href="profile.php?id='.$mod_id.'">'.pun_htmlspecialchars($mod_username).'</a>'; | 121: $moderators[] = '<a href="profile.php?id='.$mod_id.'">'.pun_htmlspecialchars($mod_username).'</a>'; |
120: | 122: |
121: $moderators = "\t\t\t\t\t\t\t".'<p><em>('.$lang_common['Moderated by'].'</em> '.implode(', ', $moderators).')</p>'."\n"; | 123: $moderators = "\t\t\t\t\t\t\t\t".'<p><em>('.$lang_common['Moderated by'].'</em> '.implode(', ', $moderators).')</p>'."\n"; |
122: } | 124: } |
123: | 125: |
124: ?> | 126: ?> |
125: <tr<?php if ($cur_forum['redirect_url'] != '') echo ' class="redirectrow"'; ?>> | 127: <tr<?php if ($item_status != '') echo ' class="'.$item_status.'"'; ?>> |
126: <td class="tcl"> | 128: <td class="tcl"> |
127: <div class="intd"> | 129: <div class="intd"> |
128: <?php echo $icon ?> | 130: <div class="<?php echo $icon_type ?>"><div class="nosize"><?php echo $icon_text ?></div></div> |
129: <div class="tclcon"> | 131: <div class="tclcon"> |
130: <?php echo $forum_field."\n".$moderators ?> | 132: <?php echo $forum_field."\n".$moderators ?> |
131: </div> | 133: </div> |
189: | 191: |
190: $num_users = count($users); | 192: $num_users = count($users); |
191: echo "\t\t\t\t".'<dd>'. $lang_index['Users online'].': <strong>'.$num_users.'</strong></dd>'."\n\t\t\t\t".'<dd>'.$lang_index['Guests online'].': <strong>'.$num_guests.'</strong></dd>'."\n\t\t\t".'</dl>'."\n"; | 193: echo "\t\t\t\t".'<dd>'. $lang_index['Users online'].': <strong>'.$num_users.'</strong></dd>'."\n\t\t\t\t".'<dd>'.$lang_index['Guests online'].': <strong>'.$num_guests.'</strong></dd>'."\n\t\t\t".'</dl>'."\n"; |
192: echo "\t\t\t".'<div class="clearer"></div>'."\n"; | |
193: | 194: |
194: | 195: |
195: if ($num_users > 0) | 196: if ($num_users > 0) |
196: echo "\t\t\t".'<dl id="onlinelist">'."\n\t\t\t\t".'<dt><strong>'.$lang_index['Online'].': </strong></dt>'."\t\t\t\t".implode(',</dd> ', $users).'</dd>'."\n\t\t\t".'</dl>'."\n"; | 197: echo "\t\t\t".'<dl id="onlinelist" class= "clearb">'."\n\t\t\t\t".'<dt><strong>'.$lang_index['Online'].': </strong></dt>'."\t\t\t\t".implode(',</dd> ', $users).'</dd>'."\n\t\t\t".'</dl>'."\n"; |
| 198: else |
| 199: echo "\t\t\t".'<div class="clearer"></div>'."\n"; |
| 200: |
197: } | 201: } |
198: else | 202: else |
199: echo "\t\t".'</dl>'."\n\t\t\t".'<div class="clearer"></div>'."\n"; | 203: echo "\t\t".'</dl>'."\n\t\t\t".'<div class="clearer"></div>'."\n"; |
punbb-1.2/upload/install.php |
punbb-1.2.1/upload/install.php |
31: if (file_exists(PUN_ROOT.'config.php')) | 31: if (file_exists(PUN_ROOT.'config.php')) |
32: exit('The file \'config.php\' already exists which would mean that PunBB is already installed. You should go <a href="index.php">here</a> instead.'); | 32: exit('The file \'config.php\' already exists which would mean that PunBB is already installed. You should go <a href="index.php">here</a> instead.'); |
33: | 33: |
| 34: |
34: // Make sure we are running at least PHP 4.1.0 | 35: // Make sure we are running at least PHP 4.1.0 |
35: if (intval(str_replace('.', '', phpversion())) < 410) | 36: if (version_compare(PHP_VERSION, '4.1.0', '<')) |
36: exit('You are running PHP version '.phpversion().'. PunBB requires at least PHP 4.1.0 to run properly. You must upgrade your PHP installation before you can continue.'); | 37: exit('You are running PHP version '.PHP_VERSION.'. PunBB requires at least PHP 4.1.0 to run properly. You must upgrade your PHP installation before you can continue.'); |
37: | 38: |
38: // Disable error reporting for uninitialized variables | 39: // Disable error reporting for uninitialized variables |
39: error_reporting(E_ALL); | 40: error_reporting(E_ALL); |
360: | 361: |
361: case 'pgsql': | 362: case 'pgsql': |
362: // Make sure we are running at least PHP 4.3.0 (needed only for PostgreSQL) | 363: // Make sure we are running at least PHP 4.3.0 (needed only for PostgreSQL) |
363: if (intval(str_replace('.', '', phpversion())) < 430) | 364: if (version_compare(PHP_VERSION, '4.3.0', '<')) |
364: error('You are running PHP version '.phpversion().'. PunBB requires at least PHP 4.3.0 to run properly when using PostgreSQL. You must upgrade your PHP installation or use a different database before you can continue.'); | 365: error('You are running PHP version '.PHP_VERSION.'. PunBB requires at least PHP 4.3.0 to run properly when using PostgreSQL. You must upgrade your PHP installation or use a different database before you can continue.'); |
365: break; | 366: break; |
366: | 367: |
367: case 'sqlite': | 368: case 'sqlite': |
1094: case 'mysqli': | 1095: case 'mysqli': |
1095: $sql = 'CREATE TABLE '.$db_prefix."users ( | 1096: $sql = 'CREATE TABLE '.$db_prefix."users ( |
1096: id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, | 1097: id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
1097: group_id INT(10) NOT NULL DEFAULT 4, | 1098: group_id INT(10) UNSIGNED NOT NULL DEFAULT 4, |
1098: username VARCHAR(200) NOT NULL DEFAULT '', | 1099: username VARCHAR(200) NOT NULL DEFAULT '', |
1099: password VARCHAR(40) NOT NULL DEFAULT '', | 1100: password VARCHAR(40) NOT NULL DEFAULT '', |
1100: email VARCHAR(50) NOT NULL DEFAULT '', | 1101: email VARCHAR(50) NOT NULL DEFAULT '', |
1311: 'o_show_dot' => "'0'", | 1312: 'o_show_dot' => "'0'", |
1312: 'o_quickjump' => "'1'", | 1313: 'o_quickjump' => "'1'", |
1313: 'o_gzip' => "'0'", | 1314: 'o_gzip' => "'0'", |
| 1315: 'o_additional_navlinks' => "''", |
1314: 'o_report_method' => "'0'", | 1316: 'o_report_method' => "'0'", |
1315: 'o_regs_report' => "'0'", | 1317: 'o_regs_report' => "'0'", |
1316: 'o_mailing_list' => "'$email'", | 1318: 'o_mailing_list' => "'$email'", |
1395: | 1397: |
1396: | 1398: |
1397: /// Display config.php and give further instructions | 1399: /// Display config.php and give further instructions |
1398: $config = '<?php'."\n\n".'$db_type = \''.$db_type."';\n".'$db_host = \''.$db_host."';\n".'$db_name = \''.$db_name."';\n".'$db_username = \''.$db_username."';\n".'$db_password = \''.$db_password."';\n".'$db_prefix = \''.$db_prefix."';\n".'$p_connect = false;'."\n\n".'$cookie_name = '."'punbb_cookie';\n".'$cookie_domain = '."'';\n".'$cookie_path = '."'/';\n".'$cookie_secure = 0;'."\n".'$cookie_seed = \''.substr(md5(time()), -8)."';\n\ndefine('PUN', 1);\n\n?>"; | 1400: $config = '<?php'."\n\n".'$db_type = \''.$db_type."';\n".'$db_host = \''.$db_host."';\n".'$db_name = \''.$db_name."';\n".'$db_username = \''.$db_username."';\n".'$db_password = \''.$db_password."';\n".'$db_prefix = \''.$db_prefix."';\n".'$p_connect = false;'."\n\n".'$cookie_name = '."'punbb_cookie';\n".'$cookie_domain = '."'';\n".'$cookie_path = '."'/';\n".'$cookie_secure = 0;'."\n".'$cookie_seed = \''.substr(md5(time()), -8)."';\n\ndefine('PUN', 1);"; |
1399: | 1401: |
1400: | 1402: |
1401: ?> | 1403: ?> |
punbb-1.2/upload/moderate.php |
punbb-1.2.1/upload/moderate.php |
560: <table cellspacing="0"> | 560: <table cellspacing="0"> |
561: <thead> | 561: <thead> |
562: <tr> | 562: <tr> |
563: <th class="tc1" scope="col"><?php echo $lang_common['Topic'] ?></th> | 563: <th class="tcl" scope="col"><?php echo $lang_common['Topic'] ?></th> |
564: <th class="tc2" scope="col"><?php echo $lang_common['Replies'] ?></th> | 564: <th class="tc2" scope="col"><?php echo $lang_common['Replies'] ?></th> |
565: <th class="tc3" scope="col"><?php echo $lang_forum['Views'] ?></th> | 565: <th class="tc3" scope="col"><?php echo $lang_forum['Views'] ?></th> |
566: <th class="tcr"><?php echo $lang_common['Last post'] ?></th> | 566: <th class="tcr"><?php echo $lang_common['Last post'] ?></th> |
580: | 580: |
581: while ($cur_topic = $db->fetch_assoc($result)) | 581: while ($cur_topic = $db->fetch_assoc($result)) |
582: { | 582: { |
583: $icon = '<div class="inormal"><div class="nosize">'.$lang_common['Normal icon'].'</div></div>'."\n"; | 583: |
| 584: $icon_text = $lang_common['Normal icon']; |
| 585: $item_status = ''; |
| 586: $icon_type = 'icon'; |
| 587: |
584: if ($cur_topic['moved_to'] == null) | 588: if ($cur_topic['moved_to'] == null) |
585: { | 589: { |
586: $last_post = '<a href="viewtopic.php?pid='.$cur_topic['last_post_id'].'#p'.$cur_topic['last_post_id'].'">'.format_time($cur_topic['last_post']).'</a> '.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['last_poster']); | 590: $last_post = '<a href="viewtopic.php?pid='.$cur_topic['last_post_id'].'#p'.$cur_topic['last_post_id'].'">'.format_time($cur_topic['last_post']).'</a> '.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['last_poster']); |
601: $subject = '<a href="viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span>'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span>'; | 605: $subject = '<a href="viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span>'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span>'; |
602: else | 606: else |
603: { | 607: { |
604: $subject = '<a class="showclosed" href="viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span>'; | 608: $subject = '<a href="viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span>'; |
605: $icon = '<div class="iclosed"><div class="nosize">'.$lang_common['Closed icon'].'</div></div>'."\n"; | 609: $icon_text = $lang_common['Closed icon']; |
| 610: $item_status = 'iclosed'; |
606: } | 611: } |
607: | 612: |
608: if ($cur_topic['last_post'] > $pun_user['last_visit'] && !$ghost_topic) | 613: if ($cur_topic['last_post'] > $pun_user['last_visit'] && !$ghost_topic) |
609: { | 614: { |
610: $icon = '<div class="inew"><div class="nosize">'.$lang_common['New icon'].'</div></div>'."\n"; | 615: $icon_text .= ' '.$lang_common['New icon']; |
611: | 616: $item_status .= ' inew'; |
| 617: $icon_type = 'icon inew'; |
612: $subject = '<strong>'.$subject.'</strong>'; | 618: $subject = '<strong>'.$subject.'</strong>'; |
613: $subject_new_posts = '[ <a href="viewtopic.php?id='.$cur_topic['id'].'&action=new" title="'.$lang_common['New posts info'].'">'.$lang_common['New posts'].'</a> ]'; | 619: $subject_new_posts = '<span class="newtext">[ <a href="viewtopic.php?id='.$cur_topic['id'].'&action=new" title="'.$lang_common['New posts info'].'">'.$lang_common['New posts'].'</a> ]</span>'; |
614: } | 620: } |
615: else | 621: else |
616: $subject_new_posts = null; | 622: $subject_new_posts = null; |
620: $subject = ' '.$subject; | 626: $subject = ' '.$subject; |
621: | 627: |
622: if ($cur_topic['sticky'] == '1') | 628: if ($cur_topic['sticky'] == '1') |
623: $subject = $lang_forum['Sticky'].': '.$subject; | 629: { |
624: | 630: $subject = '<span class="stickytext">'.$lang_forum['Sticky'].': </span>'.$subject; |
| 631: $item_status .= ' isticky'; |
| 632: $icon_text .= ' '.$lang_forum['Sticky']; |
| 633: } |
625: | 634: |
626: $num_pages_topic = ceil(($cur_topic['num_replies'] + 1) / $pun_user['disp_posts']); | 635: $num_pages_topic = ceil(($cur_topic['num_replies'] + 1) / $pun_user['disp_posts']); |
627: | 636: |
638: } | 647: } |
639: | 648: |
640: ?> | 649: ?> |
641: <tr> | 650: <tr<?php if ($item_status != '') echo ' class="'.trim($item_status).'"'; ?>> |
642: <td class="tcl"> | 651: <td class="tcl"> |
643: <?php echo $icon ?> | 652: <div class="<?php echo $icon_type ?>"><div class="nosize"><?php echo trim($icon_text) ?></div></div> |
644: <div class="tclcon"> | 653: <div class="tclcon"> |
645: <?php echo $subject."\n" ?> | 654: <?php echo $subject."\n" ?> |
646: </div> | 655: </div> |
punbb-1.2/upload/plugins/AMP_Example.php |
punbb-1.2.1/upload/plugins/AMP_Example.php |
1: <?php | 1: <?php |
| 2: /*********************************************************************** |
| 3: |
| 4: Copyright (C) 2002-2005 Rickard Andersson (rickard@punbb.org) |
| 5: |
| 6: This file is part of PunBB. |
| 7: |
| 8: PunBB is free software; you can redistribute it and/or modify it |
| 9: under the terms of the GNU General Public License as published |
| 10: by the Free Software Foundation; either version 2 of the License, |
| 11: or (at your option) any later version. |
| 12: |
| 13: PunBB is distributed in the hope that it will be useful, but |
| 14: WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16: GNU General Public License for more details. |
| 17: |
| 18: You should have received a copy of the GNU General Public License |
| 19: along with this program; if not, write to the Free Software |
| 20: Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 21: MA 02111-1307 USA |
| 22: |
| 23: ************************************************************************/ |
| 24: |
2: ## | 25: ## |
3: ## | 26: ## |
4: ## A few notes of interest for aspiring plugin authors: | 27: ## A few notes of interest for aspiring plugin authors: |
36: ## plugins. If you create your own styles they need to be added to | 59: ## plugins. If you create your own styles they need to be added to |
37: ## the "base_admin" style sheet. | 60: ## the "base_admin" style sheet. |
38: ## | 61: ## |
39: ## 8. Consider releasing your plugins under the GNU General Public | 62: ## 8. Plugins must be released under the GNU General Public License or |
40: ## License (or equivalent). | 63: ## a GPL compatible license. Copy the GPL preamble at the top of |
| 64: ## this file into your plugin script and alter the copyright notice |
| 65: ## to refrect the author of the plugin (i.e. you). |
41: ## | 66: ## |
42: ## | 67: ## |
43: | 68: |
| 69: |
| 70: // Make sure no one attempts to run this script "directly" |
| 71: if (!defined('PUN')) |
| 72: exit; |
44: | 73: |
45: // Tell admin_loader.php that this is indeed a plugin and that it is loaded | 74: // Tell admin_loader.php that this is indeed a plugin and that it is loaded |
46: define('PUN_PLUGIN_LOADED', 1); | 75: define('PUN_PLUGIN_LOADED', 1); |
punbb-1.2/upload/profile.php |
punbb-1.2.1/upload/profile.php |
27: require PUN_ROOT.'include/common.php'; | 27: require PUN_ROOT.'include/common.php'; |
28: | 28: |
29: | 29: |
30: if ($pun_user['g_read_board'] == '0' && !isset($_GET['key'])) | |
31: message($lang_common['No view']); | |
32: | |
33: | |
34: $action = isset($_GET['action']) ? $_GET['action'] : null; | 30: $action = isset($_GET['action']) ? $_GET['action'] : null; |
35: $section = isset($_GET['section']) ? $_GET['section'] : null; | 31: $section = isset($_GET['section']) ? $_GET['section'] : null; |
36: $id = isset($_GET['id']) ? intval($_GET['id']) : 0; | 32: $id = isset($_GET['id']) ? intval($_GET['id']) : 0; |
37: if ($id < 2) | 33: if ($id < 2) |
38: message($lang_common['Bad request']); | 34: message($lang_common['Bad request']); |
39: | 35: |
| 36: if ($pun_user['g_read_board'] == '0' && ($action != 'change_pass' || !isset($_GET['key']))) |
| 37: message($lang_common['No view']); |
| 38: |
40: // Load the profile.php/register.php language file | 39: // Load the profile.php/register.php language file |
41: require PUN_ROOT.'lang/'.$pun_user['language'].'/prof_reg.php'; | 40: require PUN_ROOT.'lang/'.$pun_user['language'].'/prof_reg.php'; |
42: | 41: |
324: message($lang_profile['No file']); | 323: message($lang_profile['No file']); |
325: break; | 324: break; |
326: | 325: |
| 326: case 6: // UPLOAD_ERR_NO_TMP_DIR |
| 327: message($lang_profile['No tmp directory']); |
| 328: break; |
| 329: |
327: default: | 330: default: |
328: // No error occured, but was something actually uploaded? | 331: // No error occured, but was something actually uploaded? |
329: if ($uploaded_file['size'] == 0) | 332: if ($uploaded_file['size'] == 0) |
395: <div class="infldset"> | 398: <div class="infldset"> |
396: <input type="hidden" name="form_sent" value="1" /> | 399: <input type="hidden" name="form_sent" value="1" /> |
397: <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $pun_config['o_avatars_size'] ?>" /> | 400: <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $pun_config['o_avatars_size'] ?>" /> |
398: <p><?php echo $lang_profile['Avatar desc'].' '.$pun_config['o_avatars_width'].' x '.$pun_config['o_avatars_height'].' '.$lang_profile['pixels'].' '.$lang_common['and'].' '.$pun_config['o_avatars_size'].' '.$lang_profile['bytes'].' ('.ceil($pun_config['o_avatars_size'] / 1024) ?> KB).</p> | |
399: <label><strong><?php echo $lang_profile['File'] ?></strong><br /><input name="req_file" type="file" size="40" /><br /></label> | 401: <label><strong><?php echo $lang_profile['File'] ?></strong><br /><input name="req_file" type="file" size="40" /><br /></label> |
| 402: <p><?php echo $lang_profile['Avatar desc'].' '.$pun_config['o_avatars_width'].' x '.$pun_config['o_avatars_height'].' '.$lang_profile['pixels'].' '.$lang_common['and'].' '.$pun_config['o_avatars_size'].' '.$lang_profile['bytes'].' ('.ceil($pun_config['o_avatars_size'] / 1024) ?> KB).</p> |
400: </div> | 403: </div> |
401: </fieldset> | 404: </fieldset> |
402: </div> | 405: </div> |
601: <div class="rbox"> | 604: <div class="rbox"> |
602: <label><input type="checkbox" name="delete_posts" value="1" checked="checked" /><?php echo $lang_profile['Delete posts'] ?><br /></label> | 605: <label><input type="checkbox" name="delete_posts" value="1" checked="checked" /><?php echo $lang_profile['Delete posts'] ?><br /></label> |
603: </div> | 606: </div> |
604: <p><strong class="showhot"><?php echo $lang_profile['Delete warning'] ?></strong></p> | 607: <p class="warntext"><strong><?php echo $lang_profile['Delete warning'] ?></strong></p> |
605: </div> | 608: </div> |
606: </fieldset> | 609: </fieldset> |
607: </div> | 610: </div> |
654: { | 657: { |
655: case 'essentials': | 658: case 'essentials': |
656: { | 659: { |
657: $form = extract_elements(array('timezone', 'language', 'style')); | 660: $form = extract_elements(array('timezone', 'language')); |
658: | 661: |
659: if ($pun_user['g_id'] < PUN_GUEST) | 662: if ($pun_user['g_id'] < PUN_GUEST) |
660: { | 663: { |
1286: <div class="rbox"> | 1289: <div class="rbox"> |
1287: <label><input type="checkbox" name="form[use_avatar]" value="1"<?php if ($user['use_avatar'] == '1') echo ' checked="checked"' ?> /><?php echo $lang_profile['Use avatar'] ?><br /></label> | 1290: <label><input type="checkbox" name="form[use_avatar]" value="1"<?php if ($user['use_avatar'] == '1') echo ' checked="checked"' ?> /><?php echo $lang_profile['Use avatar'] ?><br /></label> |
1288: </div> | 1291: </div> |
1289: <p><?php echo $avatar_field ?></p> | 1292: <p class="clearb"><?php echo $avatar_field ?></p> |
1290: </div> | 1293: </div> |
1291: </fieldset> | 1294: </fieldset> |
1292: </div> | 1295: </div> |
1393: <fieldset> | 1396: <fieldset> |
1394: <legend><?php echo $lang_profile['Pagination legend'] ?></legend> | 1397: <legend><?php echo $lang_profile['Pagination legend'] ?></legend> |
1395: <div class="infldset"> | 1398: <div class="infldset"> |
1396: <p><?php echo $lang_profile['Paginate info'] ?> <?php echo $lang_profile['Leave blank'] ?></p> | |
1397: <label class="conl"><?php echo $lang_profile['Topics per page'] ?><br /><input type="text" name="form[disp_topics]" value="<?php echo $user['disp_topics'] ?>" size="6" maxlength="3" /><br /></label> | 1399: <label class="conl"><?php echo $lang_profile['Topics per page'] ?><br /><input type="text" name="form[disp_topics]" value="<?php echo $user['disp_topics'] ?>" size="6" maxlength="3" /><br /></label> |
1398: <label class="conl"><?php echo $lang_profile['Posts per page'] ?><br /><input type="text" name="form[disp_posts]" value="<?php echo $user['disp_posts'] ?>" size="6" maxlength="3" /><br /></label> | 1400: <label class="conl"><?php echo $lang_profile['Posts per page'] ?><br /><input type="text" name="form[disp_posts]" value="<?php echo $user['disp_posts'] ?>" size="6" maxlength="3" /><br /></label> |
1399: <div class="clearer"></div> | 1401: <p class="clearb"><?php echo $lang_profile['Paginate info'] ?> <?php echo $lang_profile['Leave blank'] ?></p> |
1400: </div> | 1402: </div> |
1401: </fieldset> | 1403: </fieldset> |
1402: </div> | 1404: </div> |
1516: </div> | 1518: </div> |
1517: <?php | 1519: <?php |
1518: | 1520: |
1519: if ($user['g_id'] < PUN_GUEST) | 1521: if ($user['g_id'] == PUN_MOD || $user['g_id'] == PUN_ADMIN) |
1520: { | 1522: { |
1521: | 1523: |
1522: ?> | 1524: ?> |
punbb-1.2/upload/search.php |
punbb-1.2.1/upload/search.php |
62: // If it's a regular search (keywords and/or author) | 62: // If it's a regular search (keywords and/or author) |
63: else if ($action == 'search') | 63: else if ($action == 'search') |
64: { | 64: { |
65: $keywords = (isset($_GET['keywords'])) ? trim($_GET['keywords']) : null; | 65: $keywords = (isset($_GET['keywords'])) ? strtolower(trim($_GET['keywords'])) : null; |
66: $author = (isset($_GET['author'])) ? trim($_GET['author']) : null; | 66: $author = (isset($_GET['author'])) ? strtolower(trim($_GET['author'])) : null; |
67: | 67: |
68: if (!$keywords && !$author) | 68: if (!$keywords && !$author) |
69: message($lang_search['No terms']); | 69: message($lang_search['No terms']); |
162: } | 162: } |
163: | 163: |
164: $word_count = 0; | 164: $word_count = 0; |
165: $match_type = 'or'; | 165: $match_type = 'and'; |
166: @reset($keywords_array); | 166: @reset($keywords_array); |
167: while (list(, $cur_word) = @each($keywords_array)) | 167: while (list(, $cur_word) = @each($keywords_array)) |
168: { | 168: { |
297: | 297: |
298: $num_hits = count($search_ids); | 298: $num_hits = count($search_ids); |
299: } | 299: } |
300: else if ($forum_sql != '') | 300: else |
301: { | 301: { |
302: $result = $db->query('SELECT p.id FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'topics AS t ON t.id=p.topic_id INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND p.id IN('.implode(',', $search_ids).')'.$forum_sql, true) or error('Unable to fetch topic list', __FILE__, __LINE__, $db->error()); | 302: $result = $db->query('SELECT p.id FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'topics AS t ON t.id=p.topic_id INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND p.id IN('.implode(',', $search_ids).')'.$forum_sql, true) or error('Unable to fetch topic list', __FILE__, __LINE__, $db->error()); |
303: | 303: |
506: <div class="box"> | 506: <div class="box"> |
507: <div class="inbox"> | 507: <div class="inbox"> |
508: <table cellspacing="0"> | 508: <table cellspacing="0"> |
509: <colgroup> | |
510: <col class="tcl" /> | |
511: <col class="tc2" /> | |
512: <col class="tc3" /> | |
513: <col class="tcr" /> | |
514: </colgroup> | |
515: <thead> | 509: <thead> |
516: <tr> | 510: <tr> |
517: <th class="tcl" scope="col"><?php echo $lang_common['Topic']; ?></th> | 511: <th class="tcl" scope="col"><?php echo $lang_common['Topic']; ?></th> |
548: | 542: |
549: if ($show_as == 'posts') | 543: if ($show_as == 'posts') |
550: { | 544: { |
551: $icon = '<div class="inormal"><div class="nosize">'.$lang_common['Normal icon'].'</div></div>'."\n"; | 545: $icon = '<div class="icon"><div class="nosize">'.$lang_common['Normal icon'].'</div></div>'."\n"; |
552: $subject = '<a href="viewtopic.php?id='.$search_set[$i]['tid'].'">'.pun_htmlspecialchars($search_set[$i]['subject']).'</a>'; | 546: $subject = '<a href="viewtopic.php?id='.$search_set[$i]['tid'].'">'.pun_htmlspecialchars($search_set[$i]['subject']).'</a>'; |
553: | 547: |
554: if (!$pun_user['is_guest'] && $search_set[$i]['last_post'] > $pun_user['last_visit']) | 548: if (!$pun_user['is_guest'] && $search_set[$i]['last_post'] > $pun_user['last_visit']) |
555: $icon = '<div class="inew"><div class="nosize">'.$lang_common['New icon'].'</div></div>'."\n"; | 549: $icon = '<div class="icon inew"><div class="nosize">'.$lang_common['New icon'].'</div></div>'."\n"; |
556: | 550: |
557: | 551: |
558: if ($pun_config['o_censoring'] == '1') | 552: if ($pun_config['o_censoring'] == '1') |
601: } | 595: } |
602: else | 596: else |
603: { | 597: { |
604: $icon = '<div class="inormal"><div class="nosize">'.$lang_common['Normal icon'].'</div></div>'."\n"; | 598: $icon = '<div class="icon"><div class="nosize">'.$lang_common['Normal icon'].'</div></div>'."\n"; |
605: | 599: |
606: if ($search_set[$i]['closed'] != '1') | 600: $icon_text = $lang_common['Normal icon']; |
607: $subject = '<a href="viewtopic.php?id='.$search_set[$i]['tid'].'">'.pun_htmlspecialchars($search_set[$i]['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($search_set[$i]['poster']).'</span>'; | 601: $item_status = ''; |
608: else | 602: $icon_type = 'icon'; |
609: $subject = '<a class="showclosed" href="viewtopic.php?id='.$search_set[$i]['tid'].'">'.pun_htmlspecialchars($search_set[$i]['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($search_set[$i]['poster']).'</span>'; | 603: |
| 604: |
| 605: $subject = '<a href="viewtopic.php?id='.$search_set[$i]['tid'].'">'.pun_htmlspecialchars($search_set[$i]['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($search_set[$i]['poster']).'</span>'; |
| 606: |
| 607: if ($search_set[$i]['closed'] != '0') |
| 608: { |
| 609: $icon_text = $lang_common['Closed icon']; |
| 610: $item_status = 'iclosed'; |
| 611: } |
610: | 612: |
611: if (!$pun_user['is_guest'] && $search_set[$i]['last_post'] > $pun_user['last_visit']) | 613: if (!$pun_user['is_guest'] && $search_set[$i]['last_post'] > $pun_user['last_visit']) |
612: { | 614: { |
613: $icon = '<div class="inew"><div class="nosize">'.$lang_common['New icon'].'</div></div>'."\n"; | 615: $icon_text .= ' '.$lang_common['New icon']; |
| 616: $item_status .= ' inew'; |
| 617: $icon_type = 'icon inew'; |
614: $subject = '<strong>'.$subject.'</strong>'; | 618: $subject = '<strong>'.$subject.'</strong>'; |
615: $subject_new_posts = '[ <a href="viewtopic.php?id='.$search_set[$i]['tid'].'&action=new" title="'.$lang_common['New posts info'].'">'.$lang_common['New posts'].'</a> ]'; | 619: $subject_new_posts = '<span class="newtext">[ <a href="viewtopic.php?id='.$search_set[$i]['tid'].'&action=new" title="'.$lang_common['New posts info'].'">'.$lang_common['New posts'].'</a> ]</span>'; |
616: } | 620: } |
617: else | 621: else |
618: $subject_new_posts = null; | 622: $subject_new_posts = null; |
632: } | 636: } |
633: | 637: |
634: ?> | 638: ?> |
635: <tr> | 639: <tr<?php if ($item_status != '') echo ' class="'.trim($item_status).'"'; ?>> |
636: <td class="tcl"> | 640: <td class="tcl"> |
637: <div class="intd"> | 641: <div class="intd"> |
638: <?php echo $icon ?> | 642: <div class="<?php echo $icon_type ?>"><div class="nosize"><?php echo trim($icon_text) ?></div></div> |
639: <div class="tclcon"> | 643: <div class="tclcon"> |
640: <?php echo $subject."\n" ?> | 644: <?php echo $subject."\n" ?> |
641: </div> | 645: </div> |
683: <legend><?php echo $lang_search['Search criteria legend'] ?></legend> | 687: <legend><?php echo $lang_search['Search criteria legend'] ?></legend> |
684: <div class="infldset"> | 688: <div class="infldset"> |
685: <input type="hidden" name="action" value="search" /> | 689: <input type="hidden" name="action" value="search" /> |
686: <p><?php echo $lang_search['Search info'] ?></p> | |
687: <label class="conl"><?php echo $lang_search['Keyword search'] ?><br /><input type="text" name="keywords" size="40" maxlength="100" /><br /></label> | 690: <label class="conl"><?php echo $lang_search['Keyword search'] ?><br /><input type="text" name="keywords" size="40" maxlength="100" /><br /></label> |
688: <label class="conl"><?php echo $lang_search['Author search'] ?><br /><input id="author" type="text" name="author" size="25" maxlength="25" /><br /></label> | 691: <label class="conl"><?php echo $lang_search['Author search'] ?><br /><input id="author" type="text" name="author" size="25" maxlength="25" /><br /></label> |
689: <div class="clearer"></div> | 692: <p class="clearb"><?php echo $lang_search['Search info'] ?></p> |
690: </div> | 693: </div> |
691: </fieldset> | 694: </fieldset> |
692: </div> | 695: </div> |
694: <fieldset> | 697: <fieldset> |
695: <legend><?php echo $lang_search['Search in legend'] ?></legend> | 698: <legend><?php echo $lang_search['Search in legend'] ?></legend> |
696: <div class="infldset"> | 699: <div class="infldset"> |
697: <p><?php echo $lang_search['Search in info'] ?></p> | |
698: <label class="conl"><?php echo $lang_search['Forum search'] ?> | 700: <label class="conl"><?php echo $lang_search['Forum search'] ?> |
699: <br /><select id="forum" name="forum"> | 701: <br /><select id="forum" name="forum"> |
700: <?php | 702: <?php |
730: <option value="topic"><?php echo $lang_search['Topic only'] ?></option> | 732: <option value="topic"><?php echo $lang_search['Topic only'] ?></option> |
731: </select> | 733: </select> |
732: <br /></label> | 734: <br /></label> |
733: <div class="clearer"></div> | 735: <p class="clearb"><?php echo $lang_search['Search in info'] ?></p> |
734: </div> | 736: </div> |
735: </fieldset> | 737: </fieldset> |
736: </div> | 738: </div> |
738: <fieldset> | 740: <fieldset> |
739: <legend><?php echo $lang_search['Search results legend'] ?></legend> | 741: <legend><?php echo $lang_search['Search results legend'] ?></legend> |
740: <div class="infldset"> | 742: <div class="infldset"> |
741: <p><?php echo $lang_search['Search results info'] ?></p> | |
742: <label class="conl"><?php echo $lang_search['Sort by'] ?> | 743: <label class="conl"><?php echo $lang_search['Sort by'] ?> |
743: <br /><select name="sort_by"> | 744: <br /><select name="sort_by"> |
744: <option value="0"><?php echo $lang_search['Sort by post time'] ?></option> | 745: <option value="0"><?php echo $lang_search['Sort by post time'] ?></option> |
759: <option value="posts"><?php echo $lang_search['Show as posts'] ?></option> | 760: <option value="posts"><?php echo $lang_search['Show as posts'] ?></option> |
760: </select> | 761: </select> |
761: <br /></label> | 762: <br /></label> |
762: <div class="clearer"></div> | 763: <p class="clearb"><?php echo $lang_search['Search results info'] ?></p> |
763: </div> | 764: </div> |
764: </fieldset> | 765: </fieldset> |
765: </div> | 766: </div> |
punbb-1.2/upload/style/Cobalt.css |
punbb-1.2.1/upload/style/Cobalt.css |
7: /* Import the colour scheme */ | 7: /* Import the colour scheme */ |
8: @import url(imports/Cobalt_cs.css); | 8: @import url(imports/Cobalt_cs.css); |
9: | 9: |
10: /****************************************************************/ | 10: /****************************************************************/ |
11: /* 2. TEXT SETTINGS */ | 11: /* 2. TEXT SETTINGS */ |
12: /****************************************************************/ | 12: /****************************************************************/ |
13: | 13: |
14: /* 2.1 This sets the default Font Group */ | 14: /* 2.1 This sets the default Font Group */ |
15: | 15: |
16: .pun, .pun INPUT, .pun SELECT, .pun TEXTAREA, .pun OPTGROUP { | 16: .pun, .pun INPUT, .pun SELECT, .pun TEXTAREA, .pun OPTGROUP { |
17: FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif | 17: FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif |
18: } | 18: } |
19: | 19: |
20: .pun {FONT-SIZE: 10px} | 20: .pun {FONT-SIZE: 11px; LINE-HEIGHT: normal} |
21: | 21: |
22: /* IEWin Font Size only - to allow IEWin to zoom. Do not remove comments \*/ | 22: /* IEWin Font Size only - to allow IEWin to zoom. Do not remove comments \*/ |
23: * HTML BODY .pun {FONT-SIZE: 62.5%} | 23: * HTML .pun {FONT-SIZE: 68.75%} |
24: /* End IE Win Font Size */ | 24: /* End IE Win Font Size */ |
25: | 25: |
26: /* Set font size for tables for IE5 */ | 26: /* Set font size for tables because IE requires it */ |
27: * HTML .pun TABLE {FONT-SIZE: 1em} | 27: .pun TABLE, .pun INPUT, .pun SELECT, .pun OPTGROUP, .pun TEXTAREA, DIV.postmsg P.postedit {FONT-SIZE: 1em} |
28: | 28: |
29: /* 2.2 Set the font-size for preformatted text i.e in code boxes */ | 29: /* 2.2 Set the font-size for preformatted text i.e in code boxes */ |
30: | 30: |
31: .pun PRE {FONT-FAMILY: monaco, "Bitstream Vera Sans Mono", "Courier New", courier, monospace} | 31: .pun PRE {FONT-FAMILY: monaco, "Bitstream Vera Sans Mono", "Courier New", courier, monospace} |
32: | 32: |
33: /* 2.3 Font size for board title */ | 33: /* 2.3 Font size for headers */ |
34: | 34: |
35: #brdtitle H1 {FONT-SIZE: 1.5em} | 35: .pun H2, .pun H4 {FONT-SIZE: 1em} |
36: | 36: .pun H3 {FONT-SIZE: 1.1em} |
37: /* 2.4 Larger text for particular items */ | 37: #brdtitle H1 {FONT-SIZE: 1.4em} |
38: | 38: |
39: .pun H2, #viewprofile DL, #brdmenu, DIV.postmsg P, DIV.forminfo P, #puninstall DIV.block P, DIV.postsignature, | 39: /* 2.4 Larger text for particular items */ |
40: DIV.linkst LI, P.postlink, DIV.postmsg H4 {FONT-SIZE: 1.1em} | 40: DIV.postmsg P {LINE-HEIGHT: 1.4} |
41: | 41: DIV.postleft DT {FONT-SIZE: 1.1em} |
42: .pun H3, .pun PRE, DIV.postleft DT {FONT-SIZE: 1.2em} | 42: .pun PRE {FONT-SIZE: 1.2em} |
43: | 43: |
44: /* 2.5 Font sizes for form elements. */ | 44: /* 2.5 Bold text */ |
45: | 45: |
46: .pun TEXTAREA, .pun LEGEND, .pun LABEL, .pun INPUT, .pun SELECT, .pun OPTGROUP {FONT-SIZE: 1.1em} | 46: DIV.postleft DT, DIV.postmsg H4, TD.tcl H3, DIV.forminfo H3, P.postlink, DIV.linkst LI, |
47: .pun LABEL INPUT, .pun LABEL TEXTAREA, .pun LABEL SELECT, .pun LABEL OPTGROUP {font-size: 1em} | 47: DIV.linksb LI, DIV.postlinksb LI, .blockmenu LI, #brdtitle H1, .pun SPAN.warntext, .pun P.warntext {FONT-WEIGHT: bold} |
48: | 48: |
49: /* 2.6 Bold text */ | |
50: | |
51: DIV.postleft DT, DIV.postmsg H4, TD.tcl H3, DIV.forminfo H3, P.postlink, DIV.linkst LI, | |
52: .blockmenu LI, #brdtitle H1 {FONT-WEIGHT: bold} | |
53: | |
54: | |
55: /****************************************************************/ | 49: /****************************************************************/ |
56: /* 3. LINKS */ | 50: /* 3. LINKS */ |
57: /****************************************************************/ | 51: /****************************************************************/ |
58: | 52: |
59: /* 3.1 Remove underlining for main menu, post header links, post links and vertical menus */ | 53: /* 3.1 Remove underlining for main menu, post header links, post links and vertical menus */ |
60: | 54: |
61: #brdmenu A:link, #brdmenu A:visited, | 55: #brdmenu A:link, #brdmenu A:visited, .blockpost DT A:link, .blockpost DT A:visited, .blockpost H2 A:link, |
62: .blockpost DT A:link, .blockpost DT A:visited, .blockpost H2 A:link, .blockpost H2 A:visited, | 56: .blockpost H2 A:visited, .postlink A:link, .postlink A:visited, .postfootright A:link, .postfootright A:visited, |
63: .postlink A:link, .postlink A:visited, .postfootright A:link, .postfootright A:visited, .blockmenu A:link, .blockmenu A:visited | 57: .blockmenu A:link, .blockmenu A:visited { |
64: {TEXT-DECORATION: none} | 58: TEXT-DECORATION: none |
| 59: } |
65: | 60: |
66: /* 3.2 Underline on hover for links in headers and main menu */ | 61: /* 3.2 Underline on hover for links in headers and main menu */ |
67: | 62: |
97: BORDER-STYLE: solid; | 92: BORDER-STYLE: solid; |
98: BORDER-WIDTH: 1px | 93: BORDER-WIDTH: 1px |
99: } | 94: } |
100: | 95: |
101: /****************************************************************/ | 96: /****************************************************************/ |
102: /* 5. VERTICAL AND PAGE SPACING */ | 97: /* 5. VERTICAL AND PAGE SPACING */ |
103: /****************************************************************/ | 98: /****************************************************************/ |
187: } | 182: } |
188: | 183: |
189: P.multidelete { | 184: P.multidelete { |
190: PADDING-TOP: 10px; | 185: PADDING-TOP: 15px; |
191: PADDING-BOTTOM: 5px | 186: PADDING-BOTTOM: 5px |
192: } | 187: } |
193: | 188: |
226: /* 9.5 Horizontal positioning for the submit button on forms */ | 221: /* 9.5 Horizontal positioning for the submit button on forms */ |
227: | 222: |
228: DIV.blockform P INPUT {MARGIN-LEFT: 12px} | 223: DIV.blockform P INPUT {MARGIN-LEFT: 12px} |
229: | 224: |
| 225: /****************************************************************/ |
| 226: /* 10. POST STATUS INDICATORS */ |
| 227: /****************************************************************/ |
| 228: |
| 229: /* 10.1 These are the post status indicators which appear at the left of some tables. |
| 230: .inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and |
| 231: .isticky = sticky topics. By default only .inew is different from the default.*/ |
| 232: |
| 233: DIV.icon { |
| 234: FLOAT: left; |
| 235: MARGIN-TOP: 0.1em; |
| 236: MARGIN-LEFT: 0.2em; |
| 237: DISPLAY: block; |
| 238: BORDER-WIDTH: 0.6em 0.6em 0.6em 0.6em; |
| 239: BORDER-STYLE: solid |
| 240: } |
| 241: |
| 242: DIV.searchposts DIV.icon {MARGIN-LEFT: 0} |
| 243: |
| 244: /* 10.2 Class .tclcon is a div inside the first column of tables with post indicators. The |
| 245: margin creates space for the post status indicator */ |
| 246: |
| 247: TD DIV.tclcon {MARGIN-LEFT: 2.3em} |
| 248: |
| 249: |
230: | 250: |
231: | 251: |
232: | 252: |
punbb-1.2/upload/style/Lithium.css |
punbb-1.2.1/upload/style/Lithium.css |
6: @import url(imports/base.css); | 6: @import url(imports/base.css); |
7: /* Import the colour scheme */ | 7: /* Import the colour scheme */ |
8: @import url(imports/Lithium_cs.css); | 8: @import url(imports/Lithium_cs.css); |
9: | 9: |
10: /****************************************************************/ | 10: /****************************************************************/ |
11: /* 2. TEXT SETTINGS */ | 11: /* 2. TEXT SETTINGS */ |
12: /****************************************************************/ | 12: /****************************************************************/ |
13: | 13: |
14: /* 2.1 This sets the default Font Group */ | 14: /* 2.1 This sets the default Font Group */ |
15: | 15: |
16: .pun, .pun INPUT, .pun SELECT, .pun TEXTAREA, .pun OPTGROUP { | 16: .pun, .pun INPUT, .pun SELECT, .pun TEXTAREA, .pun OPTGROUP { |
17: FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif | 17: FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif |
18: } | 18: } |
19: | 19: |
20: .pun {FONT-SIZE: 10px} | 20: .pun {FONT-SIZE: 11px; LINE-HEIGHT: normal} |
21: | 21: |
22: /* IEWin Font Size only - to allow IEWin to zoom. Do not remove comments \*/ | 22: /* IEWin Font Size only - to allow IEWin to zoom. Do not remove comments \*/ |
23: * HTML BODY .pun {FONT-SIZE: 62.5%} | 23: * HTML .pun {FONT-SIZE: 68.75%} |
24: /* End IE Win Font Size */ | 24: /* End IE Win Font Size */ |
25: | 25: |
26: /* Set font size for tables for IE5 */ | 26: /* Set font size for tables because IE requires it */ |
27: * HTML .pun TABLE {FONT-SIZE: 1em} | 27: .pun TABLE, .pun INPUT, .pun SELECT, .pun OPTGROUP, .pun TEXTAREA, DIV.postmsg P.postedit {FONT-SIZE: 1em} |
28: | 28: |
29: /* 2.2 Set the font-size for preformatted text i.e in code boxes */ | 29: /* 2.2 Set the font-size for preformatted text i.e in code boxes */ |
30: | 30: |
31: .pun PRE {FONT-FAMILY: monaco, "Bitstream Vera Sans Mono", "Courier New", courier, monospace} | 31: .pun PRE {FONT-FAMILY: monaco, "Bitstream Vera Sans Mono", "Courier New", courier, monospace} |
32: | 32: |
33: /* 2.3 Font size for board title */ | 33: /* 2.3 Font size for headers */ |
34: | 34: |
35: #brdtitle H1 {FONT-SIZE: 1.5em} | 35: .pun H2, .pun H4 {FONT-SIZE: 1em} |
36: | 36: .pun H3 {FONT-SIZE: 1.1em} |
37: /* 2.4 Larger text for particular items */ | 37: #brdtitle H1 {FONT-SIZE: 1.4em} |
38: | 38: |
39: .pun H2, #viewprofile DL, #brdmenu, DIV.postmsg P, DIV.forminfo P, #puninstall DIV.block P, DIV.postsignature, | 39: /* 2.4 Larger text for particular items */ |
40: DIV.linkst LI, P.postlink, DIV.postmsg H4 {FONT-SIZE: 1.1em} | 40: DIV.postmsg P {LINE-HEIGHT: 1.4} |
41: | 41: DIV.postleft DT {FONT-SIZE: 1.1em} |
42: .pun H3, .pun PRE, DIV.postleft DT {FONT-SIZE: 1.2em} | 42: .pun PRE {FONT-SIZE: 1.2em} |
43: | 43: |
44: /* 2.5 Font sizes for form elements. */ | 44: /* 2.5 Bold text */ |
45: | 45: |
46: .pun TEXTAREA, .pun LEGEND, .pun LABEL, .pun INPUT, .pun SELECT, .pun OPTGROUP {FONT-SIZE: 1.1em} | 46: DIV.postleft DT, DIV.postmsg H4, TD.tcl H3, DIV.forminfo H3, P.postlink, DIV.linkst LI, |
47: .pun LABEL INPUT, .pun LABEL TEXTAREA, .pun LABEL SELECT, .pun LABEL OPTGROUP {font-size: 1em} | 47: DIV.linksb LI, DIV.postlinksb LI, .blockmenu LI, #brdtitle H1, .pun SPAN.warntext, .pun P.warntext {FONT-WEIGHT: bold} |
48: | |
49: /* 2.6 Bold text */ | |
50: | |
51: DIV.postleft DT, DIV.postmsg H4, TD.tcl H3, DIV.forminfo H3, P.postlink, DIV.linkst LI, | |
52: .blockmenu LI, #brdtitle H1 {FONT-WEIGHT: bold} | |
53: | |
54: | 48: |
55: /****************************************************************/ | 49: /****************************************************************/ |
56: /* 3. LINKS */ | 50: /* 3. LINKS */ |
58: | 52: |
59: /* 3.1 Remove underlining for main menu, post header links, post links and vertical menus */ | 53: /* 3.1 Remove underlining for main menu, post header links, post links and vertical menus */ |
60: | 54: |
61: #brdmenu A:link, #brdmenu A:visited, | 55: #brdmenu A:link, #brdmenu A:visited, .blockpost DT A:link, .blockpost DT A:visited, .blockpost H2 A:link, |
62: .blockpost DT A:link, .blockpost DT A:visited, .blockpost H2 A:link, .blockpost H2 A:visited, | 56: .blockpost H2 A:visited, .postlink A:link, .postlink A:visited, .postfootright A:link, .postfootright A:visited, |
63: .postlink A:link, .postlink A:visited, .postfootright A:link, .postfootright A:visited, .blockmenu A:link, .blockmenu A:visited | 57: .blockmenu A:link, .blockmenu A:visited { |
64: {TEXT-DECORATION: none} | 58: TEXT-DECORATION: none |
| 59: } |
65: | 60: |
66: /* 3.2 Underline on hover for links in headers and main menu */ | 61: /* 3.2 Underline on hover for links in headers and main menu */ |
67: | 62: |
97: BORDER-STYLE: solid; | 92: BORDER-STYLE: solid; |
98: BORDER-WIDTH: 1px | 93: BORDER-WIDTH: 1px |
99: } | 94: } |
100: | 95: |
101: /****************************************************************/ | 96: /****************************************************************/ |
102: /* 5. VERTICAL AND PAGE SPACING */ | 97: /* 5. VERTICAL AND PAGE SPACING */ |
103: /****************************************************************/ | 98: /****************************************************************/ |
187: } | 182: } |
188: | 183: |
189: P.multidelete { | 184: P.multidelete { |
190: PADDING-TOP: 10px; | 185: PADDING-TOP: 15px; |
191: PADDING-BOTTOM: 5px | 186: PADDING-BOTTOM: 5px |
192: } | 187: } |
193: | 188: |
226: /* 9.5 Horizontal positioning for the submit button on forms */ | 221: /* 9.5 Horizontal positioning for the submit button on forms */ |
227: | 222: |
228: DIV.blockform P INPUT {MARGIN-LEFT: 12px} | 223: DIV.blockform P INPUT {MARGIN-LEFT: 12px} |
229: | 224: |
| 225: /****************************************************************/ |
| 226: /* 10. POST STATUS INDICATORS */ |
| 227: /****************************************************************/ |
| 228: |
| 229: /* 10.1 These are the post status indicators which appear at the left of some tables. |
| 230: .inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and |
| 231: .isticky = sticky topics. By default only .inew is different from the default.*/ |
| 232: |
| 233: DIV.icon { |
| 234: FLOAT: left; |
| 235: MARGIN-TOP: 0.1em; |
| 236: MARGIN-LEFT: 0.2em; |
| 237: DISPLAY: block; |
| 238: BORDER-WIDTH: 0.6em 0.6em 0.6em 0.6em; |
| 239: BORDER-STYLE: solid |
| 240: } |
| 241: |
| 242: DIV.searchposts DIV.icon {MARGIN-LEFT: 0} |
| 243: |
| 244: /* 10.2 Class .tclcon is a div inside the first column of tables with post indicators. The |
| 245: margin creates space for the post status indicator */ |
| 246: |
| 247: TD DIV.tclcon {MARGIN-LEFT: 2.3em} |
| 248: |
| 249: |
230: | 250: |
231: | 251: |
232: | 252: |
punbb-1.2/upload/style/Mercury.css |
punbb-1.2.1/upload/style/Mercury.css |
7: /* Import the colour scheme */ | 7: /* Import the colour scheme */ |
8: @import url(imports/Mercury_cs.css); | 8: @import url(imports/Mercury_cs.css); |
9: | 9: |
10: /****************************************************************/ | 10: /****************************************************************/ |
11: /* 2. TEXT SETTINGS */ | 11: /* 2. TEXT SETTINGS */ |
12: /****************************************************************/ | 12: /****************************************************************/ |
13: | 13: |
14: /* 2.1 This sets the default Font Group */ | 14: /* 2.1 This sets the default Font Group */ |
15: | 15: |
16: .pun, .pun INPUT, .pun SELECT, .pun TEXTAREA, .pun OPTGROUP { | 16: .pun, .pun INPUT, .pun SELECT, .pun TEXTAREA, .pun OPTGROUP { |
17: FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif | 17: FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif |
18: } | 18: } |
19: | 19: |
20: .pun {FONT-SIZE: 10px} | 20: .pun {FONT-SIZE: 11px; LINE-HEIGHT: normal} |
21: | 21: |
22: /* IEWin Font Size only - to allow IEWin to zoom. Do not remove comments \*/ | 22: /* IEWin Font Size only - to allow IEWin to zoom. Do not remove comments \*/ |
23: * HTML BODY .pun {FONT-SIZE: 62.5%} | 23: * HTML .pun {FONT-SIZE: 68.75%} |
24: /* End IE Win Font Size */ | 24: /* End IE Win Font Size */ |
25: | 25: |
26: /* Set font size for tables for IE5 */ | 26: /* Set font size for tables because IE requires it */ |
27: * HTML .pun TABLE {FONT-SIZE: 1em} | 27: .pun TABLE, .pun INPUT, .pun SELECT, .pun OPTGROUP, .pun TEXTAREA, DIV.postmsg P.postedit {FONT-SIZE: 1em} |
28: | 28: |
29: /* 2.2 Set the font-size for preformatted text i.e in code boxes */ | 29: /* 2.2 Set the font-size for preformatted text i.e in code boxes */ |
30: | 30: |
31: .pun PRE {FONT-FAMILY: monaco, "Bitstream Vera Sans Mono", "Courier New", courier, monospace} | 31: .pun PRE {FONT-FAMILY: monaco, "Bitstream Vera Sans Mono", "Courier New", courier, monospace} |
32: | 32: |
33: /* 2.3 Font size for board title */ | 33: /* 2.3 Font size for headers */ |
34: | 34: |
35: #brdtitle H1 {FONT-SIZE: 1.5em} | 35: .pun H2, .pun H4 {FONT-SIZE: 1em} |
36: | 36: .pun H3 {FONT-SIZE: 1.1em} |
37: /* 2.4 Larger text for particular items */ | 37: #brdtitle H1 {FONT-SIZE: 1.4em} |
38: | 38: |
39: .pun H2, #viewprofile DL, #brdmenu, DIV.postmsg P, DIV.forminfo P, #puninstall DIV.block P, DIV.postsignature, | 39: /* 2.4 Larger text for particular items */ |
40: DIV.linkst LI, P.postlink, DIV.postmsg H4 {FONT-SIZE: 1.1em} | 40: DIV.postmsg P {LINE-HEIGHT: 1.4} |
41: | 41: DIV.postleft DT {FONT-SIZE: 1.1em} |
42: .pun H3, .pun PRE, DIV.postleft DT {FONT-SIZE: 1.2em} | 42: .pun PRE {FONT-SIZE: 1.2em} |
43: | 43: |
44: /* 2.5 Font sizes for form elements. */ | 44: /* 2.5 Bold text */ |
45: | 45: |
46: .pun TEXTAREA, .pun LEGEND, .pun LABEL, .pun INPUT, .pun SELECT, .pun OPTGROUP {FONT-SIZE: 1.1em} | 46: DIV.postleft DT, DIV.postmsg H4, TD.tcl H3, DIV.forminfo H3, P.postlink, DIV.linkst LI, |
47: .pun LABEL INPUT, .pun LABEL TEXTAREA, .pun LABEL SELECT, .pun LABEL OPTGROUP {font-size: 1em} | 47: DIV.linksb LI, DIV.postlinksb LI, .blockmenu LI, #brdtitle H1, .pun SPAN.warntext, .pun P.warntext {FONT-WEIGHT: bold} |
48: | 48: |
49: /* 2.6 Bold text */ | |
50: | |
51: DIV.postleft DT, DIV.postmsg H4, TD.tcl H3, DIV.forminfo H3, P.postlink, DIV.linkst LI, | |
52: .blockmenu LI, #brdtitle H1 {FONT-WEIGHT: bold} | |
53: | |
54: | |
55: /****************************************************************/ | 49: /****************************************************************/ |
56: /* 3. LINKS */ | 50: /* 3. LINKS */ |
57: /****************************************************************/ | 51: /****************************************************************/ |
58: | 52: |
59: /* 3.1 Remove underlining for main menu, post header links, post links and vertical menus */ | 53: /* 3.1 Remove underlining for main menu, post header links, post links and vertical menus */ |
60: | 54: |
61: #brdmenu A:link, #brdmenu A:visited, | 55: #brdmenu A:link, #brdmenu A:visited, .blockpost DT A:link, .blockpost DT A:visited, .blockpost H2 A:link, |
62: .blockpost DT A:link, .blockpost DT A:visited, .blockpost H2 A:link, .blockpost H2 A:visited, | 56: .blockpost H2 A:visited, .postlink A:link, .postlink A:visited, .postfootright A:link, .postfootright A:visited, |
63: .postlink A:link, .postlink A:visited, .postfootright A:link, .postfootright A:visited, .blockmenu A:link, .blockmenu A:visited | 57: .blockmenu A:link, .blockmenu A:visited { |
64: {TEXT-DECORATION: none} | 58: TEXT-DECORATION: none |
| 59: } |
65: | 60: |
66: /* 3.2 Underline on hover for links in headers and main menu */ | 61: /* 3.2 Underline on hover for links in headers and main menu */ |
67: | 62: |
97: BORDER-STYLE: solid; | 92: BORDER-STYLE: solid; |
98: BORDER-WIDTH: 1px | 93: BORDER-WIDTH: 1px |
99: } | 94: } |
100: | 95: |
101: /****************************************************************/ | 96: /****************************************************************/ |
102: /* 5. VERTICAL AND PAGE SPACING */ | 97: /* 5. VERTICAL AND PAGE SPACING */ |
103: /****************************************************************/ | 98: /****************************************************************/ |
187: } | 182: } |
188: | 183: |
189: P.multidelete { | 184: P.multidelete { |
190: PADDING-TOP: 10px; | 185: PADDING-TOP: 15px; |
191: PADDING-BOTTOM: 5px | 186: PADDING-BOTTOM: 5px |
192: } | 187: } |
193: | 188: |
226: /* 9.5 Horizontal positioning for the submit button on forms */ | 221: /* 9.5 Horizontal positioning for the submit button on forms */ |
227: | 222: |
228: DIV.blockform P INPUT {MARGIN-LEFT: 12px} | 223: DIV.blockform P INPUT {MARGIN-LEFT: 12px} |
229: | 224: |
| 225: /****************************************************************/ |
| 226: /* 10. POST STATUS INDICATORS */ |
| 227: /****************************************************************/ |
| 228: |
| 229: /* 10.1 These are the post status indicators which appear at the left of some tables. |
| 230: .inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and |
| 231: .isticky = sticky topics. By default only .inew is different from the default.*/ |
| 232: |
| 233: DIV.icon { |
| 234: FLOAT: left; |
| 235: MARGIN-TOP: 0.1em; |
| 236: MARGIN-LEFT: 0.2em; |
| 237: DISPLAY: block; |
| 238: BORDER-WIDTH: 0.6em 0.6em 0.6em 0.6em; |
| 239: BORDER-STYLE: solid |
| 240: } |
| 241: |
| 242: DIV.searchposts DIV.icon {MARGIN-LEFT: 0} |
| 243: |
| 244: /* 10.2 Class .tclcon is a div inside the first column of tables with post indicators. The |
| 245: margin creates space for the post status indicator */ |
| 246: |
| 247: TD DIV.tclcon {MARGIN-LEFT: 2.3em} |
| 248: |
| 249: |
230: | 250: |
231: | 251: |
232: | 252: |
punbb-1.2/upload/style/Oxygen.css |
punbb-1.2.1/upload/style/Oxygen.css |
17: FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif | 17: FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif |
18: } | 18: } |
19: | 19: |
20: .pun {FONT-SIZE: 10px} | 20: .pun {FONT-SIZE: 11px; LINE-HEIGHT: normal} |
21: | 21: |
22: /* IEWin Font Size only - to allow IEWin to zoom. Do not remove comments \*/ | 22: /* IEWin Font Size only - to allow IEWin to zoom. Do not remove comments \*/ |
23: * HTML BODY .pun {FONT-SIZE: 62.5%} | 23: * HTML .pun {FONT-SIZE: 68.75%} |
24: /* End IE Win Font Size */ | 24: /* End IE Win Font Size */ |
25: | 25: |
26: /* Set font size for tables for IE5 */ | 26: /* Set font size for tables because IE requires it */ |
27: * HTML .pun TABLE {FONT-SIZE: 1em} | 27: .pun TABLE, .pun INPUT, .pun SELECT, .pun OPTGROUP, .pun TEXTAREA, DIV.postmsg P.postedit {FONT-SIZE: 1em} |
28: | 28: |
29: /* 2.2 Set the font-size for preformatted text i.e in code boxes */ | 29: /* 2.2 Set the font-size for preformatted text i.e in code boxes */ |
30: | 30: |
31: .pun PRE {FONT-FAMILY: monaco, "Bitstream Vera Sans Mono", "Courier New", courier, monospace} | 31: .pun PRE {FONT-FAMILY: monaco, "Bitstream Vera Sans Mono", "Courier New", courier, monospace} |
32: | 32: |
33: /* 2.3 Font size for board title */ | 33: /* 2.3 Font size for headers */ |
34: | 34: |
35: #brdtitle H1 {FONT-SIZE: 1.5em} | 35: .pun H2, .pun H4 {FONT-SIZE: 1em} |
| 36: .pun H3 {FONT-SIZE: 1.1em} |
| 37: #brdtitle H1 {FONT-SIZE: 1.4em} |
36: | 38: |
37: /* 2.4 Larger text for particular items */ | 39: /* 2.4 Larger text for particular items */ |
| 40:
DIV.postmsg P {LINE-HEIGHT: 1.4} |
| 41: DIV.postleft DT {FONT-SIZE: 1.1em} |
| 42: .pun PRE {FONT-SIZE: 1.2em} |
38: | 43: |
39: .pun H2, #viewprofile DL, #brdmenu, DIV.postmsg P, DIV.forminfo P, #puninstall DIV.block P, DIV.postsignature, | 44: /* 2.5 Bold text */ |
40: DIV.linkst LI, P.postlink, DIV.postmsg H4 {FONT-SIZE: 1.1em} | |
41: | |
42: .pun H3, .pun PRE, DIV.postleft DT {FONT-SIZE: 1.2em} | |
43: | |
44: /* 2.5 Font sizes for form elements. */ | |
45: | |
46: .pun TEXTAREA, .pun LEGEND, .pun LABEL, .pun INPUT, .pun SELECT, .pun OPTGROUP {FONT-SIZE: 1.1em} | |
47: .pun LABEL INPUT, .pun LABEL TEXTAREA, .pun LABEL SELECT, .pun LABEL OPTGROUP {font-size: 1em} | |
48: | |
49: /* 2.6 Bold text */ | |
50: | |
51: DIV.postleft DT, DIV.postmsg H4, TD.tcl H3, DIV.forminfo H3, P.postlink, DIV.linkst LI, | |
52: .blockmenu LI, #brdtitle H1 {FONT-WEIGHT: bold} | |
53: | 45: |
| 46: DIV.postleft DT, DIV.postmsg H4, TD.tcl H3, DIV.forminfo H3, P.postlink, DIV.linkst LI, |
| 47: DIV.linksb LI, DIV.postlinksb LI, .blockmenu LI, #brdtitle H1, .pun SPAN.warntext, .pun P.warntext {FONT-WEIGHT: bold} |
54: | 48: |
55: /****************************************************************/ | 49: /****************************************************************/ |
56: /* 3. LINKS */ | 50: /* 3. LINKS */ |
58: | 52: |
59: /* 3.1 Remove underlining for main menu, post header links, post links and vertical menus */ | 53: /* 3.1 Remove underlining for main menu, post header links, post links and vertical menus */ |
60: | 54: |
61: #brdmenu A:link, #brdmenu A:visited, | 55: #brdmenu A:link, #brdmenu A:visited, .blockpost DT A:link, .blockpost DT A:visited, .blockpost H2 A:link, |
62: .blockpost DT A:link, .blockpost DT A:visited, .blockpost H2 A:link, .blockpost H2 A:visited, | 56: .blockpost H2 A:visited, .postlink A:link, .postlink A:visited, .postfootright A:link, .postfootright A:visited, |
63: .postlink A:link, .postlink A:visited, .postfootright A:link, .postfootright A:visited, .blockmenu A:link, .blockmenu A:visited | 57: .blockmenu A:link, .blockmenu A:visited { |
64: {TEXT-DECORATION: none} | 58: TEXT-DECORATION: none |
| 59: } |
65: | 60: |
66: /* 3.2 Underline on hover for links in headers and main menu */ | 61: /* 3.2 Underline on hover for links in headers and main menu */ |
67: | 62: |
97: BORDER-STYLE: solid; | 92: BORDER-STYLE: solid; |
98: BORDER-WIDTH: 1px | 93: BORDER-WIDTH: 1px |
99: } | 94: } |
100: | 95: |
101: /****************************************************************/ | 96: /****************************************************************/ |
102: /* 5. VERTICAL AND PAGE SPACING */ | 97: /* 5. VERTICAL AND PAGE SPACING */ |
103: /****************************************************************/ | 98: /****************************************************************/ |
226: /* 9.5 Horizontal positioning for the submit button on forms */ | 221: /* 9.5 Horizontal positioning for the submit button on forms */ |
227: | 222: |
228: DIV.blockform P INPUT {MARGIN-LEFT: 12px} | 223: DIV.blockform P INPUT {MARGIN-LEFT: 12px} |
229: | 224: |
| 225: /****************************************************************/ |
| 226: /* 10. POST STATUS INDICATORS */ |
| 227: /****************************************************************/ |
| 228: |
| 229: /* 10.1 These are the post status indicators which appear at the left of some tables. |
| 230: .inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and |
| 231: .isticky = sticky topics. By default only .inew is different from the default.*/ |
| 232: |
| 233: DIV.icon { |
| 234: FLOAT: left; |
| 235: MARGIN-TOP: 0.1em; |
| 236: MARGIN-LEFT: 0.2em; |
| 237: DISPLAY: block; |
| 238: BORDER-WIDTH: 0.6em 0.6em 0.6em 0.6em; |
| 239: BORDER-STYLE: solid |
| 240: } |
| 241: |
| 242: DIV.searchposts DIV.icon {MARGIN-LEFT: 0} |
| 243: |
| 244: /* 10.2 Class .tclcon is a div inside the first column of tables with post indicators. The |
| 245: margin creates space for the post status indicator */ |
| 246: |
| 247: TD DIV.tclcon {MARGIN-LEFT: 2.3em} |
| 248: |
| 249: |
230: | 250: |
231: | 251: |
232: | 252: |
punbb-1.2/upload/style/Radium.css |
punbb-1.2.1/upload/style/Radium.css |
7: /* Import the colour scheme */ | 7: /* Import the colour scheme */ |
8: @import url(imports/Radium_cs.css); | 8: @import url(imports/Radium_cs.css); |
9: | 9: |
10: /****************************************************************/ | 10: /****************************************************************/ |
11: /* 2. TEXT SETTINGS */ | 11: /* 2. TEXT SETTINGS */ |
12: /****************************************************************/ | 12: /****************************************************************/ |
13: | 13: |
14: /* 2.1 This sets the default Font Group */ | 14: /* 2.1 This sets the default Font Group */ |
15: | 15: |
16: .pun, .pun INPUT, .pun SELECT, .pun TEXTAREA, .pun OPTGROUP { | 16: .pun, .pun INPUT, .pun SELECT, .pun TEXTAREA, .pun OPTGROUP { |
17: FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif | 17: FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif |
18: } | 18: } |
19: | 19: |
20: .pun {FONT-SIZE: 10px} | 20: .pun {FONT-SIZE: 11px; LINE-HEIGHT: normal} |
21: | 21: |
22: /* IEWin Font Size only - to allow IEWin to zoom. Do not remove comments \*/ | 22: /* IEWin Font Size only - to allow IEWin to zoom. Do not remove comments \*/ |
23: * HTML BODY .pun {FONT-SIZE: 62.5%} | 23: * HTML .pun {FONT-SIZE: 68.75%} |
24: /* End IE Win Font Size */ | 24: /* End IE Win Font Size */ |
25: | 25: |
26: /* Set font size for tables for IE5 */ | 26: /* Set font size for tables because IE requires it */ |
27: * HTML .pun TABLE {FONT-SIZE: 1em} | 27: .pun TABLE, .pun INPUT, .pun SELECT, .pun OPTGROUP, .pun TEXTAREA, DIV.postmsg P.postedit {FONT-SIZE: 1em} |
28: | 28: |
29: /* 2.2 Set the font-size for preformatted text i.e in code boxes */ | 29: /* 2.2 Set the font-size for preformatted text i.e in code boxes */ |
30: | 30: |
31: .pun PRE {FONT-FAMILY: monaco, "Bitstream Vera Sans Mono", "Courier New", courier, monospace} | 31: .pun PRE {FONT-FAMILY: monaco, "Bitstream Vera Sans Mono", "Courier New", courier, monospace} |
32: | 32: |
33: /* 2.3 Font size for board title */ | 33: /* 2.3 Font size for headers */ |
34: | 34: |
35: #brdtitle H1 {FONT-SIZE: 1.5em} | 35: .pun H2, .pun H4 {FONT-SIZE: 1em} |
36: | 36: .pun H3 {FONT-SIZE: 1.1em} |
37: /* 2.4 Larger text for particular items */ | 37: #brdtitle H1 {FONT-SIZE: 1.4em} |
38: | 38: |
39: .pun H2, #viewprofile DL, #brdmenu, DIV.postmsg P, DIV.forminfo P, #puninstall DIV.block P, DIV.postsignature, | 39: /* 2.4 Larger text for particular items */ |
40: DIV.linkst LI, P.postlink, DIV.postmsg H4 {FONT-SIZE: 1.1em} | 40: DIV.postmsg P {LINE-HEIGHT: 1.4} |
41: | 41: DIV.postleft DT {FONT-SIZE: 1.1em} |
42: .pun H3, .pun PRE, DIV.postleft DT {FONT-SIZE: 1.2em} | 42: .pun PRE {FONT-SIZE: 1.2em} |
43: | 43: |
44: /* 2.5 Font sizes for form elements. */ | 44: /* 2.5 Bold text */ |
45: | 45: |
46: .pun TEXTAREA, .pun LEGEND, .pun LABEL, .pun INPUT, .pun SELECT, .pun OPTGROUP {FONT-SIZE: 1.1em} | 46: DIV.postleft DT, DIV.postmsg H4, TD.tcl H3, DIV.forminfo H3, P.postlink, DIV.linkst LI, |
47: .pun LABEL INPUT, .pun LABEL TEXTAREA, .pun LABEL SELECT, .pun LABEL OPTGROUP {font-size: 1em} | 47: DIV.linksb LI, DIV.postlinksb LI, .blockmenu LI, #brdtitle H1, .pun SPAN.warntext, .pun P.warntext {FONT-WEIGHT: bold} |
48: | 48: |
49: /* 2.6 Bold text */ | |
50: | |
51: DIV.postleft DT, DIV.postmsg H4, TD.tcl H3, DIV.forminfo H3, P.postlink, DIV.linkst LI, | |
52: .blockmenu LI, #brdtitle H1 {FONT-WEIGHT: bold} | |
53: | |
54: | |
55: /****************************************************************/ | 49: /****************************************************************/ |
56: /* 3. LINKS */ | 50: /* 3. LINKS */ |
57: /****************************************************************/ | 51: /****************************************************************/ |
58: | 52: |
59: /* 3.1 Remove underlining for main menu, post header links, post links and vertical menus */ | 53: /* 3.1 Remove underlining for main menu, post header links, post links and vertical menus */ |
60: | 54: |
61: #brdmenu A:link, #brdmenu A:visited, | 55: #brdmenu A:link, #brdmenu A:visited, .blockpost DT A:link, .blockpost DT A:visited, .blockpost H2 A:link, |
62: .blockpost DT A:link, .blockpost DT A:visited, .blockpost H2 A:link, .blockpost H2 A:visited, | 56: .blockpost H2 A:visited, .postlink A:link, .postlink A:visited, .postfootright A:link, .postfootright A:visited, |
63: .postlink A:link, .postlink A:visited, .postfootright A:link, .postfootright A:visited, .blockmenu A:link, .blockmenu A:visited | 57: .blockmenu A:link, .blockmenu A:visited { |
64: {TEXT-DECORATION: none} | 58: TEXT-DECORATION: none |
| 59: } |
65: | 60: |
66: /* 3.2 Underline on hover for links in headers and main menu */ | 61: /* 3.2 Underline on hover for links in headers and main menu */ |
67: | 62: |
97: BORDER-STYLE: solid; | 92: BORDER-STYLE: solid; |
98: BORDER-WIDTH: 1px | 93: BORDER-WIDTH: 1px |
99: } | 94: } |
100: | 95: |
101: /****************************************************************/ | 96: /****************************************************************/ |
102: /* 5. VERTICAL AND PAGE SPACING */ | 97: /* 5. VERTICAL AND PAGE SPACING */ |
103: /****************************************************************/ | 98: /****************************************************************/ |
187: } | 182: } |
188: | 183: |
189: P.multidelete { | 184: P.multidelete { |
190: PADDING-TOP: 10px; | 185: PADDING-TOP: 15px; |
191: PADDING-BOTTOM: 5px | 186: PADDING-BOTTOM: 5px |
192: } | 187: } |
193: | 188: |
226: /* 9.5 Horizontal positioning for the submit button on forms */ | 221: /* 9.5 Horizontal positioning for the submit button on forms */ |
227: | 222: |
228: DIV.blockform P INPUT {MARGIN-LEFT: 12px} | 223: DIV.blockform P INPUT {MARGIN-LEFT: 12px} |
229: | 224: |
| 225: /****************************************************************/ |
| 226: /* 10. POST STATUS INDICATORS */ |
| 227: /****************************************************************/ |
| 228: |
| 229: /* 10.1 These are the post status indicators which appear at the left of some tables. |
| 230: .inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and |
| 231: .isticky = sticky topics. By default only .inew is different from the default.*/ |
| 232: |
| 233: DIV.icon { |
| 234: FLOAT: left; |
| 235: MARGIN-TOP: 0.1em; |
| 236: MARGIN-LEFT: 0.2em; |
| 237: DISPLAY: block; |
| 238: BORDER-WIDTH: 0.6em 0.6em 0.6em 0.6em; |
| 239: BORDER-STYLE: solid |
| 240: } |
| 241: |
| 242: DIV.searchposts DIV.icon {MARGIN-LEFT: 0} |
| 243: |
| 244: /* 10.2 Class .tclcon is a div inside the first column of tables with post indicators. The |
| 245: margin creates space for the post status indicator */ |
| 246: |
| 247: TD DIV.tclcon {MARGIN-LEFT: 2.3em} |
| 248: |
| 249: |
230: | 250: |
231: | 251: |
232: | 252: |
punbb-1.2/upload/style/Sulfur.css |
punbb-1.2.1/upload/style/Sulfur.css |
7: /* Import the colour scheme */ | 7: /* Import the colour scheme */ |
8: @import url(imports/Sulfur_cs.css); | 8: @import url(imports/Sulfur_cs.css); |
9: | 9: |
10: /****************************************************************/ | 10: /****************************************************************/ |
11: /* 2. TEXT SETTINGS */ | 11: /* 2. TEXT SETTINGS */ |
12: /****************************************************************/ | 12: /****************************************************************/ |
13: | 13: |
14: /* 2.1 This sets the default Font Group */ | 14: /* 2.1 This sets the default Font Group */ |
15: | 15: |
16: .pun, .pun INPUT, .pun SELECT, .pun TEXTAREA, .pun OPTGROUP { | 16: .pun, .pun INPUT, .pun SELECT, .pun TEXTAREA, .pun OPTGROUP { |
17: FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif | 17: FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif |
18: } | 18: } |
19: | 19: |
20: .pun {FONT-SIZE: 10px} | 20: .pun {FONT-SIZE: 11px; LINE-HEIGHT: normal} |
21: | 21: |
22: /* IEWin Font Size only - to allow IEWin to zoom. Do not remove comments \*/ | 22: /* IEWin Font Size only - to allow IEWin to zoom. Do not remove comments \*/ |
23: * HTML BODY .pun {FONT-SIZE: 62.5%} | 23: * HTML .pun {FONT-SIZE: 68.75%} |
24: /* End IE Win Font Size */ | 24: /* End IE Win Font Size */ |
25: | 25: |
26: /* Set font size for tables for IE5 */ | 26: /* Set font size for tables because IE requires it */ |
27: * HTML .pun TABLE {FONT-SIZE: 1em} | 27: .pun TABLE, .pun INPUT, .pun SELECT, .pun OPTGROUP, .pun TEXTAREA, DIV.postmsg P.postedit {FONT-SIZE: 1em} |
28: | 28: |
29: /* 2.2 Set the font-size for preformatted text i.e in code boxes */ | 29: /* 2.2 Set the font-size for preformatted text i.e in code boxes */ |
30: | 30: |
31: .pun PRE {FONT-FAMILY: monaco, "Bitstream Vera Sans Mono", "Courier New", courier, monospace} | 31: .pun PRE {FONT-FAMILY: monaco, "Bitstream Vera Sans Mono", "Courier New", courier, monospace} |
32: | 32: |
33: /* 2.3 Font size for board title */ | 33: /* 2.3 Font size for headers */ |
34: | 34: |
35: #brdtitle H1 {FONT-SIZE: 1.5em} | 35: .pun H2, .pun H4 {FONT-SIZE: 1em} |
36: | 36: .pun H3 {FONT-SIZE: 1.1em} |
37: /* 2.4 Larger text for particular items */ | 37: #brdtitle H1 {FONT-SIZE: 1.4em} |
38: | 38: |
39: .pun H2, #viewprofile DL, #brdmenu, DIV.postmsg P, DIV.forminfo P, #puninstall DIV.block P, DIV.postsignature, | 39: /* 2.4 Larger text for particular items */ |
40: DIV.linkst LI, P.postlink, DIV.postmsg H4 {FONT-SIZE: 1.1em} | 40: DIV.postmsg P {LINE-HEIGHT: 1.4} |
41: | 41: DIV.postleft DT {FONT-SIZE: 1.1em} |
42: .pun H3, .pun PRE, DIV.postleft DT {FONT-SIZE: 1.2em} | 42: .pun PRE {FONT-SIZE: 1.2em} |
43: | 43: |
44: /* 2.5 Font sizes for form elements. */ | 44: /* 2.5 Bold text */ |
45: | 45: |
46: .pun TEXTAREA, .pun LEGEND, .pun LABEL, .pun INPUT, .pun SELECT, .pun OPTGROUP {FONT-SIZE: 1.1em} | 46: DIV.postleft DT, DIV.postmsg H4, TD.tcl H3, DIV.forminfo H3, P.postlink, DIV.linkst LI, |
47: .pun LABEL INPUT, .pun LABEL TEXTAREA, .pun LABEL SELECT, .pun LABEL OPTGROUP {font-size: 1em} | 47: DIV.linksb LI, DIV.postlinksb LI, .blockmenu LI, #brdtitle H1, .pun SPAN.warntext, .pun P.warntext {FONT-WEIGHT: bold} |
48: | 48: |
49: /* 2.6 Bold text */ | |
50: | |
51: DIV.postleft DT, DIV.postmsg H4, TD.tcl H3, DIV.forminfo H3, P.postlink, DIV.linkst LI, | |
52: .blockmenu LI, #brdtitle H1 {FONT-WEIGHT: bold} | |
53: | |
54: | |
55: /****************************************************************/ | 49: /****************************************************************/ |
56: /* 3. LINKS */ | 50: /* 3. LINKS */ |
57: /****************************************************************/ | 51: /****************************************************************/ |
58: | 52: |
59: /* 3.1 Remove underlining for main menu, post header links, post links and vertical menus */ | 53: /* 3.1 Remove underlining for main menu, post header links, post links and vertical menus */ |
60: | 54: |
61: #brdmenu A:link, #brdmenu A:visited, | 55: #brdmenu A:link, #brdmenu A:visited, .blockpost DT A:link, .blockpost DT A:visited, .blockpost H2 A:link, |
62: .blockpost DT A:link, .blockpost DT A:visited, .blockpost H2 A:link, .blockpost H2 A:visited, | 56: .blockpost H2 A:visited, .postlink A:link, .postlink A:visited, .postfootright A:link, .postfootright A:visited, |
63: .postlink A:link, .postlink A:visited, .postfootright A:link, .postfootright A:visited, .blockmenu A:link, .blockmenu A:visited | 57: .blockmenu A:link, .blockmenu A:visited { |
64: {TEXT-DECORATION: none} | 58: TEXT-DECORATION: none |
| 59: } |
65: | 60: |
66: /* 3.2 Underline on hover for links in headers and main menu */ | 61: /* 3.2 Underline on hover for links in headers and main menu */ |
67: | 62: |
97: BORDER-STYLE: solid; | 92: BORDER-STYLE: solid; |
98: BORDER-WIDTH: 1px | 93: BORDER-WIDTH: 1px |
99: } | 94: } |
100: | 95: |
101: /****************************************************************/ | 96: /****************************************************************/ |
102: /* 5. VERTICAL AND PAGE SPACING */ | 97: /* 5. VERTICAL AND PAGE SPACING */ |
103: /****************************************************************/ | 98: /****************************************************************/ |
226: /* 9.5 Horizontal positioning for the submit button on forms */ | 221: /* 9.5 Horizontal positioning for the submit button on forms */ |
227: | 222: |
228: DIV.blockform P INPUT {MARGIN-LEFT: 12px} | 223: DIV.blockform P INPUT {MARGIN-LEFT: 12px} |
229: | 224: |
| 225: /****************************************************************/ |
| 226: /* 10. POST STATUS INDICATORS */ |
| 227: /****************************************************************/ |
| 228: |
| 229: /* 10.1 These are the post status indicators which appear at the left of some tables. |
| 230: .inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and |
| 231: .isticky = sticky topics. By default only .inew is different from the default.*/ |
| 232: |
| 233: DIV.icon { |
| 234: FLOAT: left; |
| 235: MARGIN-TOP: 0.1em; |
| 236: MARGIN-LEFT: 0.2em; |
| 237: DISPLAY: block; |
| 238: BORDER-WIDTH: 0.6em 0.6em 0.6em 0.6em; |
| 239: BORDER-STYLE: solid |
| 240: } |
| 241: |
| 242: DIV.searchposts DIV.icon {MARGIN-LEFT: 0} |
| 243: |
| 244: /* 10.2 Class .tclcon is a div inside the first column of tables with post indicators. The |
| 245: margin creates space for the post status indicator */ |
| 246: |
| 247: TD DIV.tclcon {MARGIN-LEFT: 2.3em} |
| 248: |
| 249: |
230: | 250: |
231: | 251: |
232: | 252: |
punbb-1.2/upload/style/imports/Cobalt_cs.css |
punbb-1.2.1/upload/style/imports/Cobalt_cs.css |
32: | 32: |
33: /* 1.6 Highlighted text for various items */ | 33: /* 1.6 Highlighted text for various items */ |
34: | 34: |
35: .showhot, .pun DIV.blockmenu LI.isactive A, #posterror LI STRONG {COLOR: #D4D4D4} | 35: .pun DIV.blockmenu LI.isactive A, #posterror LI STRONG {COLOR: #D4D4D4} |
36: | 36: |
37: /* 1.7 Dark background for form elements */ | 37: /* 1.7 Dark background for form elements */ |
38: | 38: |
99: | 99: |
100: /* 4.3 This is for closed topics and "hot" links */ | 100: /* 4.3 This is for closed topics and "hot" links */ |
101: | 101: |
102: A:link.showclosed, A:visited.showclosed {COLOR: #888} | 102: LI.postreport A:link, LI.postreport A:visited, TR.iclosed TD.tcl A:link, TR.iclosed TD.tcl A:visited {COLOR: #888} |
103: A:hover.showclosed {COLOR: #AAA} | 103: LI.postreport A:hover, TR.iclosed TD.tcl A:hover {COLOR: #AAA} |
104: A:link.showhot, A:visited.showhot {COLOR: #FF4000} | 104: LI.maintenancelink A:link, LI.maintenancelink A:visited {COLOR: #FF4000} |
105: A:hover.showhot {COLOR: #FF5010} | 105: LI.maintenancelink A:hover {COLOR: #FF5010} |
106: | 106: |
107: /****************************************************************/ | 107: /****************************************************************/ |
108: /* 5. POST STATUS INDICATORS */ | 108: /* 5. POST STATUS INDICATORS */ |
109: /****************************************************************/ | 109: /****************************************************************/ |
110: | 110: |
111: /* 5.1 These are the post status indicators which appear at the left of some tables. | 111: /* These are the post status indicators which appear at the left of some tables. |
112: .inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and | 112: .inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and |
113: .inormal = everything else. By default only .inew and .inormal are visible.*/ | 113: .isticky = sticky topics. The default is "icon". By default only .inew is different.*/ |
114: | 114: |
115: DIV.inew, DIV.inormal, DIV.iclosed, DIV.iredirect { | 115: DIV.icon {BORDER-COLOR: #484848 #404040 #3C3C3C #444444} |
116: FLOAT: left; | 116: TR.iredirect DIV.icon {BORDER-COLOR: #383838 #383838 #383838 #383838} |
117: MARGIN-TOP: 0.2em; | 117: DIV.inew {BORDER-COLOR: #5496D8 #4B85C0 #4377AC #4F8DCB} |
118: MARGIN-LEFT: 0.2em; | |
119: DISPLAY: block; | |
120: BORDER-WIDTH: 0.6em 0.6em 0.6em 0.6em; | |
121: BORDER-STYLE: solid | |
122: } | |
123: | |
124: DIV.searchposts DIV.inew, DIV.searchposts DIV.inormal {MARGIN-LEFT: 0} | |
125: | |
126: DIV.iredirect {BORDER-COLOR: #383838 #383838 #383838 #383838} | |
127: DIV.inormal, DIV.iclosed {BORDER-COLOR: #484848 #404040 #3C3C3C #444444} | |
128: DIV.inew {BORDER-COLOR: #5496D8 #4B85C0 #4377AC #4F8DCB} | |
129: | |
130: /* 5.2 Class .tclcon is a div inside the first column of tables with post indicators. The | |
131: margin creates space for the post status indicator */ | |
132: | |
133: TD DIV.tclcon {MARGIN-LEFT: 2.3em} | |
134: | 118: |
punbb-1.2/upload/style/imports/Lithium_cs.css |
punbb-1.2.1/upload/style/imports/Lithium_cs.css |
4: | 4: |
5: /* 1.1 Default background colour and text colour */ | 5: /* 1.1 Default background colour and text colour */ |
6: | 6: |
| 7: BODY {BACKGROUND-COLOR: #FFF} |
| 8: |
7: .pun {COLOR: #333} | 9: .pun {COLOR: #333} |
8: | 10: |
9: DIV.box, .pun BLOCKQUOTE, DIV.codebox, #adminconsole FIELDSET TH, .rowodd, .roweven {BACKGROUND-COLOR: #F1F1F1} | 11: DIV.box, .pun BLOCKQUOTE, DIV.codebox, #adminconsole FIELDSET TH, .rowodd, .roweven {BACKGROUND-COLOR: #F1F1F1} |
28: | 30: |
29: /* 1.6 Highlighted text for various items */ | 31: /* 1.6 Highlighted text for various items */ |
30: | 32: |
31: .showhot, .pun DIV.blockmenu LI.isactive A, #posterror LI STRONG {COLOR: #333} | 33: .pun DIV.blockmenu LI.isactive A, #posterror LI STRONG {COLOR: #333} |
32: | 34: |
33: /****************************************************************/ | 35: /****************************************************************/ |
34: /* 2. POST BACKGROUNDS AND TEXT */ | 36: /* 2. POST BACKGROUNDS AND TEXT */ |
91: | 93: |
92: /* 4.3 This is for closed topics and "hot" links */ | 94: /* 4.3 This is for closed topics and "hot" links */ |
93: | 95: |
94: A:link.showclosed, A:visited.showclosed {COLOR: #888} | 96: LI.postreport A:link, LI.postreport A:visited, TR.iclosed TD.tcl A:link, TR.iclosed TD.tcl A:visited {COLOR: #888} |
95: A:hover.showclosed {COLOR: #AAA} | 97: LI.postreport A:hover, TR.iclosed TD.tcl A:hover {COLOR: #AAA} |
96: A:link.showhot, A:visited.showhot {COLOR: #B42000} | 98: LI.maintenancelink A:link, LI.maintenancelink A:visited {COLOR: #B42000} |
97: A:hover.showhot {COLOR: #B42000} | 99: LI.maintenancelink A:hover {COLOR: #B42000} |
98: | 100: |
99: /****************************************************************/ | 101: /****************************************************************/ |
100: /* 5. POST STATUS INDICATORS */ | 102: /* 5. POST STATUS INDICATORS */ |
101: /****************************************************************/ | 103: /****************************************************************/ |
102: | 104: |
103: /* 5.1 These are the post status indicators which appear at the left of some tables. | 105: /* These are the post status indicators which appear at the left of some tables. |
104: .inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and | 106: .inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and |
105: .inormal = everything else. By default only .inew and .inormal are visible.*/ | 107: .isticky = sticky topics. The default is "icon". By default only .inew is different.*/ |
106: | |
107: DIV.inew, DIV.inormal, DIV.iclosed, DIV.iredirect { | |
108: FLOAT: left; | |
109: MARGIN-TOP: 0.2em; | |
110: MARGIN-LEFT: 0.2em; | |
111: DISPLAY: block; | |
112: BORDER-WIDTH: 0.6em 0.6em 0.6em 0.6em; | |
113: BORDER-STYLE: solid | |
114: } | |
115: | |
116: DIV.searchposts DIV.inew, DIV.searchposts DIV.inormal {MARGIN-LEFT: 0} | |
117: | |
118: DIV.iredirect {BORDER-COLOR: #F1F1F1 #F1F1F1 #F1F1F1 #F1F1F1} | |
119: DIV.inormal, DIV.iclosed {BORDER-COLOR: #E6E6E6 #DEDEDE #DADADA #E2E2E2} | |
120: DIV.inew {BORDER-COLOR: #8BB453 #7A9E48 #709142 #799C47} | |
121: | |
122: /* 5.2 Class .tclcon is a div inside the first column of tables with post indicators. The | |
123: margin creates space for the post status indicator */ | |
124: | 108: |
125: TD DIV.tclcon {MARGIN-LEFT: 2.3em} | |
126: | 109: |
| 110: DIV.icon {BORDER-COLOR: #E6E6E6 #DEDEDE #DADADA #E2E2E2} |
| 111: TR.iredirect DIV.icon {BORDER-COLOR: #F1F1F1 #F1F1F1 #F1F1F1 #F1F1F1} |
| 112: DIV.inew {BORDER-COLOR: #8BB453 #7A9E48 #709142 #799C47} |
127: | 113: |
punbb-1.2/upload/style/imports/Mercury_cs.css |
punbb-1.2.1/upload/style/imports/Mercury_cs.css |
32: | 32: |
33: /* 1.6 Highlighted text for various items */ | 33: /* 1.6 Highlighted text for various items */ |
34: | 34: |
35: .showhot, .pun DIV.blockmenu LI.isactive A, #posterror LI STRONG {COLOR: #D4D4D4} | 35: .pun DIV.blockmenu LI.isactive A, #posterror LI STRONG {COLOR: #D4D4D4} |
36: | 36: |
37: /* 1.7 Dark background for form elements */ | 37: /* 1.7 Dark background for form elements */ |
38: | 38: |
99: | 99: |
100: /* 4.3 This is for closed topics and "hot" links */ | 100: /* 4.3 This is for closed topics and "hot" links */ |
101: | 101: |
102: A:link.showclosed, A:visited.showclosed {COLOR: #888} | 102: LI.postreport A:link, LI.postreport A:visited, TR.iclosed TD.tcl A:link, TR.iclosed TD.tcl A:visited {COLOR: #888} |
103: A:hover.showclosed {COLOR: #AAA} | 103: LI.postreport A:hover, TR.iclosed TD.tcl A:hover {COLOR: #AAA} |
104: A:link.showhot, A:visited.showhot {COLOR: #FF4000} | 104: LI.maintenancelink A:link, LI.maintenancelink A:visited {COLOR: #FF4000} |
105: A:hover.showhot {COLOR: #FF5010} | 105: LI.maintenancelink A:hover {COLOR: #FF5010} |
106: | 106: |
107: /****************************************************************/ | 107: /****************************************************************/ |
108: /* 5. POST STATUS INDICATORS */ | 108: /* 5. POST STATUS INDICATORS */ |
109: /****************************************************************/ | 109: /****************************************************************/ |
110: | 110: |
111: /* 5.1 These are the post status indicators which appear at the left of some tables. | 111: /* These are the post status indicators which appear at the left of some tables. |
112: .inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and | 112: .inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and |
113: .inormal = everything else. By default only .inew and .inormal are visible.*/ | 113: .isticky = sticky topics. The default is "icon". By default only .inew is different.*/ |
114: | 114: |
115: DIV.inew, DIV.inormal, DIV.iclosed, DIV.iredirect { | 115: DIV.icon {BORDER-COLOR: #484848 #404040 #3C3C3C #444444} |
116: FLOAT: left; | 116: TR.iredirect DIV.icon {BORDER-COLOR: #383838 #383838 #383838 #383838} |
117: MARGIN-TOP: 0.2em; | 117: DIV.inew {BORDER-COLOR: #F6B620 #ECAE1F #D09A1B #E1A61D} |
118: MARGIN-LEFT: 0.2em; | |
119: DISPLAY: block; | |
120: BORDER-WIDTH: 0.6em 0.6em 0.6em 0.6em; | |
121: BORDER-STYLE: solid | |
122: } | |
123: | |
124: DIV.searchposts DIV.inew, DIV.searchposts DIV.inormal {MARGIN-LEFT: 0} | |
125: | |
126: DIV.iredirect {BORDER-COLOR: #383838 #383838 #383838 #383838} | |
127: DIV.inormal, DIV.iclosed {BORDER-COLOR: #484848 #404040 #3C3C3C #444444} | |
128: DIV.inew {BORDER-COLOR: #F6B620 #ECAE1F #D09A1B #E1A61D} | |
129: | |
130: /* 5.2 Class .tclcon is a div inside the first column of tables with post indicators. The | |
131: margin creates space for the post status indicator */ | |
132: | |
133: TD DIV.tclcon {MARGIN-LEFT: 2.3em} | |
134: | 118: |
punbb-1.2/upload/style/imports/Oxygen_cs.css |
punbb-1.2.1/upload/style/imports/Oxygen_cs.css |
4: | 4: |
5: /* 1.1 Default background colour and text colour */ | 5: /* 1.1 Default background colour and text colour */ |
6: | 6: |
| 7: BODY {BACKGROUND-COLOR: #FFF} |
| 8: |
7: .pun {COLOR: #333} | 9: .pun {COLOR: #333} |
8: | 10: |
9: DIV.box, .pun BLOCKQUOTE, DIV.codebox, #adminconsole FIELDSET TH, .rowodd, .roweven {BACKGROUND-COLOR: #F1F1F1} | 11: DIV.box, .pun BLOCKQUOTE, DIV.codebox, #adminconsole FIELDSET TH, .rowodd, .roweven {BACKGROUND-COLOR: #F1F1F1} |
28: | 30: |
29: /* 1.6 Highlighted text for various items */ | 31: /* 1.6 Highlighted text for various items */ |
30: | 32: |
31: .showhot, .pun DIV.blockmenu LI.isactive A, #posterror LI STRONG {COLOR: #333} | 33: .pun DIV.blockmenu LI.isactive A, #posterror LI STRONG {COLOR: #333} |
32: | 34: |
33: /****************************************************************/ | 35: /****************************************************************/ |
34: /* 2. POST BACKGROUNDS AND TEXT */ | 36: /* 2. POST BACKGROUNDS AND TEXT */ |
91: | 93: |
92: /* 4.3 This is for closed topics and "hot" links */ | 94: /* 4.3 This is for closed topics and "hot" links */ |
93: | 95: |
94: A:link.showclosed, A:visited.showclosed {COLOR: #888} | 96: LI.postreport A:link, LI.postreport A:visited, TR.iclosed TD.tcl A:link, TR.iclosed TD.tcl A:visited {COLOR: #888} |
95: A:hover.showclosed {COLOR: #AAA} | 97: LI.postreport A:hover, TR.iclosed TD.tcl A:hover {COLOR: #AAA} |
96: A:link.showhot, A:visited.showhot {COLOR: #B42000} | 98: LI.maintenancelink A:link, LI.maintenancelink A:visited {COLOR: #B42000} |
97: A:hover.showhot {COLOR: #B42000} | 99: LI.maintenancelink A:hover {COLOR: #B42000} |
98: | 100: |
99: /****************************************************************/ | 101: /****************************************************************/ |
100: /* 5. POST STATUS INDICATORS */ | 102: /* 5. POST STATUS INDICATORS */ |
101: /****************************************************************/ | 103: /****************************************************************/ |
102: | 104: |
103: /* 5.1 These are the post status indicators which appear at the left of some tables. | 105: /* These are the post status indicators which appear at the left of some tables. |
104: .inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and | 106: .inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and |
105: .inormal = everything else. By default only .inew and .inormal are visible.*/ | 107: .isticky = sticky topics. The default is "icon". By default only .inew is different.*/ |
106: | |
107: DIV.inew, DIV.inormal, DIV.iclosed, DIV.iredirect { | |
108: FLOAT: left; | |
109: MARGIN-TOP: 0.2em; | |
110: MARGIN-LEFT: 0.2em; | |
111: DISPLAY: block; | |
112: BORDER-WIDTH: 0.6em 0.6em 0.6em 0.6em; | |
113: BORDER-STYLE: solid | |
114: } | |
115: | |
116: DIV.searchposts DIV.inew, DIV.searchposts DIV.inormal {MARGIN-LEFT: 0} | |
117: | |
118: DIV.iredirect {BORDER-COLOR: #F1F1F1 #F1F1F1 #F1F1F1 #F1F1F1} | |
119: DIV.inormal, DIV.iclosed {BORDER-COLOR: #E6E6E6 #DEDEDE #DADADA #E2E2E2} | |
120: DIV.inew {BORDER-COLOR: #0080D7 #0065C0 #0058B3 #0072CA} | |
121: | |
122: /* 5.2 Class .tclcon is a div inside the first column of tables with post indicators. The | |
123: margin creates space for the post status indicator */ | |
124: | 108: |
125: TD DIV.tclcon {MARGIN-LEFT: 2.3em} | 109: DIV.icon {BORDER-COLOR: #E6E6E6 #DEDEDE #DADADA #E2E2E2} |
| 110: TR.iredirect DIV.icon {BORDER-COLOR: #F1F1F1 #F1F1F1 #F1F1F1 #F1F1F1} |
| 111: DIV.inew {BORDER-COLOR: #0080D7 #0065C0 #0058B3 #0072CA} |
126: | 112: |
punbb-1.2/upload/style/imports/Radium_cs.css |
punbb-1.2.1/upload/style/imports/Radium_cs.css |
32: | 32: |
33: /* 1.6 Highlighted text for various items */ | 33: /* 1.6 Highlighted text for various items */ |
34: | 34: |
35: .showhot, .pun DIV.blockmenu LI.isactive A, #posterror LI STRONG {COLOR: #D4D4D4} | 35: .pun DIV.blockmenu LI.isactive A, #posterror LI STRONG {COLOR: #D4D4D4} |
36: | 36: |
37: /* 1.7 Dark background for form elements */ | 37: /* 1.7 Dark background for form elements */ |
38: | 38: |
99: | 99: |
100: /* 4.3 This is for closed topics and "hot" links */ | 100: /* 4.3 This is for closed topics and "hot" links */ |
101: | 101: |
102: A:link.showclosed, A:visited.showclosed {COLOR: #888} | 102: LI.postreport A:link, LI.postreport A:visited, TR.iclosed TD.tcl A:link, TR.iclosed TD.tcl A:visited {COLOR: #888} |
103: A:hover.showclosed {COLOR: #AAA} | 103: LI.postreport A:hover, TR.iclosed TD.tcl A:hover {COLOR: #AAA} |
104: A:link.showhot, A:visited.showhot {COLOR: #FF4000} | 104: LI.maintenancelink A:link, LI.maintenancelink A:visited {COLOR: #FF4000} |
105: A:hover.showhot {COLOR: #FF5010} | 105: LI.maintenancelink A:hover {COLOR: #FF5010} |
106: | 106: |
107: /****************************************************************/ | 107: /****************************************************************/ |
108: /* 5. POST STATUS INDICATORS */ | 108: /* 5. POST STATUS INDICATORS */ |
109: /****************************************************************/ | 109: /****************************************************************/ |
110: | 110: |
111: /* 5.1 These are the post status indicators which appear at the left of some tables. | 111: /* These are the post status indicators which appear at the left of some tables. |
112: .inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and | 112: .inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and |
113: .inormal = everything else. By default only .inew and .inormal are visible.*/ | 113: .isticky = sticky topics. The default is "icon". By default only .inew is different.*/ |
114: | 114: |
115: DIV.inew, DIV.inormal, DIV.iclosed, DIV.iredirect { | 115: DIV.icon {BORDER-COLOR: #484848 #404040 #3C3C3C #444444} |
116: FLOAT: left; | 116: TR.iredirect DIV.icon {BORDER-COLOR: #383838 #383838 #383838 #383838} |
117: MARGIN-TOP: 0.2em; | |
118: MARGIN-LEFT: 0.2em; | |
119: DISPLAY: block; | |
120: BORDER-WIDTH: 0.6em 0.6em 0.6em 0.6em; | |
121: BORDER-STYLE: solid | |
122: } | |
123: | |
124: DIV.searchposts DIV.inew, DIV.searchposts DIV.inormal {MARGIN-LEFT: 0} | |
125: | |
126: DIV.iredirect {BORDER-COLOR: #383838 #383838 #383838 #383838} | |
127: DIV.inormal, DIV.iclosed {BORDER-COLOR: #484848 #404040 #3C3C3C #444444} | |
128: DIV.inew {BORDER-COLOR: #60C860 #54AF54 #499849 #59B657} | 117: DIV.inew {BORDER-COLOR: #60C860 #54AF54 #499849 #59B657} |
129: | 118: |
130: /* 5.2 Class .tclcon is a div inside the first column of tables with post indicators. The | 119: /* 5.2 Class .tclcon is a div inside the first column of tables with post indicators. The |
punbb-1.2/upload/style/imports/Sulfur_cs.css |
punbb-1.2.1/upload/style/imports/Sulfur_cs.css |
4: | 4: |
5: /* 1.1 Default background colour and text colour */ | 5: /* 1.1 Default background colour and text colour */ |
6: | 6: |
| 7: BODY {BACKGROUND-COLOR: #FFF} |
| 8: |
7: .pun {COLOR: #333} | 9: .pun {COLOR: #333} |
8: | 10: |
9: DIV.box, .pun BLOCKQUOTE, DIV.codebox, #adminconsole FIELDSET TH, .rowodd, .roweven {BACKGROUND-COLOR: #F1F1F1} | 11: DIV.box, .pun BLOCKQUOTE, DIV.codebox, #adminconsole FIELDSET TH, .rowodd, .roweven {BACKGROUND-COLOR: #F1F1F1} |
28: | 30: |
29: /* 1.6 Highlighted text for various items */ | 31: /* 1.6 Highlighted text for various items */ |
30: | 32: |
31: .showhot, .pun DIV.blockmenu LI.isactive A, #posterror LI STRONG {COLOR: #333} | 33: .pun DIV.blockmenu LI.isactive A, #posterror LI STRONG {COLOR: #333} |
32: | 34: |
33: /****************************************************************/ | 35: /****************************************************************/ |
34: /* 2. POST BACKGROUNDS AND TEXT */ | 36: /* 2. POST BACKGROUNDS AND TEXT */ |
91: | 93: |
92: /* 4.3 This is for closed topics and "hot" links */ | 94: /* 4.3 This is for closed topics and "hot" links */ |
93: | 95: |
94: A:link.showclosed, A:visited.showclosed {COLOR: #888} | 96: LI.postreport A:link, LI.postreport A:visited, TR.iclosed TD.tcl A:link, TR.iclosed TD.tcl A:visited {COLOR: #888} |
95: A:hover.showclosed {COLOR: #AAA} | 97: LI.postreport A:hover, TR.iclosed TD.tcl A:hover {COLOR: #AAA} |
96: A:link.showhot, A:visited.showhot {COLOR: #B42000} | 98: LI.maintenancelink A:link, LI.maintenancelink A:visited {COLOR: #B42000} |
97: A:hover.showhot {COLOR: #B42000} | 99: LI.maintenancelink A:hover {COLOR: #B42000} |
98: | 100: |
99: /****************************************************************/ | 101: /****************************************************************/ |
100: /* 5. POST STATUS INDICATORS */ | 102: /* 5. POST STATUS INDICATORS */ |
101: /****************************************************************/ | 103: /****************************************************************/ |
102: | 104: |
103: /* 5.1 These are the post status indicators which appear at the left of some tables. | 105: /* These are the post status indicators which appear at the left of some tables. |
104: .inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and | 106: .inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and |
105: .inormal = everything else. By default only .inew and .inormal are visible.*/ | 107: .isticky = sticky topics. The default is "icon". By default only .inew is different.*/ |
106: | |
107: DIV.inew, DIV.inormal, DIV.iclosed, DIV.iredirect { | |
108: FLOAT: left; | |
109: MARGIN-TOP: 0.2em; | |
110: MARGIN-LEFT: 0.2em; | |
111: DISPLAY: block; | |
112: BORDER-WIDTH: 0.6em 0.6em 0.6em 0.6em; | |
113: BORDER-STYLE: solid | |
114: } | |
115: | |
116: DIV.searchposts DIV.inew, DIV.searchposts DIV.inormal {MARGIN-LEFT: 0} | |
117: | |
118: DIV.iredirect {BORDER-COLOR: #F1F1F1 #F1F1F1 #F1F1F1 #F1F1F1} | |
119: DIV.inormal, DIV.iclosed {BORDER-COLOR: #E6E6E6 #DEDEDE #DADADA #E2E2E2} | |
120: DIV.inew {BORDER-COLOR: #C23000 #AF2C00 #992600 #AC2B00} | |
121: | |
122: /* 5.2 Class .tclcon is a div inside the first column of tables with post indicators. The | |
123: margin creates space for the post status indicator */ | |
124: | 108: |
125: TD DIV.tclcon {MARGIN-LEFT: 2.3em} | 109: DIV.icon {BORDER-COLOR: #E6E6E6 #DEDEDE #DADADA #E2E2E2} |
| 110: TR.iredirect DIV.icon {BORDER-COLOR: #F1F1F1 #F1F1F1 #F1F1F1 #F1F1F1} |
| 111: DIV.inew {BORDER-COLOR: #C23000 #AF2C00 #992600 #AC2B00} |
126: | 112: |
punbb-1.2/upload/style/imports/base.css |
punbb-1.2.1/upload/style/imports/base.css |
18: /****************************************************************/ | 18: /****************************************************************/ |
19: /* 2. STRUCTURAL SETTINGS - VERY IMPORTANT - DO NOT CHANGE */ | 19: /* 2. STRUCTURAL SETTINGS - VERY IMPORTANT - DO NOT CHANGE */ |
20: /****************************************************************/ | 20: /****************************************************************/ |
21: | 21: |
| 22: /* 2.1 Clearing floats and invisible items */ |
22: .pun .clearer, .pun .nosize { | 23: .pun .clearer, .pun .nosize { |
23: HEIGHT: 0; | 24: HEIGHT: 0; |
24: WIDTH: 0; | 25: WIDTH: 0; |
29: | 30: |
30: .pun .clearer, .pun .clearb {CLEAR: both} | 31: .pun .clearer, .pun .clearb {CLEAR: both} |
31: .pun .nosize {POSITION: absolute; LEFT: -10000px} | 32: .pun .nosize {POSITION: absolute; LEFT: -10000px} |
| 33: |
| 34: /* 2.2 Overflow settings for posts */ |
| 35: |
| 36: DIV.blockpost DIV.box, DIV.postleft, DIV.postsignature, DIV.postmsg {OVERFLOW: hidden} |
32: | 37: |
33: /****************************************************************/ | 38: /****************************************************************/ |
34: /* 3. BUG FIXES - VERY IMPORTANT - DO NOT CHANGE */ | 39: /* 3. BUG FIXES - VERY IMPORTANT - DO NOT CHANGE */ |
35: /****************************************************************/ | 40: /****************************************************************/ |
36: | 41: |
37: /* 3.1 This fixes bugs in Gecko browsers. */ | 42: /* 3.1 This attempts to eliminate rounding errors in Gecko browsers. */ |
38: | 43: |
39: DIV>DIV>DIV.inbox , DIV>DIV>DIV.block2col {BORDER-BOTTOM: 1px solid transparent} | |
40: DIV>DIV>DIV.postfootleft, DIV>DIV>DIV.postfootright {PADDING-TOP: 1px; MARGIN-TOP: -1px} | 44: DIV>DIV>DIV.postfootleft, DIV>DIV>DIV.postfootright {PADDING-TOP: 1px; MARGIN-TOP: -1px} |
41: | 45: |
42: /* 3.2 This is only visible to IE Windows and cures various bugs. Do not alter comments */ | 46: /* 3.2 This is only visible to IE Windows and cures various bugs. Do not alter comments */ |
97: | 101: |
98: /* 5.3 Keep breadcrumbs from shifting to the right when wrapping */ | 102: /* 5.3 Keep breadcrumbs from shifting to the right when wrapping */ |
99: | 103: |
100: .linkst UL {MARGIN-LEFT: 18em} | 104: .linkst UL, linksb UL, .postlinksb UL {MARGIN-LEFT: 18em} |
101: | 105: |
102: /* 5.4 Settings for Profile and Admin interface.*/ | 106: /* 5.4 Settings for Profile and Admin interface.*/ |
| 107: |
| 108: DIV.block2col {PADDING-BOTTOM: 1px} |
103: | 109: |
104: DIV.block2col DIV.blockform, DIV.block2col DIV.block, #viewprofile DD {MARGIN-LEFT: 14em} | 110: DIV.block2col DIV.blockform, DIV.block2col DIV.block, #viewprofile DD {MARGIN-LEFT: 14em} |
105: | 111: |
133: | 139: |
134: .tcr {WIDTH: 32%; TEXT-ALIGN: left} | 140: .tcr {WIDTH: 32%; TEXT-ALIGN: left} |
135: | 141: |
136: #punsearch #vf .tcl {WIDTH: 41%} | 142: #punsearch #vf .tcl, #punmoderate #vf .tcl {WIDTH: 41%} |
137: | 143: |
138: #punsearch #vf .tc2 {WIDTH: 18%; TEXT-ALIGN: left} | 144: #punsearch #vf .tc2 {WIDTH: 18%; TEXT-ALIGN: left} |
139: | 145: |
151: | 157: |
152: #debug .tcr {WIDTH: 85%; WHITE-SPACE: normal} | 158: #debug .tcr {WIDTH: 85%; WHITE-SPACE: normal} |
153: | 159: |
154: /* 6.4 Give a little more height to table rows other than index */ | 160: #punindex TD.tcr SPAN.byuser {DISPLAY: block} |
155: | |
156: #vf TD, #users1 TD, #users2 TD {LINE-HEIGHT: 1.5em} | |
157: | 161: |
158: /****************************************************************/ | 162: /****************************************************************/ |
159: /* 7. VIEWTOPIC SETUP */ | 163: /* 7. VIEWTOPIC SETUP */ |
173: } | 177: } |
174: | 178: |
175: DIV.postfootright, P.multidelete {TEXT-ALIGN: right} | 179: DIV.postfootright, P.multidelete {TEXT-ALIGN: right} |
| 180: |
| 181: DIV.blockpost>DIV>DIV.inbox {PADDING-BOTTOM: 1px} |
176: | 182: |
177: /* 7.3 This is the div which actually contains the post and is inside .postright */ | 183: /* 7.3 This is the div which actually contains the post and is inside .postright */ |
178: | 184: |
180: | 186: |
181: /* 7.4 These items control overflow and scrolling within posts. */ | 187: /* 7.4 These items control overflow and scrolling within posts. */ |
182: | 188: |
183: DIV.blockpost, DIV.postleft, DIV.postsignature, DIV.postmsg {OVERFLOW: hidden} | |
184: DIV.incqbox {WIDTH: 100%; OVERFLOW: hidden} | 189: DIV.incqbox {WIDTH: 100%; OVERFLOW: hidden} |
185: DIV.scrollbox {WIDTH: 100%; OVERFLOW: auto} | 190: DIV.scrollbox {WIDTH: 100%; OVERFLOW: auto} |
186: * HTML .imgbox {WIDTH: auto} | 191: IMG.postimg {max-width: 100%} |
| 192: A .postimg {max-width: 100%} |
187: | 193: |
188: /* 7.5 Turn off the poster information column for preview */ | 194: /* 7.5 Turn off the poster information column for preview */ |
189: | 195: |
199: BORDER:none | 205: BORDER:none |
200: } | 206: } |
201: | 207: |
202: /* 7.7 Vertical alignment of smilies in posts and signatures */ | 208: /* 7.7 Maximum height for search results as posts. Position go to post link */ |
203: | |
204: DIV.postsignature IMG, DIV.postmsg IMG {VERTICAL-ALIGN: middle;} | |
205: | |
206: /* 7.8 Maximum height for search results as posts. Position go to post link */ | |
207: | 209: |
208: DIV.searchposts DIV.postmsg {HEIGHT: 8em} | 210: DIV.searchposts DIV.postmsg {HEIGHT: 8em} |
209: DIV.searchposts DD P {PADDING-TOP: 3em} | 211: DIV.searchposts DD P {PADDING-TOP: 3em} |
210: | 212: |
211: /* 7.9 Class for bbcode [u] */ | 213: /* 7.8 Class for bbcode [u] */ |
212: | 214: |
213: SPAN.bbu {TEXT-DECORATION: underline} | 215: SPAN.bbu {TEXT-DECORATION: underline} |
214: | 216: |
218: | 220: |
219: /* 8.1 Horizontal display of online list, main navigation menu and breadcrumbs */ | 221: /* 8.1 Horizontal display of online list, main navigation menu and breadcrumbs */ |
220: | 222: |
221: #onlinelist DD, #onlinelist DT, #brdmenu LI, DIV.linkst LI, DIV.postfootright LI, UL.bblinks LI { | 223: #onlinelist DD, #onlinelist DT, #brdmenu LI, DIV.linkst LI, DIV.linksb LI, DIV.postlinksb LI, |
| 224: DIV.postfootright LI, UL.bblinks LI { |
222: DISPLAY: inline; | 225: DISPLAY: inline; |
223: HEIGHT: 0 | 226: HEIGHT: 0 |
224: } | 227: } |
punbb-1.2/upload/style/imports/minmax.js |
punbb-1.2.1/upload/style/imports/minmax.js |
| 1: // minmax.js - written by Andrew Clover <and@doxdesk.com> |
| 2: // Adapted for PunBB by Rickard Andersson and Paul Sullivan |
| 3: |
| 4: /*@cc_on |
| 5: @if (@_win32 && @_jscript_version>4) |
| 6: |
| 7: var minmax_elements; |
| 8: |
| 9: function minmax_bind(el) { |
| 10: var em, ms; |
| 11: var st= el.style, cs= el.currentStyle; |
| 12: |
| 13: if (minmax_elements==window.undefined) { |
| 14: if (!document.body || !document.body.currentStyle) return; |
| 15: minmax_elements= new Array(); |
| 16: window.attachEvent('onresize', minmax_delayout); |
| 17: } |
| 18: |
| 19: if (cs['max-width']) |
| 20: st['maxWidth']= cs['max-width']; |
| 21: |
| 22: ms= cs['maxWidth']; |
| 23: if (ms && ms!='auto' && ms!='none' && ms!='0' && ms!='') { |
| 24: st.minmaxWidth= cs.width; |
| 25: minmax_elements[minmax_elements.length]= el; |
| 26: minmax_delayout(); |
| 27: } |
| 28: } |
| 29: |
| 30: var minmax_delaying= false; |
| 31: function minmax_delayout() { |
| 32: if (minmax_delaying) return; |
| 33: minmax_delaying= true; |
| 34: window.setTimeout(minmax_layout, 0); |
| 35: } |
| 36: |
| 37: function minmax_stopdelaying() { |
| 38: minmax_delaying= false; |
| 39: } |
| 40: |
| 41: function minmax_layout() { |
| 42: window.setTimeout(minmax_stopdelaying, 100); |
| 43: var i, el, st, cs, optimal, inrange; |
| 44: for (i= minmax_elements.length; i-->0;) { |
| 45: el= minmax_elements[i]; st= el.style; cs= el.currentStyle; |
| 46: |
| 47: st.width= st.minmaxWidth; optimal= el.offsetWidth; |
| 48: inrange= true; |
| 49: if (inrange && cs.minWidth && cs.minWidth!='0' && cs.minWidth!='auto' && cs.minWidth!='') { |
| 50: st.width= cs.minWidth; |
| 51: inrange= (el.offsetWidth<optimal); |
| 52: } |
| 53: if (inrange && cs.maxWidth && cs.maxWidth!='none' && cs.maxWidth!='auto' && cs.maxWidth!='') { |
| 54: st.width= cs.maxWidth; |
| 55: inrange= (el.offsetWidth>optimal); |
| 56: } |
| 57: if (inrange) st.width= st.minmaxWidth; |
| 58: } |
| 59: } |
| 60: |
| 61: var minmax_SCANDELAY= 500; |
| 62: |
| 63: function minmax_scan() { |
| 64: var el; |
| 65: for (var i= 0; i<document.all.length; i++) { |
| 66: el= document.all[i]; |
| 67: if (!el.minmax_bound) { |
| 68: el.minmax_bound= true; |
| 69: minmax_bind(el); |
| 70: } |
| 71: } |
| 72: } |
| 73: |
| 74: var minmax_scanner; |
| 75: function minmax_stop() { |
| 76: window.clearInterval(minmax_scanner); |
| 77: minmax_scan(); |
| 78: } |
| 79: |
| 80: minmax_scan(); |
| 81: minmax_scanner= window.setInterval(minmax_scan, minmax_SCANDELAY); |
| 82: window.attachEvent('onload', minmax_stop); |
| 83: |
| 84: @end @*/ |
punbb-1.2/upload/userlist.php |
punbb-1.2.1/upload/userlist.php |
63: <fieldset> | 63: <fieldset> |
64: <legend><?php echo $lang_ul['User find legend'] ?></legend> | 64: <legend><?php echo $lang_ul['User find legend'] ?></legend> |
65: <div class="infldset"> | 65: <div class="infldset"> |
66: <?php if ($pun_user['g_search_users'] == '1'): ?> <p><?php echo $lang_ul['User search info'] ?></p> | 66: <?php if ($pun_user['g_search_users'] == '1'): ?> <label class="conl"><?php echo $lang_common['Username'] ?><br /><input type="text" name="username" value="<?php echo pun_htmlspecialchars($username) ?>" size="25" maxlength="25" /><br /></label> |
67: <label class="conl"><?php echo $lang_common['Username'] ?><br /><input type="text" name="username" value="<?php echo pun_htmlspecialchars($username) ?>" size="25" maxlength="25" /><br /></label> | 67: <?php endif; ?> <label class="conl"><?php echo $lang_ul['User group']."\n" ?> |
68: <?php endif; ?> <label class="conl"><?php echo $lang_ul['User group'] ?> | |
69: <br /><select name="show_group"> | 68: <br /><select name="show_group"> |
70: <option value="-1"<?php if ($show_group == -1) echo ' selected="selected"' ?>><?php echo $lang_ul['All users'] ?></option> | 69: <option value="-1"<?php if ($show_group == -1) echo ' selected="selected"' ?>><?php echo $lang_ul['All users'] ?></option> |
71: <?php | 70: <?php |
82: | 81: |
83: ?> | 82: ?> |
84: </select> | 83: </select> |
85: </label> | 84: <br /></label> |
86: <label class="conl"><?php echo $lang_search['Sort by'] ?> | 85: <label class="conl"><?php echo $lang_search['Sort by']."\n" ?> |
87: <br /><select name="sort_by"> | 86: <br /><select name="sort_by"> |
88: <option value="username"<?php if ($sort_by == 'username') echo ' selected="selected"' ?>><?php echo $lang_common['Username'] ?></option> | 87: <option value="username"<?php if ($sort_by == 'username') echo ' selected="selected"' ?>><?php echo $lang_common['Username'] ?></option> |
89: <option value="registered"<?php if ($sort_by == 'registered') echo ' selected="selected"' ?>><?php echo $lang_common['Registered'] ?></option> | 88: <option value="registered"<?php if ($sort_by == 'registered') echo ' selected="selected"' ?>><?php echo $lang_common['Registered'] ?></option> |
90: <?php if ($show_post_count): ?> <option value="num_posts"<?php if ($sort_by == 'num_posts') echo ' selected="selected"' ?>><?php echo $lang_ul['No of posts'] ?></option> | 89: <?php if ($show_post_count): ?> <option value="num_posts"<?php if ($sort_by == 'num_posts') echo ' selected="selected"' ?>><?php echo $lang_ul['No of posts'] ?></option> |
91: <?php endif; ?> </select> | 90: <?php endif; ?> </select> |
92: </label> | 91: <br /></label> |
93: <label class="conl"><?php echo $lang_search['Sort order'] ?> | 92: <label class="conl"><?php echo $lang_search['Sort order']."\n" ?> |
94: <br /><select name="sort_dir"> | 93: <br /><select name="sort_dir"> |
95: <option value="ASC"<?php if ($sort_dir == 'ASC') echo ' selected="selected"' ?>><?php echo $lang_search['Ascending'] ?></option> | 94: <option value="ASC"<?php if ($sort_dir == 'ASC') echo ' selected="selected"' ?>><?php echo $lang_search['Ascending'] ?></option> |
96: <option value="DESC"<?php if ($sort_dir == 'DESC') echo ' selected="selected"' ?>><?php echo $lang_search['Descending'] ?></option> | 95: <option value="DESC"<?php if ($sort_dir == 'DESC') echo ' selected="selected"' ?>><?php echo $lang_search['Descending'] ?></option> |
97: </select> | 96: </select> |
98: </label> | 97: <br /></label> |
99: <div class="clearer"></div> | 98: <p class="clearb"><?php echo $lang_ul['User search info'] ?></p> |
100: </div> | 99: </div> |
101: </fieldset> | 100: </fieldset> |
102: </div> | 101: </div> |
punbb-1.2/upload/viewforum.php |
punbb-1.2.1/upload/viewforum.php |
55: // Sort out who the moderators are and if we are currently a moderator (or an admin) | 55: // Sort out who the moderators are and if we are currently a moderator (or an admin) |
56: $mods_array = array(); | 56: $mods_array = array(); |
57: if ($cur_forum['moderators'] != '') | 57: if ($cur_forum['moderators'] != '') |
58: { | |
59: $mods_array = unserialize($cur_forum['moderators']); | 58: $mods_array = unserialize($cur_forum['moderators']); |
60: | 59: |
61: while (list($mod_username, $mod_id) = @each($mods_array)) | |
62: $temp_array[] = '<a href="profile.php?id='.$mod_id.'">'.pun_htmlspecialchars($mod_username).'</a>'; | |
63: | |
64: $mods_string = implode(', ', $temp_array); | |
65: } | |
66: | |
67: $is_admmod = ($pun_user['g_id'] == PUN_ADMIN || ($pun_user['g_id'] == PUN_MOD && array_key_exists($pun_user['username'], $mods_array))) ? true : false; | 60: $is_admmod = ($pun_user['g_id'] == PUN_ADMIN || ($pun_user['g_id'] == PUN_MOD && array_key_exists($pun_user['username'], $mods_array))) ? true : false; |
68: | 61: |
69: // Can we or can we not post new topics? | 62: // Can we or can we not post new topics? |
70: if (($cur_forum['post_topics'] == '' && $pun_user['g_post_topics'] == '1') || $cur_forum['post_topics'] == '1' || $is_admmod) | 63: if (($cur_forum['post_topics'] == '' && $pun_user['g_post_topics'] == '1') || $cur_forum['post_topics'] == '1' || $is_admmod) |
71: $post_link = '<a href="post.php?fid='.$id.'">'.$lang_forum['Post topic'].'</a>'; | 64: $post_link = "\t\t".'<p class="postlink conr"><a href="post.php?fid='.$id.'">'.$lang_forum['Post topic'].'</a></p>'."\n"; |
72: else | 65: else |
73: $post_link = ' '; | 66: $post_link = ''; |
74: | 67: |
75: | 68: |
76: // Determine the topic offset (based on $_GET['p']) | 69: // Determine the topic offset (based on $_GET['p']) |
91: <div class="linkst"> | 84: <div class="linkst"> |
92: <div class="inbox"> | 85: <div class="inbox"> |
93: <p class="pagelink conl"><?php echo $paging_links ?></p> | 86: <p class="pagelink conl"><?php echo $paging_links ?></p> |
94: <p class="postlink conr"><?php echo $post_link ?></p> | 87: <?php echo $post_link ?> |
95: <ul><li><a href="index.php"><?php echo $lang_common['Index'] ?></a> </li><li>» <?php echo pun_htmlspecialchars($cur_forum['forum_name']) ?></li></ul> | 88: <ul><li><a href="index.php"><?php echo $lang_common['Index'] ?></a> </li><li>» <?php echo pun_htmlspecialchars($cur_forum['forum_name']) ?></li></ul> |
96: <div class="clearer"></div> | 89: <div class="clearer"></div> |
97: </div> | 90: </div> |
102: <div class="box"> | 95: <div class="box"> |
103: <div class="inbox"> | 96: <div class="inbox"> |
104: <table cellspacing="0"> | 97: <table cellspacing="0"> |
105: <colgroup> | |
106: <col class="tcl" /> | |
107: <col class="tc2" /> | |
108: <col class="tc3" /> | |
109: <col class="tcr" /> | |
110: </colgroup> | |
111: <thead> | 98: <thead> |
112: <tr> | 99: <tr> |
113: <th class="tcl" scope="col"><?php echo $lang_common['Topic'] ?></th> | 100: <th class="tcl" scope="col"><?php echo $lang_common['Topic'] ?></th> |
131: switch ($db_type) | 118: switch ($db_type) |
132: { | 119: { |
133: case 'mysql': | 120: case 'mysql': |
| 121: case 'mysqli': |
134: $sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, 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 FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$pun_user['id'].' WHERE t.forum_id='.$id.' GROUP BY t.id ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics']; | 122: $sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, 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 FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$pun_user['id'].' WHERE t.forum_id='.$id.' GROUP BY t.id ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics']; |
135: break; | 123: break; |
136: | 124: |
152: { | 140: { |
153: while ($cur_topic = $db->fetch_assoc($result)) | 141: while ($cur_topic = $db->fetch_assoc($result)) |
154: { | 142: { |
155: $icon = '<div class="inormal"><div class="nosize">'.$lang_common['Normal icon'].'</div></div>'."\n"; | 143: $icon_text = $lang_common['Normal icon']; |
| 144: $item_status = ''; |
| 145: $icon_type = 'icon'; |
156: | 146: |
157: if ($cur_topic['moved_to'] == null) | 147: if ($cur_topic['moved_to'] == null) |
158: $last_post = '<a href="viewtopic.php?pid='.$cur_topic['last_post_id'].'#p'.$cur_topic['last_post_id'].'">'.format_time($cur_topic['last_post']).'</a> '.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['last_poster']); | 148: $last_post = '<a href="viewtopic.php?pid='.$cur_topic['last_post_id'].'#p'.$cur_topic['last_post_id'].'">'.format_time($cur_topic['last_post']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['last_poster']).'</span>'; |
159: else | 149: else |
160: $last_post = ' '; | 150: $last_post = ' '; |
161: | 151: |
168: $subject = '<a href="viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span>'; | 158: $subject = '<a href="viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span>'; |
169: else | 159: else |
170: { | 160: { |
171: $subject = '<a class="showclosed" href="viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span>'; | 161: $subject = '<a href="viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span>'; |
172: $icon = '<div class="iclosed"><div class="nosize">'.$lang_common['Closed icon'].'</div></div>'."\n"; | 162: $icon_text = $lang_common['Closed icon']; |
| 163: $item_status = 'iclosed'; |
173: } | 164: } |
174: | 165: |
175: if (!$pun_user['is_guest'] && $cur_topic['last_post'] > $pun_user['last_visit'] && $cur_topic['moved_to'] == null) | 166: if (!$pun_user['is_guest'] && $cur_topic['last_post'] > $pun_user['last_visit'] && $cur_topic['moved_to'] == null) |
176: { | 167: { |
177: $icon = '<div class="inew"><div class="nosize">'.$lang_common['New icon'].'</div></div>'."\n"; | 168: $icon_text .= ' '.$lang_common['New icon']; |
178: | 169: $item_status .= ' inew'; |
| 170: $icon_type = 'icon inew'; |
179: $subject = '<strong>'.$subject.'</strong>'; | 171: $subject = '<strong>'.$subject.'</strong>'; |
180: $subject_new_posts = '[ <a href="viewtopic.php?id='.$cur_topic['id'].'&action=new" title="'.$lang_common['New posts info'].'">'.$lang_common['New posts'].'</a> ]'; | 172: $subject_new_posts = '<span class="newtext">[ <a href="viewtopic.php?id='.$cur_topic['id'].'&action=new" title="'.$lang_common['New posts info'].'">'.$lang_common['New posts'].'</a> ]</span>'; |
181: } | 173: } |
182: else | 174: else |
183: $subject_new_posts = null; | 175: $subject_new_posts = null; |
192: } | 184: } |
193: | 185: |
194: if ($cur_topic['sticky'] == '1') | 186: if ($cur_topic['sticky'] == '1') |
195: $subject = $lang_forum['Sticky'].': '.$subject; | 187: { |
196: | 188: $subject = '<span class="stickytext">'.$lang_forum['Sticky'].': </span>'.$subject; |
| 189: $item_status .= ' isticky'; |
| 190: $icon_text .= ' '.$lang_forum['Sticky']; |
| 191: } |
197: | 192: |
198: $num_pages_topic = ceil(($cur_topic['num_replies'] + 1) / $pun_user['disp_posts']); | 193: $num_pages_topic = ceil(($cur_topic['num_replies'] + 1) / $pun_user['disp_posts']); |
199: | 194: |
210: } | 205: } |
211: | 206: |
212: ?> | 207: ?> |
213: <tr> | 208: <tr<?php if ($item_status != '') echo ' class="'.trim($item_status).'"'; ?>> |
214: <td class="tcl"> | 209: <td class="tcl"> |
215: <div class="intd"> | 210: <div class="intd"> |
216: <?php echo $icon ?> | 211: <div class="<?php echo $icon_type ?>"><div class="nosize"><?php echo trim($icon_text) ?></div></div> |
217: <div class="tclcon"> | 212: <div class="tclcon"> |
218: <?php echo $subject."\n" ?> | 213: <?php echo $subject."\n" ?> |
219: </div> | 214: </div> |
248: <div class="linksb"> | 243: <div class="linksb"> |
249: <div class="inbox"> | 244: <div class="inbox"> |
250: <p class="pagelink conl"><?php echo $lang_common['Pages'].': '.paginate($num_pages, $p, 'viewforum.php?id='.$id) ?></p> | 245: <p class="pagelink conl"><?php echo $lang_common['Pages'].': '.paginate($num_pages, $p, 'viewforum.php?id='.$id) ?></p> |
251: <p class="postlink conr"><?php echo $post_link ?></p> | 246: <?php echo $post_link ?> |
252: <p><?php echo (!empty($mods_array)) ? $lang_common['Moderated by'].' '.$mods_string : ' ' ?></p> | 247: <ul><li><a href="index.php"><?php echo $lang_common['Index'] ?></a> </li><li>» <?php echo pun_htmlspecialchars($cur_forum['forum_name']) ?></li></ul> |
253: <div class="clearer"></div> | 248: <div class="clearer"></div> |
254: </div> | 249: </div> |
255: </div> | 250: </div> |
punbb-1.2/upload/viewtopic.php |
punbb-1.2.1/upload/viewtopic.php |
139: $cur_topic['subject'] = censor_words($cur_topic['subject']); | 139: $cur_topic['subject'] = censor_words($cur_topic['subject']); |
140: | 140: |
141: | 141: |
142: $page_title = pun_htmlspecialchars($pun_config['o_board_title'].' / '.$cur_topic['subject']); | |
143: | |
144: $quickpost = false; | 142: $quickpost = false; |
145: if ($pun_config['o_quickpost'] == '1' && | 143: if ($pun_config['o_quickpost'] == '1' && |
146: $is_admmod || | 144: !$pun_user['is_guest'] && |
147: (!$pun_user['is_guest'] && | |
148: ($cur_topic['post_replies'] == '1' || ($cur_topic['post_replies'] == '' && $pun_user['g_post_replies'] == '1')) && | 145: ($cur_topic['post_replies'] == '1' || ($cur_topic['post_replies'] == '' && $pun_user['g_post_replies'] == '1')) && |
149: $cur_topic['closed'] == '0')) | 146: ($cur_topic['closed'] == '0' || $is_admmod)) |
150: { | 147: { |
151: $required_fields = array('req_message' => $lang_common['Message']); | 148: $required_fields = array('req_message' => $lang_common['Message']); |
152: $quickpost = true; | 149: $quickpost = true; |
156: { | 153: { |
157: if ($cur_topic['is_subscribed']) | 154: if ($cur_topic['is_subscribed']) |
158: // I apologize for the variable naming here. It's a mix of subscription and action I guess :-) | 155: // I apologize for the variable naming here. It's a mix of subscription and action I guess :-) |
159: $subscraction = $lang_topic['Is subscribed'].' - <a href="misc.php?unsubscribe='.$id.'">'.$lang_topic['Unsubscribe'].'</a>'; | 156: $subscraction = '<p class="subscribelink clearb">'.$lang_topic['Is subscribed'].' - <a href="misc.php?unsubscribe='.$id.'">'.$lang_topic['Unsubscribe'].'</a></p>'."\n"; |
160: else | 157: else |
161: $subscraction = '<a href="misc.php?subscribe='.$id.'">'.$lang_topic['Subscribe'].'</a>'; | 158: $subscraction = '<p class="subscribelink clearb"><a href="misc.php?subscribe='.$id.'">'.$lang_topic['Subscribe'].'</a></p>'."\n"; |
162: } | 159: } |
163: else | 160: else |
164: $subscraction = ' '; | 161: $subscraction = '<div class="clearer"></div>'."\n"; |
165: | 162: |
| 163: $page_title = pun_htmlspecialchars($pun_config['o_board_title'].' / '.$cur_topic['subject']); |
166: define('PUN_ALLOW_INDEX', 1); | 164: define('PUN_ALLOW_INDEX', 1); |
167: require PUN_ROOT.'header.php'; | 165: require PUN_ROOT.'header.php'; |
168: | 166: |
206: $user_title = censor_words($user_title); | 204: $user_title = censor_words($user_title); |
207: | 205: |
208: // Format the online indicator | 206: // Format the online indicator |
209: $is_online = ($cur_post['is_online'] == $cur_post['poster_id']) ? '<strong class="showhot">'.$lang_topic['Online'].'</strong>' : $lang_topic['Offline']; | 207: $is_online = ($cur_post['is_online'] == $cur_post['poster_id']) ? '<strong>'.$lang_topic['Online'].'</strong>' : $lang_topic['Offline']; |
210: | 208: |
211: if ($pun_config['o_avatars'] == '1' && $cur_post['use_avatar'] == '1' && $pun_user['show_avatars'] != '0') | 209: if ($pun_config['o_avatars'] == '1' && $cur_post['use_avatar'] == '1' && $pun_user['show_avatars'] != '0') |
212: { | 210: { |
271: if (!$is_admmod) | 269: if (!$is_admmod) |
272: { | 270: { |
273: if (!$pun_user['is_guest']) | 271: if (!$pun_user['is_guest']) |
274: $post_actions[] = '<li><a class="showclosed" href="misc.php?report='.$cur_post['id'].'">'.$lang_topic['Report'].'</a>'; | 272: $post_actions[] = '<li class="postreport"><a href="misc.php?report='.$cur_post['id'].'">'.$lang_topic['Report'].'</a>'; |
275: | 273: |
276: if ($cur_topic['closed'] == '0') | 274: if ($cur_topic['closed'] == '0') |
277: { | 275: { |
278: if ($cur_post['poster_id'] == $pun_user['id']) | 276: if ($cur_post['poster_id'] == $pun_user['id']) |
279: { | 277: { |
280: if ((($start_from + $post_count) == 1 && $pun_user['g_delete_topics'] == '1') || (($start_from + $post_count) > 1 && $pun_user['g_delete_posts'] == '1')) | 278: if ((($start_from + $post_count) == 1 && $pun_user['g_delete_topics'] == '1') || (($start_from + $post_count) > 1 && $pun_user['g_delete_posts'] == '1')) |
281: $post_actions[] = '<li><a href="delete.php?id='.$cur_post['id'].'">'.$lang_topic['Delete'].'</a>'; | 279: $post_actions[] = '<li class="postdelete"><a href="delete.php?id='.$cur_post['id'].'">'.$lang_topic['Delete'].'</a>'; |
282: if ($pun_user['g_edit_posts'] == '1') | 280: if ($pun_user['g_edit_posts'] == '1') |
283: $post_actions[] = '<li><a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a>'; | 281: $post_actions[] = '<li class="postedit"><a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a>'; |
284: } | 282: } |
285: | 283: |
286: if (($cur_topic['post_replies'] == '' && $pun_user['g_post_replies'] == '1') || $cur_topic['post_replies'] == '1') | 284: if (($cur_topic['post_replies'] == '' && $pun_user['g_post_replies'] == '1') || $cur_topic['post_replies'] == '1') |
287: $post_actions[] = '<li><a href="post.php?tid='.$id.'&qid='.$cur_post['id'].'">'.$lang_topic['Quote'].'</a>'; | 285: $post_actions[] = '<li class="postquote"><a href="post.php?tid='.$id.'&qid='.$cur_post['id'].'">'.$lang_topic['Quote'].'</a>'; |
288: } | 286: } |
289: } | 287: } |
290: else | 288: else |
291: $post_actions[] = '<li><a class="showclosed" href="misc.php?report='.$cur_post['id'].'">'.$lang_topic['Report'].'</a>'.$lang_topic['Link separator'].'</li><li><a href="delete.php?id='.$cur_post['id'].'">'.$lang_topic['Delete'].'</a>'.$lang_topic['Link separator'].'</li><li><a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a>'.$lang_topic['Link separator'].'</li><li><a href="post.php?tid='.$id.'&qid='.$cur_post['id'].'">'.$lang_topic['Quote'].'</a>'; | 289: $post_actions[] = '<li class="postreport"><a href="misc.php?report='.$cur_post['id'].'">'.$lang_topic['Report'].'</a>'.$lang_topic['Link separator'].'</li><li class="postdelete"><a href="delete.php?id='.$cur_post['id'].'">'.$lang_topic['Delete'].'</a>'.$lang_topic['Link separator'].'</li><li class="postedit"><a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a>'.$lang_topic['Link separator'].'</li><li class="postquote"><a href="post.php?tid='.$id.'&qid='.$cur_post['id'].'">'.$lang_topic['Quote'].'</a>'; |
292: | 290: |
293: | 291: |
294: // Switch the background color for every message. | 292: // Switch the background color for every message. |
330: <div class="postmsg"> | 328: <div class="postmsg"> |
331: <?php echo $cur_post['message']."\n" ?> | 329: <?php echo $cur_post['message']."\n" ?> |
332: <?php if ($cur_post['edited'] != '') echo "\t\t\t\t\t".'<p class="postedit"><em>'.$lang_topic['Last edit'].' '.pun_htmlspecialchars($cur_post['edited_by']).' ('.format_time($cur_post['edited']).')</em></p>'."\n"; ?> | 330: <?php if ($cur_post['edited'] != '') echo "\t\t\t\t\t".'<p class="postedit"><em>'.$lang_topic['Last edit'].' '.pun_htmlspecialchars($cur_post['edited_by']).' ('.format_time($cur_post['edited']).')</em></p>'."\n"; ?> |
333: <?php if ($signature != '') echo "\t\t\t\t\t".'<div class="postsignature"><hr />'.$signature.'</div>'."\n"; ?> | |
334: </div> | 331: </div> |
| 332: <?php if ($signature != '') echo "\t\t\t\t".'<div class="postsignature"><hr />'.$signature.'</div>'."\n"; ?> |
335: </div> | 333: </div> |
336: <div class="clearer"></div> | 334: <div class="clearer"></div> |
337: <div class="postfootleft"><?php if ($cur_post['poster_id'] > 1) echo '<p>'.$is_online.'</p>'; ?></div> | 335: <div class="postfootleft"><?php if ($cur_post['poster_id'] > 1) echo '<p>'.$is_online.'</p>'; ?></div> |
349: <div class="inbox"> | 347: <div class="inbox"> |
350: <p class="postlink conr"><?php echo $post_link ?></p> | 348: <p class="postlink conr"><?php echo $post_link ?></p> |
351: <p class="pagelink conl"><?php echo $paging_links ?></p> | 349: <p class="pagelink conl"><?php echo $paging_links ?></p> |
352: <p><?php echo $subscraction ?></p> | 350: <ul><li><a href="index.php"><?php echo $lang_common['Index'] ?></a></li><li> » <a href="viewforum.php?id=<?php echo $cur_topic['forum_id'] ?>"><?php echo pun_htmlspecialchars($cur_topic['forum_name']) ?></a></li><li> » <?php echo pun_htmlspecialchars($cur_topic['subject']) ?></li></ul> |
353: <div class="clearer"></div> | 351: <?php echo $subscraction ?> |
354: </div> | 352: </div> |
355: </div> | 353: </div> |
356: | 354: |