From 0e822075512834021658ab3d39165b1974dde57d Mon Sep 17 00:00:00 2001 From: Ahmed Kawa <90964275+Axmaw98@users.noreply.github.com> Date: Fri, 18 Aug 2023 06:53:04 +0300 Subject: [PATCH] Add files via upload --- admin_bans.php | 290 +++++++ admin_categories.php | 221 +++++ admin_censoring.php | 148 ++++ admin_forums.php | 299 +++++++ admin_index.php | 142 ++++ admin_maintenance.php | 169 ++++ admin_options.php | 426 ++++++++++ admin_permissions.php | 205 +++++ admin_prune.php | 220 +++++ admin_ranks.php | 156 ++++ admin_reports.php | 146 ++++ admin_users.php | 490 +++++++++++ delete.php | 176 ++++ docs/COPYING | 340 ++++++++ docs/example_config.php | 21 + docs/install.html | 105 +++ edit.php | 218 +++++ extra/10_rc2_to_10_update.php | 129 +++ extra/prune_unvalidated_users.php | 43 + extra/turn_off_maintenance_mode.php | 46 ++ footer.php | 170 ++++ header.php | 166 ++++ help.php | 132 +++ img/Cobalt_new.png | Bin 0 -> 245 bytes img/Lithium_new.png | Bin 0 -> 245 bytes img/Mercury_new.png | Bin 0 -> 245 bytes img/Oxygen_new.png | Bin 0 -> 245 bytes img/Radium_new.png | Bin 0 -> 245 bytes img/Sulfur_new.png | Bin 0 -> 245 bytes img/avatars/index.html | 8 + img/index.html | 8 + img/smilies/big_smile.png | Bin 0 -> 401 bytes img/smilies/index.html | 8 + img/smilies/mad.png | Bin 0 -> 417 bytes img/smilies/roll.png | Bin 0 -> 440 bytes img/smilies/sad.png | Bin 0 -> 425 bytes img/smilies/smile.png | Bin 0 -> 420 bytes img/smilies/wink.png | Bin 0 -> 416 bytes include/common.php | 815 ++++++++++++++++++ include/commonadmin.php | 119 +++ include/dblayer/commondb.php | 48 ++ include/dblayer/index.html | 8 + include/dblayer/mysql.php | 201 +++++ include/dblayer/pgsql.php | 306 +++++++ include/email.php | 157 ++++ include/index.html | 8 + include/parser.php | 385 +++++++++ include/searchidx.php | 225 +++++ include/template/index.html | 8 + include/template/main.tpl | 30 + include/template/maintenance.tpl | 20 + include/template/redirect.tpl | 22 + index.php | 235 ++++++ install.php | 1060 ++++++++++++++++++++++++ lang/en/en_common.php | 99 +++ lang/en/en_delete.php | 12 + lang/en/en_edit.php | 21 + lang/en/en_forum.php | 14 + lang/en/en_help.php | 41 + lang/en/en_index.php | 29 + lang/en/en_login.php | 28 + lang/en/en_misc.php | 17 + lang/en/en_post.php | 34 + lang/en/en_prof_reg.php | 32 + lang/en/en_profile.php | 115 +++ lang/en/en_register.php | 42 + lang/en/en_search.php | 39 + lang/en/en_stopwords.txt | 151 ++++ lang/en/en_topic.php | 23 + lang/en/en_userlist.php | 12 + lang/en/index.html | 8 + lang/index.html | 8 + login.php | 219 +++++ misc.php | 220 +++++ moderate.php | 261 ++++++ post.php | 514 ++++++++++++ profile.php | 1187 +++++++++++++++++++++++++++ register.php | 343 ++++++++ search.php | 719 ++++++++++++++++ style/Cobalt.css | 101 +++ style/Lithium.css | 99 +++ style/Mercury.css | 102 +++ style/Oxygen.css | 100 +++ style/Radium.css | 101 +++ style/Sulfur.css | 99 +++ style/index.html | 8 + userlist.php | 197 +++++ viewforum.php | 237 ++++++ viewtopic.php | 451 ++++++++++ 89 files changed, 13812 insertions(+) create mode 100644 admin_bans.php create mode 100644 admin_categories.php create mode 100644 admin_censoring.php create mode 100644 admin_forums.php create mode 100644 admin_index.php create mode 100644 admin_maintenance.php create mode 100644 admin_options.php create mode 100644 admin_permissions.php create mode 100644 admin_prune.php create mode 100644 admin_ranks.php create mode 100644 admin_reports.php create mode 100644 admin_users.php create mode 100644 delete.php create mode 100644 docs/COPYING create mode 100644 docs/example_config.php create mode 100644 docs/install.html create mode 100644 edit.php create mode 100644 extra/10_rc2_to_10_update.php create mode 100644 extra/prune_unvalidated_users.php create mode 100644 extra/turn_off_maintenance_mode.php create mode 100644 footer.php create mode 100644 header.php create mode 100644 help.php create mode 100644 img/Cobalt_new.png create mode 100644 img/Lithium_new.png create mode 100644 img/Mercury_new.png create mode 100644 img/Oxygen_new.png create mode 100644 img/Radium_new.png create mode 100644 img/Sulfur_new.png create mode 100644 img/avatars/index.html create mode 100644 img/index.html create mode 100644 img/smilies/big_smile.png create mode 100644 img/smilies/index.html create mode 100644 img/smilies/mad.png create mode 100644 img/smilies/roll.png create mode 100644 img/smilies/sad.png create mode 100644 img/smilies/smile.png create mode 100644 img/smilies/wink.png create mode 100644 include/common.php create mode 100644 include/commonadmin.php create mode 100644 include/dblayer/commondb.php create mode 100644 include/dblayer/index.html create mode 100644 include/dblayer/mysql.php create mode 100644 include/dblayer/pgsql.php create mode 100644 include/email.php create mode 100644 include/index.html create mode 100644 include/parser.php create mode 100644 include/searchidx.php create mode 100644 include/template/index.html create mode 100644 include/template/main.tpl create mode 100644 include/template/maintenance.tpl create mode 100644 include/template/redirect.tpl create mode 100644 index.php create mode 100644 install.php create mode 100644 lang/en/en_common.php create mode 100644 lang/en/en_delete.php create mode 100644 lang/en/en_edit.php create mode 100644 lang/en/en_forum.php create mode 100644 lang/en/en_help.php create mode 100644 lang/en/en_index.php create mode 100644 lang/en/en_login.php create mode 100644 lang/en/en_misc.php create mode 100644 lang/en/en_post.php create mode 100644 lang/en/en_prof_reg.php create mode 100644 lang/en/en_profile.php create mode 100644 lang/en/en_register.php create mode 100644 lang/en/en_search.php create mode 100644 lang/en/en_stopwords.txt create mode 100644 lang/en/en_topic.php create mode 100644 lang/en/en_userlist.php create mode 100644 lang/en/index.html create mode 100644 lang/index.html create mode 100644 login.php create mode 100644 misc.php create mode 100644 moderate.php create mode 100644 post.php create mode 100644 profile.php create mode 100644 register.php create mode 100644 search.php create mode 100644 style/Cobalt.css create mode 100644 style/Lithium.css create mode 100644 style/Mercury.css create mode 100644 style/Oxygen.css create mode 100644 style/Radium.css create mode 100644 style/Sulfur.css create mode 100644 style/index.html create mode 100644 userlist.php create mode 100644 viewforum.php create mode 100644 viewtopic.php diff --git a/admin_bans.php b/admin_bans.php new file mode 100644 index 0000000..76e626c --- /dev/null +++ b/admin_bans.php @@ -0,0 +1,290 @@ +query('SELECT username, email FROM '.$db->prefix.'users WHERE id='.$ban_id) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error()); + if ($db->num_rows($result)) + { + list($ban_user, $ban_email) = $db->fetch_row($result); + + $result = $db->query('SELECT poster_ip FROM '.$db->prefix.'posts WHERE poster_id='.$ban_id.' ORDER BY posted DESC LIMIT 1') or error('Unable to fetch post info', __FILE__, __LINE__, $db->error()); + if ($db->num_rows($result)) + $ban_ip = $db->result($result, 0); + } + else + message('No user by that ID registered.'); + } + else // Otherwise the username is in POST + { + $ban_user = trim($_POST['new_ban_user']); + + if ($ban_user != '') + { + $result = $db->query('SELECT id, username, email FROM '.$db->prefix.'users WHERE username=\''.escape(strtolower($ban_user)).'\'') or error('Unable to fetch user info', __FILE__, __LINE__, $db->error()); + if ($db->num_rows($result)) + { + list($ban_id, $ban_user, $ban_email) = $db->fetch_row($result); + + $result = $db->query('SELECT poster_ip FROM '.$db->prefix.'posts WHERE poster_id='.$ban_id.' ORDER BY posted DESC LIMIT 1') or error('Unable to fetch post info', __FILE__, __LINE__, $db->error()); + if ($db->num_rows($result)) + $ban_ip = $db->result($result, 0); + } + else + message('No user by that username registered. If you want to add a ban not tied to a specific username just leave the username blank.'); + } + } + + + $page_title = htmlspecialchars($options['board_title']).' / Admin / Bans'; + $form_name = 'bans2'; + $focus_element = 'new_ban_ip'; + require 'header.php'; + + if ($cur_user['status'] > 1) + admin_menu('bans'); + else + moderator_menu('bans'); + + +?> +
+ +Forum administation | +
+ Welcome to the PunBB administration control panel. From here you can control vital aspects of the forum. Depending on whether you are an administrator or a moderator you can + - organize categories and forums. + - set forum-wide options and preferences. + - control permissions for users and guests. + - view IP statistics for users. + - ban users. + - censor words. + - set up user ranks. + - prune old posts. + - handle post reports. + |
+
Statistics | +|
Current version | +
+ PunBB + Developed by Rickard Andersson + © Copyright 2002, 2003 Rickard Andersson + |
+
Unix load averages | +- users online | +
Environment | +
+ PHP + + Rows: + Size: + + |
+
10 last zapped reports | |||||
Forum | +Topic | +Message | +Reporter | +Zapped | +|
+ | + | ', htmlspecialchars($cur_report['message'])) ?> | ++ | + | There are no zapped reports. | '."\n"; + +?> +
IP address | +Hostname | +Last used | +Times found | +Action | +||||||
+ | + | + | + | Find more users for this ip | +There are currently no posts by that user in the forum. | '."\n"; + +?> + +
Username | +Title | +Registered | +Last post | +Posts | +Admin note | +Actions | +||||
'.htmlspecialchars($user_data['username']).'' ?> | ++ | + | + | + | + | + | + | |||
+ | + | Guest | ++ | + | + | + | + | The supplied IP address could not be found in the database. | '."\n"; + +?> + +
Username | +Title | +Registered | +Last post | +Posts | +Admin note | +Actions | +|
'.htmlspecialchars($user_data['username']).'' ?> | ++ | + | + | + | + | + | + | No match. | '."\n"; + +?> +
NOTE: If you are upgrading from 1.0 RC 2, skip to section 3.
+ +MySQL: Version 3.23 or later is recommended. PunBB will probably +work with older versions though.
+ +PostgreSQL: PunBB 1.0 has only been tested on version 7.3.3 of +PostgreSQL. It should work fine with any version greater than 7.0 +though. If the installer complains about not being able to create +an index, open up install.php and search for "PostgreSQL <7.3 +note".
+ +Copy/upload all files and directories and run install.php from +the forum root directory. Follow the instructions. If you get an +error when trying to upload avatar images, make sure that PHP has +write access to the directory where you store avatars (default is +img/avatars). Please report any problems you might encounter during +installation in the forums at http://forums.punbb.org/.
+ +Follow these instructions to update your current 1.0 RC 2 +installation to 1.0 final. It is recommended that the forum be put +into maintenance mode (Admin/Options) during the update +procedure.
+ +NOTE: Make a backup before proceeding! Use the tool mysqldump +for MySQL and pg_dump for PostgreSQL. Also backup any CSS and +template files that you have made changes to.
+ +You should now be running PunBB 1.0.
+ +Here are some recommendations for maximizing the performance of +PunBB. The recommendations are not directly related to PunBB +performance. They are very general and results may vary.
+ +Thank you for using PunBB.
+
+Rickard Andersson
+punbb@telia.com
+http://www.punbb.org/
+
+
|
+
+ | |||
+ |
+
+
+ + + |
+ ||
+ |
+
+
+ + [b][/b] + [u][/u] + [i][/i] + [color=#FF0000][/color] + |
+ ||
+ |
+
+
+ + [url=][/url] + [url][/url] + [email]myname@mydomain.com[/email] myname@mydomain.com + [email=myname@mydomain.com][/email] + + [img][/img] + |
+ ||
+ |
+
+
+ + [quote][/quote] + + + + [code][/code] + +
+ |
+ ||
+ |
+
+
+ + [b][u][/u][/b] + |
+ ||
+ |
+
+
+ + :) =) + :( =( + :D =D + ;) + :x + :rolleyes: + |
+
+ |
+ + . + |
+
An error was encountered | +
+File: '.$file.' '."\n\t\t\t".'Line: '.$line.' '."\n\t\t\t".'PunBB reported: '.$message."\n"; + + if ($db_error) + print "\t\t\t".' Database reported: '.htmlspecialchars($db_error['error']).' (Errno: '.$db_error['errno'].')'."\n"; + } + else + print "\t\t\t".'Error: '.$message.'.'."\n"; + +?> + |
+
'; + print_r($var1); + + if ($var2 != null) + { + print "\n\n"; + print_r($var2); + } + + print ''; + exit; +} diff --git a/include/commonadmin.php b/include/commonadmin.php new file mode 100644 index 0000000..60b23b5 --- /dev/null +++ b/include/commonadmin.php @@ -0,0 +1,119 @@ + +
Categories | +Forums | +Users | +Options | +Permissions | +Censoring | +Ranks | +Bans | +Prune | +Maintenance | +Reports | +
Users | +Censoring | +Bans | +Reports | +
', $message); + $message = str_replace('[/quote]', ' |
code:'.trim($inside[$i]).' |
+ {pun_title} + {pun_desc} + |
+
+ {pun_navlinks} + {pun_status} + |
+
{pun_maint_heading} | +
{pun_maint_message} | +
{pun_redir_heading} | +
+ {pun_redir_text} + | +
+ | + | + | + | + | + | |
+ | ||||||
+ | + + | ++ | + | + | + |
+
|
+
Instructions | +
Welcome to PunBB installation! You are about to install PunBB . Please make sure that the database that PunBB will be installed into is already created. If you are uncertain about what to enter in the fields below consult your server administrator. | +
Final instructions | +
To finalize the installation all you need to do is to copy and paste the text in the text box below into a file called config.php and then upload this file to the root directory of your PunBB installation. You can later edit config.php if you reconfigure your setup (i.e. install a new language pack or change the database password). | +
config.php | +|
File contents | ++ |
Info | +
+ Once you have created config.php with the contents above, PunBB is installed! + Go to forum index. + + |
+
+ |
+ |
+ | ||||||
+ | + |
+ |
+ |
+ |
KB). | +
+
|
+ |||
+ | + | ||
+ | + | ||
+ | + | ||
+ | + | ||
+ | + | ||
+ | + | ||
+ | + | ||
+ | + | ||
+ | + | ||
+ | + | ||
+ |
+
|
+ ||
+ | + | ||
+ | + | ||
+ | + |
'.$parsed_signature.' | '."\n\t\t\t\t\t".'
+ |
+ + + |
+
+ | + | + | + | + | + | |
+ |
+ : + : +
|
+ + | + | + | '.format_time($search_set[$i]['last_post']).' '.$lang_common['by'].' '.htmlspecialchars($search_set[$i]['last_poster']) ?> | +|
+ | + | + | + | + | '.format_time( $search_set[$i]['last_post']).' '.$lang_common['by'].' '.htmlspecialchars($search_set[$i]['last_poster']) ?> | +
+ |
+ |
+'.chr($i).' '; + else + print ''.chr($i).' '; +} +print "\n"; + +?> + '.$lang_ul['Other'].''."\n" : $lang_ul['Other']."\n"; ?> '.$lang_ul['All users'].''."\n" : $lang_ul['All users']."\n"; ?> + | +
+ | + | + | + |
+ | + | + | + | + |
'.htmlspecialchars($user_data['username']).'' ?> | +0) ? ''.$user_data['email'].'' : $lang_ul['Not displayed']; ?> | ++ | + 0): ?> | + | '.$lang_ul['No users'].' "'.$id.'". | '."\n"; + +?> +
+ |
/ | ++ | + |
+ | + | + | + | + | + |
+ | + | + | + | + | + | '.$lang_forum['Empty forum'].' | '."\n"; + +?> +
+ | + |
/ / | ++ | + |
+ |
+
|
+
+
|
+
+
|
+ |||
+ |
+
|
+
+ | + | + |