Version 1.0.1

This commit is contained in:
Neo committed 2025-12-19 00:15:26 -08:00
1 parent 227753f492
commit aabfdc1f57
341 files changed
+55517

No files matched your search

BIN
View File
Binary file not shown.
+28
View File
@@ -0,0 +1,28 @@
Upgrading from 1.0.0 to 1.0.1
-----------------------------
Files to update
----------------
index.php
sources/Boards.php
sources/Forums.php
sources/post.php
sources/lib/post_reply_post.php
sources/lib/post_q_reply_post.php
sources/search.php
sources/Admin/ad_member.php
Bugs Fixed
----------
Various Posting bugs fixed
Tighter permission checking when posting
ICQ number not being saved when editing a profile via the ACP
Incorrect error displayed when attempting to access a forum you don't have permission for
Shortened topic titles in board view display showing partial HTML entities (credit Chrisken)
+89
View File
@@ -0,0 +1,89 @@
Upgrading from RC1 to RC2
-------------------------
UPGRADE SCRIPT
--------------
Upload the script 'upgade3.php' to your root IBF installation (the same directory that index.php is in).
Run it via your web browser by typing the URL to the script in the address bar.
When the script has completed, remove it from your server.
Files to update
----------------
index.php
admin.php
skin/s1/skin_global.php
skin/s1/skin_online.php
skin/s1/skin_ucp.php
skin/s1/skin_msg.php
lang/en/email_content.php
lang/en/lang_mod.php
lang/en/lang_msg.php
lang/en/lang_search.php
lang/en/lang_ucp.php
sources/Admin/ad_forums.php
sources/Admin/ad_groups.php
sources/Admin/ad_languages.php
sources/Admin/ad_settings.php
sources/Admin/ad_skin_import.php
sources/Admin/admin_skin.php
sources/Admin/admin_functions.php
sources/lib/emailer.php
sources/lib/usercp_functions.php
sources/lib/post_parser.php
sources/lib/post_poll.php
sources/Boards.php
sources/functions.php
sources/Memberlist.php
sources/Messenger.php
sources/Online.php
sources/Post.php
sources/Search.php
sources/Topics.php
sources/Usercp.php
Bugs Fixed
----------
Moderator viewing IP addresses bug fix (credit: Josh)
ACP:User Groups: List users in group error on guests and validating groups fix
Post uploads register_globals off bug fix (PHP 4.2+ fix)
Avatar uploads register_globals off bug fix (PHP 4.2+ fix)
ASCII code in emails removed
Next newest/oldest links picking moved topics bug fix
UserCP email address change email subject empty bug fix
Editing poll "no new replies" language fix
Fix to stop silly people removing all language packs
"bad arguments to implode" when importing skin packs on old PHP versions fix
Ability to set number of replies to be "hot" bug fix
Page numbers "missing" from online page at the bottom fix
Changed: Move topics with attachments show attachment regardless of forum settings
Changed: Date generation accounts for Daylight Savings Time
Messenger: Sent items entries show wrong profile when clicking on sent to name
Banned members receive blank page w/error bug fix
Messenger: Bugs in archiving messages fixed
Single quote in redirect screen title escaped bug fix
Unable to use FTP:// in an image tag fix
Redirect screens not centered bug fix
Correct sub cat new post icon used in boards view
Correct last post date used with sub categories
Using three spaces to create a blank post bug fix
Topic Tracker post icon bug fix
Search: Highlighted words fixer upper
Rouge spaces when editing post with quotes fix
DB changes (upgrade3.php will do these changes for you, shown here
for those who want to manually update, etc)
ALTER TABLE ibf_topics CHANGE forum_id forum_id SMALLINT (5) DEFAULT '0' NOT NULL
ALTER TABLE ibf_members ADD dst_in_use TINYINT (1) DEFAULT '0'
+41
View File
@@ -0,0 +1,41 @@
Upgrading from RC1 to FINAL (s6)
-------------------------
Files to update
----------------
index.php
admin.php
sources/Admin/ad_groups.php
sources/Admin/ad_settings.php
sources/Admin/ad_templates.php
sources/Driver/mySQL.php
sources/lib/usercp_functions.php
sources/lib/post_new_post.php
sources/lib/post_poll.php
sources/lib/post_reply_post.php
sources/misc/stats.php
sources/Boards.php
sources/Post.php
sources/Messenger.php
sources/mod_cp.php
Bugs Fixed
----------
Marking all as read in a subcat forum doesn't update board index post marker fix
Post & Avatar uploads (safe mode w/open basedir) bug fix
ACP: Date and times settings description typo fix
Read reciept not containing date bug fix
Viewing "The Moderating Team" displays mods in forums user cannot see fix
ACP max width/height of flash movies missing fix
Post new topic: Stop shouting bug fix
+59
View File
@@ -0,0 +1,59 @@
Upgrading from BETA 1 to BETA 2
-------------------------------
Simply upload the following files from this zip archive (found in the 'uploads' directory) to
your server, replacing them.
admin.php
index.php
lang/en/lang_search.php
Skin/s1/skin_search.php
style_templates/1/skin_search.html
sources/Admin/*.php (this means all the files in the Admin directory)
sources/lib/emailer.php
sources/lib/post_parser.php
sources/lib/usercp_functions.php
sources/lib/post_q_reply_post.php
sources/misc/forward_page.php
sources/Boards.php
sources/functions.php
sources/Messenger.php
sources/Moderate.php
sources/Profile.php
sources/Register.php
sources/Search.php
sources/Usercp.php
Bugs Fixed
----------
PHP 4.0.3 regex errors ($1 $2 $3 errors)
mysql 3.23.22 query errors (emoticons and bad words)
No forum == no profile error
Forward page link generation error
No languages showing in ACP
Wrong topics/posts showing in ACP
Wrong number of members counted via reset stats in ACP
AOL/Yahoo input wrongly labelled as incorrect
Avatar/Img extensions wrongly labelled as incorrect (PHP 4.0.3)
Logged in as incorrect user fixed
Moderators can't close/open own topics
HTML in signatures / posts fixed
Last registered info not updating via ACP approval
Editing quoted post not reflected in preview
Guests not seeing signatures/avatars and images fix
Searching in password protected forums when not logged into them fixed
Search "highlite" attribute not passing to page spans
Added: Ability to turn off GZIP encoding in ACP and on board
Added: Ability to use a windows savvy auto redirect header
+113
View File
@@ -0,0 +1,113 @@
Upgrading from BETA 2 to BETA 3
-------------------------------
STEP ONE:
---------
You must move your post icons from the "PostIcons" directory into the root images
directory.
Example:
If your post icons are in 'style_images/1/PostIcons' move them to 'style_images/1/'
##################################################################
STEP TWO:
---------
Upload the script 'upgade1.php' to your root IBF installation (the same directory that index.php is in).
Run it via your webbrowser. When the script has completed, remove it from your server
##################################################################
STEP THREE:
-----------
Simply upload the following files from this zip archive (found in the 'uploads' directory) to
your server, replacing them.
Files to update
----------------
index.php
admin.php
lang/en/lang_global.php
lang/en/lang_ucp.php
lang/en/lang_post.php
Skin/s1/skin_ucp.php
Skin/s1/skin_post.php
Skin/s1/skin_boards.php (HTML fix)
sources/Admin/ad_forums.php
sources/Admin/ad_member.php
sources/Admin/ad_settings.php
sources/Admin/ad_templates.php
sources/Admin/ad_imagemacros.php
sources/misc/attach.php
sources/misc/contact_member.php
sources/misc/forward_page.php
sources/misc/print_page.php
sources/misc/stats.php
sources/Login.php
sources/Forums.php
sources/functions.php
sources/Memberlist.php
sources/Moderate.php
sources/mod_cp.php
sources/Online.php
sources/Profile.php
sources/Search.php
sources/Topics.php
sources/Usercp.php
sources/lib/*.* (All files)
sources/Driver/mySQL.php
Bugs Fixed
----------
HTML not allowed in forum descriptions
Time zone problems fixed
Mulitple categories showing up when position duplicated
Sub forums not showing (PHP 4.0.3 fix only)
DB query count showing (PHP 4.0.3 fix only)
UserCP: wrong number of closing table tags called
Wrong messenger folders created when pre-reg via ACP
GZIP status wrongly shown
Custom member title not showing in UCP
AIM console breaks on AIM with spaces
Resynch forum counts wrong
Added: Ability to hide the session id in links
Reworked session management
HTML bug fixes
Editing posts with embedded tags
Forum log in cookies not being removed on log out
JS check added for empty messenger titles
Template tags parsing in preview bug fix
Post icon not updating in topic when first post edited
Languages not shown when forwarding topics
Topic images still showing when turned off from UCP
Wrong filename used when attempting to download files sent via upload
Links to moved topics not removed when topic deleted.
Search not returning all results bug fix
Timezones with 30min increments fix
URLs that don't begin with http:// show HTML code in edits
Wrong posts showing up in MCP post queues
Wrong reply count showing when approving moderated posts
Safe mode "catch" for creating/removing images and macros
Safe mode "catch" for creating/removing and editing templates
Viewing Profile: users time not updated with board offsets
Searching for username w/exact match returns matches inc. partial
Uploaded avatars not changing dimensions
Clicking "delete all cookies" creates new guest sessions fixed
Admins that are global moderators showing in both sections in 'View Moderating Team'
Sub categories not working on some mySQL versions fix
Print Page: Incorrect tag parsing
Print Page: Not all topics shown
+51
View File
@@ -0,0 +1,51 @@
Upgrading from BETA 3 to RC1
----------------------------
UPGRADE SCRIPT
--------------
Upload the script 'upgade2.php' to your root IBF installation (the same directory that index.php is in).
Run it via your web browser by typing the URL to the script in the address bar.
When the script has completed, remove it from your server.
Files to update
----------------
index.php
admin.php
Skin/s1/skin_ucp.php
sources/Admin/ad_forums.php
sources/Admin/ad_settings.php
sources/lib/post_parser.php
sources/Boards.php
sources/functions.php
sources/Forums.php
sources/mod_cp.php
sources/Profile.php
sources/Search.php
Bugs Fixed
----------
ACP spelling error on log in
Personal Photo field removed
Wrong tool bar tip for the HTML button (yes, we are getting picky aren't we)
Forum rules being switched off when editing a forums settings
Tighter control on forum and topic IDs
Wrong post marker icon showing in sub cat forums
Links auto parse even when IBF Code is switched off
Skins not remaining hidden if they have an ID of '0'
Mass move/prune fails when choosing "any type of topic"
Search enabled even if member group permission denied
Profile viewing enabled even if member group permission denied
Addition: ability to reset Most Online data via ACP
Multiple guest sessions created if IP address changes often
Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 652 B

+163
View File
@@ -0,0 +1,163 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Invision Install Guide: Help & FAQ</title>
<style>
BODY, TABLE { font-family: verdana, arial; font-size:12px; line-height:150% }
.title { background-image: url(tile_back.gif); font-family:arial; font-size:18px; color:white; font-weight:bold; height:40px }
.table1 { border:1px solid #999999 }
.table2 { border:1px dotted #999999 }
.menustrip { font-color:black; background-color:#EEEEEE; font-size:12px; height:24px }
a:link, a:visited, a:active { color:#000055 }
a:hover { color:#333377;text-decoration:underline }
.header { border-bottom:1px dashed #999999; font-family:Verdana, Arial; font-weight:bold; color:#4C77B6; font-size:20px; background-color:#FEFEFE; letter-spacing:-1px }
</style>
</head>
<body bgcolor="#FFFFFF" topmargin='5' leftmargin='0'>
<!-- Start content -->
<a name='top'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td align='center'>
<b>Sections:</b> <a href='help.html#install' target='bottom'>Installation Problems</a> | <a href='help.html#admin' target='bottom'>Admin CP Problems</a> | <a href='help.html#main' target='bottom'>Board Problems</a> | <a href='help.html#help' target='bottom'>Getting Further Help</a>
</td></tr>
</table>
<br>
<a name='install'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>Installation Problems</td>
</tr>
<tr>
<td align='left'>
<b>When I run the installer, I get a page of code.</b>
<br>
If when accessing the installer via your web browser you receive a page of code and not the installation start screen, this means that either PHP has
not been installed or has not been configured properly. Please consult with your web host to see if this is the case.
<br><br>
<b>I get an error like this 'access denied for user@localhost using password YES' when I submit the main form.</b>
<br>
If you receive this error from mySQL it means that either the mySQL database name, mySQL username, mySQL password or mySQL host information is wrong. Please double check the information you
entered making sure that passwords are typed correctly. In some cases, this information is case sensitive. If this error persists, please consult with your web host to check that the information
you have is correct.
<br><br>
<b>After installing, I get this error 'Warning: fopen("/.install.lock", "w") - Permission denied ...'</b>
<br>
After installing, Invision Board attempts to create a "lock" file which disables the installation script. If you receive this error, the installer
has not been able to create this file. After you have logged into the Admin Center for the first time, you should remove the "sm_install.php" script
from your server and only re-upload it if you wish to make a fresh install. You can then safely ignore this warning.
<br><br>
<b>When installing I get an error like this: 'WARNING! Could not locate 'conf_global.php'</b>
<br>
This error means that the installer could not "guess" the location of the file 'conf_global.php'. Make sure you have uploaded this file into the same directory that you
uploaded 'sm_install.php' into. If you have this file already uploaded and the CHMOD value has been set, then you can tell the installer where to look for this file by simply
opening 'sm_install.php' in your favourite text editor. Look near the top for "$root = "./";". Edit this to reflect your "real" path. Note, this is a path - not a URL, entering "http://www.domain.com" or similar will
result in an error. A path is literally the file path from the server root to the current directory (such as '/home/site/public_html/forums/'). More information is provided in the script near the top. When you have completed
the edit, simply save the file and re-upload to your server and re-run through your web browser.
</td></tr>
</table>
<br>
<a name='admin'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>Admin CP Problems</td>
</tr>
<tr>
<td align='left'>
<b>No matter what I do, I can't stay logged into the Admin CP.</b>
<br>
For extra security, the Admin CP checks your IP address as part of the admin session validation. In some cases your IP address will change with each page request (especially if you are using a dial up ISP). You can
stop the Admin CP checking your IP address which will solve the problem.
<br>To do this, open up "admin.php" in your text editor. Near the top of the script change <span style='color:red'>$check_ip = 1;</span> to <span style='color:red'>$check_ip = 0;</span>. Save the file and re-upload to your
server.
<br>Although there is no immediate security risk to doing this, you should not disclose your admin session ID to anyone or post the link you are using for that admin CP session to anyone.
<br><br>
<b>When I try to access the Admin CP, the page is completely blank</b>
<br>
This problem could be the result of a few things.<br>
Firstly, open up "admin.php" in a text editor and near the top change: <span style='color:red'>$use_gzip = 1;</span> to <span style='color:red'>$use_gzip = 0;</span>. Save the file and re-upload to your
server.
<br>
If that doesn't solve the problem, check the CHMOD values on the directories you created during the installation process. If in doubt, CHMOD them to 0777 and any directories contained within.
</td></tr>
</table>
<br>
<a name='main'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>General Board Problems</td>
</tr>
<tr>
<td align='left'>
<b>Every time I try to access a page on the forums it loads a blank page.</b>
<br>
Can you log into the Admin CP? If you do not know the url, enter the following into your web browser address bar <b>http://www.your-domain-here.com/forums/admin.php</b> (obviously using the correct URL to your board!).
<br>If the Admin CP loads first time, try the following:
<br>Click on "Board Settings" to expand the sub-menu. Click on "Basic Config". When the page has loaded, turn off the following: <b>Print HTTP headers?</b> and <b>DISABLE GZIP encoding?</b>. When complete, submit the form
and try to access your board again.
<br>
If it still loads a blank page, check the CHMOD values on the directories you created during the installation including any directories contained within. If in doubt, CHMOD to 0777.
<br><br>
<b>I am on a Windows server and I get an Internal Server Error when trying to access my board</b>
<br>
There is an option to disable the headers that Invision Board prints by default.
<br>Log into your Admin Control Panel, click on "Board Settings" to expand the sub-menu. Click on "Basic Config". When the page has loaded, turn off <b>Print HTTP headers?</b> and submit the form
and try to access your board again.
<br><br>
<b>I am on a Windows server and when I make a post I am taken to a blank page</b>
<br>
Some Windows based servers require a different HTTP protocol when redirecting HTTP requests, there is an option in the Admin Control Panel to overcome this.
<br>
Log into your Admin Control Panel, click on "Board Settings" to expand the sub-menu. Click on "Basic Config". Choose "Refresh (Windows Savvy) from the "Type of auto-redirect?" option. Submit the form.
</td></tr>
</table>
<br>
<a name='help'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>Getting further help</td>
</tr>
<tr>
<td align='left'>
If you have a problem outside the ones solved in this guide, then don't panic!<br>
We have a large team of trained support professionals that <b>will</b> be able to provide a solution to your problems.<br>
Your first stop would be to open a new support ticket. The FREE ticket system is available from the <a href='http://www.invisionboard.com/members/' target='_blank'>Invision Board Member Center</a>. When starting a new ticket, please
be as thorough as you can in your error reporting, it will save our team time in responding to you. We pride ourselves on quality, professional support and aim to answer your request as promptly as possible.
<br>
You can also post a problem on our "Support and Community Boards". We have a large active community who have experience in maintaining their Invision Board who may be able to give you a prompt reply - our support professionals also moderate these forums and
will read your posts. We do recommend that you make use of the search facility on the board to avoid posting problems that have already been posted - there is also a good chance that it's already been reported, discussed and solved.
<br>
<br>You may wish to consider our <b>"Priority Support"</b> option. A once only fee will cover you for all support requests for a period of one year (12 months).
<br>Priority support entitles you to the following benefits:
<ul>
<li>Your support tickets will be marked priority and only Invision Board administrators will have access to those tickets.
<li>You will be given a password to access the private support forum on our Community Forums.
<li>If you are in the United States you will receive telephone support if desired.
<li>In most cases we will login to your account and address problems for you.
<li>We can install the software for you if desired.</ul>
<br>
For more information on our priority support service, please visit our <a href='http://www.invisionboard.com/members/' target='_blank'>Invision Board Member Center</a>.
<br><br>
If you wish to contact us, please visit our <a href='http://www.invisionpower.com/?contact' target='_blank'>Contact Page</a> which includes a handy email form, mailing address and telephone number.
</td>
</tr>
</table>
<!-- End content -->
</body>
</html>
+320
View File
@@ -0,0 +1,320 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Invision Install Guide: Installing</title>
<style>
BODY, TABLE { font-family: verdana, arial; font-size:12px; line-height:150% }
.title { background-image: url(tile_back.gif); font-family:arial; font-size:18px; color:white; font-weight:bold; height:40px }
.table1 { border:1px solid #999999 }
.table2 { border:1px dotted #999999 }
.menustrip { font-color:black; background-color:#EEEEEE; font-size:12px; height:24px }
a:link, a:visited, a:active { color:#000055 }
a:hover { color:#333377;text-decoration:underline }
.header { border-bottom:1px dashed #999999; font-family:Verdana, Arial; font-weight:bold; color:#4C77B6; font-size:20px; background-color:#FEFEFE; letter-spacing:-1px }
</style>
</head>
<body bgcolor="#FFFFFF" topmargin='5' leftmargin='0'>
<!-- Start content -->
<a name='top'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>Installing: Step 1 - Uploading</td>
</tr>
<tr>
<td align='left'>
<br>At this point, you should have the zip archive "unzipped" and the contents similar to those shown in the <a href='install.html#structure' target='bottom'>structure and CHMOD guide</a>. If you
do not have a similar structure, check to make sure you have your zip program preferences set to allow creation of directories and to preserve case and long filenames.
<br><br>
If you haven't done so already, create a new directory on your server named appropriately (if you wanted to access the forums via 'http://www.domain.com/forums/', create a directory called 'forums' in the
'public_html' or 'www' directory on your webserver.
<br><br>
Using your FTP client, move into the directory you wish to upload to (if you followed the above advice, move into the newly created 'forums' directory.)
<br><br>
Using your FTP client, create the following directories "archive_in", "archive_out", "html", "lang", "Skin", "sources", "ssi_templates", "style_images",
"style_sheets", "style_templates" and "uploads" <span style='color:blue'>(TIP: If your FTP client supports "Drag n' Drop" which most modern clients do, you can save yourself some time and effort by
simply selecting all the files from the "unzipped" zip archive and drag them into your FTP client window, this will then copy all the files, creating the directories as it goes. If you choose
to do this, you can safely ignore most of the following instruction, just remember to CHMOD as outlined in the stucture and CHMOD guide).</span>
<br><br>
Once the directories have been created, CHMOD "archive_in", "archive_out" and "uploads" to 0755 (if you get permissions errors later on, you can CHMOD these to
"0777"). Now, upload the contents of the files in your local folders (from the zip file) into the corresponding directories you've just created on your server. Some folders will contain other
files and folders, upload them all - preserving the structure you have in your zip file (for example, upload the entire contents of the "html" folder on your computer to the "html" directory on the server).
<br><br>
Once you have finished uploading into the directories, upload the rest of the files "admin.php", "conf_global.php", "conf_mime_types.php", "index.php",
"phpinfo.php", "sm_install.php", "ssi.php" to the same place as you created the directories earlier (into "forums" for our example).
<br>
CHMOD "conf_global.php" to 0666 (if you get permission denied errors later on, you can CHMOD this to 0777).
<br><br>
That's it, the hard work is now done! You can proceed to the next step.
</td>
</tr>
</table>
<br>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>Installing: Step 2 - Using the Installer</td>
</tr>
<tr>
<td align='left'>
An installer is provided to assist you in entering the information Invision Board needs to connect to your mySQL database and to create your new
administrators account.
<br><br>
Run the "sm_install.php" file through your web browser by entering the URL to it into your browser address bar (if you have followed our example, type in
<b>http://www.domain.com/forums/sm_install.php</b>, naturally subsituting 'domain.com' for your web address.)
<br><br>
You will be presented with a short information screen, if you receive an error telling you that "conf_global.php" does not have suitable permissions, CHMOD "conf_global.php" to
0777 via your FTP client.
<br><br>
Clicking on proceed will present you with a simple information form. You will need to know your mySQL username and password at this point. If you do not know it, please ask your web host - in most
cases it is different from the FTP log in information.
<br><br>The form is very straightfoward, with only the following points needing closer examination. If you do not know what your mySQL "host" is, try "localhost" (without the quotes). if the mySQL server
is on the same server as your website (and in most cases it is) this will suffice.
<br>
If you have created a new database for Invision Board, or wish to use an existing database, enter the name of the database in the appropriate field.<br><br>Unless you intend to install multiple copies of
Invision Board into the same database, you can leave the "table prefix" blank. If you do not have a mySQL password (if you are installing Invision Board on your local server) this can be left blank.
<br>
After submitting the form, you will be informed of any errors - if you do get an error similar to "permission denied for user@localhost using password YES" - the chances are you have either your mySQL username, mySQL password
or mySQL database name wrong. Consult with your webhost for the correct information and resubmit the form.
<br><br>
If the installation was successful, you will receive notification to that effect.
<br>
Follow the link to finish off the installation and to log into your newly installed board. When the log in page loads, enter in the information you chose for your administrator account.
<br>
Once you are logged into the board, click on the "Admin CP" link found in the navigation bar to access the Administration Control Panel.
</td>
</tr>
</table>
<br>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>Installing: Step 3 - Admin CP First Steps</td>
</tr>
<tr>
<td align='left'>
The Invision Board administration control panel is a very sophisticated tool. This is where you can create new categories and forums for your board, as well
as set bad word filters, edit emoticons, change the board colours and so on. We recommend you browse the documentation at <a href='http://www.invisionboard.com/members'>Invision Board</a> before getting attempting some of the more complex operations.
<br><br>
<b>Lets get stuck in!</b>
<br>
The first thing you will need to do is remove the "sm_install.php" file from your server; although Invision Board locks the installer after a successful install, it's always a good idea to remove the installer as re-running it
<b>will delete your database tables</b>.
<br><br>
<b>Before anyone can post, we need some forums!</b>
<br>
If you wish to get stuck in straight away, now would be a good time to create some forums for your members to post in.
<br>
In the Administrators CP, click on the "Forum Control" expanding menu in the left menu frame. When it loads, click on "New Category".
<br>If your website was about computers, you could enter "PC Software" as the category name. Submit the form by clicking the button at the bottom of the page.
<br>Now we have a category to "group" the forums, lets create a forum or two.
<br><br>Click on "New Forum" found in the same expandable menu. Choose "Normal Forum" from the drop down box and proceed.
<br>There are many options here, which are outside the scope of this guide, for more information see the documentation at <a href='http://www.invisionboard.com/members'>Invision Board</a>. We can
create a new forum without knowing what all the options do. Using our example, you might want a forum dedicated to "Games" - if so, enter "Games" as the forum title, and a suitable description for the new forum. When you have done this
scroll down and submit the form by clicking the button at the bottom of the page.
<br><br>
If you now go back to your board, and refresh the page, you will see the new category and forum. Try a little test post to make sure the system is running perfectly.
<br><br>
Congratulations! You have installed and set up your new Invision Board. If you ran into trouble, please click on the "Help!" link in the top menu bar for the FAQ and how to get support.
<br><br>
<i>Thank you for supporting Invision Board</i>
</td>
</tr>
</table>
<br>
<br>
<br>
<br>
<a name='structure'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>File Structure and CHMOD values</td>
</tr>
<tr>
<td align='left'>Below is a table showing the file structure and recommended CHMOD values for the file (and in the case of directories, the CHMOD
values for the contents of the directories).<br>The CHMOD values are not needed for Windows based servers and can be safely ignored. The CHMOD
values may vary from system to system, if in doubt, CHMOD everything to 0777.<br>Most systems will not need to CHMOD everything to install successfully,
use the table below to determine what needs CHMOD'ding for installation, and what can be left until later.
</td>
</tr>
<tr>
<td align='center'>
<table width='100%' align='center' cellpadding='0' cellspacing='0' bgcolor='#BCBCBC'>
<tr>
<td>
<table width='100%' align='center' cellpadding='4' cellspacing='1'>
<tr>
<td width='5%' bgcolor='#EEEEEE' style='font-size:10px'>&nbsp;</td>
<td width='25%' bgcolor='#EEEEEE' style='font-size:10px'><b>File/Folder Name</b></td>
<td width='20%' bgcolor='#EEEEEE' style='font-size:10px' align='center'><b>Item CHMOD Value</b></td>
<td width='30%' bgcolor='#EEEEEE' style='font-size:10px' align='center'><b>Contents CHMOD Value</b></td>
<td width='15%' bgcolor='#EEEEEE' style='font-size:10px' align='center'><b>CHMOD for install</b></td>
<td width='15%' bgcolor='#EEEEEE' style='font-size:10px' align='center'><b>Can CHMOD later</b></td>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='file.gif' border='0' alt='PHP file'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'>admin.php</td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>archive_in</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'><span style='color:red'><b>X</b></span></a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>archive_out</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'><span style='color:red'><b>X</b></span></a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='file.gif' border='0' alt='PHP file'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'>conf_global.php</td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0666</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'><span style='color:red'><b>X</b></span></a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='file.gif' border='0' alt='PHP file'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'>conf_mime_types.php</td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>html</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='file.gif' border='0' alt='PHP file'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'>index.php</td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>lang</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'><span style='color:red'><b>X</b></span></a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='file.gif' border='0' alt='PHP file'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'>phpinfo.php</td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>Skin</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'><span style='color:red'><b>X</b></span></a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='file.gif' border='0' alt='PHP file'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'>sm_install.php</td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>sources</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='file.gif' border='0' alt='PHP file'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'>ssi.php</td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>ssi_templates</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>style_images</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'><span style='color:red'><b>X</b></span></a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>style_sheets</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'><span style='color:red'><b>X</b></span></a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>style_templates</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'><span style='color:red'><b>X</b></span></a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>uploads</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0777</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'><span style='color:red'><b>X</b></span></a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- End content -->
</body>
</html>
+31
View File
@@ -0,0 +1,31 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Invision Board Menu Bar</title>
<style>
BODY, TABLE { font-family: arial, verdana; font-size:11px }
.title { background-image: url(tile_back.gif); font-family:arial; font-size:18px; color:white; font-weight:bold; height:40px }
.table1 { border:1px solid #999999 }
.menustrip { font-color:black; background-color:#EEEEEE; font-size:12px; height:24px; letter-spacing:1px }
a:link, a:visited, a:active { color:#000055 }
a:hover { color:#333377;text-decoration:underline }
</style>
</head>
<body bgcolor="#FFFFFF" topmargin='5' leftmargin='0'>
<table width='95%' align='center' cellpadding='4' cellspacing='0' class='table1'>
<tr>
<td class='title' align='left'>Invision Board Installation and Help Guide</td>
</tr>
<tr>
<td class='menustrip' align='center'>[ <b><a href='welcome.html#welcome' target='bottom'>Welcome</a></b> ] :: [ <b><a href='welcome.html#require' target='bottom'>Requirements</a></b> ] :: [ <b><a href='install.html#top' target='bottom'>Installing</a></b> ] :: [ <b><a href='install.html#structure' target='bottom'>Structure & CHMOD</a></b> ] :: [ <b><a href='help.html#top' target='bottom'>Help & FAQ</a></b> ]</td>
</tr>
</table>
</body>
</html>
Binary file not shown.

After

Width:  |  Height:  |  Size: 157 B

+92
View File
@@ -0,0 +1,92 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Invision Install Guide: Welcome</title>
<style>
BODY, TABLE { font-family: verdana, arial; font-size:12px; line-height:150% }
.title { background-image: url(tile_back.gif); font-family:arial; font-size:18px; color:white; font-weight:bold; height:40px }
.table1 { border:1px solid #999999 }
.table2 { border:1px dotted #999999 }
.menustrip { font-color:black; background-color:#EEEEEE; font-size:12px; height:24px }
a:link, a:visited, a:active { color:#000055 }
a:hover { color:#333377;text-decoration:underline }
.copyright { font-size:10px }
.header { border-bottom:1px dashed #999999; font-family:Verdana, Arial; font-weight:bold; color:#4C77B6; font-size:20px; background-color:#FEFEFE; letter-spacing:-1px }
</style>
</head>
<body bgcolor="#FFFFFF" topmargin='5' leftmargin='0'>
<!-- Start content -->
<a name='welcome'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>Welcome to Invision Board!</td>
</tr>
<tr>
<td align='left'>
<br>Welcome to Invision Board, a fast, efficient, scalable community solution written in PHP and using mySQL for database storage.
<br><br>
This guide will help you through the installation process and get you on your way to setting up your own Invision Board.
<br>
Installation is very straight forward, only taking about 15 minutes from uploading the files to logging into your administration center.
<br>
<br>
You will need an FTP (File Transfer Protocol) client, if you do not have one you can download <a href='http://www.smartftp.com' target='_blank'>Smart FTP for Windows</a> or
<a href='http://www.interarchy.com' target='_blank'>InterArchy for Macintosh</a>. At the time of writing both websites have freeware or free trial versions available for download.
<br>You do not need an indepth knowledge of PHP programming to install Invision Board, but a working knowledge of FTP functions is a plus.
<br>
<br>This guide assumes that you have successfully downloaded the latest release from <a href='http://www.invisionboard.com' target='_blank'>Invision Board</a> and have the Zip file "unzipped" and ready to go.
<br>The instructions will term the zip file you downloaded as "the zip archive", the directories created by the unzipping process as "the local folders" and the directories on your website as
"website directories" - this is to prevent confusion.
<br><br>
<b>If you don't know your FTP from your PHP and your CHMOD from your CHOWN, then you might wish to consider our Installation Service. For a low cost, once only fee
- one of our installation professionals will install and set up your board for you. For more information, please visit our <a href='http://www.invisionboard.com/members/?c=priority' target='_blank'>advanced services</a> page.</b>
</td></tr>
</table>
<br>
<a name='require'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>Requirements</td>
</tr>
<tr>
<td align='left'>The exact requirements will depend on many factors, your estimated board traffic being one.
<br><br><b>Server Requirements</b>
<br>
You must have a webserver that has PHP 4.0.3 (or better) and mySQL 3.22 (or better) installed. If you are unsure whether your server has these
programs installed, please check with your web host now. If you are capable, you can always <a href='http://www.php.net' target='_blank'>download PHP</a>
and <a href='http://www.mysql.com' target='blank'>download mySQL</a> and install it yourself.
<br>Invision Board works best on an Apache server, and is Apache 1 and Apache 2 savvy.
<br><br>
<b>General Requirements</b>
<br>
You <b>do not</b> need a new mySQL database as Invision Board supports table prefixes to prevent tables being overwritten.
<br>You will also need the mySQL username and mySQL password for a mySQL user that has permission to "CREATE", "DROP" and "ALTER" tables.
<br>You will need about 2mb of free web space and roughly 3mb of mySQL database space to allow installation and a moderately sized community.
<br>If you are unsure on any of these points, please ask your webhost before proceeding.
<br><br>
<b>&gt;&gt; <a href='install.html' target='bottom'>Enough chit chat, lets get installing!</a>
</td>
</tr>
</table>
<br><br>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td align='center' class='copyright'>
Invision Board, Invision Board Installation Guide &copy; 2002 <a href='http://www.invisionpower' target='_blank'>Invision Power Services</a>
</td>
</tr>
</table>
<!-- End content -->
</body>
</html>
+16
View File
@@ -0,0 +1,16 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Invision Board Installation</title>
</head>
<frameset rows='90, *' frameborder='no' border='0' framespacing='0'>
<frame src="data/menu.html" name="topmenu" longdesc="Top%20Menu%20Bar" scrolling="no" noresize>
<frame src="data/welcome.html" name="bottom" longdesc="Bottom%20Bar" scrolling="auto" noresize>
</frameset>
<noframes>
Sorry, you need a frames enabled browser to view this page- and why are you still living in the dark ages,
Internet Explorer 2 isn't cool anymore!
</noframes>
</html>
+1
View File
@@ -0,0 +1 @@
INSERT INTO ibf_categories (id, position, state, name, description, image, url) VALUES (-1, NULL, NULL, '-', NULL, NULL, NULL); INSERT INTO ibf_css (cssid, css_name, css_text) VALUES (1, 'Invision Style Sheet', NULL); INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (1, ':)', 'smile.gif', 1); INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (2, ':(', 'sad.gif', 1); INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (3, ':D', 'biggrin.gif', 1); INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (5, ':o', 'ohno.gif', 1); INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (6, ':crazy:', 'crazy.gif', 1); INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (7, ':laugh:', 'laugh.gif', 1); INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (8, ':hmmm:', 'hmmm.gif', 1); INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (9, ':rolleyes:', 'rolleyes.gif', 1); INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (10, ';)', 'wink.gif', 1); INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (11, ':p', 'tongue.gif', 1); INSERT INTO ibf_faq (id, title, text, description) VALUES (1, 'Registration benefits', 'To be able to use all the features on this board, the administrator will probably require that you register for a member account. Registration is free and only takes a moment to complete.\r<br>\r<br>During registration, the adminstrator requires that you supply a valid email address. This is important as the administrator may require that you validate your registration via an email. If this is the case, you will be notified when registering.\r<br>In some cases, the administrator will need to approve your regsitration before you can use your member account fully. If this is the case you will be notified during registration.\r<br>\r<br>Once you have registered and logged in, you will have access to your private messenger and your control panel.\r<br>\r<br>For more information on these items, please see the relevant sections in this documentation.', 'How to register and the added benefits of being a registered member.'); INSERT INTO ibf_faq (id, title, text, description) VALUES (2, 'Cookies and cookie usage', 'Using cookies is optional, but strongly recommended. Cookies are used to track topics, showing you which topics have new replies since your last visit and to automatically log you in when you return.\r<br>\r<br>This board will also allow you to remove the long session id\'s found in the URL\'s. You can do this by entering your control panel (click the link at the top of the board) and entering the \'Board Settings\' section. It is recommended that you enable this feature because you may experience problems if your internet connection shares a proxy and you share a link with another user. If in doubt, choose to hide the session id.\r<br>\r<br><b>Clearing Cookies</b>\r<br>\r<br>You can clear the cookies at any time by clicking on the link found at the bottom of the main board page (the first page you see when returning to the board). If this does not work for you, you may need to remove the cookies manually.\r<br>\r<br><u>Removing Cookies in Internet Explorer for Windows</u>\r<br>\r<br><ul>\r<br><li> Close all open Internet Explorer Windows\r<br><li> Click on the \'start\' button\r<br><li> Move up to \'Find\' and click on \'Files and Folders\'\r<br><li> When the new window appears, type in the domain name of the board you are using into the \'containing text\' field. (If the boards address was \'http://www.invisionboard.com/forums/index.php\' you would enter \'invisionboard.com\' without the quotes)\r<br><li> In the \'look in\' box, type in <b>C:&#92;Windows&#92;Cookies</b> and press \'Find Now\'\r<br><li> After it has finished searching, highlight all files (click on a file then press CTRL+A) and delete them.\r<br></ul>\r<br>\r<br><u>Removing Cookies in Internet Explorer for Macintosh</u>\r<br>\r<br><ul>\r<br><li> With Internet Explorer active, choose \'Edit\' and then \'Preferences\' from the Macintosh menu bar at the top of the screen\r<br><li> When the preferences panel opens, choose \'Cookies\' found in the \'Receiving Files\' section.\r<br><li> When the cookie pane loads, look for the domain name of the board (If the boards address was \'http://www.invisionboard.com/forums/index.php\' look for \'invisionboard.com\' or \'www.invisionboard.com\'\r<br><li> For each cookie, click on the entry and press the delete button.\r<br></ul>\r<br>\r<br>Your cookies should now be removed. In some cases you may need to restart your computer for the changes to take effect.', 'The benefits of using cookies and how to remove cookies set by this board.'); INSERT INTO ibf_faq (id, title, text, description) VALUES (3, 'Recovering lost or forgotten passwords', 'Security is a big feature on this board, and to that end, all passwords are encrypted when you register.\r<br>This means that we cannot email your passwoLine truncated
+1
View File
@@ -0,0 +1 @@
CREATE TABLE ibf_admin_sessions ( ID varchar(32) NOT NULL default '', IP_ADDRESS varchar(32) NOT NULL default '', MEMBER_NAME varchar(32) NOT NULL default '', MEMBER_ID varchar(32) NOT NULL default '', SESSION_KEY varchar(32) NOT NULL default '', LOCATION varchar(64) default 'index', LOG_IN_TIME int(10) NOT NULL default '0', RUNNING_TIME int(10) NOT NULL default '0', PRIMARY KEY (ID) ); CREATE TABLE ibf_attachments ( id bigint(20) NOT NULL auto_increment, mime_type varchar(128) default NULL, file_name varchar(64) default NULL, PRIMARY KEY (id) ); CREATE TABLE ibf_badwords ( wid int(3) NOT NULL auto_increment, type varchar(250) NOT NULL default '', swop varchar(250) default NULL, m_exact tinyint(1) default '0', PRIMARY KEY (wid) ); CREATE TABLE ibf_categories ( id tinyint(3) NOT NULL default '0', position tinyint(3) default NULL, state varchar(10) default NULL, name varchar(128) NOT NULL default '', description text, image varchar(128) default NULL, url varchar(128) default NULL, PRIMARY KEY (id) ); CREATE TABLE ibf_contacts ( id bigint(20) NOT NULL auto_increment, contact_id varchar(32) NOT NULL default '', member_id varchar(32) NOT NULL default '', contact_name varchar(32) NOT NULL default '', allow_msg tinyint(1) default NULL, contact_desc varchar(50) default NULL, PRIMARY KEY (id) ); CREATE TABLE ibf_css ( cssid int(10) NOT NULL auto_increment, css_name varchar(128) NOT NULL default '', css_text text, PRIMARY KEY (cssid) ); CREATE TABLE ibf_emoticons ( id smallint(3) NOT NULL auto_increment, typed varchar(32) NOT NULL default '', image varchar(128) NOT NULL default '', clickable smallint(2) NOT NULL default '1', PRIMARY KEY (id) ); CREATE TABLE ibf_faq ( id bigint(20) NOT NULL auto_increment, title varchar(128) NOT NULL default '', text text, description text NOT NULL, PRIMARY KEY (id) ); CREATE TABLE ibf_forums ( id smallint(5) NOT NULL default '0', topics mediumint(6) default NULL, posts mediumint(6) default NULL, last_post int(10) default NULL, last_poster_id varchar(32) default NULL, last_poster_name varchar(32) default NULL, name varchar(128) NOT NULL default '', description text, position tinyint(2) default NULL, use_ibc tinyint(1) default NULL, use_html tinyint(1) default NULL, status varchar(10) default NULL, start_perms varchar(200) default NULL, reply_perms varchar(200) default NULL, read_perms varchar(200) default NULL, password varchar(32) default NULL, category tinyint(2) NOT NULL default '0', last_title varchar(128) default NULL, last_id smallint(5) default NULL, sort_key varchar(32) default NULL, sort_order varchar(32) default NULL, prune tinyint(3) default NULL, show_rules tinyint(1) default NULL, use_attach tinyint(1) default NULL, preview_posts tinyint(1) default NULL, allow_poll tinyint(1) NOT NULL default '1', allow_pollbump tinyint(1) NOT NULL default '0', inc_postcount tinyint(1) NOT NULL default '1', skin_id int(10) default NULL, parent_id mediumint(5) default '-1', subwrap tinyint(1) default '0', PRIMARY KEY (id), KEY category (category) ); CREATE TABLE ibf_groups ( g_id int(3) unsigned NOT NULL auto_increment, g_view_board tinyint(1) default NULL, g_mem_info tinyint(1) default NULL, g_other_topics tinyint(1) default NULL, g_use_search tinyint(1) default NULL, g_email_friend tinyint(1) default NULL, g_invite_friend tinyint(1) default NULL, g_edit_profile tinyint(1) default NULL, g_post_new_topics tinyint(1) default NULL, g_reply_own_topics tinyint(1) default NULL, g_reply_other_topics tinyint(1) default NULL, g_edit_posts tinyint(1) default NULL, g_delete_own_posts tinyint(1) default NULL, g_open_close_posts tinyint(1) default NULL, g_delete_own_topics tinyint(1) default NULL, g_post_polls tinyint(1) default NULL, g_vote_polls tinyint(1) default NULL, g_use_pm tinyint(1) default NULL, g_is_supmod tinyint(1) default NULL, g_access_cp tinyint(1) default NULL, g_title varchar(32) NOT NULL default '', g_can_remove tinyint(1) default NULL, g_append_edit tinyint(1) default NULL, g_access_offline tinyint(1) default NULL, g_avoid_q tinyint(1) default NULL, g_avoid_flood tinyint(1) default NULL, g_icon varchar(64) default NULL, g_attach_max bigint(20) default NULL, g_avatar_upload tinyint(1) default '0', g_calendar_post tinyint(1) default '0', prefix varchar(250) default NULL, suffix varchar(250) default NULL, PRIMARY KEY (g_id) ); CREATE TABLE ibf_images ( imid int(10) NOT NULL auto_increment, setname varchar(125) NOT NULL default '', A_LOCKED_B varchar(250) default NULL, A_MOVED_B varchar(250) default NULL, A_POLL varchar(250) default NULL, A_POLLONLY_B varchar(250) default NULL, A_POST varchar(250) default NULL, A_REPLY varchar(250) default NULL, A_STAR varchar(250) default NULL, B_HOT varchar(250) default NLine truncated
+664
View File
@@ -0,0 +1,664 @@
<?php
class ModCPView {
function topic_none() {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' colspan='2'><i>{$ibforums->lang['q_t_n']}</i></td>
</tr>
EOF;
}
function endcp() {
global $ibforums;
return <<<EOF
</td>
</tr>
</table>
</td>
</tr>
</table>
EOF;
}
function post_none() {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' colspan='2'><i>{$ibforums->lang['q_p_n']}</i></td>
</tr>
EOF;
}
function end_forum_splash() {
global $ibforums;
return <<<EOF
</table>
</td>
</tr>
</table>
EOF;
}
function post_form_header($count) {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium' colspan='2'>{$ibforums->lang['q_posts']} $count</td>
</tr>
EOF;
}
function prune_form_header() {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium' colspan='2'>{$ibforums->lang['search_prune']}</td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' colspan='2'>
<i>{$ibforums->lang['define_search']}</i>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='theForm'>
<input type='hidden' name='act' value='ModCP'>
<input type='hidden' name='CODE' value='process_prune'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='f' value='$iB::IN{'f'}'>
</td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_prune_cutoff']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='DAYS' size='5' maxlength='10' class='forminput'></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_prune_perpage']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='PAGE' size='5' maxlength='10' value='20' class='forminput'></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='2' align='center'><input type='button' class='forminput' value='{$ibforums->lang['prune_forum']}' onClick='check_prune();'></form></td>
</tr>
EOF;
}
function show_post_results($data) {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>
<b>{$ibforums->lang['a_topic_results']}</b><hr noshade size=1 color='{$ibforums->skin['TABLE_BORDER_COL']}'>
{$ibforums->lang['a_topic_deleted']} {$data[DELETED]}<br><br>
{$ibforums->lang['a_topic_approved']} {$data[APPROVED]}<br><br>
{$ibforums->lang['a_topic_left']} {$data[LEFT]}<br><br>
</td>
</tr>
EOF;
}
function topic_header($data) {
global $ibforums;
return <<<EOF
<tr>
<td><b>{$ibforums->lang['f_moderate']} {$data[FORUM_NAME]}</b><br>{$ibforums->lang['f_moderate_t']}
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='theForm'>
<input type='hidden' name='act' value='ModCP'>
<input type='hidden' name='CODE' value='{$data[search_type]}'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='f' value='$iB::IN{'f'}'>
</td>
</tr>
<tr>
<td>
<table cellspacing='1' cellpadding='0' border='0' width='95%' align='center' bgcolor='{$ibforums->skin['TABLE_BORDER_COL']}'>
<tr>
<td>
<table cellspacing='1' cellpadding='4' border='0' width='100%' align='center'>
<tr>
<td width='15%' bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium'>{$ibforums->lang['tt_action']}</td>
<td width='45%' bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium'>{$ibforums->lang['st_topic']}</td>
<td width='5%' bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium'>{$ibforums->lang['st_posts']}</td>
<td width='35%' bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium'>{$ibforums->lang['st_last']}</td>
</tr>
EOF;
}
function open_form_header() {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium' colspan='2'>{$ibforums->lang['search_openclose']} $count</td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' colspan='2'>
<i>{$ibforums->lang['define_search']}</i>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='theForm'>
<input type='hidden' name='act' value='ModCP'>
<input type='hidden' name='CODE' value='process_open'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='f' value='$iB::IN{'f'}'>
</td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_topics_cutoff']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='DAYS' size='5' maxlength='10' class='forminput'></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_sort']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><select name='ORDER' class='forminput'><option value='asc'>{$ibforums->lang['s_topics_asc']}</option><option value='desc' selected>{$ibforums->lang['s_topics_desc']}</option></select></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_limit']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='LIMIT' size='5' maxlength='10' class='forminput'></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='2' align='center'><input type='submit' class='forminput' value='{$ibforums->lang['submit_topics']}'></form></td>
</tr>
EOF;
}
function render_topic_post($data) {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='middle'><input type='hidden' name='POST_{$data[POST]}->{'ID'}' value='{$data[POST]}->{'POST_ID'}'><input type='hidden' name='TOPIC_{$data[POST]}->{'ID'}' value='{$data[TOPIC]}->{'TOPIC_ID'}'><select name='CHOICE_{$data[POST]}->{'ID'}' class='forminput'><option value='APPROVE' selected>{$ibforums->lang['c_approve']}</option>{$data[TOPIC]}->{'DELETE'}<option value='LEAVE' selected>{$ibforums->lang['c_leave']}</option></select></td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='top'>
<table cellspacing='1' cellpadding='4' border='0' width='100%' align='center'>
<tr>
<td valign='top' width='15%'>{$data[POST]}->{'MEMBER_NAME'}</td>
<td valign='top' width='85%'><b>{$ibforums->lang['ss_posted_on']}</b> {$data[POST]}->{'POST_DATE'}<hr noshade size=1 color='{$ibforums->skin['TABLE_BORDER_COL']}'>{$data[POST]}->{'POST'} ( <a href="javascript:PopUp('{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f=$iB::IN{'f'}&CODE=readpost&ID={$data[POST]}->{'ID'}','ViewPost','400','200','0','1','1','1')">{$ibforums->lang['ss_read_more']}</a> )</td>
</tr>
</table>
</td>
</tr>
EOF;
}
function online_menu() {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' id='controlpanel'>{$ibforums->lang['m_moderate']}</td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f=$iB::IN{'f'}'>{$ibforums->lang['m_approve']}</a></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f=$iB::IN{'f'};CODE=prune'>{$ibforums->lang['m_prune']}</a></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f=$iB::IN{'f'};CODE=delete'>{$ibforums->lang['m_delete']}</a></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f=$iB::IN{'f'};CODE=open'>{$ibforums->lang['m_open']}</a></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f=$iB::IN{'f'};CODE=move'>{$ibforums->lang['m_move']}</a></td>
</tr>
<!-- To be added later
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' id='controlpanel'>{$ibforums->lang['m_prefs']}</td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f=$iB::IN{'f'}'>{$ibforums->lang['m_email']}</a></td>
</tr>
-->
EOF;
}
function show_topic_results($data) {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>
<b>{$ibforums->lang['a_post_results']}</b><hr noshade size=1 color='{$ibforums->skin['TABLE_BORDER_COL']}'>
{$ibforums->lang['a_post_deleted']} {$data[DELETED]}<br><br>
{$ibforums->lang['a_post_approved']} {$data[APPROVED]}<br><br>
{$ibforums->lang['a_post_left']} {$data[LEFT]}<br><br>
</td>
</tr>
EOF;
}
function main_splash() {
global $ibforums;
return <<<EOF
<tr>
<td><b>{$ibforums->lang['mod_forum_t']}</b><br>{$ibforums->lang['mod_forum']}</td>
</tr>
<tr>
<td>
<table cellspacing='1' cellpadding='0' border='0' width='95%' align='center' bgcolor='{$ibforums->skin['TABLE_BORDER_COL']}'>
<tr>
<td>
<table cellspacing='1' cellpadding='4' border='0' width='100%' align='center'>
<tr>
<td width='54%' bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium'>{$ibforums->lang['forum_name']}</td>
<td width='6%' bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium'>{$ibforums->lang['forum_topics']}</td>
<td width='5%' bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium'>{$ibforums->lang['forum_posts']}</td>
<td width='35%' bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium'>{$ibforums->lang['last_post']}</td>
</tr>
EOF;
}
function move_form_header() {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium' colspan='2'>{$ibforums->lang['search_move']}</td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' colspan='2'>
<i>{$ibforums->lang['define_search']}</i>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='theForm'>
<input type='hidden' name='act' value='ModCP'>
<input type='hidden' name='CODE' value='process_move'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='f' value='$iB::IN{'f'}'>
</td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_topics_cutoff']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='DAYS' size='5' maxlength='10' class='forminput'></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_sort']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><select name='ORDER' class='forminput'><option value='asc'>{$ibforums->lang['s_topics_asc']}</option><option value='desc' selected>{$ibforums->lang['s_topics_desc']}</option></select></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_limit']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='LIMIT' size='5' maxlength='10' class='forminput'></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='2' align='center'><input type='submit' class='forminput' value='{$ibforums->lang['submit_topics']}'></form></td>
</tr>
EOF;
}
function delete_form_header() {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium' colspan='2'>{$ibforums->lang['search_delete']} $count</td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' colspan='2'>
<i>{$ibforums->lang['define_search']}</i>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='theForm'>
<input type='hidden' name='act' value='ModCP'>
<input type='hidden' name='CODE' value='process_delete'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='f' value='$iB::IN{'f'}'>
</td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_topics_cutoff']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='DAYS' size='5' maxlength='10' class='forminput'></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_sort']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><select name='ORDER' class='forminput'><option value='asc'>{$ibforums->lang['s_topics_asc']}</option><option value='desc' selected>{$ibforums->lang['s_topics_desc']}</option></select></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_limit']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='LIMIT' size='5' maxlength='10' class='forminput'></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='2' align='center'><input type='submit' class='forminput' value='{$ibforums->lang['submit_topics']}'></form></td>
</tr>
EOF;
}
function render_cat($data) {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor="{$ibforums->skin['CAT_BACK']}" id='category' colspan='4'>{$data[CAT_NAME]}</td>
</tr>
EOF;
}
function topic_footer() {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='4' align='center'><input type='submit' value='{$ibforums->lang['process_records']}' class='forminput'></td>
</tr>
</table>
</td>
</tr>
</table>
EOF;
}
function show_move_results($data) {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>
<b>{$ibforums->lang['a_topic_results']}</b><hr noshade size=1 color='{$ibforums->skin['TABLE_BORDER_COL']}'>
{$ibforums->lang['a_topic_d_left']} {$data[leave]}<br><br>
{$ibforums->lang['a_topic_moved']} {$data[move]}<br><br>
</td>
</tr>
EOF;
}
function search_header($data) {
global $ibforums;
return <<<EOF
<tr>
<td><b>{$ibforums->lang['f_moderate']} {$data[FORUM_NAME]}</b><br>{$ibforums->lang['f_moderate_t']}
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='theForm'>
<input type='hidden' name='act' value='ModCP'>
<input type='hidden' name='CODE' value='{$data[search_type]}'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='f' value='$iB::IN{'f'}'>
</td>
</tr>
<tr>
<td>
<table cellspacing='1' cellpadding='0' border='0' width='95%' align='center' bgcolor='{$ibforums->skin['TABLE_BORDER_COL']}'>
<tr>
<td>
<table cellspacing='1' cellpadding='4' border='0' width='100%' align='center'>
<tr>
<td width='15%' bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium'>{$ibforums->lang['tt_action']}</td>
<td width='85%' bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium'>{$ibforums->lang['tt_details']}</td>
</tr>
EOF;
}
function move_ops($html, $forum_name) {
global $ibforums;
return <<<EOF
<tr>
<td><table cellspacing='0' cellpadding='4' border='0' width='100%' align='center'>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['move_topics_from']} <b>$forum_name</b> {$ibforums->lang['to']}:
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='theForm'>
<input type='hidden' name='act' value='ModCP'>
<input type='hidden' name='CODE' value='do_move'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='f' value='$iB::IN{'f'}'>
</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>$html</td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><b>{$ibforums->lang['delete_old']}</b></td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>
<select name='leave' class='forminput'>
<option value='leave_full' selected>{$ibforums->lang['leave_locked']}
<option value='leave_empty'>{$ibforums->lang['leave_empty']}
<option value='delete'>{$ibforums->lang['dont_leave']}
</select>
</td>
</tr>
</table>
</td>
</tr>
EOF;
}
function read_post($data) {
global $ibforums;
return <<<EOF
<table cellspacing='1' cellpadding='0' border='0' width='100%' align='center' bgcolor='{$ibforums->skin['TABLE_BORDER_COL']}'>
<tr>
<td>
<table cellspacing='1' cellpadding='4' border='0' width='100%' align='center'>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$data[POST]}</td>
</tr>
</table>
</td>
</tr>
</table>
EOF;
}
function forum_splash($data) {
global $ibforums;
return <<<EOF
<tr>
<td><b>{$ibforums->lang['f_moderate']} {$data[FORUM_NAME]}</b><br>{$ibforums->lang['f_moderate_t']}</td>
</tr>
<tr>
<td>
<table cellspacing='1' cellpadding='0' border='0' width='95%' align='center' bgcolor='{$ibforums->skin['TABLE_BORDER_COL']}'>
<tr>
<td>
<table cellspacing='1' cellpadding='4' border='0' width='100%' align='center'>
EOF;
}
function show_open_results($data) {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>
<b>{$ibforums->lang['a_topic_results']}</b><hr noshade size=1 color='{$ibforums->skin['TABLE_BORDER_COL']}'>
{$ibforums->lang['a_topic_open']} {$data[open]}<br><br>
{$ibforums->lang['a_topic_close']} {$data[closed]}<br><br>
</td>
</tr>
EOF;
}
function render_topic_title($data) {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='2'>{$ibforums->lang['ss_topic_title']} <b>{$data[TOPIC_TITLE]}</b></td>
</tr>
EOF;
}
function render_forum($data) {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor="{$ibforums->skin['FORUM_COL_TWO']}"><span id="linkthru"><b><a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f={$data[FORUM_ID]}">{$data[FORUM_NAME]}</a></b></span><br>{$ibforums->lang['topic_to_mod']}&nbsp;<b>{$data[TOPICS_NOT_APPROVED]}</b></td>
<td bgcolor="{$ibforums->skin['FORUM_COL_ONE']}" align='center' valign='middle'>{$data[FORUM_TOPICS]}</td>
<td bgcolor="{$ibforums->skin['FORUM_COL_ONE']}" align='center' valign='middle' id='highlight'>{$data[FORUM_POSTS]}</td>
<td bgcolor="{$ibforums->skin['FORUM_COL_ONE']}" align="left" valign='middle'><span id='highlight'>{$data[FORUM_LAST_POST]}</span>
</tr>
EOF;
}
function render_newtopic($data) {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='2'>{$ibforums->lang['ss_topic_title']} <b>{$data[TOPIC]}->{'TOPIC_TITLE'}</b></td>
</tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='middle'><input type='hidden' name='R_POST_{$data[TOPIC]}->{'TOPIC_ID'}' value='{$data[POST]}->{'POST_ID'}'><input type='hidden' name='POST_{$data[TOPIC]}->{'TOPIC_ID'}' value='{$data[POST]}->{'ID'}'><select name='CHOICE_{$data[TOPIC]}->{'TOPIC_ID'}' class='forminput'><option value='APPROVE' selected>{$ibforums->lang['c_approve']}</option>{$data[TOPIC]}->{'DELETE'}<option value='LEAVE' selected>{$ibforums->lang['c_leave']}</option></select></td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='top'>
<table cellspacing='1' cellpadding='4' border='0' width='100%' align='center'>
<tr>
<td valign='top' width='15%'><a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Profile&CODE=03&MID={$data[TOPIC]}->{'TOPIC_STARTER'}" target='_blank'><b>{$data[TOPIC]}->{'TOPIC_STARTER_N'}</b></a></td>
<td valign='top' width='85%'><b>{$ibforums->lang['ss_posted_on']}</b> {$data[TOPIC]}->{'TOPIC_START_DATE'}<hr noshade size=1 color='{$ibforums->skin['TABLE_BORDER_COL']}'>{$data[POST]}->{'POST'} ( <a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Profile&CODE=03&MID={$data[TOPIC]}->{'{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f=$iB::IN{'f'}&CODE=readpost&ID={$data[POST]}->{'ID'}','ViewPost','400','200','0','1','1','1')">{$ibforums->lang['ss_read_more']}</a> )</td>
</tr>
</table>
</td>
</tr>
EOF;
}
function topic_form() {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' colspan='2'>
<i>{$ibforums->lang['define_search']}</i>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='theForm'>
<input type='hidden' name='act' value='ModCP'>
<input type='hidden' name='CODE' value='topic_search'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='f' value='$iB::IN{'f'}'>
</td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_topics_cutoff']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='DAYS' size='5' maxlength='10' class='forminput'></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_sort']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><select name='ORDER' class='forminput'><option value='asc'>{$ibforums->lang['s_topics_asc']}</option><option value='desc' selected>{$ibforums->lang['s_topics_desc']}</option></select></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_limit']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='LIMIT' size='5' maxlength='10' class='forminput'></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='2' align='center'><input type='submit' name='TOPICS' class='forminput' value='{$ibforums->lang['submit_topics']}'></form></td>
</tr>
EOF;
}
function render_opentopic($data) {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='middle'>{$data[SELECT]}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><span id="linkthru"><a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$data[FORUM_ID]}&t={$data[TOPIC_ID]}" target='_blank'>{$data[TOPIC_TITLE]}</a></span><br>{$data[TOPIC_DESC]}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' align='center' valign='middle'>{$data[TOPIC_POSTS]}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><span id='highlight'>{$data[TOPIC_LAST_DATE]}</span><br>{$ibforums->lang['st_by']} {$data[LAST_POSTER]}</td>
</tr>
EOF;
}
function post_form() {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' colspan='2'>
<i>{$ibforums->lang['define_search']}</i>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='theForm'>
<input type='hidden' name='act' value='ModCP'>
<input type='hidden' name='CODE' value='post_search'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='f' value='$iB::IN{'f'}'>
</td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_posts_cutoff']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='DAYS' size='5' maxlength='10' class='forminput'></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_sort']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><select name='ORDER' class='forminput'><option value='asc'>{$ibforums->lang['s_topics_asc']}</option><option value='desc' selected>{$ibforums->lang['s_topics_desc']}</option></select></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_limit']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='LIMIT' size='5' maxlength='10' class='forminput'></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='2' align='center'><input type='submit' name='POSTS' value='{$ibforums->lang['submit_posts']}' class='forminput'></form></td>
</tr>
EOF;
}
function startcp() {
global $ibforums;
return <<<EOF
<script langauge="javascript">
<!--
function check_prune() {
var message = "{$ibforums->lang['prune_confirm']} "+document.theForm.DAYS.value+"\\n{$ibforums->lang['prune_confirm_b']}";
if ( confirm( message ) ) {
document.theForm.submit();
} else {
return false;
}
}
function PopUp(url, name, width,height,center,resize,scroll,posleft,postop) {
if (posleft != 0) { x = posleft }
if (postop != 0) { y = postop }
if (!scroll) { scroll = 1 }
if (!resize) { resize = 1 }
if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {
X = (screen.width - width ) / 2;
Y = (screen.height - height) / 2;
}
if (scroll != 0) { scroll = 1 }
var Win = window.open( url, name, 'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no');
}
//-->
</script>
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['TABLE_WIDTH']}' bgcolor='{$ibforums->skin['TABLE_BORDER_COL']}' align='center'>
<tr>
<td width='20%' bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='top'>
<table cellspacing='0' cellpadding='4' border='0' width='100%' align='center'>
<tr>
<td bgcolor='{$ibforums->skin['TITLEBACK']}' valign='left' id='titlelarge'>{$ibforums->lang['menu']}</td>
</tr>
<!--menu goes here-->
</table>
</td>
<td width='80%' bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='top'>
<table cellspacing='0' cellpadding='4' border='0' width='100%' align='center'>
<tr>
<td bgcolor='{$ibforums->skin['TITLEBACK']}' valign='left' id='titlelarge'>{$ibforums->lang['display']}</td>
</tr>
<!--main content-->
EOF;
}
function show_delete_results($data) {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>
<b>{$ibforums->lang['a_topic_results']}</b><hr noshade size=1 color='{$ibforums->skin['TABLE_BORDER_COL']}'>
{$ibforums->lang['a_topic_d_delete']} {$data[delete]}<br><br>
</td>
</tr>
EOF;
}
function search_footer() {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='2' align='center'><input type='submit' value='{$ibforums->lang['process_records']}' class='forminput'></td>
</tr>
</table>
</td>
</tr>
</table>
EOF;
}
function topic_form_header($count) {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium' colspan='2'>{$ibforums->lang['q_topics']} $count</td>
</tr>
EOF;
}
function offline_menu() {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><b>{$ibforums->lang['menu_off']}</b></td>
</tr>
EOF;
}
function end_main_splash() {
global $ibforums;
return <<<EOF
</table>
</td>
</tr>
</table>
EOF;
}
}
?>
+101
View File
@@ -0,0 +1,101 @@
<?php
class ReportView {
function body() {
global $ibforums;
return <<<EOF
<tr><!--test-->
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='top'>{$ibforums->lang['message']}<br><br><span style='font-size:12px;color:red;font-weight:bold'>{$ibforums->lang['warn']}</span></td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><textarea cols='60' rows='12' wrap='soft' name='Post' tabindex='3' class='textinput'></textarea></td>
</tr>
EOF;
}
function foot() {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' align='center' colspan='2'>
<input type="submit" value="{$ibforums->lang['send']}" class='forminput'>
</tr>
</table>
</td>
</tr>
</table>
</form>
EOF;
}
function header($data) {
global $ibforums;
return <<<EOF
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}" method="post" name='REPLIER'>
<input type='hidden' name='act' value='Report'>
<input type='hidden' name='SEND' value='1'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='f' value='$iB::IN{'f'}'>
<input type='hidden' name='t' value='$iB::IN{'t'}'>
<input type='hidden' name='p' value='$iB::IN{'p'}'>
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['TABLE_WIDTH']}' bgcolor='{$ibforums->skin['TABLE_BORDER_COL']}' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td bgcolor='{$ibforums->skin['TITLEBACK']}' align='left' colspan='2' id='titlemedium'>{$ibforums->lang['title']}</td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' align='left' width='20%' valign='top'><b>{$ibforums->lang['in_forum']}</b></td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' width='80%'><b>{$data[FORUM]}->{'FORUM_NAME'}</b></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' align='left' width='20%' valign='top'><b>{$ibforums->lang['in_topic']}</b></td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' width='80%'><b>{$data[TOPIC]}->{'TOPIC_TITLE'}</b></td>
</tr>
EOF;
}
function sent_screen($member_name) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['TABLE_WIDTH']}' bgcolor='{$ibforums->skin['TABLE_BORDER_COL']}' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='0' border='0' width='100%'>
<tr>
<td bgcolor='{$ibforums->skin['TITLEBACK']}' colspan='2' id='titlelarge'><b>{$ibforums->lang['email_sent']}</b></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' colspan='2' id='usermenu'><img src='{$ibforums->vars['html_url']}/images/cp_redtri.gif' border='0' height='15' width='15' align='middle' alt=''> <b>{$ibforums->lang['email_sent']}</b></td>
</tr>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='middle'><img src='{$ibforums->vars['html_url']}/images/msg_sent.gif' border='0' height='32' width='32' alt=''></td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='middle'><b>{$ibforums->lang['email_sent_txt']} $member_name</td>
</tr>
</table>
</td>
</tr>
</table>
EOF;
}
function guest() {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' align='left' width='20%' valign='top'><b>{$ibforums->lang['name']}</b></td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' width='80%'><input type='text' name='name' value='' size='50' maxlength='50' class='forminput'></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' align='left' width='20%' valign='top'><b>{$ibforums->lang['email']}</b></td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' width='80%'><input type='text' name='email' value='' size='50' maxlength='50' class='forminput'></td>
</tr>
EOF;
}
}
?>
+201
View File
@@ -0,0 +1,201 @@
<?php
class skin_boards {
function stats_header() {
global $ibforums;
return <<<EOF
<!-- Board Stats -->
<br>
<table cellpadding='2' width='{$ibforums->skin['tbl_width']}' align='center' id='solidborder'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' border='0' width='100%' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td id='titlemedium' colspan='2'>{$ibforums->lang['board_stats']}</td>
</tr>
EOF;
}
function ActiveUsers($active) {
global $ibforums;
return <<<EOF
<tr>
<td id='category' colspan='2'>$active[TOTAL] {$ibforums->lang['active_users']}</td>
</tr>
<tr>
<td width="5%" id='forum1'>{$ibforums->skin['F_ACTIVE']}</td>
<td id='forum2' width='95%'><b>{$active[GUESTS]}</b> {$ibforums->lang['guests']}, <b>$active[MEMBERS]</b> {$ibforums->lang['public_members']} <b>$active[ANON]</b> {$ibforums->lang['anon_members']} {$active[LINK]}<br>{$active[NAMES]}</td>
</tr>
EOF;
}
function ShowStats($text) {
global $ibforums;
return <<<EOF
<tr>
<td id='category' colspan='2'>{$ibforums->lang['board_stats']}</td>
</tr>
<tr>
<td id='forum1' width='5%' valign='middle'>{$ibforums->skin['F_STATS']}</td>
<td id='forum2' width="95%" align='left'>$text<br>{$ibforums->lang['most_online']}</td>
</tr>
EOF;
}
function birthdays($birthusers="", $total="", $birth_lang="") {
global $ibforums;
return <<<EOF
<tr>
<td id='category' colspan='2'>{$ibforums->lang['birthday_header']}</td>
</tr>
<tr>
<td id='forum1' width='5%' valign='middle'>{$ibforums->skin['F_ACTIVE']}</td>
<td id='forum2' width='95%'><b>$total</b> $birth_lang<br>$birthusers</td>
</tr>
EOF;
}
function stats_footer() {
global $ibforums;
return <<<EOF
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- Board Stats -->
EOF;
}
function BoardInformation() {
global $ibforums;
return <<<EOF
<br>
<table cellspacing='4' cellpadding='0' width='70%' border='0' align='center'>
<tr>
<td align='center'>[ <a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Login&CODE=06">{$ibforums->lang['d_delete_cookies']}</a> ] :: [ <a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Login&CODE=05">{$ibforums->lang['d_post_read']}</a> ]</td>
</tr>
</table>
EOF;
}
function CatHeader_Expanded($Data) {
global $ibforums;
return <<<EOF
<table width="{$ibforums->skin['tbl_width']}" align="center" border="0" cellspacing="1" cellpadding="0" bgcolor="{$ibforums->skin['tbl_border']}">
<tr>
<td id='maintitleback' background='{$ibforums->vars['img_url']}/tile_back.gif'>
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td>{$ibforums->skin['CAT_IMG']}</td>
<td width="100%" id="maintitle"><a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&c={$Data['id']}">{$Data['name']}</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td id='mainbg'>
<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td align="center" nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'><img src="{$ibforums->vars['img_url']}/spacer.gif" alt="" width="28" height="1"></td>
<td width="59%" nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['cat_name']}</td>
<td align="center" width="7%" nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['topics']}</td>
<td align="center" width="7%" nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['replies']}</td>
<td width="27%" nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['last_post_info']}</td>
</tr>
EOF;
}
function subheader() {
global $ibforums;
return <<<EOF
<table width="{$ibforums->skin['tbl_width']}" align="center" border="0" cellspacing="1" cellpadding="0" bgcolor="{$ibforums->skin['tbl_border']}">
<tr>
<td id='mainbg'>
<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td align="center" nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'><img src="{$ibforums->vars['img_url']}/spacer.gif" alt="" width="28" height="1"></td>
<td width="59%" nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['cat_name']}</td>
<td align="center" width="7%" nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['topics']}</td>
<td align="center" width="7%" nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['replies']}</td>
<td width="27%" nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['last_post_info']}</td>
</tr>
EOF;
}
function end_this_cat() {
global $ibforums;
return <<<EOF
<tr>
<td id='mainfoot' colspan="5">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
EOF;
}
function end_all_cats() {
global $ibforums;
return <<<EOF
<!--</table>
</td>
</tr>
</table>-->
EOF;
}
function newslink( $fid="", $title="", $tid="" ) {
global $ibforums;
return <<<EOF
<b>{$ibforums->vars['board_name']} {$ibforums->lang['newslink']} <a href='{$ibforums->base_url}&act=ST&f=$fid&t=$tid'>$title</a></b><br>
EOF;
}
function PageTop($lastvisit) {
global $ibforums;
return <<<EOF
<table cellpadding='4' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
<tr>
<td align='left' valign='bottom'><!-- IBF.NEWSLINK -->{$ibforums->lang['welcome_back_text']} $lastvisit</td>
<td align='right' valign='bottom'>
<a href='{$ibforums->base_url}&act=Stats&CODE=leaders'>{$ibforums->lang['sm_forum_leaders']}</a> |
<a href='{$ibforums->base_url}&act=Search&CODE=getactive'>{$ibforums->lang['sm_todays_posts']}</a><br>
<a href='{$ibforums->base_url}&act=Stats'>{$ibforums->lang['sm_today_posters']}</a> |
<a href='{$ibforums->base_url}&act=Members&max_results=10&sort_key=posts&sort_order=desc'>{$ibforums->lang['sm_all_posters']}</a>
</td>
</tr>
</table>
EOF;
}
function ForumRow($info) {
global $ibforums;
return <<<EOF
<!-- Forum {$info['id']} entry -->
<tr>
<td id="forum2" align="center">{$info['img_new_post']}</td>
<td id="forum2" width="59%"><span id="linkthru"><b><a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=SF&f={$info['id']}">{$info['name']}</a></b></span><br><span id='desc'>{$info['description']}</span><br>{$info['moderator']}</td>
<td id="forum1" align="center" width="7%">{$info['topics']}</td>
<td id="forum1" align="center" width="7%">{$info['posts']}</td>
<td id="forum1" width="27%">{$info['last_post']}<br>{$ibforums->lang['in']}: {$info['last_topic']}<br>{$ibforums->lang['by']}: {$info['last_poster']}</td>
</tr>
<!-- End of Forum {$info['id']} entry -->
EOF;
}
}
?>
+214
View File
@@ -0,0 +1,214 @@
<?php
class skin_emails {
function icq_body($data) {
global $ibforums;
return <<<EOF
<form action="http://msg.mirabilis.com/scripts/WWPMsg.dll" METHOD="POST" name="frmPager">
<INPUT TYPE="hidden" NAME="subject" VALUE="From WebPager Panel">
<input type="hidden" name="to" value="{$data[UIN]}">
<tr>
<td id='row2'' align='left'><b>{$ibforums->lang['name']}</b></td>
<td id='row2'' align='left'><input type='text' name='from' value='{$ibforums->member['name']}' size='40' class='forminput' onMouseOver="this.focus()" onFocus="this.select()"></td>
</tr>
<tr>
<td id='row2'' align='left'><b>{$ibforums->lang['email']}</b></td>
<td id='row2'' align='left'><input type='text' name='fromemail' value='{$ibforums->member['email']}' size='40' class='forminput' onMouseOver="this.focus()" onFocus="this.select()"></td>
</tr>
<tr>
<td id='row2'' align='left' valign='top'><b>{$ibforums->lang['msg']}</b></td>
<td id='row2'' align='left'><textarea wrap='virtual' cols='50' rows='12' wrap='soft' name='body' class='textinput' onMouseOver="this.focus()" onFocus="this.select()"></textarea></td>
</tr>
<tr>
<td id='row2'' align='center' colspan='2'><input type='submit' value='{$ibforums->lang['submit']}' class='forminput'></td>
</tr>
</form>
EOF;
}
function end_table() {
global $ibforums;
return <<<EOF
<!-- End content Table -->
</table>
</td>
</tr>
<tr>
<td id='category' colspan='2'>&nbsp;</td>
</tr>
</table>
EOF;
}
function pager_header($data) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' width='100%' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='0' border='0' width='100%'>
<tr>
<td colspan='2' align='center' id='titlemedium'>{$data[TITLE]}</td>
EOF;
}
function aol_body($data) {
global $ibforums;
return <<<EOF
<!-- Begin AIM Remote -->
<table width='140' align='center'>
<tr align='right'><td><a href="http://www.aol.co.uk/aim/index.html"><img src="http://www.aol.co.uk/aim/remote/gr/aimver_man.gif" width=44 height=55 border=0 alt="Download AIM"></a><img src="http://www.aol.co.uk/aim/remote/gr/aimver_topsm.gif" width=73 height=55 border=0 alt="AIM Remote"><br><a href="aim:goim?screenname={$data['AOLNAME']}&message=Hi.+Are+you+there?"><img src="http://www.aol.co.uk/aim/remote/gr/aimver_im.gif" width=117 height=39 border=0 alt="Send me an Instant Message"></a><br><a href="aim:addbuddy?screenname={$data['AOLNAME']}"><img src="http://www.aol.co.uk/aim/remote/gr/aimver_bud.gif" width=117 height=39 border=0 alt="Add me to Your Buddy List"></a><br><a href="http://www.aol.co.uk/aim/remote.html"><img src="http://www.aol.co.uk/aim/remote/gr/aimver_botadd.gif" width=117 height=23 border=0 alt="Add Remote to Your Page"></a><br><a href="http://www.aol.co.uk/aim/index.html"><img src="http://www.aol.co.uk/aim/remote/gr/aimver_botdow.gif" width=117 height=29 border=0 alt="Download AOL Instant Messenger"></a><br><br></td></tr></table>
<!-- End AIM Remote -->
EOF;
}
function forward_form($title, $text, $lang) {
global $ibforums;
return <<<EOF
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}" method="post" name='REPLIER'>
<input type='hidden' name='act' value='Forward'>
<input type='hidden' name='CODE' value='01'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='st' value='{$ibforums->input['st']}'>
<input type='hidden' name='f' value='{$ibforums->input['f']}'>
<input type='hidden' name='t' value='{$ibforums->input['t']}'>
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' colspan='2' id='titlemedium'>{$ibforums->lang['title']}</td>
</tr>
<tr>
<td id='row1' align='left' width='30%' valign='top'><b>{$ibforums->lang['send_lang']}</b></td>
<td id='row1' width='80%'>$lang</td>
</tr>
<tr>
<td id='row1' align='left' width='30%' valign='top'><b>{$ibforums->lang['to_name']}</b></td>
<td id='row1' width='80%'><input type='text' class='forminput' name='to_name' value='' size='30' maxlength='100'></td>
</tr>
<tr>
<td id='row1' align='left' width='30%' valign='top'><b>{$ibforums->lang['to_email']}</b></td>
<td id='row1' width='80%'><input type='text' class='forminput' name='to_email' value='' size='30' maxlength='100'></td>
</tr>
<tr>
<td id='row1' align='left' width='30%' valign='top'><b>{$ibforums->lang['subject']}</b></td>
<td id='row1' width='80%'><input type='text' class='forminput' name='subject' value='{$title}' size='30' maxlength='120'></td>
</tr>
<tr>
<td id='row1' align='left' width='30%' valign='top'><b>{$ibforums->lang['message']}</b></td>
<td id='row1' width='80%'><textarea cols='60' rows='12' wrap='soft' name='message' class='textinput'>{$text}</textarea>
</td>
</tr>
<tr>
<td id='row2' align='center' colspan='2'>
<input type="submit" value="{$ibforums->lang['submit_send']}" class='forminput'>
</tr>
</table>
</td>
</tr>
</table>
</form>
EOF;
}
function show_address($data) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='0' border='0' width='100%'>
<tr>
<td id='titlemedium'><b>{$ibforums->lang['send_email_to']} {$data[NAME]}</b></td>
</tr>
<tr>
<td id='row1'>{$ibforums->lang['show_address_text']}</td>
</tr>
<td id='row1'>&gt;&gt;<b><a href="mailto:{$data[ADDRESS]}" class='misc'>{$ibforums->lang['send_email_to']} {$data[NAME]}</a></b></td>
</tr>
</table>
</td>
</tr>
</table>
EOF;
}
function send_form($data) {
global $ibforums;
return <<<EOF
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}" method="post" name='REPLIER'>
<input type='hidden' name='act' value='Mail'>
<input type='hidden' name='CODE' value='01'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='to' value='{$data[TO]}'>
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td align='left' colspan='2' id='titlemedium'>{$ibforums->lang['send_title']}</td>
</tr>
<tr>
<td id='row1' colspan='2' id='usermenu'><b>{$ibforums->lang['send_email_to']} {$data[NAME]}</b></td>
</tr>
<tr>
<td id='row1' align='left' width='20%' valign='top'><b>{$ibforums->lang['subject']}</b></td>
<td id='row1' width='80%'><input type='text' name='subject' value='' size='50' maxlength='50' class='forminput'>
</td>
</tr>
<tr>
<td id='row1' align='left' width='20%' valign='top'><b>{$ibforums->lang['message']}</b><br><br>{$ibforums->lang['msg_txt']}</td>
<td id='row1' width='80%'><textarea cols='60' rows='12' wrap='soft' name='message' class='textinput'></textarea>
</td>
</tr>
<tr>
<td id='row2' align='center' colspan='2'>
<input type="submit" value="{$ibforums->lang['submit_send']}" class='forminput'>
</tr>
</table>
</td>
</tr>
</table>
</form>
EOF;
}
function sent_screen($member_name) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='0' border='0' width='100%'>
<tr>
<td id='titlemedium'><b>{$ibforums->lang['email_sent']}</b></td>
</tr>
</tr>
<tr>
<td id='row1' valign='middle'><b>{$ibforums->lang['email_sent_txt']} $member_name</td>
</tr>
</table>
</td>
</tr>
</table>
EOF;
}
function forum_jump($data) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
<tr>
<td align='right'>$data</td>
</tr>
</table>
EOF;
}
}
?>
+280
View File
@@ -0,0 +1,280 @@
<?php
class skin_forum {
function Forum_log_in($Data) {
global $ibforums;
return <<<EOF
<form action='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id};act=SF&f=$Data' method='post'>
<input type='hidden' name='act' value='SF'>
<input type='hidden' name='f' value='$Data'>
<input type='hidden' name='L' value='1'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='0' border='0' width='100%'>
<tr>
<td align='left' colspan='2' id='titlemedium'>{$ibforums->lang['need_password']}</td>
</tr>
<tr>
<td id='row1' colspan='2'>{$ibforums->lang['need_password_txt']}</td>
</tr>
<tr>
<td id='row1' width='40%'><b>{$ibforums->lang['enter_pass']}</b></td>
<td id='row1'><input type='password' size='20' name='f_password'></td>
</tr>
<tr>
<td id='row2' align='center' colspan='2'><input type='submit' value='{$ibforums->lang['f_pass_submit']}' class='forminput'></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
EOF;
}
function Mod_Panel($data) {
global $ibforums;
return <<<EOF
<br>
<table cellpadding='3' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
<tr>
<td align='center'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f=$data'>{$ibforums->lang['mod_cp']}</a></td>
</tr>
</table>
EOF;
}
function show_rules_full($rules) {
global $ibforums;
return <<<EOF
<!-- Show FAQ/Forum Rules -->
<br>
<table cellpadding='4' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
<tr>
<td align='left' ><b>{$rules['title']}</b><br><br>{$rules['body']}</td>
</tr>
</table>
<br>
<!-- End FAQ/Forum Rules -->
EOF;
}
function show_rules_link($rules) {
global $ibforums;
return <<<EOF
<!-- Show FAQ/Forum Rules -->
<br>
<table cellpadding='4' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
<tr>
<td align='left' valign='middle'><b>&gt;&gt;<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=SR&f={$rules['fid']}'>{$rules['title']}</a></b></td>
</tr>
</table>
<br>
<!-- End FAQ/Forum Rules -->
EOF;
}
function TableEnd($Data) {
global $ibforums;
return <<<EOF
</table>
</td>
</tr>
<tr>
<td id='mainbg'>
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
<tr>
<td id='titlefoot' width='100%' align='center'>
<table border='0' cellspacing='0' cellpadding='0'>
<tr>
<td>{$ibforums->lang['showing_text']}{$ibforums->lang['sort_text']}</td>
<td>&nbsp;<input type='submit' value='{$ibforums->lang['sort_submit']}' class='forminput'></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</form>
</tr>
</table>
<table width='{$ibforums->skin['tbl_width']}' border='0' cellspacing='0' cellpadding='4' align='center'>
<tr>
<td width='100%'>{$Data[SHOW_PAGES]}</td>
<td align='right' nowrap><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Post&CODE=00&f={$Data['id']}'>{$ibforums->skin['A_POST']}</a>{$Data[POLL_BUTTON]}</td>
</tr>
</table>
<table width='{$ibforums->skin['tbl_width']}' border='0' cellspacing='0' cellpadding='3' align='center'>
<tr>
<td>{$ibforums->skin['B_NEW']}</td>
<td nowrap>{$ibforums->lang['pm_open_new']}&nbsp;</td>
<td>{$ibforums->skin['B_POLL']}</td>
<td nowrap>{$ibforums->lang['pm_poll']}&nbsp;</td>
<td width='100%' rowspan='4' align='right'>
<table border='0' cellspacing='0' cellpadding='0'>
<tr>
<form action='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}' name='search'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='forums' value='{$Data['id']}'>
<input type='hidden' name='cat_forum' value='forum'>
<input type='hidden' name='act' value='Search'>
<input type='hidden' name='CODE' value='01'>
<td>{$ibforums->lang['search_forum']}&nbsp;</td>
<td nowrap><input type='text' size='30' name='keywords' class='forminput' value='{$ibforums->lang['enter_keywords']}' onFocus='this.value = "";'> <input type='submit' value='{$ibforums->lang['search_go']}' class='forminput'></td>
</form>
</tr>
</table>
<br>
{$Data[FORUM_JUMP]}
</td>
</tr>
<tr>
<td>{$ibforums->skin['B_NORM']}</td>
<td nowrap>{$ibforums->lang['pm_open_no']}&nbsp;</td>
<td>{$ibforums->skin['B_POLL_NN']}</td>
<td nowrap>{$ibforums->lang['pm_poll_no']}&nbsp;</td>
</tr>
<tr>
<td>{$ibforums->skin['B_HOT']}</td>
<td nowrap>{$ibforums->lang['pm_hot_new']}&nbsp;</td>
<td>{$ibforums->skin['B_LOCKED']}</td>
<td nowrap>{$ibforums->lang['pm_locked']}&nbsp;</td>
</tr>
<tr>
<td>{$ibforums->skin['B_HOT_NN']}</td>
<td nowrap>{$ibforums->lang['pm_hot_no']}&nbsp;</td>
<td>{$ibforums->skin['B_MOVED']}</td>
<td nowrap>{$ibforums->lang['pm_moved']}&nbsp;</td>
</tr>
</table>
EOF;
}
function show_rules($rules) {
global $ibforums;
return <<<EOF
<!-- Show Forum FAQ/Rules -->
<br>
<table cellpadding='4' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' id='titlemedium'>{$rules['title']}</td>
</tr>
<tr>
<td id='row1'>{$rules['body']}</td>
</tr>
<tr>
<td id='titlemedium' align='center'>&gt;&gt;<a href='{$ibforums->base_url}&act=SF&f={$rules['fid']}'>{$ibforums->lang['back_to_forum']}</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<!-- End Forum FAQ/Rules -->
EOF;
}
function page_title($title="", $pages="") {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
<tr>
<td><span id='pagetitle'>$title</span>$pages</td>
</tr>
</table>
EOF;
}
function PageTop($info) {
global $ibforums;
return <<<EOF
<!-- Forum page unique top -->
<table width='{$ibforums->skin['tbl_width']}' border='0' cellspacing='0' cellpadding='4' align='center'>
<tr>
<td width='100%'>{$info['SHOW_PAGES']}</td>
<td align='right' nowrap><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Post&CODE=00&f={$info['id']}'>{$ibforums->skin['A_POST']}</a>{$info[POLL_BUTTON]}</td>
</tr>
</table>
<table width='{$ibforums->skin['tbl_width']}' align='center' border='0' cellspacing='1' cellpadding='0' bgcolor='{$ibforums->skin['tbl_border']}'>
<tr>
<form action='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}' method='POST'>
<td background='{$ibforums->vars['img_url']}/tile_back.gif' id='maintitleback'>
<table width='100%' border='0' cellspacing='0' cellpadding='3'>
<tr>
<td><img src='{$ibforums->vars['img_url']}/nav_m.gif' alt='' width='8' height='8'></td>
<td width='100%' id='maintitle'>{$info['name']}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td id='mainbg'>
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
<tr>
<td align='center' nowrap background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium'>
<!-- Tuck away hidden form elements -->
<input type='hidden' name='act' value='SF'>
<input type='hidden' name='f' value='{$info['id']}'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='st' value='{$ibforums->input['st']}'>
<!-- End of tucking :D -->
<img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='20' height='1'></td>
<td align='center' nowrap background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium'><img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='20' height='1'></td>
<td width='45%' nowrap background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium'>{$ibforums->lang['h_topic_title']}&nbsp;( <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Login&CODE=04&f={$info['id']}'>{$ibforums->lang['mark_as_read']}</a> )</td>
<td width='14%' align='center' nowrap background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium'>{$ibforums->lang['h_topic_starter']}</td>
<td width='7%' align='center' nowrap background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium'>{$ibforums->lang['h_replies']}</td>
<td width='7%' align='center' nowrap background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium'>{$ibforums->lang['h_hits']}</td>
<td width='27%' nowrap background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium'>{$ibforums->lang['h_last_action']}</td>
</tr>
<!-- Forum page unique top -->
EOF;
}
function show_no_matches() {
global $ibforums;
return <<<EOF
<tr>
<td id='forum2' colspan='7' align='center'>
<br>
<b>{$ibforums->lang['no_topics']}</b>
<br><br>
</td>
</tr>
EOF;
}
function RenderRow($Data) {
global $ibforums;
return <<<EOF
<!-- Begin Topic Entry {$Data['tid']} -->
<tr>
<td align='center' id='forum2'>{$Data['folder_img']}</td>
<td align='center' id='forum1'>{$Data['topic_icon']}</td>
<td id='forum2'>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td valign='middle'>{$Data['go_new_post']}</td>
<td width='100%'><span id='linkthru'>{$Data['prefix']} <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?act=ST&f={$Data['forum_id']}&t={$Data['tid']}&s={$ibforums->session_id}' id='linkthru' title='{$ibforums->lang['topic_started_on']} {$Data['start_date']}'>{$Data['title']}</a></span> {$Data[PAGES]}</td>
</tr>
</table>
<span id='desc'>{$Data['description']}</span></td>
<td align='center' id='forum1'>{$Data['starter']}</td>
<td align='center' id='forum2'>{$Data['posts']}</td>
<td align='center' id='forum1'>{$Data['views']}</td>
<td id='forum1'>{$Data['last_post']}<br><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$Data['forum_id']}&t={$Data['tid']}&view=getlastpost'>{$Data['last_text']}</a> <b>{$Data['last_poster']}</b></td>
</tr>
<!-- End Topic Entry {$Data['tid']} -->
EOF;
}
}
?>
+273
View File
@@ -0,0 +1,273 @@
<?php
class skin_global {
function Member_bar($msg) {
global $ibforums;
return <<<EOF
&nbsp;{$ibforums->lang['logged_in_as']} <b>{$ibforums->member['name']}</b> ( <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=UserCP&CODE=00'>{$ibforums->lang['your_cp']}</a> | <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Login&CODE=03'>{$ibforums->lang['log_out']}</a> | <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Msg&CODE=01'>{$msg[TEXT]}</a> )
EOF;
}
function BoardHeader($time="") {
global $ibforums;
return <<<EOF
<table width='{$ibforums->skin['tbl_width']}' border='0' align='center' cellpadding='0' cellspacing='1' bgcolor='{$ibforums->skin['tbl_border']}'>
<tr>
<td background='{$ibforums->vars['img_url']}/header_tile.gif'><img src='{$ibforums->vars['img_url']}/logo.jpg' alt='Powered by IBForums' border='0'></td>
</tr>
<tr>
<td id='alt1'>
<table width='100%' border='0' cellspacing='0' cellpadding='2'>
<tr>
<td width='100%'>
<% MEMBER BAR %>
</td>
<td nowrap valign='middle'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Search&f={$ibforums->input['f']}' style='text-decoration:none'><img src='{$ibforums->vars['img_url']}/icon_search.gif' title='Search' name='search' border='0' align='absmiddle'> Search</a> | <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Members' style='text-decoration:none'><img src='{$ibforums->vars['img_url']}/icon_members.gif' title='Members List' name='members' align='absmiddle' border='0'> Member List</a> | <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Help' style='text-decoration:none'><img src='{$ibforums->vars['img_url']}/icon_help.gif' title='Help Files' name='help' border='0' align='absmiddle'> Help</a></td>
</tr>
</table>
</td>
</tr>
</td>
</table>
<br>
EOF;
}
function start_nav() {
global $ibforums;
return <<<EOF
<table width='{$ibforums->skin['tbl_width']}' align='center' border="0" cellspacing="0" cellpadding="1">
<tr>
<td>{$ibforums->skin['F_NAV']}</td>
<td width="100%" id="nav">
EOF;
}
function end_nav() {
global $ibforums;
return <<<EOF
</td>
</tr>
</table>
EOF;
}
function Redirect($Text, $Url) {
global $ibforums;
return <<<EOF
<html>
<head>
<title>{$ibforums->lang['stand_by']}</title>
<meta http-equiv='refresh' content='2; url={$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}$Url'>
<link type='text/css' href='style_sheets/stylesheet_{$ibforums->skin['css_id']}.css' rel='stylesheet'>
</head>
<body id='mainbg'>
<table width='{$ibforums->skin['tbl_width']}' height='85%' align='center'>
<tr>
<td valign='middle'>
<table align='center' border="0" cellspacing="1" cellpadding="0" bgcolor="{$ibforums->skin['tbl_border']}">
<tr>
<td id='mainbg'>
<table width="100%" border="0" cellspacing="1" cellpadding="12">
<tr>
<td width="100%" align="center" id='alt1'>
{$ibforums->lang['thanks']},
$Text<br><br>
{$ibforums->lang['transfer_you']}<br><br>
(<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}$Url'>{$ibforums->lang['dont_wait']}</a>)</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
EOF;
}
function PM_popup() {
global $ibforums;
return <<<EOF
<script language='JavaScript'>
<!--
window.open('index.{$ibforums->vars['php_ext']}?act=Msg&CODE=99&s={$ibforums->session_id}','NewPM','width=500,height=250,resizable=yes,scrollbars=1');
//-->
</script>
EOF;
}
function Guest_bar() {
global $ibforums;
return <<<EOF
&nbsp;{$ibforums->lang['guest_stuff']} ( <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Login&CODE=00'>{$ibforums->lang['log_in']}</a> | <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Reg&CODE=00'>{$ibforums->lang['register']}</a> )
EOF;
}
function admin_link() {
global $ibforums;
return <<<EOF
( <b><a href='{$ibforums->vars['board_url']}/admin.{$ibforums->vars['php_ext']}' target='_blank'>{$ibforums->lang['admin_cp']}</a></b> )
EOF;
}
function error_log_in($q_string) {
global $ibforums;
return <<<EOF
<form action='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}' method='post'>
<input type='hidden' name='act' value='Login'>
<input type='hidden' name='CODE' value='01'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='referer' value='$q_string'>
<input type='hidden' name='CookieDate' value='1'>
<table cellpadding='0' cellspacing='0' border='0' width='80%' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td align='left' colspan='2' id='titlemedium'>{$ibforums->lang['er_log_in_title']}</td>
</tr>
<tr>
<td id='row1' width='40%'>{$ibforums->lang['erl_enter_name']}</td>
<td id='row1'><input type='text' size='20' maxlength='64' name='UserName' class='forminput'></td>
</tr>
<tr>
<td id='row1' width='40%'>{$ibforums->lang['erl_enter_pass']}</td>
<td id='row1'><input type='password' size='20' name='PassWord' class='forminput'></td>
</tr>
<tr>
<td id='row2' align='center' colspan='2'>
<input type='submit' name='submit' value='{$ibforums->lang['erl_log_in_submit']}' class='forminput'>
</td>
</table>
</td>
</tr>
</table>
</form>
EOF;
}
function board_offline($message = "") {
global $ibforums;
return <<<EOF
<table width='{$ibforums->skin['tbl_width']}' border='0' align='center' cellpadding='0' cellspacing='1' bgcolor='{$ibforums->skin['tbl_border']}'>
<tr>
<td background='{$ibforums->vars['img_url']}/tile_back.gif'>
<table width='100%' border='0' cellspacing='0' cellpadding='3'>
<tr>
<td><img src='{$ibforums->vars['img_url']}/nav_m.gif' alt='' width='8' height='8'></td>
<td width='100%' id='titlemedium'>{$ibforums->lang['offline_title']}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td id='mainbg'>
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
<tr>
<td colspan='2' valign='top' id='post1'> <p>$message</p></td>
</tr>
<tr>
<td colspan='2' valign='top' id='posthead'>{$ibforums->lang['offline_login']}</td>
</tr>
<tr>
<form action='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}' method='post'>
<input type='hidden' name='act' value='Login'>
<input type='hidden' name='CODE' value='01'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='referer' value=''>
<input type='hidden' name='CookieDate' value='1'>
<td id='alt1'>{$ibforums->lang['erl_enter_name']}<br><img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='180' height='1'></td>
<td width='100%' id='alt1'><input type='text' size='20' maxlength='64' name='UserName' class='forminput'></td>
</tr>
<tr>
<td id='alt1'>{$ibforums->lang['erl_enter_pass']}</td>
<td width='100%' id='alt1'><input type='password' size='20' name='PassWord' class='forminput'></td>
</tr>
<tr>
<td colspan='2' align='center' id='titlefoot'><input type='submit' name='submit' value='{$ibforums->lang['erl_log_in_submit']}' class='forminput'></td>
</form>
</tr>
</table></td>
</tr>
</table>
EOF;
}
function Error($message, $ad_email_one="", $ad_email_two="") {
global $ibforums;
return <<<EOF
<script language='javascript'>
<!--
function contact_admin() {
// Very basic spam bot stopper
admin_email_one = '$ad_email_one';
admin_email_two = '$ad_email_two';
window.location = 'mailto:'+admin_email_one+'@'+admin_email_two+'?subject=Error on the forums';
}
//-->
</script>
<table width='{$ibforums->skin['tbl_width']}' border='0' cellspacing='1' align='center' cellpadding='0' bgcolor='{$ibforums->skin['tbl_border']}'>
<tr>
<td id='maintitleback' background='{$ibforums->vars['img_url']}/tile_back.gif'>
<table width='100%' border='0' cellspacing='0' cellpadding='3'>
<tr>
<td><img src='{$ibforums->vars['img_url']}/nav_m.gif' alt='' width='8' height='8'></td>
<td width='100%' id='maintitle'><b>{$ibforums->lang['error_title']}</b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td id='mainbg'>
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
<tr>
<td id='alt1' valign='top'>
{$ibforums->lang['exp_text']}<br><br>
<b>{$ibforums->lang['msg_head']}</b>
<br><br>
<span id='alert'>$message</span>
<br><br>
<!-- IBF.LOG_IN_TABLE -->
<br><br>
<b>Useful Links:</b>
<br><br>
&#149; <a href='{$ibforums->base_url}&act=Reg&CODE=10'>{$ibforums->lang['er_lost_pass']}</a><br>
&#149; <a href='{$ibforums->base_url}&act=Reg&CODE=00'>{$ibforums->lang['er_register']}</a><br>
&#149; <a href='{$ibforums->base_url}&act=Help&CODE=00'>{$ibforums->lang['er_help_files']}</a><br>
&#149; <a href='javascript:contact_admin();'>{$ibforums->lang['er_contact_admin']}</a></p>
</td>
</tr>
<tr>
<td id='titlefoot' align='center'>&lt; <a href='javascript:history.go(-1)'>{$ibforums->lang['error_back']}</a></td>
</tr>
</table>
</td>
</tr>
</table>
EOF;
}
function Member_no_usepm_bar() {
global $ibforums;
return <<<EOF
&nbsp;{$ibforums->lang['logged_in_as']} <b>{$ibforums->member['name']}</b> ( <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=UserCP&CODE=00'>{$ibforums->lang['your_cp']}</a> | <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Login&CODE=03'>{$ibforums->lang['log_out']}</a> )
EOF;
}
}
?>
+89
View File
@@ -0,0 +1,89 @@
<?php
class skin_help {
function row($entry) {
global $ibforums;
return <<<EOF
<!-- Help Entry ID:{$entry[ID]} -->
<tr>
<td id='{$entry['CELL_COLOUR']}' style='height:28px'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?act=Help&s={$ibforums->session_id}&CODE=01&HID={$entry['id']}'><b>{$entry['title']}</b></a><br>{$entry['description']}</td>
</tr>
<!-- End Help Entry -->
EOF;
}
function display($text) {
global $ibforums;
return <<<EOF
<!-- Displaying Help Topic -->
<tr>
<td id='row1' colspan='2' id='postcolor'>$text</td>
</tr>
<!-- End Display -->
EOF;
}
function end() {
global $ibforums;
return <<<EOF
</table>
</td>
</tr>
</table>
EOF;
}
function no_results() {
global $ibforums;
return <<<EOF
<tr>
<td id='row1' colspan='2'><b>{$ibforums->lang['no_results']}</b></td>
</tr>
EOF;
}
function start($one_text, $two_text, $three_text) {
global $ibforums;
return <<<EOF
<table cellpadding=4 cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
<tr><td>$two_text</td></tr>
</table>
<table cellpadding=0 cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td align='left' colspan='2' id='titlemedium' background="{$ibforums->vars['img_url']}/tile_sub.gif">$one_text</td>
</tr>
<tr>
<td id='row1' colspan='2'>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?act=Help;s={$ibforums->session_id};CODE=02" method="post">
<input type='hidden' name='act' value='Help'>
<input type='hidden' name='CODE' value='02'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
{$ibforums->lang['search_txt']}&nbsp;&nbsp;<input type='text' maxlength='60' size='30' class='forminput' name='search_q'>&nbsp;<input type='submit' value='{$ibforums->lang['submit']}' class='forminput'>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table cellpadding=0 cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td colspan='2' id='titlemedium' background="{$ibforums->vars['img_url']}/tile_sub.gif"><b>$three_text</b></td>
</tr>
EOF;
}
}
?>
+73
View File
@@ -0,0 +1,73 @@
<?php
class skin_legends {
function emoticon_javascript()
{
return <<<EOF
<script language='javascript'>
<!--
function add_smilie(code)
{
opener.document.REPLIER.Post.value += ' ' + code + ' ';
//return true;
}
//-->
</script>
EOF;
}
function page_header( $title, $row1, $row2 ) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' width='100%' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
<tr>
<td colspan='4' id='titlemedium' align='center'>$title</td>
</tr>
<tr>
<td width='50%' align='center' id='category' valign='middle'>$row1</td>
<td width='50%' align='center' id='category' valign='middle'>$row2</td>
</tr>
EOF;
}
function emoticons_row($code, $image) {
global $ibforums;
return <<<EOF
<tr>
<td align='center' id='row1' valign='middle'><a href='javascript:add_smilie("$code")'>$code</a></td>
<td align='center' id='row2' valign='middle'><a href='javascript:add_smilie("$code")'><img src='{$ibforums->vars['EMOTICONS_URL']}/$image' border='0' valign='absmiddle' alt='$image'></a></td>
</tr>
EOF;
}
function page_footer() {
return <<<EOF
</table>
</td>
</tr>
</table>
EOF;
}
}
?>
+132
View File
@@ -0,0 +1,132 @@
<?php
class skin_login {
function ShowLogOutForm() {
global $ibforums;
return <<<EOF
<br>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}" method="post">
<input type='hidden' name='act' value='Login'>
<input type='hidden' name='CODE' value='03'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td bgcolor='{$ibforums->skin['TITLEBACK']}' valign='left' colspan='2' id='titlelarge'>{$ibforums->lang['log_out']}</td>
</tr>
<tr>
<td id='row1' colspan='2' valign='middle'><br>{$ibforums->lang['log_out_txt']}<br></td>
</tr>
<tr>
<td id='row2' align='center' colspan='2'>
<input type="submit" value="{$ibforums->lang['log_out_submit']}" class='forminput'>
</td></tr></table>
</td></tr></table>
</form>
EOF;
}
function errors($data) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
<tr>
<td id='row1' valign='top' align='left' id='highlight'><b>{$ibforums->lang['errors_found']}</b><hr noshade size='1' color='{$ibforums->skin['tbl_border']}'>$data</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
EOF;
}
function ShowForm($message) {
global $ibforums;
return <<<EOF
<script language='JavaScript'>
<!--
function ValidateForm() {
var Check = 0;
if (document.LOGIN.UserName.value == '') { Check = 1; }
if (document.LOGIN.PassWord.value == '') { Check = 1; }
if (Check == 1) {
alert("{$ibforums->lang['blank_fields']}");
return false;
} else {
document.LOGIN.submit.disabled = true;
return true;
}
}
//-->
</script>
<br>
<table cellpadding='3' cellspacing='1' border='0' align='center' width='{$ibforums->skin['tbl_width']}'>
<tr>
<td align='left'>{$ibforums->lang['login_text']}</td>
</tr>
<tr>
<td align='left'><b>{$ibforums->lang['forgot_pass']} <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?act=Reg&CODE=10'>{$ibforums->lang['pass_link']}</a></b></td>
</tr>
</table>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='LOGIN' onSubmit='return ValidateForm()'>
<input type='hidden' name='act' value='Login'>
<input type='hidden' name='CODE' value='01'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='referer' value="">
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td align='left' colspan='2' id='titlemedium'>$message</td>
</tr>
<tr>
<td id='row1' width='40%'>{$ibforums->lang['enter_name']}</td>
<td id='row1'><input type='text' size='20' maxlength='64' name='UserName' class='forminput'></td>
</tr>
<tr>
<td id='row1' width='40%'>{$ibforums->lang['enter_pass']}</td>
<td id='row1'><input type='password' size='20' name='PassWord' class='forminput'></td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_TITLE']}' align='left' colspan='2' id='titlemedium'>{$ibforums->lang['options']}</td>
</tr>
<tr>
<td id='row1' width='40%' align='left' valign='top'>{$ibforums->lang['cookies']}</td>
<td id='row1' width='40%'><input type="radio" name="CookieDate" value="1" checked>{$ibforums->lang['cookie_yes']}<br><input type="radio" name="CookieDate" value="0">{$ibforums->lang['cookie_no']}</td>
</tr>
<tr>
<td id='row1' width='40%' align='left' valign='top'>{$ibforums->lang['privacy']}</td>
<td id='row1' width='40%'><input type="checkbox" name="Privacy" value="1">{$ibforums->lang['anon_name']}</td>
</tr>
<tr>
<td id='row2' align='center' colspan='2'>
<input type="submit" name='submit' value="{$ibforums->lang['log_in_submit']}" class='forminput'>
</td></tr></table>
</td></tr></table>
</form>
EOF;
}
}
?>
+122
View File
@@ -0,0 +1,122 @@
<?php
class skin_mlist {
function Page_header($links) {
global $ibforums;
return <<<EOF
<script language='Javascript' type='text/javascript'>
<!--
function PopUp(url, name, width,height,center,resize,scroll,posleft,postop) {
if (posleft != 0) { x = posleft }
if (postop != 0) { y = postop }
if (!scroll) { scroll = 1 }
if (!resize) { resize = 1 }
if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {
X = (screen.width - width ) / 2;
Y = (screen.height - height) / 2;
}
if (scroll != 0) { scroll = 1 }
var Win = window.open( url, name, 'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no');
}
//-->
</script>
<table width="{$ibforums->skin['tbl_width']}" border="0" align='center' cellspacing="0" cellpadding="4">
<tr>
<td width="100%" height='38'>{$links[SHOW_PAGES]}</td>
</tr>
</table>
<table width="{$ibforums->skin['tbl_width']}" border="0" align='center' cellspacing="1" cellpadding="0" bgcolor="{$ibforums->skin['tbl_border']}">
<tr>
<td id='maintitleback' background='{$ibforums->vars['img_url']}/tile_back.gif'>
&nbsp;
</td>
</tr>
<tr>
<td id='mainbg'>
<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td nowrap background="{$ibforums->vars['img_url']}/tile_sub.gif" id='titlemedium' width="30%">{$ibforums->lang['member_name']}</td>
<td nowrap background="{$ibforums->vars['img_url']}/tile_sub.gif" id='titlemedium' align="center" width="20%">{$ibforums->lang['member_level']}</td>
<td nowrap background="{$ibforums->vars['img_url']}/tile_sub.gif" id='titlemedium' align="center" width="20%">{$ibforums->lang['member_group']}</td>
<td nowrap background="{$ibforums->vars['img_url']}/tile_sub.gif" id='titlemedium' align="center" width="20%">{$ibforums->lang['member_joined']}</td>
<td nowrap background="{$ibforums->vars['img_url']}/tile_sub.gif" id='titlemedium' align="center" width="10%">{$ibforums->lang['member_posts']}</td>
<td nowrap background="{$ibforums->vars['img_url']}/tile_sub.gif" id='titlemedium' align="center">{$ibforums->lang['member_email']}</td>
<td nowrap background="{$ibforums->vars['img_url']}/tile_sub.gif" id='titlemedium' align="center">{$ibforums->lang['member_aol']}</td>
<td nowrap background="{$ibforums->vars['img_url']}/tile_sub.gif" id='titlemedium' align="center">{$ibforums->lang['member_icq']}</td>
</tr>
EOF;
}
function end($links) {
global $ibforums;
return <<<EOF
<table width="{$ibforums->skin['tbl_width']}" border="0" align='center' cellspacing="0" cellpadding="4">
<tr>
<td width="100%" height='38'>{$links[SHOW_PAGES]}</td>
</tr>
</table>
EOF;
}
function no_results() {
global $ibforums;
return <<<EOF
No results
EOF;
}
function start() {
global $ibforums;
return <<<EOF
<!-- nothing here -->
EOF;
}
function Page_end() {
global $ibforums;
return <<<EOF
<!-- End content Table -->
<form action='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id};act=Members' method='POST'>
<input type='hidden' name='act' value='Members'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<tr>
<td id='subtitle' colspan="9" align='center'>{$ibforums->lang['sorting_text']}&nbsp;<input type='submit' value='{$ibforums->lang['sort_submit']}' class='forminput'></td>
</tr>
</form>
</table>
</td>
</tr>
</table>
EOF;
}
function show_row($member) {
global $ibforums;
return <<<EOF
<!-- Entry for {$member[MEMBER_NAME]} -->
<tr>
<td id='forum2' width="30%"><b><a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Profile&CODE=03&MID={$member[MEMBER_ID]}">{$member[MEMBER_NAME]}</a></b></td>
<td id='forum2' nowrap width="20%">{$member[MEMBER_PIPS_IMG]}</td>
<td id='forum1' align="center" width="20%">{$member[MEMBER_GROUP]}</td>
<td id='forum2' nowrap align="center" width="20%">{$member[MEMBER_JOINED]}</td>
<td id='forum2' align="center" width="10%">{$member[MEMBER_POSTS]}</td>
<td id='forum1' align="center">{$member[MEMBER_EMAIL]}</td>
<td id='forum1' align="center">{$member[AOLNAME]}</td>
<td id='forum1' align="center">{$member[ICQNUMBER]}</td>
</tr>
<!-- End of Entry -->
EOF;
}
}
?>
+678
View File
@@ -0,0 +1,678 @@
<?php
class skin_mod {
function modtopicview_start($tid,$forumname, $fid, $title) {
global $ibforums;
return <<<EOF
<form name='ibform' action='{$ibforums->base_url}' method='POST'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='act' value='ModCP'>
<input type='hidden' name='CODE' value='domodposts'>
<input type='hidden' name='f' value='{$fid}'>
<input type='hidden' name='tid' value='{$tid}'>
<tr>
<td colspan='2'>
<table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder' align='center'>
<tr>
<td><span id='pagetitle'>{$ibforums->lang['cp_mod_posts_title2']} $forumname</span>
<br>$pages
</td>
</tr>
<tr>
<td colspan='2'>
<table width='100%' cellpadding='4' cellspacing='1' bgcolor='{$ibforums->skin['tbl_border']}'>
<tr>
<td valign='middle' id='titlemedium' align='left' colspan='2'>$title</td>
</tr>
EOF;
}
function modpost_topicstart($forumname, $fid) {
global $ibforums;
return <<<EOF
<tr>
<td colspan='2'>
<table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder' align='center'>
<tr>
<td><span id='pagetitle'>{$ibforums->lang['cp_mod_posts_title2']} $forumname</span>
</td>
</tr>
<tr>
<td>
<table width='100%' cellpadding='4' cellspacing='1' bgcolor='{$ibforums->skin['tbl_border']}'>
<tr>
<td id='titlemedium' width='40%'>{$ibforums->lang['cp_3_title']}</td>
<td id='titlemedium' width='20%' align='center'>{$ibforums->lang['cp_3_replies']}</td>
<td id='titlemedium' width='20%' align='center'>{$ibforums->lang['cp_3_approveall']}</td>
<td id='titlemedium' width='20%' align='center'>{$ibforums->lang['cp_3_viewall']}</td>
</tr>
EOF;
}
function modpost_topicentry($title, $tid, $replies, $fid) {
global $ibforums;
return <<<EOF
<tr>
<td id='row1' width='40%' align='left'><b><a href='{$ibforums->base_url}&act=ST&f=$fid&t=$tid' target='_blank'>$title</a></b></td>
<td id='row1' width='20%' align='center'>$replies</td>
<td id='row1' width='20%' align='center'><a href='{$ibforums->base_url}&act=ModCP&f=$fid&tid=$tid&CODE=modtopicapprove'>{$ibforums->lang['cp_3_approveall']}</a></td>
<td id='row1' width='20%' align='center'><a href='{$ibforums->base_url}&act=ModCP&f=$fid&tid=$tid&CODE=modtopicview'>{$ibforums->lang['cp_3_viewall']}</a></td>
</tr>
EOF;
}
function modpost_topicend() {
global $ibforums;
return <<<EOF
</table>
</td>
</tr>
</table>
</td>
</tr>
EOF;
}
function modtopics_start($pages,$forumname, $fid) {
global $ibforums;
return <<<EOF
<form name='ibform' action='{$ibforums->base_url}' method='POST'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='act' value='ModCP'>
<input type='hidden' name='CODE' value='domodtopics'>
<input type='hidden' name='f' value='{$fid}'>
<tr>
<td colspan='2'>
<table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder' align='center'>
<tr>
<td><span id='pagetitle'>{$ibforums->lang['cp_mod_topics_title2']} $forumname</span>
<br>$pages
</td>
</tr>
EOF;
}
function modtopics_end() {
global $ibforums;
return <<<EOF
<tr>
<td id='row2' align='center'><select name='type' class='forminput'><option value='approve'>{$ibforums->lang['cp_1_approve']}</option><option value='remove'>{$ibforums->lang['cp_1_remove']}</option></select>&nbsp;&nbsp;{$ibforums->lang['cp_1_selected']}&nbsp;&nbsp;<input type='submit' value='{$ibforums->lang['cp_1_go']}' class='forminput'></td>
</tr>
</table>
</td>
</tr>
</form>
EOF;
}
function mod_topic_title($title, $topic_id) {
global $ibforums;
return <<<EOF
<tr>
<td colspan='2'>
<table width='100%' cellpadding='4' cellspacing='1' bgcolor='{$ibforums->skin['tbl_border']}'>
<tr>
<td valign='middle' id='titlemedium' align='left' colspan='2'><input type='checkbox' name='TID_$topic_id' value='1'>&nbsp;&nbsp; $title</td>
</tr>
EOF;
}
function mod_postentry($data) {
global $ibforums;
return <<<EOF
<tr>
<td valign='top' id='row1' width='25%'><span id='normalname'>{$data['member']['name']}</span><br><br>{$data['member']['avatar']}<span id='postdetails'><br>{$data['member']['MEMBER_GROUP']}<br>{$data['member']['MEMBER_POSTS']}<br>{$data['member']['MEMBER_JOINED']}</span></td>
<td valign='top' height='100%' id='row1' width='75%'>
<b>{$ibforums->lang['posted_on']} {$data['msg']['post_date']}</b><br><br>
<span id='postcolor'>
{$data['msg']['post']}
</span>
</td>
</tr>
EOF;
}
function mod_postentry_checkbox($pid) {
global $ibforums;
return <<<EOF
<tr>
<td align='left' colspan='2' id='category'><input type='checkbox' name='PID_$pid' value='1'>&nbsp;&nbsp;{$ibforums->lang['cp_3_postno']}&nbsp;$pid</td>
</tr>
EOF;
}
function mod_topic_spacer() {
global $ibforums;
return <<<EOF
</table>
</td>
</tr>
<tr>
<td colspan='2'>
&nbsp;
</td>
</tr>
EOF;
}
function results($text) {
global $ibforums;
return <<<EOF
<tr>
<td colspan='2'>
<table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder' align='center'>
<tr>
<td><span id='pagetitle'>{$ibforums->lang['cp_results']}</span>
</td>
</tr>
<tr>
<td colspan='2'><b>$text</b></td>
</tr>
</table>
</td>
</tr>
EOF;
}
function prune_confirm($tcount, $count, $link, $link_text) {
global $ibforums;
return <<<EOF
<tr>
<td colspan='2'>
<table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder' align='center'>
<tr>
<td><span id='pagetitle'>{$ibforums->lang['cp_check_result']}</span>
<br>{$ibforums->lang['cp_check_text']}
</td>
</tr>
<tr>
<td><b>{$ibforums->lang['cp_total_topics']}</b></td>
<td>$tcount</td>
</tr>
<tr>
<td><b><span style='color:red'>{$ibforums->lang['cp_total_match']}</span></b></td>
<td><span style='color:red'>$count</span></td>
</tr>
<tr>
<td colspan='2' align='center' id='row2'><b><a href='{$ibforums->base_url}$link'>$link_text</a></b></td>
</tr>
</table>
</td>
</tr>
EOF;
}
function prune_splash($forum, $forums, $select) {
global $ibforums;
return <<<EOF
<form name='ibform' action='{$ibforums->base_url}' method='POST'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='act' value='ModCP'>
<input type='hidden' name='CODE' value='prune'>
<input type='hidden' name='f' value='{$forum['id']}'>
<input type='hidden' name='check' value='1'>
<!-- IBF.CONFIRM -->
<tr>
<td colspan='2' id='pagetitle'>{$ibforums->lang['cp_prune']} {$forum['name']}</td>
</tr>
<tr>
<td colspan='2'>{$ibforums->lang['cp_prune_text']}</td>
</tr>
<tr>
<td width='40%' id='row2'>{$ibforums->lang['cp_action']}</td>
<td id='row2'><select name='df' class='forminput'>$forums</select></td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['cp_prune_days']}</td>
<td><input type='text' size='40' name='dateline' value='{$ibforums->input['dateline']}' class='forminput'></td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['cp_prune_type']}</td>
<td>$select</td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['cp_prune_replies']}</td>
<td><input type='text' size='40' name='posts' value='{$ibforums->input['posts']}' class='forminput'></td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['cp_prune_member']}</td>
<td><input type='text' size='40' name='member' value='{$ibforums->input['member']}' class='forminput'></td>
</tr>
<tr>
<td colspan='2' align='center'><input type='submit' value='{$ibforums->lang['cp_prune_sub1']}' class='forminput'></td>
</tr>
</form>
EOF;
}
function edit_user_form($profile) {
global $ibforums;
return <<<EOF
<form name='ibform' action='{$ibforums->base_url}' method='POST'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='act' value='ModCP'>
<input type='hidden' name='CODE' value='compedit'>
<input type='hidden' name='f' value='{$ibforums->input['f']}'>
<input type='hidden' name='memberid' value='{$profile['id']}'>
<tr>
<td colspan='2' id='pagetitle'>{$ibforums->lang['cp_edit_user']}: {$profile['name']}</td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['cp_remove_av']}</td>
<td><select name='avatar' class='forminput'><option value='0'>{$ibforums->lang['no']}</option><option value='1'>{$ibforums->lang['yes']}</option></select></td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['cp_edit_website']}</td>
<td><input type='text' size='40' name='website' value='{$profile['website']}' class='forminput'></td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['cp_edit_location']}</td>
<td><input type='text' size='40' name='location' value='{$profile['location']}' class='forminput'></td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['cp_edit_interests']}</td>
<td><textarea cols='50' rows='3' name='interests' class='forminput'>{$profile['interests']}</textarea></td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['cp_edit_signature']}</td>
<td><textarea cols='50' rows='5' name='signature' class='forminput'>{$profile['signature']}</textarea></td>
</tr>
<tr>
<td colspan='2' align='center'><input type='submit' value='{$ibforums->lang['cp_find_2_submit']}' class='forminput'></td>
</tr>
</form>
EOF;
}
function find_two($select) {
global $ibforums;
return <<<EOF
<form name='ibform' action='{$ibforums->base_url}' method='POST'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='act' value='ModCP'>
<input type='hidden' name='CODE' value='doedituser'>
<input type='hidden' name='f' value='{$ibforums->input['f']}'>
<tr>
<td colspan='2' id='pagetitle'>{$ibforums->lang['cp_edit_user']}</td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['cp_find_2_user']}</td>
<td>$select</td>
</tr>
<tr>
<td colspan='2' align='center'><input type='submit' value='{$ibforums->lang['cp_find_2_submit']}' class='forminput'></td>
</tr>
</form>
EOF;
}
function find_user() {
global $ibforums;
return <<<EOF
<form name='ibform' action='{$ibforums->base_url}' method='POST'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='act' value='ModCP'>
<input type='hidden' name='CODE' value='dofinduser'>
<input type='hidden' name='f' value='{$ibforums->input['f']}'>
<tr>
<td colspan='2' id='pagetitle'>{$ibforums->lang['cp_edit_user']}</td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['cp_find_user']}</td>
<td><input type='text' size='40' name='name' value='' class='forminput'></td>
</tr>
<tr>
<td colspan='2' align='center'><input type='submit' value='{$ibforums->lang['cp_find_submit']}' class='forminput'></td>
</tr>
</form>
EOF;
}
function splash($tcount, $pcount, $forum) {
global $ibforums;
return <<<EOF
<tr>
<td id='pagetitle'>{$ibforums->lang['cp_welcome']}</td>
</tr>
<tr>
<td>{$ibforums->lang['cp_welcome_text']}</td>
</tr>
<tr>
<td>
<table cellpadding='2' cellspacing='1' border='0' width='75%' id='fancyborder' align='center'>
<tr>
<td><b>{$ibforums->lang['cp_mod_in']}</b></td>
<td>$forum</td>
</tr>
<tr>
<td><b>{$ibforums->lang['cp_topics_wait']}</b></td>
<td>$tcount</td>
</tr>
<tr>
<td><b>{$ibforums->lang['cp_posts_wait']}</b></td>
<td>$pcount</td>
</tr>
</table>
</td>
</tr>
EOF;
}
function mod_exp($words) {
global $ibforums;
return <<<EOF
<tr>
<td id='row1' colspan='2'>$words</td>
</tr>
EOF;
}
function end_form($action) {
global $ibforums;
return <<<EOF
<tr>
<td id='row2' align='center' colspan='2'>
<input type="submit" name="submit" value="$action" class='forminput'>
</td></tr></table>
</td></tr></table>
</form>
EOF;
}
function move_form($jhtml, $forum_name) {
global $ibforums;
return <<<EOF
<tr>
<td id='row1'>{$ibforums->lang[move_from]} <b>$forum_name</b> {$ibforums->lang[to]}:</td>
<td id='row1'><select name='move_id' class='forminput'>$jhtml</select></td>
</tr>
<tr>
<td id='row1'><b>{$ibforums->lang['leave_link']}</b></td>
<td id='row1'>
<select name='leave' class='forminput'>
<option value='y' selected>{$ibforums->lang['yes']}</option>
<option value='n'>{$ibforums->lang['no']}</option>
</select>
</td>
</tr>
EOF;
}
function delete_js() {
global $ibforums;
return <<<EOF
<script language='JavaScript'>
<!--
function ValidateForm() {
document.REPLIER.submit.disabled = true;
return true;
}
//-->
</script>
EOF;
}
function topictitle_fields($title, $desc) {
global $ibforums;
return <<<EOF
<tr>
<td id='row1'><b>{$ibforums->lang[edit_f_title]}</b></td>
<td id='row1'><input type='text' size='40' maxlength='50' name='TopicTitle' value='$title'></td>
</tr>
<tr>
<td id='row1'><b>{$ibforums->lang[edit_f_desc]}</b></td>
<td id='row1'><input type='text' size='40' maxlength='40' name='TopicDesc' value='$desc'></td>
</tr>
EOF;
}
function poll_entry($id, $entry) {
global $ibforums;
return <<<EOF
<tr>
<td id='row1'><b>{$ibforums->lang['pe_option']} $id</b></td>
<td id='row1'><input type='text' size='60' maxlength='250' name='POLL_$id' value='$entry'></td>
</tr>
EOF;
}
function poll_select_form() {
global $ibforums;
return <<<EOF
<tr>
<td id='row1'><b>{$ibforums->lang['pe_pollonly']} $id</b></td>
<td id='row1'><select name='pollonly' class='forminput'><option value='0'>{$ibforums->lang['pe_no']}</option><option value='1'>{$ibforums->lang['pe_yes']}</option></select></td>
</tr>
EOF;
}
function table_top($posting_title) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' colspan='2' id='titlemedium'>$posting_title</td>
</tr>
EOF;
}
function forum_jump($data, $menu_extra="") {
global $ibforums;
return <<<EOF
<br>
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
<tr>
<td align='right'>{$data}</td>
</tr>
</table>
<br>
EOF;
}
function Menu_bar($base_url, $fid) {
global $ibforums;
return <<<EOF
<br>
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='2' cellspacing='1' border='0' width='100%'>
<tr>
<td width='20%' id='titlemedium'>&nbsp;</td>
<td width='80%' id='titlemedium'>&nbsp;</td>
</tr>
<td id='row1' valign='top'>
<!-- Moderate Topics -->
<table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder'>
<tr>
<td id='title'><b>{$ibforums->lang['cp_mod_topics_title']}</b></td>
</tr>
<tr>
<td id='row1'><a href='{$base_url}&act=ModCP&CODE=modtopics&f=$fid'>{$ibforums->lang['cp_mod_topics']}</a></td>
</tr>
<td id='row1'><a href='{$base_url}&act=ModCP&CODE=modposts&f=$fid'>{$ibforums->lang['cp_mod_posts']}</a></td>
</tr>
</table>
<!-- Manage Topics -->
<br>
<table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder'>
<tr>
<td id='title'><b>{$ibforums->lang['cp_manage_posts']}</b></td>
</tr>
<tr>
<td id='row1'><a href='{$base_url}&act=ModCP&CODE=prune&f=$fid'>{$ibforums->lang['cp_prune_posts']}</a></td>
</tr>
</table>
<!-- Manage Users -->
<br>
<table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder'>
<tr>
<td id='title'><b>{$ibforums->lang['cp_mod_users_title']}</b></td>
</tr>
<tr>
<td id='row1'><a href='{$base_url}&act=ModCP&CODE=edituser&f=$fid'>{$ibforums->lang['cp_user_edit']}</a></td>
</tr>
</table>
</td>
<td id='row1' valign='top'>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<!-- Start main CP area -->
EOF;
}
function CP_end() {
global $ibforums;
return <<<EOF
<!-- end main CP area -->
</table>
</td>
</tr>
</table></td></tr></table>
EOF;
}
function mod_error($msg="") {
global $ibforums;
return <<<EOF
<tr>
<td id='pagetitle'>{$ibforums->lang['cp_error']}</td>
</tr>
<tr>
<td>$msg</td>
</tr>
EOF;
}
} // end class
?>
+521
View File
@@ -0,0 +1,521 @@
<?php
class skin_msg {
function preview($data) {
global $ibforums;
return <<<EOF
<td colspan='2' id='row1'>
<table cellpadding='0' cellspacing='1' border='0' width='100%' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
<tr>
<td id='category' valign='top' align='left'><b>{$ibforums->lang['pm_preview']}</b></td>
</tr>
<tr>
<td id='row1' valign='top' align='left'>$data</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
EOF;
}
function pm_popup($text) {
global $ibforums;
return <<<EOF
<script language='javascript'>
<!--
function goto_inbox() {
opener.document.location.href = '{$ibforums->base_url}&act=Msg&CODE=01';
window.close();
}
function goto_this_inbox() {
window.resizeTo('650','500');
document.location.href = '{$ibforums->base_url}&act=Msg&CODE=01';
}
//-->
</script>
<table cellspacing='1' cellpadding='10' width='100%' height='100%' align='center' id='row1'>
<tr>
<td id='pagetitle' align='center'>{$ibforums->lang['pmp_title']}</td>
</tr>
<tr>
<td align='center'>$text</td>
</tr>
<tr>
<td align='center' style='font-size:12px;font-weight:bold'><a href='javascript:goto_inbox();'>{$ibforums->lang['pmp_go_inbox']}</a> ( <a href='javascript:goto_this_inbox();'>{$ibforums->lang['pmp_thiswindow']}</a> )<br><br><a href='javascript:window.close();'>{$ibforums->lang['pmp_ignore']}</a></td>
</tr>
</table>
EOF;
}
function archive_html_header() {
global $ibforums;
return <<<EOF
<html>
<head>
<title>Private Message Archive</title>
</head>
<body bgcolor='#FFFFFF'>
EOF;
}
function archive_html_entry($info) {
global $ibforums;
return <<<EOF
<table cellspacing='1' cellpadding='0' width='80%' bgcolor='#000000' align='center'>
<tr>
<td>
<table cellspacing='1' cellpadding='4' width='100%' align='center'>
<tr>
<td valign='top' bgcolor='#FEFEFE'><font face='verdana' size='3'><b>{$info['msg_title']}</b></td>
</tr>
<tr>
<td bgcolor='#FFFFFF'><font face='verdana size='2'>{$info['msg_content']}</td>
</tr>
<tr>
<td valign='top' bgcolor='#FEFEFE'><font face='verdana' size='3'>Sent by <b>{$info['msg_sender']}</b> on {$info['msg_date']}</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
EOF;
}
function archive_html_footer() {
global $ibforums;
return <<<EOF
</body>
</html>
EOF;
}
function archive_complete() {
global $ibforums;
return <<<EOF
<td id='row1 colspan='2'><span id='pagetitle'>{$ibforums->lang['arc_comp_title']}</span><br>{$ibforums->lang['arc_complete']}</td>
</tr>
EOF;
}
function archive_form($jump_html="") {
global $ibforums;
return <<<EOF
<td id='row1 colspan='2'><span id='pagetitle'>{$ibforums->lang['archive_title']}</span><br>{$ibforums->lang['archive_text']}</td>
</tr>
<tr>
<td id='row1 colspan='2'>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post">
<input type='hidden' name='act' value='Msg'>
<input type='hidden' name='CODE' value='15'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
</td>
</tr>
<tr>
<td id='row1'><b>{$ibforums->lang['arc_folders']}</b></td>
<td id='row1'>$jump_html</td>
</tr>
<tr>
<td id='row2'><b>{$ibforums->lang['arc_dateline']}</b></td>
<td id='row2' valign='middle'><select name='dateline' class='forminput'><option value='1'>1</option><option value='7'>7</option><option value='30' selected>30</option><option value='90'>90</option><option value='365'>365</option><option value='all'>{$ibforums->lang['arc_alldays']}</option></select>&nbsp;&nbsp;{$ibforums->lang['arc_days']}</td>
</tr>
<tr>
<td id='row1'><b>{$ibforums->lang['arc_max']}</b></td>
<td id='row1' valign='middle'><select name='number' class='forminput'><option value='5'>5</option><option value='10'>10</option><option value='20' selected>20</option><option value='30'>30</option><option value='40'>40</option><option value='50'>50</option></select></td>
</tr>
<tr>
<td id='row2'><b>{$ibforums->lang['arc_delete']}</b></td>
<td id='row2' valign='middle'><select name='delete' class='forminput'><option value='yes' selected>{$ibforums->lang['arc_yes']}</option><option value='no'>{$ibforums->lang['arc_no']}</option></select></td>
</tr>
<tr>
<td id='row1'><b>{$ibforums->lang['arc_type']}</b></td>
<td id='row1' valign='middle'><select name='type' class='forminput'><option value='xls' selected>{$ibforums->lang['arc_xls']}</option><option value='html'>{$ibforums->lang['arc_html']}</option></select></td>
</tr>
<tr>
<td colspan='2' align='center' id='row2'><input type="submit" value="{$ibforums->lang['arc_submit']}" class='forminput'></td>
</tr>
</form>
EOF;
}
function No_msg_inbox() {
global $ibforums;
return <<<EOF
<tr>
<td id='row1' colspan='5' align='center'><b>{$ibforums->lang['inbox_no_msg']}</b></td>
</tr>
EOF;
}
function prefs_add_dirs() {
global $ibforums;
return <<<EOF
<tr>
<td colspan='2' id='category'><b>{$ibforums->lang['prefs_new']}</b></td>
</tr>
<tr>
<td id='row1 colspan='2'>{$ibforums->lang['prefs_text_b']}</td>
</tr>
EOF;
}
function end_address_table() {
global $ibforums;
return <<<EOF
</table></td></tr>
EOF;
}
function Address_header() {
global $ibforums;
return <<<EOF
<td colspan='2' id='category'><b>{$ibforums->lang['address_current']}</b></td>
</tr>
EOF;
}
function Address_none() {
global $ibforums;
return <<<EOF
<tr>
<td id='row1 colspan='2' align='center'><b>{$ibforums->lang['address_none']}</b></td>
</tr>
EOF;
}
function address_edit($data) {
global $ibforums;
return <<<EOF
<td colspan='2' id='category'><b>{$ibforums->lang['member_edit']}</b></font></td>
</tr>
<tr>
<td id='row1 align='left' valign='middle' colspan='2'>
<table cellspacing='1' cellpadding='2' width='100%' border='0'>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post">
<input type='hidden' name='act' value='Msg'>
<input type='hidden' name='CODE' value='12'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='MID' value='{$data[MEMBER]['contact_id']}'>
<tr>
<td valign='middle' align='left'><b>{$data[MEMBER]['contact_name']}</b></td>
<td valign='middle' align='left'>{$ibforums->lang['enter_desc']}<br><input type='text' name='mem_desc' size='30' maxlength='60' value='{$data[MEMBER]['contact_desc']}' class='forminput'></td>
<td valign='middle' align='left'>{$ibforums->lang['allow_msg']}<br>{$data[SELECT]}</td>
</tr>
<tr>
<td colspan='3' align='center'><input type="submit" value="{$ibforums->lang['submit_address_edit']}" class='forminput'></td>
</tr>
</form>
</table>
</td>
</tr>
EOF;
}
function render_address_row($entry) {
global $ibforums;
return <<<EOF
<tr>
<td id='row1 align='left' valign='middle'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Profile&CODE=03&MID={$entry['contact_id']}'><b>{$entry['contact_name']}</b></a> &nbsp; &nbsp;[ {$entry['contact_desc']} ]</td>
<td id='row1 align='left' valign='middle'>
[ <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Msg&CODE=11&MID={$entry['contact_id']}' class='misc'>{$ibforums->lang['edit']}</a> ] :: [ <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Msg&CODE=10&MID={$entry['contact_id']}'>{$ibforums->lang['delete']}</a> ]
&nbsp;&nbsp;( {$entry['text']} )
</td>
</tr>
EOF;
}
function address_add($mem_to_add) {
global $ibforums;
return <<<EOF
<tr>
<td colspan='2' id='category'><b>{$ibforums->lang['member_add']}</b></font></td>
</tr>
<tr>
<td id='row1 align='left' valign='middle' colspan='2'>
<table cellspacing='1' cellpadding='2' width='100%' border='0'>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post">
<input type='hidden' name='act' value='Msg'>
<input type='hidden' name='CODE' value='09'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<tr>
<td valign='middle' align='left'>{$ibforums->lang['enter_a_name']}<br><input type='text' name='mem_name' size='20' maxlength='40' value='$mem_to_add' class='forminput'></td>
<td valign='middle' align='left'>{$ibforums->lang['enter_desc']}<br><input type='text' name='mem_desc' size='30' maxlength='60' value='' class='forminput'></td>
<td valign='middle' align='left'>{$ibforums->lang['allow_msg']}<br><select name='allow_msg' class='forminput'><option value='yes' selected>{$ibforums->lang['yes']}<option value='no'>{$ibforums->lang['no']}</select></td>
</tr>
<tr>
<td id='row2' colspan='3' align='center'><input type="submit" value="{$ibforums->lang['submit_address']}" class='forminput'></td>
</tr>
</form>
</table>
</td>
</tr>
EOF;
}
function prefs_footer() {
global $ibforums;
return <<<EOF
<tr>
<td id='row2 colspan='2' align='center'><input type='submit' value='{$ibforums->lang['prefs_submit']}' class='forminput'></td>
</tr></form>
EOF;
}
function prefs_row($data) {
global $ibforums;
return <<<EOF
<tr>
<td id='row1 colspan='2'><input type='text' name='{$data[ID]}' value='{$data[REAL]}' class='forminput'>{$data[EXTRA]}</td>
</tr>
EOF;
}
function Address_table_header() {
global $ibforums;
return <<<EOF
<tr>
<td valign='top' id='row1 colspan='2'>
<table cellpadding='4' cellspacing='0' align='center' width='100%' style='border:1px solid {$this->class['SKIN']['TABLE_BORDER_COL']}'>
<tr>
<td id='row2 align='left' width='60%' id='titlemedium'><b>{$ibforums->lang['member_name']}</b></td>
<td id='row2 align='left' width='40%' id='titlemedium'><b>{$ibforums->lang['enter_block']}</b></td>
</tr>
EOF;
}
function Render_msg($data) {
global $ibforums;
return <<<EOF
<td id='row1 align='left'><span id='pagetitle'>{$data['msg']['title']}</span><br>{$data['msg']['msg_date']}</td>
<td id='row1 align='right'>
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&CODE=04&act=Msg&MID={$data['member']['id']}&MSID={$data['msg']['msg_id']}'>{$ibforums->skin[M_REPLY]}</a>
&nbsp;
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&CODE=02&act=Msg&MID={$data['member']['id']}'>{$ibforums->skin[M_ADDMEM]}</a>
&nbsp;
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&CODE=05&act=Msg&MSID={$data['msg']['msg_id']}&VID={$data['member']['VID']}'>{$ibforums->skin[M_DELETE]}</a>
</td>
</tr>
<tr>
<td colspan='2'>
<table width='100%' cellpadding='4' cellspacing='1' bgcolor='{$ibforums->skin['tbl_border']}'>
<tr>
<td valign='middle' id='titlemedium' align='center' width='25%'>{$ibforums->lang['author']}</td>
<td valign='middle' id='titlemedium' align='center' width='75%'>{$ibforums->lang['m_pmessage']}</td>
</tr>
<tr>
<td valign='top' id='row1'><span id='normalname'>{$data['member']['name']}</span><br>{$data['member']['avatar']}<br><span id="membertitle">{$data['member']['title']}</span><span id='postdetails'><br>{$data['member']['MEMBER_GROUP']}<br>{$data['member']['MEMBER_POSTS']}<br>{$data['member']['MEMBER_JOINED']}</span></td>
<td valign='top' height='100%' id='row1'>
<span id='postcolor'>
{$data['msg']['message']}
{$data['member']['signature']}
</span>
</td>
</tr>
<tr>
<td colspan='2' id='titlemedium' align='center'>{$data['member']['MESSAGE_ICON']}{$data['member']['EMAIL_ICON']}{$data['member']['WEBSITE_ICON']}{$data['member']['ICQ_ICON']}{$data['member']['AOL_ICON']}{$data['member']['YAHOO_ICON']}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td id='row1 align='right' colspan='2'>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" name='jump' method="post">
<input type='hidden' name='act' value='Msg'>
<input type='hidden' name='CODE' value='01'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<font class='misc'><b>{$ibforums->lang[goto_folder]}:</b>&nbsp; {$data['jump']}
<input type='submit' name='submit' value='{$ibforums->lang[goto_submit]}' class='forminput'>
</form>
</td>
</tr>
EOF;
}
function inbox_table_header($dirname, $info) {
global $ibforums;
return <<<EOF
<!-- inbox folder -->
<script language='JavaScript'>
<!--
function CheckAll(cb) {
var fmobj = document.mutliact;
for (var i=0;i<fmobj.elements.length;i++) {
var e = fmobj.elements[i];
if ((e.name != 'allbox') && (e.type=='checkbox') && (!e.disabled)) {
e.checked = fmobj.allbox.checked;
}
}
}
function CheckCheckAll(cb) {
var fmobj = document.mutliact;
var TotalBoxes = 0;
var TotalOn = 0;
for (var i=0;i<fmobj.elements.length;i++) {
var e = fmobj.elements[i];
if ((e.name != 'allbox') && (e.type=='checkbox')) {
TotalBoxes++;
if (e.checked) {
TotalOn++;
}
}
}
if (TotalBoxes==TotalOn) {fmobj.allbox.checked=true;}
else {fmobj.allbox.checked=false;}
}
//-->
</script>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id};CODE=06;act=Msg" name='mutliact' method="post">
<input type='hidden' name='act' value='Msg'>
<input type='hidden' name='CODE' value='06'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<tr>
<td valign='top' colspan='2'><span id='pagetitle'>$dirname</span></td>
</tr>
<tr>
<td colspan='2'><b>{$ibforums->lang['total_messages']}:</b> {$info['total_messages']} {$info['full_percent']}<br><b>{$ibforums->lang['messages_left']}</b> {$info['space_free']} {$info['full_messenger']}</td>
</tr>
<tr>
<td valign='top' colspan='2'>
<table cellpadding='4' cellspacing='1' align='center' width='100%' style='border:1px solid {$ibforums->skin['tbl_border']}'>
<tr>
<td align='left' width='5%' id='titlemedium'>&nbsp;</td>
<td align='left' width='40%' id='titlemedium'><b>{$ibforums->lang['message_title']}</b></td>
<td align='left' width='30%' id='titlemedium'><b>{$ibforums->lang['message_from']}</b></td>
<td align='left' width='20%' id='titlemedium'><b>{$ibforums->lang['message_date']}</b></td>
<td align='left' width='5%' id='titlemedium'><input name="allbox" type="checkbox" value="Check All" onClick="CheckAll();"></td>
</tr>
EOF;
}
function inbox_row($data) {
global $ibforums;
return <<<EOF
<tr>
<td id='row2 align='left' valign='middle'>{$data['msg']['icon']}</td>
<td id='row2 align='left'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Msg&CODE=03&VID={$data['stat']['current_id']}&MSID={$data['msg']['msg_id']}'>{$data['msg']['title']}</a></td>
<td id='row2 align='left'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Profile&MID={$data['msg']['from_id']}'>{$data['msg']['from_name']}</a> {$data['msg']['add_to_contacts']}</td>
<td id='row2 align='left'>{$data['msg']['date']}</td>
<td id='row2 align='left'><input type='checkbox' name='msgid-{$data['msg']['msg_id']}' value='yes' class='forminput'></td>
</tr>
EOF;
}
function end_inbox($vdi_html) {
global $ibforums;
return <<<EOF
<tr>
<td align='right' nowrap id='titlemedium' colspan='5'>
<input type='submit' name='move' value='{$ibforums->lang['move_button']}' class='forminput'> $vdi_html {$ibforums->lang['move_or_delete']} <input type='submit' name='delete' value='{$ibforums->lang['delete_button']}' class='forminput'> {$ibforums->lang['selected_msg']}
</td>
</tr>
</table>
</form>
</td></tr>
<tr>
<td id='row1 align='left' valign='middle'>
{$ibforums->skin['M_READ']}&nbsp;{$ibforums->lang['icon_read']}
&nbsp;{$ibforums->skin['M_UNREAD']}&nbsp;{$ibforums->lang['icon_unread']}
</td>
<td id='row1 align='right' valign='middle'>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id};CODE=01;act=Msg" name='jump' method="post">
<input type='hidden' name='act' value='Msg'>
<input type='hidden' name='CODE' value='01'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<b>{$ibforums->lang['goto_folder']}: </b>&nbsp; $vdi_html
<input type='submit' name='submit' value='{$ibforums->lang['goto_submit']}' class='forminput'>
</form>
</td>
</tr>
EOF;
}
function send_form_footer() {
global $ibforums;
return <<<EOF
<tr>
<td colspan='2' id='category'><b>{$ibforums->lang['msg_options']}</b></td>
</tr>
<tr>
<td id='row1' align='left' width='40%'>&nbsp;</td>
<td id='row1' align='left' width='60%'>
<input type='checkbox' name='add_sent' value='yes' checked>&nbsp;<b>{$ibforums->lang['auto_sent_add']}</b>
<br><input type='checkbox' name='add_tracking' value='1'>&nbsp;<b>{$ibforums->lang['read_rec_notify']}</b>
</td>
</tr>
<tr>
<td id='row2' align='center' colspan='2'>
<input type="submit" value="{$ibforums->lang['submit_send']}" class='forminput' name='submit'>
<input type="submit" value="{$ibforums->lang['pm_pre_button']}" class='forminput' name='preview'>
</td>
</tr>
</form>
EOF;
}
function Send_form($data) {
global $ibforums;
return <<<EOF
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='REPLIER' onSubmit='return ValidateForm(1)'>
<input type='hidden' name='act' value='Msg'>
<input type='hidden' name='CODE' value='04'>
<input type='hidden' name='MODE' value='01'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<td colspan='2' id='category'><b>{$ibforums->lang['to_whom']}</b></td>
</tr>
<tr>
<td id='row1' align='left' width='40%'>{$ibforums->lang['address_list']}</td>
<td id='row1' align='left' width='60%' valign='top'>{$data[CONTACTS]}</td>
</tr>
<tr>
<td id='row1' align='left' width='40%'>{$ibforums->lang['enter_name']}</td>
<td id='row1' align='left' width='60%' valign='top'><input type='text' name='entered_name' value='{$data[N_ENTER]}' class='forminput'></td>
</tr>
<tr>
<td colspan='2' id='category'><b>{$ibforums->lang['enter_message']}</b></td>
</tr>
<tr>
<td id='row1' align='left' width='40%'>{$ibforums->lang['msg_title']}</td>
<td id='row1' align='left' width='60%' valign='top'><input type='text' name='msg_title' size='40' maxlength='40' value='{$data[O_TITLE]}' class='forminput'></td>
</tr>
EOF;
}
function prefs_header() {
global $ibforums;
return <<<EOF
<td colspan='2' id='category'><b>{$ibforums->lang['prefs_current']}</b></td>
</tr>
<tr>
<td id='row1 colspan='2'>{$ibforums->lang['prefs_text_a']}</td>
</tr>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post">
<input type='hidden' name='act' value='Msg'>
<input type='hidden' name='CODE' value='08'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
EOF;
}
}
?>
+98
View File
@@ -0,0 +1,98 @@
<?php
class skin_online {
function end($links) {
global $ibforums;
return <<<EOF
<br>
<table cellpadding='0' cellspacing='4' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
<tr>
<td valign='middle' align='left'>{$links[SHOW_PAGES]}</td>
</tr>
</table>
EOF;
}
function show_row($session) {
global $ibforums;
return <<<EOF
<!-- Entry for {$session['member_id']} -->
<tr>
<td id='row1'>{$session['member_name']}</td>
<td id='row1'>{$session['where_line']}</td>
<td id='row1' align='center'>{$session['running_time']}</td>
<td id='row1' align='center'>{$session['msg_icon']}</td>
</tr>
<!-- End of Entry -->
EOF;
}
function Page_end($links) {
global $ibforums;
return <<<EOF
<!-- End content Table -->
<tr>
<td colspan='4' id='category'>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table cellpadding='0' cellspacing='4' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
<tr>
<td valign='middle' align='left'>$links</td>
</tr>
</table>
EOF;
}
function Page_header($links) {
global $ibforums;
return <<<EOF
<script language='Javascript' type='text/javascript'>
<!--
function PopUp(url, name, width,height,center,resize,scroll,posleft,postop) {
if (posleft != 0) { x = posleft }
if (postop != 0) { y = postop }
if (!scroll) { scroll = 1 }
if (!resize) { resize = 1 }
if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {
X = (screen.width - width ) / 2;
Y = (screen.height - height) / 2;
}
if (scroll != 0) { scroll = 1 }
var Win = window.open( url, name, 'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no');
}
//-->
</script>
<table cellpadding='0' cellspacing='4' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
<tr>
<td valign='middle' align='left'>$links</td>
</tr>
</table>
<br>
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td align='left' width='30%' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['member_name']}</td>
<td align='left' width='30%' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['where']}</td>
<td align='center' width='20%' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['time']}</td>
<td align='left' width='10%' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>&nbsp;</td>
</tr>
EOF;
}
}
?>
+77
View File
@@ -0,0 +1,77 @@
<?php
class skin_poll {
function edit_link($tid, $fid) {
global $ibforums;
return <<<EOF
[ <a href="{$ibforums->base_url}&act=Mod&CODE=20&f=$fid&t=$tid">{$ibforums->lang['ba_edit']}</a> ]
EOF;
}
function delete_link($tid, $fid) {
global $ibforums;
return <<<EOF
[ <a href="{$ibforums->base_url}&act=Mod&CODE=22&f=$fid&t=$tid">{$ibforums->lang['ba_delete']}</a> ]
EOF;
}
function Render_row_form($votes, $id, $answer) {
global $ibforums;
return <<<EOF
<tr>
<td id='row1' colspan='3'><INPUT type="radio" name="poll_vote" value="$id">&nbsp;<b>$answer</b></td>
</tr>
EOF;
}
function ShowPoll_header($tid, $edit, $delete) {
global $ibforums;
return <<<EOF
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}" method="post">
<input type='hidden' name='act' value='Poll'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='t' value='$tid'>
<br>
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
<tr>
<td align='right' colspan='3' id='titlemedium'>$edit &nbsp; $delete</td>
</tr>
<tr>
<td id='row1' valign='middle' align='left' width='50%'><b>{$ibforums->lang['poll_s_choices']}</b></td>
<td id='row1' valign='middle' align='left' width='10%'><b>{$ibforums->lang['poll_s_votes']}</b></td>
<td id='row1' valign='middle' align='left' width='40%'><b>{$ibforums->lang['poll_s_stats']}</b></td>
EOF;
}
function ShowPoll_footer($vote_button) {
global $ibforums;
return <<<EOF
<tr>
<td id='row2' align='center' colspan='3'>
$vote_button
</td></tr></table>
</td></tr></table>
</form>
EOF;
}
function Render_row_results($votes, $id, $answer, $percentage, $width) {
global $ibforums;
return <<<EOF
<tr>
<td id='row1'><b>$answer</b></td>
<td id='row1'><b>$votes</b></td>
<td id='row1'><img src='{$ibforums->vars['img_url']}/bar_left.gif' border='0' width='4' height='11' align='middle' alt=''><img src='{$ibforums->vars['img_url']}/bar.gif' border='0' width='$width' height='11' align='middle' alt=''><img src='{$ibforums->vars['img_url']}/bar_right.gif' border='0' width='4' height='11' align='middle' alt=''>&nbsp;[$percentage%]</td>
</tr>
EOF;
}
}
?>
+430
View File
@@ -0,0 +1,430 @@
<?php
class skin_post {
function table_structure() {
global $ibforums;
return <<<EOF
<!--START TABLE-->
<!--NAME FIELDS-->
<!--TOPIC TITLE-->
<!--POLL BOX-->
<!--POST BOX-->
<!--QUOTE BOX-->
<!--POST ICONS-->
<!--UPLOAD FIELD-->
<!--MOD OPTIONS-->
<!--END TABLE-->
EOF;
}
function table_top($data) {
global $ibforums;
return <<<EOF
<script language='Javascript' type='text/javascript'>
<!--
function PopUp(url, name, width,height,center,resize,scroll,posleft,postop) {
if (posleft != 0) { x = posleft }
if (postop != 0) { y = postop }
if (!scroll) { scroll = 1 }
if (!resize) { resize = 1 }
if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {
X = (screen.width - width ) / 2;
Y = (screen.height - height) / 2;
}
if (scroll != 0) { scroll = 1 }
var Win = window.open( url, name, 'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no');
}
//-->
</script>
<table width="{$ibforums->skin['tbl_width']}" align='center' border="0" cellspacing="1" cellpadding="0" bgcolor="{$ibforums->skin['tbl_border']}">
<tr>
<td id='maintitleback' background='{$ibforums->vars['img_url']}/tile_back.gif'>
&nbsp;
</td>
</tr>
<tr>
<td id='mainbg'>
<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif' colspan="2">$data</td>
</tr>
EOF;
}
function EndForm($data) {
global $ibforums;
return <<<EOF
<tr>
<td id='mainfoot' align="center" colspan="2"><input type="submit" name="submit" value="$data" tabindex='4' class='forminput'>&nbsp;
<input type="submit" name="preview" value="{$ibforums->lang['button_preview']}" tabindex='5' class='forminput'></td>
</tr>
</table>
</td>
</tr>
</form>
</table>
EOF;
}
function smilie_table() {
global $ibforums;
return <<<EOF
<table align="center" cellspacing='1' cellpadding='3' border='0' id='row2' style="border-width:1px; border-color:{$ibforums->skin['tbl_border']}; border-style:solid; width:95%" align='left'>
<tr>
<td colspan='{$ibforums->vars['emo_per_row']}' align='center'>{$ibforums->lang['click_smilie']}</td>
</tr>
<!--THE SMILIES-->
<tr>
<td colspan='{$ibforums->vars['emo_per_row']}' id='row1' align='center'><a href='javascript:emo_pop()'>{$ibforums->lang['all_emoticons']}</a></td>
</tr>
</table>
EOF;
}
function TopicSummary_bottom() {
global $ibforums;
return <<<EOF
<!-- Cgi-bot TopicSummaryBottom -->
<tr>
<td valign='left' colspan='2' id='titlemedium'><a href="javascript:PopUp('index.{$ibforums->vars['php_ext']}?act=ST&f={$ibforums->input['f']}&t={$ibforums->input['t']}','TopicSummary',700,450,1,1)">{$ibforums->lang['review_topic']}</a></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- Cgi-bot End TopicSummaryBottom -->
EOF;
}
function PostIcons() {
global $ibforums;
return <<<EOF
<tr>
<td valign="top" id='row1'>{$ibforums->lang['post_icon']}</td>
<td valign="top" width="100%" id='row1'>
<INPUT type="radio" name="iconid" value="1">&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon1.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="2" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon2.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="3" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon3.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="4" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon4.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="5" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon5.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="6" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon6.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="7" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon7.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<br>
<INPUT type="radio" name="iconid" value="8">&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon8.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="9" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon9.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="10" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon10.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="11" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon11.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="12" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon12.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="13" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon13.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="14" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon14.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;
<BR>
<INPUT type="radio" name="iconid" value="0" CHECKED>&nbsp;&nbsp;[ Use None ]
</td>
</tr>
EOF;
}
function errors($data) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['TABLE_BORDER_COL']}' align='center'>
<tr>
<td>
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
<tr>
<td id='row1' valign='top' align='left'><b>{$ibforums->lang['errors_found']}</b></font><hr noshade size='1' color='{$ibforums->skin['tbl_border']}'>$data</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
EOF;
}
function Upload_field($data) {
global $ibforums;
return <<<EOF
<tr>
<td id="subtitle" colspan="2">{$ibforums->lang['upload_title']}</td>
</tr>
<tr>
<td id='row1'>{$ibforums->lang['upload_text']} $data</td>
<td id='row1' width="100%"><input class='textinput' type='file' size='30' name='FILE_UPLOAD'></td>
</tr>
EOF;
}
function topictitle_fields($data) {
global $ibforums;
return <<<EOF
<tr>
<td id="subtitle" colspan="2">{$ibforums->lang['tt_topic_settings']}</td>
</tr>
<tr>
<td id='row1'>{$ibforums->lang['topic_title']}</td>
<td id='row1' width="100%" valign="top"><input type='text' size='40' maxlength='50' name='TopicTitle' value='{$data[TITLE]}' tabindex='1' class='forminput'></td>
</tr>
<tr>
<td id='row1'>{$ibforums->lang['topic_desc']}</td>
<td id='row1' width="100%" valign="top"><input type='text' size='40' maxlength='40' name='TopicDesc' value='{$data[DESC]}' tabindex='2' class='forminput'></td>
</tr>
EOF;
}
function TopicSummary_body($data) {
global $ibforums;
return <<<EOF
<tr id='postdetails'>
<td id='row1' align='left' valign='top' width='20%'><b>{$data['author']}</b></td>
<td id='row1' align='left' valign='top' width='80%'>{$ibforums->lang['posted_on']} {$data['date']}<hr noshade size='1'><span id='postcolor'>{$data['post']}</span></td>
</tr>
EOF;
}
function preview($data) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
<tr>
<td id='row1' valign='top' align='left'><b>{$ibforums->lang['post_preview']}</b><hr noshade size='1' color='{$ibforums->skin['tbl_border']}'><span id='postcolor'>$data</span></td>
</tr>
</table>
</td>
</tr>
</table>
<br>
EOF;
}
function TopicSummary_top() {
global $ibforums;
return <<<EOF
<a name="top">
<!-- Cgi-bot TopicSummaryTop -->
<br>
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' colspan='2' id='titlemedium'>{$ibforums->lang['last_posts']}</td>
</tr>
<!-- Cgi-bot End TopicSummaryTop -->
EOF;
}
function nameField_reg() {
global $ibforums;
return <<<EOF
<!-- REG NAME -->
EOF;
}
function mod_options($jump) {
global $ibforums;
return <<<EOF
<tr>
<td id="subtitle" colspan="2">{$ibforums->lang['tt_options']}</td>
</tr>
<tr>
<td id="row1">{$ibforums->lang['mod_options']}</td>
<td id="row1" width="100%">$jump</td>
</tr>
EOF;
}
function quote_box($data) {
global $ibforums;
return <<<EOF
<tr>
<td id="subtitle" colspan="2">{$ibforums->lang['post_to_quote']}</td>
</tr>
<tr>
<td id='row1' valign="top">{$ibforums->lang['post_to_quote_txt']}</td>
<td id='row1' width="100%" valign="top">
<textarea cols='60' rows='12' wrap='soft' name='QPost' class='textinput'>{$data['post']}</textarea><input type='hidden' name='QAuthor' value='{$data['author_id']}'><input type='hidden' name='QAuthorN' value='{$data['author_name']}'><input type='hidden' name='QDate' value='{$data['post_date']}'></td>
</tr>
EOF;
}
function postbox_buttons($data) {
global $ibforums;
return <<<EOF
<script language="javascript1.2">
<!--
var MessageMax = "{$ibforums->lang['the_max_length']}";
var Override = "{$ibforums->lang['override']}";
function emo_pop()
{
window.open('index.{$ibforums->vars['php_ext']}?act=legends&CODE=emoticons&s={$ibforums->session_id}','Legends','width=250,height=500,resizable=yes,scrollbars=yes');
}
function CheckLength() {
MessageLength = document.REPLIER.Post.value.length;
message = "";
if (MessageMax !=0) {
message = "{$ibforums->lang['js_post']}:\\n{$ibforums->lang['js_max_length']} " + MessageMax + " {$ibforums->lang['js_characters']}.";
} else {
message = "";
}
alert(message + "\\n{$ibforums->lang['js_used']} " + MessageLength + " {$ibforums->lang['js_characters']}.");
}
function ValidateForm(isMsg) {
MessageLength = document.REPLIER.Post.value.length;
errors = "";
if (isMsg == 1)
{
if (document.REPLIER.msg_title.value.length < 2)
{
errors = "{$ibforums->lang['msg_no_title']}";
}
}
if (MessageLength < 2) {
errors = "{$ibforums->lang['js_no_message']}";
}
if (MessageMax !=0) {
if (MessageLength > MessageMax) {
errors = "{$ibforums->lang['js_max_length']} " + MessageMax + " {$ibforums->lang['js_characters']}. {$ibforums->lang['js_current']}: " + MessageLength;
}
}
if (errors != "" && Override == "") {
alert(errors);
return false;
} else {
document.REPLIER.submit.disabled = true;
return true;
}
}
// IBC Code stuff
var text_enter_url = "{$ibforums->lang['jscode_text_enter_url']}";
var text_enter_url_name = "{$ibforums->lang['jscode_text_enter_url_name']}";
var text_enter_image = "{$ibforums->lang['jscode_text_enter_image']}";
var text_enter_email = "{$ibforums->lang['jscode_text_enter_email']}";
var text_enter_flash = "{$ibforums->lang['jscode_text_enter_flash']}";
var text_code = "{$ibforums->lang['jscode_text_code']}";
var text_quote = "{$ibforums->lang['jscode_text_quote']}";
var error_no_url = "{$ibforums->lang['jscode_error_no_url']}";
var error_no_title = "{$ibforums->lang['jscode_error_no_title']}";
var error_no_email = "{$ibforums->lang['jscode_error_no_email']}";
var error_no_width = "{$ibforums->lang['jscode_error_no_width']}";
var error_no_height = "{$ibforums->lang['jscode_error_no_height']}";
//-->
</script>
<script language='Javascript' src='html/ibfcode.js'></script>
<tr>
<td id="subtitle" colspan="2">{$ibforums->lang['ib_code_buttons']}</td>
</tr>
<tr>
<td id='row1'>{$ibforums->lang['ibf_code_txt']}</td>
<td id='row1' width="100%" valign="top">
<table cellpadding='2' cellspacing='2' width='100%' align='center'>
<tr>
<td nowrap width='10%'>
<input type='button' accesskey='b' value=' B ' onClick='simpletag("B")' class='codebuttons' title="BOLD: [Control / Alt] + b" name='bold' style="font-weight:bold">
<input type='button' accesskey='i' value=' I ' onClick='simpletag("I")' class='codebuttons' title="ITALIC: [Control / Alt] + i" name='italic' style="font-style:italic">
<input type='button' accesskey='u' value=' U ' onClick='simpletag("U")' class='codebuttons' title="UNDERLINE: [Control / Alt] + u" name='under' style="text-decoration:underline">
<select name='ffont' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'FONT')">
<option value='0'>{$ibforums->lang['ct_font']}</option>
<option value='Arial' style='font-family:Arial'>{$ibforums->lang['ct_arial']}</option>
<option value='Times' style='font-family:Times'>{$ibforums->lang['ct_times']}</option>
<option value='Courier' style='font-family:Courier'>{$ibforums->lang['ct_courier']}</option>
<option value='Impact' style='font-family:Impact'>{$ibforums->lang['ct_impact']}</option>
<option value='Geneva' style='font-family:Geneva'>{$ibforums->lang['ct_geneva']}</option>
<option value='Optima' style='font-family:Optima'>Optima</option>
</select><select name='fsize' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'SIZE')">
<option value='0'>{$ibforums->lang['ct_size']}</option>
<option value='1'>{$ibforums->lang['ct_sml']}</option>
<option value='7'>{$ibforums->lang['ct_lrg']}</option>
<option value='14'>{$ibforums->lang['ct_lest']}</option>
</select><select name='fcolor' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'COLOR')">
<option value='0'>{$ibforums->lang['ct_color']}</option>
<option value='blue' style='color:blue'>{$ibforums->lang['ct_blue']}</option>
<option value='red' style='color:red'>{$ibforums->lang['ct_red']}</option>
<option value='purple' style='color:purple'>{$ibforums->lang['ct_purple']}</option>
<option value='orange' style='color:orange'>{$ibforums->lang['ct_orange']}</option>
<option value='yellow' style='color:yellow'>{$ibforums->lang['ct_yellow']}</option>
<option value='gray' style='color:gray'>{$ibforums->lang['ct_grey']}</option>
<option value='green' style='color:green'>{$ibforums->lang['ct_green']}</option>
</select>
</td>
<td align='left'nowrap width='10%'><input type='button' accesskey='c' value=' x ' onClick='closelast()' class='codebuttons' title="Close Current Tag: [Control / Alt] + c" name='bold' style="color:red"> Close Current Tag</td>
</tr>
<tr>
<td align='left'>
<input type='button' accesskey='h' value=' http:// ' onClick='tag_url()' class='codebuttons' title="HYPERLINK: [Control / Alt] + h" style="text-decoration:underline;color:blue">
<input type='button' accesskey='g' value=' IMG ' onClick='tag_image()' class='codebuttons' title="IMG: [Control / Alt] + g" >
<input type='button' accesskey='e' value=' @ ' onClick='tag_email()' class='codebuttons' title="EMAIL: [Control / Alt] + e" style="text-decoration:underline;color:blue">
<input type='button' accesskey='q' value=' Quote ' onClick='simpletag("QUOTE")' class='codebuttons' title="QUOTE: [Control / Alt] + q" name='quote'>
<input type='button' accesskey='p' value=' Code ' onClick='simpletag("CODE")' class='codebuttons' title="CODE: [Control / Alt] + p" name='code'>
<input type='button' accesskey='s' value=' SQL ' onClick='simpletag("SQL")' class='codebuttons' title="SQL: [Control / Alt] + s" name='code'>
<input type='button' accesskey='t' value=' HTML ' onClick='simpletag("HTML")' class='codebuttons' title="HTML: [Control / Alt] + t" name='code'>
</td>
<td align='left'>
<input type='button' accesskey='x' value=' X ' onClick='closeall()' class='codebuttons' title="Close Current Tag: [Control / Alt] + x" name='bold' style="color:red;font-weight:bold"> Close All Tags
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td id="subtitle" colspan="2">{$ibforums->lang['post']}</td>
</tr>
<tr>
<td id='row1'>(<a href='javascript:CheckLength()'>{$ibforums->lang['check_length']}</a>)<br><br><!--SMILIE TABLE--><img src="{$ibforums->vars['img_url']}/spacer.gif" alt="" width="180" height="1"></td>
<td id='row1' width="100%" valign="top"><textarea cols='80' rows='15' wrap='soft' name='Post' tabindex='3' class='textinput'>$data</textarea><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type='checkbox' name='enableemo' value='yes' checked></td>
<td width="100%">{$ibforums->lang['enable_emo']}</td>
</tr>
<tr>
<td><input type='checkbox' name='enablesig' value='yes' checked></td>
<td width="100%">{$ibforums->lang['enable_sig']}</td>
</tr>
</table></td>
</tr>
EOF;
}
function nameField_unreg($data) {
global $ibforums;
return <<<EOF
<tr>
<td id="subtitle" colspan="2">{$ibforums->lang['unreg_namestuff']}</td>
</tr>
<tr>
<td id="row1">{$ibforums->lang['guest_name']}</td>
<td id="row1" width="100%"><input type='text' size='40' maxlength='40' name='UserName' value='$data' onMouseOver="this.focus()" onFocus="this.select()"></td>
</tr>
EOF;
}
function poll_box($data) {
global $ibforums;
return <<<EOF
<tr>
<td id="subtitle" colspan="2">{$ibforums->lang['tt_poll_settings']}</td>
</tr>
<tr>
<td id='row1'>{$ibforums->lang['poll_choices']}</td>
<td id='row1' width="100%" valign="top"><textarea cols='60' rows='12' wrap='soft' name='PollAnswers' class='textinput'>$data</textarea>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type='checkbox' size='40' value='1' name='allow_disc' class='forminput'></td>
<td width="100%">{$ibforums->lang['poll_only']}</td>
</tr>
</table></td>
</tr>
EOF;
}
}
?>
+52
View File
@@ -0,0 +1,52 @@
<?php
class skin_printpage {
function pp_postentry($poster, $entry ) {
global $ibforums;
return <<<EOF
<b>{$ibforums->lang['by']}: {$entry['author_name']}</b> {$this->class['LANG']['on']} {$entry['post_date']}
<br><br>
{$entry['post']}
<hr>
EOF;
}
function pp_end() {
global $ibforums;
return <<<EOF
<i>{$ibforums->lang['end']}</i>
</td>
</tr>
</table>
EOF;
}
function pp_header($forum_name, $topic_title, $topic_starter) {
global $ibforums;
return <<<EOF
<html>
<head>
<title>{$ibforums->vars['board_name']} [Powered by IB Forums]</title>
</head>
<body bgcolor='#FFFFFF' alink='#000000' vlink='#000000' link='#000000'>
<table width='90%' border='0' align='center'>
<tr>
<td>
<font face='arial' size='3' color='#000000'>
<b>{$ibforums->lang['title']}</b>
<br><br>
-{$ibforums->vars['board_name']}<br>
+--{$ibforums->lang['forum']}: $forum_name<br>
+---{$ibforums->lang['topic']}: $topic_title {$ibforums->lang['start']} $topic_starter
<hr noshade size='1' color='#000000'>
<br>
<br>
EOF;
}
}
?>
+166
View File
@@ -0,0 +1,166 @@
<?php
class skin_profile {
function user_edit($info) {
global $ibforums;
return <<<EOF
<tr>
<td align='left'><a href='{$info['base_url']}&act=UserCP&CODE=22'>{$ibforums->lang['edit_my_sig']}</a> |
<a href='{$info['base_url']}&act=UserCP&CODE=24'>{$ibforums->lang['edit_avatar']}</a> |
<a href='{$info['base_url']}&act=UserCP&CODE=01'>{$ibforums->lang['edit_profile']}</a></td>
</tr>
EOF;
}
function show_profile($info) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
<tr>
<td><span id='pagetitle'>{$info['name']}</span></td>
</tr>
<tr>
<td align='left'><a href='{$info['base_url']}&act=Search&CODE=01&cat_forum=cat&cats=all&useridsearch={$info['mid']}'>{$ibforums->lang['find_posts']}</a> |
<a href='{$info['base_url']}&act=Msg&CODE=02&MID={$info['mid']}'>{$ibforums->lang['add_to_contact']}</a></td>
</tr>
<!--MEM OPTIONS-->
</table>
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
<tr>
<td>
<table cellpadding='0' cellspacing='1' border='0' width='100%' bgcolor='{$ibforums->skin['tbl_border']}'>
<tr>
<td width='50%' valign='top' id='row1'>
<table cellpadding='6' cellspacing='1' border='0' width='100%' id='row1'>
<tr>
<td align='center' colspan='2' id='titlemedium'>{$ibforums->lang['active_stats']}</td>
</tr>
<tr>
<td align='left' width='30%' valign='top'><b>{$ibforums->lang['total_posts']}</b></td>
<td align='left' id='bottomborder'><b>{$info['posts']}</b><br>( {$info['total_pct']}% {$ibforums->lang['total_percent']} )</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['posts_per_day']}</b></td>
<td align='left' id='bottomborder'><b>{$info['posts_day']}</b></td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['joined']}</b></td>
<td align='left' id='bottomborder'><b>{$info['joined']}</b></td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['fav_forum']}</b></td>
<td align='left'><a href='{$info['base_url']}&act=SF&f={$info['fav_id']}'>{$info['fav_forum']}</a><br>{$info['fav_posts']} {$ibforums->lang['fav_posts']}<br>( {$info['percent']}% {$ibforums->lang['fav_percent']} )</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['user_local_time']}</b></td>
<td align='left'>{$info['local_time']}</td>
</tr>
</table>
</td>
<!-- Communication -->
<td width='50%' valign='top' id='row1'>
<table cellpadding='6' cellspacing='1' border='0' width='100%' id='row1'>
<tr>
<td align='center' colspan='2' id='titlemedium'>{$ibforums->lang['communicate']}</td>
</tr>
<tr>
<td align='left' width='30%' valign='top'><b>{$ibforums->lang['email']}</b></td>
<td align='left' id='bottomborder'>{$info['email']}</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['aim']}</b></td>
<td align='left' id='bottomborder'>{$info['aim_name']}</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['icq']}</b></td>
<td align='left' id='bottomborder'>{$info['icq_number']}</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['yahoo']}</b></td>
<td align='left' id='bottomborder'>{$info['yahoo']}</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['msn']}</b></td>
<td align='left' id='bottomborder'>{$info['msn_name']}</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['pm']}</b></td>
<td align='left'><a href='{$info['base_url']}&act=Msg&CODE=4&MID={$info['mid']}'>{$ibforums->lang['click_here']}</a></td>
</tr>
</table>
</td>
<!-- END CONTENT ROW 1 -->
<!-- information -->
</tr>
<tr>
<td width='50%' valign='top' id='row1'>
<table cellpadding='6' cellspacing='1' border='0' width='100%' id='row1'>
<tr>
<td align='center' colspan='2' id='titlemedium'>{$ibforums->lang['info']}</td>
</tr>
<tr>
<td align='left' width='30%' valign='top'><b>{$ibforums->lang['mgroup']}</b></td>
<td align='left' id='bottomborder'>{$info['group_title']}</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['mtitle']}</b></td>
<td align='left' id='bottomborder'>{$info['member_title']}</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['homepage']}</b></td>
<td align='left' id='bottomborder'>{$info['homepage']}</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['birthday']}</b></td>
<td align='left' id='bottomborder'>{$info['birthday']}</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['location']}</b></td>
<td align='left' id='bottomborder'>{$info['location']}</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['interests']}</b></td>
<td align='left'>{$info['interests']}</td>
</tr>
</table>
</td>
<!-- Profile -->
<td width='50%' valign='top' id='row1'>
<table cellpadding='6' cellspacing='1' border='0' width='100%' id='row1'>
<tr>
<td align='center' colspan='2' id='titlemedium'>{$ibforums->lang['post_detail']}</td>
</tr>
<tr>
<td align='left' width='30%' valign='top'><b>{$ibforums->lang['avatar']}</b></td>
<td align='left' id='bottomborder'>{$info['avatar']}</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['siggie']}</b></td>
<td align='left'>{$info['signature']}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan='2' id='row2' align='center' style='height:24px'>&lt;( <a href='javascript:history.go(-1)'>{$ibforums->lang['back']}</a> )</td>
</tr>
</table>
</td>
</tr>
</table>
EOF;
}
}
?>
+219
View File
@@ -0,0 +1,219 @@
<?php
class skin_register {
function lost_pass_form() {
global $ibforums;
return <<<EOF
<br>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post">
<input type='hidden' name='act' value='Reg'>
<input type='hidden' name='CODE' value='11'>
<table cellpadding='0' cellspacing='4' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
<tr>
<td valign='middle' align='left'><b>{$ibforums->lang['lp_header']}</b><br><br>{$ibforums->lang['lp_text']}</td>
</tr>
</table>
<br>
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' colspan='2' id='titlemedium'>{$ibforums->lang['complete_form']}</td>
</tr>
<tr>
<td id='row1' width='40%'>{$ibforums->lang['lp_user_name']}</td>
<td id='row1'><input type='text' size='32' maxlength='32' name='member_name' class='forminput'></td>
</tr>
<tr>
<td id='row2' align='center' colspan='2'>
<input type="submit" value="{$ibforums->lang['lp_send']}" class='forminput'>
</td></tr></table>
</td></tr></table>
</form>
EOF;
}
function show_authorise($member) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' id='titlemedium'>{$ibforums->lang['registration_process']}</td>
</tr>
<tr>
<td id='row1'>{$ibforums->lang['thank_you']} {$member['name']}. {$ibforums->lang['auth_text']} {$member['email']}</td>
</tr>
</table>
</td>
</tr>
</table>
EOF;
}
function show_preview($member) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' id='titlemedium'>{$ibforums->lang['registration_process']}</td>
</tr>
<tr>
<td id='row1'>{$ibforums->lang['thank_you']} {$member['name']}. {$ibforums->lang['preview_reg_text']}</td>
</tr>
</table>
</td>
</tr>
</table>
EOF;
}
function show_dumb_form($type="reg") {
global $ibforums;
return <<<EOF
<script language='javascript'>
<!--
function Validate() {
// Check for Empty fields
if (document.REG.uid.value == "" || document.REG.aid.value == "") {
alert ("{$ibforums->lang['js_blanks']}");
return false;
}
}
//-->
</script>
<br>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='REG' onSubmit='return Validate()'>
<input type='hidden' name='act' value='Reg'>
<input type='hidden' name='CODE' value='03'>
<input type='hidden' name='type' value='$type'>
<table cellpadding='0' cellspacing='4' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
<tr>
<td valign='middle' align='left'><b>{$ibforums->lang['dumb_header']}</b><br><br>{$ibforums->lang['dumb_text']}</td>
</tr>
</table>
<br>
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' colspan='2' id='titlemedium'>{$ibforums->lang['complete_form']}</td>
</tr>
<tr>
<td id='row1' width='40%'>{$ibforums->lang['user_id']}</td>
<td id='row1'><input type='text' size='32' maxlength='32' name='uid' class='forminput'></td>
</tr>
<tr>
<td id='row2' width='40%'>{$ibforums->lang['val_key']}</td>
<td id='row2'><input type='text' size='32' maxlength='50' name='aid' class='forminput'></td>
</tr>
<tr>
<td id='row2' align='center' colspan='2'>
<input type="submit" value="{$ibforums->lang['dumb_submit']}" class='forminput'>
</td></tr></table>
</td></tr></table>
</form>
EOF;
}
function ShowForm($data) {
global $ibforums;
return <<<EOF
<script language='javascript'>
<!--
function Validate() {
// Check for Empty fields
if (document.REG.UserName.value == "" || document.REG.PassWord.value == "" || document.REG.PassWord_Check.value == "" || document.REG.EmailAddress.value == "") {
alert ("{$ibforums->lang['js_blanks']}");
return false;
}
// Have we checked the checkbox?
if (document.REG.agree.checked == true) {
return true;
} else {
alert ("{$ibforums->lang['js_no_check']}");
return false;
}
}
//-->
</script>
<br>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='REG' onSubmit='return Validate()'>
<input type='hidden' name='act' value='Reg'>
<input type='hidden' name='CODE' value='02'>
<table cellpadding='0' cellspacing='4' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
<tr>
<td valign='middle' align='left'>{$ibforums->lang['reg_header']}</b><br><br>{$data['TEXT']}</td>
</tr>
</table>
<br>
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' colspan='2' id='titlemedium'>{$ibforums->lang['complete_form']}</td>
</tr>
<tr>
<td id='row1' width='40%'>{$ibforums->lang['user_name']}</td>
<td id='row1'><input type='text' size='32' maxlength='64' name='UserName' class='forminput'></td>
</tr>
<tr>
<td id='row2' width='40%'>{$ibforums->lang['pass_word']}</td>
<td id='row2'><input type='password' size='32' maxlength='32' name='PassWord' class='forminput'></td>
</tr>
<tr>
<td id='row2' width='40%'>{$ibforums->lang['re_enter_pass']}</td>
<td id='row2'><input type='password' size='32' maxlength='32' name='PassWord_Check' class='forminput'></td>
</tr>
<tr>
<td id='row1' width='40%'>{$ibforums->lang['email_address']}</td>
<td id='row1'><input type='text' size='32' maxlength='50' name='EmailAddress' class='forminput'></td>
</tr>
<tr>
<td id='row1' width='40%'>{$ibforums->lang['email_address_two']}</td>
<td id='row1'><input type='text' size='32' maxlength='50' name='EmailAddress_two' class='forminput'></td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' id='titlemedium'>{$ibforums->lang['terms_service']}</td>
</tr>
<tr>
<td id='row1' align='center'>{$ibforums->lang['terms_service_text']}<br>
<textarea cols='75' rows='9' wrap='soft' name='Post' class='textinput' style='font-size:10px'>{$data[RULES]}</textarea>
<br><br><b>{$ibforums->lang['agree_submit']}</b>&nbsp;<input type='checkbox' name='agree' value='1'>
</td>
</tr>
<tr>
<td id='row2' align='center'>
<input type="submit" value="{$ibforums->lang['submit_form']}" class='forminput'>
</td></tr></table>
</td></tr></table>
</form>
EOF;
}
}
?>
+292
View File
@@ -0,0 +1,292 @@
<?php
class skin_search {
//
function RenderRow($Data) {
global $ibforums;
return <<<EOF
<!-- Begin Topic Entry {$Data['tid']} -->
<tr>
<td align='center' id='forum2'>{$Data['folder_img']}</td>
<td align='center' width='3%' id='forum1'>{$Data['topic_icon']}</td>
<td id='forum2'>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td valign='middle'>{$Data['go_new_post']}</td>
<td width='100%'><span id='linkthru'>{$Data['prefix']} <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?act=ST&f={$Data['forum_id']}&t={$Data['tid']}&hl={$Data['keywords']}&s={$ibforums->session_id}' id='linkthru'>{$Data['title']}</a></span> {$Data[PAGES]}</td>
</tr>
</table>
<span id='desc'>{$Data['description']}</span></td>
<td id='forum2' width='20%' align='center'><span id="linkthru"><a href="{$ibforums->base_url}&act=SF&f={$Data['forum_id']}">{$Data['forum_name']}</a></span></td>
<td align='center' id='forum1'>{$Data['starter']}</td>
<td align='center' id='forum2'>{$Data['posts']}</td>
<td align='center' id='forum1'>{$Data['views']}</td>
<td id='forum1'>{$Data['last_post']}<br><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$Data['forum_id']}&t={$Data['tid']}&view=getlastpost'>{$Data['last_text']}</a> <b>{$Data['last_poster']}</b></td>
</tr>
<!-- End Topic Entry {$Data['tid']} -->
EOF;
}
function end($Data) {
global $ibforums;
return <<<EOF
<tr><td colspan='8' id='titlemedium'>&nbsp;</td></tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellpadding='0 'cellspacing='4' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
<tr>
<td valign='middle' width='50%' nowrap align='left'>{$Data[SHOW_PAGES]}</td>
</tr>
</table>
<table cellpadding='0' cellspacing='4' border='0' width='50%' align='center'>
<tr>
<td valign='middle' nowrap>{$ibforums->skin['B_NEW']}&nbsp;{$ibforums->lang['pm_open_new']}</td>
<td valign='middle' nowrap>{$ibforums->skin['B_HOT']}&nbsp;{$ibforums->lang['pm_hot_new']}</td>
<td valign='middle' nowrap>{$ibforums->skin['B_POLL']}&nbsp;{$ibforums->lang['pm_poll']}</td>
<td valign='middle' nowrap>{$ibforums->skin['B_LOCKED']}&nbsp;{$ibforums->lang['pm_locked']}</td>
</tr>
<tr>
<td valign='middle' nowrap>{$ibforums->skin['B_NORM']}&nbsp;{$ibforums->lang['pm_open_no']}</td>
<td valign='middle' nowrap>{$ibforums->skin['B_HOT_NN']}&nbsp;{$ibforums->lang['pm_hot_no']}</td>
<td valign='middle' nowrap>{$ibforums->skin['B_POLL_NN']}&nbsp;{$ibforums->lang['pm_poll_no']}</td>
<td valign='middle' nowrap>{$ibforums->skin['B_MOVED']}&nbsp;{$ibforums->lang['pm_moved']}</td>
</tr>
</table>
EOF;
}
function Form($forums, $cats) {
global $ibforums;
return <<<EOF
<!-- Search Form -->
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='sForm'>
<input type='hidden' name='act' value='Search'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='CODE' value='01'>
$hidden_fields
<br>
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td colspan='2' id="titlemedium" background='{$ibforums->vars['img_url']}/tile_sub.gif' align='center'>{$ibforums->lang['keywords_title']}</td>
</tr>
<tr>
<td id='title' width='50%'><b>{$ibforums->lang['key_search']}</b></td>
<td id='title' width='50%'><b>{$ibforums->lang['mem_search']}</b></td>
</tr>
<tr>
<td id='row1' valign='top'><input type='text' maxlength='100' size='40' name='keywords' class='forminput'>&nbsp;<select name='smethod' class='forminput'><option value='simple'>{$ibforums->lang['se_simple']}</option><option value='advanced'>{$ibforums->lang['se_advanced']}</option></select><br><br>{$ibforums->lang['keysearch_text']}</td>
<td id='row1' valign='top'><input type='text' maxlength='100' size='50' name='namesearch' class='forminput'><br><br><input name='exactname' type='radio' value='1' checked>&nbsp;{$ibforums->lang['match_name_ex']}<br><input name='exactname' type='radio' value='1'>&nbsp;{$ibforums->lang['match_name_pa']}</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td colspan='2' id="titlemedium" background='{$ibforums->vars['img_url']}/tile_sub.gif' align='center'>{$ibforums->lang['search_options']}</td>
</tr>
<tr>
<td id='title' width='50%' valign='top'><b>{$ibforums->lang['search_where']}</b></td>
<td id='title' width='50%' valign='top'><b>{$ibforums->lang['search_refine']}</b></td>
</tr>
<tr>
<td id='row1' valign='middle'>
<table cellspacing='4' cellpadding='0' width='100%' align='center' border='0'>
<tr>
<td valign='top' width='40%' nowrap><input type='radio' name='cat_forum' value='cat'>&nbsp;<b>{$ibforums->lang['search_cats']}</b></td>
<td valign='top' width='60%'>$cats</td>
</tr>
<tr>
<td valign='top' nowrap><input type='radio' name='cat_forum' value='forum' checked>&nbsp;<b>{$ibforums->lang['search_forums']}</b></td>
<td valign='top'>$forums</td>
</tr>
<tr>
<td><input type='radio' name='search_in' value='posts' checked>&nbsp;{$ibforums->lang['in_posts']}</td>
<td><input type='radio' name='search_in' value='titles'>&nbsp;{$ibforums->lang['in_topics']}</td>
</tr>
</table>
</td>
<td id='row1' valign='top'>
<table cellspacing='4' cellpadding='0' width='100%' align='center' border='0'>
<tr>
<td valign='top'>
<b>{$ibforums->lang['search_from']}</b>
<br>
<select name='prune' class='forminput'>
<option value='1'>{$ibforums->lang['today']}
<option value='7'>{$ibforums->lang['this_week']}
<option value='30' selected>{$ibforums->lang['this_month']}
<option value='365'>{$ibforums->lang['this_year']}
<option value='0'>{$ibforums->lang['ever']}
</select>
<br>{$ibforums->lang['and']}&nbsp;<input type='radio' name='prune_type' value='older' class='forminput' style='background-color:{$ibforums->skin['MISCBACK_ONE']}'>&nbsp;{$ibforums->lang['older']}&nbsp;<input type='radio' name='prune_type' value='newer' class='forminput' style='background-color:{$ibforums->skin['MISCBACK_ONE']}' checked>&nbsp;{$ibforums->lang['newer']}
</td>
<td valign='top'>
<b>{$ibforums->lang['sort_results']}</b><br>
<select name='sort_key' class='forminput'>
<option value='last_post'>{$ibforums->lang['last_date']}</option>
<option value='posts'>{$ibforums->lang['number_topics']}</option>
<option value='starter_name'>{$ibforums->lang['poster_name']}</option>
<option value='forum_id'>{$ibforums->lang['forum_name']}</option>
</select>
<br><input type='radio' name='sort_order' value='desc' checked>{$ibforums->lang['descending']}
<br><input type='radio' name='sort_order' value='asc''>{$ibforums->lang['ascending']}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td id='row1' colspan='2' align='center'><input type='submit' value='{$ibforums->lang['do_search']}' class='forminput'></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<SCRIPT LANGUAGE="JavaScript1.1">
function chooseForum() {
document.sForm.cat_forum[1].checked = true;
}
function chooseCat() {
document.sForm.cat_forum[0].checked = true;
}
</SCRIPT>
EOF;
}
function active_start($Data) {
global $ibforums;
return <<<EOF
<script language='Javascript'>
<!--
function checkvalues() {
f = document.dateline;
if (f.st_day.value < f.end_day.value) {
alert("{$ibforums->lang['active_js_error']}");
return false;
}
if (f.st_day.value == f.end_day.value) {
alert("{$ibforums->lang['active_js_error']}");
return false;
}
}
-->
</script>
<br>
<table cellpadding='0 'cellspacing='4' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
<tr>
<td valign='middle' nowrap align='left'><span id='pagetitle'>{$ibforums->lang['active_topics']}</span><br>{$Data[SHOW_PAGES]}</td>
<td valign='middle' align='right'>
<form action='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}' method='POST' name='dateline' onSubmit='return checkvalues();'>
<input type='hidden' name='act' value='Search'>
<input type='hidden' name='CODE' value='getactive'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
</td>
</tr>
</table>
<table cellpadding='2' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td id='maintitle' background='{$ibforums->vars['img_url']}/tile_back.gif' align='center'>
{$ibforums->lang['active_st_text']}
<select name='st_day' class='forminput'>
<option value='s1'>{$ibforums->lang['active_yesterday']}</option>
<option value='s2'>2 {$ibforums->lang['active_days']}</option>
<option value='s3'>3 {$ibforums->lang['active_days']}</option>
<option value='s4'>4 {$ibforums->lang['active_days']}</option>
<option value='s5'>5 {$ibforums->lang['active_days']}</option>
<option value='s6'>6 {$ibforums->lang['active_days']}</option>
<option value='s7'>{$ibforums->lang['active_week']}</option>
<option value='s30'>{$ibforums->lang['active_month']}</option>
</select>
&nbsp;&nbsp;{$ibforums->lang['active_end_text']}&nbsp;&nbsp;
<select name='end_day' class='forminput'>
<option value='e0'>{$ibforums->lang['active_today']}</option>
<option value='e1'>{$ibforums->lang['active_yesterday']}</option>
<option value='e2'>2 {$ibforums->lang['active_days']}</option>
<option value='e3'>3 {$ibforums->lang['active_days']}</option>
<option value='e4'>4 {$ibforums->lang['active_days']}</option>
<option value='e5'>5 {$ibforums->lang['active_days']}</option>
<option value='e6'>6 {$ibforums->lang['active_days']}</option>
<option value='e7'>{$ibforums->lang['active_week']}</option>
</select>
&nbsp;&nbsp;<input type='submit' value='&gt;&gt;' class='forminput'></form>
</td>
</tr>
<tr>
<td>
<table cellpadding='0' cellspacing='0' border='0' width='100%' align='center'>
<tr>
<td id='mainbg'>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td id='titlemedium' colspan='2' background='{$ibforums->vars['img_url']}/tile_sub.gif'>&nbsp;</td>
<td align='left' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_topic_title']}</td>
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_forum_name']}</td>
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_topic_starter']}</td>
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_replies']}</td>
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_hits']}</td>
<td id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_last_action']}</td>
</tr>
EOF;
}
function start($Data) {
global $ibforums;
return <<<EOF
<!-- Cgi-bot Start Forum page unique top -->
<table cellpadding='0 'cellspacing='4' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
<tr>
<td valign='middle' width='50%' nowrap align='left'>{$Data[SHOW_PAGES]}</td>
</tr>
</table>
<table cellpadding='1' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' border='0' width='100%' align='center'>
<tr>
<td id='mainbg'>
<table cellpadding='2' cellspacing='1' border='0' width='100%'>
<tr>
<td id='titlemedium' colspan='2' background='{$ibforums->vars['img_url']}/tile_sub.gif'>&nbsp;</td>
<td align='left' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_topic_title']}</td>
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_forum_name']}</td>
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_topic_starter']}</td>
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_replies']}</td>
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_hits']}</td>
<td id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_last_action']}</td>
</tr>
EOF;
}
function active_none() {
global $ibforums;
return <<<EOF
<tr><td colspan='8' id='row1' align='center'><b>{$ibforums->lang['active_no_topics']}</b></td></tr>
EOF;
}
}
?>
+114
View File
@@ -0,0 +1,114 @@
<?php
class skin_stats {
function page_title($title) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
<tr>
<td valign='middle' align='left'><span id='pagetitle'>{$title}</td>
</tr>
</table>
EOF;
}
function group_strip( $group ) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
<tr>
<td colspan='4' id='titlemedium' align='center' background='{$ibforums->vars['img_url']}/tile_sub.gif'>$group</td>
</tr>
<tr>
<td width='30%' align='left' id='category' valign='middle'>{$ibforums->lang['leader_name']}</td>
<td width='40%' align='center' id='category' valign='middle'>{$ibforums->lang['leader_forums']}</td>
<td align='center' width='25%' id='category' valign='middle'>{$ibforums->lang['leader_location']}</td>
<td align='center' width='5%' id='category' valign='middle'>&nbsp;</td>
</tr>
EOF;
}
function leader_row($info, $forums) {
global $ibforums;
return <<<EOF
<tr>
<td align='left' id='row1' valign='middle'><a href='{$ibforums->base_url}&act=Profile&MID={$info['id']}'>{$info['name']}</a></td>
<td align='center' id='row1' valign='middle'>$forums</td>
<td align='center' id='row1' valign='middle'>{$info['location']}</td>
<td align='center' id='row2' valign='middle'>{$info['msg_icon']}</td>
</tr>
EOF;
}
function close_strip() {
global $ibforums;
return <<<EOF
</table>
</td>
</tr>
</table>
<br>
EOF;
}
function top_poster_header() {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td>
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
<tr>
<td width='30%' align='left' background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium' valign='middle'>{$ibforums->lang['member']}</td>
<td width='20%' align='center' background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium' valign='middle'>{$ibforums->lang['member_joined']}</td>
<td align='center' width='15%' background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium' valign='middle'>{$ibforums->lang['member_posts']}</td>
<td align='center' width='15%' background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium' valign='middle'>{$ibforums->lang['member_today']}</td>
<td align='center' width='20%' background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium' valign='middle'>{$ibforums->lang['member_percent']}</td>
</tr>
EOF;
}
function top_poster_row($info) {
global $ibforums;
return <<<EOF
<tr>
<td align='left' id='row1' valign='middle'><a href='{$ibforums->base_url}&act=Profile&MID={$info['id']}'>{$info['name']}</a></td>
<td align='center' id='row1' valign='middle'>{$info['joined']}</td>
<td align='center' id='row1' valign='middle'>{$info['posts']}</td>
<td align='center' id='row2' valign='middle'>{$info['tpost']}</td>
<td align='center' id='row2' valign='middle'>{$info['today_pct']}%</td>
</tr>
EOF;
}
function top_poster_footer($info) {
global $ibforums;
return <<<EOF
<tr>
<td colspan='5' align='center' id='titlemedium' valign='middle'>{$ibforums->lang['total_today']} $info</td>
</tr>
</table>
</td>
</tr>
</table>
EOF;
}
function top_poster_no_info() {
global $ibforums;
return <<<EOF
<tr>
<td colspan='5' align='center' id='row1' valign='middle'>{$ibforums->lang['no_info']}</td>
</tr>
EOF;
}
}
?>
+258
View File
@@ -0,0 +1,258 @@
<?php
class skin_topic {
function mod_cp_link($data) {
global $ibforums;
return <<<EOF
( <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f=$data'>{$ibforums->lang['mod_cp']}</a> )
EOF;
}
function report_link($data) {
global $ibforums;
return <<<EOF
&nbsp;&nbsp;<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Report&f={$data[FORUM_ID]}&t={$data[TOPIC_ID]}&p={$data[POST_ID]}'>{$ibforums->lang['snitch_geezer_to_a_copper']}</a>
EOF;
}
function ip_show($data) {
global $ibforums;
return <<<EOF
{$ibforums->lang['ip']}: $data
EOF;
}
function golastpost_link($fid, $tid) {
global $ibforums;
return <<<EOF
( <a href='{$ibforums->base_url}&act=ST&f=$fid&t=$tid&view=getnewpost'>{$ibforums->lang['go_new_post']}</a> )
EOF;
}
function Mod_Panel($data, $fid, $tid, $modcp="&nbsp;") {
global $ibforums;
return <<<EOF
<br>
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
<tr>
<td align='left'>$modcp</td>
<td align='right'>
<form method='POST' name='modform' action='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='t' value='$tid'>
<input type='hidden' name='f' value='$fid'>
<input type='hidden' name='st' value='{$ibforums->input['st']}'>
<input type='hidden' name='act' value='Mod'>
<select name='CODE' class='forminput'>
<option value='-1'>{$ibforums->lang['moderation_ops']}</option>
$data
</select>&nbsp;<input type='submit' value='{$ibforums->lang['jmp_go']}' class='forminput'>
</form>
</td>
</tr>
</table>
EOF;
}
function mod_wrapper($id="", $text="") {
global $ibforums;
return <<<EOF
<option value='$id'>$text</option>
EOF;
}
function TableFooter($data) {
global $ibforums;
return <<<EOF
</table></td>
</tr>
<tr>
<td id='mainbg'>
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
<tr>
<td id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif' width='100%'>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td align='left'><b>{$ibforums->lang['topic_stats']}</b></td>
<td align='right'><b><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Track&f={$data['FORUM']['id']}&t={$data['TOPIC']['tid']}'>{$ibforums->lang['track_topic']}</a> |
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Forward&f={$data['FORUM']['id']}&t={$data['TOPIC']['tid']}'>{$ibforums->lang['forward']}</a> |
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Print&f={$data['FORUM']['id']}&t={$data['TOPIC']['tid']}'>{$ibforums->lang['print']}</a></b></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width='{$ibforums->skin['tbl_width']}' align='center' border='0' cellspacing='0' cellpadding='4'>
<tr>
<td width='100%'>{$data[TOPIC][SHOW_PAGES]}<br><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=SF&f={$data['FORUM']['id']}'>Back to {$data['FORUM']['name']}</a></td>
<td align='right' nowrap>{$data[TOPIC][REPLY_BUTTON]}<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Post&CODE=00&f={$data[FORUM]['id']}' title='{$ibforums->lang['start_new_topic']}'>{$ibforums->skin['A_POST']}</a>{$data[TOPIC][POLL_BUTTON]}</td>
</tr>
</table>
<br>
<table width='{$ibforums->skin['tbl_width']}' align='center' border='0' cellspacing='0' cellpadding='3'>
<tr>
<td width='100%' align='right'>{$data[FORUM]['JUMP']}</td>
</tr>
</table>
<br>
EOF;
}
function RenderRow($data) {
global $ibforums;
return <<<EOF
<!--Begin Msg Number {$data[POST]['pid']}-->
<tr>
<td valign='middle' id='posthead'><a name='entry{$data[POST]['pid']}'></a><span id='{$data[POST]['name_css']}'>{$data[POSTER]['name']}</span></td>
<td id='posthead' valign='top'>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td id='posthead'>{$data[POST]['post_icon']}<b>{$ibforums->lang['posted_on']}</b> {$data[POST]['post_date']}</td>
<td id='posthead' align='right'>{$data[POST]['delete_button']}{$data[POST]['edit_button']}<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Post&CODE=06&f={$ibforums->input[f]}&t={$ibforums->input[t]}&p={$data[POST]['pid']}'>{$ibforums->skin['P_QUOTE']}</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign='top' id='post1'>
{$data[POSTER]['avatar']}<br><br>
{$data[POSTER]['title']}<br>
{$data[POSTER]['member_rank_img']}<br><br>
{$data[POSTER]['member_group']}<br>
{$data[POSTER]['member_posts']}<br>
{$data[POSTER]['member_number']}<br>
{$data[POSTER]['member_joined']}<br>
{$data[POSTER][WARN_GFX]}<br><br>
<img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='160' height='1'><br>
</td>
<td width='100%' valign='top' id='post1'><span id='postcolor'>{$data[POST]['post']} {$data[POST]['attachment']} {$data[POST]['signature']}</td>
</tr>
<tr>
<td id='postfoot' align='left'>&nbsp;</td>
<td id='postfoot' nowrap align='left'>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td id='postfoot' align='left' valign='middle' nowrap>{$data[POSTER]['message_icon']}{$data[POSTER]['email_icon']}{$data[POSTER]['website_icon']}{$data[POSTER]['icq_icon']}{$data[POSTER]['aol_icon']}{$data[POSTER]['yahoo_icon']}{$data[POSTER]['msn_icon']}</td>
<td id='postfoot' valign='middle' align='right'>{$data[POST]['ip_address']}{$data[POST]['report_link']}</td>
<td id='postfoot' valign='middle' align='right' width='2%'><a href='javascript:scroll(0,0);'><img src='{$ibforums->vars['img_url']}/p_up.gif' alt='Top' border='0'></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td id='postsep' colspan='2'><img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='1' height='1'></td>
</tr>
<!-- end Message -->
EOF;
}
function PageTop($data) {
global $ibforums;
return <<<EOF
<script language='javascript'>
<!--
function delete_post(theURL) {
if (confirm('{$ibforums->lang['js_del_1']}')) {
window.location.href=theURL;
}
else {
alert ('{$ibforums->lang['js_del_2']}');
}
}
function PopUp(url, name, width,height,center,resize,scroll,posleft,postop) {
if (posleft != 0) { x = posleft }
if (postop != 0) { y = postop }
if (!scroll) { scroll = 1 }
if (!resize) { resize = 1 }
if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {
X = (screen.width - width ) / 2;
Y = (screen.height - height) / 2;
}
if (scroll != 0) { scroll = 1 }
var Win = window.open( url, name, 'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no');
}
//-->
</script>
<a name='top'></a>
<!-- Cgi-bot Start Forum page unique top -->
<table width='{$ibforums->skin['tbl_width']}' border='0' cellspacing='0' cellpadding='4' align='center'>
<tr>
<td width='100%'>{$data['TOPIC']['SHOW_PAGES']}&nbsp;{$data['TOPIC']['go_new']}</td>
<td align='right' nowrap>{$data[TOPIC][REPLY_BUTTON]}<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Post&CODE=00&f={$data[FORUM]['id']}' title='{$ibforums->lang['start_new_topic']}'>{$ibforums->skin['A_POST']}</a>{$data[TOPIC][POLL_BUTTON]}</td>
</tr>
</table>
<table width='{$ibforums->skin['tbl_width']}' border='0' cellspacing='1' cellpadding='0' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<tr>
<td background='{$ibforums->vars['img_url']}/tile_back.gif' id='maintitleback'>
<table width='100%' border='0' cellspacing='0' cellpadding='3'>
<tr>
<td><img src='{$ibforums->vars['img_url']}/nav_m.gif' alt='' width='8' height='8'></td>
<td width='100%' id='maintitle'><b>{$data['TOPIC']['title']}</b>{$data['TOPIC']['description']}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td id='mainbg'>
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
<tr>
<td width='100%' id='titlemedium' nowrap background='{$ibforums->vars['img_url']}/tile_sub.gif' colspan="2">
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td align='left'><b>&laquo; <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$data[FORUM]['id']}&t={$data[TOPIC]['tid']}&view=old'>{$ibforums->lang['t_old']}</a> | <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$data[FORUM]['id']}&t={$data[TOPIC]['tid']}&view=new'>{$ibforums->lang['t_new']}</a> &raquo;</b></td>
<td align='right'><b>
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Track&f={$data['FORUM']['id']}&t={$data['TOPIC']['tid']}'>{$ibforums->lang['track_topic']}</a> |
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Forward&f={$data['FORUM']['id']}&t={$data['TOPIC']['tid']}'>{$ibforums->lang['forward']}</a> |
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Print&f={$data['FORUM']['id']}&t={$data['TOPIC']['tid']}'>{$ibforums->lang['print']}</a></b></td>
</tr>
</table>
</td>
</tr>
<!-- Cgi-bot End Forum page unique top -->
EOF;
}
function Show_attachments_img($data) {
global $ibforums;
return <<<EOF
<br><br><center><b>{$ibforums->lang['pic_attach']}</b></center><br>
<table cellpadding='4' cellspacing='0' border='0' width='50%' align='center' id='fancyborder'>
<tr>
<td valign='middle' align='center'><img src='{$ibforums->vars['upload_url']}/{$data['file_name']}' border='0' alt='{$ibforums->lang['pic_attach']}'></td>
</tr>
</table>
<p>
EOF;
}
function Show_attachments($data) {
global $ibforums;
return <<<EOF
<br><br>
<table cellpadding='4' cellspacing='0' border='0' width='50%' align='center' id='fancyborder'>
<tr>
<td align='right' valign='middle' rowspan='2'><img src='{$ibforums->vars['mime_img']}/{$data['image']}' border='0' alt='User Attached Image'></td>
<td align='left'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Attach&type=post&id={$data['pid']}' target='_blank'>{$ibforums->lang['attach_dl']}</a></td>
</tr>
<tr>
<td align='left' valign='middle' width='98%'>{$data['name']} ( {$ibforums->lang['attach_hits']}: {$data['hits']} )</td>
</tr>
</table>
<br><br>
EOF;
}
}
?>
+919
View File
@@ -0,0 +1,919 @@
<?php
class skin_ucp {
function birthday($day,$month,$year) {
global $ibforums;
return <<<EOF
<tr>
<td id='row2' width='40%'><b>{$ibforums->lang['birthday']}</b></td>
<td id='row2'>
<select name='day' class='forminput'>{$day}</select>
<select name='month' class='forminput'>{$month}</select>
<select name='year' class='forminput'>{$year}</select>
</td>
</tr>
EOF;
}
function email_change($txt="") {
global $ibforums;
return <<<EOF
<td colspan='2' id='category'><b>{$ibforums->lang['change_email_title']}</b></td>
</tr>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='form1'>
<input type='hidden' name='act' value='UserCP'>
<input type='hidden' name='CODE' value='09'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<tr>
<td id='row1' colspan='2'>$txt</td>
</tr>
<tr>
<td id='row1' nowrap><b>{$ibforums->lang['ce_new_email']}</b></td>
<td id='row1' width='70%' align='left'><input type='text' name='in_email_1' value='' class='forminput'></td>
</tr>
<tr>
<td id='row1' nowrap><b>{$ibforums->lang['ce_new_email2']}</b></td>
<td id='row1' width='70%' align='left'><input type='text' name='in_email_2' value='' class='forminput'></td>
</tr>
<tr>
<td id='row2' align='center' colspan='2'><input type="submit" name='change_email' value="{$ibforums->lang['account_email_submit']}" class='forminput'></td>
</tr>
</form>
EOF;
}
function pass_change() {
global $ibforums;
return <<<EOF
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='form1'>
<input type='hidden' name='act' value='UserCP'>
<input type='hidden' name='CODE' value='29'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<td colspan='2' id='category'><b>{$ibforums->lang['account_pass_title']}</b></td>
</tr>
<tr>
<td id='row1' colspan='2'>{$ibforums->lang['pass_change_text']}</td>
</tr>
<tr>
<td id='row2' nowrap><b>{$ibforums->lang['account_pass_old']}</b></td>
<td id='row2' align='left'><input type='password' name='current_pass' value='' class='forminput'></td>
</tr>
<tr>
<td id='row1' nowrap><b>{$ibforums->lang['account_pass_new']}</b></td>
<td id='row1' align='left'><input type='password' name='new_pass_1' value='' class='forminput'></td>
</tr>
<tr>
<td id='row1' nowrap><b>{$ibforums->lang['account_pass_new2']}</b></td>
<td id='row1' align='left'><input type='password' name='new_pass_2' value='' class='forminput'></td>
</tr>
<tr>
<td id='row2' align='center' colspan='2'><input type="submit" name='s_pass' value="{$ibforums->lang['account_pass_submit']}" class='forminput'></td>
</tr>
</form>
EOF;
}
function personal_splash() {
global $ibforums;
return <<<EOF
<td colspan='2' id='category'>{$ibforums->lang['personal_ops']}</td>
</tr>
<tr>
<td id='row1' colspan='2'><b>{$ibforums->member['name']}</b>, {$ibforums->lang['personal_ops_txt']}</td>
</tr>
<tr>
<td id='row2' colspan='2'><span id='usermenu'><u><b><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=UserCP&CODE=01&MODE=2'>{$ibforums->lang['edit_profile']}</a></b></u></span><br><br>{$ibforums->lang['edit_profile_txt']}</td>
</tr>
EOF;
}
function member_title($title) {
global $ibforums;
return <<<EOF
<tr>
<td id='row1' width='40%'>{$ibforums->lang['member_title']}</td>
<td id='row1'><input type='text' size='40' maxlength='120' name='member_title' value='$title' class='forminput'></td>
</tr>
EOF;
}
function personal_avatar($data, $formextra="", $hidden_field="") {
global $ibforums;
return <<<EOF
<script langauge='javascript'>
<!--
function checkTheBox() {
var isUrl = "{$ibforums->vars['avatar_url']}";
if (isUrl == 1)
{
document.creator.choice[1].checked = true;
}
else
{
document.creator.choice[0].checked = true;
}
}
function showavatar(theURL) {
document.creator.choice[0].checked = true;
document.images.show_avatar.src=theURL+document.creator.gallery_list.options[document.creator.gallery_list.selectedIndex].value;
}
function select_url() {
document.creator.choice[1].checked = true;
}
function select_upload() {
document.creator.choice[1].checked = true;
document.creator.url_avatar.value = "";
}
function select_none() {
document.creator.choice[2].checked = true;
}
//-->
</script>
<form action='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}' method='post' onload='checkTheBox' $formextra name='creator'>
<input type='hidden' name='act' value='UserCP'>
<input type='hidden' name='CODE' value='25'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
$hidden_field
<td align='left' colspan='2' id='category'><b>{$ibforums->lang['av_current']}</b></td>
</tr>
<tr>
<td id='row2' width='40%' valign='middle'>{$ibforums->lang['this_avatar']}</td>
<td id='row2' width='60%' valign='middle'>{$data[CUR_AV]}</td>
<tr>
<td valign='left' colspan='2' id='category'><input type='radio' name='choice' value='gallery' onclick='return true;'><b>{$ibforums->lang['avatar_pre_title']}</b></td>
</tr>
<tr>
<td id='row1' width='40%' valign='top'>{$ibforums->lang['avatar_pre_txt']}</td>
<td id='row1' valign='top'>{$data[AVATARS]} &nbsp; &nbsp; {$data[SHOW_AVS]}</td>
</tr>
EOF;
}
function avatar_upload_field($text="") {
global $ibforums;
return <<<EOF
<tr>
<td id='row1' width='40%' valign='top'><b>{$ibforums->lang['upload_avatar']}</b></td>
<td id='row1'><input type='file' size='30' name='FILE_UPLOAD' class='forminput' onfocus='select_upload()' onclick='select_upload()'><br>$text</td>
</tr>
EOF;
}
function personal_avatar_URL($Profile, $avatar, $allowed_ext) {
global $ibforums;
return <<<EOF
<tr>
<td valign='left' colspan='2' id='category'><input type='radio' name='choice' value='url' checked onclick='return true;'><b>{$ibforums->lang['avatar_url_title']}</b></td>
</tr>
<tr>
<td id='row1' width='40%' valign='top'>{$ibforums->lang['avatar']}<br>{$ibforums->lang['avatar_url_ext']}<br><b>$allowed_ext</b></td>
<td id='row1'><input type='text' size='55' maxlength='80' name='url_avatar' value='$avatar' class='forminput' onfocus='select_url()'></td>
</tr>
<!-- IBF.UPLOAD_AVATAR -->
<tr>
<td id='row1' width='40%' valign='top'>{$ibforums->lang['avatar_dims']}<br>{$ibforums->lang['maximum']} {$ibforums->lang['width']} = {$ibforums->vars['av_width']} {$ibforums->lang['pixels']}<br>{$ibforums->lang['maximum']} {$ibforums->lang['height']} = {$ibforums->vars['av_height']} {$ibforums->lang['pixels']})</td>
<td id='row1'>{$ibforums->lang['width']} &nbsp; <input type='text' size='3' maxlength='3' name='Avatar_width' value='{$Profile[AVATAR_WIDTH]}' class='forminput' onfocus='select_url()'>&nbsp; x &nbsp; {$ibforums->lang['height']} &nbsp; <input type='text' size='3' maxlength='3' name='Avatar_height' value='{$Profile[AVATAR_HEIGHT]}' onfocus='select_url()' class='forminput'></td>
</tr>
EOF;
}
function personal_avatar_end() {
global $ibforums;
return <<<EOF
<tr>
<td valign='left' colspan='2' id='category'><input type='radio' name='choice' value='none' onclick='return true;'><b>{$ibforums->lang['av_tt_one']}</b></td>
</tr>
<tr>
<td id='row1' align='center' colspan='2'>{$ibforums->lang['av_tt_two']}</td>
</tr>
<tr>
<td id='row2' align='center' colspan='2'><input type="submit" value="{$ibforums->lang['avatar_pre_submit']}" class='forminput'></td>
</tr>
</form>
EOF;
}
function personal_splash_av() {
global $ibforums;
return <<<EOF
<tr>
<td id='row2' colspan='2'><span id='usermenu'><b><u><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=UserCP&CODE=01&MODE=1'>{$ibforums->lang['avatar_ops']}</a></u></b></span><br><br>{$ibforums->lang['avatar_ops_txt']}</td>
</tr>
EOF;
}
function signature($sig, $t_sig) {
global $ibforums;
return <<<EOF
<script language="javascript1.2">
<!--
var MessageMax = "{$ibforums->lang['the_max_length']}";
var Override = "{$ibforums->lang['override']}";
function CheckLength() {
MessageLength = document.REPLIER.Post.value.length;
message = "";
if (MessageMax > 0) {
message = "{$ibforums->lang['js_max_length']} " + MessageMax + " {$ibforums->lang['js_characters']}.";
} else {
message = "";
}
alert(message + "\\n{$ibforums->lang['js_used']} " + MessageLength + " {$ibforums->lang['js_characters']}.");
}
function ValidateForm() {
MessageLength = document.REPLIER.Post.value.length;
errors = "";
if (MessageMax !=0) {
if (MessageLength > MessageMax) {
errors = "{$ibforums->lang['js_max_length']} " + MessageMax + " {$ibforums->lang['js_characters']}.\\n{$ibforums->lang['js_current']}: " + MessageLength;
}
}
if (errors != "" && Override == "") {
alert(errors);
return false;
} else {
document.REPLIER.submit.disabled = true;
return true;
}
}
// IBC Code stuff
var text_enter_url = "{$ibforums->lang['jscode_text_enter_url']}";
var text_enter_url_name = "{$ibforums->lang['jscode_text_enter_url_name']}";
var text_enter_image = "{$ibforums->lang['jscode_text_enter_image']}";
var text_enter_email = "{$ibforums->lang['jscode_text_enter_email']}";
var text_enter_flash = "{$ibforums->lang['jscode_text_enter_flash']}";
var text_code = "{$ibforums->lang['jscode_text_code']}";
var text_quote = "{$ibforums->lang['jscode_text_quote']}";
var error_no_url = "{$ibforums->lang['jscode_error_no_url']}";
var error_no_title = "{$ibforums->lang['jscode_error_no_title']}";
var error_no_email = "{$ibforums->lang['jscode_error_no_email']}";
var error_no_width = "{$ibforums->lang['jscode_error_no_width']}";
var error_no_height = "{$ibforums->lang['jscode_error_no_height']}";
//-->
</script>
<script language='Javascript' src='html/ibfcode.js'></script>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="POST" name='REPLIER'>
<input type='hidden' name='act' value='UserCP'>
<input type='hidden' name='CODE' value='23'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<td id='title'><b>{$ibforums->lang['cp_current_sig']}</b></td>
</tr>
<tr>
<td id='row1' align='center'>
<table cellpadding='2' cellspacing='0' width='75%' align='center'>
<tr>
<td id='signature'>$sig</td>
</tr>
</table>
</td>
</tr>
<tr>
<td id='title'><b>{$ibforums->lang['cp_edit_sig']}</b></td>
</tr>
<tr>
<td id='row1' align='center'>
<table cellpadding='2' cellspacing='2' width='100%'>
<tr>
<td nowrap width='10%'>
<input type='button' accesskey='b' value=' B ' onClick='simpletag("B")' class='codebuttons' title="BOLD: [Control / Alt] + b" name='bold' style="font-weight:bold">
<input type='button' accesskey='i' value=' I ' onClick='simpletag("I")' class='codebuttons' title="ITALIC: [Control / Alt] + i" name='italic' style="font-style:italic">
<input type='button' accesskey='u' value=' U ' onClick='simpletag("U")' class='codebuttons' title="UNDERLINE: [Control / Alt] + u" name='under' style="text-decoration:underline">
<select name='ffont' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'FONT')">
<option value='0'>{$ibforums->lang['ct_font']}</option>
<option value='Arial' style='font-family:Arial'>{$ibforums->lang['ct_arial']}</option>
<option value='Times' style='font-family:Times'>{$ibforums->lang['ct_times']}</option>
<option value='Courier' style='font-family:Courier'>{$ibforums->lang['ct_courier']}</option>
<option value='Impact' style='font-family:Impact'>{$ibforums->lang['ct_impact']}</option>
<option value='Geneva' style='font-family:Geneva'>{$ibforums->lang['ct_geneva']}</option>
<option value='Optima' style='font-family:Optima'>Optima</option>
</select><select name='fsize' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'SIZE')">
<option value='0'>{$ibforums->lang['ct_size']}</option>
<option value='7'>{$ibforums->lang['ct_sml']}</option>
<option value='14'>{$ibforums->lang['ct_lrg']}</option>
<option value='18'>{$ibforums->lang['ct_lest']}</option>
</select><select name='fcolor' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'COLOR')">
<option value='0'>{$ibforums->lang['ct_color']}</option>
<option value='blue' style='color:blue'>{$ibforums->lang['ct_blue']}</option>
<option value='red' style='color:red'>{$ibforums->lang['ct_red']}</option>
<option value='purple' style='color:purple'>{$ibforums->lang['ct_purple']}</option>
<option value='orange' style='color:orange'>{$ibforums->lang['ct_orange']}</option>
<option value='yellow' style='color:yellow'>{$ibforums->lang['ct_yellow']}</option>
<option value='gray' style='color:orange'>{$ibforums->lang['ct_grey']}</option>
<option value='green' style='color:green'>{$ibforums->lang['ct_green']}</option>
</select>
</td>
<td align='left'nowrap width='10%'><input type='button' accesskey='c' value=' x ' onClick='closelast()' class='codebuttons' title="Close Current Tag: [Control / Alt] + c" name='bold' style="color:red"> Close Current Tag</td>
</tr>
<tr>
<td align='left'>
<input type='button' accesskey='h' value=' http:// ' onClick='tag_url()' class='codebuttons' title="HYPERLINK: [Control / Alt] + h" style="text-decoration:underline;color:blue">
<input type='button' accesskey='g' value=' IMG ' onClick='tag_image()' class='codebuttons' title="IMG: [Control / Alt] + g" >
<input type='button' accesskey='e' value=' @ ' onClick='tag_email()' class='codebuttons' title="EMAIL: [Control / Alt] + e" style="text-decoration:underline;color:blue">
<input type='button' accesskey='q' value=' Quote ' onClick='simpletag("QUOTE")' class='codebuttons' title="QUOTE: [Control / Alt] + q" name='quote'>
<input type='button' accesskey='p' value=' Code ' onClick='simpletag("CODE")' class='codebuttons' title="CODE: [Control / Alt] + p" name='code'>
<input type='button' accesskey='s' value=' SQL ' onClick='simpletag("SQL")' class='codebuttons' title="SQL: [Control / Alt] + s" name='code'>
<input type='button' accesskey='t' value=' HTML ' onClick='simpletag("HTML")' class='codebuttons' title="HTML: [Control / Alt] + t" name='code'>
</td>
<td align='left'>
<input type='button' accesskey='x' value=' X ' onClick='closeall()' class='codebuttons' title="Close Current Tag: [Control / Alt] + x" name='bold' style="color:red;font-weight:bold"> Close All Tags
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td id='row1' align='center'><textarea cols='60' rows='12' wrap='soft' name='Post' tabindex='3' class='textinput'>$t_sig</textarea><br>(<a href='javascript:CheckLength()'>{$ibforums->lang['check_length']}</a>)</td>
</tr>
<tr>
<td id='row1' align='center'><input type='submit' value='{$ibforums->lang['cp_submit_sig']}'></td>
</tr>
</form>
EOF;
}
function personal_panel($Profile) {
global $ibforums;
return <<<EOF
<script language="javascript">
<!--
var LocationMax = "{$ibforums->vars['max_location_length']}";
var InterestMax = "{$ibforums->vars['max_interest_length']}";
function CheckLength(Type) {
LocationLength = document.theForm.Location.value.length;
InterestLength = document.theForm.Interests.value.length;
message = "";
if (Type == "location") {
if (LocationMax !=0) {
message = "{$ibforums->lang['js_location']}:\\n{$ibforums->lang['js_max']} " + LocationMax + " {$ibforums->lang['js_characters']}.";
} else {
message = "";
}
alert(message + "\\n{$ibforums->lang['js_used']} " + LocationLength + " {$ibforums->lang['js_so_far']}.");
}
if (Type == "interest") {
if (InterestMax !=0) {
message = "{$ibforums->lang['js_interests']}:\\n{$ibforums->lang['js_max']} " + InterestMax + " {$ibforums->lang['js_characters']}.";
} else {
message = "";
}
alert(message + "\\n{$ibforums->lang['js_used']} " + InterestLength + " {$ibforums->lang['js_so_far']}.");
}
}
function ValidateProfile() {
LocationLength = document.theForm.Location.value.length;
InterestLength = document.theForm.Interests.value.length;
errors = "";
if (LocationMax !=0) {
if (LocationLength > LocationMax) {
errors = "{$ibforums->lang['js_location']}:\\n{$ibforums->lang['js_max']} " + LocationMax + " {$ibforums->lang['js_characters']}.\\n{$ibforums->lang['js_used']}: " + LocationLength;
}
}
if (InterestMax !=0) {
if (InterestLength > InterestMax) {
errors = errors + "\\n{$ibforums->lang['js_interests']}:\\n{$ibforums->lang['js_max']} " + InterestMax + " {$ibforums->lang['js_characters']}.\\n{$ibforums->lang['js_used']}: " + InterestLength;
}
}
if (errors != "") {
alert(errors);
return false;
} else {
return true;
}
}
//-->
</script>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='theForm' onSubmit='return ValidateProfile()'>
<input type='hidden' name='act' value='UserCP'>
<input type='hidden' name='CODE' value='21'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<td valign='left' colspan='2' id='category'>{$ibforums->lang['profile_title']}</td>
</tr>
<!--{MEMBERTITLE}-->
<!--{BIRTHDAY}-->
<!-- for v1.1<tr>
<td id='row1' width='40%'>{$ibforums->lang['photo']}</td>
<td id='row1'><input type='text' size='40' maxlength='120' name='Photo' value='{$Profile['photo']}' class='forminput'></td>
</tr> -->
<tr>
<td id='row2' width='40%'>{$ibforums->lang['website']}</td>
<td id='row2'><input type='text' size='40' maxlength='1200' name='WebSite' value='{$Profile['website']}' class='forminput'></td>
</tr>
<tr>
<td id='row1' width='40%'>{$ibforums->lang['icq']}</td>
<td id='row1'><input type='text' size='40' maxlength='20' name='ICQNumber' value='{$Profile['icq_number']}' class='forminput'></td>
</tr>
<tr>
<td id='row2' width='40%'>{$ibforums->lang['aol']}</td>
<td id='row2'><input type='text' size='40' maxlength='30' name='AOLName' value='{$Profile['aim_name']}' class='forminput'></td>
</tr>
<tr>
<td id='row1' width='40%'>{$ibforums->lang['yahoo']}</td>
<td id='row1'><input type='text' size='40' maxlength='30' name='YahooName' value='{$Profile['yahoo']}' class='forminput'></td>
</tr>
<tr>
<td id='row2' width='40%'>{$ibforums->lang['msn']}</td>
<td id='row2'><input type='text' size='40' maxlength='30' name='MSNName' value='{$Profile['msnname']}' class='forminput'></td>
</tr>
<tr>
<td id='row1' width='40%'>{$ibforums->lang['location']}<br>(<a href='javascript:CheckLength("location");'>{$ibforums->lang['check_length']}</a>)</td>
<td id='row1'><input type='text' size='40' name='Location' value='{$Profile['location']}' class='forminput'></td>
</tr>
<tr>
<td id='row2' width='40%' valign='top'>{$ibforums->lang['interests']}<br>(<a href='javascript:CheckLength("interest");'>{$ibforums->lang['check_length']}</a>)</td>
<td id='row2'><textarea cols='60' rows='10' wrap='soft' name='Interests' class='forminput'>{$Profile['interests']}</textarea></td>
</tr>
<tr>
<td id='row2' align='center' colspan='2'>
<input type="submit" value="{$ibforums->lang['submit_profile']}" class='forminput'>
</td></tr>
</form>
EOF;
}
function Menu_bar($base_url) {
global $ibforums;
return <<<EOF
<br>
<table width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center' border="0" cellspacing="1" cellpadding="0">
<tr>
<td id='maintitleback' background='{$ibforums->vars['img_url']}/tile_back.gif'>
&nbsp;
</td>
</tr>
<tr>
<td>
<table id='mainbg' width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>&nbsp;</td>
<td width="100%" nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>&nbsp;</td>
</tr>
<tr>
<td id='alt1' valign="top">
<table cellpadding='0' cellspacing='0' width='100%' align='left' border='0'>
<tr>
<td>
<!-- Messenger -->
<b>{$ibforums->lang['m_messenger']}</b><br>
<img src="{$ibforums->vars['img_url']}/dark_line.gif" alt="" width="155" height="7"><br>
&#149; <a href='{$base_url}&act=Msg&CODE=04'>{$ibforums->lang['mess_new']}</a><br>
&#149; <a href='{$base_url}&act=Msg&CODE=02'>{$ibforums->lang['mess_contact']}</a><br>
&#149; <a href='{$base_url}&act=Msg&CODE=07'>{$ibforums->lang['mess_folders']}</a><br>
&#149; <a href='{$base_url}&act=Msg&CODE=01'>{$ibforums->lang['mess_inbox']}</a><br>
&#149; <a href='{$base_url}&act=Msg&CODE=14'>{$ibforums->lang['mess_archive']}</a><br>
<br>
<!-- Profile -->
<b>{$ibforums->lang['m_personal']}</b><br>
<img src="{$ibforums->vars['img_url']}/dark_line.gif" alt="" width="155" height="7"><br>
&#149; <a href='{$base_url}&act=UserCP&CODE=01'>{$ibforums->lang['m_contact_info']}</a><br>
<!-- &#149; <a href='#'>{$ibforums->lang['m_bio_info']}</a><br> -->
&#149; <a href='{$base_url}&act=UserCP&CODE=22'>{$ibforums->lang['m_sig_info']}</a><br>
&#149; <a href='{$base_url}&act=UserCP&CODE=24'>{$ibforums->lang['m_avatar_info']}</a><br>
<!-- &#149; <a href='#'>{$ibforums->lang['m_edit_links']}</a><br> -->
<!-- Options -->
<br>
<b>{$ibforums->lang['m_options']}</b><br>
<img src="{$ibforums->vars['img_url']}/dark_line.gif" alt="" width="155" height="7"><br>
&#149; <a href='{$base_url}&act=UserCP&CODE=02'>{$ibforums->lang['m_email_opt']}</a><br>
&#149; <a href='{$base_url}&act=UserCP&CODE=04'>{$ibforums->lang['m_board_opt']}</a><br>
&#149; <a href='{$base_url}&act=UserCP&CODE=06'>{$ibforums->lang['m_skin_lang']}</a><br>
&#149; <a href='{$base_url}&act=UserCP&CODE=08'>{$ibforums->lang['m_email_change']}</a><br>
&#149; <a href='{$base_url}&act=UserCP&CODE=28'>{$ibforums->lang['m_passy_opt']}</a><br>
<!-- Topic Tracker -->
<br>
<b>{$ibforums->lang['m_tracker']}</b><br>
<img src="{$ibforums->vars['img_url']}/dark_line.gif" alt="" width="155" height="7"><br>
&#149; <a href='{$base_url}&act=UserCP&CODE=26'>{$ibforums->lang['m_view_subs']}</a>
</td>
</tr>
</table>
</td>
<td valign='top' id='alt1'>
<table cellpadding='4' cellspacing='0' width='100%' align='left' border='0'>
<tr>
<!-- Start main CP area -->
EOF;
}
function CP_end() {
global $ibforums;
return <<<EOF
<!-- end main CP area -->
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
EOF;
}
function splash($member) {
global $ibforums;
return <<<EOF
<td id='subtitle' width="100%">{$ibforums->lang['stats_header']}</td>
</tr>
<tr>
<td id='alt1' valign="top" width="100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="40%">{$ibforums->lang['email_address']}</td>
<td width="60%">{$member[MEMBER_EMAIL]}</td>
</tr>
<tr>
<td width="40%">{$ibforums->lang['number_posts']}</td>
<td width="60%">{$member[MEMBER_POSTS]}</td>
</tr>
<tr>
<td width="40%">{$ibforums->lang['registered']}</td>
<td width="60%">{$member[DATE_REGISTERED]}</td>
</tr>
<tr>
<td width="40%">{$ibforums->lang['daily_average']}</td>
<td width="60%">{$member[DAILY_AVERAGE]}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td id='subtitle' width="100%">{$ibforums->lang['messenger_summary']}</td>
</tr>
<tr>
<td id='alt1' valign="top" width="100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="40%">{$ibforums->lang['total_messages']}</td>
<td width="60%">{$member['total_messages']} {$member['full_percent']}</td>
</tr>
<tr>
<td width="40%">{$ibforums->lang['messages_left']}</td>
<td width="60%">{$member['space_free']} {$member['full_messenger']}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td id='subtitle' width="100%">{$ibforums->lang['note_pad']}</td>
</tr>
<tr>
<td id='alt1' valign="top" width="100%">
<form name='notepad' action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post">
<input type='hidden' name='act' value='UserCP'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='CODE' value='20'>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<textarea cols='65' rows='{$member['SIZE']}' wrap='soft' name='notes' class='forminput' style='width:100%'>{$member['NOTES']}</textarea>
</td>
</tr>
</table>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right" width="50%">{$ibforums->lang['ta_size']}&nbsp;</td>
<td nowrap width="50%">
<select name='ta_size' class='forminput'>
{$member['SIZE_CHOICE']}
</select>
<input type='submit' value='{$ibforums->lang['submit_notepad']}' class='forminput'>
</td>
</tr>
</table>
</form>
</td>
</tr>
EOF;
}
function settings_header($Profile, $time_select, $time, $dst_check) {
global $ibforums;
return <<<EOF
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post">
<input type='hidden' name='act' value='UserCP'>
<input type='hidden' name='CODE' value='05'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<td colspan='2' id='category'><b>{$ibforums->lang['settings_time']}</b></td>
</tr>
<tr>
<td id='row1' colspan='2'><b>{$ibforums->lang['settings_time_txt']}</b><br><span id='highlight'>$time</span></td>
</tr>
<tr>
<td id='row1' colspan='2' align='left'>$time_select</td>
</tr>
<tr>
<td id='row1' nowrap>{$ibforums->lang['dst_box']}</td>
<td id='row1' width='70%' align='left'><input type='checkbox' class='forminput' name='DST' value='1' $dst_check></td>
</tr>
EOF;
}
function skin_lang_header($lang_select) {
global $ibforums;
return <<<EOF
<script language='Javascript'>
<!--
function do_preview() {
var f = document.prefs.u_skin;
var base_url = "{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&";
if (f.options[f.selectedIndex].value == -1) {
return false;
}
window.open( base_url + 'skinid='+f.options[f.selectedIndex].value, 'Preview', 'width=800,height=600,top=0,left=0,resizable=1,scrollbars=1,location=no,directories=no,status=no,menubar=no,toolbar=no');
}
-->
</script>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='prefs'>
<input type='hidden' name='act' value='UserCP'>
<input type='hidden' name='CODE' value='07'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<td colspan='2' id='category'><b>{$ibforums->lang['settings_title']}</b></td>
</tr>
<tr>
<td id='row1' nowrap><b>{$ibforums->lang['settings_lang_txt']}</b></td>
<td id='row1' align='left'>$lang_select</td>
</tr>
EOF;
}
function settings_skin($skin) {
global $ibforums;
return <<<EOF
</tr>
<td colspan='2' id='category'><b>{$ibforums->lang['settings_skin']}</b></td>
</tr>
<tr>
<td id='row1' nowrap><b>{$ibforums->lang['settings_skin_txt']}</b></td>
<td id='row1' align='left'>$skin &nbsp;&nbsp; <input type='button' value='{$ibforums->lang['cp_skin_preview']}' class='forminput' onClick='do_preview()'></td>
</tr>
EOF;
}
function skin_lang_end() {
global $ibforums;
return <<<EOF
<tr>
<td id='row2' colspan='2' align='center'><input type='submit' name='submit' value='{$ibforums->lang['settings_submit']}' class='forminput'></form></td>
</tr>
EOF;
}
function settings_end($data) {
global $ibforums;
return <<<EOF
<tr>
<td colspan='2' id='category'><b>{$ibforums->lang['settings_display']}</b></td>
</tr>
<tr>
<td id='row1' nowrap><b>{$ibforums->lang['settings_viewsig']}</b></td>
<td id='row1' width='70%' align='left'>{$data[SIG]}</td>
</tr>
<tr>
<td id='row1' nowrap><b>{$ibforums->lang['settings_viewimg']}</b></td>
<td id='row1' width='70%' align='left'>{$data[IMG]}</td>
</tr>
<tr>
<td id='row1' nowrap><b>{$ibforums->lang['settings_viewava']}</b></td>
<td id='row1' width='70%' align='left'>{$data[AVA]}</td>
</tr>
<tr>
<td id='row1' nowrap><b>{$ibforums->lang['settings_dopopup']}</b></td>
<td id='row1' width='70%' align='left'>{$data[POP]}</td>
</tr>
<tr>
<td id='row1' nowrap>{$ibforums->lang['hide_session_txt']}</td>
<td id='row1' width='70%' align='left'>{$data[SESS]}</td>
</tr>
<tr>
<td id='row2' colspan='2' align='center'><input type='submit' name='submit' value='{$ibforums->lang['settings_submit']}' class='forminput'></form></td>
</tr>
EOF;
}
function email($Profile) {
global $ibforums;
return <<<EOF
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post">
<input type='hidden' name='act' value='UserCP'>
<input type='hidden' name='CODE' value='03'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<td valign='left' colspan='2' id='category'><b>{$ibforums->lang['privacy_settings']}</b></td>
</tr>
<tr>
<td id='row1' align='right' valign='top'><input type='checkbox' name='hide_email' value='1' {$Profile['hide_email']}></td>
<td id='row1' align='left' width='100%'>{$ibforums->lang['hide_email']}</td>
</tr>
<tr>
<td id='row1' align='right' valign='top'><input type='checkbox' name='admin_send' value='1' {$Profile['allow_admin_mails']}></td>
<td id='row1' align='left' width='100%'>{$ibforums->lang['admin_send']}</td>
</tr>
<tr>
<td valign='left' colspan='2' id='category'><b>{$ibforums->lang['board_prefs']}</b></td>
</tr>
<tr>
<td id='row1' align='right' valign='top'><input type='checkbox' name='send_full_msg' value='1' {$Profile['email_full']}></td>
<td id='row1' align='left' width='100%'>{$ibforums->lang['send_full_msg']}</td>
</tr>
<!--<tr>
<td id='row1' align='right' valign='top'><input type='checkbox' name='pm_reminder' value='1' {$Profile['email_pm']}></td>
<td id='row1' align='left' width='100%'>{$ibforums->lang['pm_reminder']}</td>
</tr>-->
<tr>
<td id='row2' align='center' colspan='2'>
<input type="submit" value="{$ibforums->lang['submit_email']}" class='forminput'>
</td></tr>
</form>
EOF;
}
function subs_header() {
global $ibforums;
return <<<EOF
<!-- inbox folder -->
<script language='JavaScript'>
<!--
function CheckAll(cb) {
var fmobj = document.mutliact;
for (var i=0;i<fmobj.elements.length;i++) {
var e = fmobj.elements[i];
if ((e.name != 'allbox') && (e.type=='checkbox') && (!e.disabled)) {
e.checked = fmobj.allbox.checked;
}
}
}
function CheckCheckAll(cb) {
var fmobj = document.mutliact;
var TotalBoxes = 0;
var TotalOn = 0;
for (var i=0;i<fmobj.elements.length;i++) {
var e = fmobj.elements[i];
if ((e.name != 'allbox') && (e.type=='checkbox')) {
TotalBoxes++;
if (e.checked) {
TotalOn++;
}
}
}
if (TotalBoxes==TotalOn) {fmobj.allbox.checked=true;}
else {fmobj.allbox.checked=false;}
}
//-->
</script>
<td align='left' nowrap id='pagetitle'>{$ibforums->lang['subs_header']}</td>
<td>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" name='mutliact' method="post">
<input type='hidden' name='act' value='UserCP'>
<input type='hidden' name='CODE' value='27'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
</td>
</tr>
<tr>
<td valign='top' colspan='2' >
<table cellpadding='4' cellspacing='1' align='center' width='100%' bgcolor='{$ibforums->skin['tbl_border']}'>
<tr>
<td id='titlemedium' align='left' width='5%'>&nbsp;</td>
<td id='titlemedium' align='left' width='*'>{$ibforums->lang['subs_topic']}</td>
<td id='titlemedium' align='center' width='5%'>{$ibforums->lang['subs_replies']}</td>
<td id='titlemedium' align='center' width='5%'>{$ibforums->lang['subs_view']}</td>
<td id='titlemedium' align='left' width='20%'>{$ibforums->lang['subs_last_post']}</td>
<td align='center' width='5%' id='titlemedium'><input name="allbox" type="checkbox" value="Check All" onClick="CheckAll();"></td>
</tr>
EOF;
}
function subs_row($data) {
global $ibforums;
return <<<EOF
<tr>
<td id='row1' align='center' width='5%'>{$data['folder_icon']}</td>
<td id='row1' align='left'><span id='linkthru'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$data['forum_id']}&t={$data['tid']}'>{$data['title']}</a> ( <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$data['forum_id']}&t={$data['tid']}' target='_blank'>{$ibforums->lang['new_window']}</a> )</span><br><span id='desc'>{$data['description']}{$ibforums->lang['subs_start']} {$data['start_date']}</span></td>
<td id='row1' align='center'>{$data['posts']}</td>
<td id='row1' align='center'>{$data['views']}</td>
<td id='row1' align='left'>{$data['last_post_date']}<br>{$ibforums->lang['subs_by']} {$data['last_poster']}</td>
<td id='row2' align='center'><input type='checkbox' name='id-{$data['trid']}' value='yes' class='forminput'></td>
</tr>
EOF;
}
function subs_end() {
global $ibforums;
return <<<EOF
<tr>
<td align='center' id='titlemedium' valign='middle' colspan='6'><input type='submit' class='forminput' value='{$ibforums->lang['subs_delete']}'>&nbsp;&nbsp;{$ibforums->lang['with_selected']}</td>
</tr>
</form>
</table></td></tr>
EOF;
}
function forum_jump($data, $menu_extra="") {
global $ibforums;
return <<<EOF
<script language='Javascript'>
<!--
function jump_page(internal) {
var f = document.jumpForm.themenu;
var base_url = "{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&";
if (f.options[f.selectedIndex].value == -1) {
return false;
}
var l_data = f.options[f.selectedIndex].value;
s_data = l_data.split("|");
if (s_data[0] == 0) {
window.location = base_url + s_data[1];
}
else {
window.open( s_data[1], 'width=800,height=600,top=0,left=0,resizable=1,scrollbars=1,location=yes,directories=yes,status=yes,menubar=yes,toolbar=yes');
}
}
-->
</script>
<br>
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
<tr>
<td align='left'>
<form name='jumpForm'>
<select name='themenu' onchange='jump_page("1")' class='forminput'>
<option value='-1'>{$ibforums->lang['qc_header']}</option>
<option value='0|act=Msg&CODE=00'>{$ibforums->lang['qc_messenger']}</option>
<option value='0|act=Msg&CODE=01&VID=in'>{$ibforums->lang['qc_inbox']}</option>
<option value='0|act=Msg&CODE=01&VID=sent'>{$ibforums->lang['qc_sent']}</option>
<option value='0|act=Msg&CODE=04'>{$ibforums->lang['qc_compose']}</option>
<option value='0|act=Msg&CODE=07'>{$ibforums->lang['qc_prefs']}</option>
<option value='-1'>--------------</option>
<option value='0|act=Search&CODE=00'>{$ibforums->lang['qc_search']}</option>
<option value=''>{$ibforums->lang['qc_home']}</option>
<option value='0|act=Help&CODE=00'>{$ibforums->lang['qc_help']}</option>
$menu_extra
</select>
</form>
</td>
<td align='right'>{$data}</td>
</tr>
</table>
<br>
EOF;
}
}
?>
+614
View File
@@ -0,0 +1,614 @@
<?php
/*
+--------------------------------------------------------------------------
| IBFORUMS v1
| ========================================
| by Matthew Mecham and David Baxter
| (c) 2001,2002 IBForums
| http://www.ibforums.com
| ========================================
| Web: http://www.ibforums.com
| Email: phpboards@ibforums.com
| Licence Info: phpib-licence@ibforums.com
+---------------------------------------------------------------------------
|
| > Admin wrapper script
| > Script written by Matt Mecham
| > Date started: 1st March 2002
|
+--------------------------------------------------------------------------
*/
/*-----------------------------------------------
USER CONFIGURABLE ELEMENTS
------------------------------------------------*/
// Root path
$root_path = "./";
// Check IP address to see if they match?
// this may cause problems for users on proxies
// where the IP address changes during a session
$check_ip = 1;
// Use GZIP content encoding for fast page generation
// in the admin center?
$use_gzip = 1;
/*-----------------------------------------------
NO USER EDITABLE SECTIONS BELOW
------------------------------------------------*/
error_reporting (E_ERROR | E_WARNING | E_PARSE);
set_magic_quotes_runtime(0);
if (function_exists('ini_get'))
{
$safe_switch = ini_get("safe_mode") ? 1 : 0;
}
else
{
$safe_switch = 1;
}
define( 'SAFE_MODE_ON', $safe_switch );
if (function_exists("set_time_limit") == 1 and SAFE_MODE_ON == 0)
{
@set_time_limit(0);
}
class Debug {
function startTimer() {
global $starttime;
$mtime = microtime ();
$mtime = explode (' ', $mtime);
$mtime = $mtime[1] + $mtime[0];
$starttime = $mtime;
}
function endTimer() {
global $starttime;
$mtime = microtime ();
$mtime = explode (' ', $mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$totaltime = round (($endtime - $starttime), 5);
return $totaltime;
}
}
class info {
var $vars = "";
var $version = '1.0';
function info($INFO)
{
//global $INFO;
$this->vars = $INFO;
}
}
/*-----------------------------------------------
Import $INFO
------------------------------------------------*/
require $root_path."conf_global.php";
$ibforums = new info($INFO);
$Debug = new Debug;
$Debug->startTimer();
/*-----------------------------------------------
Make sure our data is reset on each invocation
------------------------------------------------*/
$MEMBER = array();
$SESSION_ID = "";
$SKIN = "";
// Put an end to insane thoughs before they begin
$MEMBER_NAME = "";
$MEMBER_PASSWORD = "";
$MEMBER_EMAIL = "";
$UserName = "";
$PassWord = "";
/*-----------------------------------------------
Load up our classes (compiled into one package)
------------------------------------------------*/
require $root_path."sources/functions.php";
$std = new FUNC;
/*-----------------------------------------------
Steralize our FORM and GET input
------------------------------------------------*/
$IN = $std->parse_incoming();
$IN['AD_SESS'] = $HTTP_POST_VARS['adsess'] ? $HTTP_POST_VARS['adsess'] : $HTTP_GET_VARS['adsess'];
/*-----------------------------------------------
Import $PAGES and $CATS
------------------------------------------------*/
require $root_path."sources/Admin/admin_pages.php";
/*-----------------------------------------------
Import Skinable elements
------------------------------------------------*/
require $root_path."sources/Admin/admin_skin.php";
$SKIN = new admin_skin();
/*-----------------------------------------------
Import Admin Functions
------------------------------------------------*/
require $root_path."sources/Admin/admin_functions.php";
$ADMIN = new admin_functions();
/*-----------------------------------------------
Load up our database library
------------------------------------------------*/
$INFO['sql_driver'] = !$INFO['sql_driver'] ? 'mySQL' : $INFO['sql_driver'];
$to_require = $root_path."sources/Drivers/".$INFO['sql_driver'].".php";
require ($to_require);
$DB = new db_driver;
$DB->obj['sql_database'] = $INFO['sql_database'];
$DB->obj['sql_user'] = $INFO['sql_user'];
$DB->obj['sql_pass'] = $INFO['sql_pass'];
$DB->obj['sql_host'] = $INFO['sql_host'];
$DB->obj['sql_tbl_prefix'] = $INFO['sql_tbl_prefix'];
// Get a DB connection
$DB->connect();
//------------------------------------------------
// Fix up the "show" ID's for the menu tree...
//
// show=1,4,5 holds the current ID's, clicking on a
// collapse link creates out=4 - "4" is then removed
// from the show link.
//
// Good eh?
//------------------------------------------------
if ($IN['show'] == 'none')
{
$IN['show'] = "";
}
else if ($IN['show'] == 'all')
{
$IN['show'] = "";
foreach($CATS as $cid => $name)
{
$IN['show'] .= $cid.',';
}
}
else
{
$IN['show'] = preg_replace( "/(?:^|,)".$IN['out']."(?:,|$)/", ",", $IN['show'] );
$IN['show'] = preg_replace( "/,,/" , "" , $IN['show'] );
$IN['show'] = preg_replace( "/,$/" , "" , $IN['show'] );
$IN['show'] = preg_replace( "/^,/" , "" , $IN['show'] );
}
//------------------------------------------------
// Admin.php Rules:
//
// No adsess number?
// -----------------
//
// Then we log into the admin CP
//
// Got adsess number?
// ------------------
//
// Then we check the cookie "ad_login" for a session key.
//
// If this session key matches the one stored in the admin_sessions
// table, then we check the data against the data stored in the
// profiles table.
//
// The session key and ad_sess keys are generated each time we log in.
//
// If we don't have a valid adsess in the URL, then we ask for a log in.
//
//------------------------------------------------
$session_validated = 0;
$this_session = array();
$validate_login = 0;
if ($IN['login'] != 'yes') {
if ( (!$IN['adsess']) or (empty($IN['adsess'])) or (!isset($IN['adsess'])) or ($IN['adsess'] == "") )
{
//----------------------------------
// No URL adsess found, lets log in.
//----------------------------------
do_login("No administration session found");
}
else
{
//----------------------------------
// We have a URL adsess, lets verify...
//----------------------------------
$DB->query("SELECT * FROM ibf_admin_sessions WHERE ID='".$IN['adsess']."'");
$row = $DB->fetch_row();
if ($row['ID'] == "")
{
//----------------------------------
// Fail-safe, no DB record found, lets log in..
//----------------------------------
do_login("Could not retrieve session record");
}
else if ($row['MEMBER_ID'] == "")
{
//----------------------------------
// No member ID is stored, log in!
//----------------------------------
do_login("Could not retrieve a valid member id");
}
else
{
//----------------------------------
// Key is good, check the member details
//----------------------------------
$DB->query("SELECT * FROM ibf_members WHERE id='".$row['MEMBER_ID']."'");
$MEMBER = $DB->fetch_row();
if ($MEMBER['id'] == "")
{
//----------------------------------
// Ut-oh, no such member, log in!
//----------------------------------
do_login("Member ID invalid");
}
else
{
//----------------------------------
// Member found, check passy
//----------------------------------
if ($row['SESSION_KEY'] != $MEMBER['password'])
{
//----------------------------------
// Passys don't match..
//----------------------------------
do_login("Session member password mismatch");
}
else
{
//----------------------------------
// Do we have admin access?
//----------------------------------
$DB->query("SELECT * FROM ibf_groups WHERE g_id='".$MEMBER['mgroup']."'");
$GROUP = $DB->fetch_row();
if ($GROUP['g_access_cp'] != 1)
{
do_login("You do not have access to the administrative CP");
}
else
{
$session_validated = 1;
$this_session = $row;
}
}
}
}
}
}
else
{
//----------------------------------
// We must have submitted the form
// time to check some details.
//----------------------------------
if ( empty($IN['username']) )
{
do_login("You must enter a username before proceeding");
}
if ( empty($IN['password']) )
{
do_login("You must enter a password before proceeding");
}
//----------------------------------
// Attempt to get the details from the
// DB
//----------------------------------
$DB->query("SELECT name, password, id, mgroup FROM ibf_members WHERE LOWER(name)='".strtolower($IN['username'])."'");
$mem = $DB->fetch_row();
if ( empty($mem['id']) )
{
do_login("Could not find a record matching that username, please check the spelling");
}
$pass = md5( $IN['password'] );
if ($pass != $mem['password'])
{
do_login("The password entered did not match the one in our records");
}
else
{
$DB->query("SELECT * FROM ibf_groups WHERE g_id='".$mem['mgroup']."'");
$GROUP = $DB->fetch_row();
if ($GROUP['g_access_cp'] != 1)
{
do_login("You do not have access to the administrative CP");
}
else
{
//----------------------------------
// All is good, rejoice as we set a
// session for this user
//----------------------------------
$sess_id = md5( uniqid( microtime() ) );
$db_string = $DB->compile_db_insert_string( array (
'ID' => $sess_id,
'IP_ADDRESS' => $IN['IP_ADDRESS'],
'MEMBER_NAME' => $mem['name'],
'MEMBER_ID' => $mem['id'],
'SESSION_KEY' => $pass,
'LOCATION' => 'index',
'LOG_IN_TIME' => time(),
'RUNNING_TIME' => time(),
) );
$DB->query("INSERT INTO ibf_admin_sessions (".$db_string['FIELD_NAMES'].") VALUES (".$db_string['FIELD_VALUES'].")");
$IN['AD_SESS'] = $sess_id;
// Print the "well done page"
$ADMIN->page_title = "Log in successful";
$ADMIN->page_detail = "You may now proceed to the administrative control panel";
$ADMIN->html .= $SKIN->start_table("Proceed");
$ADMIN->html .= "<tr><td id='tdrow1'><a href='".$INFO['board_url']."/admin.".$INFO['php_ext']."?adsess=".$IN['AD_SESS']."'>Take me to administrative control panel</a></td></tr>";
$ADMIN->html .= $SKIN->end_table();
$ADMIN->output();
}
}
}
//----------------------------------
// Ok, so far so good. If we have a
// validate session, check the running
// time. if it's older than 2 hours,
// ask for a log in
//----------------------------------
if ($session_validated == 1)
{
if ($this_session['RUNNING_TIME'] < ( time() - 60*60*2) )
{
$session_validated = 0;
do_login("This administration session has expired");
}
//------------------------------
// Are we checking IP's?
//------------------------------
else if ($check_ip == 1)
{
if ($this_session['IP_ADDRESS'] != $IN['IP_ADDRESS'])
{
$session_validated = 0;
do_login("Your current IP address does not match the one in our records");
}
}
}
if ($session_validated == 1 )
{
//------------------------------
// If we get this far, we're good to go..
//------------------------------
$IN['AD_SESS'] = $IN['adsess'];
//------------------------------
// Lets update the sessions table:
//------------------------------
$DB->query("UPDATE ibf_admin_sessions SET RUNNING_TIME='".time()."', LOCATION='".$IN['act']."' WHERE MEMBER_ID='".$MEMBER['id']."' AND ID='".$IN['AD_SESS']."'");
do_admin_stuff();
}
else
{
//------------------------------
// Session is not validated...
//------------------------------
do_login("Session not validated - please attempt to log in again");
}
function do_login($message="") {
global $IN, $DB, $ADMIN, $SKIN;
//-------------------------------------------------------
// Remove all out of date sessions, like a good boy. Woof.
//-------------------------------------------------------
$cut_off_stamp = time() - 60*60*2;
$DB->query("DELETE FROM ibf_admin_sessions WHERE RUNNING_TIME < $cut_off_stamp");
//+------------------------------------------------------
$ADMIN->page_detail = "You must have administrative access to successfully log into the Invision Board Admin CP.<br>Please enter your forums username and password below";
if ($message != "")
{
$ADMIN->page_detail .= "<br><br><span style='color:red;font-weight:bold'>$message</span>";
}
$ADMIN->html .= "<script language='javascript'>
<!--
if (top.location != self.location) { top.location = self.location }
//-->
</script>
";
$ADMIN->html .= $SKIN->start_form( array( 1 => array('login', 'yes') ) );
$SKIN->td_header[] = array( "&nbsp;" , "40%" );
$SKIN->td_header[] = array( "&nbsp;" , "60%" );
$ADMIN->html .= $SKIN->start_table( "Verification Required" );
$ADMIN->html .= $SKIN->add_td_row( array( "Your Forums Username:",
"<input type='text' style='width:100%' name='username' value=''>",
) );
$ADMIN->html .= $SKIN->add_td_row( array( "Your Forums Password:",
"<input type='password' style='width:100%' name='password' value=''>",
) );
$ADMIN->html .= $SKIN->end_form("Log in");
$ADMIN->html .= $SKIN->end_table();
$ADMIN->output();
}
function do_admin_stuff() {
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $ibforums;
/*----------------------------------
What do you want to require today?
------------------------------------*/
$choice = array(
"idx" => "doframes",
"menu" => "menu",
"index" => "index",
"cat" => "categories",
"forum" => "forums",
"mem" => "member",
'group' => "groups",
'mod' => 'moderator',
'op' => 'settings',
'help' => 'help',
'skin' => 'skins',
'wrap' => 'wrappers',
'style' => 'stylesheets',
'image' => 'imagemacros',
'sets' => 'stylesets',
'templ' => 'templates',
'lang' => 'languages',
'import' => 'skin_import',
'modlog' => 'modlogs',
);
/***************************************************/
$IN['act'] = $IN['act'] == '' ? "idx" : $IN['act'];
// Check to make sure the array key exits..
if (! isset($choice[$IN['act']]) ) {
$IN['act'] = 'idx';
}
// Require and run
if ($IN['act'] == 'idx')
{
print $SKIN->frame_set();
exit;
}
else if ($IN['act'] == 'menu')
{
$ADMIN->menu();
}
else
{
require $root_path."sources/Admin/ad_".$choice[$IN['act']].".php";
}
}
//+-------------------------------------------------
// GLOBAL ROUTINES
//+-------------------------------------------------
function fatal_error($message="", $help="") {
echo("$message<br><br>$help");
exit;
}
?>
+1
View File
@@ -0,0 +1 @@
<html>␍<head><title>IBForums - Bulletin Board System</title></head>␍<body>␍<h1>403: IBForums-> Forbidden</h1>␍<hr>␍You have reached this Page in error, please use␍your back button to return to Invision Board.␍<hr>␍<a href="http://www.invisionboard.com/">Get your free download of IBForums now!</a>␍</body>␍</html>␍
+1
View File
@@ -0,0 +1 @@
<html>␍<head><title>IBForums - Bulletin Board System</title></head>␍<body>␍<h1>403: IBForums-> Forbidden</h1>␍<hr>␍You have reached this Page in error, please use␍your back button to return to Invision Board.␍<hr>␍<a href="http://www.invisionboard.com/">Get your free download of IBForums now!</a>␍</body>␍</html>␍
+102
View File
@@ -0,0 +1,102 @@
<?php
$INFO['sig_allow_ibc'] = '1';
$INFO['show_user_posted'] = '1';
$INFO['avatar_ext'] = 'gif|jpeg|jpg|swf|png';
$INFO['avatar_url'] = '1';
$INFO['avup_size_max'] = '20';
$INFO['avatars_on'] = '1';
$INFO['avatar_dims'] = '64x64';
$INFO['avatar_def'] = '64x64';
$INFO['email_in'] = '';
$INFO['email_out'] = '';
$INFO['allow_images'] = '1';
$INFO['max_emos'] = '20';
$INFO['allow_creator_vote'] = '1';
$INFO['allow_dynamic_img'] = '0';
$INFO['allow_flash'] = '1';
$INFO['allow_online_list'] = '1';
$INFO['allow_skins'] = '1';
$INFO['ban_ip'] = '';
$INFO['ban_email'] = '';
$INFO['ban_names'] = '';
$INFO['board_start'] = '1020214590';
$INFO['news_forum_id'] = '1';
$INFO['index_news_link'] = '1';
$INFO['allow_dup_email'] = '1';
$INFO['admin_group'] = '4';
$INFO['auth_group'] = '1';
$INFO['member_group'] = '3';
$INFO['guest_group'] = '2';
$INFO['boardname'] = 'IBForums';
$INFO['board_desc'] = 'Website forums';
$INFO['board_name'] = 'IBForums';
$INFO['php_ext'] = 'php';
$INFO['board_url'] = '';
$INFO['match_browser'] = '0';
$INFO['clock_long'] = 'M j Y, h:i A';
$INFO['clock_short'] = 'jS F Y - h:i A';
$INFO['clock_joined'] = 'j-F y';
$INFO['load_limit'] = '';
$INFO['cookie_domain'] = '';
$INFO['cookie_id'] = '';
$INFO['cookie_path'] = '';
$INFO['email_header'] = 'This email generated via IBForums';
$INFO['email_footer'] = '';
$INFO['show_active'] = '1';
$INFO['show_birthdays'] = '1';
$INFO['show_totals'] = '1';
$INFO['sql_driver'] = 'mySQL';
$INFO['sql_host'] = 'localhost';
$INFO['sql_database'] = '';
$INFO['sql_pass'] = '';
$INFO['sql_port'] = '';
$INFO['sql_tbl_prefix'] = 'ibf_';
$INFO['sql_user'] = 'root';
$INFO['display_max_posts'] = '15';
$INFO['display_max_topics'] = '15';
$INFO['emo_per_row'] = '3';
$INFO['etfilter_punct'] = '0';
$INFO['etfilter_shout'] = '0';
$INFO['flood_control'] = '30';
$INFO['force_login'] = '0';
$INFO['show_img_upload'] = '1';
$INFO['home_name'] = 'ibforums.com';
$INFO['home_url'] = 'http://localhost';
$INFO['hot_topic'] = '15';
$INFO['html_dir'] = '';
$INFO['base_dir'] = '';
$INFO['html_url'] = '';
$INFO['upload_dir'] = '';
$INFO['upload_url'] = '';
$INFO['img_ext'] = 'gif|jpeg|jpg|png';
$INFO['max_h_flash'] = '200';
$INFO['max_images'] = '10';
$INFO['max_post_length'] = '1000';
$INFO['max_w_flash'] = '200';
$INFO['max_messages'] = '50';
$INFO['pre_moved'] = 'Moved: ';
$INFO['pre_pinned'] = 'Pinned: ';
$INFO['pre_polls'] = 'Poll: ';
$INFO['session_expiration'] = '3600';
$INFO['reg_auth_type'] = '0';
$INFO['time_offset'] = '0';
$INFO['new_reg_notify'] = '0';
$INFO['use_mail_form'] = '1';
$INFO['msg_allow_code'] = '1';
$INFO['msg_allow_html'] = '0';
$INFO['allow_search'] = '1';
$INFO['print_headers'] = '1';
$INFO['nocache'] = '1';
$INFO['debug_level'] = '1';
$INFO['forum_skin_1'] = '';
$INFO['forum_skin_8'] = '';
$INFO['board_offline'] = '0';
$INFO['offline_msg'] = '';
$INFO['no_reg'] = '0';
$INFO['max_sig_length'] = '50000';
$INFO['sig_allow_html'] = '0';
$INFO['max_location_length'] = '50000';
$INFO['max_interest_length'] = '50000';
$INFO['post_titlechange'] = '50000';
?>
+41
View File
@@ -0,0 +1,41 @@
<?php
$mime_types = array(
// mime allow post img type allow avatar
"application/pdf" => array( 1, 'pdf.gif' , 'PDF Document' ) ,
"image/x-png" => array( 1, 'quicktime.gif' , 'PNG Image' ) ,
"video/vivo" => array( 1, 'win_player.gif', 'VIVO Movie' ) ,
"application/x-compress" => array( 1, 'zip.gif' , 'Compressed File') ,
"video/x-msvideo" => array( 1, 'win_player.gif' , 'MS Video' ) ,
"text/html" => array( 1, 'html.gif' , 'HTML Page' ) ,
"audio/x-pn-realaudio" => array( 1, 'real_audio.gif', 'Real Audio File') ,
"image/gif" => array( 1, 'gif.gif' , 'GIF Image' ,1 ) ,
"video/mpeg" => array( 1, 'quicktime.gif' , 'MPEG Video' ) ,
"image/ico" => array( 1, 'gif.gif' , 'Icon File' ) ,
"application/x-tar" => array( 1, 'zip.gif' , 'TAR Ball' ) ,
"image/x-MS-bmp" => array( 1, 'bmp.gif' , 'BMP Image' ) ,
"image/tiff" => array( 1, 'quicktime.gif' , 'TIFF Image' ) ,
"text/richtext" => array( 1, 'txt.gif' , 'Rich Text' ) ,
"audio/x-realaudio" => array( 1, 'realaudio.gif' , 'Real Audio' ) ,
"application/mac-binhex40" => array( 1, 'stuffit.gif' , 'Mac Binary' ) ,
"audio/x-aiff" => array( 1, 'quicktime.gif' , 'AIFF File' ) ,
"application/x-gzip" => array( 1, 'zip.gif' , 'GZIP File' ) ,
"application/zip" => array( 1, 'zip.gif' , 'ZIP File' ) ,
"application/postscript" => array( 1, 'postscript.gif', 'Postscript' ) ,
"application/msword" => array( 1, 'word.gif' , 'MS Word doc' ) ,
"video/quicktime" => array( 1, 'quicktime.gif' , 'QuickTime Movie') ,
"application/powerpoint" => array( 1, 'apps.gif' , 'PowerPoint Doc' ) ,
"audio/x-wav" => array( 1, 'sound.gif' , 'WAV File' ) ,
"audio/x-mpeg" => array( 1, 'mp3.gif' , 'MPEG Audio' ) ,
"image/jpeg" => array( 1, 'jpeg.gif' , 'JPEG Image' ,1) ,
"application/x-zip-compressed" => array( 1, 'zip.gif' , 'ZIP File' ) ,
"application/octet-stream" => array( 1, 'quicktime.gif' , 'OCTET Stream' ) ,
"text/plain" => array( 1, 'text.gif' , 'Text File' ) ,
"image/pjpeg" => array( 1, 'jpeg.gif' , 'JPEG Image' ,1) ,
);
?>
Binary file not shown.

After

Width:  |  Height:  |  Size: 634 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 450 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 540 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 655 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 459 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 477 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 299 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 597 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 446 B

+1
View File
@@ -0,0 +1 @@
<html>␍<head><title>IBForums - Bulletin Board System</title></head>␍<body>␍<h1>403: IBForums-> Forbidden</h1>␍<hr>␍You have reached this Page in error, please use␍your back button to return to Invision Board.␍<hr>␍<a href="http://www.invisionboard.com/">Get your free download of IBForums now!</a>␍</body>␍</html>␍
Binary file not shown.

After

Width:  |  Height:  |  Size: 325 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 465 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 482 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 472 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 468 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 708 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 690 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 698 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 481 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 698 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 705 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 705 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 698 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 697 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 698 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 897 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 946 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

+1
View File
@@ -0,0 +1 @@
bbtags = new Array();␍␍//--------------------------------------------␍// Get stack size␍//--------------------------------------------␍␍function stacksize(thearray)␍{␍ for (i = 0 ; i < thearray.length; i++ )␍ {␍ if ( (thearray[i] == "") || (thearray[i] == null) || (thearray == 'undefined') )␍ {␍ return i;␍ }␍ }␍ ␍ return thearray.length;␍}␍␍//--------------------------------------------␍// Push stack␍//--------------------------------------------␍␍function pushstack(thearray, newval)␍{␍ arraysize = stacksize(thearray);␍ thearray[arraysize] = newval;␍}␍␍//--------------------------------------------␍// Pop stack␍//--------------------------------------------␍␍function popstack(thearray)␍{␍ arraysize = stacksize(thearray);␍ theval = thearray[arraysize - 1];␍ delete thearray[arraysize - 1];␍ return theval;␍}␍␍//--------------------------------------------␍// Close current open tag␍//--------------------------------------------␍␍function closelast()␍{␍␍ if (bbtags[0])␍ {␍ document.REPLIER.Post.value += "[/" + popstack(bbtags) + "]";␍ }␍ ␍ document.REPLIER.Post.focus();␍ ␍}␍␍//--------------------------------------------␍// Close all tags␍//--------------------------------------------␍␍function closeall()␍{␍ if (bbtags[0])␍ {␍ while (bbtags[0])␍ {␍ document.REPLIER.Post.value += "[/" + popstack(bbtags) + "]";␍ }␍ ␍ document.REPLIER.Post.value += " ";␍ }␍ ␍ document.REPLIER.Post.focus();␍}␍␍//--------------------------------------------␍// EMOTICONS␍//--------------------------------------------␍␍function emoticon(theSmilie)␍ {␍ if (document.REPLIER.Post.caretPos && document.REPLIER.Post.createTextRange)␍ {␍ var caretPos = document.REPLIER.Post.caretPos;␍ caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? theSmilie + ' ' : theSmilie;␍ }␍ else␍ {␍ document.REPLIER.Post.value += ' ' + theSmilie + ' ';␍ }␍ ␍ document.REPLIER.Post.focus();␍}␍␍//--------------------------------------------␍// ADD CODE␍//--------------------------------------------␍␍function add_code(NewCode)␍{␍ document.REPLIER.Post.value += NewCode;␍ document.REPLIER.Post.focus();␍ return;␍}␍␍//--------------------------------------------␍// ALTER FONT␍//--------------------------------------------␍␍function alterfont(theval, thetag)␍{␍ if (theval == 0)␍ {␍ return;␍ }␍ else␍ {␍ document.REPLIER.Post.value += "[" + thetag + "=" + theval + "]";␍ pushstack(bbtags, thetag);␍ }␍ ␍ document.REPLIER.ffont.selectedIndex = 0;␍ document.REPLIER.fsize.selectedIndex = 0;␍ document.REPLIER.fcolor.selectedIndex = 0;␍ ␍ document.REPLIER.Post.focus();␍}␍␍␍//--------------------------------------------␍// SIMPLE TAGS (such as B, I U, etc)␍//--------------------------------------------␍␍function simpletag(thetag)␍{␍ document.REPLIER.Post.value += "[" + thetag + "]";␍ ␍ pushstack(bbtags, thetag);␍ ␍ document.REPLIER.Post.focus();␍}␍␍function tag_url()␍{␍ var FoundErrors = '';␍ var enterURL = prompt(text_enter_url, "http://");␍ var enterTITLE = prompt(text_enter_url_name, "My Webpage");␍ if (!enterURL)␍ {␍ FoundErrors += " " + error_no_url;␍ }␍ if (!enterTITLE)␍ {␍ FoundErrors += " " + error_no_title;␍ }␍ if (FoundErrors)␍ {␍ alert("Error!"+FoundErrors);␍ return;␍ }␍ var ToAdd = "[URL="+enterURL+"]"+enterTITLE+"[/URL]";␍ document.REPLIER.Post.value+=ToAdd;␍ document.REPLIER.Post.focus();␍}␍␍function tag_image()␍{␍ var FoundErrors = '';␍ var enterURL = prompt(text_enter_image, "http://");␍ if (!enterURL) {␍ FoundErrors += " " + error_no_url;␍ }␍ if (FoundErrors) {␍ alert("Error!"+FoundErrors);␍ return;␍ }␍ var ToAdd = "[IMG]"+enterURL+"[/IMG]";␍ document.REPLIER.Post.value+=ToAdd;␍ document.REPLIER.Post.focus();␍}␍␍function tag_email()␍{␍ var emailAddress = prompt(text_enter_email,"");␍ if (!emailAddress) { alert(error_no_email); return; }␍ var ToAdd = "[EMAIL]"+emailAddress+"[/EMAIL]";␍ document.REPLIER.Post.value+=ToAdd;␍ document.REPLIER.Post.focus();␍}
+1
View File
@@ -0,0 +1 @@
<html>␍<head><title>IBForums - Bulletin Board System</title></head>␍<body>␍<h1>403: IBForums-> Forbidden</h1>␍<hr>␍You have reached this Page in error, please use␍your back button to return to Invision Board.␍<hr>␍<a href="http://www.invisionboard.com/">Get your free download of IBForums now!</a>␍</body>␍</html>␍
Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 B

Loaded 100 of 341 files, more files were not shown because too many files have changed in this diff. Show more