Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • osian/sucs-site
  • kais58/sucs-site
  • imranh/sucs-site
  • foshjedi2004/sucs-site
  • gigosaurus/sucs-site
  • matstn/sucs-site
  • ripp_/sucs-site
  • eggnog/sucs-site
  • sucssite/sucs-site
  • elbows/sucs-site
  • realitykiller/sucs-site
  • crox/sucs-site
  • vectre/sucs-site
  • welshbyte/sucs-site
  • paperclipman/sucs-site
15 results
Show changes
Showing
with 0 additions and 1188 deletions
<?php
// Language definitions used in delete.php
$lang_login = array(
// Miscellaneous
'Wrong user/pass' => 'Wrong username and/or password.',
'Forgotten pass' => 'Forgotten your password?',
'Login redirect' => 'Logged in successfully. Redirecting &hellip;',
'Logout redirect' => 'Logged out. Redirecting &hellip;',
'No e-mail match' => 'There is no user registered with the e-mail address',
'Request pass' => 'Request password',
'Request pass legend' => 'Enter the e-mail address with which you registered',
'Request pass info' => 'A new password together with a link to activate the new password will be sent to that address.',
'Not registered' => 'Not registered yet?',
'Login legend' => 'Enter your username and password below',
'Login info' => 'If you have not registered or have forgotten your password click on the appropriate link below.',
// Forget password mail stuff
'Forget mail' => 'An e-mail has been sent to the specified address with instructions on how to change your password. If it does not arrive you can contact the forum administrator at'
);
Subject: Change e-mail address requested
Hello <username>,
You have requested to have a new e-mail address assigned to your account in the discussion forum at <base_url>. If you didn't request this or if you don't want to change your e-mail address you should just ignore this message. Only if you visit the activation page below will your e-mail address be changed. In order for the activation page to work, you must be logged in to the forum.
To change your e-mail address, please visit the following page:
<activation_url>
--
<board_mailer>
(Do not reply to this message)
\ No newline at end of file
Subject: New password requested
Hello <username>,
You have requested to have a new password assigned to your account in the discussion forum at <base_url>. If you didn't request this or if you don't want to change your password you should just ignore this message. Only if you visit the activation page below will your password be changed.
Your new password is: <new_password>
To change your password, please visit the following page:
<activation_url>
--
<board_mailer>
(Do not reply to this message)
\ No newline at end of file
Subject: <mail_subject>
<sender> from <board_title> has sent you a message. You can reply to <sender> by replying to this e-mail.
The message reads as follows:
-----------------------------------------------------------------------
<mail_message>
-----------------------------------------------------------------------
--
<board_mailer>
\ No newline at end of file
<html>
<head>
<title>.</title>
</head>
<body>
.
</body>
</html>
\ No newline at end of file
Subject: Reply to topic: <topic_subject>
<replier> has replied to the topic <topic_subject> to which you are subscribed. There may be more new replies, but this is the only notification you will receive until you visit the board again.
The post is located at <post_url>
You can unsubscribe by going to <unsubscribe_url>
--
<board_mailer>
(Do not reply to this message)
\ No newline at end of file
Subject: Reply to topic: <topic_subject>
<replier> has replied to the topic <topic_subject> to which you are subscribed. There may be more new replies, but this is the only notification you will receive until you visit the board again.
The message reads as follows:
-----------------------------------------------------------------------
<message>
-----------------------------------------------------------------------
The post is located at <post_url>
You can unsubscribe by going to <unsubscribe_url>
--
<board_mailer>
(Do not reply to this message)
\ No newline at end of file
Subject: Welcome to <board_title>!
Thank you for registering in the forums at <base_url>. Your account details are:
Username: <username>
Password: <password>
Login at <login_url> to activate the account.
--
<board_mailer>
(Do not reply to this message)
\ No newline at end of file
<?php
// Language definitions used in various scripts
$lang_misc = array(
'Mark read redirect' => 'All topics and forums have been marked as read. Redirecting &hellip;',
// Send e-mail
'Form e-mail disabled' => 'The user you are trying to send an e-mail to has disabled form e-mail.',
'No e-mail subject' => 'You must enter a subject.',
'No e-mail message' => 'You must enter a message.',
'Too long e-mail message' => 'Messages cannot be longer than 65535 characters (64 KB).',
'E-mail sent redirect' => 'E-mail sent. Redirecting &hellip;',
'Send e-mail to' => 'Send e-mail to',
'E-mail subject' => 'Subject',
'E-mail message' => 'Message',
'E-mail disclosure note' => 'Please note that by using this form, your e-mail address will be disclosed to the recipient.',
'Write e-mail' => 'Write and submit your e-mail message',
// Report
'No reason' => 'You must enter a reason.',
'Report redirect' => 'Post reported. Redirecting &hellip;',
'Report post' => 'Report post',
'Reason' => 'Reason',
'Reason desc' => 'Please enter a short reason why you are reporting this post',
// Subscriptions
'Already subscribed' => 'You are already subscribed to this topic.',
'Subscribe redirect' => 'Your subscription has been added. Redirecting &hellip;',
'Not subscribed' => 'You are not subscribed to this topic.',
'Unsubscribe redirect' => 'Your subscription has been removed. Redirecting &hellip;',
// General forum and topic moderation
'Moderate' => 'Moderate',
'Select' => 'Select', // the header of a column of checkboxes
'Move' => 'Move',
'Delete' => 'Delete',
// Moderate forum
'Open' => 'Open',
'Close' => 'Close',
'Move topic' => 'Move topic',
'Move topics' => 'Move topics',
'Move legend' => 'Select destination of move',
'Move to' => 'Move to',
'Leave redirect' => 'Leave redirect topic(s)',
'Move topic redirect' => 'Topic moved. Redirecting &hellip;',
'Move topics redirect' => 'Topics moved. Redirecting &hellip;',
'Confirm delete legend' => 'Please confirm deletion',
'Delete topics' => 'Delete topics',
'Delete topics comply' => 'Are you sure you want to delete the selected topics?',
'Delete topics redirect' => 'Topics deleted. Redirecting &hellip;',
'Open topic redirect' => 'Topic opened. Redirecting &hellip;',
'Open topics redirect' => 'Topics opened. Redirecting &hellip;',
'Close topic redirect' => 'Topic closed. Redirecting &hellip;',
'Close topics redirect' => 'Topics closed. Redirecting &hellip;',
'No topics selected' => 'You must select at least one topic for move/delete/open/close.',
'Stick topic redirect' => 'Topic sticked. Redirecting &hellip;',
'Unstick topic redirect' => 'Topic unsticked. Redirecting &hellip;',
// Delete multiple posts in topic
'Delete posts' => 'Delete posts',
'Delete posts comply' => 'Are you sure you want to delete the selected posts?',
'Delete posts redirect' => 'Posts deleted. Redirecting &hellip;',
'No posts selected' => 'You must select at least one post to be deleted.'
);
<?php
// Language definitions used in post.php and edit.php
$lang_post = array(
// Post validation stuff (many are similiar to those in edit.php)
'No subject' => 'Topics must contain a subject.',
'Too long subject' => 'Subjects cannot be longer than 70 characters.',
'No message' => 'You must enter a message.',
'Too long message' => 'Posts cannot be longer that 65535 characters (64 KB).',
// Posting
'Post errors' => 'Post errors',
'Post errors info' => 'The following errors need to be corrected before the message can be posted:',
'Post preview' => 'Post preview',
'Guest name' => 'Name', // For guests (instead of Username)
'Post redirect' => 'Post entered. Redirecting &hellip;',
'Post a reply' => 'Post a reply',
'Post new topic' => 'Post new topic',
'Hide smilies' => 'Never show smilies as icons for this post',
'Subscribe' => 'Subscribe to this topic',
'Topic review' => 'Topic review (newest first)',
'Flood start' => 'At least',
'flood end' => 'seconds have to pass between posts. Please wait a little while and try posting again.',
'Preview' => 'Preview', // submit button to preview message
// Edit post
'Edit post legend' => 'Edit the post and submit changes',
'Silent edit' => 'Silent edit (don\'t display "Edited by ..." in topic view)',
'Edit post' => 'Edit post',
'Edit redirect' => 'Post updated. Redirecting &hellip;'
);
<?php
// Language definitions used in both profile.php and register.php
$lang_prof_reg = array(
'E-mail legend' => 'Enter a valid e-mail address',
'E-mail legend 2' => 'Enter and confirm a valid e-mail address',
'Localisation legend' => 'Set your localisation options',
'Timezone' => 'Timezone',
'Timezone info' => 'For the forum to display times correctly you must select your local timezone.',
'Language' => 'Language',
'Language info' => 'You can choose which language you wish to use to view the forum.',
'E-mail setting info' => 'Select whether you want your e-mail address to be viewable to other users or not and if you want other users to be able to send you e-mail via the forum (form e-mail) or not.',
'E-mail setting 1' => 'Display your e-mail address.',
'E-mail setting 2' => 'Hide your e-mail address but allow form e-mail.',
'E-mail setting 3' => 'Hide your e-mail address and disallow form e-mail.',
'Privacy options legend' => 'Set your privacy options',
'Save user/pass' => 'Save username and password between visits.',
'Save user/pass info' => 'This option sets whether the forum should "remember" you between visits. If enabled, you will not have to login every time you visit the forum. You will be logged in automatically. Recommended.',
'Confirm pass' => 'Confirm password',
'Username too short' => 'Usernames must be at least 2 characters long. Please choose another (longer) username.',
'Username guest' => 'The username guest is reserved. Please choose another username.',
'Username IP' => 'Usernames may not be in the form of an IP address. Please choose another username.',
'Username reserved chars' => 'Usernames may not contain all the characters \', " and [ or ] at once. Please choose another username.',
'Username BBCode' => 'Usernames may not contain any of the text formatting tags (BBCode) that the forum uses. Please choose another username.',
'Dupe username' => 'Someone else has already registered with that username. Please choose another username.',
'Pass too short' => 'Passwords must be at least 4 characters long. Please choose another (longer) password.',
'Pass not match' => 'Passwords do not match. Please go back and correct.',
'Banned e-mail' => 'The e-mail address you entered is banned in this forum. Please choose another e-mail address.',
'Dupe e-mail' => 'Someone else is already registered with that e-mail address. Please choose another e-mail address.',
'Sig too long' => 'Signatures cannot be longer than',
'characters' => 'characters',
'Sig too many lines' => 'Signatures cannot have more than',
'lines' => 'lines',
'Signature quote/code' => 'The quote and code BBCodes are not allowed in signatures. Please go back and correct.',
'Bad ICQ' => 'You entered an invalid ICQ UIN. Please go back and correct.'
);
<?php
// Language definitions used in profile.php
$lang_profile = array(
// Navigation and sections
'Profile menu' => 'Profile menu',
'Section essentials' => 'Essentials',
'Section personal' => 'Personal',
'Section messaging' => 'Messaging',
'Section personality' => 'Personality',
'Section display' => 'Display',
'Section privacy' => 'Privacy',
'Section admin' => 'Administration',
// Miscellaneous
'Username and pass legend' => 'Enter your username and password',
'Personal details legend' => 'Enter your personal details',
'Contact details legend' => 'Enter your messaging details',
'Options display' => 'Set your display options',
'Options post' => 'Set your post viewing options',
'User activity' => 'User activity',
'Paginate info' => 'Enter the number of topics and posts you wish to view on each page.',
// Password stuff
'Pass key bad' => 'The specified password activation key was incorrect or has expired. Please re-request a new password. If that fails, contact the forum administrator at',
'Pass updated' => 'Your password has been updated. You can now login with your new password.',
'Pass updated redirect' => 'Password updated. Redirecting &hellip;',
'Wrong pass' => 'Wrong old password.',
'Change pass' => 'Change password',
'Change pass legend' => 'Enter and confirm your new password',
'Old pass' => 'Old password',
'New pass' => 'New password',
'Confirm new pass' => 'Confirm new password',
// E-mail stuff
'E-mail key bad' => 'The specified e-mail activation key was incorrect or has expired. Please re-request change of e-mail address. If that fails, contact the forum administrator at',
'E-mail updated' => 'Your e-mail address has been updated.',
'Activate e-mail sent' => 'An email has been sent to the specified address with instructions on how to activate the new e-mail address. If it doesn\'t arrive you can contact the forum administrator at',
'E-mail legend' => 'Enter your new e-mail address',
'E-mail instructions' => 'An e-mail will be sent to your new address with an activation link. You must click the link in the e-mail you receive to activate the new address.',
'Change e-mail' => 'Change e-mail address',
'New e-mail' => 'New e-mail',
// Avatar upload stuff
'Avatars disabled' => 'The administrator has disabled avatar support.',
'Too large ini' => 'The selected file was too large to upload. The server didn\'t allow the upload.',
'Partial upload' => 'The selected file was only partially uploaded. Please try again.',
'No tmp directory' => 'PHP was unable to save the uploaded file to a temporary location.',
'No file' => 'You did not select a file for upload.',
'Bad type' => 'The file you tried to upload is not of an allowed type. Allowed types are gif, jpeg and png.',
'Too wide or high' => 'The file you tried to upload is wider and/or higher than the maximum allowed',
'Too large' => 'The file you tried to upload is larger than the maximum allowed',
'pixels' => 'pixels',
'bytes' => 'bytes',
'Move failed' => 'The server was unable to save the uploaded file. Please contact the forum administrator at',
'Unknown failure' => 'An unknown error occurred. Please try again.',
'Avatar upload redirect' => 'Avatar uploaded. Redirecting &hellip;',
'Avatar deleted redirect' => 'Avatar deleted. Redirecting &hellip;',
'Avatar desc' => 'An avatar is a small image that will be displayed under your username in your posts. It must not be any bigger than',
'Upload avatar' => 'Upload avatar',
'Upload avatar legend' => 'Enter an avatar file to upload',
'Delete avatar' => 'Delete avatar', // only for admins
'File' => 'File',
'Upload' => 'Upload', // submit button
// Form validation stuff
'Dupe username' => 'Someone else has already registered with that username. Please go back and try a different username.',
'Forbidden title' => 'The title you entered contains a forbidden word. You must choose a different title.',
'Profile redirect' => 'Profile updated. Redirecting &hellip;',
// Profile display stuff
'Not activated' => 'This user hasn\'t activated his/her account yet. The account is activated when he/she logs in the first time.',
'Unknown' => '(Unknown)', // This is displayed when a user hasn't filled out profile field (e.g. Location)
'Private' => '(Private)', // This is displayed when a user does not want to receive e-mails
'No avatar' => '(No avatar)',
'Show posts' => 'Show all posts',
'Realname' => 'Real name',
'Location' => 'Location',
'Website' => 'Website',
'Jabber' => 'Jabber',
'ICQ' => 'ICQ',
'MSN' => 'MSN Messenger',
'AOL IM' => 'AOL IM',
'Yahoo' => 'Yahoo! Messenger',
'Avatar' => 'Avatar',
'Signature' => 'Signature',
'Sig max length' => 'Max length',
'Sig max lines' => 'Max lines',
'Avatar legend' => 'Set your avatar display options',
'Avatar info' => 'An avatar is a small image that will be displayed with all your posts. You can upload an avatar by clicking the link below. The checkbox \'Use avatar\' below must be checked in order for the avatar to be visible in your posts.',
'Change avatar' => 'Change avatar',
'Use avatar' => 'Use avatar.',
'Signature legend' => 'Compose your signature',
'Signature info' => 'A signature is a small piece of text that is attached to your posts. In it, you can enter just about anything you like. Perhaps you would like to enter your favourite quote or your star sign. It\'s up to you! In your signature you can use BBCode if it is allowed in this particular forum. You can see the features that are allowed/enabled listed below whenever you edit your signature.',
'Sig preview' => 'Current signature preview:',
'No sig' => 'No signature currently stored in profile.',
'Topics per page' => 'Topics',
'Topics per page info' => 'This setting controls how many topics are displayed per page when you view a forum. If you are uncertain about what to use, you can just leave it blank and the forum default will be used.',
'Posts per page' => 'Posts',
'Posts per page info' => 'This setting controls how many posts are displayed per page when you view a topic. If you are uncertain about what to use, you can just leave it blank and the forum default will be used.',
'Leave blank' => 'Leave blank to use forum default.',
'Notify full' => 'Include post in subscription e-mails.',
'Notify full info' => 'With this enabled, a plain text version of the new post will be included in subscription notification e-mails.',
'Show smilies' => 'Show smilies as graphic icons',
'Show smilies info' => 'If you enable this option, small images will be displayed instead of text smilies.',
'Show images' => 'Show images in posts.',
'Show images info' => 'Disable this if you don\'t want to see images in posts (i.e. images displayed with the [img]-tag).',
'Show images sigs' => 'Show images in user signatures.',
'Show images sigs info' => 'Disable this if you don\'t want to see images in signatures (i.e. images displayed with the [img]-tag).',
'Show avatars' => 'Show user avatars in posts.',
'Show avatars info' => 'This option toggles whether user avatar images will be displayed in posts or not.',
'Show sigs' => 'Show user signatures.',
'Show sigs info' => 'Enable if you would like to see user signatures.',
'Style legend' => 'Select your preferred style',
'Style info' => 'If you like you can use a different visual style for this forum.',
'Admin note' => 'Admin note',
'Pagination legend' => 'Enter your pagination options',
'Post display legend' => 'Set your options for viewing posts',
'Post display info' => 'If you are on a slow connection, disabling these options, particularly showing images in posts and signatures, will make pages load faster.',
'Instructions' => 'When you update your profile, you will be redirected back to this page.',
// Administration stuff
'Group membership legend' => 'Choose user group',
'Save' => 'Save',
'Set mods legend' => 'Set moderator access',
'Moderator in' => 'Moderator in',
'Moderator in info' => 'Choose what forums this user should be allowed to moderate. Note: This only applies to moderators. Administrators always have full permissions in all forums.',
'Update forums' => 'Update forums',
'Delete ban legend' => 'Delete (administrators only) or ban user',
'Delete user' => 'Delete user',
'Ban user' => 'Ban user',
'Confirm delete legend' => 'Important: read before deleting user',
'Confirm delete user' => 'Confirm delete user',
'Confirmation info' => 'Please confirm that you want to delete the user', // the username will be appended to this string
'Delete warning' => 'Warning! Deleted users and/or posts cannot be restored. If you choose not to delete the posts made by this user, the posts can only be deleted manually at a later time.',
'Delete posts' => 'Delete any posts and topics this user has made.',
'Delete' => 'Delete', // submit button (confirm user delete)
'User delete redirect' => 'User deleted. Redirecting &hellip;',
'Group membership redirect' => 'Group membership saved. Redirecting &hellip;',
'Update forums redirect' => 'Forum moderator rights updated. Redirecting &hellip;',
'Ban redirect' => 'Redirecting &hellip;'
);
<?php
// Language definitions used in register.php
$lang_register = array(
// Miscellaneous
'No new regs' => 'This forum is not accepting new registrations.',
'Reg cancel redirect' => 'Registration cancelled. Redirecting &hellip;',
'Forum rules' => 'Forum rules',
'Rules legend' => 'You must agree to the following in order to register',
'Agree' => 'Agree',
'Cancel' => 'Cancel',
'Register' => 'Register',
// Form validation stuff (some of these are also used in post.php)
'Username censor' => 'The username you entered contains one or more censored words. Please choose a different username.',
'Username dupe 1' => 'Someone is already registered with the username',
'Username dupe 2' => 'The username you entered is too similar. The username must differ from that by at least one alphanumerical character (a-z or 0-9). Please choose a different username.',
'E-mail not match' => 'E-mail addresses do not match. Please go back and correct.',
// Registration e-mail stuff
'Reg e-mail' => 'Thank you for registering. Your password has been sent to the specified address. If it doesn\'t arrive you can contact the forum administrator at',
'Reg complete' => 'Registration complete. Logging in and redirecting &hellip;',
// Register info
'Desc 1' => 'Registration will grant you access to a number of features and capabilities otherwise unavailable. These functions include the ability to edit and delete posts, design your own signature that accompanies your posts and much more. If you have any questions regarding this forum you should ask an administrator.',
'Desc 2' => 'Below is a form you must fill out in order to register. Once you are registered you should visit your profile and review the different settings you can change. The fields below only make up a small part of all the settings you can alter in your profile.',
'Username legend' => 'Please enter a username between 2 and 25 characters long',
'Pass legend 1' => 'Please enter and confirm your chosen password',
'Pass legend 2' => 'Please read the instructions below',
'Pass info' => 'Passwords can be between 4 and 16 characters long. Passwords are case sensitive.',
'E-mail info' => 'You must enter a valid e-mail address as your randomly generated password will be sent to that address.',
'Confirm e-mail' => 'Confirm e-mail address',
);
<?php
// Language definitions used in search.php
$lang_search = array(
// The search form
'User search' => 'User search',
'No search permission' => 'You do not have permission to use the search feature.',
'Search' => 'Search',
'Search criteria legend' => 'Enter your search criteria',
'Search info' => 'To search by keyword, enter a term or terms to search for. Separate terms with spaces. Use AND, OR and NOT to refine your search. To search by author enter the username of the author whose posts you wish to search for. Use wildcard character * for partial matches.',
'Keyword search' => 'Keyword search',
'Author search' => 'Author search',
'Search in legend' => 'Select where to search',
'Search in info' => 'Choose in which forum you would like to search and if you want to search in topic subjects, message text or both.',
'Forum search' => 'Forum',
'All forums' => 'All forums',
'Search in' => 'Search in',
'Message and subject' => 'Message text and topic subject',
'Message only' => 'Message text only',
'Topic only' => 'Topic subject only',
'Sort by' => 'Sort by',
'Sort order' => 'Sort order',
'Search results legend' => 'Select how to view search results',
'Search results info' => 'You can choose how you wish to sort and show your results.',
'Sort by post time' => 'Post time',
'Sort by author' => 'Author',
'Sort by subject' => 'Subject',
'Sort by forum' => 'Forum',
'Ascending' => 'Ascending',
'Descending' => 'Descending',
'Show as' => 'Show results as',
'Show as topics' => 'Topics',
'Show as posts' => 'Posts',
// Results
'Search results' => 'Search results',
'No terms' => 'You have to enter at least one keyword and/or an author to search for.',
'No hits' => 'Your search returned no hits.',
'No user posts' => 'There are no posts by this user in this forum.',
'No subscriptions' => 'You are currently not subscribed to any topics.',
'No new posts' => 'There are no topics with new posts since your last visit.',
'No recent posts' => 'No new posts have been made within the last 24 hours.',
'No unanswered' => 'There are no unanswered posts in this forum.',
'Go to post' => 'Go to post'
);
about
after
ago
all
almost
along
also
any
anybody
anywhere
are
arent
around
ask
been
before
being
between
but
came
can
cant
come
could
couldnt
did
didnt
does
doesnt
dont
each
either
else
even
every
everybody
everyone
find
for
from
get
going
gone
got
had
has
have
havent
having
her
here
hers
him
his
how
ill
into
isnt
its
ive
just
know
less
like
make
many
may
more
most
much
must
near
never
none
nothing
now
off
often
once
one
only
other
our
ours
out
over
please
rather
really
said
see
she
should
small
some
something
sometime
somewhere
take
than
thank
thanks
that
thats
the
their
theirs
them
then
there
these
they
thing
think
this
those
though
through
thus
too
true
two
under
until
upon
use
very
want
was
way
well
were
what
when
where
which
who
whom
whose
why
will
with
within
without
would
yes
yet
you
your
yours
\ No newline at end of file
<?php
// Language definitions used in viewtopic.php
$lang_topic = array(
'Post reply' => 'Post reply',
'Topic closed' => 'Topic closed',
'From' => 'From', // User location
'Note' => 'Note', // Admin note
'Website' => 'Website',
'Guest' => 'Guest',
'Online' => 'Online',
'Offline' => 'Offline',
'Last edit' => 'Last edited by',
'Report' => 'Report',
'Delete' => 'Delete',
'Edit' => 'Edit',
'Quote' => 'Quote',
'Is subscribed' => 'You are currently subscribed to this topic',
'Unsubscribe' => 'Unsubscribe',
'Subscribe' => 'Subscribe to this topic',
'Quick post' => 'Quick post',
'Link separator' => ' | ', // The text that separates links in posts (website, e-mail, report, edit etc.)
'Mod controls' => 'Moderator controls'
);
<?php
// Language definitions used in userlist.php
$lang_ul = array(
'User find legend' => 'Find and sort users',
'User search info' => 'Enter a username to search for and/or a user group to filter by. The username field can be left blank. Use the wildcard character * for partial matches. Sort users by name, date registered or number of posts and in ascending/descending order.',
'User group' => 'User group',
'No of posts' => 'No. of posts',
'All users' => 'All'
);
<html>
<head>
<title>.</title>
</head>
<body>
.
</body>
</html>
\ No newline at end of file
<?php
/***********************************************************************
Copyright (C) 2002-2008 PunBB
This file is part of PunBB.
PunBB is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
PunBB is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston,
MA 02111-1307 USA
************************************************************************/
if (isset($_GET['action']))
define('PUN_QUIET_VISIT', 1);
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
// Load the login.php language file
require PUN_ROOT.'lang/'.$pun_user['language'].'/login.php';
$action = isset($_GET['action']) ? $_GET['action'] : null;
if (isset($_POST['form_sent']) && $action == 'in')
{
$form_username = trim($_POST['req_username']);
$form_password = trim($_POST['req_password']);
$username_sql = ($db_type == 'mysql' || $db_type == 'mysqli') ? 'username=\''.$db->escape($form_username).'\'' : 'LOWER(username)=LOWER(\''.$db->escape($form_username).'\')';
$result = $db->query('SELECT id, group_id, password, save_pass FROM '.$db->prefix.'users WHERE '.$username_sql) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());
list($user_id, $group_id, $db_password_hash, $save_pass) = $db->fetch_row($result);
$authorized = false;
if (!empty($db_password_hash))
{
$sha1_in_db = (strlen($db_password_hash) == 40) ? true : false;
$sha1_available = (function_exists('sha1') || function_exists('mhash')) ? true : false;
$form_password_hash = pun_hash($form_password); // This could result in either an SHA-1 or an MD5 hash (depends on $sha1_available)
if ($sha1_in_db && $sha1_available && $db_password_hash == $form_password_hash)
$authorized = true;
else if (!$sha1_in_db && $db_password_hash == md5($form_password))
{
$authorized = true;
if ($sha1_available) // There's an MD5 hash in the database, but SHA1 hashing is available, so we update the DB
$db->query('UPDATE '.$db->prefix.'users SET password=\''.$form_password_hash.'\' WHERE id='.$user_id) or error('Unable to update user password', __FILE__, __LINE__, $db->error());
}
}
if (!$authorized)
message($lang_login['Wrong user/pass'].' <a href="login.php?action=forget">'.$lang_login['Forgotten pass'].'</a>');
// Update the status if this is the first time the user logged in
if ($group_id == PUN_UNVERIFIED)
$db->query('UPDATE '.$db->prefix.'users SET group_id='.$pun_config['o_default_user_group'].' WHERE id='.$user_id) or error('Unable to update user status', __FILE__, __LINE__, $db->error());
// Remove this users guest entry from the online list
$db->query('DELETE FROM '.$db->prefix.'online WHERE ident=\''.$db->escape(get_remote_address()).'\'') or error('Unable to delete from online list', __FILE__, __LINE__, $db->error());
$expire = ($save_pass == '1') ? time() + 31536000 : 0;
pun_setcookie($user_id, $form_password_hash, $expire);
redirect(htmlspecialchars($_POST['redirect_url']), $lang_login['Login redirect']);
}
else if ($action == 'out')
{
if ($pun_user['is_guest'] || !isset($_GET['id']) || $_GET['id'] != $pun_user['id'] || !isset($_GET['csrf_token']) || $_GET['csrf_token'] != sha1($pun_user['id'].sha1(get_remote_address())))
{
header('Location: index.php');
pun_exit();
}
// Remove user from "users online" list.
$db->query('DELETE FROM '.$db->prefix.'online WHERE user_id='.$pun_user['id']) or error('Unable to delete from online list', __FILE__, __LINE__, $db->error());
// Update last_visit (make sure there's something to update it with)
if (isset($pun_user['logged']))
$db->query('UPDATE '.$db->prefix.'users SET last_visit='.$pun_user['logged'].' WHERE id='.$pun_user['id']) or error('Unable to update user visit data', __FILE__, __LINE__, $db->error());
pun_setcookie(1, md5(uniqid(rand(), true)), time() + 31536000);
redirect('index.php', $lang_login['Logout redirect']);
}
else if ($action == 'forget' || $action == 'forget_2')
{
if (!$pun_user['is_guest'])
header('Location: index.php');
if (isset($_POST['form_sent']))
{
require PUN_ROOT.'include/email.php';
// Validate the email-address
$email = strtolower(trim($_POST['req_email']));
if (!is_valid_email($email))
message($lang_common['Invalid e-mail']);
$result = $db->query('SELECT id, username FROM '.$db->prefix.'users WHERE email=\''.$db->escape($email).'\'') or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());
if ($db->num_rows($result))
{
// Load the "activate password" template
$mail_tpl = trim(file_get_contents(PUN_ROOT.'lang/'.$pun_user['language'].'/mail_templates/activate_password.tpl'));
// The first row contains the subject
$first_crlf = strpos($mail_tpl, "\n");
$mail_subject = trim(substr($mail_tpl, 8, $first_crlf-8));
$mail_message = trim(substr($mail_tpl, $first_crlf));
// Do the generic replacements first (they apply to all e-mails sent out here)
$mail_message = str_replace('<base_url>', $pun_config['o_base_url'].'/', $mail_message);
$mail_message = str_replace('<board_mailer>', $pun_config['o_board_title'].' '.$lang_common['Mailer'], $mail_message);
// Loop through users we found
while ($cur_hit = $db->fetch_assoc($result))
{
// Generate a new password and a new password activation code
$new_password = random_pass(8);
$new_password_key = random_pass(8);
$db->query('UPDATE '.$db->prefix.'users SET activate_string=\''.pun_hash($new_password).'\', activate_key=\''.$new_password_key.'\' WHERE id='.$cur_hit['id']) or error('Unable to update activation data', __FILE__, __LINE__, $db->error());
// Do the user specific replacements to the template
$cur_mail_message = str_replace('<username>', $cur_hit['username'], $mail_message);
$cur_mail_message = str_replace('<activation_url>', $pun_config['o_base_url'].'/profile.php?id='.$cur_hit['id'].'&action=change_pass&key='.$new_password_key, $cur_mail_message);
$cur_mail_message = str_replace('<new_password>', $new_password, $cur_mail_message);
pun_mail($email, $mail_subject, $cur_mail_message);
}
message($lang_login['Forget mail'].' <a href="mailto:'.$pun_config['o_admin_email'].'">'.$pun_config['o_admin_email'].'</a>.');
}
else
message($lang_login['No e-mail match'].' '.htmlspecialchars($email).'.');
}
$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_login['Request pass'];
$required_fields = array('req_email' => $lang_common['E-mail']);
$focus_element = array('request_pass', 'req_email');
require PUN_ROOT.'header.php';
?>
<div class="blockform">
<h2><span><?php echo $lang_login['Request pass'] ?></span></h2>
<div class="box">
<form id="request_pass" method="post" action="login.php?action=forget_2" onsubmit="this.request_pass.disabled=true;if(process_form(this)){return true;}else{this.request_pass.disabled=false;return false;}">
<div class="inform">
<fieldset>
<legend><?php echo $lang_login['Request pass legend'] ?></legend>
<div class="infldset">
<input type="hidden" name="form_sent" value="1" />
<input id="req_email" type="text" name="req_email" size="50" maxlength="50" />
<p><?php echo $lang_login['Request pass info'] ?></p>
</div>
</fieldset>
</div>
<p><input type="submit" name="request_pass" value="<?php echo $lang_common['Submit'] ?>" /><a href="javascript:history.go(-1)"><?php echo $lang_common['Go back'] ?></a></p>
</form>
</div>
</div>
<?php
require PUN_ROOT.'footer.php';
}
if (!$pun_user['is_guest'])
header('Location: index.php');
// Try to determine if the data in HTTP_REFERER is valid (if not, we redirect to index.php after login)
$redirect_url = (isset($_SERVER['HTTP_REFERER']) && preg_match('#^'.preg_quote($pun_config['o_base_url']).'/(.*?)\.php#i', $_SERVER['HTTP_REFERER'])) ? htmlspecialchars($_SERVER['HTTP_REFERER']) : 'index.php';
$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_common['Login'];
$required_fields = array('req_username' => $lang_common['Username'], 'req_password' => $lang_common['Password']);
$focus_element = array('login', 'req_username');
require PUN_ROOT.'header.php';
?>
<div class="blockform">
<h2><span><?php echo $lang_common['Login'] ?></span></h2>
<div class="box">
<form id="login" method="post" action="login.php?action=in" onsubmit="return process_form(this)">
<div class="inform">
<fieldset>
<legend><?php echo $lang_login['Login legend'] ?></legend>
<div class="infldset">
<input type="hidden" name="form_sent" value="1" />
<input type="hidden" name="redirect_url" value="<?php echo $redirect_url ?>" />
<label class="conl"><strong><?php echo $lang_common['Username'] ?></strong><br /><input type="text" name="req_username" size="25" maxlength="25" tabindex="1" /><br /></label>
<label class="conl"><strong><?php echo $lang_common['Password'] ?></strong><br /><input type="password" name="req_password" size="16" maxlength="16" tabindex="2" /><br /></label>
<p class="clearb"><?php echo $lang_login['Login info'] ?></p>
<p><a href="register.php" tabindex="4"><?php echo $lang_login['Not registered'] ?></a>&nbsp;&nbsp;
<a href="login.php?action=forget" tabindex="5"><?php echo $lang_login['Forgotten pass'] ?></a></p>
</div>
</fieldset>
</div>
<p><input type="submit" name="login" value="<?php echo $lang_common['Login'] ?>" tabindex="3" /></p>
</form>
</div>
</div>
<?php
require PUN_ROOT.'footer.php';
<?php
/***********************************************************************
Copyright (C) 2002-2008 PunBB
This file is part of PunBB.
PunBB is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
PunBB is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston,
MA 02111-1307 USA
************************************************************************/
if (isset($_GET['action']))
define('PUN_QUIET_VISIT', 1);
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
// Load the misc.php language file
require PUN_ROOT.'lang/'.$pun_user['language'].'/misc.php';
$action = isset($_GET['action']) ? $_GET['action'] : null;
if ($action == 'rules')
{
// Load the register.php language file
require PUN_ROOT.'lang/'.$pun_user['language'].'/register.php';
$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_register['Forum rules'];
require PUN_ROOT.'header.php';
?>
<div class="block">
<h2><span><?php echo $lang_register['Forum rules'] ?></span></h2>
<div class="box">
<div class="inbox">
<p><?php echo $pun_config['o_rules_message'] ?></p>
</div>
</div>
</div>
<?php
require PUN_ROOT.'footer.php';
}
else if ($action == 'markread')
{
if ($pun_user['is_guest'])
message($lang_common['No permission']);
$db->query('UPDATE '.$db->prefix.'users SET last_visit='.$pun_user['logged'].' WHERE id='.$pun_user['id']) or error('Unable to update user last visit data', __FILE__, __LINE__, $db->error());
redirect('index.php', $lang_misc['Mark read redirect']);
}
else if (isset($_GET['email']))
{
if ($pun_user['is_guest'])
message($lang_common['No permission']);
$recipient_id = intval($_GET['email']);
if ($recipient_id < 2)
message($lang_common['Bad request']);
$result = $db->query('SELECT username, email, email_setting FROM '.$db->prefix.'users WHERE id='.$recipient_id) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());
if (!$db->num_rows($result))
message($lang_common['Bad request']);
list($recipient, $recipient_email, $email_setting) = $db->fetch_row($result);
if ($email_setting == 2 && $pun_user['g_id'] > PUN_MOD)
message($lang_misc['Form e-mail disabled']);
if (isset($_POST['form_sent']))
{
// Clean up message and subject from POST
$subject = pun_trim($_POST['req_subject']);
$message = pun_trim($_POST['req_message']);
if ($subject == '')
message($lang_misc['No e-mail subject']);
else if ($message == '')
message($lang_misc['No e-mail message']);
else if (strlen($message) > 65535)
message($lang_misc['Too long e-mail message']);
// Load the "form e-mail" template
$mail_tpl = trim(file_get_contents(PUN_ROOT.'lang/'.$pun_user['language'].'/mail_templates/form_email.tpl'));
// The first row contains the subject
$first_crlf = strpos($mail_tpl, "\n");
$mail_subject = trim(substr($mail_tpl, 8, $first_crlf-8));
$mail_message = trim(substr($mail_tpl, $first_crlf));
$mail_subject = str_replace('<mail_subject>', $subject, $mail_subject);
$mail_message = str_replace('<sender>', $pun_user['username'], $mail_message);
$mail_message = str_replace('<board_title>', $pun_config['o_board_title'], $mail_message);
$mail_message = str_replace('<mail_message>', $message, $mail_message);
$mail_message = str_replace('<board_mailer>', $pun_config['o_board_title'].' '.$lang_common['Mailer'], $mail_message);
require_once PUN_ROOT.'include/email.php';
pun_mail($recipient_email, $mail_subject, $mail_message, '"'.str_replace('"', '', $pun_user['username']).'" <'.$pun_user['email'].'>');
redirect(htmlspecialchars($_POST['redirect_url']), $lang_misc['E-mail sent redirect']);
}
// Try to determine if the data in HTTP_REFERER is valid (if not, we redirect to the users profile after the e-mail is sent)
$redirect_url = (isset($_SERVER['HTTP_REFERER']) && preg_match('#^'.preg_quote($pun_config['o_base_url']).'/(.*?)\.php#i', $_SERVER['HTTP_REFERER'])) ? htmlspecialchars($_SERVER['HTTP_REFERER']) : 'index.php';
$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_misc['Send e-mail to'].' '.pun_htmlspecialchars($recipient);
$required_fields = array('req_subject' => $lang_misc['E-mail subject'], 'req_message' => $lang_misc['E-mail message']);
$focus_element = array('email', 'req_subject');
require PUN_ROOT.'header.php';
?>
<div class="blockform">
<h2><span><?php echo $lang_misc['Send e-mail to'] ?> <?php echo pun_htmlspecialchars($recipient) ?></span></h2>
<div class="box">
<form id="email" method="post" action="misc.php?email=<?php echo $recipient_id ?>" onsubmit="this.submit.disabled=true;if(process_form(this)){return true;}else{this.submit.disabled=false;return false;}">
<div class="inform">
<fieldset>
<legend><?php echo $lang_misc['Write e-mail'] ?></legend>
<div class="infldset txtarea">
<input type="hidden" name="form_sent" value="1" />
<input type="hidden" name="redirect_url" value="<?php echo $redirect_url ?>" />
<label><strong><?php echo $lang_misc['E-mail subject'] ?></strong><br />
<input class="longinput" type="text" name="req_subject" size="75" maxlength="70" tabindex="1" /><br /></label>
<label><strong><?php echo $lang_misc['E-mail message'] ?></strong><br />
<textarea name="req_message" rows="10" cols="75" tabindex="2"></textarea><br /></label>
<p><?php echo $lang_misc['E-mail disclosure note'] ?></p>
</div>
</fieldset>
</div>
<p><input type="submit" name="submit" value="<?php echo $lang_common['Submit'] ?>" tabindex="3" accesskey="s" /><a href="javascript:history.go(-1)"><?php echo $lang_common['Go back'] ?></a></p>
</form>
</div>
</div>
<?php
require PUN_ROOT.'footer.php';
}
else if (isset($_GET['report']))
{
if ($pun_user['is_guest'])
message($lang_common['No permission']);
$post_id = intval($_GET['report']);
if ($post_id < 1)
message($lang_common['Bad request']);
if (isset($_POST['form_sent']))
{
// Clean up reason from POST
$reason = pun_linebreaks(pun_trim($_POST['req_reason']));
if ($reason == '')
message($lang_misc['No reason']);
// Get the topic ID
$result = $db->query('SELECT topic_id FROM '.$db->prefix.'posts WHERE id='.$post_id) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());
if (!$db->num_rows($result))
message($lang_common['Bad request']);
$topic_id = $db->result($result);
// Get the subject and forum ID
$result = $db->query('SELECT subject, forum_id FROM '.$db->prefix.'topics WHERE id='.$topic_id) or error('Unable to fetch topic info', __FILE__, __LINE__, $db->error());
if (!$db->num_rows($result))
message($lang_common['Bad request']);
list($subject, $forum_id) = $db->fetch_row($result);
// Should we use the internal report handling?
if ($pun_config['o_report_method'] == 0 || $pun_config['o_report_method'] == 2)
$db->query('INSERT INTO '.$db->prefix.'reports (post_id, topic_id, forum_id, reported_by, created, message) VALUES('.$post_id.', '.$topic_id.', '.$forum_id.', '.$pun_user['id'].', '.time().', \''.$db->escape($reason).'\')' ) or error('Unable to create report', __FILE__, __LINE__, $db->error());
// Should we e-mail the report?
if ($pun_config['o_report_method'] == 1 || $pun_config['o_report_method'] == 2)
{
// We send it to the complete mailing-list in one swoop
if ($pun_config['o_mailing_list'] != '')
{
$mail_subject = 'Report('.$forum_id.') - \''.$subject.'\'';
$mail_message = 'User \''.$pun_user['username'].'\' has reported the following message:'."\n".$pun_config['o_base_url'].'/viewtopic.php?pid='.$post_id.'#p'.$post_id."\n\n".'Reason:'."\n".$reason;
require PUN_ROOT.'include/email.php';
pun_mail($pun_config['o_mailing_list'], $mail_subject, $mail_message);
}
}
redirect('viewtopic.php?pid='.$post_id.'#p'.$post_id, $lang_misc['Report redirect']);
}
$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_misc['Report post'];
$required_fields = array('req_reason' => $lang_misc['Reason']);
$focus_element = array('report', 'req_reason');
require PUN_ROOT.'header.php';
?>
<div class="blockform">
<h2><span><?php echo $lang_misc['Report post'] ?></span></h2>
<div class="box">
<form id="report" method="post" action="misc.php?report=<?php echo $post_id ?>" onsubmit="this.submit.disabled=true;if(process_form(this)){return true;}else{this.submit.disabled=false;return false;}">
<div class="inform">
<fieldset>
<legend><?php echo $lang_misc['Reason desc'] ?></legend>
<div class="infldset txtarea">
<input type="hidden" name="form_sent" value="1" />
<label><strong><?php echo $lang_misc['Reason'] ?></strong><br /><textarea name="req_reason" rows="5" cols="60"></textarea><br /></label>
</div>
</fieldset>
</div>
<p><input type="submit" name="submit" value="<?php echo $lang_common['Submit'] ?>" accesskey="s" /><a href="javascript:history.go(-1)"><?php echo $lang_common['Go back'] ?></a></p>
</form>
</div>
</div>
<?php
require PUN_ROOT.'footer.php';
}
else if (isset($_GET['subscribe']))
{
if ($pun_user['is_guest'] || $pun_config['o_subscriptions'] != '1')
message($lang_common['No permission']);
$topic_id = intval($_GET['subscribe']);
if ($topic_id < 1)
message($lang_common['Bad request']);
// Make sure the user can view the topic
$result = $db->query('SELECT 1 FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=t.forum_id AND fp.group_id='.$pun_user['g_id'].') WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id='.$topic_id.' AND t.moved_to IS NULL') or error('Unable to fetch topic info', __FILE__, __LINE__, $db->error());
if (!$db->num_rows($result))
message($lang_common['Bad request']);
$result = $db->query('SELECT 1 FROM '.$db->prefix.'subscriptions WHERE user_id='.$pun_user['id'].' AND topic_id='.$topic_id) or error('Unable to fetch subscription info', __FILE__, __LINE__, $db->error());
if ($db->num_rows($result))
message($lang_misc['Already subscribed']);
$db->query('INSERT INTO '.$db->prefix.'subscriptions (user_id, topic_id) VALUES('.$pun_user['id'].' ,'.$topic_id.')') or error('Unable to add subscription', __FILE__, __LINE__, $db->error());
redirect('viewtopic.php?id='.$topic_id, $lang_misc['Subscribe redirect']);
}
else if (isset($_GET['unsubscribe']))
{
if ($pun_user['is_guest'] || $pun_config['o_subscriptions'] != '1')
message($lang_common['No permission']);
$topic_id = intval($_GET['unsubscribe']);
if ($topic_id < 1)
message($lang_common['Bad request']);
$result = $db->query('SELECT 1 FROM '.$db->prefix.'subscriptions WHERE user_id='.$pun_user['id'].' AND topic_id='.$topic_id) or error('Unable to fetch subscription info', __FILE__, __LINE__, $db->error());
if (!$db->num_rows($result))
message($lang_misc['Not subscribed']);
$db->query('DELETE FROM '.$db->prefix.'subscriptions WHERE user_id='.$pun_user['id'].' AND topic_id='.$topic_id) or error('Unable to remove subscription', __FILE__, __LINE__, $db->error());
redirect('viewtopic.php?id='.$topic_id, $lang_misc['Unsubscribe redirect']);
}
else
message($lang_common['Bad request']);