Version 2.0.0

This commit is contained in:
Neo committed 2025-12-19 00:19:56 -08:00
1 parent 5699abfc0e
commit 0eecc172d9
696 files changed
+120723 -77160

No files matched your search

@@ -104,7 +104,7 @@
After installing, Invision Power 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
has not been able to create this file. After you have logged into the Admin Center for the first time, you should remove the "install/index.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.
@@ -1,671 +1,336 @@
<!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", "cache", "fonts", "html", "lang", "modules", "Skin", "sources", "ssi_templates", "style_images",
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
Using your FTP client, create the following directories "cache", "install", "ips_kernel", "jscripts", "lang", "lofiversion", "modules", "retail", "skin_acp", "skin_cache", "sources", "style_avatars", "style_emoticons", "style_images", "upgrade" 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
Once the directories have been created, CHMOD "skin_cache" 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", "css.php", "index.php",
"install_templates.txt", "sm_install.php", "ssi.php" to the same place as you created the directories earlier (into "forums" for our example).
Once you have finished uploading into the directories, upload the rest of the files "admin.php", "conf_global.php", "ipb_templates.xml" and "index.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 Power 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.)
Run the installer 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/install/index.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
Clicking on proceed will present you with a simple information form. You will need to know your SQL 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
<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 SQL 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 Power 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 Power 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 Power 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>
<td class='header' align='left'>Installing: Step 3 - Post Installation</td>
</tr>
<tr>
<td align='left'>
The Invision Power 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/documentation.cgi'>Invision Power 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 Power Board locks the installer after a successful install, it's always a good idea to remove the installer as re-running it
The first thing you will need to do is remove the "install/index.php" file from your server; although Invision Power 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/documentation.cgi'>Invision Power 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 Power 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 Power 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='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>cache</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='left' valign='middle' bgcolor='#FFFFFF'>ipb_templates.xml</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'>css.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'>fonts</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'>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='file.gif' border='0' alt='PHP file'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'>install_templates.txt</td>
<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'>install</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'>ips_kernel</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'>jscripts</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'>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='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>lofiversion</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'>modules</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'>Skin</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>retail</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>
<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'>skin_acp</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'>sm_install.php</td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<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_cache</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'>-</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='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>style_avatars</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_emoticons</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'>-</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_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>
<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'>uploads</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0777</a>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>upgrade</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'><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'>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>
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

+70 -18
View File
@@ -27,7 +27,65 @@
a:link, a:visited, a:active { color:#000055 }
a:hover { color:#333377;text-decoration:underline }
#navstrip{
background-color: #F9F9F9;
border-bottom: 1px solid #CCC;
border-left: 1px solid #CCC;
border-right: 1px solid #CCC;
border-top: 0px solid #CCC;
color: #999;
font-size: 12px;
font-weight: bold;
padding: 8px 0px 8px 6px;
}
#navstrip a:link,
#navstrip a:visited,
#navstrip a:active{
background-color: transparent;
color: #222;
text-decoration: none;
}
#navstrip a:hover{
background-color: transparent;
color: #5176B5;
text-decoration: none;
}
#logostrip{
background-color: #3860BB;
background-image: url(tile_back.gif);
border-bottom: 5px solid #072A66;
border-left: 1px solid #072A66;
border-right: 1px solid #072A66;
border-top: 1px solid #072A66;
height: 52px;
margin: 0px;
padding: 0px;
}
#logostripinner{
background-color: transparent;
background-image: url(logobg.gif);
background-position: right;
background-repeat: no-repeat;
height: 52px;
margin: 0px;
padding: 0px;
}
#logographic{
background-color: transparent;
background-image: url(logo4.gif);
background-position: left;
background-repeat: no-repeat;
cursor: pointer;
height: 52px;
margin: 0px;
padding: 0px;
}
</style>
@@ -36,25 +94,19 @@
<body bgcolor="#FFFFFF" topmargin='5' leftmargin='0'>
<div id='logostrip'>
<div id='logostripinner'>
<div id='logographic'><!-- No Content --></div>
</div>
</div>
<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>
<div id='navstrip' align='center'>
<b><a href='welcome.html#welcome' target='bottom'>Welcome</a></b> &middot;
<b><a href='welcome.html#require' target='bottom'>Requirements</a></b> &middot;
<b><a href='install.html#top' target='bottom'>Installing</a></b> &middot;
<b><a href='install.html#structure' target='bottom'>Structure & CHMOD</a></b> &middot;
<b><a href='help.html#top' target='bottom'>Help & FAQ</a></b>
</div>
</body>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 B

After

Width:  |  Height:  |  Size: 488 B

@@ -28,7 +28,7 @@
</tr>
<tr>
<td align='left'>
<br>Welcome to Invision Power Board, a fast, efficient, scalable community solution written in PHP and using MySQL for database storage.
<br>Welcome to Invision Power Board, a fast, efficient, scalable community solution written in PHP.
<br><br>
This guide will help you through the installation process and get you on your way to setting up your own Invision Power Board.
<br>
@@ -59,16 +59,16 @@
<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
You must have a webserver that has PHP 4.1.0 (or better) and mySQL 3.23 (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. If your web host does not support PHP or mySQL, consider hosting your entire web site or forums with <a href='http://www.ipshosting.com' target='blank'>IPS Hosting</a> services.
<br>Invision Power 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 Power 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.
You <b>do not</b> need a new SQL database as Invision Power Board supports table prefixes to prevent tables being overwritten.
<br>You will also need the SQL username and SQL password for a SQL user that has permission to "CREATE", "DROP" and "ALTER" tables.
<br>You will need about 2mb of free web space and roughly 3mb of SQL database space to allow installation and a moderate 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>
@@ -81,7 +81,7 @@
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td align='center' class='copyright'>
Invision Power Board, Invision Power Board Installation Guide &copy; 2002 <a href='http://www.invisionpower' target='_blank'>Invision Power Services</a>
Invision Power Board, Invision Power Board Installation Guide &copy; 2004 <a href='http://www.invisionpower' target='_blank'>Invision Power Services</a>
</td>
</tr>
</table>
@@ -12,7 +12,7 @@
</head>
<frameset rows='90, *' frameborder='no' border='0' framespacing='0'>
<frameset rows='115, *' frameborder='no' border='0' framespacing='0'>
<frame src="data/menu.html" name="topmenu" longdesc="Top%20Menu%20Bar" scrolling="no" noresize>
-361
View File
@@ -1,361 +0,0 @@
<!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 Power Board Upgrade Guide</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='upgrade_v11x.html#intro'>Introduction</a> | <a href='upgrade_v11x.html#upgrade'>Upgrading</a> | <a href='upgrade_v11x.html#main'><b>HELP!!</b></a> | <a href='upgrade_v11x.html#help'>Getting Further Help</a>
</td></tr>
</table>
<br>
<a name='intro'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>Welcome!</td>
</tr>
<tr>
<td align='left'>
<b>Synopsis: Upgrading from v1.1.x to v1.2</b>
<br>
To upgrade your existing board from Invision Board v1.1.x to Invision Board v1.2, you'll need to update all the program files and
run an upgrade script that is included in this distribution. You may want to create a database back up and download via FTP any
existing language packs and skin files as these may be over-written during the upgrade.
<br><br>
<b>Important: Skins and full text searching</b>
<br>
All v1.1.x skins are not compatible with v1.2. IPB v1.2 has an XHTML compliant skin which has been totally rewritten. The upgrade
process will 'sunset' all your current skins by marking them as hidden so that you may manually update them if desired.
<br /><br />
IPB v1.2 also supports full text searching. It is recommended that after the upgrade you log into your Admin CP, expand the "Board Options" sub menu and
set up full text search. Note, you will not be able to use the "quick" search until full text searching has been enabled.
</td></tr>
</table>
<br>
<a name='upgrade'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>Upgrading</td>
</tr>
<tr>
<td align='left'>
<b>Saving Old Data</b>
<br>
If you wish to save the information in the old default skin, please do the following:
<br>
<span style='color:blue'>Via FTP download the directories "Skin/s1/" and "style_images/1/"</span>. The upgrade will need the
v1.1 files to reside in those directories and any previous data will be lost. You will also need to export the default macro set if
you wish to retain the information. This <em>should</em> just be the original v1.1 macro set and overwriting it will be harmless.
<br><br>
<b>Uploading the Files</b>
<br>
From the unzipped package, upload the following files to the same directory that your existing board is in:
<br><span style='color:blue'>admin.php
<br>css.php
<br>index.php
<br>install_templates.txt
<br>show.php
<br>upgrade5.php</span>
<br><br>Upload the directories (and any contents / sub directories):
<br>
<span style='color:red'>
cache
<br>
fonts
<br>
html (All files and sub forums, etc)
<br>
lang/en/*.php (All PHP files. Create the directory if it's not there and upload into it)
<br>
Skin/s1/*.php (All PHP files. Create the directory if it's not there and upload into it)
<br>
sources/*.* (All PHP files and sub folders)
<br>
style_images/1/ (All files. Create the directory "1" if it's not there and upload into it)</span>
<br><br>
In short: Upload everything as if it were a new install!
<br><br>
<b>Please check the following before you proceed</b>
<br>You MUST ensure that the new skin PHP files are in a directory called "Skin/s1/" - if you have previously removed "s1" from the "Skins" directory, please re-create it via FTP and upload the skin PHP files into it.
<br><br>You MUST ensure that the new images are in a directory called "style_images/1/" - if you have previously
removed "1" from the "style_images" directory, please re-create it via FTP and upload the images into it.
<br><br>You MUST make sure the file 'install_templates.txt' is uploaded into the same directory as 'index.php'
<br><br>You MUST make sure the script 'upgrade5.php' is uploaded into the same directory as 'index.php'
<br><br>
<b>Running the upgrade script</b>
<br>
Open up a new browser window and enter the URL to the upgrade5.php script (example: www.board.com/forums/upgrade5.php)
Follow the onscreen instructions to update your database.
<br><br>
If you get an error during the upgrade, try hitting back in your browser and try again.
<br>
This script will upgrade your database, install new templates and perform a clean up.
<br><br>
<span style='color:red'><b>IMPORTANT: PLEASE REMOVE THE SCRIPT WHEN THE UPGRADE IS COMPLETED!</b></span>
<br><br>
That's it, you should be done!
</td></tr>
</table>
<br>
<a name='main'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>HELP!!: Common Problems</td>
</tr>
<tr>
<td align='left'>
<b>The upgrade worked fine, but I get a blank screen now!!</b>
<br>
The upgrade takes it's best guess when it creates the new skin set, it's not impossible that it might not match everything up.
If you get a blank screen, it's usually because the board wrapper it's chosen is broken / doesn't exist. Try the following:
<br>Log into your Admin CP. Go to "Skins & Templates". Click on "Manage Skin Sets" and edit "IPB Default Set (1.2)" and make
sure it's got a valid template set and wrapper.
<br><br>
<b>I can't do anything, I get loads of errors!!</b>
<br>
This is <b>always</b> caused by a failure to update the files in "Skin/s1/" on your server. Simply put, they MUST be updated from
the ones included in this zip file (upload/Skins/s1). Upload the skins and refresh your browser.
</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 our "Support and Community Forums". We have a large active community who have experience in maintaining their Invision Power 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 <b><a href='http://www.invisionboard.com/?whyregister' target='_blank'>registering your board</a></b>. 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 Power Board administrators will have access to those tickets.
<li>You will be given access to a 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 and upgrade 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/?services' target='_blank'>advanced services</a> page.
<br><br>
If you wish to contact us for non-technical issues, 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>
+116
View File
@@ -0,0 +1,116 @@
<html>
<head><title>Invision Power Board UPGRADE</title>
<style type='text/css'>
BODY
{
background-color:#336699;
font-size: 11px;
font-family: Verdana, Arial;
color: #000;
margin: 20px;
padding: 0px;
}
h1 { font-family:arial,verdana,sans-serif;font-weight:bold;font-size:30px;color:#000; border-bottom:1px solid #000; }
h2 { font-family:arial,verdana,sans-serif;font-weight:bold;font-size:20px;color:#000; }
TABLE, TR, TD { font-family:Verdana, Arial;font-size: 11px; color:#000 }
a:link, a:visited, a:active { color:#000055 }
a:hover { color:#333377;text-decoration:underline }
.centerbox { margin-right:10%;margin-left:10%;text-align:left }
.warnbox {
border:1px solid #F00;
background: #FFE0E0;
padding:6px;
margin-right:10%;margin-left:10%;text-align:left;
}
.tablepad { background-color:#F5F9FD;padding:6px }
.pformstrip { background-color: #D1DCEB; color:#3A4F6C;font-weight:bold;padding:7px;margin-top:1px;text-align:left }
.pformleftw { background-color: #F5F9FD; padding:6px; margin-top:1px;width:40%; border-top:1px solid #C2CFDF; border-right:1px solid #C2CFDF; }
.pformright { background-color: #F5F9FD; padding:6px; margin-top:1px;border-top:1px solid #C2CFDF; }
.tableborder { border:1px solid #345487;background-color:#FFF; padding:0px; margin:0px; width:100% }
#copy { font-size:10px }
#button { background-color: #4C77B6; color: #FFFFFF; font-family:Verdana, Arial; font-size:11px }
#textinput { background-color: #EEEEEE; color:Ý#000000; font-family:Verdana, Arial; font-size:10px; width:100% }
#dropdown { background-color: #EEEEEE; color:Ý#000000; font-family:Verdana, Arial; font-size:10px }
#multitext { background-color: #EEEEEE; color:Ý#000000; font-family:Courier, Verdana, Arial; font-size:10px }
#logostrip {
padding: 0px;
margin: 0px;
background: #7AA3D0;
}
</style>
</head>
<body>
<table align="center" width="750" cellpadding="15" cellspacing="0" bgcolor='#FFFFF' style='border:1px solid #000'>
<tr>
<td align='left'>
<h1>Welcome to the IPB Upgrade Center</h1>
This document will provide you with the information required to upgrade your IPB 1 series board to the IPb 2.0.0 series board.
The upgrade process physically updates your current series 1 database and for that reason, we <strong>strongly</strong> recommend that you back up your
SQL database and files before attempting this upgrade.
<br />
<br />
Also note that existing skins are not immediately IPB 2.0.0 compatible. They are roughly converted into the IPB 2.0.0 <em>format</em> but they will require
<strong>manual</strong> upgrading. The conversion process puts them as children of the "Pre IPB 2.0.0" skin set for your review.
<br />
<br /><strong>Remember: There is no downgrade path!</strong>
<h2>Backing up your database</h2>
We recommend that you back up your database by using the <em>mysqldump</em> command line tool:
<br />
<pre>mysqldump --opt -u<span style='color:red'>username</span> -p <span style='color:red'>databasename</span> &gt; <span style='color:red'>databasename</span>.sql</pre>
(Substituting <em>username</em> for your MySQL username and <em>databasename</em> for your MySQL database name)
<br />
Once the backup is complete (and it may take quite a while for larger boards) you should then download your IPB PHP files to complete the back-up process.
<br />
<h2>Deleting the old files</h2>
Once the backup process is complete, you can safetly delete all the IPB 1 series files EXCEPT <span style='font-family:monospace'>conf_global.php and the uploads folder</span>.
<br />
You can keep the directory <span style='font-family:monospace'>style_images</span> and its contents if desired and we recommend keeping
<span style='font-family:monospace'>html/emoticons</span> to prevent your
old posts from showing broken images inplace of emoticons. If you wish to remove this directory, you can rebuild all your post caches once the upgrade
has completed.
<h2>Uploading the new files</h2>
Upload the contents of the unarchived IPB 2.0.0 zip file (all the files in the 'upload' folder EXCEPT <span style='font-family:monospace'>conf_global.php</span>. If you
do overwrite this file by mistake, you will have to edit it manually to put back in your database details.
<br />Make sure you upload all the files, including the folders and contents: <span style='font-family:monospace'>install</span>, <span style='font-family:monospace'>upgrade</span>
and <span style='font-family:monospace'>ipb_templates.xml</span>.
<h2>Using the upgrade tool</h2>
Once you've uploaded all the files, point your browser at: <span style='font-family:monospace'>http://<span style='color:red'>domain.com/forum/</span>upgrade/upgrade.php</span>. (Substituting
<em>domain.com/forum/</em> for your real location to your board.
<br />
The upgrade tool will figure out which version you are currently running. Take a moment to make sure its correct and read the safety notice before proceeding.
<br />
The upgrade tool will then automatically run through all the required steps. This may take a while on some of the steps - please be patient.
<br />
Once the upgrade tool has completed the process, you can log into the board and the administrators control panel to check that the upgrade process has been
successful.
<br />
<br />
That's it - you should now be running the latest IPB 2.0.0 version!
<br />
<br />
</td>
</tr>
</table>
</body>
</html>
@@ -1,262 +0,0 @@
<?php
/*
+--------------------------------------------------------------------------
| INVISION POWER BOARD PATCH SCRIPT
| ========================================
| by Matthew Mecham
| (c) 2001 - 2003 Invision Power Services
| http://www.invisionpower.com
| ========================================
| Web: http://www.invisionboard.com
| Email: matt@invisionpower.com
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
|
| > Patch script
| > Script written by Matt Mecham
| > Date started: 17th June 2003
|
+--------------------------------------------------------------------------
*/
//-----------------------------------------------
// USER CONFIGURABLE ELEMENTS
//-----------------------------------------------
// Root path
$root_path = "./";
//-----------------------------------------------
// NO USER EDITABLE SECTIONS BELOW
//-----------------------------------------------
error_reporting (E_ERROR | E_WARNING | E_PARSE);
set_magic_quotes_runtime(0);
//--------------------------------
// Import $INFO, now!
//--------------------------------
require $root_path."conf_global.php";
//--------------------------------
// Load the DB driver and such
//--------------------------------
$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();
$members = array();
$DB->query("SELECT * FROM ibf_members WHERE mgroup=".$INFO['auth_group']);
while ( $r = $DB->fetch_row() )
{
$members[ $r['id'] ] = $r;
}
$tmp = $members;
$DB->query("SELECT * FROM ibf_validating");
while ( $v = $DB->fetch_row() )
{
if ( is_array( $members[ $v['member_id'] ] ) )
{
unset($members[ $v['member_id'] ]);
}
}
/*header("Content-type: text/plain");
print_r($tmp);
print_r($members);
exit();*/
$count = intval( count($members) );
if ( $count > 0 )
{
foreach( $members as $mid => $mdata )
{
$dbs = array(
'vid' => md5( time() . $mid ),
'member_id' => $mdata['id'],
'real_group' => $INFO['member_group'],
'temp_group' => $INFO['auth_group'],
'entry_date' => time(),
'coppa_user' => 0,
'new_reg' => 1,
'ip_address' => '127.0.0.1',
);
$dbstring = $DB->compile_db_insert_string($dbs);
$DB->query("INSERT INTO ibf_validating ({$dbstring['FIELD_NAMES']}) VALUES({$dbstring['FIELD_VALUES']})");
}
}
echo("<html><body><b>$count members found...</b><br /><br />Update complete, you may now remove this file</body></html>");
exit();
//+-------------------------------------------------
// GLOBAL ROUTINES
//+-------------------------------------------------
function fatal_error($message="", $help="") {
echo("$message<br><br>$help");
exit;
}
?>
File diff suppressed because it is too large. Load diff
@@ -1,58 +0,0 @@
$SQL[] = "INSERT INTO ibf_macro VALUES (1, 'A_LOCKED_B', '<img src=\'style_images/<#IMG_DIR#>/t_closed.gif\' border=\'0\' alt=\'Closed Topic\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (2, 'A_MOVED_B', '<img src=\'style_images/<#IMG_DIR#>/t_moved.gif\' border=\'0\' alt=\'Moved Topic\'>', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (3, 'A_POLLONLY_B', '<img src=\'style_images/<#IMG_DIR#>/t_closed.gif\' border=\'0\' alt=\'Poll Only\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (4, 'A_POST', '<img src=\'style_images/<#IMG_DIR#>/t_new.gif\' border=\'0\' alt=\'Start new topic\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (5, 'A_REPLY', '<img src=\'style_images/<#IMG_DIR#>/t_reply.gif\' border=\'0\' alt=\'Reply to this topic\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (6, 'A_POLL', '<img src=\'style_images/<#IMG_DIR#>/t_poll.gif\' border=\'0\' alt=\'Start Poll\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (7, 'A_STAR', '<img src=\'style_images/<#IMG_DIR#>/pip.gif\' border=\'0\' alt=\'*\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (8, 'B_HOT', '<img src=\'style_images/<#IMG_DIR#>/f_hot.gif\' border=\'0\' alt=\'Hot topic\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (9, 'B_HOT_NN', '<img src=\'style_images/<#IMG_DIR#>/f_hot_no.gif\' border=\'0\' alt=\'No new\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (10, 'B_LOCKED', '<img src=\'style_images/<#IMG_DIR#>/f_closed.gif\' border=\'0\' alt=\'Closed\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (11, 'B_MOVED', '<img src=\'style_images/<#IMG_DIR#>/f_moved.gif\' border=\'0\' alt=\'Moved\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (12, 'B_NEW', '<img src=\'style_images/<#IMG_DIR#>/f_norm.gif\' border=\'0\' alt=\'New Posts\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (13, 'B_NORM', '<img src=\'style_images/<#IMG_DIR#>/f_norm_no.gif\' border=\'0\' alt=\'No New Posts\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (14, 'B_PIN', '<img src=\'style_images/<#IMG_DIR#>/f_pinned.gif\' border=\'0\' alt=\'Pinned\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (15, 'B_POLL', '<img src=\'style_images/<#IMG_DIR#>/f_poll.gif\' border=\'0\' alt=\'Poll\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (16, 'B_POLL_NN', '<img src=\'style_images/<#IMG_DIR#>/f_poll_no.gif\' border=\'0\' alt=\'No new votes\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (17, 'B_HOT_DOT', '<img src=\'style_images/<#IMG_DIR#>/f_hot_dot.gif\' border=\'0\' alt=\'New Posts\'>', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (18, 'B_NEW_DOT', '<img src=\'style_images/<#IMG_DIR#>/f_norm_dot.gif\' border=\'0\' alt=\'No New Posts\'>', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (19, 'B_HOT_NN_DOT', '<img src=\'style_images/<#IMG_DIR#>/f_hot_no_dot.gif\' border=\'0\' alt=\'No New Posts*\'>', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (20, 'B_NORM_DOT', '<img src=\'style_images/<#IMG_DIR#>/f_norm_no_dot.gif\' border=\'0\' alt=\'No New Posts*\'>', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (21, 'B_POLL_DOT', '<img src=\'style_images/<#IMG_DIR#>/f_poll_dot.gif\' border=\'0\' alt=\'Poll*\'>', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (22, 'B_POLL_NN_DOT', '<img src=\'style_images/<#IMG_DIR#>/f_poll_no_dot.gif\' border=\'0\' alt=\'No New Votes*\'>', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (23, 'C_LOCKED', '<img src=\'style_images/<#IMG_DIR#>/bf_readonly.gif\' border=\'0\' alt=\'Read Only Forum\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (24, 'C_OFF', '<img src=\'style_images/<#IMG_DIR#>/bf_nonew.gif\' border=\'0\' alt=\'No New Posts\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (25, 'C_OFF_CAT', '<img src=\'style_images/<#IMG_DIR#>/bc_nonew.gif\' border=\'0\' alt=\'No New Posts\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (26, 'C_OFF_RES', '<img src=\'style_images/<#IMG_DIR#>/br_nonew.gif\' border=\'0\' alt=\'No New Posts\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (27, 'C_ON', '<img src=\'style_images/<#IMG_DIR#>/bf_new.gif\' border=\'0\' alt=\'New Posts\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (28, 'C_ON_CAT', '<img src=\'style_images/<#IMG_DIR#>/bc_new.gif\' border=\'0\' alt=\'New Posts\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (29, 'C_ON_RES', '<img src=\'style_images/<#IMG_DIR#>/br_new.gif\' border=\'0\' alt=\'New Posts\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (30, 'F_ACTIVE', '<img src=\'style_images/<#IMG_DIR#>/user.gif\' border=\'0\' alt=\'Active Users\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (31, 'F_NAV_SEP', '&nbsp;-&gt;&nbsp;', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (32, 'F_NAV', '<img src=\'style_images/<#IMG_DIR#>/nav.gif\' border=\'0\' alt=\'&gt;\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (33, 'F_STATS', '<img src=\'style_images/<#IMG_DIR#>/stats.gif\' border=\'0\' alt=\'Board Stats\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (34, 'NO_PHOTO', '<img src=\'style_images/<#IMG_DIR#>/nophoto.gif\' border=\'0\' alt=\'No Photo\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (35, 'CAMERA', '<img src=\'style_images/<#IMG_DIR#>/camera.gif\' border=\'0\' alt=\'Photo\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (36, 'M_READ', '<img src=\'style_images/<#IMG_DIR#>/f_norm_no.gif\' border=\'0\' alt=\'Read Msg\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (37, 'M_UNREAD', '<img src=\'style_images/<#IMG_DIR#>/f_norm.gif\' border=\'0\' alt=\'Unread Msg\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (38, 'P_AOL', '<img src=\'style_images/<#IMG_DIR#>/p_aim.gif\' border=\'0\' alt=\'AOL\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (39, 'P_DELETE', '<img src=\'style_images/<#IMG_DIR#>/p_delete.gif\' border=\'0\' alt=\'Delete Post\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (40, 'P_EDIT', '<img src=\'style_images/<#IMG_DIR#>/p_edit.gif\' border=\'0\' alt=\'Edit Post\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (41, 'P_EMAIL', '<img src=\'style_images/<#IMG_DIR#>/p_email.gif\' border=\'0\' alt=\'Email Poster\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (42, 'P_ICQ', '<img src=\'style_images/<#IMG_DIR#>/p_icq.gif\' border=\'0\' alt=\'ICQ\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (43, 'P_MSG', '<img src=\'style_images/<#IMG_DIR#>/p_pm.gif\' border=\'0\' alt=\'PM\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (44, 'P_QUOTE', '<img src=\'style_images/<#IMG_DIR#>/p_quote.gif\' border=\'0\' alt=\'Quote Post\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (45, 'P_WEBSITE', '<img src=\'style_images/<#IMG_DIR#>/p_www.gif\' border=\'0\' alt=\'Users Website\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (46, 'P_YIM', '<img src=\'style_images/<#IMG_DIR#>/p_yim.gif\' border=\'0\' alt=\'Yahoo\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (47, 'P_REPORT', '<img src=\'style_images/<#IMG_DIR#>/p_report.gif\' border=\'0\' alt=\'Report Post\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (48, 'P_MSN', '<img src=\'style_images/<#IMG_DIR#>/p_msn.gif\' border=\'0\' alt=\'MSN\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (49, 'CAT_IMG', '<img src=\'style_images/<#IMG_DIR#>/nav_m.gif\' border=\'0\' alt=\'&gt;\' width=\'8\' height=\'8\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (50, 'NEW_POST', '<img src=\'style_images/<#IMG_DIR#>/newpost.gif\' border=\'0\' alt=\'Goto last unread\' title=\'Goto last unread\' hspace=2>', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (51, 'LAST_POST', '<img src=\'style_images/<#IMG_DIR#>/lastpost.gif\' border=\'0\' alt=\'Last Post\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (52, 'BR_REDIRECT', '<img src=\'style_images/<#IMG_DIR#>/br_redirect.gif\' border=\'0\' alt=\'Redirect\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (53, 'INTEGRITY_MSGR', '<img src=\'style_images/<#IMG_DIR#>/p_im.gif\' border=\'0\' alt=\'Integrity Messenger IM\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (54, 'ADDRESS_CARD', '<img src=\'style_images/<#IMG_DIR#>/addresscard.gif\' border=\'0\' alt=\'Mini Profile\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (55, 'T_QREPLY', '<img src=\'style_images/<#IMG_DIR#>/t_qr.gif\' border=\'0\' alt=\'Quick Reply\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (56, 'T_OPTS', '<img src=\'style_images/<#IMG_DIR#>/t_options.gif\' border=\'0\' alt=\'Topic Options\' />', 1, 1);";
$SQL[] = "INSERT INTO ibf_macro VALUES (57, 'CAL_NEWEVENT', '<img src=\'style_images/<#IMG_DIR#>/cal_newevent.gif\' border=\'0\' alt=\'Add New Event\' />', 0, 1);
$SQL[] = "INSERT INTO ibf_macro VALUES (58, 'F_RULES', '<img src=\'style_images/<#IMG_DIR#>/forum_rules.gif\' border=\'0\' alt=\'Forum Rules\' />', 0, 1);
@@ -1,123 +0,0 @@
INSERT INTO ibf_categories (id, position, state, name, description, image, url) VALUES (-1, NULL, NULL, '-', NULL, NULL, NULL);
INSERT INTO ibf_categories (id, position, state, name, description, image, url) VALUES (1, 1, '1', 'A Test Category', '', '', '');
INSERT INTO ibf_css (cssid, css_name, css_text, css_comments) VALUES (1, 'Invision Style Sheet', 'form { display:inline }\r\nTABLE, TR, TD { font-family: Verdana, Tahoma, Arial; font-size: 8.5pt; color: #000000 }\r\na:link, a:visited, a:active { text-decoration: underline; color: #000000 }\r\na:hover { color: #465584 }\r\n.hlight { background-color: #DFE6EF }\r\n.dlight { background-color: #EEF2F7 }\r\n.mainbg { background-color: #FFFFFF }\r\n.mainfoot { background-color: #BCD0ED }\r\n.forum1 { background-color: #DFE6EF }\r\n.forum2 { background-color: #E4EAF2 }\r\n.post1 { background-color: #F5F9FD }\r\n.post2 { background-color: #EEF2F7 }\r\n.posthead { background-color: #E4EAF2 }\r\n\r\n.postbak { background-color: #D2D2D0 }\r\n.title { background-color: #C4DCF7 }\r\n.row1 { background-color: #EEF2F7 }\r\n.row2 { background-color: #F5F9FD }\r\n.postsep { background-color: #C7D2E0; height: 1px }\r\n\r\n.signature { font-size: 7.5pt; color: #333399 }\r\n.postdetails { font-size: 7.5pt }\r\n.postcolor, #postcolor { font-size: 9pt; line-height: 160% }\r\n.membertitle { font-size: 10px; line-height: 150%; color: #000000 }\r\n.normalname { font-size: 12px; font-weight: bold; color: #000033; padding-bottom: 2px }\r\n.normalname a:link, .normalname a:visited, .normalname a:active { text-decoration: underline; color: #000033; padding-bottom: 2px }\r\n.unreg { font-size: 11px; font-weight: bold; color: #990000 }\r\n.highlight { color: #FF0000 }\r\n.highlight a:link, .highlight a:visited, .highlight a:active { text-decoration: underline; color: #FF0000 }\r\n.highlight a:hover { text-decoration: underline }\r\n.desc { font-size: 8.0pt; color: #434951 }\r\n.copyright { font-family: Verdana, Tahoma, Arial; font-size: 7.5pt; line-height: 12px }\r\n.category { font-weight: bold; line-height: 150%; color: #4C77B6; background-color: #C2CFDF }\r\n.category a:link, #category a:visited, #category a:active { text-decoration: none; color: #4C77B6 }\r\n.postfoot {\r\n\r\n font-weight:bold;\r\n\r\n color:#3A4F6C;\r\n\r\n height: 24px;\r\n\r\n background-color: #D1DCEB;\r\n\r\n}\r\n.titlefoot { font-weight: bold; color: #3A4F6C; height: 24px; background-color: #BCD0ED }\r\n.titlemedium {\r\n\r\n font-weight:bold;\r\n color:#3A4F6C;\r\n\r\n height: 30px;\r\n\r\n background-color: #9FBCE3;\r\n \r\n background-image: url(style_images/<#IMG_DIR#>/tile_sub.gif);\r\n\r\n}\r\n.titlemedium a:link, .titlefoot a:link, .titlemedium a:visited, .titlefoot a:visited, .titlemedium a:active, .titlefoot a:active { text-decoration: underline; color: #3A4F6C }\r\n.titlemedium a:hover, .subtitle a:hover, .titlefoot a:hover { text-decoration: underline; color: #000000 }\r\n.maintitle {\r\n\r\n color:#FFFFFF;\r\n\r\n font-size: 9.5pt;\r\n \r\n height: 26px;\r\n \r\n background-image: url(style_images/<#IMG_DIR#>/tile_back.gif);\r\n\r\n}\r\n.edit { font-size: 9px }\r\n.fancyborder { border: 1px dashed #999999 }\r\n.solidborder { border: 1px solid #999999 }\r\n.maintitle a:link, .maintitle a:visited, .maintitle a:active { text-decoration: none; color: #FFFFFF }\r\n.maintitle a:hover { text-decoration: underline }\r\n.nav { font-weight: bold; color: #000000; font-size: 8.5pt }\r\n.pagetitle { color: #4C77B6; font-size: 18px; font-weight: bold; letter-spacing: -1px; line-height: 120% }\r\n.useroptions { background-color: #598CC3; height: 25px; font-weight: bold; color: #FFFFFF }\r\n.useroptions a:link, .useroptions a:visited,.useroptions a:active { text-decoration: none; color: #FFFFFF }\r\n.bottomborder { border-bottom: 1px dashed #D2D2D0 }\r\n.linkthru { color: #000000; font-size:8.5pt }\r\n.linkthru a:link, .linkthru a:active { text-decoration: underline; color: #000000 }\r\n.linkthru a:visited { text-decoration: underline; color: #000000 }\r\n.linkthru a:hover { text-decoration: underline; color: #465584 }\r\n#QUOTE { font-family: Verdana, Arial; font-size: 8pt; color: #333333; background-color: #FAFCFE; border: 1px solid Black; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px }\r\n#CODE { font-family: Verdana, Arial; font-size: 8pt; color: #333333; background-color: #FAFCFE; border: 1px solid Black; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px }\r\n.codebuttons { font-size: 8.5pt; font-family: verdana, helvetica, sans-serif; vertical-align: middle }\r\n.forminput { font-size: 9pt; font-family: verdana, helvetica, sans-serif; vertical-align: middle }\r\n.textinput { font-size: 9pt; font-family: verdana, helvetica, sans-serif; vertical-align: middle }\r\n.input { font-size: 9pt; font-family: verdana, helvetica, sans-serif; vertical-align: middle }\r\n', NULL);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (1, ':mellow:', 'mellow.gif', 0);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (2, ':huh:', 'huh.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (3, '^_^', 'happy.gif', 0);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (4, ':o', 'ohmy.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (5, ';)', 'wink.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (6, ':P', 'tongue.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (7, ':D', 'biggrin.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (8, ':lol:', 'laugh.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (9, 'B)', 'cool.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (10, ':rolleyes:', 'rolleyes.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (11, '-_-', 'sleep.gif', 0);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (12, '&lt;_&lt;', 'dry.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (13, ':)', 'smile.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (14, ':wub:', 'wub.gif', 0);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (15, ':angry:', 'mad.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (16, ':(', 'sad.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (17, ':unsure:', 'unsure.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (18, ':wacko:', 'wacko.gif', 0);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (19, ':blink:', 'blink.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (20, ':ph34r:', 'ph34r.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 password to you as we hold no record of your \'uncrypted\' password. You can however, apply to have your password reset.\r<br>\r<br>To do this, click on the <a href=\'index.php?act=Reg&CODE=10\'>Lost Password link</a> found on the log in page.\r<br>\r<br>Further instruction is available from there.', 'How to reset your password if you\'ve forgotton it.');
INSERT INTO ibf_faq (id, title, text, description) VALUES (4, 'Your Control Panel', 'Your control panel is your own private board console. You can change how the board looks and feels as well as your own information from here.\r<br>\r<br><b>Edit Profile Info</b>\r<br>\r<br>This section allows you to add or edit your contact information and enter some personal information if you choose. All of this information is optional and can be omitted.\r<br>\r<br><b>Edit Signature</b>\r<br>\r<br>A board \'signature\' is very similar to an email signature. This signature is attached to the foot of every message you post unless you choose to check the box that allows you to ommit the signature in the message you are posting. You may use BB Code if available and in some cases, pure HTML (if the board administrator allows it).\r<br>\r<br><b>Edit Avatar Settings</b>\r<br>\r<br>An avatar is a little image that appears under your username when you view a topic or post you authored. If the administrator allows, you may either choose from the board gallery, enter a URL to an avatar stored on your server or upload an avatar to use. You may also set the width of the avatar to ensure that it\'s sized in proportion.\r<br>\r<br><b>Email Settings</b>\r<br>\r<br><u>Hide my email address</u> allows you to deny the ability for other users to send you an email from the board.\r<br><u>Send me updates sent by the board administrator</u> will allow the administrator to include your email address in any mailings they send out - this is used mostly for important updates and community information.\r<br><u>Include a copy of the post when emailing me from a subscribed topic</u>, this allows you to have the new post included in any reply to topic notifications.\r<br>\r<br><b>Board Settings</b>\r<br>\r<br>From this section, you can set your timezone, choose to not see users signatures, avatars and posted images.\r<br>You can choose to get a pop up window informing you when you have a new message and hide the long session ID in links (see the \'Cookies\' help file for more infomation on this).\r<br>\r<br><b>Skins and Languages</b>\r<br>\r<br>If available, you can choose a skin style and language choice. This affects how the board is displayed so you may wish to preview the skin before submitting the form.\r<br>\r<br><b>Change Email Address</b>\r<br>\r<br>At any time, you can change the email address that is registered to your account. In some cases, you will need to revalidate your account after changing your email address. If this is the case, you will be notified before your email address change is processed.\r<br>\r<br><b>Change Password</b>\r<br>\r<br>You may change your password from this section. Please note that you will need to know your current password before you can change your password.\r<br>\r<br><b>View Subsciptions</b>\r<br>\r<br>This is where you manage your topic subscriptions. Please see the help file \'Email Notification of new messages\' for more information on how to subscribe to topics.', 'Editing contact information, personal information, avatars, signatures, board settings, languages and style choices.');
INSERT INTO ibf_faq (id, title, text, description) VALUES (5, 'Email Notification of new messages', 'This board can notify you when a new reply is added to a topic. Many users find this useful to keep up to date on topics without the need to view the board to check for new messages.\r<br>\r<br>To do this, simply click on the \'Track This Topic\' link found at the top and bottom of any topic. When you click this link, the topic will be added to your subscriptions that are managed from your control panel.\r<br>\r<br>Please note that to avoid multiple emails being sent to your email address, you will only get notified once per day of new replies.', 'How to get emailed when a new reply is added to a topic.');
INSERT INTO ibf_faq (id, title, text, description) VALUES (6, 'Your Personal Messenger', 'Your personal messenger acts much like an email account in that you can send and receive messages and store messages in folders.\r<br>\r<br><b>Send a new PM</b>\r<br>\r<br>This will allow you to send a message to another member. If you have names in your contact list, you can choose a name from it - or you may choose to enter a name in the relevant form field. This will be automatically filled in if you clicked a \'PM\' button on the board (from the memberlist or a post).\r<br>If the administrator allows, you may use BB Code and HTML in your private message. If you choose to check the \'Add a copy of this message to you sent items folder\' box, a copy of the message will be saved for you for later reference. If you check the \'Get notified when this message is read\' box, you will receive a PM informing you when the message was read for your records.\r<br>\r<br><b>Contact List</b>\r<br>\r<br>You may add in users names in this section, or edit any saved entries. You can also use this as a ban list, denying the named member the ability to message you.\r<br>Names entered in this section will appear in the drop down list when sending a new PM, allowing you to quickly choose the members name when sending a message.\r<br>\r<br><b>Edit Folders</b>\r<br>\r<br>You may rename, add or remove folders to store messages is, allowing you to organise your messages to your preference. You cannot remove \'Sent Items\' or \'Inbox\'.\r<br>\r<br><b>Go to Inbox</b>\r<br>\r<br>Your inbox is where all new messages are sent to. Clicking on the message title will show you the message in a similar format to the board topic view. You can also delete or move messages from your inbox.\r<br>\r<br><b>Archive Messages</b>\r<br>\r<br>If your messenger folders are full and you are unable to receive new messages, you can archive them off. This compiles the messages into a single HTML page or Microsoft &copy; Excel Format. This page is then emailed to your registered email address for your convenience.\r<br>\r<br>', 'How to send personal messages, edit your messenger folders and archive stored messages.');
INSERT INTO ibf_faq (id, title, text, description) VALUES (7, 'Contacting the moderating team', 'If you need to contact a moderator or simply wish to view the complete administration team, you can click the link \'The moderating team\' found at the top of the main board page (the first page you see when visiting the board).\r<br>\r<br>This list will show you administrators (those who have administration control panel access), global moderators (those who can moderate in all forums) and the moderators of the individual forums.\r<br>\r<br>If you wish to contact someone about your member account, then contact an administrator - if you wish to contact someone about a post or topic, contact either a global moderator or the forum moderator.', 'Where to find a list of the board moderators and administrators.');
INSERT INTO ibf_faq (id, title, text, description) VALUES (8, 'Viewing members profile information', 'You can view a members profile at any time by clicking on their name when it is underlined (as a link) or by clicking on their name in a post within a topic.\r<br>\r<br>This will show you their profile page which contains their contact information (if they have entered some) and their \'active stats\'.', 'How to view members contact information.');
INSERT INTO ibf_faq (id, title, text, description) VALUES (9, 'Viewing todays active topics', 'You can view which new topics have new replies today by clicking on the \'Todays Active Topics\' link found on the main board page (the first page you see when visiting the board).\r<br>\r<br>You can set your own date critera, choosing to view all topics with new replies during several date choices.', 'How to view all the topics which have a new reply today');
INSERT INTO ibf_faq (id, title, text, description) VALUES (10, 'Searching Topics and Posts', 'The search feature is designed to allow you to quickly find topics and posts that contain the keywords you enter.\r<br>\r<br>The \'Simple Search\' option from the drop down box allows you to enter a single keyword or phrase to search by - the advanced option allows you to join keywords with \'AND\', \'OR\' to fine tune the search. Using this option will make the search slightly slower.\r<br>\r<br>The bottom section of the form allows you to further fine tune the search. You can choose a category to search in, or a forum - or choose all forums to search in.\r<br>\r<br>If you enter a name into the \'Search by member name\' section, all posts started or replied in by this member are returned.', 'How to use the search feature.');
INSERT INTO ibf_faq (id, title, text, description) VALUES (11, 'Logging in and out', 'If you have chosen not to remember your log in details in cookies, or you are accessing the board on another computer, you will need to log into the board to access your member profile and post with your registered name.\r<br>\r<br>When you log in, you have the choice to save cookies that will log you in automatically when you return. Do not use this option on a shared computer for security.\r<br>\r<br>You can also choose to hide - this will keep your name from appearing in the active users list.\r<br>\r<br>Logging out is simply a matter of clicking on the \'Log Out\' link that is displayed when you are logged in. If you find that you are not logged out, you may need to manually remove your cookies. See the \'Cookies\' help file for more information.', 'How to log in and out from the board and how to remain anonymous and not be shown on the active users list.');
INSERT INTO ibf_forums (id, topics, posts, last_post, last_poster_id, last_poster_name, name, description, position, use_ibc, use_html, status, start_perms, reply_perms, read_perms, password, category, last_title, last_id, sort_key, sort_order, prune, show_rules, upload_perms, preview_posts, allow_poll, allow_pollbump, inc_postcount, skin_id, parent_id, subwrap, sub_can_post) VALUES (1, 1, 1, 0, 1, 'Invision Board Team', 'A Test Forum', 'A test forum that may be removed at any time', 1, 1, 0, '1', '*', '*', '*', '', 1, 'Welcome', 1, 'last_post', 'Z-A', 30, 0, '', 0, 0, 0, 1, NULL, -1, 0, 1);
INSERT INTO ibf_groups (g_id, g_view_board, g_mem_info, g_other_topics, g_use_search, g_email_friend, g_invite_friend, g_edit_profile, g_post_new_topics, g_reply_own_topics, g_reply_other_topics, g_edit_posts, g_delete_own_posts, g_open_close_posts, g_delete_own_topics, g_post_polls, g_vote_polls, g_use_pm, g_is_supmod, g_access_cp, g_title, g_can_remove, g_append_edit, g_access_offline, g_avoid_q, g_avoid_flood, g_icon, g_attach_max, g_avatar_upload, g_calendar_post, prefix, suffix, g_max_messages, g_max_mass_pm, g_search_flood, g_edit_cutoff, g_promotion, g_hide_from_list) VALUES (4, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 'Admin', 0, 1, 1, 1, 1, '', 50000, 1, 1, '', '', 50, 6, 0, 5, '-1&-1', 0);
INSERT INTO ibf_groups (g_id, g_view_board, g_mem_info, g_other_topics, g_use_search, g_email_friend, g_invite_friend, g_edit_profile, g_post_new_topics, g_reply_own_topics, g_reply_other_topics, g_edit_posts, g_delete_own_posts, g_open_close_posts, g_delete_own_topics, g_post_polls, g_vote_polls, g_use_pm, g_is_supmod, g_access_cp, g_title, g_can_remove, g_append_edit, g_access_offline, g_avoid_q, g_avoid_flood, g_icon, g_attach_max, g_avatar_upload, g_calendar_post, prefix, suffix, g_max_messages, g_max_mass_pm, g_search_flood, g_edit_cutoff, g_promotion, g_hide_from_list) VALUES (2, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, 'Guests', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, 50, 0, 20, 0, '-1&-1', 0);
INSERT INTO ibf_groups (g_id, g_view_board, g_mem_info, g_other_topics, g_use_search, g_email_friend, g_invite_friend, g_edit_profile, g_post_new_topics, g_reply_own_topics, g_reply_other_topics, g_edit_posts, g_delete_own_posts, g_open_close_posts, g_delete_own_topics, g_post_polls, g_vote_polls, g_use_pm, g_is_supmod, g_access_cp, g_title, g_can_remove, g_append_edit, g_access_offline, g_avoid_q, g_avoid_flood, g_icon, g_attach_max, g_avatar_upload, g_calendar_post, prefix, suffix, g_max_messages, g_max_mass_pm, g_search_flood, g_edit_cutoff, g_promotion, g_hide_from_list) VALUES (3, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 'Members', 0, 1, 0, 0, 0, '', 0, 1, 0, '', '', 50, 0, 20, 0, '-1&-1', 0);
INSERT INTO ibf_groups (g_id, g_view_board, g_mem_info, g_other_topics, g_use_search, g_email_friend, g_invite_friend, g_edit_profile, g_post_new_topics, g_reply_own_topics, g_reply_other_topics, g_edit_posts, g_delete_own_posts, g_open_close_posts, g_delete_own_topics, g_post_polls, g_vote_polls, g_use_pm, g_is_supmod, g_access_cp, g_title, g_can_remove, g_append_edit, g_access_offline, g_avoid_q, g_avoid_flood, g_icon, g_attach_max, g_avatar_upload, g_calendar_post, prefix, suffix, g_max_messages, g_max_mass_pm, g_search_flood, g_edit_cutoff, g_promotion, g_hide_from_list) VALUES (1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Validating', 0, 1, 0, 0, 0, NULL, 0, 0, 0, NULL, NULL, 50, 0, 20, 0, '-1&-1', 0);
INSERT INTO ibf_groups (g_id, g_view_board, g_mem_info, g_other_topics, g_use_search, g_email_friend, g_invite_friend, g_edit_profile, g_post_new_topics, g_reply_own_topics, g_reply_other_topics, g_edit_posts, g_delete_own_posts, g_open_close_posts, g_delete_own_topics, g_post_polls, g_vote_polls, g_use_pm, g_is_supmod, g_access_cp, g_title, g_can_remove, g_append_edit, g_access_offline, g_avoid_q, g_avoid_flood, g_icon, g_attach_max, g_avatar_upload, g_calendar_post, prefix, suffix, g_max_messages, g_max_mass_pm, g_search_flood, g_edit_cutoff, g_promotion, g_hide_from_list) VALUES (5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Banned', 0, 0, 0, 0, 0, NULL, NULL, 0, 0, NULL, NULL, 50, 0, 20, 0, '-1&-1', 1);
INSERT INTO ibf_languages (lid, ldir, lname, lauthor, lemail) VALUES (1, 'en', 'English', 'Invision Board', 'languages@invisionboard.com');
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (1, 'A_LOCKED_B', '<img src=\'style_images/<#IMG_DIR#>/t_closed.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (2, 'A_MOVED_B', '<img src=\'style_images/<#IMG_DIR#>/t_moved.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (4, 'A_POLLONLY_B', '<img src=\'style_images/<#IMG_DIR#>/t_closed.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (5, 'A_POST', '<img src=\'style_images/<#IMG_DIR#>/t_new.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (6, 'A_REPLY', '<img src=\'style_images/<#IMG_DIR#>/t_reply.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (7, 'A_STAR', '<img src=\'style_images/<#IMG_DIR#>/pip.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (8, 'B_HOT', '<img src=\'style_images/<#IMG_DIR#>/f_hot.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (9, 'B_HOT_NN', '<img src=\'style_images/<#IMG_DIR#>/f_hot_no.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (10, 'B_LOCKED', '<img src=\'style_images/<#IMG_DIR#>/f_closed.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (11, 'B_MOVED', '<img src=\'style_images/<#IMG_DIR#>/f_moved.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (12, 'B_NEW', '<img src=\'style_images/<#IMG_DIR#>/f_norm.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (13, 'B_NORM', '<img src=\'style_images/<#IMG_DIR#>/f_norm_no.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (14, 'B_PIN', '<img src=\'style_images/<#IMG_DIR#>/f_pinned.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (15, 'B_POLL', '<img src=\'style_images/<#IMG_DIR#>/f_poll.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (16, 'B_POLL_NN', '<img src=\'style_images/<#IMG_DIR#>/f_poll_no.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (17, 'C_LOCKED', '<img src=\'style_images/<#IMG_DIR#>/bf_readonly.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (18, 'C_OFF', '<img src=\'style_images/<#IMG_DIR#>/bf_nonew.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (19, 'C_OFF_CAT', '<img src=\'style_images/<#IMG_DIR#>/bc_nonew.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (20, 'C_OFF_RES', '<img src=\'style_images/<#IMG_DIR#>/br_nonew.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (21, 'C_ON', '<img src=\'style_images/<#IMG_DIR#>/bf_new.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (22, 'C_ON_CAT', '<img src=\'style_images/<#IMG_DIR#>/bc_new.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (23, 'C_ON_RES', '<img src=\'style_images/<#IMG_DIR#>/br_new.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (24, 'F_ACTIVE', '<img src=\'style_images/<#IMG_DIR#>/user.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (25, 'F_NAV_SEP', ' ->', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (26, 'F_NAV', '<img src=\'style_images/<#IMG_DIR#>/nav.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (27, 'F_STATS', '<img src=\'style_images/<#IMG_DIR#>/stats.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (28, 'GO_LAST_ON', '', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (29, 'GO_LAST_OFF', '', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (30, 'M_ADDMEM', '<img src=\'style_images/<#IMG_DIR#>/msg_l_addmem.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (31, 'M_DELETE', '<img src=\'style_images/<#IMG_DIR#>/msg_l_delete.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (32, 'M_READ', '<img src=\'style_images/<#IMG_DIR#>/f_norm_no.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (33, 'M_REPLY', '<img src=\'style_images/<#IMG_DIR#>/msg_l_reply.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (34, 'M_UNREAD', '<img src=\'style_images/<#IMG_DIR#>/f_norm.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (35, 'P_AOL', '<img src=\'style_images/<#IMG_DIR#>/p_aim.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (36, 'P_DELETE', '<img src=\'style_images/<#IMG_DIR#>/p_delete.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (37, 'P_EDIT', '<img src=\'style_images/<#IMG_DIR#>/p_edit.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (38, 'P_EMAIL', '<img src=\'style_images/<#IMG_DIR#>/p_email.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (39, 'P_ICQ', '<img src=\'style_images/<#IMG_DIR#>/p_icq.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (40, 'P_MSG', '<img src=\'style_images/<#IMG_DIR#>/p_pm.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (41, 'P_PROFILE', '[ Profile ]', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (42, 'P_QUOTE', '<img src=\'style_images/<#IMG_DIR#>/p_quote.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (43, 'P_WEBSITE', '<img src=\'style_images/<#IMG_DIR#>/p_www.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (44, 'CAT_IMG', '<img src=\'style_images/<#IMG_DIR#>/nav_m.gif\' border=\'0\' alt=\'\' width=\'8\' height=\'8\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (45, 'B_HOT_DOT', '<img src=\'style_images/<#IMG_DIR#>/f_hot_dot.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (46, 'B_NEW_DOT', '<img src=\'style_images/<#IMG_DIR#>/f_norm_dot.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (47, 'B_HOT_NN_DOT', '<img src=\'style_images/<#IMG_DIR#>/f_hot_no_dot.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (48, 'B_NORM_DOT', '<img src=\'style_images/<#IMG_DIR#>/f_norm_no_dot.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (49, 'B_POLL_DOT', '<img src=\'style_images/<#IMG_DIR#>/f_poll_dot.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (50, 'B_POLL_NN_DOT', '<img src=\'style_images/<#IMG_DIR#>/f_poll_no_dot.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (51, 'NEW_POST', '<img src=\'style_images/<#IMG_DIR#>/newpost.gif\' border=\'0\' alt=\'Goto last unread\' title=\'Goto last unread\' hspace=2>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (52, 'tbl_width', '95%', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (53, 'tbl_border', '#345487', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (55, 'P_YIM', '<img src=\'style_images/<#IMG_DIR#>/p_yim.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (56, 'P_MSN', '<img src=\'style_images/<#IMG_DIR#>/p_msn.gif\' border=\'0\' alt=\'\'>', 0, 1);
INSERT INTO ibf_macro_name (set_id, set_name) VALUES (1, 'IBF Default Macro Set');
INSERT INTO ibf_members (id, name, mgroup, password, email, joined, ip_address, avatar, avatar_size, posts, aim_name, icq_number, location, signature, website, yahoo, title, allow_admin_mails, time_offset, interests, hide_email, email_pm, email_full, skin, warn_level, language, msnname, last_post, allow_post, view_sigs, view_img, view_avs, view_pop, bday_day, bday_month, bday_year, new_msg, msg_from_id, msg_msg_id, msg_total, vdirs, show_popup, validate_key, prev_group, new_pass, misc, last_visit, last_activity, dst_in_use, view_prefs, coppa_user, mod_posts, auto_track) VALUES (0, 'Guest', 2, '', 'guest@ibforums.com', 0, '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '0', 0, 0, 0, '-1&-1', 0, 0, 0);
INSERT INTO ibf_posts (append_edit, edit_time, pid, author_id, author_name, use_sig, use_emo, ip_address, post_date, icon_id, post, queued, topic_id, forum_id, attach_id, attach_hits, attach_type, attach_file, post_title, new_topic, edit_name) VALUES (0, NULL, 1, 1, 'Invision Board Team', '1', '1', '127.0.0.1', 0, 0, 'Welcome to your new Invision Board!<br>This is simply a test message confirming that the installation was successful.<br>You can remove this message, topic, forum or even category at any time.', 0, 1, 1, '', 0, '', '', NULL, 1, NULL);
INSERT INTO ibf_skins (uid, sname, sid, set_id, tmpl_id, macro_id, css_id, img_dir, tbl_width, tbl_border, hidden, default_set) VALUES (1, 'Invision Board', 0, 1, 1, 1, 1, '1', '95%', '#999999', 0, 1);
INSERT INTO ibf_stats (TOTAL_REPLIES, TOTAL_TOPICS, LAST_MEM_NAME, LAST_MEM_ID, MOST_DATE, MOST_COUNT, MEM_COUNT) VALUES (0, 1, '', '1', 0, 1, 1);
INSERT INTO ibf_templates (tmid, template, name) VALUES (1, '<html> <head> <title> <% TITLE %> </title> <% GENERATOR %> <% CSS %> <% JAVASCRIPT %> </head><body bgcolor=\'#FFFFFF\' leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" alink=\'#000000\' vlink=\'#000000\'><% BOARD HEADER %><% NAVIGATION %><% BOARD %><% STATS %><% COPYRIGHT %></body></html>', 'Invision Board Standard');
INSERT INTO ibf_titles (id, posts, title, pips) VALUES (1, 0, 'Newbie', '1');
INSERT INTO ibf_titles (id, posts, title, pips) VALUES (2, 10, 'Member', '2');
INSERT INTO ibf_titles (id, posts, title, pips) VALUES (4, 30, 'Advanced Member', '3');
INSERT INTO ibf_tmpl_names (skid, skname, author, email, url) VALUES (1, 'Invision Board Template Set', 'Invision Board', 'skins@invisionboard.com', 'http://www.invisionboard.com');
INSERT INTO ibf_topics (tid, title, description, state, posts, starter_id, start_date, last_poster_id, last_post, icon_id, starter_name, last_poster_name, poll_state, last_vote, views, forum_id, approved, author_mode, pinned, moved_to, rating, total_votes) VALUES (1, 'Welcome', '', 'open', 0, '0', 0, '0', 0, 0, 'Invision Board Team', 'Invision Board Team', '0', 0, 0, 1, 1, 0, 0, NULL, NULL, 0);
-760
View File
@@ -1,760 +0,0 @@
CREATE TABLE ibf_admin_logs (
id bigint(20) NOT NULL auto_increment,
act varchar(255) default NULL,
code varchar(255) default NULL,
member_id int(10) default NULL,
ctime int(10) default NULL,
note text,
ip_address varchar(255) default NULL,
PRIMARY KEY (id)
);
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_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_cache_store (
cs_key varchar(255) NOT NULL default '',
cs_value text NOT NULL,
cs_extra varchar(255) NOT NULL default '',
PRIMARY KEY (cs_key)
);
CREATE TABLE ibf_calendar_events (
eventid mediumint(8) NOT NULL auto_increment,
userid mediumint(8) NOT NULL default '0',
year int(4) NOT NULL default '2002',
month int(2) NOT NULL default '1',
mday int(2) NOT NULL default '1',
title varchar(254) NOT NULL default 'no title',
event_text text NOT NULL,
read_perms varchar(254) NOT NULL default '*',
unix_stamp int(10) NOT NULL default '0',
priv_event tinyint(1) NOT NULL default '0',
show_emoticons tinyint(1) NOT NULL default '1',
rating smallint(2) NOT NULL default '1',
event_ranged tinyint(1) NOT NULL default '0',
event_repeat tinyint(1) NOT NULL default '0',
repeat_unit char(2) NOT NULL default '',
end_day int(2) default NULL,
end_month int(2) default NULL,
end_year int(4) default NULL,
end_unix_stamp int(10) default NULL,
event_bgcolor varchar(32) NOT NULL default '',
event_color varchar(32) NOT NULL default '',
PRIMARY KEY (eventid),
KEY unix_stamp (unix_stamp)
);
CREATE TABLE ibf_categories (
id smallint(5) 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),
KEY id (id)
);
CREATE TABLE ibf_contacts (
id mediumint(8) NOT NULL auto_increment,
contact_id mediumint(8) NOT NULL default '0',
member_id mediumint(8) NOT NULL default '0',
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,
css_comments text,
updated int(10) default '0',
PRIMARY KEY (cssid)
);
CREATE TABLE ibf_email_logs (
email_id int(10) NOT NULL auto_increment,
email_subject varchar(255) NOT NULL default '',
email_content text NOT NULL,
email_date int(10) NOT NULL default '0',
from_member_id mediumint(8) NOT NULL default '0',
from_email_address varchar(250) NOT NULL default '',
from_ip_address varchar(16) NOT NULL default '127.0.0.1',
to_member_id mediumint(8) NOT NULL default '0',
to_email_address varchar(250) NOT NULL default '',
topic_id int(10) NOT NULL default '0',
PRIMARY KEY (email_id),
KEY from_member_id (from_member_id),
KEY email_date (email_date)
);
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 mediumint(8) NOT NULL auto_increment,
title varchar(128) NOT NULL default '',
text text,
description text NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE ibf_forum_perms (
perm_id int(10) NOT NULL auto_increment,
perm_name varchar(250) NOT NULL default '',
PRIMARY KEY (perm_id)
);
CREATE TABLE ibf_forum_tracker (
frid mediumint(8) NOT NULL auto_increment,
member_id varchar(32) NOT NULL default '',
forum_id smallint(5) NOT NULL default '0',
start_date int(10) default NULL,
last_sent int(10) NOT NULL default '0',
PRIMARY KEY (frid)
);
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 mediumint(8) NOT NULL default '0',
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(255) NOT NULL default '',
reply_perms varchar(255) NOT NULL default '',
read_perms varchar(255) NOT NULL default '',
password varchar(32) default NULL,
category tinyint(2) NOT NULL default '0',
last_title varchar(128) default NULL,
last_id int(10) 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,
upload_perms varchar(255) 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',
sub_can_post tinyint(1) default '1',
quick_reply tinyint(1) default '0',
redirect_url varchar(250) default '',
redirect_on tinyint(1) NOT NULL default '0',
redirect_hits int(10) NOT NULL default '0',
redirect_loc varchar(250) default '',
rules_title varchar(255) NOT NULL default '',
rules_text text NOT NULL,
has_mod_posts tinyint(1) NOT NULL default '0',
topic_mm_id varchar(250) NOT NULL default '',
notify_modq_emails text default '',
PRIMARY KEY (id),
KEY category (category),
KEY id (id)
);
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,
g_max_messages int(5) default '50',
g_max_mass_pm int(5) default '0',
g_search_flood mediumint(6) default '20',
g_edit_cutoff int(10) default '0',
g_promotion varchar(10) default '-1&-1',
g_hide_from_list tinyint(1) default '0',
g_post_closed tinyint(1) default '0',
g_perm_id varchar(255) NOT NULL default '',
g_photo_max_vars varchar(200) default '',
g_dohtml tinyint(1) NOT NULL default '0',
g_edit_topic tinyint(1) NOT NULL default '0',
g_email_limit varchar(15) NOT NULL default '10:15',
PRIMARY KEY (g_id)
);
CREATE TABLE ibf_languages (
lid mediumint(8) NOT NULL auto_increment,
ldir varchar(64) NOT NULL default '',
lname varchar(250) NOT NULL default '',
lauthor varchar(250) default NULL,
lemail varchar(250) default NULL,
PRIMARY KEY (lid)
);
CREATE TABLE ibf_macro (
macro_id smallint(3) NOT NULL auto_increment,
macro_value varchar(200) default NULL,
macro_replace text,
can_remove tinyint(1) default '0',
macro_set smallint(3) default NULL,
PRIMARY KEY (macro_id),
KEY macro_set (macro_set)
);
CREATE TABLE ibf_macro_name (
set_id smallint(3) NOT NULL default '0',
set_name varchar(200) default NULL,
PRIMARY KEY (set_id)
);
CREATE TABLE ibf_member_extra (
id mediumint(8) NOT NULL default '0',
notes text,
links text,
bio text,
ta_size char(3) default NULL,
photo_type varchar(10) default '',
photo_location varchar(255) default '',
photo_dimensions varchar(200) default '',
PRIMARY KEY (id)
);
CREATE TABLE ibf_members (
id mediumint(8) NOT NULL default '0',
name varchar(255) NOT NULL default '',
mgroup smallint(3) NOT NULL default '0',
password varchar(32) NOT NULL default '',
email varchar(60) NOT NULL default '',
joined int(10) NOT NULL default '0',
ip_address varchar(16) NOT NULL default '',
avatar varchar(128) default NULL,
avatar_size varchar(9) default NULL,
posts mediumint(7) default '0',
aim_name varchar(40) default NULL,
icq_number varchar(40) default NULL,
location varchar(128) default NULL,
signature text,
website varchar(70) default NULL,
yahoo varchar(32) default NULL,
title varchar(64) default NULL,
allow_admin_mails tinyint(1) default NULL,
time_offset varchar(10) default NULL,
interests text,
hide_email varchar(8) default NULL,
email_pm tinyint(1) default NULL,
email_full tinyint(1) default NULL,
skin smallint(5) default NULL,
warn_level int(10) default NULL,
warn_lastwarn int(10) NOT NULL default '0',
language varchar(32) default NULL,
msnname varchar(64) default NULL,
last_post int(10) default NULL,
restrict_post varchar(100) NOT NULL default '0',
view_sigs tinyint(1) default '1',
view_img tinyint(1) default '1',
view_avs tinyint(1) default '1',
view_pop tinyint(1) default '1',
bday_day int(2) default NULL,
bday_month int(2) default NULL,
bday_year int(4) default NULL,
new_msg tinyint(2) default NULL,
msg_from_id mediumint(8) default NULL,
msg_msg_id int(10) default NULL,
msg_total smallint(5) default NULL,
vdirs text,
show_popup tinyint(1) default NULL,
misc varchar(128) default NULL,
last_visit int(10) default '0',
last_activity int(10) default '0',
dst_in_use tinyint(1) default '0',
view_prefs varchar(64) default '-1&-1',
coppa_user tinyint(1) default '0',
mod_posts varchar(100) NOT NULL default '0',
auto_track tinyint(1) default '0',
org_perm_id varchar(255) default '',
org_supmod tinyint(1) default '0',
integ_msg varchar(250) default '',
temp_ban varchar(100) default NULL,
sub_end int(10) NOT NULL default '0',
PRIMARY KEY (id),
KEY name (name),
KEY mgroup (mgroup),
KEY bday_day (bday_day),
KEY bday_month (bday_month)
);
CREATE TABLE ibf_messages (
msg_id int(10) NOT NULL auto_increment,
msg_date int(10) default NULL,
read_state tinyint(1) default NULL,
title varchar(128) default NULL,
message text,
from_id mediumint(8) NOT NULL default '0',
vid varchar(32) default NULL,
member_id mediumint(8) NOT NULL default '0',
recipient_id mediumint(8) NOT NULL default '0',
attach_type tinyint(128) default NULL,
attach_file tinyint(128) default NULL,
cc_users text,
tracking tinyint(1) default '0',
read_date int(10) default NULL,
PRIMARY KEY (msg_id),
KEY member_id (member_id),
KEY vid (vid)
);
CREATE TABLE ibf_moderator_logs (
id int(10) NOT NULL auto_increment,
forum_id int(5) default '0',
topic_id int(10) NOT NULL default '0',
post_id int(10) default NULL,
member_id mediumint(8) NOT NULL default '0',
member_name varchar(32) NOT NULL default '',
ip_address varchar(16) NOT NULL default '0',
http_referer varchar(255) default NULL,
ctime int(10) default NULL,
topic_title varchar(128) default NULL,
action varchar(128) default NULL,
query_string varchar(128) default NULL,
PRIMARY KEY (id)
);
CREATE TABLE ibf_moderators (
mid mediumint(8) NOT NULL auto_increment,
forum_id int(5) NOT NULL default '0',
member_name varchar(32) NOT NULL default '',
member_id mediumint(8) NOT NULL default '0',
edit_post tinyint(1) default NULL,
edit_topic tinyint(1) default NULL,
delete_post tinyint(1) default NULL,
delete_topic tinyint(1) default NULL,
view_ip tinyint(1) default NULL,
open_topic tinyint(1) default NULL,
close_topic tinyint(1) default NULL,
mass_move tinyint(1) default NULL,
mass_prune tinyint(1) default NULL,
move_topic tinyint(1) default NULL,
pin_topic tinyint(1) default NULL,
unpin_topic tinyint(1) default NULL,
post_q tinyint(1) default NULL,
topic_q tinyint(1) default NULL,
allow_warn tinyint(1) default NULL,
edit_user tinyint(1) NOT NULL default '0',
is_group tinyint(1) default '0',
group_id smallint(3) default NULL,
group_name varchar(200) default NULL,
split_merge tinyint(1) default '0',
can_mm tinyint(1) NOT NULL default '0',
PRIMARY KEY (mid),
KEY forum_id (forum_id),
KEY group_id (group_id),
KEY member_id (member_id)
);
CREATE TABLE ibf_pfields_content (
member_id mediumint(8) NOT NULL default '0',
updated int(10) default '0',
PRIMARY KEY (member_id)
);
CREATE TABLE ibf_pfields_data (
fid smallint(5) NOT NULL auto_increment,
ftitle varchar(200) NOT NULL default '',
fdesc varchar(250) default '',
fcontent text,
ftype varchar(250) default 'text',
freq tinyint(1) default '0',
fhide tinyint(1) default '0',
fmaxinput smallint(6) default '250',
fedit tinyint(1) default '1',
forder smallint(6) default '1',
fshowreg tinyint(1) default '0',
PRIMARY KEY (fid)
);
CREATE TABLE ibf_polls (
pid mediumint(8) NOT NULL auto_increment,
tid int(10) NOT NULL default '0',
start_date int(10) default NULL,
choices text,
starter_id mediumint(8) NOT NULL default '0',
votes smallint(5) NOT NULL default '0',
forum_id smallint(5) NOT NULL default '0',
poll_question varchar(255) default NULL,
PRIMARY KEY (pid)
);
CREATE TABLE ibf_posts (
pid int(10) NOT NULL auto_increment,
append_edit tinyint(1) default '0',
edit_time int(10) default NULL,
author_id mediumint(8) NOT NULL default '0',
author_name varchar(32) default NULL,
use_sig tinyint(1) NOT NULL default '0',
use_emo tinyint(1) NOT NULL default '0',
ip_address varchar(16) NOT NULL default '',
post_date int(10) default NULL,
icon_id smallint(3) default NULL,
post text,
queued tinyint(1) default NULL,
topic_id int(10) NOT NULL default '0',
forum_id smallint(5) NOT NULL default '0',
attach_id varchar(64) default NULL,
attach_hits int(10) default NULL,
attach_type varchar(128) default NULL,
attach_file varchar(255) default NULL,
post_title varchar(255) default NULL,
new_topic tinyint(1) default '0',
edit_name varchar(255) default NULL,
PRIMARY KEY (pid),
KEY topic_id (topic_id,author_id),
KEY author_id (author_id),
KEY forum_id (forum_id,post_date),
FULLTEXT KEY post (post)
);
CREATE TABLE ibf_reg_antispam (
regid varchar(32) NOT NULL default '',
regcode varchar(8) NOT NULL default '',
ip_address varchar(32) default NULL,
ctime int(10) default NULL,
PRIMARY KEY (regid)
);
CREATE TABLE ibf_search_results (
id varchar(32) NOT NULL default '',
topic_id text NOT NULL,
search_date int(12) NOT NULL default '0',
topic_max int(3) NOT NULL default '0',
sort_key varchar(32) NOT NULL default 'last_post',
sort_order varchar(4) NOT NULL default 'desc',
member_id mediumint(10) default '0',
ip_address varchar(64) default NULL,
post_id text,
post_max int(10) NOT NULL default '0',
query_cache text
);
CREATE TABLE ibf_sessions (
id varchar(32) NOT NULL default '0',
member_name varchar(64) default NULL,
member_id mediumint(8) NOT NULL default '0',
ip_address varchar(16) default NULL,
browser varchar(64) default NULL,
running_time int(10) default NULL,
login_type tinyint(1) default NULL,
location varchar(40) default NULL,
member_group smallint(3) default NULL,
in_forum smallint(5) NOT NULL default '0',
in_topic int(10) default NULL,
PRIMARY KEY (id),
KEY in_topic (in_topic),
KEY in_forum (in_forum)
);
CREATE TABLE ibf_skin_templates (
suid int(10) NOT NULL auto_increment,
set_id int(10) NOT NULL default '0',
group_name varchar(255) NOT NULL default '',
section_content mediumtext,
func_name varchar(255) default NULL,
func_data text,
updated int(10) default NULL,
can_remove tinyint(4) default '0',
PRIMARY KEY (suid)
);
CREATE TABLE ibf_skins (
uid int(10) NOT NULL auto_increment,
sname varchar(100) NOT NULL default '',
sid int(10) NOT NULL default '0',
set_id int(5) NOT NULL default '0',
tmpl_id int(10) NOT NULL default '0',
macro_id int(10) NOT NULL default '1',
css_id int(10) NOT NULL default '1',
img_dir varchar(200) default '1',
tbl_width varchar(250) default NULL,
tbl_border varchar(250) default NULL,
hidden tinyint(1) NOT NULL default '0',
default_set tinyint(1) NOT NULL default '0',
css_method varchar(100) default 'inline',
PRIMARY KEY (uid),
KEY tmpl_id (tmpl_id),
KEY css_id (css_id)
);
CREATE TABLE ibf_spider_logs (
sid int(10) NOT NULL auto_increment,
bot varchar(255) NOT NULL default '',
query_string text NOT NULL,
entry_date int(10) NOT NULL default '0',
ip_address varchar(16) NOT NULL default '',
PRIMARY KEY (sid)
);
CREATE TABLE ibf_stats (
TOTAL_REPLIES int(10) NOT NULL default '0',
TOTAL_TOPICS int(10) NOT NULL default '0',
LAST_MEM_NAME varchar(32) default NULL,
LAST_MEM_ID mediumint(8) NOT NULL default '0',
MOST_DATE int(10) default NULL,
MOST_COUNT int(10) default '0',
MEM_COUNT mediumint(8) NOT NULL default '0'
);
CREATE TABLE ibf_subscriptions (
sub_id smallint(5) NOT NULL auto_increment,
sub_title varchar(250) NOT NULL default '',
sub_desc text,
sub_new_group mediumint(8) NOT NULL default 0,
sub_length smallint(5) NOT NULL default '1',
sub_unit varchar(2) NOT NULL default 'm',
sub_cost decimal(10,2) NOT NULL default '0.00',
sub_run_module varchar(250) NOT NULL default '',
PRIMARY KEY (sub_id)
) TYPE=MyISAM;
CREATE TABLE ibf_subscription_extra (
subextra_id smallint(5) NOT NULL auto_increment,
subextra_sub_id smallint(5) NOT NULL default '0',
subextra_method_id smallint(5) NOT NULL default '0',
subextra_product_id varchar(250) NOT NULL default '0',
subextra_can_upgrade tinyint(1) NOT NULL default '0',
subextra_recurring tinyint(1) NOT NULL default '0',
subextra_custom_1 text,
subextra_custom_2 text,
subextra_custom_3 text,
subextra_custom_4 text,
subextra_custom_5 text,
PRIMARY KEY(subextra_id)
) TYPE=MyISAM;
CREATE TABLE ibf_subscription_trans (
subtrans_id int(10) NOT NULL auto_increment,
subtrans_sub_id smallint(5) NOT NULL default '0',
subtrans_member_id mediumint(8) NOT NULL default '0',
subtrans_old_group smallint(5) NOT NULL default '0',
subtrans_paid decimal(10,2) NOT NULL default '0.00',
subtrans_cumulative decimal(10,2) NOT NULL default '0.00',
subtrans_method varchar(20) NOT NULL default '',
subtrans_start_date int(11) NOT NULL default '0',
subtrans_end_date int(11) NOT NULL default '0',
subtrans_state varchar(200) NOT NULL default '',
subtrans_trxid varchar(200) NOT NULL default '',
subtrans_subscrid varchar(200) NOT NULL default '',
subtrans_currency varchar(10) NOT NULL default 'USD',
PRIMARY KEY (subtrans_id)
) TYPE=MyISAM;
CREATE TABLE ibf_subscription_logs (
sublog_id int(10) NOT NULL auto_increment,
sublog_date int(10) NOT NULL default '',
sublog_member_id mediumint(8) NOT NULL default '0',
sublog_transid int(10) NOT NULL default '',
sublog_ipaddress varchar(16) NOT NULL default '',
sublog_data text,
sublog_postdata text,
PRIMARY KEY (sublog_id)
) TYPE=MyISAM;
CREATE TABLE ibf_subscription_methods (
submethod_id smallint(5) NOT NULL auto_increment,
submethod_title varchar(250) NOT NULL default '',
submethod_name varchar(20) NOT NULL default '',
submethod_email varchar(250) NOT NULL default '',
submethod_sid text,
submethod_custom_1 text,
submethod_custom_2 text,
submethod_custom_3 text,
subemthod_custom_4 text,
submethod_custom_5 text,
submethod_is_cc tinyint(1) NOT NULL default '0',
submethod_is_auto tinyint(1) NOT NULL default '0',
submethod_desc text,
submethod_logo text,
submethod_active tinyint(1) NOT NULL default '',
submethod_use_currency varchar(10) NOT NULL default 'USD',
PRIMARY KEY (submethod_id)
) TYPE=MyISAM;
CREATE TABLE ibf_subscription_currency (
subcurrency_code varchar(10) NOT NULL,
subcurrency_desc varchar(250) NOT NULL default '',
subcurrency_exchange decimal(10, 8) NOT NULL,
subcurrency_default tinyint(1) NOT NULL default '0',
PRIMARY KEY(subcurrency_code)
) TYPE=MyISAM;
CREATE TABLE ibf_templates (
tmid int(10) NOT NULL auto_increment,
template mediumtext,
name varchar(128) default NULL,
PRIMARY KEY (tmid)
);
CREATE TABLE ibf_titles (
id smallint(5) NOT NULL auto_increment,
posts int(10) default NULL,
title varchar(128) default NULL,
pips varchar(128) default NULL,
PRIMARY KEY (id)
);
CREATE TABLE ibf_tmpl_names (
skid int(10) NOT NULL auto_increment,
skname varchar(60) NOT NULL default 'Invision Board',
author varchar(250) default '',
email varchar(250) default '',
url varchar(250) default '',
PRIMARY KEY (skid)
);
CREATE TABLE ibf_topic_mmod (
mm_id smallint(5) NOT NULL auto_increment,
mm_title varchar(250) NOT NULL default '',
mm_enabled tinyint(1) NOT NULL default '0',
topic_state varchar(10) NOT NULL default 'leave',
topic_pin varchar(10) NOT NULL default 'leave',
topic_move smallint(5) NOT NULL default '0',
topic_move_link tinyint(1) NOT NULL default '0',
topic_title_st varchar(250) NOT NULL default '',
topic_title_end varchar(250) NOT NULL default '',
topic_reply tinyint(1) NOT NULL default '0',
topic_reply_content text NOT NULL,
topic_reply_postcount tinyint(1) NOT NULL default '0',
PRIMARY KEY (mm_id)
);
CREATE TABLE ibf_topics (
tid int(10) NOT NULL auto_increment,
title varchar(250) NOT NULL default '',
description varchar(70) default NULL,
state varchar(8) default NULL,
posts int(10) default NULL,
starter_id mediumint(8) NOT NULL default '0',
start_date int(10) default NULL,
last_poster_id mediumint(8) NOT NULL default '0',
last_post int(10) default NULL,
icon_id tinyint(2) default NULL,
starter_name varchar(32) default NULL,
last_poster_name varchar(32) default NULL,
poll_state varchar(8) default NULL,
last_vote int(10) default NULL,
views int(10) default NULL,
forum_id smallint(5) NOT NULL default '0',
approved tinyint(1) default NULL,
author_mode tinyint(1) default NULL,
pinned tinyint(1) default NULL,
moved_to varchar(64) default NULL,
rating text,
total_votes int(5) NOT NULL default '0',
PRIMARY KEY (tid),
KEY last_post (last_post),
KEY forum_id (forum_id,approved,pinned),
FULLTEXT KEY title (title)
);
CREATE TABLE ibf_tracker (
trid mediumint(8) NOT NULL auto_increment,
member_id mediumint(8) NOT NULL default '0',
topic_id bigint(20) NOT NULL default '0',
start_date int(10) default NULL,
last_sent int(10) NOT NULL default '0',
PRIMARY KEY (trid)
);
CREATE TABLE ibf_validating (
vid varchar(32) NOT NULL default '',
member_id mediumint(8) NOT NULL default '0',
real_group smallint(3) NOT NULL default '0',
temp_group smallint(3) NOT NULL default '0',
entry_date int(10) NOT NULL default '0',
coppa_user tinyint(1) NOT NULL default '0',
lost_pass tinyint(1) NOT NULL default '0',
new_reg tinyint(1) NOT NULL default '0',
email_chg tinyint(1) NOT NULL default '0',
ip_address varchar(16) NOT NULL default '0',
PRIMARY KEY (vid),
KEY new_reg (new_reg)
);
CREATE TABLE ibf_voters (
vid int(10) NOT NULL auto_increment,
ip_address varchar(16) NOT NULL default '',
vote_date int(10) NOT NULL default '0',
tid int(10) NOT NULL default '0',
member_id varchar(32) default NULL,
forum_id smallint(5) NOT NULL default '0',
PRIMARY KEY (vid)
);
CREATE TABLE ibf_warn_logs (
wlog_id int(10) NOT NULL auto_increment,
wlog_mid mediumint(8) NOT NULL default '0',
wlog_notes text NOT NULL,
wlog_contact varchar(250) NOT NULL default 'none',
wlog_contact_content text NOT NULL,
wlog_date int(10) NOT NULL default '0',
wlog_type varchar(6) NOT NULL default 'pos',
wlog_addedby mediumint(8) NOT NULL default '0',
PRIMARY KEY (wlog_id)
);
-112
View File
@@ -1,112 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Hivemail -&gt; IPB Set Up</title>
<style type='text/css'>
body
{
background-color:#FFF;
background-image: url(http://www.invisionboard.com/tutorial/hivemail/img/bg.jpg);
background-repeat: repeat-y;
padding: 0px;
margin: 10px;
font-family: verdana;
font-size:12px;
text-align:center;
}
table
{
font-family: verdana;
font-size:11px;
}
img { border:0px }
.headline { font-family:"Trebuchet MS", verdana, arial, sans-serif; font-size:40px;font-weight:bold }
.subline { font-family:"Trebuchet MS", verdana, arial, sans-serif; font-size:18px;color:#009 }
#wrapper { text-align:left; margin-left:auto;margin-right:auto;width:90% }
</style>
</head>
<body>
<div id="wrapper">
<span class="headline">Integrating HiveMail with IPB 1.2</span>
<br />
An Invision Power Board Guide detailing how to set up your HiveMail installation with IPB.
<br />
<br />
<span class="subline">Required Components</span>
<br /><br />
You should have already installed HiveMail (1.2+) into a directory called "mail" on your server, in the same root folder as the one
that contains your IPB forums folder.
<br /><br />
<b>An example structure</b>
<br />
/home/domain/public_html/mail/
<br />/home/domain/public_html/forums/
<br /><br />
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" width="95%" style="padding-right:6px" valign="top">
<span class="subline">Configuring the files</span>
<br /><br />
Before you go any further, you may need to edit one of the included IPB files.
<br /><br />If you are using HiveMail 1.2.1, they you <b>do not</b> need to edit any files.
<br /><br />If you are using any version previous to 1.2.1, then you'll need to open "invision_plugin.php" and change the arrowed line in the picture to: <kbd>define( 'HIVE_TBL', '' )</kbd> or you will receive errors!
</td>
<td align="center" width="5%" valign="top"><a href="http://www.invisionboard.com/tutorial/hivemail/img/hive_code.jpg" target="_blank"><img src="http://www.invisionboard.com/tutorial/hivemail/img/hive_code_thumb.jpg" alt="IMG" /></a><br />Click picture to enlarge</td>
</tr>
</table>
<br /><br />
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" width="95%" style="padding-right:6px" valign="top">
<span class="subline">Uploading the files</span>
<br /><br />
<b>Upload the following files</b>
<br /><br />Where "forums" is shown, this is your IPB installation, it does not have to be forums.
<br /><br />
<kbd>/forums/modules/ipb_member_sync.php
<br /><br />/forums/modules/mod_hivemail.php
<br /><br />/forums/register.php
<br /><br />/mail/includes/invision_plugin.php</kdb>
</td>
<td align="center" width="5%" valign="top"><a href="http://www.invisionboard.com/tutorial/hivemail/img/hive_dir.jpg" target="_blank"><img src="http://www.invisionboard.com/tutorial/hivemail/img/hive_dir_thumb.jpg" alt="IMG" /></a><br />Click picture to enlarge</td>
</tr>
</table>
<br /><br />
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" width="95%" style="padding-right:6px" valign="top">
<span class="subline">Configuring HiveMail</span>
<br /><br />
<b>Log into the HiveMail admin center</b>
<br />
<ul>
<li>Under "HiveMail" click on "Options" in the menu.
<li>When the options menu has loaded, click option 13 "vBulletin Integration"
<li>Complete the form in a similar way show by the screenshot, mentally substituting "vBulletin" for "IPB"
</ul>
<br />
If you enabled "Allow regular registration", your members can register for HiveMail outside of the board, if not enabled, clicking on the "Sign Up" button on the HiveMail index page
will take your visitor to the IPB registration page (with the option of HiveMail email). If you visitor is already registered and logged into IPB, they will be taken to a dedicated HiveMail signup page.
<br /><br />
<a href="http://www.invisionboard.com/tutorial/hivemail/img/hive_ipb_reg.jpg" target="_blank">Show IPB Reg Form Screen Shot</a> &middot; <a href="http://www.invisionboard.com/tutorial/hivemail/img/hive_ipb_cp.jpg" target="_blank">Show IPB HiveMail Sign Up Page</a>
</td>
<td align="center" width="5%" valign="top"><a href="http://www.invisionboard.com/tutorial/hivemail/img/hive_options.jpg" target="_blank"><img src="http://www.invisionboard.com/tutorial/hivemail/img/hive_options_thumb.jpg" alt="IMG" /></a><br />Click picture to enlarge</td>
</tr>
</table>
<br /><br />
<span class="subline">That's it! You're all done!</span>
<br /><br />
<br />
~Matt for IPS, Inc. Aug 03
</div>
</body>
</html>
@@ -1,355 +0,0 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board v1.2 Module File
| ========================================
| by Matthew Mecham
| (c) 2001 - 2003 Invision Power Services
| http://www.invisionpower.com
| ========================================
| Web: http://www.invisionboard.com
| Email: matt@invisionpower.com
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
|
| > Member Sync Module File
| > Module written by Matt Mecham
| > Date started: 7th July 2003
|
+--------------------------------------------------------------------------
|
| USAGE:
| ------
|
| This module is designed to hold any module modifications to with registration
| It doesn't do much in itself, but custom code can be added to handle
| synchronization, etc.
|
| - on_create_account: Is called upon successful account creation
| - on_register_form: Is called when the form is displayed
| - on_login: Is called when logged in succcessfully
| - on_delete: Is called when member deleted (single, multiple)
| - on_email_change: When email address change is confirmed
| - on_profile_update: When profile is updated (msn, sig, etc)
| - on_pass_change: When password is updated
| - on_group_change: When the member's membergroup has changed
| - on_name_change: When the member's name has been changed
+--------------------------------------------------------------------------
*/
class ipb_member_sync
{
var $class = "";
var $hiveid = 0;
var $html = "";
var $hive = "";
function ipb_member_sync()
{
global $DB, $ibforums;
if ( $ibforums->member['id'] )
{
$DB->query("SELECT id, hiveuserid FROM ibf_member_extra WHERE id={$ibforums->member['id']}");
$r = $DB->fetch_row();
$this->hiveid = intval($r['hiveuserid']);
}
}
//-----------------------------------------------
// register_class($class)
//
// Register a $this-> with this class
//
//-----------------------------------------------
function register_class($class)
{
$this->class = &$class;
$this->error = "";
}
//-----------------------------------------------
// on_create_account($member)
//
// $member = array( 'id', 'name', 'email',
// 'password', 'mgroup'...etc)
//
//-----------------------------------------------
function on_create_account($member)
{
global $DB, $std, $ibforums;
//---- START
//-------------------------------------------
// Add hivemail account?
//-------------------------------------------
$ibforums->input['hive_username'] = trim($ibforums->input['hive_username']);
if ( $ibforums->input['hive_username'] != "" )
{
define('IPB_PLUGIN', true);
require_once('../mail/includes/invision_plugin.php');
$this->hive = new invision_plugin();
$this->hive->hivemail_register_user($member, true);
if ( $this->hive->hive_error != "" )
{
$ibforums->lang['thing_name_taken'] = sprintf( $ibforums->lang['thing_name_taken'] , 'Board Email Address' );
$ibforums->lang['incorrect_thing_name'] = sprintf( $ibforums->lang['incorrect_thing_name'], 'Board Email Address' );
$this->class->show_reg_form($this->hive->hive_error);
$this->error = 1;
$this->hive->destructor();
return;
}
$this->hive->destructor();
}
//---- END
}
//-----------------------------------------------
// on_register_form()
//
//
//-----------------------------------------------
function on_register_form()
{
global $DB, $std, $ibforums;
//---- START
//-------------------------------------------
// HiveMail integration
// As register_form is defualt action, we can
// either show the hivemail entry in the reg
// form if they are not a member, or we can
// show the hive mail only sign up form
//-------------------------------------------
if ( $this->hive == "" )
{
define('IPB_PLUGIN', true);
require_once('../mail/includes/invision_plugin.php');
$this->hive = new invision_plugin();
}
if ( $ibforums->member['id'] )
{
//-------------------------------------------
// They are a member, are they a hivemail member?
//-------------------------------------------
if ( $this->hiveid AND $hiveuser = $this->hive->DB_Hive->query_first("SELECT userid FROM ".HIVE_TBL."user WHERE userid = {$this->hiveid}"))
{
//-------------------------------------------
// yeah, chuck 'em to ucp then
//-------------------------------------------
if ( $ibforums->input['mailsignup'] )
{
$this->hive->destructor();
$std->boink_it( $ibforums->base_url.'act=UserCP' );
}
}
else
{
//-------------------------------------------
// Forward them to the IPB module to show
// mail only sign-up
//-------------------------------------------
if ( $ibforums->input['mailsignup'] )
{
$this->hive->destructor();
$std->boink_it( $ibforums->base_url.'act=module&module=hivemail&show=forumform' );
}
}
}
else
{
//-------------------------------------------
// Normal reg form! chop in hivemail option
//-------------------------------------------
$extra = $this->class->html->field_entry(
'Enter a username for your own board email account',
'This is optional, please leave blank if you do not wish to get an email account.<br />Only letters and numbers please.',
$this->class->html->field_textinput('hive_username', $ibforums->input['hive_username'])."&nbsp;<select name='hive_userdomain' class='forminput'>".$this->hive->hive_domainname_options."</select>"
);
$this->class->output = str_replace( "<!--IBF.MODULES.EXTRA-->", $extra, $this->class->output );
}
$this->hive->destructor();
//---- END
}
//-----------------------------------------------
// on_login()
//
// $member = array( 'id', 'name', 'email', 'pass')
// ...etc
//-----------------------------------------------
function on_login($member=array())
{
global $DB, $std, $ibforums;
//---- START
//---- END
}
//-----------------------------------------------
// on_delete($ids)
//
// $ids = array | integer
// If array, will contain list of ids
//-----------------------------------------------
function on_delete($ids=array())
{
global $DB, $std, $ibforums;
$type = "";
//---- START
if ( is_array($ids) and count($ids) > 0 )
{
$type = arr;
}
else
{
$type = int;
}
//---- END
}
//-----------------------------------------------
// on_email_change($id, $new_email)
//
// $id = int member_id
// $new_email = string new email address
//-----------------------------------------------
function on_email_change($id, $new_email)
{
global $DB, $std, $ibforums;
//---- START
//---- END
}
//-----------------------------------------------
// on_pass_change($id, $new_raw)
//
// $id = int member_id
// $new_raw = string new plain text password
//-----------------------------------------------
function on_pass_change($id, $new_raw)
{
global $DB, $std, $ibforums;
//---- START
//-------------------------------------------
// HiveMail integration
// Update hivemail passy
//-------------------------------------------
if ( $this->hive == "" )
{
define('IPB_PLUGIN', true);
require_once('../mail/includes/invision_plugin.php');
$this->hive = new invision_plugin();
}
$this->hive->hivemail_update_password(md5($new_raw), $id);
$this->hive->destructor();
//---- END
}
//-----------------------------------------------
// on_profile_update($member)
//
// 'website','icq_number','aim_name','yahoo','msnname','integ_msg'
// 'location','interests', 'title'
// 'id'
//-----------------------------------------------
function on_profile_update( $member=array(), $custom_fields=array() )
{
global $DB, $std, $ibforums;
//---- START
//---- END
}
//-----------------------------------------------
// on_group_change()
//
// $id = int member_id
// $new_group = new int() group id
//-----------------------------------------------
function on_group_change( $id, $new_group )
{
global $DB, $std, $ibforums;
//---- START
//---- END
}
//-----------------------------------------------
// on_name_change()
//
// $id = int member_id
// $new_group = new name
//-----------------------------------------------
function on_name_change( $id, $new_name )
{
global $DB, $std, $ibforums;
//---- START
//---- END
}
}
?>
@@ -1,176 +0,0 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board v1.2 Module File
| ========================================
| by Matthew Mecham
| (c) 2001 - 2003 Invision Power Services
| http://www.invisionpower.com
| ========================================
| Web: http://www.invisionboard.com
| Email: matt@invisionpower.com
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
| > Hive Mail Module
| > Module written by Matt Mecham
| > Date started: 8th July 2003
|
+--------------------------------------------------------------------------
*/
//=====================================
// Define class, this must be the same
// in all modules
//=====================================
class module extends module_loader
{
var $class = "";
var $module = "";
var $html = "";
var $result = "";
var $hive = "";
var $hiveid = "";
function module()
{
global $ibforums, $DB, $std, $print;
//-------------------------------------------
// Load skin / lang stuff
//-------------------------------------------
$ibforums->lang = $std->load_words($ibforums->lang, 'lang_register', $ibforums->lang_id);
$this->html = $std->load_template('skin_register');
//-------------------------------------------
// Are we a hivemail member?
//-------------------------------------------
$DB->query("SELECT id, hiveuserid FROM ibf_member_extra WHERE id={$ibforums->member['id']}");
$r = $DB->fetch_row();
$this->hiveid = intval($r['hiveuserid']);
//-------------------------------------------
// Load Hivemail plug in
//-------------------------------------------
define('IPB_PLUGIN', true);
require_once('../mail/includes/invision_plugin.php');
$this->hive = new invision_plugin();
//-------------------------------------------
// If we're not a member...
//-------------------------------------------
if ( ! $ibforums->member['id'] )
{
$std->boink_it( $ibforums->base_url );
}
//-------------------------------------------
// Do we already have a hivemail membership?
//-------------------------------------------
if ( $this->hiveid AND $hiveuser = $this->hive->DB_Hive->query_first("SELECT userid FROM ".HIVE_TBL."user WHERE userid = {$this->hiveid}"))
{
$this->hive->destructor();
$std->boink_it( $ibforums->base_url );
}
//-------------------------------------------
// Whatcha doin'? Yes - you?
//-------------------------------------------
switch( $ibforums->input['show'] )
{
case 'forumform':
$this->show_forumform();
break;
case 'addmail':
$this->add_mail();
default:
$this->show_forumform();
break;
}
}
function add_mail()
{
global $ibforums, $DB, $std, $print;
$hive_username = trim($ibforums->input['hive_username']);
//------------------------------------------
// Check for errors
//------------------------------------------
if ( $hive_username == "" )
{
$this->show_forumform('js_blanks');
}
$this->hive->hivemail_register_user($ibforums->member, false);
if ( $this->hive->hive_error != "" )
{
$ibforums->lang['thing_name_taken'] = sprintf( $ibforums->lang['thing_name_taken'] , 'Board Email Address' );
$ibforums->lang['incorrect_thing_name'] = sprintf( $ibforums->lang['incorrect_thing_name'], 'Board Email Address' );
$this->show_forumform($this->hive->hive_error);
$this->error = 1;
$this->hive->destructor();
return;
}
$this->hive->destructor();
$print->redirect_screen("your email account has been created, forwarding you to the email log-in page", "/mail/index.php", 1);
}
//------------------------------------------
// Show Forum Form
//
// Show the already reg'd member's mail form
//
//------------------------------------------
function show_forumform($errors="")
{
global $ibforums, $DB, $std, $print;
$this->page_title = "Sign up for your email account";
$hidden = "";
$action = $ibforums->base_url.'act=module&amp;module=hivemail&amp;show=addmail';
$content = $this->html->field_entry('Account Name:',
'The password for your email account will be the same as your forum account.<br />Letters and numbers only please.',
$this->html->field_textinput('hive_username', $ibforums->input['hive_username'])."&nbsp;<select name='hive_userdomain' class='forminput'>".$this->hive->hive_domainname_options."</select>"
);
if ($errors != "")
{
$this->output .= $this->html->errors( $ibforums->lang[$errors] );
}
$this->output .= $this->html->tmpl_form($action, $hidden, $this->page_title, $content );
$print->add_output("$this->output");
$print->do_output( array( 'TITLE' => $this->page_title, 'JS' => 0, NAV => $this->nav ) );
}
}
?>
@@ -1,29 +0,0 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board v1.2 HiveMail register.php file
| ========================================
| by Matthew Mecham
| (c) 2001 - 2003 Invision Power Services
| http://www.invisionpower.com
| ========================================
| Web: http://www.invisionboard.com
| Email: matt@invisionpower.com
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
*/
// This file allows Hive Mail to integrate to IPB without restructuring too much
// Simply direct to IPB's register.
require "./conf_global.php";
$url = $INFO['board_url'].'/index.'.$INFO['php_ext'].'?act=Reg&mailsignup=1&coppa_pass=1';
@header("Location: $url");
exit();
?>
@@ -1,284 +0,0 @@
<?php
//
// +-------------------------------------------------------------+
// | HiveMail version 1.2 (English)
// | Copyright ©2002-2003 Chen Avinadav <chen@hivemail.com>
// +-------------------------------------------------------------+
// | HIVEMAIL IS NOT FREE SOFTWARE
// | If you have downloaded this software from a website other
// | than www.hivemail.com or if you have otherwise received
// | this software from someone who is not a representative of
// | this organization you are involved in an illegal activity.
// | License agreement: http://www.hivemail.com/license.html
// +-------------------------------------------------------------+
// |
// | INVISION POWER BOARD v1.2 (RC2+) INTEGRATION
// |
// +-------------------------------------------------------------+
error_reporting(E_ALL & ~E_NOTICE);
//-------------------------------------------------------
// Stop people from calling this file directly
//-------------------------------------------------------
if ( ! defined('IPB_PLUGIN') )
{
return;
}
class invision_plugin
{
var $hive_error = "";
var $hive_options = array();
var $this_folder = "";
var $DB_Hive = "";
function invision_plugin()
{
//=========================================
// EDIT THIS IF NEEDED
//=========================================
define( 'HIVE_TBL', 'hive_' );
//-------------------------------------------------------
// Change to right directory
//-------------------------------------------------------
$this->this_folder = getcwd();
chdir(dirname(__FILE__));
//-------------------------------------------------------
// We are outside the admin CP
//-------------------------------------------------------
define('INADMIN', false);
define('VB_PLUGIN', 1 );
//-------------------------------------------------------
// Start database connection
//-------------------------------------------------------
require('../includes/config.php');
require('../includes/db_mysql.php');
if ( ! function_exists('version_compare') or version_compare(phpversion(), '4.2.0') < 0 )
{
$config['server'] .= ':3306';
}
$this->DB_Hive = new DB_MySQL($config, true, true);
//-------------------------------------------------------
// Get all common functions
//-------------------------------------------------------
require('../includes/init.php');
//-------------------------------------------------------
// Get options
//-------------------------------------------------------
while ( $setting = $this->DB_Hive->fetch_array($settings, 'SELECT * FROM '.HIVE_TBL.'setting') )
{
$this->hive_options["$setting[variable]"] = $setting['value'];
}
//-------------------------------------------------------
// The domain names array
//-------------------------------------------------------
$this->hive_options['domainnames'] = preg_split("#\r?\n#", $this->hive_options['domainname']);
$this->hive_options['domainname'] = $this->hive_options['domainnames'][0];
//-------------------------------------------------------
// Create the option list of domain names
//-------------------------------------------------------
$this->hive_domainname_options = '';
if ( is_array($this->hive_options['domainnames']) and count($this->hive_options['domainnames']) > 0 )
{
foreach ( $this->hive_options['domainnames'] as $curdomainname )
{
$this->hive_domainname_options .= "<option value=\"$curdomainname\"".iif($userdomain == $curdomainname, ' selected="selected"', '').">$curdomainname</option>\n";
}
}
}
//-------------------------------------------------------
// Creates a user
//-------------------------------------------------------
function hivemail_register_user($member, $onreg = true)
{
global $ibforums, $DB, $std;
if ( ! $this->hive_options['regopen'] )
{
return;
}
$hive_username = trim($ibforums->input['hive_username']);
$hive_userdomain = trim($ibforums->input['hive_userdomain']);
//-------------------------------------------------------
// Domain name
//-------------------------------------------------------
if ( ! in_array( $hive_userdomain, $this->hive_options['domainnames'] ) )
{
$hive_userdomain = $hive_options['domainname'];
}
//-------------------------------------------------------
// Some error checking
//-------------------------------------------------------
if ($this->DB_Hive->query_first("SELECT username FROM ".HIVE_TBL."user WHERE username = '$hive_username'"))
{
if ($onreg)
{
$this->delete_reg_user($member['id']);
}
$this->hive_error = 'thing_name_taken';
return;
}
elseif ( preg_match('#[^a-z0-9_.]#i', $hive_username) or preg_match('#^[^a-z]#i', $hive_username) or strlen($hive_username) < 2 )
{
if ($onreg)
{
$this->delete_reg_user($member['id']);
}
$this->hive_error = 'incorrect_thing_name';
return;
}
//-------------------------------------------------------
// Create user
//-------------------------------------------------------
$this->DB_Hive->query("
INSERT INTO ".HIVE_TBL."user
(userid, username, password, usergroupid, skinid, realname, regdate, lastvisit, cols, birthday, options, replyto, font, timezone, soundid, domain, vbuserid, altemail)
VALUES
(NULL, '".addslashes($hive_username)."', '".addslashes($member['password'])."', ".iif($this->hive_options['moderate'], 3, 2).", ".$this->hive_options['defaultskin'].", '".addslashes($member['name'])."', ".TIMENOW.", ".TIMENOW.", '".addslashes(USER_DEFAULTCOLS)."', '".addslashes('0')."', ".USER_DEFAULTBITS.", '".addslashes($hive_username.$hive_userdomain)."', 'Verdana|10|Regular|Black|None', '".addslashes('0')."', ".intval($this->DB_Hive->get_field('SELECT soundid FROM '.HIVE_TBL.'sound WHERE userid <= 0 ORDER BY userid LIMIT 1')).", '".addslashes($ibforums->input['hive_userdomain'])."', {$member['id']}, '".addslashes($member['email'])."')
");
$hive_userid = $this->DB_Hive->insert_id();
//-------------------------------------------------------
// Log user in
//-------------------------------------------------------
if ($onreg)
{
$userid = $member['id'];
ini_set('session.name', 'hivesession');
session_start();
$std->my_setcookie(session_name(), session_id(), TIMENOW + (60 * 60 * 24 * 365));
$_SESSION['userid'] = $hive_userid;
$_SESSION['password'] = md5(md5($member['password']));
$_SESSION['ipaddress'] = md5(IPADDRESS);
$_SESSION['staylogged'] = 365;
}
//-------------------------------------------------------
// Update Invision's database
//-------------------------------------------------------
if ( ! $DB->field_exists( 'hiveuserid', 'ibf_member_extra' ) )
{
$DB->query("ALTER TABLE ibf_member_extra ADD hiveuserid mediumint(8) NOT NULL DEFAULT ''");
}
$DB->query("SELECT id, hiveuserid FROM ibf_member_extra WHERE id={$member['id']}");
if ( $r = $DB->fetch_row() )
{
// User _extra exists, update...
$DB->query("UPDATE ibf_member_extra SET hiveuserid=$hive_userid WHERE id={$member['id']}");
}
else
{
// User _extra doesn't exist...
$DB->query("INSERT INTO ibf_member_extra SET hiveuserid=$hive_userid, id={$member['id']}");
}
return $hive_userid;
}
//-------------------------------------------------------
// Delete new reg. user if error during registration
//-------------------------------------------------------
function delete_reg_user($userid)
{
global $DB;
$DB->query("DELETE FROM ibf_members WHERE id=$userid");
$DB->query("DELETE FROM ibf_member_extra WHERE id=$userid");
$DB->query("DELETE FROM ibf_pfields_content WHERE member_id=$userid");
}
//-------------------------------------------------------
// Updates the user's hivemail password
//-------------------------------------------------------
function hivemail_update_password($password, $userid)
{
$this->DB_Hive->query("
UPDATE ".HIVE_TBL."user
SET password = '".addslashes($password)."'
WHERE vbuserid = $userid
");
}
//-------------------------------------------------------
// Desctructor
//-------------------------------------------------------
function destructor()
{
chdir($this->this_folder);
}
}
function stripslashesarray($array) {
if (is_array($array)) {
foreach($array as $key => $val) {
if (is_array($val)) {
$array["$key"] = stripslashesarray($val);
} elseif (is_string($val)) {
if (get_cfg_var('magic_quotes_sybase')) {
$array["$key"] = str_replace("''", "'", $val);
} else {
$array["$key"] = stripslashes($val);
}
}
}
}
return $array;
}
function iif($eval, $true, $false = '') {
return (($eval == true) ? ($true) : ($false));
}
?>
+11
View File
@@ -0,0 +1,11 @@
<html>
<head><title>Invision Power Board - Bulletin Board System</title></head>
<body>
<h1>403: Invision Power Board -> 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/">Invision Power Board</a>
</body>
</html>
@@ -0,0 +1,420 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board IPB Portal
| ========================================
| by Matthew Mecham
| (c) 2001 - 2004 Invision Power Services
| http://www.invisionpower.com
| ========================================
| Web: http://www.invisionboard.com
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
|
| > IPB Portal Script
| > Written By Matthew Mecham
| > Date started: 1st July 2003
| > Updated: 1st July 2004 (What a coincidence!)
|
+--------------------------------------------------------------------------
*/
//-----------------------------------------------
// USER CONFIGURABLE ELEMENTS
//-----------------------------------------------
// Define the path to where the forums directory is
// located. This might be "./forums/" for example.
// Don't forget the trailing slash!
//define( 'ROOT_PATH', "./" );
define( 'ROOT_PATH', "./forums/" );
define( 'KERNEL_PATH', ROOT_PATH.'ips_kernel/' );
// Define the URL to this script. If you're happy to
// use relative URLs - you can leave this blank.
// You can also rename the script here.
$this_script = 'index.php';
// Enable module usage?
// (Vital for some mods and IPB enhancements)
define ( 'USE_MODULES', 1 );
// Enable shut down features?
// Uses PHPs register_shutdown_function to save
// low priority tasks until end of exec
define ( 'USE_SHUTDOWN', 0 );
//-----------------------------------------------
// NO USER EDITABLE SECTIONS BELOW
//-----------------------------------------------
define ( 'IN_IPB', 1 );
define ( 'IN_DEV', 0 );
error_reporting (E_ERROR | E_WARNING | E_PARSE);
set_magic_quotes_runtime(0);
//===========================================================================
// DEBUG CLASS
//===========================================================================
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;
}
}
//===========================================================================
// INFO CLASS
//===========================================================================
class info {
var $member = array();
var $input = array();
var $session_id = "";
var $base_url = "";
var $vars = "";
var $lang_id = "en";
var $skin = "";
var $lang = "";
var $server_load = 0;
var $version = "v2.0.0 ";
var $lastclick = "";
var $location = "";
var $debug_html = "";
var $perm_id = "";
var $forum_read = array();
var $topic_cache = "";
var $session_type = "";
var $skin_global = "";
var $loaded_templates = array();
var $converge = "";
function info()
{
global $sess, $std, $DB, $INFO;
$this->vars = &$INFO;
$this->vars['AVATARS_URL'] = 'style_avatars';
$this->vars['EMOTICONS_URL'] = 'style_emoticons/<#EMO_DIR#>';
$this->vars['mime_img'] = 'style_images/<#IMG_DIR#>';
}
}
//===========================================================================
// MAIN PROGRAM
//===========================================================================
//--------------------------------
// Import $INFO, now!
//--------------------------------
$INFO = array();
require ROOT_PATH."conf_global.php";
//--------------------------------
// The clocks a' tickin'
//--------------------------------
$Debug = new Debug;
$Debug->startTimer();
//--------------------------------
// Load the DB driver and such
//--------------------------------
$INFO['sql_driver'] = ! $INFO['sql_driver'] ? 'mysql' : strtolower($INFO['sql_driver']);
require ( KERNEL_PATH.'class_db_'.$INFO['sql_driver'].".php" );
$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'];
$DB->obj['query_cache_file'] = ROOT_PATH.'sources/sql/'.$INFO['sql_driver'].'_queries.php';
$DB->obj['use_shutdown'] = USE_SHUTDOWN;
//-----------------------------------
// Required vars?
//-----------------------------------
if ( is_array( $DB->connect_vars ) and count( $DB->connect_vars ) )
{
foreach( $DB->connect_vars as $k => $v )
{
$DB->connect_vars[ $k ] = $INFO[ $k ];
}
}
//--------------------------------
// Get a DB connection
//--------------------------------
$DB->connect();
//--------------------------------
// Make CONSTANT
//--------------------------------
define( 'SQL_PREFIX', $DB->obj['sql_tbl_prefix'] );
define( 'SQL_DRIVER', $INFO['sql_driver'] );
//--------------------------------
// Wrap it all up in a nice easy to
// transport super class
//--------------------------------
$ibforums = new info();
//--------------------------------
// Require our global functions
//--------------------------------
require ROOT_PATH."sources/functions.php";
require ROOT_PATH."sources/classes/class_display.php";
require ROOT_PATH."sources/classes/class_session.php";
require ROOT_PATH."sources/classes/class_forums.php";
require KERNEL_PATH."class_converge.php";
$std = new FUNC;
$print = new display();
$sess = new session();
$forums = new forum_functions();
//--------------------------------
// Set up our vars
//--------------------------------
$ibforums->input = $std->parse_incoming();
//--------------------------------
// Set converge
//--------------------------------
$ibforums->converge = new class_converge( $DB );
//===========================================================================
// Get cache...
//===========================================================================
$DB->simple_construct( array( 'select' => '*', 'from' => 'cache_store', 'where' => "cs_key IN ( 'badwords', 'emoticons', 'attachtypes','bbcode', 'multimod','ranks','profilefields', 'banfilters', 'settings', 'group_cache', 'systemvars', 'skin_id_cache', 'forum_cache', 'moderators', 'stats', 'languages' )" ) );
$DB->simple_exec();
while ( $r = $DB->fetch_row() )
{
if ( $r['cs_key'] == 'settings' )
{
$tmp = unserialize(stripslashes($r['cs_value']));
if ( is_array( $tmp ) and count( $tmp ) )
{
foreach( $tmp as $k => $v )
{
$ibforums->vars[ $k ] = $v;
}
}
unset( $tmp );
}
else
{
if ( $r['cs_array'] )
{
$ibforums->cache[ $r['cs_key'] ] = unserialize(stripslashes($r['cs_value']));
}
else
{
$ibforums->cache[ $r['cs_key'] ] = $r['cs_value'];
}
}
}
if ( ! isset( $ibforums->cache['systemvars'] ) )
{
$DB->simple_exec_query( array( 'delete' => 'cache_store', 'where' => "cs_key='systemvars'" ) );
$DB->do_insert( 'cache_store', array( 'cs_key' => 'systemvars', 'cs_value' => addslashes(serialize(array())), 'cs_array' => 1 ) );
}
//--------------------------------
// Set debug mode
//--------------------------------
$DB->obj['debug'] = ($ibforums->vars['sql_debug'] == 1) ? intval($_GET['debug']) : 0;
//--------------------------------
// Initialize the FUNC
//--------------------------------
$std->FUNC_init();
//--------------------------------
// The rest :D
//--------------------------------
$ibforums->member = $sess->authorise();
$std->load_skin();
$ibforums->lastclick = $sess->last_click;
$ibforums->location = $sess->location;
$ibforums->session_id = $sess->session_id; // Used in URLs
$ibforums->my_session = $sess->session_id; // Used in code
//--------------------------------
// Initialize the forums
//--------------------------------
//--------------------------------
// Set up cache path
//--------------------------------
if ( $ibforums->vars['ipb_cache_path'] )
{
define( 'CACHE_PATH', $ibforums->vars['ipb_cache_path'] );
}
else
{
define( 'CACHE_PATH', ROOT_PATH );
}
$forums->strip_invisible = 1;
$forums->forums_init();
list($ppu,$tpu) = explode( "&", $ibforums->member['view_prefs'] );
$ibforums->vars['display_max_topics'] = ($tpu > 0) ? $tpu : $ibforums->vars['display_max_topics'];
$ibforums->vars['display_max_posts'] = ($ppu > 0) ? $ppu : $ibforums->vars['display_max_posts'];
//===========================================================================
// Set up the session ID stuff
//===========================================================================
if ( $ibforums->session_type == 'cookie' )
{
$ibforums->session_id = "";
$ibforums->base_url = $ibforums->vars['board_url'].'/index.'.$ibforums->vars['php_ext'].'?';
}
else
{
$ibforums->base_url = $ibforums->vars['board_url'].'/index.'.$ibforums->vars['php_ext'].'?s='.$ibforums->session_id.'&amp;';
}
$ibforums->js_base_url = $ibforums->vars['board_url'].'/index.'.$ibforums->vars['php_ext'].'?s='.$ibforums->session_id.'&';
//--------------------------------
// Set up the forum_read cookie
//--------------------------------
$std->hdl_forum_read_cookie();
//===========================================================================
// Set up defaults
//===========================================================================
$ibforums->skin_id = $ibforums->skin['_setid'];
$ibforums->vars['img_url'] = 'style_images/' . $ibforums->skin['_imagedir'];
//--------------------------------
// Set up our language choice
//--------------------------------
if ($ibforums->vars['default_language'] == "")
{
$ibforums->vars['default_language'] = 'en';
}
//--------------------------------
// Did we choose a language?
//--------------------------------
If ( $ibforums->input['setlanguage'] and $ibforums->input['langid'] and $ibforums->member['id'] )
{
if ( is_array( $ibforums->cache['languages'] ) and count( $ibforums->cache['languages'] ) )
{
foreach( $ibforums->cache['languages'] as $idx => $data )
{
if ( $data['ldir'] == $ibforums->input['langid'] )
{
$DB->do_update( 'members', array( 'language' => $data['ldir'] ), 'id='.$ibforums->member['id'] );
$ibforums->member['language'] = $data['ldir'];
}
}
}
}
$ibforums->lang_id = $ibforums->member['language'] ? $ibforums->member['language'] : $ibforums->vars['default_language'];
if ( ($ibforums->lang_id != $ibforums->vars['default_language']) and (! is_dir( ROOT_PATH."lang/".$ibforums->lang_id ) ) )
{
$ibforums->lang_id = $ibforums->vars['default_language'];
}
$ibforums->lang = $std->load_words($ibforums->lang, 'lang_global', $ibforums->lang_id);
//--------------------------------
// Upload dir?
//--------------------------------
$ibforums->vars['upload_dir'] = $ibforums->vars['upload_dir'] ? $ibforums->vars['upload_dir'] : ROOT_PATH.'uploads';
//===========================================================================
// DECONSTRUCTOR
//===========================================================================
if ( USE_SHUTDOWN and $ibforums->input['act'] != 'task' )
{
chdir( ROOT_PATH );
$ROOT_PATH = getcwd();
register_shutdown_function( array( &$std, 'my_deconstructor') );
}
//--------------------------------
// Require and run
//--------------------------------
require ROOT_PATH."sources/ipbportal.php";
$run = new ipdl();
$run->auto_run();
//+-------------------------------------------------
// GLOBAL ROUTINES
//+-------------------------------------------------
function fatal_error($message="", $help="") {
echo("$message<br><br>$help");
exit;
}
?>
@@ -1,10 +1,12 @@
Invision Power Dynamic Lite
Invision Power Portal
---------------------------
Installation Snyopsis
.....................
Open up index.php, edit the variables at the top save and upload to your root public_html / www folder.
Open up index_rename.php, edit the variables at the top save and upload to your root public_html / www folder.
If you're installing this in a different directory to your IPB, renamed 'index_rename.php' to 'index.php'. It's named as
such by default to ensure that you do not overwrite an existing file named the same.
INSTALLATION
@@ -14,31 +16,23 @@ This guide assumes that you have installed IPB in /forums/ and wish for the port
Open up index.php and edit the path to where the forums directory is:
define( 'ROOT_PATH', "./forums" );
define( 'ROOT_PATH', "./forums/" );
This is set to "forums" by default. If you had your IPB installed at http://www.domain.com/chat/ you'd need to make sure you have:
define( 'ROOT_PATH', "./chat" );
define( 'ROOT_PATH', "./chat/" );
Save the file and upload it to your root web directory folder, often called "public_html" or "www".
UPLOADING IPB COMPONENTS
------------------------
If you've already got a version previous to RC2 set up, you should make sure you upload the following files found in the "upload" folder
of this zip file.
/skin/s1/skin_csite.php
/lang/en/lang_csite.php
/sources/ipdynamiclite/*.*
SETTING UP
----------
Before you can use Dynamic lite, you'll need to make sure you've switched it on from the ACP. If you don't do this, you may
Before you can use IPB Portal, you'll need to make sure you've switched it on from the ACP. If you don't do this, you may
receive PHP errors from index.php.
Simply log into your forums ACP and expand the "System Settings" sub-menu and click on "IPDynamic Lite Set-up".
Simply log into your forums ACP and expand the "System Settings" sub-menu and click on "View all general settings" and then
find "IPB Portal".
That's it, you're all done!
+320
View File
@@ -0,0 +1,320 @@
<?
/*
+--------------------------------------------------------------------------
| Invision Power Board v2.0.0
| ========================================
| by Matthew Mecham
| (c) 2004 Invision Power Services, Inc
| http://www.invisionpower.com
| ========================================
| Web: http://www.invisionpower.com
+---------------------------------------------------------------------------
|
| > IP Chat => IPB Bridge Script
| > Script written by Matt Mecham
| > Date started: 17th February 2003 (Updated: 1 July 2004)
|
+--------------------------------------------------------------------------
*/
//-----------------------------------------------
// USER CONFIGURABLE ELEMENTS
//-----------------------------------------------
// Root path
define( 'ROOT_PATH' , "./" );
define( 'KERNEL_PATH', ROOT_PATH.'ips_kernel/' );
$CACHE = array();
//----------------------------------------------
// END OF USER EDITABLE COMPONENTS
//---------------------------------------------
error_reporting (E_ERROR | E_WARNING | E_PARSE);
set_magic_quotes_runtime(0);
require ROOT_PATH."conf_global.php";
define( 'DENIED', 0 );
define( 'ACCESS', 1 );
define( 'ADMIN' , 2 );
//--------------------------------
// Load the DB driver and such
//--------------------------------
$INFO['sql_driver'] = ! $INFO['sql_driver'] ? 'mysql' : strtolower($INFO['sql_driver']);
require ( KERNEL_PATH.'class_db_'.$INFO['sql_driver'].".php" );
$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'];
$DB->obj['use_shutdown'] = 0;
//-----------------------------------
// Required vars?
//-----------------------------------
if ( is_array( $DB->connect_vars ) and count( $DB->connect_vars ) )
{
foreach( $DB->connect_vars as $k => $v )
{
$DB->connect_vars[ $k ] = $INFO[ $k ];
}
}
//--------------------------------
// Get a DB connection
//--------------------------------
$DB->connect();
//--------------------------------
// Make CONSTANT
//--------------------------------
define( 'SQL_PREFIX', $DB->obj['sql_tbl_prefix'] );
define( 'SQL_DRIVER', $INFO['sql_driver'] );
//===========================================================================
// Get cache...
//===========================================================================
$DB->simple_construct( array( 'select' => '*', 'from' => 'cache_store', 'where' => "cs_key IN ( 'settings', 'group_cache', 'systemvars' )" ) );
$DB->simple_exec();
while ( $r = $DB->fetch_row() )
{
if ( $r['cs_key'] == 'settings' )
{
$tmp = unserialize(stripslashes($r['cs_value']));
if ( is_array( $tmp ) and count( $tmp ) )
{
foreach( $tmp as $k => $v )
{
$INFO[ $k ] = $v;
}
}
unset( $tmp );
}
else
{
if ( $r['cs_array'] )
{
$CACHE[ $r['cs_key'] ] = unserialize(stripslashes($r['cs_value']));
}
else
{
$CACHE[ $r['cs_key'] ] = $r['cs_value'];
}
}
}
$allowed_groups = $INFO['chat_admin_groups'];
$access_groups = $INFO['chat_access_groups'];
$autologin = 0;
$allow_guest_access = $INFO['chat_allow_guest'] == 1 ? ACCESS : DENIED;
// Stupid PHP changing it's mind on HTTP args
$username = $_GET['username'] != "" ? $_GET['username'] : $HTTP_GET_VARS['username'];
$password = $_GET['password'] != "" ? $_GET['password'] : $HTTP_GET_VARS['password'];
$ip = $_GET['ip'] != "" ? $_GET['ip'] : $HTTP_GET_VARS['ip'];
//----------------------------------------------
// Test for autologin.
//----------------------------------------------
if ( preg_match( "/^(?:[0-9a-z]){32}$/", $password ) )
{
$autologin = 1;
}
// Remove URL encoding (%20, etc)
$username = clean_value(urldecode(trim($username)));
$password = clean_value(urldecode(trim($password)));
$ip = clean_value(urldecode(trim($ip)));
//----------------------------------------------
// Main code
//----------------------------------------------
// Start off with the lowest accessibility
$output_int = $allow_guest_access;
$output_name = "";
//------------------------------
// Attempt to find the user
//------------------------------
$DB->query( "SELECT m.mgroup, m.name, m.id, c.* FROM ".SQL_PREFIX."members m
LEFT JOIN ".SQL_PREFIX."members_converge c ON (m.id=c.converge_id)
WHERE m.name='".$DB->add_slashes($username)."'" );
if ( ! $member = $DB->fetch_row() )
{
die_nice();
//-- script exits --//
}
if ( ! $member['id'] )
{
// No member found - allow guest access?
die_nice($allow_guest_access);
//-- script exits --//
}
//------------------------------
// Update passy
//------------------------------
if ( ! $autologin )
{
$md5_password = md5( md5( $member['converge_pass_salt'] ) . md5($password) );
}
else
{
$md5_password = $password;
}
//------------------------------
// Check password - member exists
//------------------------------
if ( $password != "" )
{
// Password was entered..
if ( $md5_password != $member['converge_pass_hash'] )
{
// Password incorrect..
die_nice();
//-- script exits --//
}
else
{
$output_int = ACCESS;
}
}
else
{
// No password entered - die!
// Do not allow guest access on reg. name
die_nice();
//-- script exits --//
}
//------------------------------
// Do we have any access?
//------------------------------
if ( ! preg_match( "/(^|,)".$member['mgroup']."(,|$)/", $access_groups ) )
{
die_nice();
}
//------------------------------
// Do we have admin access?
//------------------------------
if ( preg_match( "/(^|,)".$member['mgroup']."(,|$)/", $allowed_groups ) )
{
$output_int = ADMIN;
}
//------------------------------
// Spill the beans
//------------------------------
print $output_int;
exit();
function die_nice( $access=0 )
{
// Simply error out silently, showing guest access only for the user
@mysql_close();
print $access;
exit();
}
//------------------------------
// Var cleaner
//------------------------------
function clean_value($val)
{
global $INFO;
if ($val == "")
{
return "";
}
$val = str_replace( "&#032;", " ", $val );
if ( $INFO['strip_space_chr'] )
{
$val = str_replace( chr(0xCA), "", $val ); //Remove sneaky spaces
}
$val = str_replace( "&" , "&amp;" , $val );
$val = str_replace( "<!--" , "&#60;&#33;--" , $val );
$val = str_replace( "-->" , "--&#62;" , $val );
$val = preg_replace( "/<script/i" , "&#60;script" , $val );
$val = str_replace( ">" , "&gt;" , $val );
$val = str_replace( "<" , "&lt;" , $val );
$val = str_replace( "\"" , "&quot;" , $val );
$val = preg_replace( "/\n/" , "<br>" , $val ); // Convert literal newlines
$val = preg_replace( "/\\\$/" , "&#036;" , $val );
$val = preg_replace( "/\r/" , "" , $val ); // Remove literal carriage returns
$val = str_replace( "!" , "&#33;" , $val );
$val = str_replace( "'" , "&#39;" , $val ); // IMPORTANT: It helps to increase sql query safety.
// Ensure unicode chars are OK
$val = preg_replace("/&amp;#([0-9]+);/s", "&#\\1;", $val );
// Strip slashes if not already done so.
if ( get_magic_quotes_gpc() )
{
$val = stripslashes($val);
}
// Swop user inputted backslashes
$val = preg_replace( "/\\\(?!&amp;#|\?#)/", "&#092;", $val );
return $val;
}
?>
-236
View File
@@ -1,236 +0,0 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board IPB Click Site
| ========================================
| by Matthew Mecham
| (c) 2001 - 2003 Invision Power Services
| http://www.invisionpower.com
| ========================================
| Web: http://www.invisionboard.com
| Email: matt@invisionpower.com
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
|
| > IPB Portal Script
| > Written By Matthew Mecham
| > Date started: 1st July 2003
|
+--------------------------------------------------------------------------
*/
//-----------------------------------------------
// USER CONFIGURABLE ELEMENTS
//-----------------------------------------------
// Define the path to where the forums directory is
// located. This might be "./forums/" for example.
// Don't forget the trailing slash!
define( 'ROOT_PATH', "./forums/" );
// Define the URL to this script. If you're happy to
// use relative URLs - you can leave this blank.
// You can also rename the script here.
$this_script = 'index.php';
//-----------------------------------------------
// NO USER EDITABLE SECTIONS BELOW
//-----------------------------------------------
error_reporting (E_ERROR | E_WARNING | E_PARSE);
set_magic_quotes_runtime(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 $member = array();
var $input = array();
var $session_id = "";
var $base_url = "";
var $vars = "";
var $skin_id = "0"; // Skin Dir name
var $skin_rid = ""; // Real skin id (numerical only)
var $lang_id = "en";
var $skin = "";
var $lang = "";
var $server_load = 0;
var $version = "v1.0";
var $lastclick = "";
var $location = "";
var $debug_html = "";
var $perm_id = "";
var $forum_read = array();
var $topic_cache = "";
var $session_type = "";
function info() {
global $sess, $std, $DB, $INFO, $this_script;
$this->vars = &$INFO;
$this->vars['TEAM_ICON_URL'] = $INFO['html_url'] . '/team_icons';
$this->vars['AVATARS_URL'] = $INFO['html_url'] . '/avatars';
$this->vars['EMOTICONS_URL'] = $INFO['html_url'] . '/emoticons';
$this->vars['mime_img'] = $INFO['html_url'] . '/mime_types';
$this->vars['dynamiclite'] = $this_script.'?';
}
}
//--------------------------------
// Import $INFO, now!
//--------------------------------
require ROOT_PATH."conf_global.php";
//--------------------------------
// The clocks a' tickin'
//--------------------------------
$Debug = new Debug;
$Debug->startTimer();
//--------------------------------
// Require our global functions
//--------------------------------
require ROOT_PATH."sources/functions.php";
$std = new FUNC;
$print = new display();
$sess = new session();
//--------------------------------
// Load the DB driver and such
//--------------------------------
$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'];
$DB->obj['debug'] = ($INFO['sql_debug'] == 1) ? $_GET['debug'] : 0;
// Get a DB connection
$DB->connect();
//--------------------------------
// Wrap it all up in a nice easy to
// transport super class
//--------------------------------
$ibforums = new info();
//--------------------------------
// Set up our vars
//--------------------------------
$ibforums->input = $std->parse_incoming();
//--------------------------------
// The rest :D
//--------------------------------
$ibforums->member = $sess->authorise();
$ibforums->skin = $std->load_skin();
$ibforums->lastclick = $sess->last_click;
$ibforums->location = $sess->location;
$ibforums->session_id = $sess->session_id;
//--------------------------------
// Set up the session ID stuff
//--------------------------------
if ( $ibforums->session_type == 'cookie' )
{
$ibforums->session_id = "";
$ibforums->base_url = $ibforums->vars['board_url'].'/index.'.$ibforums->vars['php_ext'].'?';
}
else
{
$ibforums->base_url = $ibforums->vars['board_url'].'/index.'.$ibforums->vars['php_ext'].'?s='.$ibforums->session_id.'&amp;';
}
$ibforums->js_base_url = $ibforums->vars['board_url'].'/index.'.$ibforums->vars['php_ext'].'?s='.$ibforums->session_id.'&';
//--------------------------------
// Set up the forum_read cookie
//--------------------------------
$std->hdl_forum_read_cookie();
//--------------------------------
// Set up the skin stuff
//--------------------------------
$ibforums->skin_rid = $ibforums->skin['set_id'];
$ibforums->skin_id = 's'.$ibforums->skin['set_id'];
$ibforums->vars['img_url'] = $ibforums->vars['board_url'].'/style_images/' . $ibforums->skin['img_dir'];
//--------------------------------
// Set up our language choice
//--------------------------------
if ($ibforums->vars['default_language'] == "")
{
$ibforums->vars['default_language'] = 'en';
}
$ibforums->lang_id = $ibforums->member['language'] ? $ibforums->member['language'] : $ibforums->vars['default_language'];
if ( ($ibforums->lang_id != $ibforums->vars['default_language']) and (! is_dir( ROOT_PATH."lang/".$ibforums->lang_id ) ) )
{
$ibforums->lang_id = $ibforums->vars['default_language'];
}
$ibforums->lang = $std->load_words($ibforums->lang, 'lang_global', $ibforums->lang_id);
//--------------------------------
// Require and run
//--------------------------------
require ROOT_PATH."sources/dynamiclite/csite.php";
$run = new click_site();
//+-------------------------------------------------
// GLOBAL ROUTINES
//+-------------------------------------------------
function fatal_error($message="", $help="") {
echo("$message<br><br>$help");
exit;
}
?>
+229 -84
View File
@@ -2,65 +2,86 @@
/*
+--------------------------------------------------------------------------
| IBFORUMS v1.2
| Invision Power Board v2.0.0
| ========================================
| by Matthew Mecham
| (c) 2001,2002 IBForums
| http://www.ibforums.com
| (c) 2001 - 2004 Invision Power Services
| http://www.invisionpower.com
| ========================================
| Web: http://www.ibforums.com
| Email: phpboards@ibforums.com
| Licence Info: phpib-licence@ibforums.com
| Web: http://www.invisionboard.com
| Time: Tue, 21 Sep 2004 16:34:28 GMT
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
| Email: matt@invisionpower.com
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
|
| > SSI script
| > Script written by Matt Mecham
| > Date started: 29th April 2002
| > UPDATED: 1st July 2004
|
+--------------------------------------------------------------------------
*/
/* USAGE:
------
Simply call this script via PHP includes, or SSI .shtml tags to generate content
on the fly, streamed into your own webpage.
To show the last 10 topics and posts in the news forums...
include("http://domain.com/forums/ssi.php?a=news&show=10");
You can adjust the "show" attribute to display a different amount of topics.
To show the board statistics
include("http://domain.com/forums/ssi.php?a=stats");
To show the active users stats (x Members, X Guests, etc)
include("http://domain.com/forums/ssi.php?a=active");
Syndication..
RSS:
http://domain.com/forums/ssi.php?a=out&f=1,2,3,4,5&show=10&type=rss
http://domain.com/forums/ssi.php?a=out&f=1,2,3,4,5&show=10&type=xml
Will show last 10 topics in reverse chronological last post date order from
all the forums in the comma separated list
+--------------------------------------------------------------------------
| USAGE:
+--------------------------------------------------------------------------
Simply call this script via PHP includes, or SSI .shtml tags to generate content
on the fly, streamed into your own webpage.
+--------------------------------------------------------------------------
| To show the last 10 topics and posts in the news forums...
+--------------------------------------------------------------------------
include("http://domain.com/forums/ssi.php?a=news&show=10");
You can adjust the "show" attribute to display a different amount of topics.
+--------------------------------------------------------------------------
| To show the board statistics
+--------------------------------------------------------------------------
include("http://domain.com/forums/ssi.php?a=stats");
+--------------------------------------------------------------------------
| To show the active users stats (x Members, X Guests, etc)
+--------------------------------------------------------------------------
include("http://domain.com/forums/ssi.php?a=active");
+--------------------------------------------------------------------------
| RSS / XML Syndication..
+--------------------------------------------------------------------------
RSS: http://domain.com/forums/ssi.php?a=out&f=1,2,3,4,5&show=10&type=rss
XML: http://domain.com/forums/ssi.php?a=out&f=1,2,3,4,5&show=10&type=xml
Will show last 10 topics in reverse chronological last post date order from
all the forums in the comma separated list
*/
//-----------------------------------------------
// USER CONFIGURABLE ELEMENTS
//-----------------------------------------------
// Root path
$root_path = "./";
define( 'ROOT_PATH' , "./" );
define( 'KERNEL_PATH', ROOT_PATH.'ips_kernel/' );
$templates_dir = "./ssi_templates";
// Enable module usage?
// (Vital for some mods and IPB enhancements)
define ( 'USE_MODULES', 1 );
// Enable shut down features?
// Uses PHPs register_shutdown_function to save
// low priority tasks until end of exec
define ( 'USE_SHUTDOWN', 1 );
$templates_dir = ROOT_PATH."ssi_templates";
$max_show = 100; // Maximum number of topics possible to show...
@@ -69,7 +90,10 @@ $allow_syndication = 1; // To turn off, use $allow_syndication = 0;
//-----------------------------------------------
// NO USER EDITABLE SECTIONS BELOW
//-----------------------------------------------
define ( 'IN_IPB', 1 );
define ( 'IN_DEV', 0 );
error_reporting (E_ERROR | E_WARNING | E_PARSE);
set_magic_quotes_runtime(0);
@@ -78,11 +102,12 @@ class info {
var $input = array();
var $base_url = "";
var $vars = "";
function info() {
global $sess, $std, $DB, $root_path, $INFO;
function info()
{
global $sess, $std, $DB, $INFO;
$this->vars = &$INFO;
}
}
@@ -90,13 +115,13 @@ class info {
// Import $INFO, now!
//--------------------------------
require $root_path."conf_global.php";
require ROOT_PATH."conf_global.php";
//--------------------------------
// Require our global functions
//--------------------------------
require $root_path."sources/functions.php";
require ROOT_PATH."sources/functions.php";
$std = new FUNC;
@@ -104,10 +129,9 @@ $std = new FUNC;
// Load the DB driver and such
//--------------------------------
$INFO['sql_driver'] = !$INFO['sql_driver'] ? 'mySQL' : $INFO['sql_driver'];
$INFO['sql_driver'] = ! $INFO['sql_driver'] ? 'mysql' : strtolower($INFO['sql_driver']);
$to_require = $root_path."sources/Drivers/".$INFO['sql_driver'].".php";
require ($to_require);
require ( KERNEL_PATH.'class_db_'.$INFO['sql_driver'].".php" );
$DB = new db_driver;
@@ -116,11 +140,34 @@ $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'];
$DB->obj['query_cache_file'] = ROOT_PATH.'sources/sql/'.$INFO['sql_driver'].'_queries.php';
$DB->obj['use_shutdown'] = USE_SHUTDOWN;
//-----------------------------------
// Required vars?
//-----------------------------------
if ( is_array( $DB->connect_vars ) and count( $DB->connect_vars ) )
{
foreach( $DB->connect_vars as $k => $v )
{
$DB->connect_vars[ $k ] = $INFO[ $k ];
}
}
//--------------------------------
// Get a DB connection
//--------------------------------
$DB->connect();
//--------------------------------
// Make CONSTANT
//--------------------------------
define( 'SQL_PREFIX', $DB->obj['sql_tbl_prefix'] );
define( 'SQL_DRIVER', $INFO['sql_driver'] );
//--------------------------------
// Wrap it all up in a nice easy to
// transport super class
@@ -135,6 +182,50 @@ $ibforums = new info();
$ibforums->input = $std->parse_incoming();
$ibforums->base_url = $ibforums->vars['board_url'].'/index.'.$ibforums->vars['php_ext'];
//===========================================================================
// Get cache...
//===========================================================================
$DB->simple_construct( array( 'select' => '*', 'from' => 'cache_store', 'where' => "cs_key IN ( 'banfilters', 'settings', 'group_cache', 'systemvars', 'skin_id_cache', 'forum_cache', 'moderators', 'stats', 'languages' )" ) );
$DB->simple_exec();
while ( $r = $DB->fetch_row() )
{
if ( $r['cs_key'] == 'settings' )
{
$tmp = unserialize(stripslashes($r['cs_value']));
if ( is_array( $tmp ) and count( $tmp ) )
{
foreach( $tmp as $k => $v )
{
$ibforums->vars[ $k ] = $v;
}
}
unset( $tmp );
}
else
{
if ( $r['cs_array'] )
{
$ibforums->cache[ $r['cs_key'] ] = unserialize(stripslashes($r['cs_value']));
}
else
{
$ibforums->cache[ $r['cs_key'] ] = $r['cs_value'];
}
}
}
//--------------------------------
// Initialize the FUNC
//--------------------------------
$std->FUNC_init();
$std->load_skin();
//--------------------------------
// What to do?
//--------------------------------
@@ -176,7 +267,7 @@ switch ($ibforums->input['a'])
function do_syndication()
{
global $DB, $ibforums, $root_path, $templates_dir, $std, $max_show;
global $DB, $ibforums, $templates_dir, $std, $max_show;
//----------------------------------------
// Sort out the forum ids
@@ -267,9 +358,7 @@ function do_syndication()
'board_name' => $ibforums->vars['board_name'],
) );
$DB->query("SELECT g_id, g_perm_id FROM ibf_groups WHERE g_id={$ibforums->vars['guest_group']}");
$group = $DB->fetch_row();
$group = $ibforums->cache['group_cache'][ $ibforums->vars['guest_group'] ];
$ibforums->perm_id_array = explode( ",", $group['g_perm_id'] );
@@ -277,11 +366,13 @@ function do_syndication()
// Get the topics, member info and other stuff
//----------------------------------------
$DB->query("SELECT t.*, f.name as forum_name, f.read_perms, f.password
FROM ibf_topics t
LEFT JOIN ibf_forums f ON ( f.id=t.forum_id )
WHERE t.forum_id IN ($sql_fields)
AND t.approved=1 ORDER BY t.last_post DESC LIMIT 0, $perpage");
$DB->simple_construct( array( 'select' => '*',
'from' => 'topics',
'where' => "forum_id IN ($sql_fields) AND approved=1",
'order' => 'last_post DESC',
'limit' => array( 0, $perpage ) ) );
$DB->simple_exec();
if ( ! $DB->get_num_rows() )
{
@@ -290,12 +381,14 @@ function do_syndication()
while ( $i = $DB->fetch_row() )
{
if ( $std->check_perms( $i['read_perms'] ) != TRUE )
$forum = $ibforums->cache['forum_cache'][ $i['forum_id'] ];
if ( $std->check_perms( $forum['read_perms'] ) != TRUE )
{
continue;
}
if ($i['password'] != "" )
if ($forum['password'] != "" )
{
continue;
}
@@ -331,7 +424,7 @@ function do_syndication()
function do_stats()
{
global $DB, $ibforums, $root_path, $templates_dir, $std;
global $DB, $ibforums, $templates_dir, $std;
// Load the template...
@@ -342,17 +435,24 @@ function do_stats()
// Get the topics, member info and other stuff
$time = time() - 900;
$DB->query("SELECT * FROM ibf_stats");
$stats = $DB->fetch_row();
if ( ! is_array( $ibforums->cache['stats'] ) )
{
$ibforums->cache['stats'] = array();
$DB->simple_exec_query( array( 'delete' => 'cache_store', 'where' => "cs_key='stats'" ) );
$DB->do_insert( 'cache_store', array( 'cs_array' => 1, 'cs_key' => 'stats', 'cs_value' => addslashes(serialize($ibforums->cache['stats'])) ) );
}
$total_posts = $stats['TOTAL_REPLIES']+$stats['TOTAL_TOPICS'];
$stats = $ibforums->cache['stats'];
$total_posts = $stats['total_replies']+$stats['total_topics'];
$to_echo = parse_template( $template,
array (
'total_posts' => $total_posts,
'topics' => $stats['TOTAL_TOPICS'],
'replies' => $stats['TOTAL_REPLIES'],
'members' => $stats['MEM_COUNT']
'topics' => $stats['total_topics'],
'replies' => $stats['total_replies'],
'members' => $stats['mem_count']
)
);
@@ -366,14 +466,14 @@ function do_stats()
function do_news()
{
global $DB, $ibforums, $root_path, $templates_dir, $std, $max_show;
global $DB, $ibforums, $templates_dir, $std, $max_show;
if ( (! $ibforums->vars['news_forum_id']) or ($ibforums->vars['news_forum_id'] == "" ) )
{
fatal_error("No news forum assigned");
}
require $root_path."sources/lib/post_parser.php";
require ROOT_PATH."sources/lib/post_parser.php";
$parser = new post_parser();
@@ -381,20 +481,22 @@ function do_news()
$perpage = ( $perpage > $max_show ) ? $max_show : $perpage;
//-----------------------------------------
// Load the template...
//-----------------------------------------
$template = load_template("news.html");
$to_echo = "";
//-----------------------------------------
// Get the topics, member info and other stuff
//-----------------------------------------
$DB->query("SELECT m.name as member_name, m.id as member_id,m.title as member_title, m.avatar, m.avatar_size, m.posts, t.*, p.*, g.g_dohtml, f.use_html
FROM ibf_topics t
LEFT JOIN ibf_posts p ON (p.new_topic=1 AND p.topic_id=t.tid)
LEFT JOIN ibf_members m ON (m.id=t.starter_id)
LEFT JOIN ibf_groups g ON (g.g_id=m.mgroup)
LEFT JOIN ibf_forums f ON (t.forum_id=f.id)
$DB->query("SELECT m.name as member_name, m.mgroup, m.id as member_id,m.title as member_title, t.*, p.*
FROM ".SQL_PREFIX."topics t
LEFT JOIN ".SQL_PREFIX."posts p ON (p.new_topic=1 AND p.topic_id=t.tid)
LEFT JOIN ".SQL_PREFIX."members m ON (m.id=t.starter_id)
WHERE t.forum_id={$ibforums->vars['news_forum_id']} AND t.approved=1 ORDER BY t.tid DESC LIMIT 0, $perpage");
if ( ! $DB->get_num_rows() )
@@ -406,19 +508,28 @@ function do_news()
{
$row['post'] = str_replace( '<br>', '<br />', $row['post'] );
$parser->pp_do_html = ( $ibforums->cache['forum_cache'][ $row['forum_id'] ]['use_html'] and $ibforums->cache['group_cache'][ $row['mgroup'] ]['g_dohtml'] and $row['post_htmlstate'] ) ? 1 : 0;
$parser->pp_wordwrap = $ibforums->vars['post_wordwrap'];
$parser->pp_nl2br = $row['post_htmlstate'] == 2 ? 1 : 0;
$row['post'] = $parser->post_db_parse( $row['post'] );
$to_echo .= parse_template( $template,
array (
'profile_link' => $ibforums->base_url."?act=Profile&CODE=03&MID=".$row['member_id'],
'member_name' => $row['member_name'],
'post_date' => $std->get_date( $row['start_date'], 'LONG' ),
'post_date' => $std->get_date( $row['post_date'], 'LONG', 1 ),
'topic_title' => $row['title'],
'post' => $parser->post_db_parse($row['post'], ($row['use_html'] AND $row['g_dohtml']) ? 1 : 0 ),
'post' => $row['post'],
'comments' => $row['posts'],
'view_all_link' => $ibforums->base_url."?act=ST&f={$row['forum_id']}&t={$row['tid']}"
)
);
}
$to_echo = str_replace( "<#IMG_DIR#>", $ibforums->skin['_imagedir'], $to_echo );
$to_echo = str_replace( "<#EMO_DIR#>", $ibforums->skin['_emodir'] , $to_echo );
echo $to_echo;
exit();
@@ -428,7 +539,7 @@ function do_news()
function do_active()
{
global $DB, $ibforums, $root_path, $templates_dir, $std;
global $DB, $ibforums, $templates_dir, $std;
// Load the template...
@@ -436,17 +547,50 @@ function do_active()
$to_echo = "";
// Get the topics, member info and other stuff
$time = time() - 900;
$DB->query("SELECT s.member_id, s.member_name, s.login_type, g.suffix, g.prefix FROM ibf_sessions s, ibf_groups g WHERE running_time > '$time' AND g.g_id=s.member_group ORDER BY running_time DESC");
if ($ibforums->vars['au_cutoff'] == "")
{
$ibforums->vars['au_cutoff'] = 15;
}
// cache all printed members so we don't double print them
//--------------------------------
// Get the users from the DB
//--------------------------------
$cut_off = $ibforums->vars['au_cutoff'] * 60;
$time = time() - $cut_off;
$rows = array( 0 => array( 'login_type' => substr($ibforums->member['login_anonymous'],0, 1),
'running_time' => time(),
'member_id' => $ibforums->member['id'],
'member_name' => $ibforums->member['name'],
'member_group' => $ibforums->member['mgroup'] ) );
$DB->simple_construct( array( 'select' => 'id, member_id, member_name, login_type, running_time, member_group',
'from' => 'sessions',
'where' => "running_time > $time",
'order' => "running_time DESC"
) );
$DB->simple_exec();
//-----------------------------------------
// FETCH...
//-----------------------------------------
while ($r = $DB->fetch_row() )
{
$rows[] = $r;
}
//--------------------------------
// cache all printed members so we
// don't double print them
//--------------------------------
$cached = array();
$active = array();
while ($result = $DB->fetch_row() )
foreach( $rows as $result )
{
if ($result['member_id'] == 0)
{
@@ -457,6 +601,7 @@ function do_active()
if (empty( $cached[ $result['member_id'] ] ) )
{
$cached[ $result['member_id'] ] = 1;
if ($result['login_type'] == 1)
{
$active['ANON']++;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -16,7 +16,7 @@
<link>{topic_link}</link>
<comments>{topic_link}</comments>
<category>{forum_title}</category>
<description><![CDATA[Forum: <a href="{board_url}?showforum={forum_id}" target="_blank">{forum_title}</a><br />Last Poster: <a href="{board_url}?showuser={last_poster_id}" target="_blank">{last_post_name}</a><br />Last Post: {last_post_time}]]></description>
<description><![CDATA[Forum: <a href="{board_url}?showforum={forum_id}">{forum_title}</a><br />Last Poster: <a href="{board_url}?showuser={last_poster_id}" target="_blank">{last_post_name}</a><br />Last Post: {last_post_time}]]></description>
<pubDate>{rfc_date}</pubDate>
</item>
[/ROW]
@@ -0,0 +1,39 @@
[TOP]
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE ipbsource
[
<!-- CUSTOM IPB INLINE DOCTYPE -->
<!ELEMENT ipbsource (topic+) >
<!ELEMENT topic (title,lastposter,starter,forum,date) >
<!ATTLIST topic id CDATA #REQUIRED >
<!ELEMENT title (#PCDATA) >
<!ELEMENT lastposter (#PCDATA) >
<!ATTLIST lastposter id CDATA #REQUIRED >
<!ELEMENT starter (#PCDATA) >
<!ATTLIST starter id CDATA #REQUIRED >
<!ELEMENT forum (#PCDATA) >
<!ATTLIST forum id CDATA #REQUIRED >
<!ELEMENT date (#PCDATA) >
<!ATTLIST date timestamp CDATA #REQUIRED >
]>
<ipbsource>
[/TOP]
[ROW]
<topic id="{topic_id}">
<title>{topic_title}</title>
<lastposter id="{last_poster_id}">{last_post_name}</lastposter>
<starter id="{starter_id}">{starter_name}</starter>
<forum id="{forum_id}">{forum_title}</forum>
<date timestamp="{timestamp}">{last_post_time}</date>
</topic>
[/ROW]
[BOTTOM]
</ipbsource>
[/BOTTOM]
File diff suppressed because it is too large. Load diff
+262
View File
@@ -0,0 +1,262 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Installation Questions: Unofficial Guide</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="robots" content="no-index" />
<script type="text/javascript">
<!--
if (window != top) top.location.href = location.href;
// -->
</script>
<script type="text/javascript">
<!--
/* Copyright Peter Crouch 2000. All rights reserved.
Visit http://www.perlbay.com for other thing written by me
Visit http://javascriptkit.com for this script and more
*/
function calculator(user, number) {
// Owner
if (user == "owner" && number == "4"){var box = eval("document.chmod.owner4")}
if (user == "owner" && number == "2"){var box = eval("document.chmod.owner2")}
if (user == "owner" && number == "1"){var box = eval("document.chmod.owner1")}
// Group
if (user == "group" && number == "4"){var box = eval("document.chmod.group4")}
if (user == "group" && number == "2"){var box = eval("document.chmod.group2")}
if (user == "group" && number == "1"){var box = eval("document.chmod.group1")}
// Other
if (user == "other" && number == "4"){var box = eval("document.chmod.other4")}
if (user == "other" && number == "2"){var box = eval("document.chmod.other2")}
if (user == "other" && number == "1"){var box = eval("document.chmod.other1")}
if (box.checked == true) {
if (user == "owner") {
document.chmod.h_owner.value += ("+number")
var a= (document.chmod.h_owner.value)
var b= eval(a)
document.chmod.h_owner.value=b
document.chmod.t_owner.value=b
}
if (user == "group") {
document.chmod.h_group.value += ("+number")
var a= (document.chmod.h_group.value)
var b= eval(a)
document.chmod.h_group.value=b
document.chmod.t_group.value=b
}
if (user == "other") {
document.chmod.h_other.value += ("+number")
var a= (document.chmod.h_other.value)
var b= eval(a)
document.chmod.h_other.value=b
document.chmod.t_other.value=b
}
}
if (box.checked == false) {
if (user == "owner") {
if (document.chmod.h_owner.value == "") {
document.chmod.t_owner.value=""
} else {
var a=(document.chmod.h_owner.value);
b=a-(number);
c=eval(b);
document.chmod.h_owner.value=c
document.chmod.t_owner.value=c
}
}
if (user == "group") {
if (document.chmod.h_group.value == "") {
document.chmod.t_group.value=""
} else {
var a=(document.chmod.h_group.value);
b=a-(number);
c=eval(b);
document.chmod.h_group.value=c
document.chmod.t_group.value=c
}
}
if (user == "other") {
if (document.chmod.h_other.value == "") {
document.chmod.t_other.value=""
} else {
var a=(document.chmod.h_other.value);
b=a-(number);
c=eval(b);
document.chmod.h_other.value=c
document.chmod.t_other.value=c
}
}
}
}
// -->
</script>
<style type="text/css">
table {
font-family: Verdana, Arial, Times, Times New Roman, Sans-Serif;
font-size: 8pt;
color: #000000;
line-height: 17px;
}
</style>
</head>
<body>
<table width="600" align="center" style="border: 1px solid black" border="0" cellspacing="0" cellpadding="2">
<tr>
<td valign="top">
<b>Installation Questions: Unofficial Guide</b><br />
written by: daniel EDWARDS<br /><br />
Thank you for choosing Invision Power Board, the greatest Forum software on the Internet. Many of you may have questions installing it and putting things into motion, but this page will give you a general idea of how to install and setup your Forum.<br /><br />
This is not for the newbie, but I will write this in newbie terms, so that everyone can understand.<br /><br />
<b>DOWNLOAD IT</b> <hr>
If you're reading this file right now, you've probably got this covered. You also know how to extract files, so we'll move on.<br /><br />
<b>GENERAL GUIDE</b> <hr>
<b>Creating The Directory</b><br />
The first thing you want to do is create a new directory in your root site for your Forum. This basically means making a new folder where you will contain your Forum files. You can do this best through FTP (file transfer protocol), although I'm aware that you can use a file manager as well.<br /><br />
FTP is the easiest way to do it, so ensure from your host that you have FTP enabled for editing and managing files through your site. You can access FTP through a number of FTP programs, but seeing as how you've downloaded this free version of Invision Power Board, you're not in the interest of paying for professional programs. Try SmartFTP or CoreFTP Lite for starters. You can type in those words into the Google.com search engine to obtain the url, download it, and get it moving.<br /><br />
Log in to your FTP account (which requires a username, a password, and a domain name). Your FTP account should be something like:<br />
<b>Address:</b> ftp://yoursite.com<br />
<b>Username:</b> moocher@yoursite.com<br />
<b>Password:</b> ******<br /><br />
Once you have logged in, create a new directory in your root directory. Basically, your root directory would normally have the following url in the FTP address bar: /var/www/html/public_html/. Your root directory is where all your site files are stored, including your index.html page. So create a new folder or make a new directory in this spot and name it something simple like "forum".<br /><br />
<b>Uploading The Files</b><br />
Now, go into that folder and upload all the contents necessary for your Invision Power Board. You should only upload the contents you find in the "upload" folder that you unzipped to your Desktop. Most FTP programs support "drag-and-drop", a system where you can drag programs from a source folder into your FTP client and have it manually copy all directories and files. If you are running an older version, you may have to manually create each directory in your Forum directory, and then upload the corresponding files. Since this is going to take a while, you can start focusing on database information.<br /><br />
<b>Creating A MySQL Database</b><br />
IPB runs directly on PHP and MySQL. You will need MySQL access in order to create an Invision Power Board forum. Most Web hosts will provide you with MySQL access, but if you're not sure you have it, contact your web host immediately.<br /><br />
MySQL operates through a series of confusing code and what we call "datbases". Databases store more detailed information than a cookie (a file stored on your computer that remembers login information, page details, etc.). You will automatically write information to your database while installing Invision Power Board. It will record user registrations, your installation information, general configurations, etc. So MySQL is really handy, even though you have no clue what it means. Don't worry, I don't either.<br /><br />
So what you want to do now is Create a Database for installing IPB. Login to your MySQL control panel (only your host can give you this information). A database requires only three pieces of information to be created: a name, your username, and a password. As simple as that.<br /><br />
So create a database named "iAm_moocher" or whatever you want to call it, then supply a username and password. Record this information, because if you lose it, you will be screwed. Write it on a piece of paper and tape it to your monitor if you have to, just don't lose that login information.<br /><br />
Now that you have created your database, you can check on the contents being uploaded to your site. Everything should have completed now, but if it didn't, you'll have to wait. Once everything has finished uploading, you'll have to do some CHMOD'ing.<br /><br />
<b>Changing And Modifying (CHMOD) File Permissions</b><br />
Don't panic, young squire. CHMOD means "change/modify directory permissions", or something like that. And what I mean by permissions is basically who can access your files. You can change permissions of files so that only you can read, write, and execute specific files, or so that everyone can read, write, or execute files.<br /><br />
CHMOD'ing is defined using three octal number components that specify access limitations for the owner, the owner's user group, and to the general public not currently in the owner's user group. Each component can be calculated by adding up the required permissions for each target user base. The number 1 allows you to execute, the number 2 allows you to write, and the number 4 allows you to read. Adding up these number values reveal the allowed rights. For example, to allow a sort of "administration" perspective on a file, you want to enable the file to be readable, writeable, and executable. By adding up the numbers 4, 2, and 1 respectively, you are given the number 7. If you allow the owner, user group, and public "administration" rights, you are given the three-digit of "777". The table below is an example of how this system of file permissions is set up:<br /><br />
<form name="chmod">
<input name="h_owner" type="hidden" value="" />
<input name="h_group" type="hidden" value="" />
<input name="h_other" type="hidden" value="" />
<table width="90%" align="center" border="1" cellspacing="0" cellpadding="2">
<tr align="center">
<td>
<b>Permission</b>
</td>
<td>
Owner
</td>
<td>
Group
</td>
<td>
Public
</td>
</tr>
<tr align="center">
<td>
Read
</td>
<td>
<input type="checkbox" name="owner4" value="4" onclick="calculator('owner',4)" />
</td>
<td>
<input type="checkbox" name="group4" value="4" onclick="calculator('group', 4)" />
</td>
<td>
<input type="checkbox" name="other4" value="4" onclick="calculator('other', 4)" />
</td>
</tr>
<tr align="center">
<td>
Write
</td>
<td>
<input type="checkbox" name="owner2" value="2" onclick="calculator('owner', 2)" />
</td>
<td>
<input type="checkbox" name="group2" value="2" onclick="calculator('group', 2)" />
</td>
<td>
<input type="checkbox" name="other2" value="2" onclick="calculator('other', 2)" />
</td>
</tr>
<tr align="center">
<td>
Execute
</td>
<td>
<input type="checkbox" name="owner1" value="1" onclick="calculator('owner', 1)" />
</td>
<td>
<input type="checkbox" name="group1" value="1" onclick="calculator('group', 1)" />
</td>
<td>
<input type="checkbox" name="other1" value="1" onclick="calculator('other', 1)" />
</td>
</tr>
<tr align="center">
<td colspan="4">
<b>Numerical Code:</b>
<input type="text" name="t_owner" value="" size="1" />
<input type="text" name="t_group" value="" size="1" />
<input type="text" name="t_other" value="" size="1" />
</td>
</tr>
</table>
</form>
So IPB will require you to change some file permissions on several files and folders in order to allow the automatic installer to write to all files and enable administration and user-level access. In order to install IPB using the self-installer, you will need to change file permissions for several files. View the Installation Guide provided by Invision Power for the permissions you need to set on the files. After all, this is only a guide to Invision Power's guide, so I'm not going to waste time entering more information that you can already find in their guide.<br /><br />
So after you've changed those necessary file permissions, refer to this checklist and ensure that you completed each task:<br />
- Uploaded all files in the "upload" folder<br />
- Created a MySQL database<br />
- CHMOD'ing of specific files<br /><br />
Once this is all out of the way, it's time to begin the installation.<br /><br />
<b>Automatic Installer</b><br />
You can access IPB's built-in installer that will build your configuration file and all tables in your database automatically. You must, however, ensure that all information you enter in the fields are correct.<br /><br />
Begin by running the installer directly from your Web browser. Type in <b>http://www.yoursite.com/forum/install/index.php</b>, but ensure that you replace the "www.yoursite.com" with your own URL.<br /><br />
The installer will present you with critical information, and it will also verify that specific files are correctly CHMOD'ed. Click the "Proceed" button to reach the next step.<br /><br />
This page will ask you for your MySQL database information. Enter all required information in the fields using the MySQL database you just created. For the "host" field, enter "localhost". For the "database name" field, enter the name of the database you just created. For the "username" and "password" fields, enter your username and password for your MySQL database. Scroll down further and enter your administration username and password for your Forum. Ensure that you do not forget your login information, or else you'll have to start over from scratch, as you cannot get into the Administration Control Panel. Once you have entered all information correctly, click next to reach the self-install pages.<br /><br />
These next pages that you cycle through will automatically create IPB and write information into your database. After you have reached the last step, you will receive a warning to delete the install directory you used to install IPB. It is highly recommended that you do, because people can write over all your information through it. Go back into your FTP client and delete the installer files, and then go back to your Web browser and click the "proceed" button to launch your board. DO NOT REFRESH THE PAGE.<br /><br />
<b>Administration Control Panel</b><br />
You can now login to your Forum using that login information you just created in the Forum installer. Once you are logged in as the administrator, click the "Admin CP" link found in the navigation bar to login and edit your board's configuration.<br /><br />
Play around and have some fun with your new IPB board!
</td>
</tr>
</table>
</body>
</html>
+13 -19
View File
@@ -1,5 +1,5 @@
<html>
<head><title>Invision Power Board Welcome</title>
<head><title>Invision Power Board Welcome v2</title>
<style type='text/css'>
BODY
@@ -63,8 +63,8 @@ a:hover { color:#333377;text-decoration:underline }
<table align="center" width="750" cellpadding="15" cellspacing="0" bgcolor='#FFFFF' style='border:1px solid #000'>
<tr>
<td align='left'>
<h1>Welcome to Invision Power Board 1.3.1</h1>
Welcome to Invision Power Board, a fast, efficient, scalable community solution written in PHP and using MySQL for database storage.
<h1>Welcome to Invision Power Board 2.0.0 Final</h1>
Welcome to Invision Power Board, a fast, efficient, scalable community solution.
<br />Please follow the relevant section below to get started.
<h2>New Installations</h2>
If you're installing Invision Power Board for the first time, then you simply need to follow the directions in our
@@ -73,20 +73,13 @@ a:hover { color:#333377;text-decoration:underline }
<h2>Updating your IPB</h2>
If you're updating your IPB, then please do the following:
<ul>
<li><strong>UPGRADING FROM IPB 1.1, 1.2 or 1.3(.1)? <a href='Documentation/upgradefromipb_1x.html'>READ ME INSTEAD!</a></strong></li>
<li><a href='readme.html#changes'>Read the changed files section</a> and update the specified files.</li>
<!--run_updater-->
<li>Update your skin files by doing the following.
<ul>
<li>Log into your Admin CP</li>
<li>Click on the Skins & Templates Menu and then "HTML Templates"</li>
<li>If you want to back up the templates first, click on the "Export" link underneath each HTML template set name.</li>
<li>Resynchronise the HTML template database by using the resynchronise tool at the bottom of the page.</li>
<li>Repeat the resynchronization for each skin you have to make sure that your database is fully up-to-date.</li>
<li>Click on "Skin Version Controller" in the left hand menu</li>
<li>Follow the instructions to update your skins to the latest versions</li>
</ul>
</li>
<li>Remove any sm_install.php and upgrade.php files you may have used.
<li>Make sure your "upgrade" folder is up to date by uploading any "upg_*" folders from the zip that are missing in your
installation. For example, if you had the folders "upg_20001" and "upg_20002" and the zip had those folders plus: "upg_20003"
and "upg_20004" - upload "upg_20003" and "upg_20004" from the zip archive to your "upgrade" folder in your IPB installation.
<li>Run the upgrade system by accessing "upgrade/index.php" on your system (for example: www.domain.com/forum/upgrade/index.php)
this will determine which upgrade modules need to be run and will rebuild your templates for you.
</ul>
</td>
</tr>
@@ -104,9 +97,10 @@ a:hover { color:#333377;text-decoration:underline }
<br /><br />
<b>Source Files</b>
<ul>
<li><b>ipb_templates.xml</b> (very important)</li>
<li><b>index.php</b> (very important)</li>
<li><b>admin.php</b> (very important)</li>
<li>sources/calendar.php </li><li>sources/online.php </li><li>sources/search.php </li>
<li>sources/<span style="color:blue">admin</span>/ad_skintools.php </li><li>sources/<span style="color:blue">admin</span>/ad_stylesets.php </li><li>sources/<span style="color:blue">admin</span>/ad_stylesheets.php </li><li>sources/calendar.php </li><li>sources/<span style="color:blue">classes</span>/class_display.php </li><li>sources/functions.php </li><li>sources/<span style="color:blue">lib</span>/boardstats_functions.php </li><li>sources/<span style="color:blue">lib</span>/msg_functions.php </li><li>sources/<span style="color:blue">lib</span>/usercp_functions.php </li><li>sources/<span style="color:blue">misc</span>/print_page.php </li><li>sources/<span style="color:blue">misc</span>/warn.php </li><li>sources/moderate.php </li><li>sources/<span style="color:blue">sql</span>/mysql_queries.php </li><li>sources/topics.php </li><li>sources/usercp.php </li>
</ul>
<b>Language Files</b>
<ul>
@@ -114,7 +108,7 @@ a:hover { color:#333377;text-decoration:underline }
</ul>
<b>Other Files</b>
<ul>
<li>upgrade/upg_20002/* <span style='color:gray;font-size:10px'>(Folder and contents: if folder is not already installed)</span> </li><li>upgrade/upg_20003/* <span style='color:gray;font-size:10px'>(Folder and contents: if folder is not already installed)</span> </li><li>upgrade/upg_20004/* <span style='color:gray;font-size:10px'>(Folder and contents: if folder is not already installed)</span> </li><li>upgrade/upg_20005/* <span style='color:gray;font-size:10px'>(Folder and contents: if folder is not already installed)</span> </li><li>upgrade/upg_20006/* <span style='color:gray;font-size:10px'>(Folder and contents: if folder is not already installed)</span> </li><li>upgrade/upg_20007/* <span style='color:gray;font-size:10px'>(Folder and contents: if folder is not already installed)</span> </li><li>upgrade/upg_20008/* <span style='color:gray;font-size:10px'>(Folder and contents: if folder is not already installed)</span> </li><li>upgrade/upg_20009/* <span style='color:gray;font-size:10px'>(Folder and contents: if folder is not already installed)</span> </li><li>upgrade/upg_20010/* <span style='color:gray;font-size:10px'>(Folder and contents: if folder is not already installed)</span> </li>
</ul>
<br />
<span style='font-size:10px'>* Denotes a new file</span>
@@ -131,7 +125,7 @@ a:hover { color:#333377;text-decoration:underline }
Please note that these bug fixes are only relevant to update from the last release.
<br /><br />
<ul>
<li><a href='http://forums.invisionpower.com/index.php?showtopic=145494'>#145494</a> [ACP] Backslashes removed from style sheets when re-editing</li><li><a href='http://forums.invisionpower.com/index.php?showtopic=145693'>#145693</a> [MSG] Member&#39;s of multiple groups don&#39;t get correct PM quota</li><li><a href='http://forums.invisionpower.com/index.php?showtopic=146457'>#146457</a> [IPB Portal] Cosmetic bugs</li><li><a href='http://forums.invisionpower.com/index.php?showtopic=146497'>#146497</a> Incomplete CACHE_PATH usage</li><li><a href='http://forums.invisionpower.com/index.php?showtopic=146561'>#146561</a> Printable Version: various bugs</li><li><a href='http://forums.invisionpower.com/index.php?showtopic=146639'>#146639</a> Card button missing for guest browsers</li><li><a href='http://forums.invisionpower.com/index.php?showtopic=146642'>#146642</a> Downloadable members card doesn&#39;t have correct CSS</li><li><a href='http://forums.invisionpower.com/index.php?showtopic=146705'>#146705</a> [CALENDAR] Weird behaviour with year dropdown box</li><li><a href='http://forums.invisionpower.com/index.php?showtopic=146821'>#146821</a> BBCode SIZE and COLOUR not giving accurate results due to overriding CSS class</li><li><a href='http://forums.invisionpower.com/index.php?showtopic=146931'>#146931</a> Un-approving last posted in topic doesn&#39;t remove it from forum view</li>
</ul>
</td>
</tr>
-294
View File
@@ -1,294 +0,0 @@
<?php
class skin_boards {
function whoschatting_show($total, $names, $link, $txt) {
global $ibforums;
return <<<EOF
<tr>
<td class='pformstrip' colspan='2'>{$total} {$ibforums->lang['whoschatting_total']} <a href='$link'>{$ibforums->lang['whoschatting_loadchat']}</a></td>
</tr>
<tr>
<td width="5%" class='row2'><{F_ACTIVE}></td>
<td class='row4' width='95%'>
{$names}<div class='desc' style='margin-top:5px'>$txt</div>
</td>
</tr>
EOF;
}
function whoschatting_empty($link) {
global $ibforums;
return <<<EOF
<tr>
<td class='pformstrip' colspan='2'>{$ibforums->lang['whoschatting_total']} <a href='$link'>{$ibforums->lang['whoschatting_loadchat']}</a></td>
</tr>
<tr>
<td width="5%" class='row2'><{F_ACTIVE}></td>
<td class='row4' width='95%'>
<i>{$ibforums->lang['whoschatting_none']}</i>
</td>
</tr>
EOF;
}
function whoschatting_inline_link() {
global $ibforums;
return <<<EOF
{$ibforums->base_url}act=chat
EOF;
}
function whoschatting_popup_link() {
global $ibforums;
return <<<EOF
javascript:chat_pop({$ibforums->vars['chat_width']}, {$ibforums->vars['chat_height']});
EOF;
}
function active_list_sep() {
global $ibforums;
return <<<EOF
,
EOF;
}
function stats_header() {
global $ibforums;
return <<<EOF
<!-- Board Stats -->
<!--IBF.QUICK_LOG_IN-->
<br />
<div align='center'>
<a href='{$ibforums->base_url}act=Stats&amp;CODE=leaders'>{$ibforums->lang['sm_forum_leaders']}</a> |
<a href='{$ibforums->base_url}act=Search&amp;CODE=getactive'>{$ibforums->lang['sm_todays_posts']}</a> |
<a href='{$ibforums->base_url}act=Stats'>{$ibforums->lang['sm_today_posters']}</a> |
<a href='{$ibforums->base_url}act=Members&amp;max_results=10&amp;sort_key=posts&amp;sort_order=desc'>{$ibforums->lang['sm_all_posters']}</a>
</div>
<br />
<div class="tableborder">
<div class="maintitle">{$ibforums->lang['board_stats']}</div>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
EOF;
}
function ActiveUsers($active) {
global $ibforums;
return <<<EOF
<tr>
<td class='pformstrip' colspan='2'>$active[TOTAL] {$ibforums->lang['active_users']}</td>
</tr>
<tr>
<td width="5%" class='row2'><{F_ACTIVE}></td>
<td class='row4' 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']}
<div class='thin'>{$active[NAMES]}</div>
{$active['links']}
</td>
</tr>
<!--IBF.WHOSCHATTING-->
EOF;
}
function active_user_links() {
global $ibforums;
return <<<EOF
{$ibforums->lang['oul_show_more']} <a href='{$ibforums->base_url}act=Online&amp;CODE=listall&amp;sort_key=click'>{$ibforums->lang['oul_click']}</a>, <a href='{$ibforums->base_url}act=Online&amp;CODE=listall&amp;sort_key=name&amp;sort_order=asc&amp;show_mem=reg'>{$ibforums->lang['oul_name']}</a>
EOF;
}
function ShowStats($text) {
global $ibforums;
return <<<EOF
<tr>
<td class='pformstrip' colspan='2'>{$ibforums->lang['board_stats']}</td>
</tr>
<tr>
<td class='row2' width='5%' valign='middle'><{F_STATS}></td>
<td class='row4' 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 class='pformstrip' colspan='2'>{$ibforums->lang['birthday_header']}</td>
</tr>
<tr>
<td class='row2' width='5%' valign='middle'><{F_ACTIVE}></td>
<td class='row4' width='95%'><b>$total</b> $birth_lang<br />$birthusers</td>
</tr>
EOF;
}
function calendar_events($events = "") {
global $ibforums;
return <<<EOF
<tr>
<td class='pformstrip' colspan='2'>{$ibforums->lang['calender_f_title']}</td>
</tr>
<tr>
<td class='row2' width='5%' valign='middle'><{F_ACTIVE}></td>
<td class='row4' width='95%'>$events</td>
</tr>
EOF;
}
function stats_footer() {
global $ibforums;
return <<<EOF
</table>
</div>
<!-- Board Stats -->
EOF;
}
function bottom_links() {
global $ibforums;
return <<<EOF
<br />
<div align='right'><a href="{$ibforums->base_url}act=Login&amp;CODE=06">{$ibforums->lang['d_delete_cookies']}</a> &middot; <a href="{$ibforums->base_url}act=Login&amp;CODE=05">{$ibforums->lang['d_post_read']}</a></div>
EOF;
}
function CatHeader_Expanded($Data) {
global $ibforums;
return <<<EOF
<div class="tableborder">
<div class='maintitle' align='left'><{CAT_IMG}>&nbsp;<a href="{$ibforums->base_url}c={$Data['id']}">{$Data['name']}</a></div>
<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<th align="center" width="2%" class='titlemedium'><img src="{$ibforums->vars['img_url']}/spacer.gif" alt="" width="28" height="1" /></th>
<th align="left" width="59%" class='titlemedium'>{$ibforums->lang['cat_name']}</th>
<th align="center" width="7%" class='titlemedium'>{$ibforums->lang['topics']}</th>
<th align="center" width="7%" class='titlemedium'>{$ibforums->lang['replies']}</th>
<th align="left" width="25%" class='titlemedium'>{$ibforums->lang['last_post_info']}</th>
</tr>
EOF;
}
function subheader() {
global $ibforums;
return <<<EOF
<br />
<div class="tableborder">
<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td align="center" class='titlemedium'><img src="{$ibforums->vars['img_url']}/spacer.gif" alt="" width="28" height="1" /></td>
<th align='left' width="59%" class='titlemedium'>{$ibforums->lang['cat_name']}</th>
<th align="center" width="7%" class='titlemedium'>{$ibforums->lang['topics']}</th>
<th align="center" width="7%" class='titlemedium'>{$ibforums->lang['replies']}</th>
<th align='left' width="27%" class='titlemedium'>{$ibforums->lang['last_post_info']}</th>
</tr>
EOF;
}
function end_this_cat() {
global $ibforums;
return <<<EOF
<tr>
<td class='darkrow2' colspan="5">&nbsp;</td>
</tr>
</table>
</div>
<br />
EOF;
}
function end_all_cats() {
global $ibforums;
return <<<EOF
EOF;
}
function newslink( $fid="", $title="", $tid="" ) {
global $ibforums;
return <<<EOF
<b>{$ibforums->vars['board_name']} {$ibforums->lang['newslink']} <a href='{$ibforums->base_url}showtopic=$tid'>$title</a></b><br />
EOF;
}
function PageTop($lastvisit) {
global $ibforums;
return <<<EOF
<div align='left' style='text-align:left;padding-bottom:4px'>
<!-- IBF.NEWSLINK -->{$ibforums->lang['welcome_back_text']} $lastvisit
</div>
EOF;
}
function quick_log_in() {
global $ibforums;
return <<<EOF
<form style='display:inline' action="{$ibforums->base_url}act=Login&amp;CODE=01&amp;CookieDate=1" method="post">
<div align='right'><strong>{$ibforums->lang['qli_title']}</strong>
<input type="text" class="forminput" size="10" name="UserName" onfocus="this.value=''" value="{$ibforums->lang['qli_name']}" />
<input type='password' class='forminput' size='10' name='PassWord' onfocus="this.value=''" value='ibfrules' />
<input type='submit' class='forminput' value='{$ibforums->lang['qli_go']}' />
</div>
</form>
EOF;
}
function forum_img_with_link($img, $id) {
global $ibforums;
return <<<EOF
<a href='{$ibforums->base_url}act=Login&amp;CODE=04&amp;f={$id}' title='{$ibforums->lang['bi_markread']}'>{$img}</a>
EOF;
}
function subforum_img_with_link($img, $id) {
global $ibforums;
return <<<EOF
<a href='{$ibforums->base_url}act=Login&amp;CODE=04&amp;f={$id}&amp;i=1' title='{$ibforums->lang['bi_markallread']}'>{$img}</a>
EOF;
}
function ForumRow($info) {
global $ibforums;
return <<<EOF
<tr>
<td class="row4" align="center">{$info['img_new_post']}</td>
<td class="row4"><b><a href="{$ibforums->base_url}showforum={$info['id']}">{$info['name']}</a></b><br /><span class='desc'>{$info['description']}<br />{$info['moderator']}</span></td>
<td class="row2" align="center">{$info['topics']}</td>
<td class="row2" align="center">{$info['posts']}</td>
<td class="row2" nowrap="nowrap">{$info['last_post']}<br />{$ibforums->lang['in']}:&nbsp;{$info['last_unread']}{$info['last_topic']}<br />{$ibforums->lang['by']}: {$info['last_poster']}</td>
</tr>
EOF;
}
function forum_redirect_row($info) {
global $ibforums;
return <<<EOF
<!-- Forum {$info['id']} entry -->
<tr>
<td class="row4" align="center"><{BR_REDIRECT}></td>
<td class="row4"><b><a href="{$ibforums->base_url}showforum={$info['id']}" {$info['redirect_target']}>{$info['name']}</a></b><br /><span class='desc'>{$info['description']}</span></td>
<td class="row2" align="center">-</td>
<td class="row2" align="center">-</td>
<td class="row2">{$ibforums->lang['rd_hits']}: {$info['redirect_hits']}</td>
</tr>
<!-- End of Forum {$info['id']} entry -->
EOF;
}
function forumrow_lastunread_link($fid, $tid) {
global $ibforums;
return <<<EOF
<a href='{$ibforums->base_url}showtopic=$tid&amp;view=getlastpost' title='{$ibforums->lang['tt_golast']}'><{LAST_POST}></a>
EOF;
}
}
?>
-154
View File
@@ -1,154 +0,0 @@
<?php
class skin_buddy {
function buddy_js() {
global $ibforums;
return <<<EOF
<script language='javascript' type="text/javascript">
<!--
function redirect_to(where, closewin)
{
opener.location= '$ibforums->base_url' + where;
if (closewin == 1)
{
self.close();
}
}
function check_form(helpform)
{
opener.name = "ibfmain";
if (helpform == 1) {
document.theForm2.target = 'ibfmain';
} else {
document.theForm.target = 'ibfmain';
}
return true;
}
function shrink()
{
window.resizeTo('200','75');
}
function expand()
{
window.resizeTo('200','450');
}
//-->
</script>
EOF;
}
function build_away_msg() {
global $ibforums;
return <<<EOF
{$ibforums->lang['new_posts']}
<br />
{$ibforums->lang['my_replies']}
EOF;
}
function append_view($url="") {
global $ibforums;
return <<<EOF
( <b><a href='javascript:redirect_to("$url", 0)'>{$ibforums->lang['view_link']}</a></b> )
EOF;
}
function main($away_text="") {
global $ibforums;
return <<<EOF
<div id="ucpcontent">
<div class="titlemedium" align="center">{$ibforums->lang['page_title']}&nbsp;&nbsp;&nbsp;[ <a href='javascript:shrink()' style='text-decoration:none'>-</a>&nbsp;&nbsp;<a href='javascript:expand()' style='text-decoration:none'>+</a> ]</div>
<div class="pformstrip" align="center">{$ibforums->lang['while_away']}</div>
<p>{$away_text}</p>
<div class="pformstrip" align="center">{$ibforums->lang['show_me']}</div>
<p>
&middot;&nbsp;<a href='javascript:redirect_to("&amp;act=Stats&amp;CODE=leaders",0)'>{$ibforums->lang['sm_forum_leaders']}</a>
<br />&middot;&nbsp;<a href='javascript:redirect_to("&amp;act=Search&amp;CODE=getactive",0)'>{$ibforums->lang['sm_todays_posts']}</a>
<br />&middot;&nbsp;<a href='javascript:redirect_to("&amp;act=Stats",0)'>{$ibforums->lang['sm_today_posters']}</a>
<br />&middot;&nbsp;<a href='javascript:redirect_to("&amp;act=Members&amp;max_results=10&amp;sort_key=posts&amp;sort_order=desc",0)'>{$ibforums->lang['sm_all_posters']}</a>
<br />&middot;&nbsp;<a href='javascript:redirect_to("&amp;act=Search&amp;CODE=lastten",0)'>{$ibforums->lang['sm_my_last_posts']}</a>
</p>
<div class="pformstrip" align="center">{$ibforums->lang['search_forums']}</div>
<div align="center">
<p>
<form action="{$ibforums->base_url}act=Search&amp;CODE=01&amp;forums=all&amp;cat_forum=forum&amp;joinname=1&amp;search_in=posts&amp;result_type=topics" method="post" name='theForm' onsubmit='return check_form();'>
<input type='text' size='17' name='keywords' class='forminput' />&nbsp;<input type='submit' value='{$ibforums->lang['go']}' />
</form>
</p>
</div>
<div class="pformstrip" align="center">{$ibforums->lang['search_help']}</div>
<div align="center">
<p>
<form action="{$ibforums->base_url}act=Help&amp;CODE=02" method="post" name='theForm2' onsubmit='return check_form(1);'>
<input type='text' size='17' name='search_q' class='forminput' />&nbsp;<input type='submit' value='{$ibforums->lang['go']}' />
</form>
</p>
</div>
</div>
<div align="center"><!--CLOSE.LINK--></div>
EOF;
}
function login() {
global $ibforums;
return <<<EOF
<form action="{$ibforums->base_url}act=Login&amp;CODE=01&amp;CookieDate=1&amp;buddy=1" method="post" name='theForm' onSubmit='return check_form();'>
<div class='tableborder'>
<div class='maintitle'>{$ibforums->lang['page_title']}</div>
<div class='pformstrip'>{$ibforums->lang['log_in_needed']}</div>
<div class='tablepad'>
{$ibforums->lang['no_guests']}
<br /><br />
<center>
<b>{$ibforums->lang['log_in']}</b>
<br /><br />
{$ibforums->lang['lin_name']}<br /><input type='text' name='UserName' class='forminput'>
<br />
{$ibforums->lang['lin_pass']}<br /><input type='password' name='PassWord' class='forminput'>
<br />
<input type='submit' value='{$ibforums->lang['log_in']}' class='forminput'>
</center>
<br /><br />
{$ibforums->lang['reg_text']}
<br /><br />
<center><a href='javascript:redirect_to("&amp;act=Reg", 1);'>{$ibforums->lang['reg_link']}</a></center>
</div>
</div>
<!--CLOSE.LINK-->
</form>
EOF;
}
function closelink() {
global $ibforums;
return <<<EOF
<div align="center">
[ <a href="javascript:window.location=window.location;">{$ibforums->lang['refresh']}</a> ] | [ <a href='javascript:self.close();'>{$ibforums->lang['close_win']}</a> ]
</div>
EOF;
}
}
?>
-444
View File
@@ -1,444 +0,0 @@
<?php
class skin_calendar {
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');
}
function changeDiv(id, method)
{
var itm = null;
if (document.getElementById) {
itm = document.getElementById(id);
} else if (document.all) {
itm = document.all[id];
} else if (document.layers) {
itm = document.layers[id];
}
if (itm.style)
{
if ( method == 'show' )
{
itm.style.display = "";
}
else
{
itm.style.display = "none";
}
}
else
{
itm.visibility = "show";
}
}
function selecttype()
{
if ( document.REPLIER.eventtype[1].checked == true )
{
// Ranged date...
changeDiv( 'rangeshow', 'show' );
changeDiv( 'rangehide', 'none' );
changeDiv( 'recurshow', 'none' );
changeDiv( 'recurhide', 'show' );
}
else if ( document.REPLIER.eventtype[2].checked == true )
{
// Repeating event
changeDiv( 'rangeshow', 'none' );
changeDiv( 'rangehide', 'show' );
changeDiv( 'recurshow', 'show' );
changeDiv( 'recurhide', 'none' );
}
else
{
changeDiv( 'rangeshow', 'none' );
changeDiv( 'rangehide', 'show' );
changeDiv( 'recurshow', 'none' );
changeDiv( 'recurhide', 'show' );
}
}
function changeColour(BOXid, val)
{
document.all.BOXid.style.backgroundColor = val;
}
//-->
</script>
<table class='tableborder' cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class='maintitle' colspan="2">&nbsp;&nbsp;$data</td>
</tr>
EOF;
}
function calendar_end_form($data) {
global $ibforums;
return <<<EOF
<tr>
<td class='pformstrip' align='center' style='text-align:center' colspan="2"><input type="submit" name="submit" value="$data" tabindex='4' class='forminput'></td>
</tr>
</table>
</form>
<br />
<br clear="all" />
EOF;
}
function calendar_start_form() {
global $ibforums;
return <<<EOF
<form action='{$ibforums->base_url}act=calendar&amp;code=addnewevent' method='post' name='REPLIER' onSubmit='return ValidateForm()'>
EOF;
}
function calendar_start_edit_form($eventid) {
global $ibforums;
return <<<EOF
<form action='{$ibforums->base_url}act=calendar&amp;code=doedit&amp;eventid=$eventid' method='post' name='REPLIER' onsubmit='return ValidateForm()'>
EOF;
}
function calendar_event_title($data="") {
global $ibforums;
return <<<EOF
<tr>
<td class="pformleft"><strong>{$ibforums->lang['calendar_title']}</strong></td>
<td class="pformright"><input type='text' size='40' maxlength='40' name='event_title' class='forminput' value='$data' /></td>
</tr>
EOF;
}
function calendar_delete_box() {
global $ibforums;
return <<<EOF
<tr>
<td class="row1" width="100%" colspan='2' style='height:40px;border:1px solid black'><input type='checkbox' name='event_delete' value='1'>&nbsp;{$ibforums->lang['calendar_delete_box']}</td>
</tr>
EOF;
}
function calendar_choose_date($days, $months, $years, $end_days, $end_months, $end_years, $recur_days, $recur_unit, $div, $checked, $cols, $recend) {
global $ibforums;
return <<<EOF
<tr>
<td class="pformleft" valign='top'><strong>{$ibforums->lang['calendar_event_date']}</strong></td>
<td class="pformright">
<table cellpadding='3'>
<tr>
<td><input type='radio' name='eventtype' id='single' onclick='selecttype();' class='radiobutton' value='single' {$checked['normal']}><strong><label for='single'>{$ibforums->lang['fv_single']}</label></strong></td>
<td><select name='e_day' class='forminput'>$days</select>&nbsp;&nbsp;<select name='e_month' class='forminput'>$months</select>&nbsp;&nbsp;<select name='e_year' class='forminput'>$years</select></td>
</tr>
<tr>
<td><input type='radio' name='eventtype' id='range' onclick='selecttype();' class='radiobutton' value='range'{$checked['range']}><strong><label for='range'>{$ibforums->lang['fv_range']}</label></strong></td>
<td>
<div id='rangeshow' style='display:{$div['range_on']}'>
<table cellpadding='3'>
<tr>
<td><strong>{$ibforums->lang['fv_range_ends']}</strong></td>
<td><select name='end_day' class='forminput'>$end_days</select>&nbsp;&nbsp;<select name='end_month' class='forminput'>$end_months</select>&nbsp;&nbsp;<select name='end_year' class='forminput'>$end_years</select></td>
</tr>
<tr>
<td><strong>{$ibforums->lang['fv_bgcolor']}</strong></td>
<td>{$cols['bg']} <input type='text' name='style' size='5' readonly='readonly' id='stylebg' style='border:2px inset black;' /></td>
</tr>
<tr>
<td><strong>{$ibforums->lang['fv_font']}</strong></td>
<td>{$cols['ft']} <input type='text' name='style2' size='5' readonly='readonly' id='styleft' style='border:2px inset black;' /></td>
</tr>
</table>
</div>
<div id='rangehide' style='display:{$div['range_off']}'>{$ibforums->lang['fv_hidden']}</div>
</td>
</tr>
<tr>
<td><input type='radio' name='eventtype' id='recur' onclick='selecttype();' class='radiobutton' value='recur' {$checked['recur']}><strong><label for='recur'>{$ibforums->lang['fv_recur']}</label></strong></td>
<td>
<div id='recurshow' style='display:{$div['recur_on']}'>
<strong>{$ibforums->lang['fv_recur_every']}</strong> <select name='recur_unit' class='forminput'>$recur_unit</select>
<strong>{$ibforums->lang['fv_until']}</strong> <select name='recend_day' class='forminput'>{$recend['d']}</select><select name='recend_month' class='forminput'>{$recend['m']}</select>&nbsp;&nbsp;<select name='recend_year' class='forminput'>{$recend['y']}</select>
</div>
<div id='recurhide' style='display:{$div['recur_off']}'>{$ibforums->lang['fv_hidden']}</div>
</td>
</tr>
</table>
</td>
</tr>
EOF;
}
function calendar_event_type($pub_select="", $priv_select="") {
global $ibforums;
return <<<EOF
<tr>
<td class="pformleft"><strong>{$ibforums->lang['calendar_event_type']}</strong></td>
<td class="pformright"><select name='e_type' class='forminput'><option value='public'$pub_select>{$ibforums->lang['calendar_type_public']}</option><option value='private'$priv_select>{$ibforums->lang['calendar_type_private']}</option></select></td>
</tr>
EOF;
}
function calendar_admin_group_box($groups) {
global $ibforums;
return <<<EOF
<tr>
<td class="pformleft">{$ibforums->lang['calendar_group_filter']}</td>
<td class="pformright"><select name='e_groups[]' class='forminput' size='5' multiple>$groups</select></td>
</tr>
EOF;
}
function cal_edit_del_button($id) {
global $ibforums;
return <<<HTML
<div align='right'><a href='javascript:deleteEvent($id)'><{P_DELETE}></a>&nbsp;<a href='{$ibforums->base_url}act=calendar&amp;code=edit&amp;eventid=$id'><{P_EDIT}></a></div>
HTML;
}
function cal_show_event($event, $member, $event_type, $edit_button="", $type, $date_ends="") {
global $ibforums;
return <<<HTML
<div class='pformstrip'>{$event['title']} ($event_type)</div>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td class='row4' width='1%' valign='middle' nowrap='nowrap'><span class='normalname'><a href='{$ibforums->base_url}showuser={$member['id']}'>{$member['name']}</a></span></td>
<td class='row4' width='99%'><div align='left' style='float:left;width:auto;padding-top:4px;padding-bottom:4px;'><strong>{$ibforums->lang['event_date']} {$event['mday']} {$event['month_text']} {$event['year']}</strong> $date_ends ($type)</div>$edit_button</td>
</tr>
<tr>
<td valign='top' class='row1' nowrap='nowrap'>{$member['avatar']}<span class='postdetails'><br />{$ibforums->lang['group']} {$member['g_title']}<br />{$ibforums->lang['posts']} {$member['posts']}<br />{$ibforums->lang['joined']} {$member['joined']}</span></td>
<td valign='top' class='row1'><span class='postcolor'>{$event['event_text']}</span></td>
</tr>
</table>
HTML;
}
function cal_page_events_start() {
global $ibforums;
return <<<HTML
<script type='text/javascript'>
function deleteEvent(id) {
if (confirm('{$ibforums->lang['js_del_1']}')) {
window.location.href = "{$ibforums->base_url}act=calendar&code=delete&e=" + id;
}
else {
alert ('{$ibforums->lang['js_del_2']}');
}
}
</script>
<div class='tableborder'>
<div class='maintitle'>{$ibforums->lang['cal_title_events']}</div>
HTML;
}
function cal_page_events_end() {
global $ibforums;
return <<<HTML
<div align='center' class='pformstrip'>&lt;&lt; <a href='{$ibforums->base_url}act=calendar&amp;d={$ibforums->input['d']}&amp;m={$ibforums->input['m']}&amp;y={$ibforums->input['y']}'>{$ibforums->lang['back']}</a></div>
</div>
HTML;
}
function cal_birthday_start() {
global $ibforums;
return <<<HTML
<div class='pformstrip'>{$ibforums->lang['cal_birthdays']}</div>
<div class='tablepad'>
<ul>
HTML;
}
function cal_birthday_entry($uid, $uname, $age="") {
global $ibforums;
return <<<HTML
<li><a href='{$ibforums->base_url}showuser=$uid'>$uname</a> ($age)</li>
HTML;
}
function cal_birthday_end() {
global $ibforums;
return <<<HTML
</ul>
</div>
HTML;
}
function cal_main_content($month, $year, $prev, $next) {
global $ibforums;
return <<<HTML
<form action='{$ibforums->base_url}act=calendar' method='post'>
<div align='left' id='calendarname'><a href='{$ibforums->base_url}act=calendar&amp;code=newevent' title='{$ibforums->lang['post_new_event']}'><{CAL_NEWEVENT}></a> <span style='position:relative;top:3px'>$month $year</span></div>
<br />
<div class='tableborder'>
<div class='maintitle'>
<div align='center'>
&lt; <a href='{$ibforums->base_url}act=calendar&amp;m={$prev['month_id']}&amp;y={$prev['year_id']}'>{$prev['month_name']} {$prev['year_id']}</a>
&middot; {$ibforums->lang['table_title']} &middot;
<a href='{$ibforums->base_url}act=calendar&amp;m={$next['month_id']}&amp;y={$next['year_id']}'>{$next['month_name']} {$next['year_id']}</a> &gt;
</div>
</div>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<!--IBF.DAYS_TITLE_ROW-->
<!--IBF.DAYS_CONTENT-->
</tr>
</table>
</div>
<br />
<div class='tableborder'>
<div class='pformstrip'>
<div align='left' style='float:left;width:40%'><a href='{$ibforums->base_url}act=calendar&amp;code=newevent'>{$ibforums->lang['post_new_event']}</a></div>
<div align='right'><strong>{$ibforums->lang['month_jump']}</strong>&nbsp;<select name='m' class='forminput'><!--IBF.MONTH_BOX--></select>&nbsp;<select name='y' class='forminput'><!--IBF.YEAR_BOX--></select>&nbsp;&nbsp;<input type='submit' value='{$ibforums->lang['form_submit_show']}' class='forminput' /></div>
</div>
</div>
</form>
HTML;
}
function cal_day_bit($day) {
global $ibforums;
return <<<HTML
<td width='14%' class='pformstrip'>$day</td>
HTML;
}
function cal_new_row() {
global $ibforums;
return <<<HTML
</tr>
<!-- NEW ROW-->
<tr>
HTML;
}
function cal_blank_cell() {
global $ibforums;
return <<<HTML
<td style='height:100px' class='darkrow1'><br /></td>
HTML;
}
function cal_date_cell($month_day, $events="") {
global $ibforums;
return <<<HTML
<td style='height:100px' valign='top' class='row3'>
<div class='caldate'>$month_day</div>$events
</td>
HTML;
}
function cal_date_cell_today($month_day, $events="") {
global $ibforums;
return <<<HTML
<td style='height:100px;border:2px;border-style:outset' valign='top' class='row1'>
<div class='caldate'>$month_day</div>
$events
</td>
HTML;
}
function cal_events_start() {
global $ibforums;
return <<<HTML
<div style='padding:2px'>
HTML;
}
function cal_events_wrap($link, $text) {
global $ibforums;
return <<<HTML
&middot;<strong><a href='{$ibforums->base_url}act=calendar&amp;$link'>$text</a></strong><br />
HTML;
}
function cal_events_wrap_range($link, $text, $ft="", $bg="") {
global $ibforums;
return <<<HTML
<div style='background-color:$bg;color:$ft;padding:3px;border-top:3px outset $bg;border-bottom:3px outset $bg;'><a href='{$ibforums->base_url}act=calendar&amp;$link' style='color:$ft'>$text</a></div>
HTML;
}
function cal_events_wrap_recurring($link, $text) {
global $ibforums;
return <<<HTML
&middot; <a href='{$ibforums->base_url}act=calendar&amp;$link' title='{$ibforums->lang['tbt_recur']}'>$text</a><br />
HTML;
}
function cal_events_end() {
global $ibforums;
return <<<HTML
</div>
HTML;
}
}
?>
-436
View File
@@ -1,436 +0,0 @@
<?php
class skin_csite {
function rules_link($url="", $title="")
{
global $ibforums;
return <<<EOF
&nbsp;&middot; <a href="$url">$title</a>
EOF;
}
function show_chat_link_inline()
{
global $ibforums;
return <<<EOF
&nbsp; &nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/atb_chat.gif" border="0" alt="" />&nbsp;<a href='{$ibforums->base_url}act=chat'>{$ibforums->lang['live_chat']}</a>
EOF;
}
function show_chat_link_popup()
{
global $ibforums;
return <<<EOF
&nbsp; &nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/atb_chat.gif" border="0" alt="" />&nbsp;<a href="javascript:chat_pop();">{$ibforums->lang['live_chat']}</a>
EOF;
}
function csite_javascript() {
global $ibforums;
return <<<EOF
<script type="text/javascript">
<!--
function buddy_pop() { window.open('{$ibforums->js_base_url}act=buddy','BrowserBuddy','width=200,height=500,resizable=yes,scrollbars=yes'); }
function chat_pop() { window.open('{$ibforums->js_base_url}act=chat&pop=1','Chat','width={$ibforums->vars['chat_width']},height={$ibforums->vars['chat_height']},resizable=yes,scrollbars=yes'); }
//-->
</script>
EOF;
}
function csite_css_inline($css="") {
global $ibforums;
return <<<EOF
<style type='text/css'>
{$css}
</style>
EOF;
}
function csite_sep_char() {
global $ibforums;
return <<<EOF
,
EOF;
}
function csite_css_external($css, $img) {
global $ibforums;
return <<<EOF
<style type='text/css' media="all">
@import url({$ibforums->vars['board_url']}/css.php?d={$css}_{$img}.css);
</style>
EOF;
}
function tmpl_links_wrap($link="", $name="") {
global $ibforums;
return <<<EOF
&middot; <a href='$link' style='text-decoration:none'>$name</a><br />
EOF;
}
function tmpl_welcomebox_member($pm_string="",$last_visit="", $name="", $return="") {
global $ibforums;
return <<<EOF
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}> {$ibforums->lang['wbox_welcome']}, $name</div>
<div class='tablepad'>
<span class='desc'>$last_visit</span>
<br />&middot; <a href="{$ibforums->base_url}act=Search&amp;CODE=getnew" style='text-decoration:none'>{$ibforums->lang['wbox_getnewposts']}</a>
<br />&middot; <a href="{$ibforums->base_url}act=UserCP" style='text-decoration:none'>{$ibforums->lang['wbox_mycontrols']}</a>
<br />&middot; <a href="javascript:buddy_pop();" style='text-decoration:none'>{$ibforums->lang['wbox_myassistant']}</a>
<br />&middot; <a href="{$ibforums->base_url}act=Login&amp;CODE=03&amp;return=$return" style='text-decoration:none'>{$ibforums->lang['wbox_logout']}</a>
</div>
</div>
<br />
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}> <a href='{$ibforums->base_url}&act=Msg'>{$ibforums->lang['pm_title']}</a></div>
<div class='tablepad'><span class='desc'>$pm_string</span></div>
</div>
EOF;
}
function tmpl_welcomebox_guest($top_string, $return) {
global $ibforums;
return <<<EOF
<form action="{$ibforums->base_url}act=Login&amp;CODE=01&amp;CookieDate=1&amp;return=$return" method="post">
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}> {$ibforums->lang['wbox_welcome']}, {$ibforums->lang['wbox_guest_name']}</div>
<div class='tablepad'>
<span class='desc'>$top_string</span>
<br /><br />&middot; <strong><a href="{$ibforums->base_url}act=Search&amp;CODE=getactive" style='text-decoration:none'>{$ibforums->lang['wbox_getnewposts']}</a></strong>
<br /><br /><span class='desc'>{$ibforums->lang['wbox_g_username']}</span>
<br /><input type='text' class='textinput' size='15' name='UserName' />
<br /><span class='desc'>{$ibforums->lang['wbox_g_password']}</span>
<br /><input type='password' class='textinput' size='15' name='PassWord' />
<br /><input type='submit' class='textinput' value='{$ibforums->lang['wbox_g_login']}' />
</div>
</div>
</form>
EOF;
}
function tmpl_search() {
global $ibforums;
return <<<EOF
<br />
<form action='{$ibforums->base_url}act=Search&amp;CODE=01&amp;forums=all' method='post' name='search'>
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}> {$ibforums->lang['search_title']}</div>
<div class='tablepad' align='center'>
<input type='text' name='keywords' value='' size='10' class='textinput' /><input type='submit' value='{$ibforums->lang['search_go']}' />
<br /><a href='{$ibforums->base_url}act=Search&amp;mode=adv'>{$ibforums->lang['search_advanced']}</a>
</div>
</div>
</form>
EOF;
}
function tmpl_sitenav($links) {
global $ibforums;
return <<<EOF
<br />
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}> {$ibforums->lang['links_title']}</div>
<div class='tablepad'>
$links
</div>
</div>
EOF;
}
function tmpl_affiliates($links) {
global $ibforums;
return <<<EOF
<br />
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}> {$ibforums->lang['aff_title']}</div>
<div class='tablepad'>
$links
</div>
</div>
EOF;
}
function tmpl_changeskin($select) {
global $ibforums;
return <<<EOF
<br />
<form action="{$ibforums->vars['dynamiclite']}&amp;s={$ibforums->session_id}&amp;setskin=1" method="post">
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}> {$ibforums->lang['cskin_title']}</div>
<div class='tablepad' align="center">
<span class='desc'>{$ibforums->lang['cskin_text']}</span>
<br />
$select
<br />
<input type='submit' value='{$ibforums->lang['cskin_go']}' />
</div>
</div>
</form>
EOF;
}
function tmpl_onlineusers($breakdown, $split, $names) {
global $ibforums;
return <<<EOF
<br />
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}> <a href="{$ibforums->base_url}act=Online">{$ibforums->lang['online_title']}</a></div>
<div class='tablepad'>
<span class='desc'>$breakdown<br />$split<br />$names</span>
</div>
</div>
EOF;
}
function tmpl_poll_header($question,$tid) {
global $ibforums;
return <<<EOF
<br />
<form action="{$ibforums->base_url}act=Poll&amp;t=$tid" method="post">
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}> <a href="{$ibforums->base_url}showtopic=$tid">{$ibforums->lang['poll_title']}</a></div>
<div class='pformstrip'>$question</div>
<div class='tablepad'>
EOF;
}
function tmpl_poll_result_row($votes, $id, $choice, $percent, $width) {
global $ibforums;
return <<<EOF
$choice
<br /><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='' />
<br />
EOF;
}
function tmpl_poll_choice_row($id, $choice) {
global $ibforums;
return <<<EOF
<input type='radio' name='poll_vote' value='$id' class='radiobutton' />&nbsp;<strong>$choice</strong>
<br />
EOF;
}
function tmpl_poll_footer($vote, $total, $tid) {
global $ibforums;
return <<<EOF
<span class='desc'>
&middot; <strong>$total</strong>
<br />&middot; $vote
<br />&middot; <a href="{$ibforums->base_url}showtopic=$tid">{$ibforums->lang['poll_discuss']}</a>
</span>
</div>
</div>
</form>
EOF;
}
function tmpl_poll_vote() {
global $ibforums;
return <<<EOF
<input type='submit' value='{$ibforums->lang['poll_vote']}' class='codebuttons' />
EOF;
}
function tmpl_latestposts($posts) {
global $ibforums;
return <<<EOF
<br />
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}> {$ibforums->lang['discuss_title']}</div>
$posts
</div>
EOF;
}
function tmpl_topic_row($tid, $title, $posts, $views, $mid, $mname, $date) {
global $ibforums;
return <<<EOF
<div class='row2' style='padding:3px'><strong><a href='{$ibforums->base_url}showtopic=$tid' style='text-decoration:none;font-size:10px'>$title</a></strong></div>
<div class='desc' style='padding:3px'>
<a href='{$ibforums->base_url}showuser=$mid' style='text-decoration:none'>$mname</a> &#064; $date
<br />{$ibforums->lang['recent_read']}: $views &nbsp; {$ibforums->lang['recent_comments']}: $posts
</div>
EOF;
}
function tmpl_recentarticles($articles) {
global $ibforums;
return <<<EOF
<br />
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}> {$ibforums->lang['recent_title']}</div>
$articles
</div>
EOF;
}
function tmpl_comment_link($tid) {
global $ibforums;
return <<<EOF
<a href="{$ibforums->base_url}showtopic=$tid&amp;view=getlastpost">{$ibforums->lang['article_comment']}</a>
EOF;
}
function tmpl_readmore_link($tid) {
global $ibforums;
return <<<EOF
...<a href="{$ibforums->base_url}showtopic=$tid">{$ibforums->lang['article_readmore']}</a>
EOF;
}
function tmpl_articles($articles) {
global $ibforums;
return <<<EOF
$articles
EOF;
}
function tmpl_skin_select_top() {
global $ibforums;
return <<<EOF
<select name="skinid" class="forminput" onchange="window.location='{$ibforums->vars['dynamiclite']}&s={$ibforums->session_id}&setskin=1&skinid=' + this.value">
EOF;
}
function tmpl_skin_select_row($sid, $name, $used) {
global $ibforums;
return <<<EOF
<option value="$sid" $used>$name</option>
EOF;
}
function tmpl_skin_select_bottom() {
global $ibforums;
return <<<EOF
</select>
EOF;
}
function tmpl_articles_row($entry, $bottom_string, $read_more, $top_string) {
global $ibforums;
return <<<EOF
<table cellspacing="0" width="100%" class='tableborder'>
<tr>
<td class='maintitle' colspan="2"><img src="{$ibforums->vars['img_url']}/cs_page.gif" alt="" border="0" />&nbsp;<a href="{$ibforums->base_url}showtopic={$entry['tid']}">{$entry['title']}</a></td>
</tr>
<tr>
<td class='row2' colspan="2" style='padding:5px'>$top_string</td>
</tr>
<tr>
<td class="post1" width="5%" valign="top" style="padding:5px">{$entry['avatar']}</td>
<td class="post1" width="95%" valign="top" style="padding:5px">{$entry['post']} $read_more</td>
</tr>
<tr>
<td class='row2' colspan="2" style='padding:5px' align='right'>
$bottom_string
&nbsp;&nbsp;<a href="{$ibforums->base_url}act=Print&amp;client=printer&amp;f={$entry['forum_id']}&amp;t={$entry['tid']}"><img src="{$ibforums->vars['img_url']}/cs_print.gif" alt="Print" border="0" /></a>
<a href="{$ibforums->base_url}act=Forward&amp;f={$entry['forum_id']}&amp;t={$entry['tid']}"><img src="{$ibforums->vars['img_url']}/cs_email.gif" alt="email" border="0" /></a>
</td>
</tr>
</table>
<br />
EOF;
}
function tmpl_wrap_avatar($avatar) {
global $ibforums;
return <<<EOF
$avatar
EOF;
}
function tmpl_debug($queries, $time) {
global $ibforums;
return <<<EOF
<div class='desc'>[ DB Queries: $queries ] [ Execution Time: $time ]</div>
EOF;
}
function csite_skeleton_template() {
global $ibforums;
return <<<EOF
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="generator" content="IPDynamic Lite">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<title><!--CS.TEMPLATE.TITLE--></title>
<!--CS.TEMPLATE.JAVASCRIPT-->
<!--CS.TEMPLATE.CSS-->
</head>
<body>
<div id='ipbwrapper'>
<!--Header-->
<div id='logostrip'>
<a href='{$ibforums->base_url}' title='Board Home'><img src='{$ibforums->vars['img_url']}/logo4.gif' alt='Powered by Invision Power Board' border="0" /></a>
</div>
<table width="100%" cellspacing="6" id="submenu">
<tr>
<td><a href='{$ibforums->vars['home_url']}'>{$ibforums->vars['home_name']}</a><!--IBF.RULES--></td>
<td align="right">
<img src="{$ibforums->vars['img_url']}/atb_help.gif" border="0" alt="" />&nbsp;<a href='{$ibforums->base_url}act=Help'>{$ibforums->lang['tb_help']}</a>
&nbsp; &nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/atb_search.gif" border="0" alt="" />&nbsp;<a href='{$ibforums->base_url}act=Search&amp;f={$ibforums->input['f']}'>{$ibforums->lang['tb_search']}</a>
&nbsp; &nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/atb_members.gif" border="0" alt="" />&nbsp;<a href='{$ibforums->base_url}act=Members'>{$ibforums->lang['tb_mlist']}</a>
&nbsp; &nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/atb_calendar.gif" border="0" alt="" />&nbsp;<a href='{$ibforums->base_url}act=calendar'>{$ibforums->lang['tb_calendar']}</a>
<!--IBF.CHATLINK-->
</td>
</tr>
</table>
<!--CS.TEMPLATE.LINKS-->
<!--End Header-->
<!--Main Content-->
<table width="100%" class='tableborder' cellspacing="0" cellpadding="6">
<tr>
<td width="200" class='row3' valign="top">
<!-- LEFT -->
<!--CS.TEMPLATE.WELCOMEBOX-->
<!--CS.TEMPLATE.SEARCH-->
<!--CS.TEMPLATE.SITENAV-->
<!--CS.TEMPLATE.CHANGESKIN-->
<!--CS.TEMPLATE.ONLINEUSERS-->
<!--CS.TEMPLATE.POLL-->
<!--CS.TEMPLATE.LATESTPOSTS-->
<!--CS.TEMPLATE.RECENTARTICLES-->
<!--CS.TEMPLATE.AFFILIATES-->
<!--END LEFT-->
<br /><img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='200' height='1' />
</td>
<!--SPACER-->
<td width="5" class='row3'>&nbsp;</td>
<td width="90%" class='row3' valign="top">
<!--MAIN-->
<!--CS.TEMPLATE.ARTICLES-->
<!--END MAIN-->
</td>
</tr>
<!--End Main Content-->
<tr>
<td colspan='3' class='row3' align='center'>
<!--CS.TEMPLATE.COPYRIGHT-->
<!--CS.TEMPLATE.DEBUG-->
</td>
</tr>
</table>
<div class='titlemedium'>&nbsp;</div>
</div>
</body>
</html>
EOF;
}
}
?>
-311
View File
@@ -1,311 +0,0 @@
<?php
class skin_emails {
function board_rules( $title="", $body="") {
global $ibforums;
return <<<EOF
<div class="tableborder">
<div class="pformstrip">$title</div>
<div class="tablepad">$body</div>
</div>
EOF;
}
function errors($data) {
global $ibforums;
return <<<EOF
<div class="tableborder">
<div class="pformstrip">{$ibforums->lang['errors_found']}</div>
<div class="tablepad"><span class='postcolor'>$data</span></div>
</div>
<br />
EOF;
}
function chat_inline($acc_no, $lang, $w, $h, $user="",$pass="") {
global $ibforums;
return <<<EOF
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}>&nbsp;{$ibforums->lang['chat_title']}</div>
<div class='tablepad' align='center'>
<applet
codebase="http://client.invisionchat.com/current/"
code="Client.class" archive="scclient_$lang.zip"
width=$w height=$h
style='border: 1px solid #000'>
<param name="room" value="$acc_no">
<param name="cabbase" value="scclient_$lang.cab">
<param name="username" value="$user">
<param name="password" value="$pass">
<param name="autologin" value="yes">
</applet>
</div>
</div>
<br />
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}>&nbsp;{$ibforums->lang['chat_help']}</div>
<div class='tablepad'>
{$ibforums->lang['chat_help_text']}
</div>
</div>
EOF;
}
function chat_pop($acc_no, $lang, $w, $h, $user="",$pass="") {
global $ibforums;
return <<<EOF
<div align='center'>
<applet
codebase="http://client.invisionchat.com/current/"
code="Client.class" archive="scclient_$lang.zip"
width=$w height=$h
style='border: 1px solid <{tbl_border}>'>
<param name="room" value="$acc_no">
<param name="cabbase" value="scclient_$lang.cab">
<param name="username" value="$user">
<param name="password" value="$pass">
<param name="autologin" value="yes">
</applet>
</div>
EOF;
}
function report_form($fid, $tid, $pid, $st, $topic_title) {
global $ibforums;
return <<<EOF
<form action="{$ibforums->base_url}act=report&amp;send=1&amp;f=$fid&amp;t=$tid&amp;p=$pid&amp;st=$st" method="post" name='REPLIER'>
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}>&nbsp;{$ibforums->lang['report_title']}</div>
<div class='pformstrip'>&nbsp;</div>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td class='row1' align='left' width='30%' valign='top'><b>{$ibforums->lang['report_topic']}</b></td>
<td class='row1' width='80%'><a href='{$ibforums->base_url}showtopic=$tid&amp;st=$st&amp;&#35;entry$pid'>$topic_title</a>
</td>
</tr>
<tr>
<td class='row1' align='left' width='30%' valign='top'>{$ibforums->lang['report_message']}</td>
<td class='row1' width='80%'><textarea cols='60' rows='12' wrap='soft' name='message' class='textinput'></textarea>
</td>
</tr>
</table>
<div align='center' class='pformstrip'><input type="submit" value="{$ibforums->lang['report_submit']}" class='forminput' /></div>
</div>
</form>
EOF;
}
function msn_body($msnname) {
global $ibforums;
return <<<EOF
<object classid='clsid:F3A614DC-ABE0-11d2-A441-00C04F795683' codebase='#Version=2,0,0,83' codetype='application/x-oleobject' id='MsgrObj' name='MsgrApp' width='0' height='0'></object>
<object classid='clsid:FB7199AB-79BF-11d2-8D94-0000F875C541' codetype='application/x-oleobject' id='MsgrApp' name='MsgrApp' width='0' height='0'></object>
<tr>
<td class='row2' align='left'><b>{$ibforums->lang['msn_name']}</b></td>
<td class='row2' align='left'><input type='text' name='msnname' value='$msnname' size='40' class='forminput' onMouseOver="this.focus()" onFocus="this.select()"></td>
</tr>
<tr>
<td class='row2' align='center' colspan='2'><a href="javascript:MsgrApp.LaunchIMUI('$msnname');">{$ibforums->lang['msn_send_msg']}</a></td>
</tr>
<tr>
<td class='row2' align='center' colspan='2'><a href="javascript:MsgrApp.LaunchAddContactUI('$msnname');">{$ibforums->lang['msn_add_contact']}</a></td>
</tr>
EOF;
}
function yahoo_body($yahoo) {
global $ibforums;
return <<<EOF
<tr>
<td class='row2' align='left'><b>{$ibforums->lang['yahoo_name']}</b></td>
<td class='row2' align='left'><input type='text' name='msnname' value='$yahoo' size='40' class='forminput' onMouseOver="this.focus()" onFocus="this.select()"></td>
</tr>
<tr>
<td class='row2' align='left'><b>{$ibforums->lang['yahoo_status']}</b></td>
<td class='row2' align='left'><img border=0 src="http://opi.yahoo.com/online?u=$yahoo&amp;m=g&amp;t=2"></td>
</tr>
<tr>
<td class='row2' align='center' colspan='2'><a href="http://edit.yahoo.com/config/send_webmesg?.target=$yahoo&amp;.src=pg">{$ibforums->lang['yahoo_send_msg']}</a></td>
</tr>
<tr>
<td class='row2' align='center' colspan='2'><a href="http://members.yahoo.com/interests?.oc=t&amp;.kw=$yahoo&amp;.sb=1">{$ibforums->lang['yahoo_view_profile']}</a></td>
</tr>
EOF;
}
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 class='row2' align='left'><b>{$ibforums->lang['name']}</b></td>
<td class='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 class='row2' align='left'><b>{$ibforums->lang['email']}</b></td>
<td class='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 class='row2' align='left' valign='top'><b>{$ibforums->lang['msg']}</b></td>
<td class='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 class='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 class='darkrow1' 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='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='0' border='0' width='100%'>
<tr>
<td colspan='2' align='center' class='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']}&amp;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->base_url}" 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']}'>
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}>&nbsp;{$ibforums->lang['title']}</div>
<table cellpadding='4' cellspacing='0' border='0' width='100%'>
<tr>
<td class='row1' align='left' width='30%' valign='top'><b>{$ibforums->lang['send_lang']}</b></td>
<td class='row1' width='80%'>$lang</td>
</tr>
<tr>
<td class='row1' align='left' width='30%' valign='top'><b>{$ibforums->lang['to_name']}</b></td>
<td class='row1' width='80%'><input type='text' class='forminput' name='to_name' value='' size='30' maxlength='100'></td>
</tr>
<tr>
<td class='row1' align='left' width='30%' valign='top'><b>{$ibforums->lang['to_email']}</b></td>
<td class='row1' width='80%'><input type='text' class='forminput' name='to_email' value='' size='30' maxlength='100'></td>
</tr>
<tr>
<td class='row1' align='left' width='30%' valign='top'><b>{$ibforums->lang['subject']}</b></td>
<td class='row1' width='80%'><input type='text' class='forminput' name='subject' value='{$title}' size='30' maxlength='120'></td>
</tr>
<tr>
<td class='row1' align='left' width='30%' valign='top'><b>{$ibforums->lang['message']}</b></td>
<td class='row1' width='80%'><textarea cols='60' rows='12' wrap='soft' name='message' class='textinput'>{$text}</textarea>
</td>
</tr>
</table>
<div align='center' class='pformstrip'><input type="submit" value="{$ibforums->lang['submit_send']}" class='forminput' /></div>
</div>
</form>
EOF;
}
function show_address($data) {
global $ibforums;
return <<<EOF
<div class='tableborder'>
<div class='maintitle'>{$ibforums->lang['send_email_to']} {$data[NAME]}</div>
<div class='tablepad'>{$ibforums->lang['show_address_text']}
<br />
&gt;&gt;<b><a href="mailto:{$data[ADDRESS]}" class='misc'>{$ibforums->lang['send_email_to']} {$data[NAME]}</a></b>
</div>
</div>
EOF;
}
function send_form($data) {
global $ibforums;
return <<<EOF
<form action="{$ibforums->base_url}" method="post" name='REPLIER'>
<input type='hidden' name='act' value='Mail'>
<input type='hidden' name='CODE' value='01'>
<input type='hidden' name='to' value='{$data['TO']}'>
<div><strong>{$ibforums->lang['imp_text']}</strong></div>
<br />
<div class='tableborder'>
<div class='maintitle'>{$ibforums->lang['send_title']}</div>
<div class='pformstrip'>{$ibforums->lang['send_email_to']} {$data['NAME']}</div>
<table width='100%' cellspacing='1'>
<tr>
<td class='pformleftw' valign='top'><b>{$ibforums->lang['subject']}</b></td>
<td class='pformright'><input type='text' name='subject' value='{$data['subject']}' size='50' maxlength='50' class='forminput' /></td>
</tr>
<tr>
<td class='pformleftw' valign='top'><b>{$ibforums->lang['message']}</b><br /><br />{$ibforums->lang['msg_txt']}</td>
<td class='pformright'><textarea cols='60' rows='12' wrap='soft' name='message' class='textinput'>{$data['content']}</textarea></td>
</tr>
</table>
<div class='pformstrip' align='center'><input type="submit" value="{$ibforums->lang['submit_send']}" class='forminput' /></div>
</div>
</form>
EOF;
}
function sent_screen($member_name) {
global $ibforums;
return <<<EOF
<div class='tableborder'>
<div class='maintitle'>{$ibforums->lang['email_sent']}</div>
<div class='tablepad'>{$ibforums->lang['email_sent_txt']} $member_name</div>
</div>
EOF;
}
function forum_jump($data) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='1' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td align='right'>$data</td>
</tr>
</table>
EOF;
}
}
?>
-266
View File
@@ -1,266 +0,0 @@
<?php
class skin_forum {
function show_page_jump($total, $pp, $qe) {
global $ibforums;
return <<<EOF
<a href="javascript:multi_page_jump( $total, $pp, '$qe' )" title="{$ibforums->lang['tpl_jump']}">{$ibforums->lang['multi_page_forum']}</a>
EOF;
}
function Forum_log_in($data) {
global $ibforums;
return <<<EOF
<form action='{$ibforums->base_url};act=SF&amp;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}'>
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}>&nbsp;{$ibforums->lang['need_password']}</div>
<div class='tablepad'>{$ibforums->lang['need_password_txt']}</div>
<div class='tablepad' style='text-align:center'>
<strong>{$ibforums->lang['enter_pass']}</strong>
<br />
<input type='password' size='20' name='f_password' />
</div>
<div class='pformstrip' align='center'><input type='submit' value='{$ibforums->lang['f_pass_submit']}' class='forminput' /></div>
</div>
</form>
EOF;
}
function show_sub_link($fid) {
global $ibforums;
return <<<EOF
&#0124; <a href='{$ibforums->base_url}act=Track&amp;f=$fid&amp;type=forum'>{$ibforums->lang['ft_title']}</a>
EOF;
}
function show_mod_link($fid) {
global $ibforums;
return <<<EOF
<br />
<strong>{$ibforums->lang['post_modq']} <a href='{$ibforums->base_url}act=modcp'>{$ibforums->lang['post_click']}</a></strong>
EOF;
}
function PageTop($data) {
global $ibforums;
return <<<EOF
<script language='javascript' type="text/javascript">
<!--
function who_posted(tid)
{
window.open("{$ibforums->js_base_url}act=Stats&CODE=who&t="+tid, "WhoPosted", "toolbar=no,scrollbars=yes,resizable=yes,width=230,height=300");
}
//-->
</script>
<!--IBF.SUBFORUMS-->
<!--IBF.MODLINK-->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align='left' width="20%" nowrap="nowrap">{$data['SHOW_PAGES']}</td>
<td align='right' width="80%"><a href='{$ibforums->base_url}act=Post&amp;CODE=00&amp;f={$data['id']}'><{A_POST}></a>{$data[POLL_BUTTON]}</td>
</tr>
</table>
<br />
<form action='{$ibforums->base_url}act=SF&amp;f={$data['id']}&amp;st={$ibforums->input['st']}' method='post'>
<div class="tableborder">
<div class='maintitle'><{CAT_IMG}>&nbsp;{$data['name']}</div>
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
<tr>
<td align='center' class='titlemedium'><img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='20' height='1' /></td>
<td align='center' class='titlemedium'><img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='20' height='1' /></td>
<th width='45%' align='left' nowrap="nowrap" class='titlemedium'>{$ibforums->lang['h_topic_title']}</th>
<th width='14%' align='center' nowrap="nowrap" class='titlemedium'>{$ibforums->lang['h_topic_starter']}</th>
<th width='7%' align='center' nowrap="nowrap" class='titlemedium'>{$ibforums->lang['h_replies']}</th>
<th width='7%' align='center' nowrap="nowrap" class='titlemedium'>{$ibforums->lang['h_hits']}</th>
<th width='27%' align='left' nowrap="nowrap" class='titlemedium'>{$ibforums->lang['h_last_action']}</th>
</tr>
<!-- Forum page unique top -->
EOF;
}
function TableEnd($data) {
global $ibforums;
return <<<EOF
</table>
<!--IBF.FORUM_ACTIVE-->
<div align='center' class='darkrow2' style='padding:4px'>{$ibforums->lang['showing_text']}{$ibforums->lang['sort_text']}&nbsp;<input type='submit' value='{$ibforums->lang['sort_submit']}' class='forminput' /></div>
</div>
</form>
<br />
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align='left' width="20%" nowrap="nowrap">{$data['SHOW_PAGES']}</td>
<td align='right' width="80%"><a href='{$ibforums->base_url}act=Post&amp;CODE=00&amp;f={$data['id']}'><{A_POST}></a>{$data[POLL_BUTTON]}</td>
</tr>
</table>
<br />
<div align='left' class="wrapmini">
<{B_NEW}>&nbsp;&nbsp;{$ibforums->lang['pm_open_new']}
<br /><{B_NORM}>&nbsp;&nbsp;{$ibforums->lang['pm_open_no']}
<br /><{B_HOT}>&nbsp;&nbsp;{$ibforums->lang['pm_hot_new']}
<br /><{B_HOT_NN}>&nbsp;&nbsp;{$ibforums->lang['pm_hot_no']}
</div>
<div align='left' class="wrapmini">
<{B_POLL}>&nbsp;&nbsp;{$ibforums->lang['pm_poll']}
<br /><{B_POLL_NN}>&nbsp;&nbsp;{$ibforums->lang['pm_poll_no']}
<br /><{B_LOCKED}>&nbsp;&nbsp;{$ibforums->lang['pm_locked']}
<br /><{B_MOVED}>&nbsp;&nbsp;{$ibforums->lang['pm_moved']}
</div>
<div align='right'>
<form action='{$ibforums->base_url}' method='post' name='search'>
<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='joinname' value='1' />
<input type='hidden' name='CODE' value='01' />
{$ibforums->lang['search_forum']}&nbsp;
<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' />
</form>
<br />
<br />
{$data[FORUM_JUMP]}
</div>
<br />
<br />
<div align='center'><a href='{$ibforums->base_url}act=Login&amp;CODE=04&amp;f={$data['id']}'>{$ibforums->lang['mark_as_read']}</a> <!--IBF.SUB_FORUM_LINK--></div>
<br clear="all" />
EOF;
}
function show_rules($rules) {
global $ibforums;
return <<<EOF
<div class='tableborder'>
<div class='maintitle'>{$rules['title']}</div>
<div class='tablepad'>{$rules['body']}</div>
<div class='pformstrip' align='center'>&gt;&gt;<a href='{$ibforums->base_url}act=SF&amp;f={$rules['fid']}'>{$ibforums->lang['back_to_forum']}</a></div>
</div>
EOF;
}
function page_title($title="", $pages="") {
global $ibforums;
return <<<EOF
<div><span class='pagetitle'>$title</span>$pages</div>
EOF;
}
function forum_active_users($active=array()) {
global $ibforums;
return <<<EOF
<div class='darkrow2' style='padding:6px'>{$ibforums->lang['active_users_title']} ({$ibforums->lang['active_users_detail']})</div>
<div class='row2' style='padding:6px'>{$ibforums->lang['active_users_members']} {$active['names']}</div>
EOF;
}
function show_no_matches() {
global $ibforums;
return <<<EOF
<tr>
<td class='row4' colspan='7' align='center'>
<br />
<b>{$ibforums->lang['no_topics']}</b>
<br /><br />
</td>
</tr>
EOF;
}
function who_link($tid, $posts) {
global $ibforums;
return <<<EOF
<a href='javascript:who_posted($tid);'>$posts</a>
EOF;
}
function RenderRow($data) {
global $ibforums;
return <<<EOF
<!-- Begin Topic Entry {$data['tid']} -->
<tr>
<td align='center' class='row4'>{$data['folder_img']}</td>
<td align='center' class='row2'>{$data['topic_icon']}</td>
<td class='row4'>
{$data['go_new_post']}{$data['prefix']} <a href="{$ibforums->base_url}showtopic={$data['tid']}" title="{$ibforums->lang['topic_started_on']} {$data['start_date']}">{$data['title']}</a> {$data[PAGES]}
<br /><span class='desc'>{$data['description']}</span></td>
<td align='center' class='row2'>{$data['starter']}</td>
<td align='center' class='row4'>{$data['posts']}</td>
<td align='center' class='row2'>{$data['views']}</td>
<td class='row2'><span class='desc'>{$data['last_post']}<br /><a href='{$ibforums->base_url}showtopic={$data['tid']}&amp;view=getlastpost'>{$data['last_text']}</a> <b>{$data['last_poster']}</b></span></td>
</tr>
<!-- End Topic Entry {$data['tid']} -->
EOF;
}
function render_pinned_start() {
global $ibforums;
return <<<EOF
<!-- START PINNED -->
<tr>
<td align='center' class='darkrow1'>&nbsp;</td>
<td align='center' class='darkrow1'>&nbsp;</td>
<td align='left' class='darkrow1' colspan='5' style='padding:6px'><b>{$ibforums->lang['pinned_start']}</b></td>
</tr>
EOF;
}
function render_pinned_end() {
global $ibforums;
return <<<EOF
<!-- END PINNED -->
<tr>
<td align='center' class='darkrow1'>&nbsp;</td>
<td align='center' class='darkrow1'>&nbsp;</td>
<td align='left' class='darkrow1' colspan='5' style='padding:6px'><b>{$ibforums->lang['regular_topics']}</b></td>
</tr>
EOF;
}
function render_pinned_row($data) {
global $ibforums;
return <<<EOF
<!-- Begin Pinned Topic Entry {$data['tid']} -->
<tr>
<td align='center' class='row4'>{$data['folder_img']}</td>
<td align='center' class='row2'>{$data['topic_icon']}</td>
<td class='row4'>
{$data['go_new_post']}<b>{$data['prefix']} <a href='{$ibforums->base_url}showtopic={$data['tid']}' class='linkthru' title='{$ibforums->lang['topic_started_on']} {$data['start_date']}'>{$data['title']}</a></b> {$data[PAGES]}
<br /><span class='desc'>{$data['description']}</span></td>
<td align='center' class='row4'>{$data['starter']}</td>
<td align='center' class='row4'>{$data['posts']}</td>
<td align='center' class='row4'>{$data['views']}</td>
<td class='row4'><span class='desc'>{$data['last_post']}<br /><a href='{$ibforums->base_url}showtopic={$data['tid']}&amp;view=getlastpost'>{$data['last_text']}</a> <b>{$data['last_poster']}</b></span></td>
</tr>
<!-- End Pinned Topic Entry {$data['tid']} -->
EOF;
}
}
?>
-448
View File
@@ -1,448 +0,0 @@
<?php
class skin_global {
function pop_up_window($title, $css, $text) {
global $ibforums;
return <<<EOF
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>$title</title>
$css
</head>
<script language='JavaScript' type="text/javascript">
<!--
function buddy_pop() { window.open('index.{$ibforums->vars['php_ext']}?act=buddy&s={$ibforums->session_id}','BrowserBuddy','width=250,height=500,resizable=yes,scrollbars=yes'); }
function chat_pop(cw,ch) { window.open('index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=chat&pop=1','Chat','width='+cw+',height='+ch+',resizable=yes,scrollbars=yes'); }
function multi_page_jump( url_bit, total_posts, per_page )
{
pages = 1; cur_st = parseInt("{$ibforums->input['st']}"); cur_page = 1;
if ( total_posts % per_page == 0 ) { pages = total_posts / per_page; }
else { pages = Math.ceil( total_posts / per_page ); }
msg = "{$ibforums->lang['tpl_q1']}" + " " + pages;
if ( cur_st > 0 ) { cur_page = cur_st / per_page; cur_page = cur_page -1; }
show_page = 1;
if ( cur_page < pages ) { show_page = cur_page + 1; }
if ( cur_page >= pages ) { show_page = cur_page - 1; }
else { show_page = cur_page + 1; }
userPage = prompt( msg, show_page );
if ( userPage > 0 ) {
if ( userPage < 1 ) { userPage = 1; }
if ( userPage > pages ) { userPage = pages; }
if ( userPage == 1 ) { start = 0; }
else { start = (userPage - 1) * per_page; }
window.location = url_bit + "&st=" + start;
}
}
//-->
</script>
<body>
<div style='text-align:left'>
$text
</div>
</body>
</html>
EOF;
}
function make_page_jump($tp="", $pp="", $ub="" ) {
global $ibforums;
return <<<EOF
<a title="{$ibforums->lang['tpl_jump']}" href="javascript:multi_page_jump('$ub',$tp,$pp);">{$ibforums->lang['tpl_pages']}</a>
EOF;
}
function signature_separator($sig="") {
global $ibforums;
return <<<EOF
<br /><br />--------------------<br />
<div class='signature'>$sig</div>
EOF;
}
function forum_show_rules_full($rules) {
global $ibforums;
return <<<EOF
<!-- Show FAQ/Forum Rules -->
<div align='left'><{F_RULES}>&nbsp;<b>{$rules['title']}</b><br /><br />{$rules['body']}</div>
<br />
<!-- End FAQ/Forum Rules -->
EOF;
}
function forum_show_rules_link($rules) {
global $ibforums;
return <<<EOF
<!-- Show FAQ/Forum Rules -->
<div align='left'><{F_RULES}>&nbsp;<b><a href='{$ibforums->base_url}act=SR&amp;f={$rules['fid']}'>{$rules['title']}</a></b></div>
<!-- End FAQ/Forum Rules -->
EOF;
}
function css_inline($css="") {
global $ibforums;
return <<<EOF
<style type='text/css'>
{$css}
</style>
EOF;
}
function css_external($css, $img) {
global $ibforums;
return <<<EOF
<style type='text/css' media="all">
@import url(css.php?d={$css}_{$img}.css);
</style>
EOF;
}
function Member_bar($msg, $ad_link, $mod_link, $val_link) {
global $ibforums;
return <<<EOF
<table width="100%" id="userlinks" cellspacing="6">
<tr>
<td><strong>{$ibforums->lang['logged_in_as']} <a href='{$ibforums->base_url}showuser={$ibforums->member['id']}'>{$ibforums->member['name']}</a></strong> ( <a href='{$ibforums->base_url}act=Login&amp;CODE=03'>{$ibforums->lang['log_out']}</a>$ad_link $mod_link $val_link )</td>
<td align='right'>
<b><a href='{$ibforums->base_url}act=UserCP&amp;CODE=00' title='{$ibforums->lang['cp_tool_tip']}'>{$ibforums->lang['your_cp']}</a></b> &middot; <a href='{$ibforums->base_url}act=Msg&amp;CODE=01'>{$msg[TEXT]}</a>
&middot; <a href='{$ibforums->base_url}act=Search&amp;CODE=getnew'>{$ibforums->lang['view_new_posts']}</a> &middot; <a href='javascript:buddy_pop();' title='{$ibforums->lang['bb_tool_tip']}'>{$ibforums->lang['l_qb']}</a></td>
</tr>
</table>
EOF;
}
function Guest_bar() {
global $ibforums;
return <<<EOF
<table width="100%" id="userlinks" cellspacing="6">
<tr>
<td>{$ibforums->lang['guest_stuff']} ( <a href='{$ibforums->base_url}act=Login&amp;CODE=00'>{$ibforums->lang['log_in']}</a> | <a href='{$ibforums->base_url}act=Reg&amp;CODE=00'>{$ibforums->lang['register']}</a> )</td>
<td align='right'><a href='{$ibforums->base_url}act=Reg&amp;CODE=reval'>{$ibforums->lang['ml_revalidate']}</a></td>
</tr>
</table>
EOF;
}
function member_bar_disabled() {
global $ibforums;
return <<<EOF
<table width="100%" id="userlinks" cellspacing="6">
<tr>
<td><strong>{$ibforums->lang['mb_disabled']} </strong></td>
</tr>
</table>
EOF;
}
function Member_no_usepm_bar($ad_link, $mod_link, $val_link) {
global $ibforums;
return <<<EOF
<table width="100%" id="userlinks" cellspacing="6">
<tr>
<td><b>{$ibforums->lang['logged_in_as']} {$ibforums->member['name']}</b> ( <a href='{$ibforums->base_url}act=Login&amp;CODE=03'>{$ibforums->lang['log_out']}</a>$ad_link $mod_link $val_link )</td>
<td align='right'>
<b><a href='{$ibforums->base_url}act=UserCP&amp;CODE=00' title='{$ibforums->lang['cp_tool_tip']}'>{$ibforums->lang['your_cp']}</a></b>
&middot; <a href='{$ibforums->base_url}act=Search&amp;CODE=getnew'>{$ibforums->lang['view_new_posts']}</a> &middot; <a href='javascript:buddy_pop();' title='{$ibforums->lang['bb_tool_tip']}'>{$ibforums->lang['l_qb']}</a></td>
</tr>
</table>
EOF;
}
function BoardHeader($time="") {
global $ibforums;
return <<<EOF
<script language='JavaScript' type="text/javascript">
<!--
function buddy_pop() { window.open('index.{$ibforums->vars['php_ext']}?act=buddy&s={$ibforums->session_id}','BrowserBuddy','width=250,height=500,resizable=yes,scrollbars=yes'); }
function chat_pop(cw,ch) { window.open('index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=chat&pop=1','Chat','width='+cw+',height='+ch+',resizable=yes,scrollbars=yes'); }
function multi_page_jump( url_bit, total_posts, per_page )
{
pages = 1; cur_st = parseInt("{$ibforums->input['st']}"); cur_page = 1;
if ( total_posts % per_page == 0 ) { pages = total_posts / per_page; }
else { pages = Math.ceil( total_posts / per_page ); }
msg = "{$ibforums->lang['tpl_q1']}" + " " + pages;
if ( cur_st > 0 ) { cur_page = cur_st / per_page; cur_page = cur_page -1; }
show_page = 1;
if ( cur_page < pages ) { show_page = cur_page + 1; }
if ( cur_page >= pages ) { show_page = cur_page - 1; }
else { show_page = cur_page + 1; }
userPage = prompt( msg, show_page );
if ( userPage > 0 ) {
if ( userPage < 1 ) { userPage = 1; }
if ( userPage > pages ) { userPage = pages; }
if ( userPage == 1 ) { start = 0; }
else { start = (userPage - 1) * per_page; }
window.location = url_bit + "&st=" + start;
}
}
//-->
</script>
<!--IBF.BANNER-->
<div id='logostrip'>
<a href='{$ibforums->base_url}' title='Board Home'><img src='{$ibforums->vars['img_url']}/logo4.gif' alt='Powered by Invision Power Board' border="0" /></a>
</div>
<!-- IE6/Win TABLE FIX -->
<table width="100%" cellspacing="6" id="submenu">
<tr>
<td><a href='{$ibforums->vars['home_url']}'>{$ibforums->vars['home_name']}</a><!--IBF.RULES--></td>
<td align="right">
<img src="{$ibforums->vars['img_url']}/atb_help.gif" border="0" alt="" />&nbsp;<a href='{$ibforums->base_url}act=Help'>{$ibforums->lang['tb_help']}</a>
&nbsp; &nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/atb_search.gif" border="0" alt="" />&nbsp;<a href='{$ibforums->base_url}act=Search&amp;f={$ibforums->input['f']}'>{$ibforums->lang['tb_search']}</a>
&nbsp; &nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/atb_members.gif" border="0" alt="" />&nbsp;<a href='{$ibforums->base_url}act=Members'>{$ibforums->lang['tb_mlist']}</a>
&nbsp; &nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/atb_calendar.gif" border="0" alt="" />&nbsp;<a href='{$ibforums->base_url}act=calendar'>{$ibforums->lang['tb_calendar']}</a>
<!--IBF.CHATLINK-->
<!--IBF.TSLLINK-->
</td>
</tr>
</table>
<% MEMBER BAR %>
<br />
EOF;
}
function rules_link($url="", $title="")
{
global $ibforums;
return <<<EOF
&nbsp;&middot; <a href="$url">$title</a>
EOF;
}
function show_tsl_link_inline()
{
global $ibforums;
return <<<EOF
&nbsp; &nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/atb_toplist.gif" border="0" alt="" />&nbsp;<a href='{$ibforums->base_url}act=module&amp;module=toplist'>{$ibforums->lang['tb_toplist']}</a>
EOF;
}
function show_chat_link_inline()
{
global $ibforums;
return <<<EOF
&nbsp; &nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/atb_chat.gif" border="0" alt="" />&nbsp;<a href='{$ibforums->base_url}act=chat'>{$ibforums->lang['live_chat']}</a>
EOF;
}
function show_chat_link_popup()
{
global $ibforums;
return <<<EOF
&nbsp; &nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/atb_chat.gif" border="0" alt="" />&nbsp;<a href="javascript:chat_pop({$ibforums->vars['chat_width']}, {$ibforums->vars['chat_height']});">{$ibforums->lang['live_chat']}</a>
EOF;
}
function start_nav() {
global $ibforums;
return <<<EOF
<div id='navstrip' align='left'><{F_NAV}>&nbsp;
EOF;
}
function end_nav() {
global $ibforums;
return <<<EOF
</div>
<br />
EOF;
}
function Redirect($Text, $Url, $css) {
global $ibforums;
return <<<EOF
<html>
<head>
<title>{$ibforums->lang['stand_by']}</title>
<meta http-equiv='refresh' content='2; url=$Url' />
<script type="text/javascript"> </script>
$css
</head>
<body>
<table width='100%' height='85%' align='center'>
<tr>
<td valign='middle'>
<table align='center' cellpadding="4" class="tablefill">
<tr>
<td width="100%" align="center">
{$ibforums->lang['thanks']},
$Text<br /><br />
{$ibforums->lang['transfer_you']}<br /><br />
(<a href='$Url'>{$ibforums->lang['dont_wait']}</a>)
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
EOF;
}
function PM_popup() {
global $ibforums;
return <<<EOF
<script language='JavaScript' type="text/javascript">
<!--
window.open('index.{$ibforums->vars['php_ext']}?act=Msg&CODE=99&s={$ibforums->session_id}','NewPM','width=500,height=250,resizable=yes,scrollbars=yes');
//-->
</script>
EOF;
}
function admin_link() {
global $ibforums;
return <<<EOF
&nbsp;&middot; <b><a href='{$ibforums->vars['board_url']}/admin.{$ibforums->vars['php_ext']}' target='_blank'>{$ibforums->lang['admin_cp']}</a></b>
EOF;
}
function mod_link() {
global $ibforums;
return <<<EOF
&middot; <b><a href='{$ibforums->base_url}act=modcp&amp;forum={$ibforums->input['f']}'>{$ibforums->lang['mod_cp']}</a></b>
EOF;
}
function validating_link() {
global $ibforums;
return <<<EOF
&nbsp;&middot; <a href='{$ibforums->base_url}act=Reg&amp;CODE=reval'>{$ibforums->lang['ml_revalidate']}</a>
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' />
<div class="tableborder">
<div class="titlemedium">{$ibforums->lang['er_log_in_title']}</div>
<table>
<tr>
<td class="pformleft">{$ibforums->lang['erl_enter_name']}</td>
<td class="pformright"><input type='text' size='20' maxlength='64' name='UserName' class='forminput' /></td>
</tr>
<tr>
<td class="pformleft">{$ibforums->lang['erl_enter_pass']}</td>
<td class="pformright"><input type='password' size='20' name='PassWord' class='forminput' /></td>
</tr>
</table>
<div class="pformstrip" align="center"><input type='submit' name='submit' value='{$ibforums->lang['erl_log_in_submit']}' class='forminput' /></div>
</div>
</form>
EOF;
}
function board_offline($message = "") {
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='' />
<input type='hidden' name='CookieDate' value='1' />
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}>&nbsp;{$ibforums->lang['offline_title']}</div>
<div class='tablepad'>$message</div>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='pformleftw'>{$ibforums->lang['erl_enter_name']}</td>
<td class='pformright'><input type='text' size='20' maxlength='64' name='UserName' class='forminput' /></td>
</tr>
<tr>
<td class='pformleftw'>{$ibforums->lang['erl_enter_pass']}</td>
<td class='pformright'><input type='password' size='20' name='PassWord' class='forminput' /></td>
</tr>
</table>
<div class='pformstrip' align='center'><input type='submit' name='submit' value='{$ibforums->lang['erl_log_in_submit']}' class='forminput' /></div>
</div>
</form>
EOF;
}
function Error($message, $ad_email_one="", $ad_email_two="") {
global $ibforums;
return <<<EOF
<script language='JavaScript' type="text/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>
<div class="tableborder">
<div class="maintitle"><img src='{$ibforums->vars['img_url']}/nav_m.gif' alt='' width='8' height='8' />&nbsp;{$ibforums->lang['error_title']}</div>
</div>
<div class="tablefill">
{$ibforums->lang['exp_text']}<br /><br />
<b>{$ibforums->lang['msg_head']}</b>
<br /><br />
<span class='postcolor' style='padding:10px'>$message</span>
<br /><br />
<!--IBF.LOG_IN_TABLE-->
<!--IBF.POST_TEXTAREA-->
<br /><br />
<b>{$ibforums->lang['er_links']}</b>
<br /><br />
&middot; <a href='{$ibforums->base_url}act=Reg&amp;CODE=10'>{$ibforums->lang['er_lost_pass']}</a><br />
&middot; <a href='{$ibforums->base_url}act=Reg&amp;CODE=00'>{$ibforums->lang['er_register']}</a><br />
&middot; <a href='{$ibforums->base_url}act=Help&amp;CODE=00'>{$ibforums->lang['er_help_files']}</a><br />
&middot; <a href='javascript:contact_admin();'>{$ibforums->lang['er_contact_admin']}</a>
</div>
<div class="tableborder">
<div class="pformstrip" align="center">&lt; <a href='javascript:history.go(-1)'>{$ibforums->lang['error_back']}</a></div>
</div>
EOF;
}
function error_post_textarea($post="") {
global $ibforums;
return <<<EOF
<br />
<div>
<strong>{$ibforums->lang['err_title']}</strong>
<br /><br />
{$ibforums->lang['err_expl']}
</div>
<br />
<br />
<div align='center'>
<input type='button' tabindex='1' value='{$ibforums->lang['err_select']}' onclick='document.mehform.saved.select()'><br />
<form name='mehform'>
<textarea cols='70' rows='5' name='saved' tabindex='2'>$post</textarea>
</form>
</div>
EOF;
}
}
?>
-65
View File
@@ -1,65 +0,0 @@
<?php
class skin_help {
function row($entry) {
global $ibforums;
return <<<EOF
<li class="helprow"><a href='{$ibforums->base_url}act=Help&amp;CODE=01&amp;HID={$entry['id']}'><b>{$entry['title']}</b></a><br />{$entry['description']}</li>
EOF;
}
function display($text) {
global $ibforums;
return <<<EOF
</div>
<div style='padding:4px'>$text</div>
</div>
EOF;
}
function end() {
global $ibforums;
return <<<EOF
</ul>
</div>
</div>
EOF;
}
function no_results() {
global $ibforums;
return <<<EOF
<tr>
<td class='row1' colspan='2'><b>{$ibforums->lang['no_results']}</b></td>
</tr>
EOF;
}
function start($one_text, $two_text, $three_text) {
global $ibforums;
return <<<EOF
<div>$two_text</div>
<br />
<form action="{$ibforums->base_url}" method="post">
<input type='hidden' name='act' value='Help' />
<input type='hidden' name='CODE' value='02' />
<div class="tableborder">
<div class="maintitle">$one_text</div>
<div class="tablepad">{$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' /></div>
</div>
</form>
<br />
<div class="tableborder">
<div class="maintitle">$three_text</div>
<div class="tablepad">
<ul id="help">
EOF;
}
}
?>
-220
View File
@@ -1,220 +0,0 @@
<?php
class skin_legends {
function find_user_one($entry="", $name="", $sep="comma") {
global $ibforums;
return <<<EOF
<form name='finduser' method='post' action='{$ibforums->base_url}act=legends&amp;entry=$entry&amp;name=$name&amp;sep=$sep&amp;CODE=finduser_two'>
<table cellspacing='1' cellpadding='10' width='100%' height='100%' align='center' class='row1'>
<tr>
<td class='pagetitle' align='left'>{$ibforums->lang['fu_title']}<hr noshade></td>
</tr>
<tr>
<td align='center' valign='middle'><b>{$ibforums->lang['fu_enter_name']}</b><br /><br /><input type='text' size='40' name='username' class='forminput'><br /><br /><input type='submit' value='{$ibforums->lang['fu_search_but']}'></td>
</tr>
<tr>
<td align='center' style='font-size:12px;font-weight:bold'><a href='javascript:window.close();'>{$ibforums->lang['fu_close_win']}</a></td>
</tr>
</table>
</form>
EOF;
}
function find_user_error($msg) {
global $ibforums;
return <<<EOF
<form name='finduser' method='post' action='{$ibforums->base_url}entry=$entry&amp;name=$name&amp;sep=$sep&amp;CODE=finduser_two'>
<table cellspacing='1' cellpadding='10' width='100%' height='100%' align='center' class='row1'>
<tr>
<td class='pagetitle' align='left'>{$ibforums->lang['fu_error']}<hr noshade></td>
</tr>
<tr>
<td align='center' valign='middle'>$msg</td>
</tr>
<tr>
<td align='center' style='font-size:12px;font-weight:bold'><a href='javascript:history.go(-1);'>{$ibforums->lang['fu_back']}</a> :: <a href='javascript:window.close();'>{$ibforums->lang['fu_close_win']}</a></td>
</tr>
</table>
</form>
EOF;
}
function find_user_final($names="",$entry="", $name="", $sep="line") {
global $ibforums;
return <<<EOF
<script language='javascript'>
<!--
function add_to_form()
{
var separator = '$sep';
var entry = '$entry';
var name = document.finduser.username.options[document.finduser.username.selectedIndex].value;
if (separator == 'line')
{
separator = '\\n';
}
if (entry == 'textarea')
{
// Where shall we put the separator?
var tbox = opener.document.REPLIER.$name.value;
var tboxSize = opener.document.REPLIER.$name.value.length;
// Remove leading spaces...
while ( opener.document.REPLIER.$name.value.slice(0,1) == " " )
{
opener.document.REPLIER.$name.value = opener.document.REPLIER.$name.value.substr(1, opener.document.REPLIER.$name.value.length - 1);
opener.document.REPLIER.$name.value.length = opener.document.REPLIER.$name.value.length;
}
// Remove trailing spaces...
while ( opener.document.REPLIER.$name.value.slice(opener.document.REPLIER.$name.value.length - 1, opener.document.REPLIER.$name.value.length) == " " )
{
opener.document.REPLIER.$name.value = opener.document.REPLIER.$name.value.substr(0, opener.document.REPLIER.$name.value.length - 1);
opener.document.REPLIER.$name.value.length = opener.document.REPLIER.$name.value.length;
}
// Do we have a leading comma?
while ( opener.document.REPLIER.$name.value.slice(0,1) == "\\n" )
{
opener.document.REPLIER.$name.value = opener.document.REPLIER.$name.value.substr(1, opener.document.REPLIER.$name.value.length - 1);
opener.document.REPLIER.$name.value.length = opener.document.REPLIER.$name.value.length;
}
// Do we have a trailing comma?...
while ( opener.document.REPLIER.$name.value.slice(opener.document.REPLIER.$name.value.length - 1, opener.document.REPLIER.$name.value.length) == "\\n" )
{
opener.document.REPLIER.$name.value = opener.document.REPLIER.$name.value.substr(0, opener.document.REPLIER.$name.value.length - 1);
opener.document.REPLIER.$name.value.length = opener.document.REPLIER.$name.value.length;
}
// First in box?
if ( opener.document.REPLIER.$name.value.length == 0)
{
opener.document.REPLIER.$name.value += name;
}
else
{
opener.document.REPLIER.$name.value += separator + name;
}
}
}
//-->
</script>
<form name='finduser'>
<table cellspacing='1' cellpadding='10' width='100%' height='100%' align='center' class='row1'>
<tr>
<td class='pagetitle' align='left'>{$ibforums->lang['fu_title']}<hr noshade></td>
</tr>
<tr>
<td align='center' valign='middle'>{$ibforums->lang['fu_add_desc']}<br /><br /><select name='username' class='forminput'>$names</select><br /><br /><input type='button' name='add' onClick='add_to_form()' value='{$ibforums->lang['fu_add_mem']}'></td>
</tr>
<tr>
<td align='center' style='font-size:12px;font-weight:bold'><a href='javascript:history.go(-1);'>{$ibforums->lang['fu_back']}</a> :: <a href='javascript:window.close();'>{$ibforums->lang['fu_close_win']}</a></td>
</tr>
</table>
</form>
EOF;
}
function emoticon_javascript()
{
return <<<EOF
<script language='javascript'>
<!--
function add_smilie(code)
{
opener.document.REPLIER.Post.value += ' ' + code + ' ';
//return true;
}
//-->
</script>
EOF;
}
function bbcode_header() {
global $ibforums;
return <<<EOF
<div style='padding:6px'>{$ibforums->lang['bbc_intro']}</div>
<br />
EOF;
}
function wrap_tag($tag) {
global $ibforums;
return <<<EOF
<span style='color:#F00;font-weight:bold;'>$tag</span>
EOF;
}
function page_header( $title, $row1, $row2 ) {
global $ibforums;
return <<<EOF
<div class='tableborder'>
<div class='maintitle'>$title</div>
<table class='tablebasic' cellspacing='1' cellpadding='4'>
<tr>
<td width='50%' align='center' class='pformstrip' valign='middle'>$row1</td>
<td width='50%' align='center' class='pformstrip' valign='middle'>$row2</td>
</tr>
EOF;
}
function emoticons_row($code, $image, $in="'", $out="'") {
global $ibforums;
return <<<EOF
<tr>
<td align='center' class='row1' valign='middle'><a href={$out}javascript:add_smilie({$in}$code{$in}){$out}>$code</a></td>
<td align='center' class='row2' valign='middle'><a href={$out}javascript:add_smilie({$in}$code{$in}){$out}><img src='{$ibforums->vars['EMOTICONS_URL']}/$image' border='0' valign='absmiddle' alt='$image'></a></td>
</tr>
EOF;
}
function bbcode_row($before, $after) {
global $ibforums;
return <<<EOF
<tr>
<td align='left' class='row1' valign='middle'>$before</td>
<td align='left' class='row2' valign='middle'>$after</td>
</tr>
EOF;
}
function page_footer() {
return <<<EOF
</table>
</div>
EOF;
}
}
?>
-77
View File
@@ -1,77 +0,0 @@
<?php
class skin_login {
function errors($data) {
global $ibforums;
return <<<EOF
<div class="tableborder">
<div class="pformstrip">{$ibforums->lang['errors_found']}</div>
<div class="tablepad"><span class='postcolor'>$data</span></div>
</div>
<br />
EOF;
}
function ShowForm($message, $referer="") {
global $ibforums;
return <<<EOF
<script language='JavaScript' type="text/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>
{$ibforums->lang['login_text']}
<br />
<br />
<b>{$ibforums->lang['forgot_pass']} <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?act=Reg&amp;CODE=10'>{$ibforums->lang['pass_link']}</a></b>
<br />
<br />
<form action="{$ibforums->base_url}act=Login&amp;CODE=01" method="post" name='LOGIN' onsubmit='return ValidateForm()'>
<input type='hidden' name='referer' value="$referer" />
<div class="tableborder">
<div class="maintitle"><{CAT_IMG}>&nbsp;{$ibforums->lang['log_in']}</div>
<div class='pformstrip'>$message</div>
<table class="tablebasic" cellspacing="1">
<tr>
<td class='pformleftw'>{$ibforums->lang['enter_name']}</td>
<td class='pformright'><input type='text' size='20' maxlength='64' name='UserName' class='forminput' /></td>
</tr>
<tr>
<td class='pformleftw'>{$ibforums->lang['enter_pass']}</td>
<td class='pformright'><input type='password' size='20' name='PassWord' class='forminput' /></td>
</tr>
</table>
<div class="pformstrip">{$ibforums->lang['options']}</div>
<table class="tablebasic" cellspacing="1">
<tr>
<td class='pformleftw'>{$ibforums->lang['cookies']}</td>
<td class='pformright'><input type="radio" name="CookieDate" value="1" checked="checked" />{$ibforums->lang['cookie_yes']}<br /><input type="radio" name="CookieDate" value="0" />{$ibforums->lang['cookie_no']}</td>
</tr>
<tr>
<td class='pformleftw'>{$ibforums->lang['privacy']}</td>
<td class='pformright'><input type="checkbox" name="Privacy" value="1" />{$ibforums->lang['anon_name']}</td>
</tr>
</table>
<div class="pformstrip" align="center"><input type="submit" name='submit' value="{$ibforums->lang['log_in_submit']}" class='forminput' /></div>
</div>
</form>
EOF;
}
}
?>
-124
View File
@@ -1,124 +0,0 @@
<?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>
<form action='{$ibforums->base_url}' method='post'>
<input type='hidden' name='act' value='Members' />
<input type='hidden' name='s' value='{$ibforums->session_id}' />
<div align="left">{$links[SHOW_PAGES]}</div>
<br />
<div class='tableborder'>
<div class="maintitle">{$ibforums->lang['page_title']}</div>
<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<th class='pformstrip' width="30%">{$ibforums->lang['member_name']}</th>
<th class='pformstrip' align="center" width="10%">{$ibforums->lang['member_level']}</th>
<th class='pformstrip' align="center" width="10%">{$ibforums->lang['member_group']}</th>
<th class='pformstrip' align="center" width="20%">{$ibforums->lang['member_joined']}</th>
<th class='pformstrip' align="center" width="10%">{$ibforums->lang['member_posts']}</th>
<th class='pformstrip' align="center">{$ibforums->lang['member_email']}</th>
<th class='pformstrip' align="center">{$ibforums->lang['member_aol']}</th>
<th class='pformstrip' align="center">{$ibforums->lang['member_icq']}</th>
<th class='pformstrip' width="5%" align="center">{$ibforums->lang['member_photo']}</th>
</tr>
EOF;
}
function end($links) {
global $ibforums;
return <<<EOF
<br />
<div align="left">{$links[SHOW_PAGES]}</div>
EOF;
}
function no_results() {
global $ibforums;
return <<<EOF
No results
EOF;
}
function start() {
global $ibforums;
return <<<EOF
<!-- nothing here -->
EOF;
}
function Page_end($checked="") {
global $ibforums;
return <<<EOF
<!-- End content Table -->
<tr>
<td class='row3' colspan="9" align='center' valign='middle'>
<strong>{$ibforums->lang['photo_only']}&nbsp;<input type="checkbox" value="1" name="photoonly" class="forminput" $checked /></strong>
</td>
</tr>
<tr>
<td class='pformstrip' colspan="9" align='center' valign='middle'>
<select class='forminput' name='name_box'>
<option value='begins'>{$ibforums->lang['ch_begins']}</option>
<option value='contains'>{$ibforums->lang['ch_contains']}</option>
<option value='all' selected="selected">{$ibforums->lang['ch_all']}</option>
</select>&nbsp;&nbsp;<input class='forminput' type='text' size='25' name='name' value='{$ibforums->input['name']}' />
</td>
</tr>
<tr>
<td class='darkrow1' colspan="9" align='center' valign='middle'>
{$ibforums->lang['sorting_text']}&nbsp;<input type='submit' value='{$ibforums->lang['sort_submit']}' class='forminput' />
</td>
</tr>
</table>
</div>
</form>
EOF;
}
function show_row($member) {
global $ibforums;
return <<<EOF
<!-- Entry for {$member[MEMBER_NAME]} -->
<tr>
<td class='row4'><strong><a href="{$ibforums->base_url}showuser={$member['id']}">{$member['name']}</a></strong></td>
<td class='row4'>{$member['pips']}</td>
<td class='row2' align="center" width="20%">{$member['group']}</td>
<td class='row4' align="center" width="20%">{$member['joined']}</td>
<td class='row4' align="center" width="10%">{$member['posts']}</td>
<td class='row2' align="center">{$member['member_email']}</td>
<td class='row2' align="center">{$member['aim_name']}</td>
<td class='row2' align="center">{$member['icq_number']}</td>
<td class='row2' align="center">{$member['camera']}</td>
</tr>
<!-- End of Entry -->
EOF;
}
}
?>
-510
View File
@@ -1,510 +0,0 @@
<?php
class skin_mod {
function warn_view_header($id, $name, $links) {
global $ibforums;
return <<<EOF
<table cellspacing='0' cellpadding='0' width='100%' border='0'>
<tr>
<td align='left'><span id='phototitle'>$name</span></td>
<td align='right'>$links</td>
</tr>
</table>
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}>&nbsp;{$ibforums->lang['w_v_title']}: <a href='{$ibforums->base_url}showuser=$id'>$name</a></div>
</div>
<table cellspacing='1' width='100%' cellpadding='6' class='plainborder'>
<tr>
<th class='pformstrip' width='30%'>{$ibforums->lang['w_v_warnby']}</th>
<th class='pformstrip' width='70%'>{$ibforums->lang['w_v_notes']}</th>
</tr>
EOF;
}
function warn_view_positive_row($date, $content, $puni_name) {
global $ibforums;
return <<<EOF
<tr>
<td class='row4' valign='top'><strong>$puni_name</strong></td>
<td class='row4' valign='top'>{$ibforums->lang['w_v_warned_on']} <strong>$date</strong></td>
</tr>
<tr>
<td class='row1' valign='middle'><span class='warngood'>{$ibforums->lang['w_v_minus']}</span></td>
<td class='row1' valign='top'><span class='postcolor'>$content</span></td>
</tr>
EOF;
}
function warn_view_negative_row($date, $content, $puni_name) {
global $ibforums;
return <<<EOF
<tr>
<td class='row4' valign='top'><strong>$puni_name</strong></td>
<td class='row4' valign='top'>{$ibforums->lang['w_v_warned_on']} <strong>$date</strong></td>
</tr>
<tr>
<td class='row1' valign='middle'><span class='warnbad'>{$ibforums->lang['w_v_add']}</span></td>
<td class='row1' valign='top'><span class='postcolor'>$content</span></td>
</tr>
EOF;
}
function warn_view_none() {
global $ibforums;
return <<<EOF
<tr>
<td class='row1' colspan='2' align='center'><strong>{$ibforums->lang['w_v_none']}</strong></td>
</tr>
EOF;
}
function warn_view_footer() {
global $ibforums;
return <<<EOF
</table>
EOF;
}
function warn_success() {
global $ibforums;
return <<<EOF
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}>&nbsp;{$ibforums->lang['w_done_t']}</div>
<div class='pformstrip'>&nbsp;</div>
<div class='tablepad'>
{$ibforums->lang['w_done_te']}
<ul>
<li><a href='{$ibforums->base_url}'>{$ibforums->lang['w_done_home']}</a></li>
<!--IBF.FORUM_TOPIC-->
</ul>
</div>
</div>
EOF;
}
function warn_success_forum($fid, $fname, $tid, $tname, $st=0) {
global $ibforums;
return <<<EOF
<li><a href='{$ibforums->base_url}showforum=$fid'>{$ibforums->lang['w_done_forum']} <strong>$fname</strong></a></li>
<li><a href='{$ibforums->base_url}showtopic=$tid&amp;st=$st'>{$ibforums->lang['w_done_topic']} <strong>$tname</strong></a></li>
EOF;
}
function warn_errors($data) {
global $ibforums;
return <<<EOF
<div class="tableborder">
<div class="pformstrip">{$ibforums->lang['errors_found']}</div>
<div class="tablepad"><span class='postcolor'>$data</span></div>
</div>
<br />
EOF;
}
function warn_header($mid, $name, $cur=0, $min = 0, $max=10, $key, $tid='',$st='', $type) {
global $ibforums;
return <<<EOF
<form method='post' action='{$ibforums->base_url}&amp;act=warn&amp;CODE=dowarn&amp;mid=$mid&amp;t=$tid&amp;st=$st&amp;type={$ibforums->input['type']}'>
<input type='hidden' name='key' value='$key'>
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}>&nbsp;{$ibforums->lang['w_warnfor']} <a href='{$ibforums->base_url}showuser=$mid'>$name</a> ( $min &lt; $cur &gt; $max )</div>
<div class='pformstrip'>{$ibforums->lang['w_complete']}</div>
<table width='100%' cellpadding='0' border='0' cellspacing='0'>
<tr>
<td class='pformleftw'><strong>{$ibforums->lang['w_adjust_level']}</strong></td>
<td class='pformright'>
<input type='radio' name='level' id='add' class='radiobutton' value='add' {$type['add']} /><label for='add' class='warnbad'><strong>{$ibforums->lang['w_add']}</strong></label>
<br />
<input type='radio' name='level' id='minus' class='radiobutton' value='remove' {$type['minus']} /><label for='minus' class='warngood'><strong>{$ibforums->lang['w_remove']}</strong></label>
</tr>
EOF;
}
function warn_mod_posts($mod_tick, $mod_array, $mod_extra) {
global $ibforums;
return <<<EOF
<tr>
<td class='pformleftw'><strong>{$ibforums->lang['w_modq']}</strong></td>
<td class='pformright'>
<input type='checkbox' name='mod_indef' class='forminput' value='1' $mod_tick> {$ibforums->lang['w_modq_i']}
<br /><strong>{$ibforums->lang['w_orfor']}</strong>
<input type='input' name='mod_value' class='forminput' value='{$mod_array['timespan']}' size='5'> <select name='mod_unit' class='forminput'><option value='d' {$mod_array['days']}>{$ibforums->lang['w_day']}</option><option value='h' {$mod_array['hours']}>{$ibforums->lang['w_hour']}</option></select>
$mod_extra
</tr>
EOF;
}
function warn_rem_posts($post_tick, $post_array, $post_extra) {
global $ibforums;
return <<<EOF
<tr>
<td class='pformleftw'><strong>{$ibforums->lang['w_resposts']}</strong></td>
<td class='pformright'>
<input type='checkbox' name='post_indef' class='forminput' value='1' $post_tick> {$ibforums->lang['w_resposts_i']}
<br /><strong>{$ibforums->lang['w_orfor']}</strong>
<input type='input' name='post_value' class='forminput' value='{$post_array['timespan']}' size='5'> <select name='post_unit' class='forminput'><option value='d' {$post_array['days']}>{$ibforums->lang['w_day']}</option><option value='h' {$post_array['hours']}>{$ibforums->lang['w_hour']}</option></select>
$post_extra
</tr>
EOF;
}
function warn_suspend($susp_array, $susp_extra) {
global $ibforums;
return <<<EOF
<tr>
<td class='pformleftw'><strong>{$ibforums->lang['w_suspend']}</strong></td>
<td class='pformright'>
{$ibforums->lang['w_susfor']} <input type='input' name='susp_value' class='forminput' value='{$susp_array['timespan']}' size='5'> <select name='susp_unit' class='forminput'><option value='d' {$susp_array['days']}>{$ibforums->lang['w_day']}</option><option value='h' {$susp_array['hours']}>{$ibforums->lang['w_hour']}</option></select>
$susp_extra
</tr>
EOF;
}
function warn_footer() {
global $ibforums;
return <<<EOF
<tr>
<td class='pformleftw' valign='top'><strong>{$ibforums->lang['w_reason']}</strong><br />{$ibforums->lang['w_reason2']}</td>
<td class='pformright'><textarea rows='6' cols='70' class='textinput' name='reason'>{$ibforums->input['reason']}</textarea></td>
</tr>
<tr>
<td class='pformleftw'><strong>{$ibforums->lang['w_c_subj']}</strong></td>
<td class='pformright'><input type='input' name='subject' class='forminput' value='{$ibforums->input['subject']}' size='30'></td>
</tr>
<tr>
<td class='pformleftw' valign='top'><strong>{$ibforums->lang['w_contact']}</strong><br />{$ibforums->lang['w_contact2']}</td>
<td class='pformright'>
{$ibforums->lang['w_c']}&nbsp;<select name='contactmethod' class='forminput'><option value='pm'>{$ibforums->lang['w_c_p']}</option><option value='email'>{$ibforums->lang['w_c_e']}</option></select>
<br /><textarea rows='6' cols='70' class='textinput' name='contact'>{$ibforums->input['contact']}</textarea>
</td>
</tr>
</table>
<div align='center' class='pformstrip'><input type='submit' class='forminput' value='{$ibforums->lang['w_submit']}' /></div>
</div>
</form>
EOF;
}
function warn_restricition_in_place() {
global $ibforums;
return <<<EOF
<br /><strong>{$ibforums->lang['w_restricted']}</strong>
EOF;
}
function mod_exp($words) {
global $ibforums;
return <<<EOF
<div class='pformstrip'>$words</div>
EOF;
}
function end_form($action) {
global $ibforums;
return <<<EOF
<div class='pformstrip' align='center'><input type="submit" name="submit" value="$action" class='forminput' /></div>
</div>
</form>
EOF;
}
function move_form($jhtml, $forum_name) {
global $ibforums;
return <<<EOF
<table width='100%' cellspacing='1'>
<tr>
<td class='pformleftw'><strong>{$ibforums->lang[move_from]} <b>$forum_name</b> {$ibforums->lang[to]}</strong></td>
<td class='pformright'><select name='move_id' class='forminput'>$jhtml</select></td>
</tr>
<tr>
<td class='pformleftw'><strong>{$ibforums->lang['leave_link']}</strong></td>
<td class='pformright'><select name='leave' class='forminput'><option value='y' selected="selected">{$ibforums->lang['yes']}</option><option value='n'>{$ibforums->lang['no']}</option></select></td>
</tr>
</table>
EOF;
}
function delete_js() {
global $ibforums;
return <<<EOF
<script language='JavaScript' type='text/javascript'>
<!--
function ValidateForm() {
document.REPLIER.submit.disabled = true;
return true;
}
//-->
</script>
EOF;
}
function topictitle_fields($title, $desc) {
global $ibforums;
return <<<EOF
<table width='100%' cellspacing='1'>
<tr>
<td class='pformleftw'><strong>{$ibforums->lang[edit_f_title]}</strong></td>
<td class='pformright'><input type='text' size='40' maxlength='50' name='TopicTitle' value='$title' /></td>
</tr>
<tr>
<td class='pformleftw'><strong>{$ibforums->lang[edit_f_desc]}</strong></td>
<td class='pformright'><input type='text' size='40' maxlength='40' name='TopicDesc' value='$desc' /></td>
</tr>
</table>
EOF;
}
function poll_edit_top() {
global $ibforums;
return <<<EOF
<table width='100%' cellpadding='6' border='0' cellspacing='0'>
EOF;
}
function poll_entry($id, $entry) {
global $ibforums;
return <<<EOF
<tr>
<td class='row1'><b>{$ibforums->lang['pe_option']} $id</b></td>
<td class='row1'><input type='text' size='60' maxlength='250' name='POLL_$id' value='$entry'></td>
</tr>
EOF;
}
function poll_edit_new_entry($id) {
global $ibforums;
return <<<EOF
<tr>
<td class='row1'><b>{$ibforums->lang['pe_option']} $id</b> <em>( {$ibforums->lang['pe_unused']} )</em></td>
<td class='row1'><input type='text' size='60' maxlength='250' name='POLL_$id' value=''></td>
</tr>
EOF;
}
function poll_select_form($poll_question="") {
global $ibforums;
return <<<EOF
<tr>
<td class='row1'><b>{$ibforums->lang['pe_question']}</b></td>
<td class='row1'><input type='text' size='60' maxlength='250' name='poll_question' value='$poll_question'></td>
</tr>
<tr>
<td class='row1'><b>{$ibforums->lang['pe_pollonly']}</b></td>
<td class='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>
</table>
EOF;
}
function table_top($posting_title) {
global $ibforums;
return <<<EOF
<div class='tableborder'>
<div class='maintitle'>$posting_title</div>
EOF;
}
function topic_history($data) {
global $ibforums;
return <<<EOF
<div class='tableborder'>
<div class='maintitle'>{$ibforums->lang['th_title']}</div>
<table cellspacing='1' width='100%'>
<tr>
<td class='pformleftw'><b>{$ibforums->lang['th_topic']}</b></td>
<td class='pformright'>{$data['th_topic']}</td>
</tr>
<tr>
<td class='pformleftw'><b>{$ibforums->lang['th_desc']}</b></td>
<td class='pformright'>{$data['th_desc']}&nbsp;</td>
</tr>
<tr>
<td class='pformleftw'><b>{$ibforums->lang['th_start_date']}</b></td>
<td class='pformright'>{$data['th_start_date']}</td>
</tr>
<tr>
<td class='pformleftw'><b>{$ibforums->lang['th_start_name']}</b></td>
<td class='pformright'>{$data['th_start_name']}</td>
</tr>
<tr>
<td class='pformleftw'><b>{$ibforums->lang['th_last_date']}</b></td>
<td class='pformright'>{$data['th_last_date']}</td>
</tr>
<tr>
<td class='pformleftw'><b>{$ibforums->lang['th_last_name']}</b></td>
<td class='pformright'>{$data['th_last_name']}</td>
</tr>
<tr>
<td class='pformleftw'><b>{$ibforums->lang['th_avg_post']}</b></td>
<td class='pformright'>{$data['th_avg_post']}</td>
</tr>
</table>
</div>
EOF;
}
function mod_log_start() {
global $ibforums;
return <<<EOF
<br />
<div class='tableborder'>
<div class='maintitle'>{$ibforums->lang['ml_title']}</div>
<table cellspacing='1' width='100%'>
<tr>
<td class='pformstrip' width='30%'><b>{$ibforums->lang['ml_name']}</b></td>
<td class='pformstrip' width='50%'><b>{$ibforums->lang['ml_desc']}</b></td>
<td class='pformstrip' width='20%'><b>{$ibforums->lang['ml_date']}</b></td>
</tr>
EOF;
}
function mod_log_none() {
global $ibforums;
return <<<EOF
<tr>
<td class='pformright' colspan='3' align='center'><i>{$ibforums->lang['ml_none']}</i></td>
</tr>
EOF;
}
function mod_log_row($data) {
global $ibforums;
return <<<EOF
<tr>
<td class='pformright'>{$data['member']}</td>
<td class='pformright'>{$data['action']}</td>
<td class='pformright'>{$data['date']}</td>
</tr>
EOF;
}
function mod_log_end() {
global $ibforums;
return <<<EOF
</table>
</div>
EOF;
}
function forum_jump($data, $menu_extra="") {
global $ibforums;
return <<<EOF
<br />
<div align='right'>{$data}</div>
<br />
EOF;
}
function split_body($jump="") {
global $ibforums;
return <<<EOF
<table cellspacing='1' width='100%'>
<tr>
<td class='pformleftw'><b>{$ibforums->lang['mt_new_title']}</b></td>
<td class='pformright'><input type='text' size='40' class='forminput' maxlength='100' name='title' value='' /></td>
</tr>
<tr>
<td class='pformleftw'><b>{$ibforums->lang['mt_new_desc']}</b></td>
<td class='pformright'><input type='text' size='40' class='forminput' maxlength='100' name='desc' value='' /></td>
</tr>
<tr>
<td class='pformleftw'><b>{$ibforums->lang['st_forum']}</b></td>
<td class='pformright'><select name='fid' class='forminput'>$jump</select></td>
</tr>
</table>
</div>
<br />
<div class='tableborder'>
<div class='maintitle'>{$ibforums->lang['st_post']}</div>
EOF;
}
function split_row($row) {
global $ibforums;
return <<<EOF
<div class='pformstrip'>{$row['st_top_bit']}</div>
<div class='tablepad'>
{$row['post']}
<div align='right'><b>{$ibforums->lang['st_split']}</b>&nbsp;&nbsp;<input type='checkbox' name='post_{$row['pid']}' value='1' /></div>
</div>
EOF;
}
function split_end_form($action) {
global $ibforums;
return <<<EOF
<div class='pformstrip' align='center'> <input type="submit" name="submit" value="$action" class='forminput' /></div>
</div>
</form>
EOF;
}
function merge_body($title="", $desc="") {
global $ibforums;
return <<<EOF
<table cellspacing='1' width='100%'>
<tr>
<td class='pformleftw'><b>{$ibforums->lang['mt_new_title']}</b></td>
<td class='pformright'><input type='text' size='40' maxlength='50' name='title' value='$title' /></td>
</tr>
<tr>
<td class='pformleftw'><b>{$ibforums->lang['mt_new_desc']}</b></td>
<td class='pformright'><input type='text' size='40' maxlength='40' name='desc' value='$desc' /></td>
</tr>
<tr>
<td class='pformleftw'><b>{$ibforums->lang['mt_tid']}</b></td>
<td class='pformright'><input type='text' size='50' name='topic_url' value='' /></td>
</tr>
</table>
EOF;
}
} // end class
?>
-754
View File
@@ -1,754 +0,0 @@
<?php
class skin_modcp {
function mm_start() {
global $ibforums;
return <<<EOF
<option value='-1'>------------------------------</option>
<option value='-1'>{$ibforums->lang['mm_title']}</option>
<option value='-1'>------------------------------</option>
EOF;
}
function mm_entry($id, $title) {
global $ibforums;
return <<<EOF
<option value='t_{$id}'>-- $title</option>
EOF;
}
function mm_end() {
global $ibforums;
return <<<EOF
EOF;
}
function mod_cp_start() {
global $ibforums;
return <<<EOF
<div class='tableborder'>
<div align='center' class='pformstrip'>
<a href='{$ibforums->base_url}act=modcp&amp;CODE=showforums'>{$ibforums->lang['menu_forums']}</a> &middot;
<a href='{$ibforums->base_url}act=modcp&amp;CODE=members'>{$ibforums->lang['menu_users']}</a> &middot;
<a href='{$ibforums->base_url}act=modcp&amp;CODE=ip'>{$ibforums->lang['menu_ip']}</a>
</div>
</div>
<br />
EOF;
}
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}'>
<strong>{$ibforums->lang['cp_mod_posts_title2']} $forumname</strong>
<br />$pages
<div class='tableborder'>
<div class='maintitle'>$title</div>
EOF;
}
function modpost_topicstart($forumname, $fid) {
global $ibforums;
return <<<EOF
<div class='tableborder'>
<div class='maintitle'>{$ibforums->lang['cp_mod_posts_title2']} $forumname</div>
<table width='100%' cellpadding='4' cellspacing='1'>
<tr>
<th class='pformstrip' width='40%' align='left'>{$ibforums->lang['cp_3_title']}</th>
<th class='pformstrip' width='20%' align='center'>{$ibforums->lang['cp_3_replies']}</th>
<th class='pformstrip' width='20%' align='center'>{$ibforums->lang['cp_3_approveall']}</th>
<th class='pformstrip' width='20%' align='center'>{$ibforums->lang['cp_3_viewall']}</th>
</tr>
EOF;
}
function modpost_topicentry($title, $tid, $replies, $fid) {
global $ibforums;
return <<<EOF
<tr>
<td class='row1' width='40%' align='left'><b><a href='{$ibforums->base_url}act=ST&amp;f=$fid&amp;t=$tid' target='_blank'>$title</a></b></td>
<td class='row1' width='20%' align='center'>$replies</td>
<td class='row1' width='20%' align='center'><a href='{$ibforums->base_url}act=modcp&amp;f=$fid&amp;tid=$tid&amp;CODE=modtopicapprove'>{$ibforums->lang['cp_3_approveall']}</a></td>
<td class='row1' width='20%' align='center'><a href='{$ibforums->base_url}act=modcp&amp;f=$fid&amp;tid=$tid&amp;CODE=modtopicview'>{$ibforums->lang['cp_3_viewall']}</a></td>
</tr>
EOF;
}
function modpost_topicend() {
global $ibforums;
return <<<EOF
</table>
</div>
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}'>
<strong>{$ibforums->lang['cp_mod_topics_title2']} $forumname</strong>
<br />$pages
EOF;
}
function modtopics_end() {
global $ibforums;
return <<<EOF
<div class='tableborder'>
<div class='pformstrip' align='center'><input type='submit' value='{$ibforums->lang['cp_1_go']}' class='forminput' /></div>
</div>
</form>
EOF;
}
function mod_topic_title($title, $topic_id) {
global $ibforums;
return <<<EOF
<div class='tableborder'>
<div class='titlemedium'><select name='TID_$topic_id' class='forminput'><option value='approve'>{$ibforums->lang['cp_1_approve']}</option><option value='remove'>{$ibforums->lang['cp_1_remove']}</option><option value='leave'>{$ibforums->lang['cp_1_leave']}</option></select>&nbsp;&nbsp; $title</div>
EOF;
}
function mod_postentry($data) {
global $ibforums;
return <<<EOF
<table width='100%' cellspacing='1'>
<tr>
<td valign='top' class='row1' nowrap="nowrap"><span class='normalname'>{$data['member']['name']}</span><br /><br />{$data['member']['avatar']}<span class='postdetails'><br />{$data['member']['MEMBER_GROUP']}<br />{$data['member']['MEMBER_POSTS']}<br />{$data['member']['MEMBER_JOINED']}</span></td>
<td valign='top' class='row1' width='100%'>
<b>{$ibforums->lang['posted_on']} {$data['msg']['post_date']}</b><br /><br />
<span class='postcolor'>
{$data['msg']['post']}
</span>
</td>
</tr>
</table>
EOF;
}
function mod_postentry_checkbox($pid) {
global $ibforums;
return <<<EOF
<div class='pformstrip' align='right'><select name='PID_$pid' class='forminput'><option value='approve'>{$ibforums->lang['cp_1_approve']}</option><option value='remove'>{$ibforums->lang['cp_1_remove']}</option><option value='leave'>{$ibforums->lang['cp_1_leave']}</option></select>&nbsp;&nbsp;{$ibforums->lang['cp_3_postno']}&nbsp;$pid</div>
EOF;
}
function mod_topic_spacer() {
global $ibforums;
return <<<EOF
</div>
<br />
EOF;
}
function results($text) {
global $ibforums;
return <<<EOF
<tr>
<td colspan='2'>
<table cellpadding='2' cellspacing='1' border='0' width='100%' class='fancyborder' align='center'>
<tr>
<td><span class='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, $key) {
global $ibforums;
return <<<EOF
<div class='tableborder'>
<div class='maintitle'>{$ibforums->lang['mpt_confirm']}</div>
<div class='pformstrip'>{$ibforums->lang['cp_check_result']}</div>
<table width='100%' cellspacing='0'>
<tr>
<td class='pformleftw'><strong>{$ibforums->lang['cp_total_topics']}</strong></td>
<td class='pformright'>$tcount</td>
</tr>
<tr>
<td class='pformleftw'><span style='color:red;font-weight:bold;'>{$ibforums->lang['cp_total_match']}</span></td>
<td class='pformright'><span style='color:red;font-weight:bold;'>$count</span></td>
</tr>
</table>
<form action='{$ibforums->base_url}$link' method='post'>
<input type='hidden' name='key' value='$key' />
<div class='pformstrip' align='center'><input type='submit' class='forminput' value='$link_text' /></div>
</form>
</div>
<br />
EOF;
}
function prune_splash($forum, $forums, $select) {
global $ibforums;
return <<<EOF
<!-- IBF.CONFIRM -->
<div class='tableborder'>
<div class='maintitle'>{$ibforums->lang['cp_prune']} {$forum['name']}</div>
<div class='pformstrip'>{$ibforums->lang['mpt_help']}</div>
<div class='tablepad'>{$ibforums->lang['cp_prune_text']}</div>
<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'>
<div class='pformstrip'>{$ibforums->lang['mpt_title']}</div>
<table width='100%' cellspacing='0'>
<tr>
<td class='pformleftw'>{$ibforums->lang['cp_action']}</td>
<td class='pformright'><select name='df' class='forminput'>$forums</select></td>
</tr>
<tr>
<td class='pformleftw'>{$ibforums->lang['cp_prune_days']}</td>
<td class='pformright'><input type='text' size='40' name='dateline' value='{$ibforums->input['dateline']}' class='forminput' /></td>
</tr>
<tr>
<td class='pformleftw'>{$ibforums->lang['cp_prune_type']}</td>
<td class='pformright'>$select &nbsp; <input type='checkbox' id='cbox' name='ignore_pin' value='1' checked='checked' class='checkbox' />&nbsp;<label for='cbox'>{$ibforums->lang['mps_ignorepin']}</label></td>
</tr>
<tr>
<td class='pformleftw'>{$ibforums->lang['cp_prune_replies']}</td>
<td class='pformright'><input type='text' size='40' name='posts' value='{$ibforums->input['posts']}' class='forminput' /></td>
</tr>
<tr>
<td class='pformleftw'>{$ibforums->lang['cp_prune_member']}</td>
<td class='pformright'><input type='text' size='40' name='member' value='{$ibforums->input['member']}' class='forminput' /></td>
</tr>
</table>
<div class='pformstrip' align='center'><input type='submit' value='{$ibforums->lang['cp_prune_sub1']}' class='forminput' /></div>
</form>
</div>
EOF;
}
function edit_user_form($profile) {
global $ibforums;
return <<<EOF
<form name='ibform' action='{$ibforums->base_url}act=modcp&amp;CODE=compedit&amp;memberid={$profile['id']}' method='post'>
<div class='tableborder'>
<div class='maintitle'>{$ibforums->lang['cp_edit_user']}: {$profile['name']}</div>
<table class='tablebasic'>
<tr>
<td class='pformleft'>{$ibforums->lang['cp_remove_av']}</td>
<td class='pformright'><select name='avatar' class='forminput'><option value='0'>{$ibforums->lang['no']}</option><option value='1'>{$ibforums->lang['yes']}</option></select></td>
</tr>
<tr>
<td class='pformleft'>{$ibforums->lang['cp_remove_photo']}</td>
<td class='pformright'><select name='photo' class='forminput'><option value='0'>{$ibforums->lang['no']}</option><option value='1'>{$ibforums->lang['yes']}</option></select></td>
</tr>
<tr>
<td class='pformleft'>{$ibforums->lang['cp_edit_website']}</td>
<td class='pformright'><input type='text' size='40' name='website' value='{$profile['website']}' class='forminput' /></td>
</tr>
<tr>
<td class='pformleft'>{$ibforums->lang['cp_edit_location']}</td>
<td class='pformright'><input type='text' size='40' name='location' value='{$profile['location']}' class='forminput' /></td>
</tr>
<tr>
<td class='pformleft'>{$ibforums->lang['cp_edit_interests']}</td>
<td class='pformright'><textarea cols='50' rows='3' name='interests' class='forminput'>{$profile['interests']}</textarea></td>
</tr>
<tr>
<td class='pformleft'>{$ibforums->lang['cp_edit_signature']}</td>
<td class='pformright'><textarea cols='50' rows='5' name='signature' class='forminput'>{$profile['signature']}</textarea></td>
</tr>
</table>
<div class='pformstrip' align='center'><input type='submit' value='{$ibforums->lang['cp_find_2_submit']}' class='forminput' /></div>
</div>
</form>
EOF;
}
function find_two($select) {
global $ibforums;
return <<<EOF
<form name='ibform' action='{$ibforums->base_url}act=modcp&amp;CODE=doedituser' method='post'>
<div class='tableborder'>
<div class='maintitle'>{$ibforums->lang['cp_edit_user']}</div>
<table class='tablebasic' cellspacing="1" cellpadding="3">
<tr>
<td width='40%' class='row1'>{$ibforums->lang['cp_find_2_user']}</td>
<td class='row1'>$select</td>
</tr>
</table>
<div class='pformstrip' align='center'><input type='submit' value='{$ibforums->lang['cp_find_2_submit']}' class='forminput' /></div>
</div>
</form>
EOF;
}
function find_user() {
global $ibforums;
return <<<EOF
<form name='ibform' action='{$ibforums->base_url}act=modcp&amp;CODE=dofinduser' method='post'>
<div class='tableborder'>
<div class='maintitle'>{$ibforums->lang['cp_edit_user']}</div>
<table class='tablebasic' cellspacing="1" cellpadding="3">
<tr>
<td width='40%' class='row1'>{$ibforums->lang['cp_find_user']}</td>
<td class='row1'><input type='text' size='40' name='name' value='' class='forminput' /></td>
</tr>
</table>
<div class='pformstrip' align='center'><input type='submit' value='{$ibforums->lang['cp_find_submit']}' class='forminput' /></div>
</div>
</form>
EOF;
}
function ip_start_form($ip="") {
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='doip'>
<div class='tableborder'>
<div class='maintitle'>{$ibforums->lang['menu_ip']}</div>
<table class='tablebasic'>
<tr>
<td width='40%' class='row1'>{$ibforums->lang['ip_enter']}</td>
<td class='row1'>
<input type='text' size='20' maxlength='24' name='ip' value='{$ip}' class='forminput' />
<select name='iptool' class='forminput'>
<option value='resolve'>{$ibforums->lang['ip_resolve']}</option>
<option value='posts'>{$ibforums->lang['ip_posts']}</option>
<option value='members'>{$ibforums->lang['ip_members']}</option>
</select>
</td>
</tr>
</table>
<div class='pformstrip' align='center'><input type='submit' value='{$ibforums->lang['ip_submit']}' class='forminput' /></div>
</div>
</form>
<br />
<div class='tableborder'>
<div class='maintitle'>{$ibforums->lang['iph_title']}</div>
<div class='tablepad' style='line-height:150%'>{$ibforums->lang['ip_desc_text']}<br /><br />{$ibforums->lang['ip_warn_text']}</div>
</div>
EOF;
}
function ip_member_start($pages) {
global $ibforums;
return <<<EOF
<div align='left'>$pages</div>
<br />
<div class='tableborder'>
<div class='maintitle'>{$ibforums->lang['ipm_title']}</div>
<table cellpadding='6' class='tablebasic'>
<tr>
<th class='pformstrip' width='20%'>{$ibforums->lang['ipm_name']}</th>
<th class='pformstrip' width='20%'>{$ibforums->lang['ipm_ip']}</th>
<th class='pformstrip' width='10%'>{$ibforums->lang['ipm_posts']}</th>
<th class='pformstrip' width='20%'>{$ibforums->lang['ipm_reg']}</th>
<th class='pformstrip' width='30%'>{$ibforums->lang['ipm_options']}</th>
</tr>
EOF;
}
function ip_member_row($row) {
global $ibforums;
return <<<EOF
<tr>
<td class='row2'>{$row['name']}</td>
<td class='row2'>{$row['ip_address']}</td>
<td class='row2'>{$row['posts']}</td>
<td class='row2'>{$row['joined']}</td>
<td class='row2' align='center'><a href='{$ibforums->base_url}showuser={$row['id']}' target='_blank'>{$ibforums->lang['ipm_view']}</a>
| <a href='{$ibforums->base_url}act=modcp&amp;CODE=doedituser&amp;memberid={$row['id']}'>{$ibforums->lang['ipm_edit']}</a></td>
</tr>
EOF;
}
function ip_member_end($pages) {
global $ibforums;
return <<<EOF
</table>
</div>
<br />
<div align='left'>$pages</div>
EOF;
}
function splash($tcount, $pcount, $forum) {
global $ibforums;
return <<<EOF
<tr>
<td class='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%' class='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 class='row1' colspan='2'>$words</td>
</tr>
EOF;
}
function end_form($action) {
global $ibforums;
return <<<EOF
<tr>
<td class='row2' align='center' colspan='2'>
<input type="submit" name="submit" value="$action" class='forminput'>
</td></tr></table>
</td></tr></table>
</form>
EOF;
}
function forum_row($info) {
global $ibforums;
return <<<EOF
<!-- Forum {$info['id']} entry -->
<tr>
<td class='row4' align='center' width='5%'>{$info['folder_icon']}</td>
<td class="row4" colspan=2><b><a href="{$ibforums->base_url}act=modcp&amp;CODE=showtopics&amp;f={$info['id']}">{$info['name']}</a></b><br /><span class='desc'>{$info['description']}</span><br />{$info['moderator']}</td>
<td class="row2" align="center">{$info['q_topics']}</td>
<td class="row2" align="center">{$info['q_posts']}</td>
<td class="row2">{$info['last_post']}<br />{$ibforums->lang['in']}: {$info['last_topic']}<br />{$ibforums->lang['by']}: {$info['last_poster']}</td>
<td class="row2" align="center">{$info['select_button']}</td>
</tr>
<!-- End of Forum {$info['id']} entry -->
EOF;
}
function subforum_row($info) {
global $ibforums;
return <<<EOF
<!-- Forum {$info['id']} entry -->
<tr>
<td class='row4' align='center' width='5%'>&nbsp;</td>
<td class='row4' align='center' width='5%'>{$info['folder_icon']}</td>
<td class="row2"><b><a href="{$ibforums->base_url}act=modcp&amp;CODE=showtopics&amp;f={$info['id']}">{$info['name']}</a></b><br /><span class='desc'>{$info['description']}</span><br />{$info['moderator']}</td>
<td class="row2" align="center">{$info['q_topics']}</td>
<td class="row2" align="center">{$info['q_posts']}</td>
<td class="row2">{$info['last_post']}<br />{$ibforums->lang['in']}: {$info['last_topic']}<br />{$ibforums->lang['by']}: {$info['last_poster']}</td>
<td class="row2" align="center"><input type='radio' name='f' value='{$info['id']}' /></td>
</tr>
<!-- End of Forum {$info['id']} entry -->
EOF;
}
function forum_page_start() {
global $ibforums;
return <<<EOF
<form action='{$ibforums->base_url}act=modcp&amp;CODE=fchoice' method='post'>
<div class='tableborder'>
<table class='tablebasic' cellspacing="1" cellpadding="3">
EOF;
}
function cat_row($cat_name) {
global $ibforums;
return <<<EOF
<tr>
<td colspan='7' class='maintitle'>$cat_name</td>
</tr>
<tr>
<th class='titlemedium' align='left' width='5%'>&nbsp;</th>
<th width="35%" class='titlemedium' colspan='2'>{$ibforums->lang['cat_name']}</th>
<th width="15%" class='titlemedium'>{$ibforums->lang['f_q_topics']}</th>
<th width="15%" class='titlemedium'>{$ibforums->lang['f_q_posts']}</th>
<th width="25%" class='titlemedium'>{$ibforums->lang['last_post_info']}</th>
<th width="5%" class='titlemedium'>{$ibforums->lang['f_select']}</th>
</tr>
EOF;
}
function forum_page_end() {
global $ibforums;
return <<<EOF
<tr>
<td colspan='7' class='row2' align='right'><b>{$ibforums->lang['f_w_selected']}</b>
<select class='forminput' name='fact'>
<option value='mod_topic'>{$ibforums->lang['cp_mod_topics']}</option>
<option value='mod_post'>{$ibforums->lang['cp_mod_posts']}</option>
<option value='prune_move'>{$ibforums->lang['cp_prune_posts']}</option>
</select>&nbsp;<input type='submit' value='{$ibforums->lang['f_go']}' class='forminput' />
</td>
</tr>
</table>
</div>
</form>
EOF;
}
function mod_simple_page($title="",$msg="") {
global $ibforums;
return <<<EOF
<div class='tableborder'>
<div class='maintitle'>$title</div>
<div class='tablepad'>$msg</div>
</div>
EOF;
}
function ip_post_results($uid="",$count="") {
global $ibforums;
return <<<EOF
{$ibforums->lang['ipp_found']} $count
<br />
<br />
<a target='_blank' href='{$ibforums->base_url}act=Search&amp;CODE=show&amp;searchid=$uid&amp;search_in=posts&amp;result_type=posts'>{$ibforums->lang['ipp_click']}</a>
EOF;
}
function start_topics($pages,$info) {
global $ibforums;
return <<<EOF
<script language='javascript'>
<!--
function checkdelete() {
isDelete = document.topic.tact.options[document.topic.tact.selectedIndex].value;
msg = '';
if (isDelete == 'delete')
{
msg = "{$ibforums->lang['cp_js_delete']}";
formCheck = confirm(msg);
if (formCheck == true)
{
return true;
}
else
{
return false;
}
}
}
//-->
</script>
<form action='{$ibforums->base_url}act=modcp&amp;f={$info['id']}&amp;CODE=topicchoice' method='post' name='topic' onsubmit='return checkdelete();'>
<div class='pagelinks'>$pages</div>
<div align='right'>
<a href='{$ibforums->base_url}act=modcp&amp;fact=mod_topic&amp;CODE=fchoice&amp;f={$info['id']}'>{$ibforums->lang['cp_mod_topics']}</a> &middot;
<a href='{$ibforums->base_url}act=modcp&amp;fact=mod_post&amp;CODE=fchoice&amp;f={$info['id']}'>{$ibforums->lang['cp_mod_posts']}</a> &middot;
<a href='{$ibforums->base_url}act=modcp&amp;fact=prune_move&amp;CODE=fchoice&amp;f={$info['id']}'>{$ibforums->lang['cp_prune_posts']}</a>
</div>
<br />
<div class='tableborder'>
<div class='maintitle'>{$info['name']} [ <a target='_blank' href='{$ibforums->base_url}showforum={$info['id']}'>{$ibforums->lang['new_show_forum']}</a> ]</div>
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
<tr>
<td class='titlemedium' style='width:5px'>&nbsp;</td>
<td class='titlemedium' style='width:5px'>&nbsp;</td>
<td width='40%' class='titlemedium'>{$ibforums->lang['h_topic_title']}</td>
<td width='15%' align='center' nowrap="nowrap" class='titlemedium'>{$ibforums->lang['h_topic_starter']}</td>
<td width='7%' align='center' nowrap="nowrap" class='titlemedium'>{$ibforums->lang['h_replies']}</td>
<td width='8%' align='center' nowrap="nowrap" class='titlemedium'>{$ibforums->lang['h_hits']}</td>
<td width='25%' nowrap="nowrap" class='titlemedium'>{$ibforums->lang['h_last_action']}</td>
<td width='5%' nowrap="nowrap" class='titlemedium'>{$ibforums->lang['f_select']}</td>
</tr>
EOF;
}
function show_no_topics() {
global $ibforums;
return <<<EOF
<tr>
<td class='row4' colspan='8' align='center'>
<br />
<b>{$ibforums->lang['fv_no_topics']}</b>
<br /><br />
</td>
</tr>
EOF;
}
function topic_row($data) {
global $ibforums;
return <<<EOF
<!-- Begin Topic Entry {$data['tid']} -->
<tr>
<td align='center' class='row4'>{$data['folder_img']}</td>
<td align='center' class='row2'>{$data['topic_icon']}</td>
<td class='row4'>{$data['prefix']} <a target='_blank' href='{$ibforums->base_url}showtopic={$data['tid']}' title='{$ibforums->lang['topic_started_on']} {$data['start_date']}'>{$data['title']}</a><br /><span class='desc'>{$data['description']}</span></td>
<td align='center' class='row2'>{$data['starter']}</td>
<td align='center' class='row4'>{$data['posts']}</td>
<td align='center' class='row2'>{$data['views']}</td>
<td class='row2'>{$data['last_post']}<br />{$data['last_text']} <b>{$data['last_poster']}</b></td>
<td align='center' class='row2'><input type='checkbox' name='TID_{$data['real_tid']}' value='1' /></td>
</tr>
<!-- End Topic Entry {$data['tid']} -->
EOF;
}
function topics_end($data) {
global $ibforums;
return <<<EOF
</table>
<div class='pformstrip' align='center'>
{$ibforums->lang['t_w_selected']}
<select class='forminput' name='tact'>
<option value='close'>{$ibforums->lang['cpt_close']}</option>
<option value='open'>{$ibforums->lang['cpt_open']}</option>
<option value='pin'>{$ibforums->lang['cpt_pin']}</option>
<option value='unpin'>{$ibforums->lang['cpt_unpin']}</option>
<option value='move'>{$ibforums->lang['cpt_move']}</option>
<option value='delete'>{$ibforums->lang['cpt_delete']}</option>
<!--IBF.MMOD-->
</select> &nbsp;<input type='submit' value='{$ibforums->lang['f_go']}' class='forminput' />
</div>
</div>
</form>
EOF;
}
function move_checked_form_start($forum_name, $fid) {
global $ibforums;
return <<<EOF
<form action='{$ibforums->base_url}act=modcp&amp;CODE=topicchoice&amp;tact=domove&amp;f=$fid' method='post'>
<div class='tableborder'>
<div class='maintitle'>{$ibforums->lang['cp_tmove_start']} $forum_name</div>
<table class='tablebasic'>
EOF;
}
function move_checked_form_entry($tid, $title) {
global $ibforums;
return <<<EOF
<tr>
<td class='row1' width='10%' align='center'><input type='checkbox' name='TID_$tid' value='1' checked="checked" /></td>
<td class='row1' width='90%' align='left'><strong>$title</strong></td>
</tr>
EOF;
}
function move_checked_form_end($jump_html) {
global $ibforums;
return <<<EOF
</table>
<div align='center' class='tablepad'>{$ibforums->lang['cp_tmove_to']}&nbsp;&nbsp;<select class='forminput' name='df'>$jump_html</select></div>
<div align='center' class='pformstrip'><input type='submit' value='{$ibforums->lang['cp_tmove_end']}' class='forminput' /></div>
</div>
</form>
EOF;
}
}
?>
-983
View File
@@ -1,983 +0,0 @@
<?php
class skin_msg {
function preview($data) {
global $ibforums;
return <<<EOF
<div class="pformstrip">{$ibforums->lang['pm_preview']}</div>
<p>$data</p>
EOF;
}
function pm_errors($data) {
global $ibforums;
return <<<EOF
<div class="pformstrip">{$ibforums->lang['err_errors']}</div>
<span class='postcolor'><p>$data<br /><br />{$ibforums->lang['pme_none_sent']}</p></span>
EOF;
}
function pm_popup($text, $mid) {
global $ibforums;
return <<<EOF
<script language='javascript'>
<!--
function goto_inbox() {
opener.document.location.href = '{$ibforums->base_url}act=Msg&amp;CODE=01';
window.close();
}
function goto_this_inbox() {
window.resizeTo('700','500');
document.location.href = '{$ibforums->base_url}&act=Msg&CODE=01';
}
function go_read_msg() {
window.resizeTo('700','500');
document.location.href = '{$ibforums->base_url}&act=Msg&CODE=03&VID=in&MSID=$mid';
}
//-->
</script>
<table cellspacing='1' cellpadding='10' width='100%' height='100%' align='center' class='row1'>
<tr>
<td id='phototitle' 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:go_read_msg();'>{$ibforums->lang['pmp_get_last']}</a>
<br /><br />
<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>
<style type='text/css'>
BODY { font-family: Verdana, Tahoma, Arial, sans-serif;
font-size: 11px;
color: #000;
margin:0px;
padding:0px;
background-color:#FFF;
text-align:center
}
#ipbwrapper { text-align:left; width:95%; margin-left:auto;margin-right:auto }
html { overflow-x: auto; }
a:link, a:visited, a:active { text-decoration: underline; color: #000 }
a:hover { color: #465584; text-decoration:underline }
img { vertical-align:middle; border:0px }
.post1 { background-color: #F5F9FD }
.post2 { background-color: #EEF2F7 }
/* Common elements */
.row1 { background-color: #F5F9FD }
.row2 { background-color: #DFE6EF }
.row3 { background-color: #EEF2F7 }
.row4 { background-color: #E4EAF2 }
/* tableborders gives the white column / row lines effect */
.plainborder { border:1px solid #345487;background-color:#F5F9FD }
.tableborder { border:1px solid #345487;background-color:#FFF; padding:0; margin:0 }
.tablefill { border:1px solid #345487;background-color:#F5F9FD;padding:6px; }
.tablepad { background-color:#F5F9FD;padding:6px }
.tablebasic { width:100%; padding:0px 0px 0px 0px; margin:0px; border:0px }
.pformstrip { background-color: #D1DCEB; color:#3A4F6C;font-weight:bold;padding:7px;margin-top:1px }
#QUOTE { font-family: Verdana, Arial; font-size: 11px; color: #465584; background-color: #FAFCFE; border: 1px solid #000; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px }
#CODE { font-family: Courier, Courier New, Verdana, Arial; font-size: 11px; color: #465584; background-color: #FAFCFE; border: 1px solid #000; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px }
/* Main table top (dark blue gradient by default) */
.maintitle { vertical-align:middle;font-weight:bold; color:#FFF; background-color:D1DCEB;padding:8px 0px 8px 5px; background-image: url({$ibforums->vars['board_url']}/style_images/<#IMG_DIR#>/tile_back.gif) }
.maintitle a:link, .maintitle a:visited, .maintitle a:active { text-decoration: none; color: #FFF }
.maintitle a:hover { text-decoration: underline }
/* Topic View elements */
.signature { font-size: 10px; color: #339; line-height:150% }
.postdetails { font-size: 10px }
.postcolor { font-size: 12px; line-height: 160% }
</style>
<body>
<div id='ipbwrapper'>
EOF;
}
function archive_html_entry($info) {
global $ibforums;
return <<<EOF
<div class='tableborder'>
<div class='maintitle'><img src="{$ibforums->vars['board_url']}/style_images/<#IMG_DIR#>/f_norm.gif" alt='PM' />&nbsp;PM: {$info['msg_title']}</div>
<div class='tablefill'><div class='postcolor'>{$info['msg_content']}</div></div>
<div class='pformstrip'>Sent by <b>{$info['msg_sender']}</b> on {$info['msg_date']}</div>
</div>
<br />
EOF;
}
function archive_html_entry_sent($info) {
global $ibforums;
return <<<EOF
<div class='tableborder'>
<div class='maintitle'><img src="{$ibforums->vars['board_url']}/style_images/<#IMG_DIR#>/f_moved.gif" alt='PM' />&nbsp;PM: {$info['msg_title']}</div>
<div class='tablefill'><div class='postcolor'>{$info['msg_content']}</div></div>
<div class='pformstrip'>Sent to <b>{$info['msg_sender']}</b> on {$info['msg_date']}</div>
</div>
<br />
EOF;
}
function archive_html_footer() {
global $ibforums;
return <<<EOF
</div>
</body>
</html>
EOF;
}
function archive_complete() {
global $ibforums;
return <<<EOF
<div class="pformstrip">{$ibforums->lang['arc_comp_title']}</div>
<p>{$ibforums->lang['arc_complete']}</p>
EOF;
}
function archive_form($jump_html="") {
global $ibforums;
return <<<EOF
<form action="{$ibforums->base_url}" method="post">
<input type='hidden' name='act' value='Msg' />
<input type='hidden' name='CODE' value='15' />
<div class="pformstrip">{$ibforums->lang['archive_title']}</div>
<p>{$ibforums->lang['archive_text']}</p>
<table width="100%" style="padding:6px">
<tr>
<td><b>{$ibforums->lang['arc_folders']}</b></td>
<td>$jump_html</td>
</tr>
<tr>
<td><b>{$ibforums->lang['arc_dateline']}</b></td>
<td valign='middle'><select name='dateline' class='forminput'>
<option value='1'>1</option>
<option value='7'>7</option>
<option value='30' selected='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']}
<select name='oldnew' class='forminput'>
<option value='newer' selected='selected'>{$ibforums->lang['arch_new']}</option>
<option value='older'>{$ibforums->lang['arch_old']}</option>
</select>
</td>
</tr>
<tr>
<td><b>{$ibforums->lang['arc_max']}</b></td>
<td 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><b>{$ibforums->lang['arc_delete']}</b></td>
<td valign='middle'><select name='delete' class='forminput'><option value='yes'>{$ibforums->lang['arc_yes']}</option><option value='no' selected='selected'>{$ibforums->lang['arc_no']}</option></select></td>
</tr>
<tr>
<td><b>{$ibforums->lang['arc_type']}</b></td>
<td 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>
</table>
<div class="pformstrip" align="center"><input type="submit" value="{$ibforums->lang['arc_submit']}" class='forminput' /></div>
</form>
EOF;
}
function No_msg_inbox() {
global $ibforums;
return <<<EOF
<tr>
<td class='row1' colspan='5' align='center'><b>{$ibforums->lang['inbox_no_msg']}</b></td>
</tr>
EOF;
}
function empty_folder_header() {
global $ibforums;
return <<<EOF
<form action="{$ibforums->base_url}" method="post">
<input type='hidden' name='act' value='Msg' />
<input type='hidden' name='CODE' value='dofolderdelete' />
<div class="pformstrip">{$ibforums->lang['mi_prune_msg']}</div>
<p>{$ibforums->lang['fd_text']}</p>
<div class="tableborder">
<table cellpadding='4' cellspacing='1' width="100%">
<tr>
<th class="titlemedium">{$ibforums->lang['fd_name']}</th>
<th class="titlemedium">{$ibforums->lang['fd_count']}</th>
<th class="titlemedium">{$ibforums->lang['fd_empty']}</th>
</tr>
EOF;
}
function empty_folder_row($real, $id, $cnt) {
global $ibforums;
return <<<EOF
<tr>
<td class="row1"><strong>$real</strong></td>
<td class="row1" align="center">$cnt</td>
<td class="row1" align="center"><input type="checkbox" class="checkbox" name="its_$id" value="1" /></td>
</tr>
EOF;
}
function empty_folder_save_unread() {
global $ibforums;
return <<<EOF
<tr>
<td class="row2" colspan='3' align='center'><input type="checkbox" class="checkbox" name="save_unread" value="1" checked="checked"/> <strong>{$ibforums->lang['fd_save_unread']}</strong></td>
</tr>
EOF;
}
function empty_folder_footer() {
global $ibforums;
return <<<EOF
</table>
<div class="pformstrip" align="center"><input type='submit' value='{$ibforums->lang['fd_continue']}' class='forminput'></div>
</div>
</form>
EOF;
}
function prefs_header() {
global $ibforums;
return <<<EOF
<form action="{$ibforums->base_url}" method="post">
<input type='hidden' name='act' value='Msg' />
<input type='hidden' name='CODE' value='08' />
<div class="pformstrip">{$ibforums->lang['prefs_current']}</div>
<p>{$ibforums->lang['prefs_text_a']}</p>
EOF;
}
function prefs_row($data) {
global $ibforums;
return <<<EOF
<p><input type='text' name='{$data[ID]}' value='{$data[REAL]}' class='forminput' />{$data[EXTRA]}</p>
EOF;
}
function prefs_add_dirs() {
global $ibforums;
return <<<EOF
<div class="pformstrip">{$ibforums->lang['prefs_new']}</div>
<p>{$ibforums->lang['prefs_text_b']}</p>
EOF;
}
function prefs_footer() {
global $ibforums;
return <<<EOF
<div class="pformstrip" align="center"><input type='submit' value='{$ibforums->lang['prefs_submit']}' class='forminput'></div>
</form>
EOF;
}
function Address_header() {
global $ibforums;
return <<<EOF
<div class="pformstrip">{$ibforums->lang['address_current']}</div>
EOF;
}
function Address_table_header() {
global $ibforums;
return <<<EOF
<br />
<div class="tableborder">
<table cellpadding='4' cellspacing='1' width="100%">
<tr>
<td class="titlemedium"><b>{$ibforums->lang['member_name']}</b></td>
<td width="60%" class="titlemedium"><b>{$ibforums->lang['enter_block']}</b></td>
</tr>
EOF;
}
function render_address_row($entry) {
global $ibforums;
return <<<EOF
<tr>
<td class='row1 align='left' valign='middle'><a href='{$ibforums->base_url}act=Profile&amp;CODE=03&amp;MID={$entry['contact_id']}'><b>{$entry['contact_name']}</b></a> &nbsp; &nbsp;[ {$entry['contact_desc']} ]</td>
<td class='row1 align='left' valign='middle'>
[ <a href='{$ibforums->base_url}act=Msg&amp;CODE=11&amp;MID={$entry['contact_id']}'>{$ibforums->lang['edit']}</a> ] :: [ <a href='{$ibforums->base_url}act=Msg&amp;CODE=10&amp;MID={$entry['contact_id']}'>{$ibforums->lang['delete']}</a> ]
&nbsp;&nbsp;( {$entry['text']} )
</td>
</tr>
EOF;
}
function Address_none() {
global $ibforums;
return <<<EOF
<p style="text-align:center">{$ibforums->lang['address_none']}</p>
EOF;
}
function end_address_table() {
global $ibforums;
return <<<EOF
</table>
</div>
<br />
EOF;
}
function address_edit($data) {
global $ibforums;
return <<<EOF
<form action="{$ibforums->base_url}" method="post">
<input type='hidden' name='act' value='Msg'>
<input type='hidden' name='CODE' value='12'>
<input type='hidden' name='MID' value='{$data[MEMBER]['contact_id']}'>
<div class="pformstrip">{$ibforums->lang['member_edit']}</div>
<table width="100%">
<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>
</table>
<div class="pformstrip" align="center"><input type="submit" value="{$ibforums->lang['submit_address_edit']}" class='forminput' /></div>
</form>
EOF;
}
function address_add($mem_to_add) {
global $ibforums;
return <<<EOF
<form action="{$ibforums->base_url}" method="post">
<input type='hidden' name='act' value='Msg' />
<input type='hidden' name='CODE' value='09' />
<div class="pformstrip">{$ibforums->lang['member_add']}</div>
<table style="padding:6px">
<tr>
<td valign='middle'>{$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'>{$ibforums->lang['enter_desc']}<br /><input type='text' name='mem_desc' size='30' maxlength='60' value='' class='forminput' /></td>
<td valign='middle'>{$ibforums->lang['allow_msg']}<br /><select name='allow_msg' class='forminput'><option value='yes' selected="selected">{$ibforums->lang['yes']}<option value='no'>{$ibforums->lang['no']}</select></td>
</tr>
</table>
<div class="pformstrip" align="center"><input type="submit" value="{$ibforums->lang['submit_address']}" class='forminput' /></div>
</form>
EOF;
}
function Render_msg($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>
<div class="pformstrip">{$data['msg']['title']}</div>
<div align="right" style="padding:6px;font-weight:bold">
[ <a href='{$ibforums->base_url}CODE=04&amp;act=Msg&amp;MSID={$data['msg']['msg_id']}&amp;MID={$data['member']['id']}&amp;fwd=1'>{$ibforums->lang['vm_forward_pm']}</a> | <a href='{$ibforums->base_url}CODE=04&amp;act=Msg&amp;MID={$data['member']['id']}&amp;MSID={$data['msg']['msg_id']}'>{$ibforums->lang['pm_reply_link']}</a> ]
</div>
<div class="tableborder">
<div class="titlemedium">&nbsp;&nbsp;{$ibforums->lang['m_pmessage']}</div>
<table width='100%' cellpadding='3' cellspacing='1'>
<tr>
<td valign='middle' class='row4'><span class='normalname'><a href="{$ibforums->base_url}showuser={$data['member']['id']}">{$data['member']['name']}</a></span></td>
<td class='row4' valign='top'>
<!-- POSTED DATE DIV -->
<div align='left' class='row4' style='float:left;padding-top:4px;padding-bottom:4px'>
{$data[POST]['post_icon']}<span class='postdetails'><b>{$data['msg']['title']}</b>, {$data['msg']['msg_date']}</span>
</div>
<!-- DELETE DIV -->
<div align='right'>
<a href='{$ibforums->base_url}CODE=05&amp;act=Msg&amp;MSID={$data['msg']['msg_id']}&amp;VID={$data['member']['VID']}'><{P_DELETE}></a>
&nbsp;<a href='{$ibforums->base_url}CODE=04&amp;act=Msg&amp;MID={$data['member']['id']}&amp;MSID={$data['msg']['msg_id']}'><{P_QUOTE}></a>
</div>
</td>
</tr>
<tr>
<td valign='top' class='post1'>
<span class='postdetails'>
{$data['member']['avatar']}
<br />{$data['member']['title']}
<br />{$data['member']['member_rank_img']}<br />
<br />{$data['member']['member_group']}
<br />{$data['member']['member_posts']}
<br />{$data['member']['member_joined']}
<br />
</span>
<img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='160' height='1' /><br />
</td>
<td width='100%' valign='top' class='post1'><span class='postcolor'>{$data['msg']['message']}</span><span class="signature">{$data['member']['signature']}</span></td>
</tr>
<tr>
<td class='darkrow3' align='left'>[ <a href='{$ibforums->base_url}CODE=02&amp;act=Msg&amp;MID={$data['member']['id']}'>{$ibforums->lang['add_to_book']}</a> ]</td>
<td class='darkrow3' nowrap="nowrap" align='left'>
<!-- EMAIL / WWW / MSGR -->
<div align='left' class='darkrow3' style='float:left;'>
{$data['member']['addresscard']}{$data['member']['message_icon']}{$data['member']['email_icon']}{$data['member']['website_icon']}{$data['member']['integ_icon']}{$data['member']['icq_icon']}{$data['member']['aol_icon']}{$data['member']['yahoo_icon']}{$data['member']['msn_icon']}
</div>
<!-- UP -->
<div align='right'><a href='javascript:scroll(0,0);'><img src='{$ibforums->vars['img_url']}/p_up.gif' alt='Top' border='0' /></a></div>
</td>
</tr>
</table>
</div>
<div style="float:left;width:auto;padding:6px">
<form action="{$ibforums->base_url}" name='jump' method="post">
<input type='hidden' name='act' value='Msg'>
<input type='hidden' name='CODE' value='01'>
{$ibforums->lang[goto_folder]}:</b>&nbsp; {$data['jump']}
<input type='submit' name='submit' value='{$ibforums->lang[goto_submit]}' class='forminput' />
</form>
</div>
<div align="right" style="padding:6px;font-weight:bold">
[ <a href='{$ibforums->base_url}CODE=04&amp;act=Msg&amp;MSID={$data['msg']['msg_id']}&amp;MID={$data['member']['id']}&amp;fwd=1'>{$ibforums->lang['vm_forward_pm']}</a> | <a href='{$ibforums->base_url}CODE=04&amp;act=Msg&amp;MID={$data['member']['id']}&amp;MSID={$data['msg']['msg_id']}'>{$ibforums->lang['pm_reply_link']}</a> ]
</div>
EOF;
}
function trackread_table_header() {
global $ibforums;
return <<<EOF
<script language='JavaScript' type="text/javascript">
<!--
function CheckAll(fmobj) {
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(fmobj) {
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->base_url}CODE=31&amp;act=Msg" name='trackread' method="post">
<div class='pformstrip'>{$ibforums->lang['tk_read_messages']}</div>
<p>{$ibforums->lang['tk_read_desc']}</p>
<div class="tableborder">
<table cellpadding='4' cellspacing='1' align='center' width='100%'>
<tr>
<th align='left' width='5%' class='titlemedium'>&nbsp;</th>
<th align='left' width='30%' class='titlemedium'><b>{$ibforums->lang['message_title']}</b></th>
<th align='left' width='30%' class='titlemedium'><b>{$ibforums->lang['pms_message_to']}</b></th>
<th align='left' width='20%' class='titlemedium'><b>{$ibforums->lang['tk_read_date']}</b></th>
<th align='left' width='5%' class='titlemedium'><input name="allbox" type="checkbox" value="Check All" onclick="CheckAll(document.trackread);" /></th>
</tr>
EOF;
}
function trackread_row($data) {
global $ibforums;
return <<<EOF
<tr>
<td class='row2' align='left' valign='middle'>{$data['icon']}</td>
<td class='row2' align='left'>{$data['title']}</td>
<td class='row2' align='left'><a href='{$ibforums->base_url}showuser={$data['memid']}'>{$data['to_name']}</a></td>
<td class='row2' align='left'>{$data['date']}</td>
<td class='row2' align='left'><input type='checkbox' name='msgid_{$data['msg_id']}' value='yes' class='forminput' onclick="CheckCheckAll(document.trackread);" /></td>
</tr>
EOF;
}
function trackread_end() {
global $ibforums;
return <<<EOF
<tr>
<td align='right' class='titlemedium' colspan='5'><input type='submit' name='endtrack' value='{$ibforums->lang['tk_untrack_button']}' class='forminput' /> {$ibforums->lang['selected_msg']}</td>
</tr>
</table>
</div>
</form>
<br />
EOF;
}
function trackUNread_table_header() {
global $ibforums;
return <<<EOF
<form action="{$ibforums->base_url}CODE=32&amp;act=Msg" name='trackunread' method="post">
<div class='pformstrip'>{$ibforums->lang['tk_unread_messages']}</div>
<p>{$ibforums->lang['tk_unread_desc']}</p>
<div class="tableborder">
<table cellpadding='4' cellspacing='1' align='center' width='100%'>
<tr>
<th align='left' width='5%' class='titlemedium'>&nbsp;</td>
<th align='left' width='30%' class='titlemedium'><b>{$ibforums->lang['message_title']}</b></th>
<th align='left' width='30%' class='titlemedium'><b>{$ibforums->lang['pms_message_to']}</b></th>
<th align='left' width='20%' class='titlemedium'><b>{$ibforums->lang['tk_unread_date']}</b></th>
<th align='left' width='5%' class='titlemedium'><input name="allbox" type="checkbox" value="Check All" onclick="CheckAll(document.trackunread);" /></th>
</tr>
EOF;
}
function trackUNread_row($data) {
global $ibforums;
return <<<EOF
<tr>
<td class='row2' align='left' valign='middle'>{$data['icon']}</td>
<td class='row2' align='left'>{$data['title']}</td>
<td class='row2' align='left'><a href='{$ibforums->base_url}showuser={$data['memid']}'>{$data['to_name']}</a></td>
<td class='row2' align='left'>{$data['date']}</td>
<td class='row2' align='left'><input type='checkbox' name='msgid_{$data['msg_id']}' value='yes' class='forminput' onclick="CheckCheckAll(document.trackunread);" /></td>
</tr>
EOF;
}
function trackUNread_end() {
global $ibforums;
return <<<EOF
<tr>
<td align='right' class='titlemedium' colspan='5'><input type='submit' name='delete' value='{$ibforums->lang['delete_button']}' class='forminput' /> {$ibforums->lang['selected_msg']}</td>
</tr>
</table>
</div>
</form>
EOF;
}
function unsent_table_header() {
global $ibforums;
return <<<EOF
<script language='JavaScript' type="text/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->base_url}CODE=06&amp;act=Msg&amp;saved=1" name='mutliact' method="post">
<div class="pformstrip">{$ibforums->lang['pms_saved_title']}</div>
<br />
<div class="tableborder">
<table cellpadding='4' cellspacing='1' align='center' width='100%'>
<tr>
<th align='left' width='5%' class='titlemedium'>&nbsp;</td>
<th align='left' width='30%' class='titlemedium'><b>{$ibforums->lang['message_title']}</b></th>
<th align='left' width='30%' class='titlemedium'><b>{$ibforums->lang['pms_message_to']}</b></th>
<th align='left' width='20%' class='titlemedium'><b>{$ibforums->lang['pms_saved_date']}</b></th>
<th align='left' width='10%' class='titlemedium'><b>{$ibforums->lang['pms_cc_users']}</b></th>
<th align='left' width='5%' class='titlemedium'><input name="allbox" type="checkbox" value="Check All" onclick="CheckAll();" /></th>
</tr>
EOF;
}
function unsent_row($data) {
global $ibforums;
return <<<EOF
<tr>
<td class='row2' align='left' valign='middle'>{$data['msg']['icon']}</td>
<td class='row2' align='left'><a href='{$ibforums->base_url}act=Msg&amp;CODE=21&amp;MSID={$data['msg']['msg_id']}'>{$data['msg']['title']}</a></td>
<td class='row2' align='left'><a href='{$ibforums->base_url}showuser={$data['msg']['recipient_id']}'>{$data['msg']['to_name']}</a></td>
<td class='row2' align='left'>{$data['msg']['date']}</td>
<td class='row2' align='center'>{$data['msg']['cc_users']}</td>
<td class='row2' align='left'><input type='checkbox' name='msgid_{$data['msg']['msg_id']}' value='yes' class='forminput' /></td>
</tr>
EOF;
}
function unsent_end() {
global $ibforums;
return <<<EOF
<tr>
<td align='center' nowrap class='titlemedium' colspan='6'><input type='submit' name='delete' value='{$ibforums->lang['delete_button']}' class='forminput' /> {$ibforums->lang['selected_msg']}</td>
</tr>
</table>
</div>
</form>
EOF;
}
function inbox_table_header($dirname, $info, $vdi_html="", $pages="") {
global $ibforums;
return <<<EOF
<!-- inbox folder -->
<script language='JavaScript' type="text/javascript">
<!--
var ie = document.all ? 1 : 0;
//var ns4 = document.layers ? 1 : 0;
function hl(cb)
{
if (ie)
{
while (cb.tagName != "TR")
{
cb = cb.parentElement;
}
}
else
{
while (cb.tagName != "TR")
{
cb = cb.parentNode;
}
}
cb.className = 'hlight';
}
function dl(cb) {
if (ie)
{
while (cb.tagName != "TR")
{
cb = cb.parentElement;
}
}
else
{
while (cb.tagName != "TR")
{
cb = cb.parentNode;
}
}
cb.className = 'dlight';
}
function cca(cb) {
if (cb.checked)
{
hl(cb);
}
else
{
dl(cb);
}
}
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;
if (fmobj.allbox.checked)
{
hl(e);
}
else
{
dl(e);
}
}
}
}
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;}
}
function select_read() {
var fmobj = document.mutliact;
for (var i=0;i<fmobj.elements.length;i++) {
var e = fmobj.elements[i];
if ((e.type=='hidden') && (e.value == 1) && (! isNaN(e.name) ))
{
eval("fmobj.msgid_" + e.name + ".checked=true;");
hl(e);
}
}
}
function unselect_all() {
var fmobj = document.mutliact;
for (var i=0;i<fmobj.elements.length;i++) {
var e = fmobj.elements[i];
if (e.type=='checkbox') {
e.checked=false;
dl(e);
}
}
}
//-->
</script>
<div class="pformstrip">$dirname</div>
<table width="100%" style="padding:6px">
<tr>
<td valign="middle">
<!-- LEFT -->
<table style="width:250px" cellspacing="1" class="tableborder">
<tr>
<td class='row1' align='left' colspan='3'>{$info['full_messenger']}</td>
</tr>
<tr>
<td align='left' valign='middle' class='row2' colspan='3'><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='{$info['img_width']}' height='11' align='middle' alt='' /><img src='{$ibforums->vars['img_url']}/bar_right.gif' border='0' width='4' height='11' align='middle' alt='' /></td>
</tr>
<tr>
<td class='row1' width='33%' align='left' valign='middle'>0%</td>
<td class='row1' width='33%' align='center' valign='middle'>50%</td>
<td class='row1' width='33%' align='right' valign='middle'>100%</td>
</tr>
</table>
</td>
<!-- RIGHT -->
<td align="right" valign="bottom" style="line-height:100%;">
$pages<br /><br />
<a href='javascript:select_read()'>{$ibforums->lang['pmpc_mark_read']}</a> :: <a href='javascript:unselect_all()'>{$ibforums->lang['pmpc_unmark_all']}</a><br /><br />
<form action="{$ibforums->base_url}CODE=01&amp;act=Msg" name='jump' method="post">
<b>{$ibforums->lang['goto_folder']}: </b>&nbsp; $vdi_html <input type='submit' name='submit' value='{$ibforums->lang['goto_submit']}' class='forminput' />
</form>
</td>
</tr>
</table>
<!-- INBOX TABLE -->
<form action="{$ibforums->base_url}CODE=06&amp;act=Msg" name='mutliact' method="post">
<div class="tableborder">
<table cellpadding='4' cellspacing='1' width="100%">
<tr>
<th width='5%' class='titlemedium'>&nbsp;</th>
<th width='35%' class='titlemedium'><a href='{$ibforums->base_url}act=Msg&amp;CODE=01&amp;VID={$info['vid']}&amp;sort=title&amp;st={$ibforums->input['st']}'><b>{$ibforums->lang['message_title']}</b></a></th>
<th width='30%' class='titlemedium'><a href='{$ibforums->base_url}act=Msg&amp;CODE=01&amp;VID={$info['vid']}&amp;sort=name&amp;st={$ibforums->input['st']}'><b>{$ibforums->lang['message_from']}</b></a></th>
<th width='25%' class='titlemedium'><a href='{$ibforums->base_url}act=Msg&amp;CODE=01&amp;VID={$info['vid']}&amp;sort={$info['date_order']}&amp;st={$ibforums->input['st']}'><b>{$ibforums->lang['message_date']}</b></a></th>
<th width='5%' class='titlemedium'><input name="allbox" type="checkbox" value="Check All" onclick="CheckAll();" /></th>
</tr>
EOF;
}
function inbox_row($data) {
global $ibforums;
return <<<EOF
<tr class="dlight">
<td align="center" valign='middle'>{$data['msg']['icon']}</td>
<td><a href='{$ibforums->base_url}act=Msg&amp;CODE=03&amp;VID={$data['stat']['current_id']}&amp;MSID={$data['msg']['msg_id']}'>{$data['msg']['title']}</a></td>
<td><a href='{$ibforums->base_url}showuser={$data['msg']['from_id']}'>{$data['msg']['from_name']}</a> {$data['msg']['add_to_contacts']}</td>
<td>{$data['msg']['date']}</td>
<td align="center"><input type='hidden' name='{$data['msg']['msg_id']}' value='{$data['msg']['read_state']}' /><input type='checkbox' name='msgid_{$data['msg']['msg_id']}' value='yes' class='forminput' onclick="cca(this);" /></td>
</tr>
EOF;
}
function end_inbox($vdi_html, $amount_info="", $pages="") {
global $ibforums;
return <<<EOF
<tr>
<td align='right' class='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>
</div>
</form>
<div class="wrapmini" style="padding:6px"><{M_READ}>&nbsp;{$ibforums->lang['icon_read']}<br /><{M_UNREAD}>&nbsp;{$ibforums->lang['icon_unread']}</div>
<div align="right" style="padding:6px">$pages<br /><i>$amount_info</i></div>
EOF;
}
function send_form_footer() {
global $ibforums;
return <<<EOF
<tr>
<td colspan='2' class='pformstrip'>{$ibforums->lang['msg_options']}</td>
</tr>
<tr>
<td class="pformleft">&nbsp;</td>
<td class="pformright">
<input type='checkbox' name='add_sent' value='yes' checked="checked" />&nbsp;<b>{$ibforums->lang['auto_sent_add']}</b>
<br /><input type='checkbox' name='add_tracking' value='1' />&nbsp;<b>{$ibforums->lang['vm_track_msg']}</b>
</td>
</tr>
<tr>
<td class='pformstrip' align='center' colspan='2'>
<input type="submit" value="{$ibforums->lang['submit_send']}" tabindex="4" accesskey="s" class='forminput' name='submit' />
<input type="submit" value="{$ibforums->lang['pm_pre_button']}" tabindex="5" class='forminput' name='preview' />
<input type="submit" value="{$ibforums->lang['pms_send_later']}" tabindex="6" class='forminput' name='save' />
</td>
</tr>
</table>
</form>
EOF;
}
function Send_form($data) {
global $ibforums;
return <<<EOF
<script language='javascript' type="text/javascript">
<!--
function find_users()
{
url = "index.{$ibforums->vars['php_ext']}?act=legends&CODE=finduser_one&s={$ibforums->session_id}&entry=textarea&name=carbon_copy&sep=line";
window.open(url,'FindUsers','width=400,height=250,resizable=yes,scrollbars=yes');
}
//-->
</script>
<form action="{$ibforums->base_url}" 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='OID' value='{$data['OID']}' />
<table width="100%" cellspacing="0">
<tr>
<td colspan='2' class='pformstrip'>{$ibforums->lang['to_whom']}</td>
</tr>
<tr>
<td class="pformleft">{$ibforums->lang['address_list']}</td>
<td class="pformright">{$data[CONTACTS]}&nbsp;</td>
</tr>
<tr>
<td class="pformleft">{$ibforums->lang['enter_name']}</td>
<td class="pformright"><input type='text' name='entered_name' size='50' value='{$data[N_ENTER]}' tabindex="1" class='forminput' /></td>
</tr>
<!--IBF.MASS_PM_BOX-->
<tr>
<td colspan='2' class='pformstrip'>{$ibforums->lang['enter_message']}</td>
</tr>
<tr>
<td class="pformleft">{$ibforums->lang['msg_title']}</td>
<td class="pformright"><input type='text' name='msg_title' size='40' tabindex="2" maxlength='40' value='{$data[O_TITLE]}' class='forminput' /></td>
</tr>
EOF;
}
function mass_pm_box($names="") {
global $ibforums;
return <<<EOF
<tr>
<td colspan='2' class='pformstrip'>{$ibforums->lang['carbon_copy_title']}</td>
</tr>
<tr>
<td class="pformleft">{$ibforums->lang['carbon_copy_desc']}</td>
<td class='pformright'>
<textarea name='carbon_copy' rows='5' cols='40'>$names</textarea><br />
<input type='button' class='forminput' name='findusers' onclick='find_users()' value='{$ibforums->lang['find_user_names']}' />
</td>
</tr>
EOF;
}
}
?>
-82
View File
@@ -1,82 +0,0 @@
<?php
class skin_online {
function show_row($session) {
global $ibforums;
return <<<EOF
<!-- Entry for {$session['member_id']} -->
<tr>
<td class='row1'>{$session['member_name']}</td>
<td class='row1'>{$session['where_line']}</td>
<td class='row1' align='center'>{$session['running_time']}</td>
<td class='row1' align='center'>{$session['msg_icon']}</td>
</tr>
<!-- End of Entry -->
EOF;
}
function Page_end($show_mem, $sort_order, $sort_key, $links) {
global $ibforums;
return <<<EOF
<!-- End content Table -->
<tr>
<td colspan='4' class='darkrow1' align='center' valign='middle'>
<form method='post' action='{$ibforums->base_url}act=Online&amp;CODE=listall'>
<b>{$ibforums->lang['s_by']}&nbsp;</b>
<select class='forminput' name='sort_key'>{$sort_key}</select>
<select class='forminput' name='show_mem'>&nbsp;{$show_mem}</select>
<select class='forminput' name='sort_order'>&nbsp;{$sort_order}</select>
<input type='submit' value='{$ibforums->lang['s_go']}' class='forminput'>
<form>
</td>
</tr>
</table>
</div>
<br />
<div align='left'>$links</div>
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>
<div align='left'>$links</div>
<br />
<div class="tableborder">
<div class='maintitle'>&nbsp;&nbsp;{$ibforums->lang['page_title']}</div>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<th align='left' width='30%' class='titlemedium'>{$ibforums->lang['member_name']}</th>
<th align='left' width='30%' class='titlemedium'>{$ibforums->lang['where']}</th>
<th align='center' width='20%' class='titlemedium'>{$ibforums->lang['time']}</th>
<th align='left' width='10%' class='titlemedium'>&nbsp;</th>
</tr>
EOF;
}
}
?>
-120
View File
@@ -1,120 +0,0 @@
<?php
class skin_poll {
function poll_javascript($tid,$fid) {
global $ibforums;
return <<<EOF
<script type="text/javascript">
function go_gadget_show()
{
window.location = "{$ibforums->base_url}&act=ST&f=$fid&t=$tid&mode=show&st={$ibforums->input['start']}";
}
function go_gadget_vote()
{
window.location = "{$ibforums->base_url}&act=ST&f=$fid&t=$tid&st={$ibforums->input['start']}";
}
</script>
EOF;
}
function button_vote() {
global $ibforums;
return <<<EOF
<input type='submit' name='submit' value='{$ibforums->lang['poll_add_vote']}' title="{$ibforums->lang['tt_poll_vote']}" class='forminput' />
EOF;
}
function button_null_vote() {
global $ibforums;
return <<<EOF
<input type='submit' name='nullvote' value='{$ibforums->lang['poll_null_vote']}' title="{$ibforums->lang['tt_poll_null']}" class='forminput' />
EOF;
}
function button_show_results() {
global $ibforums;
return <<<EOF
<input type='button' value='{$ibforums->lang['pl_show_results']}' class='forminput' title="{$ibforums->lang['tt_poll_show']}" onclick='go_gadget_show()' />
EOF;
}
function button_show_voteable() {
global $ibforums;
return <<<EOF
<input type='button' name='viewresult' value='{$ibforums->lang['pl_show_vote']}' title="{$ibforums->lang['tt_poll_svote']}" class='forminput' onclick='go_gadget_vote()' />
EOF;
}
function edit_link($tid, $fid, $key="") {
global $ibforums;
return <<<EOF
[ <a href="{$ibforums->base_url}act=Mod&amp;CODE=20&amp;f=$fid&amp;t=$tid&amp;auth_key=$key">{$ibforums->lang['ba_edit']}</a> ]
EOF;
}
function delete_link($tid, $fid, $key="") {
global $ibforums;
return <<<EOF
[ <a href="{$ibforums->base_url}act=Mod&amp;CODE=22&amp;f=$fid&amp;t=$tid&amp;auth_key=$key">{$ibforums->lang['ba_delete']}</a> ]
EOF;
}
function Render_row_form($votes, $id, $answer) {
global $ibforums;
return <<<EOF
<tr>
<td class='row1' colspan='3'><input type="radio" name="poll_vote" value="$id" class="radiobutton" />&nbsp;<strong>$answer</strong></td>
</tr>
EOF;
}
function poll_header($tid, $poll_q, $edit, $delete) {
global $ibforums;
return <<<EOF
<!--IBF.POLL_JS-->
<form action="{$ibforums->base_url}act=Poll&amp;t=$tid" method="post">
<div align="right" class="pformstrip">$edit &nbsp; $delete</div>
<div class="tablepad" align="center">
<table cellpadding="5" align="center">
<tr>
<td colspan='3' align='center'><b>$poll_q</b></td>
</tr>
EOF;
}
function ShowPoll_footer() {
global $ibforums;
return <<<EOF
</table>
</div>
<div align="center" class="pformstrip"><!--IBF.VOTE-->&nbsp;<!--IBF.SHOW--></div>
</form>
EOF;
}
function Render_row_results($votes, $id, $answer, $percentage, $width) {
global $ibforums;
return <<<EOF
<tr>
<td class='row1'>$answer</td>
<td class='row1'> [ <b>$votes</b> ] </td>
<td class='row1' align='left'><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;
}
function show_total_votes($total_votes) {
global $ibforums;
return <<<EOF
<tr>
<td class='row1' colspan='3' align='center'><strong>{$ibforums->lang['pv_total_votes']}: $total_votes</strong></td>
</tr>
EOF;
}
}
?>
-623
View File
@@ -1,623 +0,0 @@
<?php
class skin_post {
function nameField_unreg($data) {
global $ibforums;
return <<<EOF
<tr>
<td colspan="2" class='pformstrip'>{$ibforums->lang['unreg_namestuff']}</td>
</tr>
<tr>
<td class='pformleft'>{$ibforums->lang['guest_name']}</td>
<td class='pformright'><input type='text' size='40' maxlength='40' name='UserName' value='$data' class='textinput' /></td>
</tr>
EOF;
}
function poll_box($data, $extra="") {
global $ibforums;
return <<<EOF
<tr>
<td colspan="2" class='pformstrip'>{$ibforums->lang['tt_poll_settings']}</td>
</tr>
<tr>
<td class='pformleft'><strong>{$ibforums->lang['poll_question']}</strong></td>
<td class='pformright'><input type='text' size='40' maxlength='250' name='pollq' value='{$ibforums->input['pollq']}' class='textinput' /></td>
</tr>
<tr>
<td class='pformleft'>{$ibforums->lang['poll_choices']}<br /><br />$extra</td>
<td class='pformright'><textarea cols='60' rows='12' name='PollAnswers' class='textinput'>$data</textarea><!--IBF.POLL_OPTIONS--></td>
</tr>
EOF;
}
function poll_options() {
global $ibforums;
return <<<EOF
<br /><input type='checkbox' size='40' value='1' name='allow_disc' class='forminput' />&nbsp;{$ibforums->lang['poll_only']}
EOF;
}
function poll_end_form($data) {
global $ibforums;
return <<<EOF
<tr>
<td class='pformstrip' align='center' style='text-align:center' colspan="2">
<input type="submit" name="submit" value="$data" tabindex='4' class='forminput' accesskey='s' />&nbsp;
</td>
</tr>
</table>
</form>
<br />
<br clear="all" />
EOF;
}
function pm_postbox_buttons($data) {
global $ibforums;
return <<<EOF
<tr>
<td class='pformstrip' colspan="2">{$ibforums->lang['ib_code_buttons']}</td>
</tr>
<tr>
<td class='pformleft'>
<input type='radio' name='bbmode' class='radiobutton' value='ezmode' onclick='setmode(this.value)' />&nbsp;<b>{$ibforums->lang['bbcode_guided']}</b><br />
<input type='radio' name='bbmode' class='radiobutton' value='normal' onclick='setmode(this.value)' checked="checked" />&nbsp;<b>{$ibforums->lang['bbcode_normal']}</b>
<script type='text/javascript' src='html/ibfcode.js'></script>
</td>
<td class='pformright'>
<input type='button' accesskey='b' value=' B ' onclick='simpletag("B")' class='codebuttons' name='B' style="font-weight:bold" onmouseover="hstat('bold')" />
<input type='button' accesskey='i' value=' I ' onclick='simpletag("I")' class='codebuttons' name='I' style="font-style:italic" onmouseover="hstat('italic')" />
<input type='button' accesskey='u' value=' U ' onclick='simpletag("U")' class='codebuttons' name='U' style="text-decoration:underline" onmouseover="hstat('under')" />
<select name='ffont' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'FONT')" onmouseover="hstat('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')" onmouseover="hstat('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')" onmouseover="hstat('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>
&nbsp; <a href='javascript:closeall();' onmouseover="hstat('close')">{$ibforums->lang['js_close_all_tags']}</a>
<br />
<input type='button' accesskey='h' value=' http:// ' onclick='tag_url()' class='codebuttons' name='url' onmouseover="hstat('url')" />
<input type='button' accesskey='g' value=' IMG ' onclick='tag_image()' class='codebuttons' name='img' onmouseover="hstat('img')" />
<input type='button' accesskey='e' value=' @ ' onclick='tag_email()' class='codebuttons' name='email' onmouseover="hstat('email')" />
<input type='button' accesskey='q' value=' QUOTE ' onclick='simpletag("QUOTE")' class='codebuttons' name='QUOTE' onmouseover="hstat('quote')" />
<input type='button' accesskey='p' value=' CODE ' onclick='simpletag("CODE")' class='codebuttons' name='CODE' onmouseover="hstat('code')" />
<input type='button' accesskey='l' value=' LIST ' onclick='tag_list()' class='codebuttons' name="LIST" onmouseover="hstat('list')" />
<!--<input type='button' accesskey='l' value=' SQL ' onclick='simpletag("SQL")' class='codebuttons' name='SQL'>
<input type='button' accesskey='t' value=' HTML ' onclick='simpletag("HTML")' class='codebuttons' name='HTML'>-->
<br />
{$ibforums->lang['hb_open_tags']}:&nbsp;<input type='text' name='tagcount' size='3' maxlength='3' style='font-size:10px;font-family:verdana,arial;border:0px;font-weight:bold;' readonly="readonly" class='row1' value="0" />
&nbsp;<input type='text' name='helpbox' size='50' maxlength='120' style='width:auto;font-size:10px;font-family:verdana,arial;border:0px' readonly="readonly" class='row1' value="{$ibforums->lang['hb_start']}" />
</td>
</tr>
<tr>
<td colspan="2" class='pformstrip'>{$ibforums->lang['post']}</td>
</tr>
<tr>
<td class='pformleft'>
<!--SMILIE TABLE-->
<br />
(<a href='javascript:CheckLength()'>{$ibforums->lang['check_length']}</a>)
</td>
<td class="pformright" valign='top'><textarea cols='70' rows='15' name='Post' tabindex='3' class='textinput'>$data</textarea></td>
</tr>
EOF;
}
function postbox_buttons($data) {
global $ibforums;
return <<<EOF
<tr>
<td class='pformstrip' colspan="2">{$ibforums->lang['ib_code_buttons']}</td>
</tr>
<tr>
<td class='pformleft'>
<input type='radio' class='radiobutton' name='bbmode' value='ezmode' onclick='setmode(this.value)' />&nbsp;<b>{$ibforums->lang['bbcode_guided']}</b><br />
<input type='radio' class='radiobutton' name='bbmode' value='normal' onclick='setmode(this.value)' checked="checked" />&nbsp;<b>{$ibforums->lang['bbcode_normal']}</b>
<script type='text/javascript' src='html/ibfcode.js'></script>
</td>
<td class='pformright'>
<input type='button' accesskey='b' value=' B ' onclick='simpletag("B")' class='codebuttons' name='B' style="font-weight:bold" onmouseover="hstat('bold')" />
<input type='button' accesskey='i' value=' I ' onclick='simpletag("I")' class='codebuttons' name='I' style="font-style:italic" onmouseover="hstat('italic')" />
<input type='button' accesskey='u' value=' U ' onclick='simpletag("U")' class='codebuttons' name='U' style="text-decoration:underline" onmouseover="hstat('under')" />
<select name='ffont' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'FONT')" onmouseover="hstat('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')" onmouseover="hstat('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')" onmouseover="hstat('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>
&nbsp; <a href='javascript:closeall();' onmouseover="hstat('close')">{$ibforums->lang['js_close_all_tags']}</a>
<br />
<input type='button' accesskey='h' value=' http:// ' onclick='tag_url()' class='codebuttons' name='url' onmouseover="hstat('url')" />
<input type='button' accesskey='g' value=' IMG ' onclick='tag_image()' class='codebuttons' name='img' onmouseover="hstat('img')" />
<input type='button' accesskey='e' value=' @ ' onclick='tag_email()' class='codebuttons' name='email' onmouseover="hstat('email')" />
<input type='button' accesskey='q' value=' QUOTE ' onclick='simpletag("QUOTE")' class='codebuttons' name='QUOTE' onmouseover="hstat('quote')" />
<input type='button' accesskey='p' value=' CODE ' onclick='simpletag("CODE")' class='codebuttons' name='CODE' onmouseover="hstat('code')" />
<input type='button' accesskey='l' value=' LIST ' onclick='tag_list()' class='codebuttons' name="LIST" onmouseover="hstat('list')" />
<!--<input type='button' accesskey='l' value=' SQL ' onclick='simpletag("SQL")' class='codebuttons' name='SQL'>
<input type='button' accesskey='t' value=' HTML ' onclick='simpletag("HTML")' class='codebuttons' name='HTML'>-->
<br />
{$ibforums->lang['hb_open_tags']}:&nbsp;<input type='text' name='tagcount' size='3' maxlength='3' style='font-size:10px;font-family:verdana,arial;border:0px;font-weight:bold;' readonly="readonly" class='row1' value="0" />
&nbsp;<input type='text' name='helpbox' size='50' maxlength='120' style='width:auto;font-size:10px;font-family:verdana,arial;border:0px' readonly="readonly" class='row1' value="{$ibforums->lang['hb_start']}" />
</td>
</tr>
<tr>
<td colspan="2" class='pformstrip'>{$ibforums->lang['post']}</td>
</tr>
<tr>
<td class='pformleft' align='center'>
<!--SMILIE TABLE-->
<br /><div class='desc'><strong><a href='javascript:CheckLength()'>{$ibforums->lang['check_length']}</a> &middot; <a href='javascript:bbc_pop()'>{$ibforums->lang['bbc_help']}</a></strong></div>
</td>
<td class="pformright" valign='top'>
<textarea cols='80' rows='20' name='Post' tabindex='3' class='textinput'>$data</textarea></td>
</tr>
<tr>
<td class='pformleft'><b>{$ibforums->lang['po_options']}</b></td>
<td class='pformright'>
<!--IBF.EMO-->
<!--IBF.SIG-->
<!--IBF.TRACK-->
</td>
</tr>
EOF;
}
function get_box_enableemo($checked) {
global $ibforums;
return <<<EOF
<input type='checkbox' name='enableemo' class='checkbox' value='yes' $checked />&nbsp;{$ibforums->lang['enable_emo']}
EOF;
}
function get_box_enablesig($checked) {
global $ibforums;
return <<<EOF
<br /><input type='checkbox' name='enablesig' class='checkbox' value='yes' $checked />&nbsp;{$ibforums->lang['enable_sig']}
EOF;
}
function get_box_enabletrack($checked) {
global $ibforums;
return <<<EOF
<br /><input type='checkbox' name='enabletrack' class='checkbox' value='1' $checked />&nbsp;{$ibforums->lang['enable_track']}
EOF;
}
function get_box_alreadytrack() {
global $ibforums;
return <<<EOF
<br />{$ibforums->lang['already_sub']}
EOF;
}
function get_javascript() {
global $ibforums;
return <<<EOF
<script language="javascript1.2" type="text/javascript">
<!--
var MessageMax = "{$ibforums->lang['the_max_length']}";
var Override = "{$ibforums->lang['override']}";
MessageMax = parseInt(MessageMax);
if ( MessageMax < 0 )
{
MessageMax = 0;
}
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 bbc_pop()
{
window.open('index.{$ibforums->vars['php_ext']}?act=legends&CODE=bbcode&s={$ibforums->session_id}','Legends','width=700,height=500,resizable=yes,scrollbars=yes');
}
function CheckLength() {
MessageLength = document.REPLIER.Post.value.length;
message = "";
if (MessageMax > 0) {
message = "{$ibforums->lang['js_post']}: {$ibforums->lang['js_max_length']} " + MessageMax + " {$ibforums->lang['js_characters']}.";
} else {
message = "";
}
alert(message + " {$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']}";
var prompt_start = "{$ibforums->lang['js_text_to_format']}";
var help_bold = "{$ibforums->lang['hb_bold']}";
var help_italic = "{$ibforums->lang['hb_italic']}";
var help_under = "{$ibforums->lang['hb_under']}";
var help_font = "{$ibforums->lang['hb_font']}";
var help_size = "{$ibforums->lang['hb_size']}";
var help_color = "{$ibforums->lang['hb_color']}";
var help_close = "{$ibforums->lang['hb_close']}";
var help_url = "{$ibforums->lang['hb_url']}";
var help_img = "{$ibforums->lang['hb_img']}";
var help_email = "{$ibforums->lang['hb_email']}";
var help_quote = "{$ibforums->lang['hb_quote']}";
var help_list = "{$ibforums->lang['hb_list']}";
var help_code = "{$ibforums->lang['hb_code']}";
var help_click_close = "{$ibforums->lang['hb_click_close']}";
var list_prompt = "{$ibforums->lang['js_tag_list']}";
//-->
</script>
EOF;
}
function nameField_reg() {
global $ibforums;
return <<<EOF
<!-- REG NAME -->
EOF;
}
function mod_options($jump) {
global $ibforums;
return <<<EOF
<tr>
<td class='pformstrip' colspan="2">{$ibforums->lang['tt_options']}</td>
</tr>
<tr>
<td class='pformleft'>{$ibforums->lang['mod_options']}</td>
<td class='pformright'>$jump</select></td>
</tr>
EOF;
}
function quote_box($data) {
global $ibforums;
return <<<EOF
<tr>
<td colspan="2" class='pformstrip'>{$ibforums->lang['post_to_quote']}</td>
</tr>
<tr>
<td class='pformleft'>{$ibforums->lang['post_to_quote_txt']}</td>
<td class='pformright'><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 TopicSummary_top() {
global $ibforums;
return <<<EOF
<br />
<div class="tableborder">
<div class="pformstrip">{$ibforums->lang['last_posts']}</div>
<table cellpadding='6' cellspacing='1' border='0' width='100%'>
EOF;
}
function TopicSummary_body($data) {
global $ibforums;
return <<<EOF
<tr>
<td class='row4' valign='top' width='20%'><b>{$data['author']}</b></td>
<td class='row4' valign='top' width='80%'>{$ibforums->lang['posted_on']} {$data['date']}</td>
</tr>
<tr>
<td class='row1' valign='top' width='20%'>&nbsp;</td>
<td class='row1' valign='top' width='80%'><span class='postcolor'>{$data['post']}</span></td>
</tr>
EOF;
}
function TopicSummary_bottom() {
global $ibforums;
return <<<EOF
</table>
<div class="pformstrip"><a href="javascript:PopUp('index.{$ibforums->vars['php_ext']}?act=ST&amp;f={$ibforums->input['f']}&amp;t={$ibforums->input['t']}','TopicSummary',700,450,1,1)">{$ibforums->lang['review_topic']}</a></div>
</div>
EOF;
}
function preview($data) {
global $ibforums;
return <<<EOF
<div class="tableborder">
<div class="pformstrip">{$ibforums->lang['post_preview']}</div>
<div class="row1" style="padding:6px"><div class='postcolor'>$data</div></div>
</div>
<br />
EOF;
}
function edit_upload_field($data, $file_name="") {
global $ibforums;
return <<<EOF
<tr>
<td class="pformstrip" colspan="2">{$ibforums->lang['upload_title']}</td>
</tr>
<tr>
<td class='pformleft'>{$ibforums->lang['upload_text']} $data</td>
<td class='pformright' width="100%">
<table cellpadding='4' cellspacing='0' width='100%' border='0'>
<tr>
<td><input type='radio' name='editupload' value='keep' checked></td>
<td width='100%'><b>{$ibforums->lang['eu_keep']}</b> ( $file_name )</td>
</tr>
<tr>
<td><input type='radio' name='editupload' value='delete'></td>
<td width='100%'><b>{$ibforums->lang['eu_delete']}</b></td>
</tr>
<tr>
<td valign='middle'><input type='radio' name='editupload' value='new'></td>
<td><b>{$ibforums->lang['eu_new']}</b><br /><input class='textinput' type='file' size='30' name='FILE_UPLOAD' onclick='document.REPLIER.editupload[2].checked=true;' /></td>
</tr>
</table>
</td>
</tr>
EOF;
}
function Upload_field($data) {
global $ibforums;
return <<<EOF
<tr>
<td colspan="2" class='pformstrip'>{$ibforums->lang['upload_title']}</td>
</tr>
<tr>
<td class='pformleft'>{$ibforums->lang['upload_text']} $data</td>
<td class='pformright'><input class='textinput' type='file' size='30' name='FILE_UPLOAD' /></td>
</tr>
EOF;
}
function errors($data) {
global $ibforums;
return <<<EOF
<div class="tableborder">
<div class="pformstrip">{$ibforums->lang['errors_found']}</div>
<div class="tablepad"><span class='postcolor'>$data</span></div>
</div>
<br />
EOF;
}
function EndForm($data) {
global $ibforums;
return <<<EOF
<tr>
<td class='pformstrip' align='center' style='text-align:center' colspan="2">
<input type="submit" name="submit" value="$data" tabindex='4' class='forminput' accesskey='s' />&nbsp;
<input type="submit" name="preview" value="{$ibforums->lang['button_preview']}" tabindex='5' class='forminput' />
</td>
</tr>
</table>
</form>
<br />
<br clear="all" />
EOF;
}
function smilie_table() {
global $ibforums;
return <<<EOF
<table class='tablefill' cellpadding='4' align='center'>
<tr>
<td align="center" colspan="{$ibforums->vars['emo_per_row']}"><b>{$ibforums->lang['click_smilie']}</b></td>
</tr>
<!--THE SMILIES-->
<tr>
<td align="center" colspan="{$ibforums->vars['emo_per_row']}"><b><a href='javascript:emo_pop()'>{$ibforums->lang['all_emoticons']}</a></b></td>
</tr>
</table>
EOF;
}
function PostIcons() {
global $ibforums;
return <<<EOF
<tr>
<td class='pformleft'>{$ibforums->lang['post_icon']}</td>
<td class='pformright'>
<input type="radio" class="radiobutton" name="iconid" value="1" />&nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/icon1.gif" align='middle' alt='' />&nbsp;&nbsp;&nbsp;<input type="radio" class="radiobutton" name="iconid" value="2" />&nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/icon2.gif" align='middle' alt='' />&nbsp;&nbsp;&nbsp;<input type="radio" class="radiobutton" name="iconid" value="3" />&nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/icon3.gif" align='middle' alt='' />&nbsp;&nbsp;&nbsp;<input type="radio" class="radiobutton" name="iconid" value="4" />&nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/icon4.gif" align='middle' alt='' />&nbsp;&nbsp;&nbsp;<input type="radio" class="radiobutton" name="iconid" value="5" />&nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/icon5.gif" align='middle' alt='' />&nbsp;&nbsp;&nbsp;<input type="radio" class="radiobutton" name="iconid" value="6" />&nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/icon6.gif" align='middle' alt='' />&nbsp;&nbsp;&nbsp;<input type="radio" class="radiobutton" name="iconid" value="7" />&nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/icon7.gif" align='middle' alt='' /><br />
<input type="radio" class="radiobutton" name="iconid" value="8" />&nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/icon8.gif" align='middle' alt='' />&nbsp;&nbsp;&nbsp;<input type="radio" class="radiobutton" name="iconid" value="9" />&nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/icon9.gif" align='middle' alt='' />&nbsp;&nbsp;&nbsp;<input type="radio" class="radiobutton" name="iconid" value="10" />&nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/icon10.gif" align='middle' alt='' />&nbsp;&nbsp;&nbsp;<input type="radio" class="radiobutton" name="iconid" value="11" />&nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/icon11.gif" align='middle' alt='' />&nbsp;&nbsp;&nbsp;<input type="radio" class="radiobutton" name="iconid" value="12" />&nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/icon12.gif" align='middle' alt='' />&nbsp;&nbsp;&nbsp;<input type="radio" class="radiobutton" name="iconid" value="13" />&nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/icon13.gif" align='middle' alt='' />&nbsp;&nbsp;&nbsp;<input type="radio" class="radiobutton" name="iconid" value="14" />&nbsp;&nbsp;<img src="{$ibforums->vars['img_url']}/icon14.gif" align='middle' alt='' /><br />
<input type="radio" class="radiobutton" name="iconid" value="0" checked="checked" />&nbsp;&nbsp;[ Use None ]
</td>
</tr>
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 class='tableborder' cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class='maintitle' colspan="2">&nbsp;&nbsp;$data</td>
</tr>
EOF;
}
function table_structure() {
global $ibforums;
return <<<EOF
<!--FORUM RULES--><br />
<!--START TABLE-->
<!--NAME FIELDS-->
<!--TOPIC TITLE-->
<!--POLL BOX-->
<!--POST BOX-->
<!--QUOTE BOX-->
<!--POST ICONS-->
<!--UPLOAD FIELD-->
<!--MOD OPTIONS-->
<!--END TABLE-->
EOF;
}
function add_edit_box($checked="") {
global $ibforums;
return <<<EOF
<tr>
<td class='pformleft'><b>{$ibforums->lang['edit_ops']}</b></td>
<td class='pformright'><input type='checkbox' name='add_edit' value='1' $checked class='forminput' />&nbsp;{$ibforums->lang['append_edit']}</td>
</tr>
EOF;
}
function topictitle_fields($data) {
global $ibforums;
return <<<EOF
<tr>
<td colspan="2" class='pformstrip'>{$ibforums->lang['tt_topic_settings']}</td>
</tr>
<tr>
<td class='pformleft'>{$ibforums->lang['topic_title']}</td>
<td class='pformright'><input type='text' size='40' maxlength='50' name='TopicTitle' value='{$data[TITLE]}' tabindex='1' class='forminput' /></td>
</tr>
<tr>
<td class='pformleft'>{$ibforums->lang['topic_desc']}</td>
<td class='pformright'><input type='text' size='40' maxlength='40' name='TopicDesc' value='{$data[DESC]}' tabindex='2' class='forminput' /></td>
</tr>
EOF;
}
}
?>
-78
View File
@@ -1,78 +0,0 @@
<?php
class skin_printpage {
function choose_form($fid, $tid, $title) {
global $ibforums;
return <<<EOF
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}>&nbsp;{$ibforums->lang['tvo_title']}&nbsp;$title</div>
<div class='tablepad'>
<b><a href='{$ibforums->base_url}act=Print&amp;client=printer&amp;f=$fid&amp;t=$tid'>{$ibforums->lang['o_print_title']}</a></b>
<br />
{$ibforums->lang['o_print_desc']}
<br /><br />
<b><a href='{$ibforums->base_url}act=Print&amp;client=html&amp;f=$fid&amp;t=$tid'>{$ibforums->lang['o_html_title']}</a></b>
<br />
{$ibforums->lang['o_html_desc']}
<br /><br />
<b><a href='{$ibforums->base_url}act=Print&amp;client=wordr&amp;f=$fid&amp;t=$tid'>{$ibforums->lang['o_word_title']}</a></b>
<br />
{$ibforums->lang['o_word_desc']}
</div>
<div align='center' class='pformstrip'>&lt;&lt;<a href='{$ibforums->base_url}showtopic=$tid'>{$ibforums->lang['back_topic']}</a></div>
</div>
<br />
EOF;
}
function pp_postentry($poster, $entry ) {
global $ibforums;
return <<<EOF
<table width='90%' align='center' cellpadding='6' border='1'>
<tr>
<td bgcolor='#EEEEEE'><font face='arial' size='2' color='#000000'><b>{$ibforums->lang['by']}: {$entry['author_name']}</b> {$ibforums->lang['on']} {$entry['post_date']}</b></font></td>
</tr>
<tr>
<td><font face='arial' size='3' color='#000000'>{$entry['post']}</font></td>
</tr>
</table>
<br />
EOF;
}
function pp_end() {
global $ibforums;
return <<<EOF
<center><font face='arial' size='1' color='#000000'>Powered by Invision Power Board (http://www.invisionboard.com)<br />&copy; Invision Power Services (http://www.invisionpower.com)</font></center>
EOF;
}
function pp_header($forum_name, $topic_title, $topic_starter,$fid, $tid) {
global $ibforums;
return <<<EOF
<html>
<head>
<title>{$ibforums->vars['board_name']} [Powered by Invision Power Board]</title>
</head>
<body bgcolor='#FFFFFF' alink='#000000' vlink='#000000' link='#000000'>
<table width='90%' border='0' align='center' cellpadding='6'>
<tr>
<td><b><font face='arial' size='5' color='#4C77B6'><b>{$ibforums->lang['title']}</font></b>
<br /><font face='arial' size='2' color='#000000'><b><a href='{$ibforums->base_url}act=ST&amp;f=$fid&amp;t=$tid'>{$ibforums->lang['topic_here']}</a></b></font>
</td>
</tr>
<tr>
<td><font face='arial' size='2' color='#000000'><b>{$ibforums->vars['board_name']} &gt; $forum_name &gt; <font color='red'>$topic_title</font></b></font></td>
</tr>
</table>
<br />
<br />
EOF;
}
}
?>
-414
View File
@@ -1,414 +0,0 @@
<?php
class skin_profile {
function warn_level($mid, $img, $percent) {
global $ibforums;
return <<<EOF
<tr>
<td class="row3" valign='top'><b>{$ibforums->lang['warn_level']}</b></td>
<td align='left' class='row1'><a href="javascript:PopUp('{$ibforums->base_url}act=warn&amp;mid={$mid}&amp;CODE=view','Pager','500','450','0','1','1','1')">{$percent}</a>%: <a href='{$ibforums->base_url}act=warn&amp;type=minus&amp;mid={$mid}' title='{$ibforums->lang['tt_warn_minus']}'><{WARN_MINUS}></a>{$img}<a href='{$ibforums->base_url}act=warn&amp;type=add&amp;mid={$mid}' title='{$ibforums->lang['tt_warn_add']}'><{WARN_ADD}></a>
</td>
</tr>
EOF;
}
function warn_level_no_mod($mid, $img, $percent) {
global $ibforums;
return <<<EOF
<tr>
<td class="row3" valign='top'><b>{$ibforums->lang['warn_level']}</b></td>
<td align='left' class='row1'><a href="javascript:PopUp('{$ibforums->base_url}act=warn&amp;mid={$mid}&amp;CODE=view','Pager','500','450','0','1','1','1')">{$percent}</a>%: {$img}</td>
</tr>
EOF;
}
function warn_level_rating($mid, $level,$min=0,$max=10) {
global $ibforums;
return <<<EOF
<tr>
<td class="row3" valign='top'><b>{$ibforums->lang['rating_level']}</b></td>
<td align='left' class='row1'><a href='{$ibforums->base_url}act=warn&amp;type=minus&amp;mid={$mid}' title='{$ibforums->lang['tt_warn_minus']}'><{WARN_MINUS}></a> &lt;&nbsp;$min ( <a href="javascript:PopUp('{$ibforums->base_url}act=warn&amp;mid={$mid}&amp;CODE=view','Pager','500','450','0','1','1','1')">{$level}</a> ) $max&nbsp;&gt; <a href='{$ibforums->base_url}act=warn&amp;type=add&amp;mid={$mid}' title='{$ibforums->lang['tt_warn_add']}'><{WARN_ADD}></a></td>
</tr>
EOF;
}
function warn_level_rating_no_mod($mid, $level,$min=0,$max=10) {
global $ibforums;
return <<<EOF
<tr>
<td class="row3" valign='top'><b>{$ibforums->lang['rating_level']}</b></td>
<td align='left' class='row1'>&lt;&nbsp;$min ( <a href="javascript:PopUp('{$ibforums->base_url}act=warn&amp;mid={$mid}&amp;CODE=view','Pager','500','450','0','1','1','1')">{$level}</a> ) $max&nbsp;&gt;</td>
</tr>
EOF;
}
function get_photo($show_photo, $show_width, $show_height) {
global $ibforums;
return <<<EOF
<img src="$show_photo" border="0" alt="User Photo" $show_width $show_height />
EOF;
}
function show_photo($name, $photo) {
global $ibforums;
return <<<EOF
<div id="photowrap">
<div id="phototitle">$name</div>
<div id="photoimg">$photo</div>
</div>
EOF;
}
function show_card_download($name, $photo, $info) {
global $ibforums;
return <<<EOF
<html>
<head>
<title>$name</title>
<style type="text/css">
form { display:inline; }
img { vertical-align:middle }
BODY { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 11px; color: #000; margin-left:5%;margin-right:5%;margin-top:5px; }
TABLE, TR, TD { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 11px; color: #000; }
a:link, a:visited, a:active { text-decoration: underline; color: #000 }
a:hover { color: #465584; text-decoration:underline }
#profilename { font-size:28px; font-weight:bold; }
#photowrap { padding:6px; }
#phototitle { font-size:24px; border-bottom:1px solid black }
#photoimg { text-align:center; margin-top:15px }
.plainborder { border:1px solid #345487;background-color:#F5F9FD }
.tableborder { border:1px solid #345487;background-color:#FFF }
.tablefill { border:1px solid #345487;background-color:#F5F9FD;padding:6px }
.tablepad { background-color:#F5F9FD;padding:6px }
.tablebasic { width:100%; padding:0px 0px 0px 0px; margin:0px; border:0px }
.row1 { background-color: #F5F9FD }
.row2 { background-color: #DFE6EF }
.row3 { background-color: #EEF2F7 }
.row4 { background-color: #E4EAF2 }
</style>
<script language='javascript' type="text/javascript">
<!--
function redirect_to(where, closewin)
{
document.location= '$ibforums->base_url' + where;
if (closewin == 1)
{
self.close();
}
}
//-->
</script>
</head>
<body>
<table width="100%" height="100%">
<tr>
<td valign="middle" align="center" width="400">
<div id="phototitle">$name</div>
<br />
<table class="tablebasic" cellspacing="6">
<tr>
<td valign="middle" class="row1">$photo</td>
<td width="100%" class="row1" valign="bottom">
<table class="tablebasic" cellpadding="5">
<tr>
<td nowrap="nowrap">{$ibforums->lang['email']}</td>
<td width="100%">{$info['email']}</td>
</tr>
<tr>
<td nowrap="nowrap">{$ibforums->lang['integ_msg']}</td>
<td width="100%">{$info['integ_msg']}</td>
</tr>
<tr>
<td nowrap="nowrap">{$ibforums->lang['aim']}</td>
<td width="100%">{$info['aim_name']}</td>
</tr>
<tr>
<td nowrap="nowrap">{$ibforums->lang['icq']}</td>
<td width="100%">{$info['icq_number']}</td>
</tr>
<tr>
<td nowrap="nowrap">{$ibforums->lang['yahoo']}</td>
<td width="100%">{$info['yahoo']}</td>
</tr>
<tr>
<td nowrap="nowrap">{$ibforums->lang['msn']}</td>
<td width="100%">{$info['msn_name']}</td>
</tr>
<tr>
<td nowrap="nowrap">{$ibforums->lang['pm']}</b></td>
<td><a href='javascript:redirect_to("&act=Msg&;CODE=4&MID={$info['mid']}", 1);'>{$ibforums->lang['click_here']}</a></td>
</tr>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
EOF;
}
function show_card($name, $photo, $info) {
global $ibforums;
return <<<EOF
<script language='javascript' type="text/javascript">
<!--
function redirect_to(where, closewin)
{
opener.location= '$ibforums->base_url' + where;
if (closewin == 1)
{
self.close();
}
}
//-->
</script>
<div id="photowrap">
<div id="phototitle">$name</div>
<br />
<table class="tablebasic" cellspacing="6">
<tr>
<td valign="middle" class="row1">$photo</td>
<td width="100%" class="row1" valign="bottom">
<table class="tablebasic" cellpadding="5">
<tr>
<td nowrap="nowrap">{$ibforums->lang['email']}</td>
<td width="100%">{$info['email']}</td>
</tr>
<tr>
<td nowrap="nowrap">{$ibforums->lang['integ_msg']}</td>
<td width="100%">{$info['integ_msg']}</td>
</tr>
<tr>
<td nowrap="nowrap">{$ibforums->lang['aim']}</td>
<td width="100%">{$info['aim_name']}</td>
</tr>
<tr>
<td nowrap="nowrap">{$ibforums->lang['icq']}</td>
<td width="100%">{$info['icq_number']}</td>
</tr>
<tr>
<td nowrap="nowrap">{$ibforums->lang['yahoo']}</td>
<td width="100%">{$info['yahoo']}</td>
</tr>
<tr>
<td nowrap="nowrap">{$ibforums->lang['msn']}</td>
<td width="100%">{$info['msn_name']}</td>
</tr>
<tr>
<td nowrap="nowrap">{$ibforums->lang['pm']}</b></td>
<td><a href='javascript:redirect_to("&amp;act=Msg&amp;CODE=4&amp;MID={$info['mid']}", 1);'>{$ibforums->lang['click_here']}</a></td>
</tr>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div align="center">
<a href="{$ibforums->base_url}act=Profile&amp;CODE=showcard&amp;MID={$info['mid']}&amp;download=1">{$ibforums->lang['ac_download']}</a>
&middot; <a href="javascript:self.close();">{$ibforums->lang['ac_close']}</a>
</div>
EOF;
}
function user_edit($info) {
global $ibforums;
return <<<EOF
&middot; <a href='{$info['base_url']}act=UserCP&amp;CODE=22'>{$ibforums->lang['edit_my_sig']}</a> &middot;
<a href='{$info['base_url']}act=UserCP&amp;CODE=24'>{$ibforums->lang['edit_avatar']}</a> &middot;
<a href='{$info['base_url']}act=UserCP&amp;CODE=01'>{$ibforums->lang['edit_profile']}</a>
EOF;
}
function show_profile($info) {
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 class="tablebasic" cellspacing="0" cellpadding="2">
<tr>
<td>{$info['photo']}</td>
<td width="100%" valign="bottom">
<div id="profilename">{$info['name']}</div>
<div>
<a href='{$info['base_url']}act=Search&amp;CODE=getalluser&amp;mid={$info['mid']}'>{$ibforums->lang['find_posts']}</a> &middot;
<a href='{$info['base_url']}act=Msg&amp;CODE=02&amp;MID={$info['mid']}'>{$ibforums->lang['add_to_contact']}</a>
<!--MEM OPTIONS-->
</div>
</td>
</tr>
</table>
<br />
<table cellpadding='0' align='center' cellspacing='2' border='0' width="100%">
<tr>
<td width='50%' valign='top' class="plainborder">
<table cellspacing="1" cellpadding='6' width='100%'>
<tr>
<td align='center' colspan='2' class='maintitle'>{$ibforums->lang['active_stats']}</td>
</tr>
<tr>
<td class="row3" width='30%' valign='top'><b>{$ibforums->lang['total_posts']}</b></td>
<td align='left' width='70%' class='row1'><b>{$info['posts']}</b><br />( {$info['total_pct']}% {$ibforums->lang['total_percent']} )</td>
</tr>
<tr>
<td class="row3" valign='top'><b>{$ibforums->lang['posts_per_day']}</b></td>
<td align='left' class='row1'><b>{$info['posts_day']}</b></td>
</tr>
<tr>
<td class="row3" valign='top'><b>{$ibforums->lang['joined']}</b></td>
<td align='left' class='row1'><b>{$info['joined']}</b></td>
</tr>
<tr>
<td class="row3" valign='top'><b>{$ibforums->lang['fav_forum']}</b></td>
<td align='left' class='row1'><a href='{$info['base_url']}act=SF&amp;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 class="row3" valign='top'><b>{$ibforums->lang['user_local_time']}</b></td>
<td align='left' class='row1'>{$info['local_time']}</td>
</tr>
</table>
</td>
<!-- Communication -->
<td width='50%' valign='top' class="plainborder">
<table cellspacing="1" cellpadding='6' width='100%'>
<tr>
<td align='center' colspan='2' class='maintitle'>{$ibforums->lang['communicate']}</td>
</tr>
<tr>
<td class="row3" width='30%' valign='top'><b>{$ibforums->lang['email']}</b></td>
<td align='left' width='70%' class='row1'>{$info['email']}</td>
</tr>
<tr>
<td class="row3" valign='top'><b>{$ibforums->lang['integ_msg']}</b></td>
<td align='left' class='row1'>{$info['integ_msg']}</td>
</tr>
<tr>
<td class="row3" valign='top'><b>{$ibforums->lang['aim']}</b></td>
<td align='left' class='row1'>{$info['aim_name']}</td>
</tr>
<tr>
<td class="row3" valign='top'><b>{$ibforums->lang['icq']}</b></td>
<td align='left' class='row1'>{$info['icq_number']}</td>
</tr>
<tr>
<td class="row3" valign='top'><b>{$ibforums->lang['yahoo']}</b></td>
<td align='left' class='row1'>{$info['yahoo']}</td>
</tr>
<tr>
<td class="row3" valign='top'><b>{$ibforums->lang['msn']}</b></td>
<td align='left' class='row1'>{$info['msn_name']}</td>
</tr>
<tr>
<td class="row3" valign='top'><b>{$ibforums->lang['pm']}</b></td>
<td align='left' class='row1'><a href='{$info['base_url']}act=Msg&amp;CODE=4&amp;MID={$info['mid']}'>{$ibforums->lang['click_here']}</a></td>
</tr>
</table>
</td>
<!-- END CONTENT ROW 1 -->
<!-- information -->
</tr>
<tr>
<td width='50%' valign='top' class="plainborder">
<table cellspacing="1" cellpadding='6' width='100%'>
<tr>
<td align='center' colspan='2' class='maintitle'>{$ibforums->lang['info']}</td>
</tr>
<tr>
<td class="row3" width='30%' valign='top'><b>{$ibforums->lang['homepage']}</b></td>
<td align='left' width='70%' class='row1'>{$info['homepage']}</td>
</tr>
<tr>
<td class="row3" valign='top'><b>{$ibforums->lang['birthday']}</b></td>
<td align='left' class='row1'>{$info['birthday']}</td>
</tr>
<tr>
<td class="row3" valign='top'><b>{$ibforums->lang['location']}</b></td>
<td align='left' class='row1'>{$info['location']}</td>
</tr>
<tr>
<td class="row3" valign='top'><b>{$ibforums->lang['interests']}</b></td>
<td align='left' class='row1'>{$info['interests']}</td>
</tr>
<!--{CUSTOM.FIELDS}-->
</table>
</td>
<!-- Profile -->
<td width='50%' valign='top' class="plainborder">
<table cellspacing="1" cellpadding='6' width='100%'>
<tr>
<td align='center' colspan='2' class='maintitle'>{$ibforums->lang['post_detail']}</td>
</tr>
<tr>
<td class="row3" width='30%' valign='top'><b>{$ibforums->lang['mgroup']}</b></td>
<td align='left' width='70%' class='row1'>{$info['group_title']}</td>
</tr>
<tr>
<td class="row3" valign='top'><b>{$ibforums->lang['mtitle']}</b></td>
<td align='left' class='row1'>{$info['member_title']}</td>
</tr>
<tr>
<td class="row3" valign='top'><b>{$ibforums->lang['avatar']}</b></td>
<td align='left' class='row1'>{$info['avatar']}</td>
</tr>
<tr>
<td class="row3" valign='top'><b>{$ibforums->lang['siggie']}</b></td>
<td align='left' class='row1'>{$info['signature']}</td>
</tr>
<!--{WARN_LEVEL}-->
</table>
</td>
</tr>
</table>
<div class='tableborder'>
<div class='pformstrip' align='center'>&lt;( <a href='javascript:history.go(-1)'>{$ibforums->lang['back']}</a> )</div>
</div>
EOF;
}
function custom_field($title, $value="") {
global $ibforums;
return <<<EOF
<tr>
<td class="row3" valign='top'><b>$title</b></td>
<td align='left' class='row1'>$value</td>
</tr>
EOF;
}
}
?>
-534
View File
@@ -1,534 +0,0 @@
<?php
class skin_register {
function coppa_form() {
global $ibforums;
return <<<EOF
<html>
<head>
<title>{$ibforums->lang['cpf_title']}</title>
<!--<link rel='stylesheet' href='style_sheets/stylesheet_<{css_id}>.css' type='text/css'>-->
</head>
<body bgcolor='white'>
<table cellpadding='0' cellspacing='4' border='0' width='95%' align='center'>
<tr>
<td valign='middle' align='left'>
<span class='pagetitle'>{$ibforums->vars['board_name']}: {$ibforums->lang['cpf_title']}</span>
<br /><br />
<b><span style='font-size:12px'>{$ibforums->lang['cpf_perm_parent']}</span></b>
<br /><br />
{$ibforums->lang['cpf_fax']} {$ibforums->vars['coppa_fax']}
<br /><br />
{$ibforums->lang['cpf_address']}
<br />
{$ibforums->vars['coppa_address']}
</td>
</tr>
</table>
<br />
<table cellpadding='4' cellspacing='2' border='1' width='95%' align='center'>
<tr>
<td width='40%'>{$ibforums->lang['user_name']}</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['pass_word']}</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['email_address']}</td>
<td>&nbsp;</td>
</tr>
</table>
<br />
<table cellpadding='0' cellspacing='4' border='0' width='95%' align='center'>
<tr>
<td valign='middle' align='left'>
<b><span style='font-size:12px'>{$ibforums->lang['cpf_sign']}</span></b>
</td>
</tr>
</table>
<br />
<table cellpadding='10' cellspacing='2' border='1' width='95%' align='center'>
<tr>
<td width='40%'>{$ibforums->lang['cpf_name']}</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['cpf_relation']}</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['cpf_signature']}</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['cpf_email']}</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['cpf_phone']}</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['cpf_date']}</td>
<td>&nbsp;</td>
</tr>
</table>
</body>
</html>
EOF;
}
function coppa_two() {
global $ibforums;
return <<<EOF
<div class='tableborder'>
<div class='maintitle'>{$ibforums->lang['cp2_title']}</div>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td class='row1' align='left'>
{$ibforums->lang['cp2_text']}
<br /><br />
<center><span style='font-weight:bold;font-size:12px'>
&lt;&lt; <a href='{$ibforums->base_url}'>{$ibforums->lang['cp2_cancel']}</a>
- <a href='{$ibforums->base_url}act=Reg&amp;coppa_pass=1&amp;coppa_user=1'>{$ibforums->lang['cp2_continue']}</a> &gt;&gt;
</span></center>
</td>
</tr>
<tr>
<td valign='left' class='titlemedium'>{$ibforums->lang['coppa_form']}</td>
</tr>
<tr>
<td class='row1' align='left'>{$ibforums->lang['coppa_form_text']} <a href='mailto:{$ibforums->vars['email_in']}'>{$ibforums->vars['email_in']}</a></td>
</tr>
</table>
</div>
EOF;
}
function coppa_start($coppadate) {
global $ibforums;
return <<<EOF
<div class="tableborder">
<div class="maintitle"><{CAT_IMG}>&nbsp;{$ibforums->lang['registration_form']}</div>
<div class="pformstrip">{$ibforums->lang['coppa_info']}</div>
<div class="tablepad" align="center">
<span class="postcolor">
<strong>
{$ibforums->lang['coppa_link']}
<br /><br />
&lt; <a href='{$ibforums->base_url}act=Reg&amp;coppa_pass=1'>{$ibforums->lang['coppa_date_before']} $coppadate</a>
- <a href='{$ibforums->base_url}act=Reg&amp;CODE=coppa_two'>{$ibforums->lang['coppa_date_after']} $coppadate</a> &gt;
</strong>
</span>
</div>
<div class="pformstrip">{$ibforums->lang['coppa_form']}</div>
<div class="tablepad">{$ibforums->lang['coppa_form_text']} <a href='mailto:{$ibforums->vars['email_in']}'>{$ibforums->vars['email_in']}</a></div>
</div>
EOF;
}
function lost_pass_form($lasid="") {
global $ibforums;
return <<<EOF
<form action="{$ibforums->base_url}" method="post">
<input type='hidden' name='act' value='Reg' />
<input type='hidden' name='CODE' value='11' />
<div class="tableborder">
<div class="maintitle"><{CAT_IMG}>&nbsp;{$ibforums->lang['lost_pass_form']}</div>
<div class="pformstrip">{$ibforums->lang['lp_header']}</div>
<div class="tablepad"><span style="line-height:140%">{$ibforums->lang['lp_text']}</span></div>
<div class="pformstrip">{$ibforums->lang['complete_form']}</div>
<table class="tablebasic">
<tr>
<td class="pformleft"><strong>{$ibforums->lang['lp_user_name']}</strong></td>
<td class="pformright"><input type='text' size='32' maxlength='32' name='member_name' class='forminput' /></td>
</tr>
</table>
</div>
<!--{REG.ANTISPAM}-->
<br />
<div class="tableborder">
<div class="pformstrip" align="center"><input type="submit" value="{$ibforums->lang['lp_send']}" class='forminput' /></div>
</div>
</form>
EOF;
}
function show_authorise($member) {
global $ibforums;
return <<<EOF
<div class="tableborder">
<div class="maintitle"><!-- --></div>
<div class="pformstrip">{$ibforums->lang['registration_process']}</div>
<div class="tablepad">{$ibforums->lang['thank_you']} {$member['name']}. {$ibforums->lang['auth_text']} {$member['email']}</div>
</div>
EOF;
}
function show_revalidated() {
global $ibforums;
return <<<EOF
<div class="tableborder">
<div class="maintitle"><{CAT_IMG}>&nbsp;{$ibforums->lang['rv_title']}</div>
<div class="pformstrip">{$ibforums->lang['rv_process']}</div>
<div class="tablepad">{$ibforums->lang['rv_done']}</div>
</div>
EOF;
}
function show_lostpasswait($member) {
global $ibforums;
return <<<EOF
<div class="tableborder">
<div class="maintitle"><{CAT_IMG}>&nbsp;{$ibforums->lang['lpf_title']}</div>
<div class="pformstrip">{$ibforums->lang['registration_process']}</div>
<div class="tablepad">{$ibforums->lang['lpass_text']}</div>
</div>
EOF;
}
function show_preview($member) {
global $ibforums;
return <<<EOF
<div class="tableborder">
<div class="maintitle"><!-- --></div>
<div class="pformstrip">{$ibforums->lang['registration_process']}</div>
<div class="tablepad">{$ibforums->lang['thank_you']} {$member['name']}. {$ibforums->lang['preview_reg_text']}</div>
</div>
EOF;
}
function show_revalidate_form($name="") {
global $ibforums;
return <<<EOF
<form action="{$ibforums->base_url}" method="post" name='REG'>
<input type='hidden' name='act' value='Reg' />
<input type='hidden' name='CODE' value='reval2' />
<div>{$ibforums->lang['rv_ins']}</div>
<br />
<div class="tableborder">
<div class="maintitle"><{CAT_IMG}>&nbsp;{$ibforums->lang['rv_title']}</div>
<table class="tablebasic">
<tr>
<td class="pformleft"><strong>{$ibforums->lang['rv_name']}</strong></td>
<td class="pformright"><input type='text' size='32' maxlength='64' name='username' value='$name' class='forminput' /></td>
</tr>
</table>
<div class="pformstrip" align="center"><input type="submit" value="{$ibforums->lang['rv_go']}" class='forminput' /></div>
</div>
</form>
EOF;
}
function show_lostpass_form() {
global $ibforums;
return <<<EOF
<script language='javascript' type="text/javascript">
<!--
function Validate() {
// Check for Empty fields
if (document.REG.uid.value == "" || document.REG.aid.value == "") {
alert ("{$ibforums->lang['js_blanks']}");
return false;
}
}
//-->
</script>
<form action="{$ibforums->base_url}" 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='lostpass' />
<div class="tableborder">
<div class="maintitle"><{CAT_IMG}>&nbsp;{$ibforums->lang['dumb_header']}</div>
<div class="pformstrip">{$ibforums->lang['lpf_title']}</div>
<!--IBF.INPUT_TYPE-->
<tr>
<td class="pformleft"><strong>{$ibforums->lang['lpf_pass1']}</strong><br><em>{$ibforums->lang['lpf_pass11']}</em></td>
<td class="pformright"><input type='password' size='32' maxlength='32' name='pass1' class='forminput' /></td>
</tr>
<tr>
<td class="pformleft"><strong>{$ibforums->lang['lpf_pass2']}</strong><br><em>{$ibforums->lang['lpf_pass22']}</em></td>
<td class="pformright"><input type='password' size='32' maxlength='32' name='pass2' class='forminput' /></td>
</tr>
</table>
<div class="pformstrip" align="center"><input type="submit" value="{$ibforums->lang['dumb_submit']}" class='forminput' /></div>
</div>
</form>
EOF;
}
function show_lostpass_form_manual() {
global $ibforums;
return <<<EOF
<div class="tablepad">{$ibforums->lang['dumb_text']}</div>
<div class="pformstrip">{$ibforums->lang['complete_form']}</div>
<table class="tablebasic">
<tr>
<td class="pformleft"><strong>{$ibforums->lang['user_id']}</strong></td>
<td class="pformright"><input type='text' size='32' maxlength='32' name='uid' class='forminput' /></td>
</tr>
<tr>
<td class="pformleft"><strong>{$ibforums->lang['val_key']}</strong></td>
<td class="pformright"><input type='text' size='32' maxlength='50' name='aid' class='forminput' /></td>
</tr>
EOF;
}
function show_lostpass_form_auto($aid,$uid) {
global $ibforums;
return <<<EOF
<input type='hidden' name='uid' value='$uid' />
<input type='hidden' name='aid' value='$aid' />
<table class="tablebasic">
EOF;
}
function show_dumb_form($type="reg") {
global $ibforums;
return <<<EOF
<script language='javascript' type="text/javascript">
<!--
function Validate() {
// Check for Empty fields
if (document.REG.uid.value == "" || document.REG.aid.value == "") {
alert ("{$ibforums->lang['js_blanks']}");
return false;
}
}
//-->
</script>
<form action="{$ibforums->base_url}" 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' />
<div class="tableborder">
<div class="titlemedium">{$ibforums->lang['dumb_header']}</div>
<div class="tablepad">{$ibforums->lang['dumb_text']}</div>
<div class="pformstrip">{$ibforums->lang['complete_form']}</div>
<table class="tablebasic">
<tr>
<td class="pformleft">{$ibforums->lang['user_id']}</td>
<td class="pformright"><input type='text' size='32' maxlength='32' name='uid' class='forminput' /></td>
</tr>
<tr>
<td class="pformleft">{$ibforums->lang['val_key']}</td>
<td class="pformright"><input type='text' size='32' maxlength='50' name='aid' class='forminput' /></td>
</tr>
</table>
<div class="pformstrip" align="center"><input type="submit" value="{$ibforums->lang['dumb_submit']}" class='forminput' /></div>
</div>
</form>
EOF;
}
function ShowForm($data) {
global $ibforums;
return <<<EOF
<script language='javascript' type="text/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>
<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' />
<input type='hidden' name='coppa_user' value='{$data['coppa_user']}' />
<b>{$ibforums->lang['reg_header']}</b><br /><br />{$data['TEXT']}
<br />
<br />
<div class="tableborder">
<div class="maintitle"><{CAT_IMG}>&nbsp;{$ibforums->lang['registration_form']}</div>
<div class="pformstrip">{$ibforums->lang['complete_form']}</div>
<table class="tablebasic">
<tr>
<td class="pformleft">{$ibforums->lang['user_name']}</td>
<td class="pformright"><input type='text' size='32' maxlength='64' value='{$ibforums->input['UserName']}' name='UserName' class='forminput' /></td>
</tr>
<tr>
<td class="pformleft">{$ibforums->lang['pass_word']}</td>
<td class="pformright"><input type='password' size='32' maxlength='32' value='{$ibforums->input['PassWord']}' name='PassWord' class='forminput' /></td>
</tr>
<tr>
<td class="pformleft">{$ibforums->lang['re_enter_pass']}</td>
<td class="pformright"><input type='password' size='32' maxlength='32' value='{$ibforums->input['PassWord_Check']}' name='PassWord_Check' class='forminput' /></td>
</tr>
<tr>
<td class="pformleft">{$ibforums->lang['email_address']}</td>
<td class="pformright"><input type='text' size='32' maxlength='50' value='{$ibforums->input['EmailAddress']}' name='EmailAddress' class='forminput' /></td>
</tr>
<tr>
<td class="pformleft">{$ibforums->lang['email_address_two']}</td>
<td class="pformright"><input type='text' size='32' maxlength='50' value='{$ibforums->input['EmailAddress_two']}' name='EmailAddress_two' class='forminput' /></td>
</tr>
<!--{REQUIRED.FIELDS}-->
<!--{OPTIONAL.FIELDS}-->
<!--IBF.MODULES.EXTRA-->
</table>
</div>
<br />
<!--{REG.ANTISPAM}-->
<br />
<div class="tableborder">
<div class="pformstrip">{$ibforums->lang['terms_service']}</div>
<div class="tablepad" align="center">
<strong>{$ibforums->lang['terms_service_text']}</strong>
<br />
<br />
<textarea cols='75' rows='9' readonly="readonly" name='Post' class='textinput'>{$data[RULES]}</textarea>
<br /><br /><b>{$ibforums->lang['agree_submit']}</b>&nbsp;<input type='checkbox' name='agree' value='1' />
</div>
<div class="pformstrip" align="center"><input type="submit" value="{$ibforums->lang['submit_form']}" class='forminput' /></div>
</div>
</form>
EOF;
}
function errors($data) {
global $ibforums;
return <<<EOF
<div class="tableborder">
<div class="pformstrip">{$ibforums->lang['errors_found']}</div>
<div class="tablepad"><span class='postcolor'>$data</span></div>
</div>
<br />
EOF;
}
function bot_antispam($regid) {
global $ibforums;
return <<<EOF
<br />
<div class="tableborder">
<div class="pformstrip">{$ibforums->lang['las_title']}</div>
<table class="tablebasic">
<td class='row1' width='40%'>{$ibforums->lang['las_numbers']}</td>
<td class='row1'>
<input type='hidden' name='regid' value='$regid' />
<img src='{$ibforums->base_url}act=Reg&amp;CODE=image&amp;rc={$regid}&amp;p=1' border='0' alt='Code Bit' />
&nbsp;<img src='{$ibforums->base_url}act=Reg&amp;CODE=image&amp;rc={$regid}&amp;p=2' border='0' alt='Code Bit' />
&nbsp;<img src='{$ibforums->base_url}act=Reg&amp;CODE=image&amp;rc={$regid}&amp;p=3' border='0' alt='Code Bit' />
&nbsp;<img src='{$ibforums->base_url}act=Reg&amp;CODE=image&amp;rc={$regid}&amp;p=4' border='0' alt='Code Bit' />
&nbsp;<img src='{$ibforums->base_url}act=Reg&amp;CODE=image&amp;rc={$regid}&amp;p=5' border='0' alt='Code Bit' />
&nbsp;<img src='{$ibforums->base_url}act=Reg&amp;CODE=image&amp;rc={$regid}&amp;p=6' border='0' alt='Code Bit' />
</td>
</tr>
<tr>
<td class='row1' width='40%'>{$ibforums->lang['las_text']}</td>
<td class='row1'><input type='text' size='32' maxlength='32' name='reg_code' class='forminput' /></td>
</tr>
</table>
</div>
EOF;
}
function bot_antispam_gd($regid) {
global $ibforums;
return <<<EOF
<br />
<div class="tableborder">
<div class="pformstrip">{$ibforums->lang['las_title']}</div>
<table class="tablebasic">
<tr>
<td class='row1' width='40%'>{$ibforums->lang['las_numbers']}</td>
<td class='row1'>
<input type='hidden' name='regid' value='$regid' />
<img src='{$ibforums->base_url}act=Reg&amp;CODE=image&amp;rc={$regid}' border='0' alt='Loading Image' />
</td>
</tr>
<tr>
<td class='row1' width='40%'>{$ibforums->lang['las_text']}</td>
<td class='row1'><input type='text' size='32' maxlength='32' name='reg_code' class='forminput' /></td>
</tr>
</table>
</div>
EOF;
}
function tmpl_form($action, $hidden, $title, $content ) {
global $ibforums;
return <<<EOF
<form method="post" action="$action">
$hidden
<div class="tableborder">
<div class="maintitle">$title</div>
<table class="tablebasic">
$content
</table>
<div class="pformstrip" align="center"><input type="submit" class='forminput' /></div>
</div>
</form>
EOF;
}
function optional_title() {
global $ibforums;
return <<<EOF
<tr>
<td colspan='2' class='pformstrip'>{$ibforums->lang['cf_optional']}</td>
</tr>
EOF;
}
function field_entry($title, $desc="", $content) {
global $ibforums;
return <<<EOF
<tr>
<td class='pformleft' valign='top'><b>$title</b><br />$desc</td>
<td class='pformright'>$content</td>
</tr>
EOF;
}
function field_textinput($name, $value="") {
global $ibforums;
return <<<EOF
<input type='text' size='30' name='$name' value='$value' class='forminput' />
EOF;
}
function field_dropdown($name, $options) {
global $ibforums;
return <<<EOF
<select name='$name' class='forminput'>$options</select>
EOF;
}
function field_textarea($name, $value) {
global $ibforums;
return <<<EOF
<textarea cols='60' rows='5' name='$name' class='forminput'>$value</textarea>
EOF;
}
}
?>
-489
View File
@@ -1,489 +0,0 @@
<?php
class skin_search {
function RenderRow($Data) {
global $ibforums;
return <<<EOF
<!-- Begin Topic Entry {$Data['tid']} -->
<tr>
<td align='center' class='row4'>{$Data['folder_img']}</td>
<td align='center' width='3%' class='row2'>{$Data['topic_icon']}</td>
<td class='row4'>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td valign='middle'>{$Data['go_new_post']}</td>
<td width='100%'>{$Data['prefix']} <a href='{$ibforums->base_url}showtopic={$Data['tid']}&amp;hl={$Data['keywords']}'>{$Data['title']}</a> {$Data[PAGES]}</td>
</tr>
</table>
<span class='desc'>{$Data['description']}</span></td>
<td class='row4' width='20%' align='center'><a href="{$ibforums->base_url}showforum={$Data['forum_id']}">{$Data['forum_name']}</a></td>
<td align='center' class='row2'>{$Data['starter']}</td>
<td align='center' class='row4'>{$Data['posts']}</td>
<td align='center' class='row2'>{$Data['views']}</td>
<td class='row2'>{$Data['last_post']}<br /><a href='{$ibforums->base_url}showtopic={$Data['tid']}&amp;view=getlastpost'>{$Data['last_text']}</a> <b>{$Data['last_poster']}</b></td>
</tr>
<!-- End Topic Entry {$Data['tid']} -->
EOF;
}
function RenderPostRow($Data) {
global $ibforums;
return <<<EOF
<br />
<div class="tableborder">
<div class="maintitle">{$Data['folder_img']}&nbsp;{$Data['prefix']} <a href='{$ibforums->base_url}showtopic={$Data['tid']}&amp;hl={$Data['keywords']}' class='linkthru'>{$Data['title']}</a></span></b> {$Data[PAGES]}</div>
<table class="tablebasic" cellpadding="6" cellspacing="1" width='100%'>
<tr>
<td width='150' align='left' class='row4'><span class='normalname'>{$Data['author_name']}</span></td>
<td class='row4' width="100%"><strong>{$ibforums->lang['rp_postedon']} {$Data['post_date']}</strong></td>
</tr>
<tr>
<td class='post1' align='left'>
<img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='150' height='15' />
<br />
<span class='postdetails'>{$ibforums->lang['rp_replies']} <b>{$Data['posts']}</b><br />{$ibforums->lang['rp_hits']} <b>{$Data['views']}</b></span>
</td>
<td class='post1' align='left' width="100%">{$Data['post']}</td>
</tr>
<tr>
<td class='row4'>&nbsp;</td>
<td class='row4'>{$ibforums->lang['rp_forum']} <a href="{$ibforums->base_url}showforum={$Data['forum_id']}">{$Data['forum_name']}</a>&nbsp;&nbsp;&middot;&nbsp;&nbsp;{$ibforums->lang['rp_post']} <a href='{$ibforums->base_url}act=ST&amp;f={$Data['forum_id']}&amp;t={$Data['tid']}&amp;hl={$Data['keywords']}&amp;view=findpost&amp;p={$Data['pid']}' class='linkthru'>#{$Data['pid']}</a></td>
</tr>
</table>
</div>
EOF;
}
function start_as_post($Data) {
global $ibforums;
return <<<EOF
<div>{$Data[SHOW_PAGES]}</div>
EOF;
}
function end_as_post($Data) {
global $ibforums;
return <<<EOF
<br />
<div>{$Data[SHOW_PAGES]}</div>
<div align='left' class="wrapmini">
<{B_NEW}>&nbsp;&nbsp;{$ibforums->lang['pm_open_new']}
<br /><{B_NORM}>&nbsp;&nbsp;{$ibforums->lang['pm_open_no']}
<br /><{B_HOT}>&nbsp;&nbsp;{$ibforums->lang['pm_hot_new']}
<br /><{B_HOT_NN}>&nbsp;&nbsp;{$ibforums->lang['pm_hot_no']}
</div>
<div align='left' class="wrapmini">
<{B_POLL}>&nbsp;&nbsp;{$ibforums->lang['pm_poll']}
<br /><{B_POLL_NN}>&nbsp;&nbsp;{$ibforums->lang['pm_poll_no']}
<br /><{B_LOCKED}>&nbsp;&nbsp;{$ibforums->lang['pm_locked']}
<br /><{B_MOVED}>&nbsp;&nbsp;{$ibforums->lang['pm_moved']}
</div>
EOF;
}
function end($Data) {
global $ibforums;
return <<<EOF
</table>
<div class="titlemedium">&nbsp;</div>
</div>
<br />
<div>{$Data[SHOW_PAGES]}</div>
<br />
<div align='left' class="wrapmini">
<{B_NEW}>&nbsp;&nbsp;{$ibforums->lang['pm_open_new']}
<br /><{B_NORM}>&nbsp;&nbsp;{$ibforums->lang['pm_open_no']}
<br /><{B_HOT}>&nbsp;&nbsp;{$ibforums->lang['pm_hot_new']}
<br /><{B_HOT_NN}>&nbsp;&nbsp;{$ibforums->lang['pm_hot_no']}
</div>
<div align='left' class="wrapmini">
<{B_POLL}>&nbsp;&nbsp;{$ibforums->lang['pm_poll']}
<br /><{B_POLL_NN}>&nbsp;&nbsp;{$ibforums->lang['pm_poll_no']}
<br /><{B_LOCKED}>&nbsp;&nbsp;{$ibforums->lang['pm_locked']}
<br /><{B_MOVED}>&nbsp;&nbsp;{$ibforums->lang['pm_moved']}
</div>
<br />
<br clear="all" />
EOF;
}
function boolean_explain_page() {
global $ibforums;
return <<<EOF
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}>&nbsp;{$ibforums->lang['be_link']}</div>
<table width='100%' cellpadding='0' cellspacing='1'>
<tr>
<th width='30%' class='pformstrip'>{$ibforums->lang['be_use']}</th>
<th width='70%' class='pformstrip'>{$ibforums->lang['be_means']}</th>
</tr>
<tr>
<td class='pformleft'>{$ibforums->lang['be_u1']}</td>
<td class='pformleft'>{$ibforums->lang['be_m1']}</td>
</tr>
<tr>
<td class='pformleft'>{$ibforums->lang['be_u2']}</td>
<td class='pformleft'>{$ibforums->lang['be_m2']}</td>
</tr>
<tr>
<td class='pformleft'>{$ibforums->lang['be_u3']}</td>
<td class='pformleft'>{$ibforums->lang['be_m3']}</td>
</tr>
<tr>
<td class='pformleft'>{$ibforums->lang['be_u4']}</td>
<td class='pformleft'>{$ibforums->lang['be_m4']}</td>
</tr>
<tr>
<td class='pformleft'>{$ibforums->lang['be_u5']}</td>
<td class='pformleft'>{$ibforums->lang['be_m5']}</td>
</tr>
</table>
</div>
EOF;
}
function boolean_explain_link() {
global $ibforums;
return <<<EOF
&#091; <a href='#' title='{$ibforums->lang['be_ttip']}' onclick='win_pop()'>{$ibforums->lang['be_link']}</a> &#093;
EOF;
}
function simple_form($forums) {
global $ibforums;
return <<<EOF
<script type="text/javascript">
<!--
function go_gadget_advanced()
{
window.location = "{$ibforums->js_base_url}act=Search&mode=adv&f={$ibforums->input['f']}";
}
function win_pop()
{
window.open('{$ibforums->js_base_url}act=Search&CODE=explain','WIN','width=400,height=300,resizable=yes,scrollbars=yes');
}
-->
</script>
<form action="{$ibforums->base_url}act=Search&amp;CODE=simpleresults&amp;mode=simple" method="post" name='sForm'>
$hidden_fields
<div class="tableborder">
<div class="maintitle" align='center'>{$ibforums->lang['search_options']}</div>
<div class="pformstrip" align="center">{$ibforums->lang['key_search']}</div>
<div class="tablepad" align="center">
<input type='text' maxlength='100' size='40' id="keywords" name='keywords' class='forminput' />
<br />
<label for="keywords">{$ibforums->lang['keysearch_text']}</label> <!--IBF.BOOLEAN_EXPLAIN-->
</div>
<div class="pformstrip" align="center">{$ibforums->lang['search_where']}</div>
<div class="tablepad" align="center">
$forums
<br /><br />
<strong>{$ibforums->lang['sf_show_me']}</strong>
<input type="radio" name="sortby" value="relevant" id="sortby_one" checked="checked" class="radiobutton" />
<label for="sortby_one">{$ibforums->lang['sf_most_r_f']}</label>
&nbsp;
<input type="radio" name="sortby" value="date" id="sortby_two" class="radiobutton" />
<label for="sortby_two">{$ibforums->lang['sf_most_date']}</label>
</div>
<div class="pformstrip" align="center">
<input type='submit' value='{$ibforums->lang['do_search']}' class='forminput' />
&nbsp;
<input type='button' value='{$ibforums->lang['so_more_opts']}' onclick="go_gadget_advanced()" class='forminput' />
</div>
</div>
</form>
EOF;
}
function result_simple_header($data) {
global $ibforums;
return <<<EOF
<div class="plainborder">
<div class="maintitle"><{CAT_IMG}>&nbsp;{$ibforums->lang['search_results']}</div>
<div class="pformstrip">
<div class="pagelinks">{$ibforums->lang['g_searched_for']} <strong>{$data['keyword']}</strong></div>
<div align="right">
{$ibforums->lang['g_results']} <strong>{$data['start']} - {$data['end']}</strong> {$ibforums->lang['g_of_about']} <strong>{$data['matches']}</strong>.
{$ibforums->lang['g_search_took']} <strong>{$data['ex_time']}</strong> {$ibforums->lang['g_seconds']}
</div>
</div>
<br />
EOF;
}
function result_simple_footer($data) {
global $ibforums;
return <<<EOF
<div class="pformstrip" align="left">{$ibforums->lang['search_pages']} &nbsp; &nbsp; &nbsp;<span class="googlepagelinks">{$data['links']}</span></div>
</div>
EOF;
}
function result_simple_entry($data) {
global $ibforums;
return <<<EOF
<div class="{$data['css_class']}">
<span class="googlish"><a href='{$ibforums->base_url}act=ST&amp;t={$data['tid']}&amp;f={$data['id']}&amp;view=findpost&amp;p={$data['pid']}'>{$data['title']}</span></a>
<br />
{$data['post']}
<br />
<span class='googlesmall'>
{$ibforums->lang['location_g']}: <a href='{$ibforums->base_url}act=idx'>{$ibforums->lang['g_b_home']}</a>
&gt; <a href='{$ibforums->base_url}act=SC&amp;c={$data['cat_id']}'>{$data['cat_name']}</a>
&gt; <a href='{$ibforums->base_url}act=SF&amp;f={$data['id']}'>{$data['name']}</a>
</span>
<br />
<span class="googlebottom"><strong>{$ibforums->lang['g_relevance']}: {$data['relevance']}% &middot; Author: {$data['author_name']} &middot; Posted on: {$data['post_date']}</strong></span>
<span class="googlesmall"> - <a href='{$ibforums->base_url}act=ST&amp;t={$data['tid']}&amp;f={$data['id']}&amp;view=findpost&amp;p={$data['pid']}' target='_blank'>{$ibforums->lang['g_new_window']}</a></span>
</div>
<br />
EOF;
}
function Form($forums) {
global $ibforums;
return <<<EOF
<script type="text/javascript">
<!--
function go_gadget_simple()
{
window.location = "{$ibforums->js_base_url}act=Search&mode=simple&f={$ibforums->input['f']}";
}
function win_pop()
{
window.open('{$ibforums->js_base_url}act=Search&CODE=explain','WIN','width=400,height=300,resizable=yes,scrollbars=yes');
}
-->
</script>
<form action="{$ibforums->base_url}act=Search&amp;CODE=01" method="post" name='sForm'>
$hidden_fields
<div class="tableborder">
<table cellpadding='4' cellspacing='0' border='0' width='100%'>
<tr>
<td colspan='2' class="maintitle" align='center'>{$ibforums->lang['keywords_title']}</td>
</tr>
<tr>
<td class='pformstrip' width='50%'>{$ibforums->lang['key_search']}</td>
<td class='pformstrip' width='50%'>{$ibforums->lang['mem_search']}</td>
</tr>
<tr>
<td class='row1' valign='top'>
<input type='text' maxlength='100' size='40' name='keywords' id="keywords" class='forminput' />
<br /><br />
<label for="keywords">{$ibforums->lang['keysearch_text']}</label> <!--IBF.BOOLEAN_EXPLAIN-->
</td>
<td class='row1' valign='top'>
<table width='100%' cellpadding='4' cellspacing='0' border='0' align='center'>
<tr>
<td><input type='text' maxlength='100' size='50' name='namesearch' class='forminput' /></td>
</tr>
<tr>
<td width='40%'><input type='checkbox' name='exactname' id='matchexact' value='1' class="checkbox" /><label for="matchexact">{$ibforums->lang['match_name_ex']}</label></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<br />
<div class="tableborder">
<table cellpadding='4' cellspacing='0' border='0' width='100%'>
<tr>
<td colspan='2' class="maintitle" align='center'>{$ibforums->lang['search_options']}</td>
</tr>
<tr>
<td class='pformstrip' width='50%' valign='middle'>{$ibforums->lang['search_where']}</td>
<td class='pformstrip' width='50%' valign='middle'>{$ibforums->lang['search_refine']}</td>
</tr>
<tr>
<td class='row1' valign='middle'>
$forums
<br />
<input type='checkbox' name='searchsubs' value='1' id="searchsubs" checked="checked" />&nbsp;<label for="searchsubs">{$ibforums->lang['search_in_subs']}</label>
</td>
<td class='row1' valign='top'>
<table cellspacing='4' cellpadding='0' width='100%' align='center' border='0'>
<tr>
<td valign='top'>
<fieldset class="search">
<legend><strong>{$ibforums->lang['search_from']}</strong></legend>
<select name='prune' class='forminput'>
<option value='1'>{$ibforums->lang['today']}</option>
<option value='7'>{$ibforums->lang['this_week']}</option>
<option value='30' selected="selected">{$ibforums->lang['this_month']}</option>
<option value='60'>{$ibforums->lang['this_60']}</option>
<option value='90'>{$ibforums->lang['this_90']}</option>
<option value='180'>{$ibforums->lang['this_180']}</option>
<option value='365'>{$ibforums->lang['this_year']}</option>
<option value='0'>{$ibforums->lang['ever']}</option>
</select>
<br />
<input type='radio' name='prune_type' id="prune_older" value='older' class='radiobutton' />&nbsp;<label for="prune_older">{$ibforums->lang['older']}</label>
<br />
<input type='radio' name='prune_type' id="prune_newer" value='newer' class='radiobutton' checked="checked" />&nbsp;<label for="prune_newer">{$ibforums->lang['newer']}</label>
</fieldset>
</td>
<td valign='top'>
<fieldset class="search">
<legend><strong>{$ibforums->lang['sort_results']}</strong></legend>
<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' id="sort_desc" class="radiobutton" value='desc' checked="checked" /><label for="sort_desc">{$ibforums->lang['descending']}</label>
<br /><input type='radio' name='sort_order' id="sort_asc" class="radiobutton" value='asc' /><label for="sort_asc">{$ibforums->lang['ascending']}</label>
</fieldset>
</td>
</tr>
<tr>
<td nowrap="nowrap">
<fieldset class="search">
<legend><strong>{$ibforums->lang['search_where']}</strong></legend>
<input type='radio' name='search_in' class="radiobutton" id="search_in_posts" value='posts' checked="checked" /><label for="search_in_posts">{$ibforums->lang['in_posts']}</label>
<br />
<input type='radio' name='search_in' class="radiobutton" id="search_in_titles" value='titles' /><label for="search_in_titles">{$ibforums->lang['in_topics']}</label>
</fieldset>
</td>
<td>
<fieldset class="search">
<legend><strong>{$ibforums->lang['result_type']}</strong></legend>
<input type='radio' name='result_type' class="radiobutton" value='topics' id="result_topics" checked="checked" /><label for="result_topics">{$ibforums->lang['results_topics']}</label>
<br />
<input type='radio' name='result_type' class="radiobutton" value='posts' id="result_posts" /><label for="result_posts">{$ibforums->lang['results_post']}</label>
</fieldset>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='pformstrip' colspan='2' align='center'><input type='submit' value='{$ibforums->lang['do_search']}' class='forminput' /><!--IBF.SIMPLE_BUTTON--></td>
</tr>
</table>
</div>
</form>
EOF;
}
function form_simple_button() {
global $ibforums;
return <<<EOF
&nbsp;<input type='button' value='{$ibforums->lang['so_less_opts']}' onclick="go_gadget_simple()" class='forminput' />
EOF;
}
function active_start($data) {
global $ibforums;
return <<<EOF
<script language='Javascript' type="text/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 />
<form action='{$ibforums->base_url}act=Search&amp;CODE=getactive' method='post' name='dateline' onsubmit='return checkvalues();'>
<div class="pagelinks">{$data['SHOW_PAGES']}</div>
<div align="right" style="width:35%;text-align:center;margin-right:0;margin-left:auto">
<fieldset class="search">
<legend><strong>{$ibforums->lang['active_st_text']}</strong></legend>
<label for='st_day'>{$ibforums->lang['active_mid_text']}</label>&nbsp;
<select name='st_day' id='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;
<label for='end_day'>{$ibforums->lang['active_end_text']}</label>&nbsp;
<select name='end_day' id='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;
<input type='submit' value='&gt;&gt;' title="{$ibforums->lang['active_label']}" class='forminput'>
</fieldset>
</div>
</form>
<br />
<div class="tableborder">
<div class="maintitle"><{CAT_IMG}>{$ibforums->lang['active_topics']}</div>
<table class="tablebasic" cellspacing="1" cellpadding="4">
<tr>
<td class='titlemedium' colspan='2' >&nbsp;</td>
<th align='left' class='titlemedium'>{$ibforums->lang['h_topic_title']}</th>
<th align='center' class='titlemedium'>{$ibforums->lang['h_forum_name']}</th>
<th align='center' class='titlemedium'>{$ibforums->lang['h_topic_starter']}</th>
<th align='center' class='titlemedium'>{$ibforums->lang['h_replies']}</th>
<th align='center' class='titlemedium'>{$ibforums->lang['h_hits']}</th>
<th class='titlemedium'>{$ibforums->lang['h_last_action']}</th>
</tr>
EOF;
}
function start($Data) {
global $ibforums;
return <<<EOF
<div>{$Data[SHOW_PAGES]}</div>
<br />
<div class="tableborder">
<div class="maintitle"><{CAT_IMG}>&nbsp;{$ibforums->lang['your_results']} &middot; <a style="text-decoration:underline" href="{$ibforums->base_url}act=Login&amp;CODE=05">{$ibforums->lang['mark_search_as_read']}</a></div>
<table class="tablebasic" cellpadding="2" cellspacing="1" width='100%'>
<tr>
<td class='titlemedium' colspan='2'>&nbsp;</td>
<td align='left' class='titlemedium'>{$ibforums->lang['h_topic_title']}</td>
<td align='center' class='titlemedium'>{$ibforums->lang['h_forum_name']}</td>
<td align='center' class='titlemedium'>{$ibforums->lang['h_topic_starter']}</td>
<td align='center' class='titlemedium'>{$ibforums->lang['h_replies']}</td>
<td align='center' class='titlemedium'>{$ibforums->lang['h_hits']}</td>
<td class='titlemedium'>{$ibforums->lang['h_last_action']}</td>
</tr>
EOF;
}
function active_none() {
global $ibforums;
return <<<EOF
<tr><td colspan='8' class='row1' align='center'><strong>{$ibforums->lang['active_no_topics']}</strong></td></tr>
EOF;
}
}
?>
-182
View File
@@ -1,182 +0,0 @@
<?php
class skin_stats {
function who_header($fid, $tid, $title) {
global $ibforums;
return <<<EOF
<script language='javascript'>
<!--
function bog_off()
{
var tid = '$tid';
var fid = '$fid';
opener.location= '$ibforums->base_url' + 'showtopic=' + tid;
self.close();
}
//-->
</script>
<div class="tableborder">
<div class="titlemedium" align="center">{$ibforums->lang['who_farted']} $title</div>
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
<tr>
<td width='70%' align='left' class='pformstrip' valign='middle'>{$ibforums->lang['who_poster']}</td>
<td width='30%' align='center' class='pformstrip' valign='middle'>{$ibforums->lang['who_posts']}</td>
</tr>
EOF;
}
function who_row($row) {
global $ibforums;
return <<<EOF
<tr>
<td align='left' class='row1' valign='middle'>{$row['author_name']}</td>
<td align='center' class='row1' valign='middle'>{$row['pcount']}</td>
</tr>
EOF;
}
function who_name_link($id, $name) {
global $ibforums;
return <<<EOF
<a href='{$ibforums->base_url}showuser=$id' target='_blank'>$name</a>
EOF;
}
function who_end() {
global $ibforums;
return <<<EOF
</table>
<div class='titlemedium' align='center'><a href='javascript:bog_off();'>{$ibforums->lang['who_go']}</a></div>
</div>
EOF;
}
function page_title($title) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td valign='middle' align='left'><span class='pagetitle'>{$title}</td>
</tr>
</table>
EOF;
}
function group_strip( $group ) {
global $ibforums;
return <<<EOF
<div class="tableborder">
<div class="maintitle"><{CAT_IMG}>&nbsp;$group</div>
<table cellpadding='4' cellspacing='1' width="100%">
<tr>
<td width='30%' align='left' class='pformstrip' valign='middle'>{$ibforums->lang['leader_name']}</td>
<td width='40%' align='center' class='pformstrip' valign='middle'>{$ibforums->lang['leader_forums']}</td>
<td align='center' width='25%' class='pformstrip' valign='middle'>{$ibforums->lang['leader_location']}</td>
<td align='center' width='5%' class='pformstrip' valign='middle'>&nbsp;</td>
</tr>
EOF;
}
function leader_row($info, $forums) {
global $ibforums;
return <<<EOF
<tr>
<td align='left' class='row1' valign='middle'><a href='{$ibforums->base_url}showuser={$info['id']}'>{$info['name']}</a></td>
<td align='center' class='row1' valign='middle'>$forums</td>
<td align='center' class='row1' valign='middle'>{$info['location']}</td>
<td align='center' class='row1' valign='middle'>{$info['msg_icon']}</td>
</tr>
EOF;
}
function leader_row_forum_start($id, $count_string) {
global $ibforums;
return <<<EOF
<form method="post" onsubmit="if(document.jmenu$id.f.value == -1){return false;}" action="{$ibforums->base_url}act=SF" name="jmenu$id">
<select class='forminput' name="f" onchange="if(this.options[this.selectedIndex].value != -1){ document.jmenu$id.submit() }" style='width:95%'>
<option value="-1">$count_string</option>
<option value="-1">--------------------------------------------------------</option>
EOF;
}
function leader_row_forum_entry($id, $name) {
global $ibforums;
return <<<EOF
<option value='$id'>$name</option>
EOF;
}
function leader_row_forum_end() {
global $ibforums;
return <<<EOF
</select></form>
EOF;
}
function close_strip() {
global $ibforums;
return <<<EOF
</table>
</div>
<br />
EOF;
}
function top_poster_header() {
global $ibforums;
return <<<EOF
<div class='tableborder'>
<div class='maintitle'><{CAT_IMG}>&nbsp;{$ibforums->lang['todays_posters']}</div>
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
<tr>
<th width='30%' align='left' class='pformstrip' valign='middle'>{$ibforums->lang['member']}</th>
<th width='20%' align='center' class='pformstrip' valign='middle'>{$ibforums->lang['member_joined']}</th>
<th align='center' width='15%' class='pformstrip' valign='middle'>{$ibforums->lang['member_posts']}</th>
<th align='center' width='15%' class='pformstrip' valign='middle'>{$ibforums->lang['member_today']}</th>
<th align='center' width='20%' class='pformstrip' valign='middle'>{$ibforums->lang['member_percent']}</th>
</tr>
EOF;
}
function top_poster_row($info) {
global $ibforums;
return <<<EOF
<tr>
<td align='left' class='row1' valign='middle'><a href='{$ibforums->base_url}showuser={$info['id']}'>{$info['name']}</a></td>
<td align='center' class='row1' valign='middle'>{$info['joined']}</td>
<td align='center' class='row1' valign='middle'>{$info['posts']}</td>
<td align='center' class='row1' valign='middle'>{$info['tpost']}</td>
<td align='center' class='row1' valign='middle'>{$info['today_pct']}%</td>
</tr>
EOF;
}
function top_poster_footer($info) {
global $ibforums;
return <<<EOF
</table>
<div class='pformstrip' align='center'>{$ibforums->lang['total_today']} $info</div>
</div>
EOF;
}
function top_poster_no_info() {
global $ibforums;
return <<<EOF
<tr>
<td colspan='5' align='center' class='row1' valign='middle'>{$ibforums->lang['no_info']}</td>
</tr>
EOF;
}
}
?>
-550
View File
@@ -1,550 +0,0 @@
<?php
class skin_subscriptions {
function do_nochex_upgrade_screen($ccode, $member_id, $new_sub_id, $to_pay, $nochex_email, $sub_title, $cur_tran_id, $desc_string="") {
global $ibforums;
return <<<EOF
<div class="pformstrip">{$ibforums->lang['sc_complete']}</div>
<p>
{$ibforums->lang['sc_upgrade_explain']}
<br /><br />$desc_string
<br /><br /><b>{$ibforums->lang['gw_nochex']}</b>
</p>
<form action='https://www.nochex.com/nochex.dll/checkout' method='post'>
<input type="hidden" name="email" value="$nochex_email" />
<input type="hidden" name="amount" value="$to_pay" />
<input type="hidden" name="ordernumber" value="{$new_sub_id}x{$member_id}x$cur_tran_id" />
<input type="hidden" name="returnurl" value="{$ibforums->base_url}act=module&module=subscription&CODE=paydone&type=nochex">
<br /><br />
<center>
<input type="image" src="http://www.nochex.com/web/images/payme4.gif" border="0" name="submit" alt="Pay with NOCHEX now"></center>
</form>
EOF;
}
function do_nochex_normal_screen($ccode, $member_id, $new_sub_id, $to_pay, $nochex_email, $sub_title, $desc_string="") {
global $ibforums;
return <<<EOF
<div class="pformstrip">{$ibforums->lang['sc_complete']}</div>
<p>
{$ibforums->lang['sc_upgrade_explain']}
<br /><br />$desc_string
<br /><br /><b>{$ibforums->lang['gw_nochex']}</b>
</p>
<form action='https://www.nochex.com/nochex.dll/checkout' method='post'>
<input type="hidden" name="email" value="$nochex_email" />
<input type="hidden" name="amount" value="$to_pay" />
<input type="hidden" name="ordernumber" value="{$new_sub_id}x{$member_id}x0" />
<input type="hidden" name="returnurl" value="{$ibforums->base_url}act=module&module=subscription&CODE=paydone&type=nochex">
<br /><br />
<center>
<input type="image" src="http://www.nochex.com/web/images/payme4.gif" border="0" name="submit" alt="Pay with NOCHEX now"></center>
</form>
EOF;
}
function show_ticket($sub, $id, $paid, $extra="") {
global $ibforums;
return <<<EOF
<h2>{$ibforums->lang['man_title']}</h2>
<br />
<table cellpadding='0' cellspacing='1' border='0' width='245' align='center' bgcolor='#000000'>
<tr>
<td>
<table cellpadding='4' cellspacing='1' border='0' width='100%' align='center'>
<tr>
<td width='50%' bgcolor='#FFFFFF'>{$ibforums->lang['man_mem']}</td>
<td width='50%' bgcolor='#FFFFFF'>{$ibforums->member['name']}</td>
</tr>
<tr>
<td width='50%' bgcolor='#FFFFFF'>{$ibforums->lang['man_mem_id']}</td>
<td width='50%' bgcolor='#FFFFFF'>{$ibforums->member['id']}</td>
</tr>
<tr>
<td width='50%' bgcolor='#FFFFFF'>{$ibforums->lang['man_email']}</td>
<td width='50%' bgcolor='#FFFFFF'>{$ibforums->member['email']}</td>
</tr>
<tr>
<td width='50%' bgcolor='#FFFFFF'>{$ibforums->lang['man_trans_id']}</td>
<td width='50%' bgcolor='#FFFFFF'>{$id}</td>
</tr>
<tr>
<td width='50%' bgcolor='#FFFFFF'>{$ibforums->lang['man_sub']}</td>
<td width='50%' bgcolor='#FFFFFF'>{$sub['sub_title']} $extra</td>
</tr>
<tr>
<td width='50%' bgcolor='#FFFFFFF'>{$ibforums->lang['man_pay']}</td>
<td width='50%' bgcolor='#FFFFFF'>{$paid}</td>
</tr>
</table>
</td>
</tr>
</table>
EOF;
}
function do_manual_normal_screen($new_sub_id, $desc_string="") {
global $ibforums;
return <<<EOF
<script type="text/javascript">
<!--
function pop_ticket()
{
window.open('{$ibforums->js_base_url}act=module&module=subscription&type=manual&CODE=custom&mode=ticket&tickid=0&upgrade=0&sid=$new_sub_id','TICKET','width=250,height=350,resizable=yes,scrollbars=yes');
}
//-->
</script>
<div class="pformstrip">{$ibforums->lang['sc_complete']}</div>
<p>
$desc_string
<br /><br />
{$ibforums->lang['post_manual']}
<br /><br />
{$ibforums->lang['post_manual_more']}
</p>
<br /><br />
<center>
<input type="button" value="{$ibforums->lang['gw_manual']}" onclick="pop_ticket()" />
</center>
EOF;
}
function do_manual_upgrade_screen($new_sub_id, $cur_id, $desc_string="") {
global $ibforums;
return <<<EOF
<script type="text/javascript">
<!--
function pop_ticket()
{
window.open('{$ibforums->js_base_url}act=module&module=subscription&type=manual&CODE=custom&mode=ticket&tickid={$cur_id}&upgrade=1&sid=$new_sub_id','TICKET','width=250,height=350,resizable=yes,scrollbars=yes');
}
//-->
</script>
<div class="pformstrip">{$ibforums->lang['sc_upgrade_title']}</div>
<p>
$desc_string
<br /><br />
{$ibforums->lang['post_manual']}
<br /><br />
{$ibforums->lang['post_manual_more']}
</p>
<br /><br />
<center>
<input type="button" value="{$ibforums->lang['gw_manual']}" onclick="pop_ticket()" />
</center>
EOF;
}
function do_paypal_normal_recurring_screen($ccode, $member_id, $new_sub_id, $unit, $length, $cost, $paypal_email, $sub_title, $desc_string="") {
global $ibforums;
return <<<EOF
<div class="pformstrip">{$ibforums->lang['sc_complete']}</div>
<p>
{$ibforums->lang['sc_upgrade_explain']}
<br /><br />$desc_string
<br /><br /><b>{$ibforums->lang['gw_paypal']}</b>
</p>
<form action='https://www.paypal.com/cgi-bin/webscr' method='post'>
<input type="hidden" name="cmd" value="_xclick-subscriptions" />
<input type="hidden" name="business" value="$paypal_email" />
<input type="hidden" name="item_name" value="$sub_title" />
<input type="hidden" name="item_number" value="$new_sub_id" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="src" value="1" />
<input type="hidden" name="a3" value="$cost" />
<input type="hidden" name="p3" value="$length" />
<input type="hidden" name="t3" value="$unit" />
<input type="hidden" name="custom" value="$member_id" />
<input type="hidden" name="notify_url" value="{$ibforums->base_url}act=module&module=subscription&CODE=incoming&type=paypal" />
<input type="hidden" name="currency_code" value="$ccode">
<input type="hidden" name="return" value="{$ibforums->base_url}act=module&module=subscription&CODE=paydone&type=paypal">
<input type="hidden" name="cancel_return" value="{$ibforums->base_url}act=module&module=subscription&CODE=paydone&type=paypal">
<br /><br />
<center>
<input type="image" src="https://www.paypal.com/images/x-click-but6.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"></center>
</form>
EOF;
}
function do_paypal_upgrade_recurring_screen($ccode, $member_id, $new_sub_id, $to_pay, $time_left_to_run, $time_left_unit, $unit, $length, $cost, $paypal_email, $sub_title, $cur_tran_id, $desc_string="") {
global $ibforums;
return <<<EOF
<div class="pformstrip">{$ibforums->lang['sc_complete']}</div>
<p>
{$ibforums->lang['sc_upgrade_explain']}
<br /><br />$desc_string
<br /><br /><b>{$ibforums->lang['gw_paypal']}</b>
</p>
<form action='https://www.paypal.com/cgi-bin/webscr' method='post'>
<input type="hidden" name="cmd" value="_xclick-subscriptions" />
<input type="hidden" name="business" value="$paypal_email" />
<input type="hidden" name="item_name" value="$sub_title" />
<input type="hidden" name="item_number" value="$new_sub_id" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="src" value="1" />
<input type="hidden" name="a1" value="$to_pay" />
<input type="hidden" name="p1" value="$time_left_to_run" />
<input type="hidden" name="t1" value="$time_left_unit" />
<input type="hidden" name="a3" value="$cost" />
<input type="hidden" name="p3" value="$length" />
<input type="hidden" name="t3" value="$unit" />
<input type="hidden" name="invoice" value="{$cur_tran_id}x{$new_sub_id}x{$member_id}" />
<input type="hidden" name="custom" value="$member_id" />
<input type="hidden" name="memo" value="upgrade" />
<input type="hidden" name="notify_url" value="{$ibforums->base_url}act=module&module=subscription&CODE=incoming&type=paypal" />
<input type="hidden" name="currency_code" value="$ccode">
<input type="hidden" name="return" value="{$ibforums->base_url}act=module&module=subscription&CODE=paydone&type=paypal">
<input type="hidden" name="cancel_return" value="{$ibforums->base_url}act=module&module=subscription&CODE=paydone&type=paypal">
<br /><br />
<center>
<input type="image" src="https://www.paypal.com/images/x-click-but6.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"></center>
</form>
EOF;
}
function do_paypal_normal_screen($ccode, $member_id, $new_sub_id, $to_pay, $paypal_email, $sub_title, $desc_string="") {
global $ibforums;
return <<<EOF
<div class="pformstrip">{$ibforums->lang['sc_complete']}</div>
<p>
{$ibforums->lang['sc_upgrade_explain']}
<br /><br />$desc_string
<br /><br /><b>{$ibforums->lang['gw_paypal']}</b>
</p>
<form action='https://www.paypal.com/cgi-bin/webscr' method='post'>
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="$paypal_email" />
<input type="hidden" name="amount" value="$to_pay">
<input type="hidden" name="item_name" value="$sub_title" />
<input type="hidden" name="item_number" value="$new_sub_id" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="custom" value="$member_id" />
<input type="hidden" name="notify_url" value="{$ibforums->base_url}act=module&module=subscription&CODE=incoming&type=paypal" />
<input type="hidden" name="currency_code" value="$ccode">
<input type="hidden" name="return" value="{$ibforums->base_url}act=module&module=subscription&CODE=paydone&type=paypal">
<input type="hidden" name="cancel_return" value="{$ibforums->base_url}act=module&module=subscription&CODE=paydone&type=paypal">
<br /><br />
<center>
<input type="image" src="https://www.paypal.com/images/x-click-but6.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"></center>
</form>
EOF;
}
function do_paypal_upgrade_screen($ccode, $member_id, $new_sub_id, $to_pay, $paypal_email, $sub_title, $cur_tran_id, $desc_string="") {
global $ibforums;
return <<<EOF
<div class="pformstrip">{$ibforums->lang['sc_complete']}</div>
<p>
{$ibforums->lang['sc_upgrade_explain']}
<br /><br />$desc_string
<br /><br /><b>{$ibforums->lang['gw_paypal']}</b>
</p>
<form action='https://www.paypal.com/cgi-bin/webscr' method='post'>
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="$paypal_email" />
<input type="hidden" name="amount" value="$to_pay">
<input type="hidden" name="item_name" value="$sub_title" />
<input type="hidden" name="item_number" value="$new_sub_id" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="invoice" value="{$cur_tran_id}x{$new_sub_id}x{$member_id}" />
<input type="hidden" name="custom" value="$member_id" />
<input type="hidden" name="memo" value="upgrade" />
<input type="hidden" name="notify_url" value="{$ibforums->base_url}act=module&module=subscription&CODE=incoming&type=paypal" />
<input type="hidden" name="currency_code" value="$ccode">
<input type="hidden" name="return" value="{$ibforums->base_url}act=module&module=subscription&CODE=paydone&type=paypal">
<input type="hidden" name="cancel_return" value="{$ibforums->base_url}act=module&module=subscription&CODE=paydone&type=paypal">
<br /><br />
<center>
<input type="image" src="https://www.paypal.com/images/x-click-but6.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"></center>
</form>
EOF;
}
function sub_two_upgrade_summary() {
global $ibforums;
return <<<EOF
<div class="pformstrip">{$ibforums->lang['sc_upgrade_title']}</div>
<p>{$ibforums->lang['sc_upgrade_explain']}
<br /><br />{$ibforums->lang['sc_upgrade_string']}
</p>
EOF;
}
function sub_two_normal_summary() {
global $ibforums;
return <<<EOF
<div class="pformstrip">{$ibforums->lang['sc_normal_title']}</div>
<p>{$ibforums->lang['sc_upgrade_explain']}
<br /><br />{$ibforums->lang['sc_normal_string']}
</p>
EOF;
}
function sub_two_methods_top($sub_chosen, $upgrade="", $curid="", $currency="") {
global $ibforums;
return <<<EOF
<div class="pformstrip">{$ibforums->lang['sc_available_methods']}</div>
<form action='{$ibforums->base_url}act=module&amp;module=subscription&amp;upgrade=$upgrade&amp;CODE=paymentscreen&amp;curid=$curid&amp;sub=$sub_chosen&amp;currency=$currency' method='post'>
<div class="tableborder">
<table cellpadding='4' cellspacing='1' width="100%">
<tr>
<th width='5%' class='titlemedium' align="center">&nbsp;</th>
<th width='95%' class='titlemedium'>{$ibforums->lang['sc_method']}</th>
</tr>
EOF;
}
function sub_two_methods_row($mid, $name, $desc="") {
global $ibforums;
return <<<EOF
<tr>
<td class="row3" align="center"><input type='radio' name='methodid' value="$mid" /></td>
<td class="row3"><b>$name</b><br /><i>$desc</i></td>
</tr>
EOF;
}
function sub_two_methods_bottom() {
global $ibforums;
return <<<EOF
</table>
</div>
EOF;
}
function sub_two_methods_continue_button() {
global $ibforums;
return <<<EOF
<br />
<div class='tableborder'>
<div class='pformstrip' align="center"><input type='submit' value='{$ibforums->lang['s_continue_button2']}' class='forminput' /></div>
</div>
</form>
EOF;
}
function sub_choose_current_top() {
global $ibforums;
return <<<EOF
<div class="pformstrip">{$ibforums->lang['s_current_subs']}</div>
<p>{$ibforums->lang['s_current_explain']}</p>
<div class="tableborder">
<table cellpadding='4' cellspacing='1' width="100%">
<tr>
<th width='5%' class='titlemedium' align="center">{$ibforums->lang['s_transid']}</th>
<th width='35%' class='titlemedium'>{$ibforums->lang['s_detail']}</th>
<th width='20%' class='titlemedium' align="center">{$ibforums->lang['s_started']}</th>
<th width='20%' class='titlemedium' align="center">{$ibforums->lang['s_end']}</th>
<th width='10%' class='titlemedium' align="center">{$ibforums->lang['s_paid']}</th>
<th width='10%' class='titlemedium' align="center">{$ibforums->lang['s_status']}</th>
</tr>
EOF;
}
function sub_choose_current_row($id, $name, $start, $end, $paid, $state ) {
global $ibforums;
return <<<EOF
<tr>
<td class="row3" align="center">$id</td>
<td class="row3"><b>$name</b></td>
<td class="row3" align="center">$start</td>
<td class="row3" align="center">$end</td>
<td class="row3" align="center">{$paid}</td>
<td class="row3" align="center">$state</td>
</tr>
EOF;
}
function sub_choose_current_bottom() {
global $ibforums;
return <<<EOF
</table>
</div>
EOF;
}
function sub_page_bottom() {
global $ibforums;
return <<<EOF
<p>{$ibforums->lang['s_current_bottom']}</p>
EOF;
}
function sub_choose_dead_top() {
global $ibforums;
return <<<EOF
<div class="pformstrip">{$ibforums->lang['s_dead_subs']}</div>
<p>{$ibforums->lang['s_dead_explain']}</p>
<div class="tableborder">
<table cellpadding='4' cellspacing='1' width="100%">
<tr>
<th width='5%' class='titlemedium' align="center">{$ibforums->lang['s_transid']}</th>
<th width='35%' class='titlemedium'>{$ibforums->lang['s_detail']}</th>
<th width='20%' class='titlemedium' align="center">{$ibforums->lang['s_started']}</th>
<th width='20%' class='titlemedium' align="center">{$ibforums->lang['s_end']}</th>
<th width='10%' class='titlemedium' align="center">{$ibforums->lang['s_paid']}</th>
<th width='10%' class='titlemedium' align="center">{$ibforums->lang['s_status']}</th>
</tr>
EOF;
}
function sub_choose_dead_row($id, $name, $start, $end, $paid, $state ) {
global $ibforums;
return <<<EOF
<tr>
<td class="row3" align="center">$id</td>
<td class="row3"><b>$name</b></td>
<td class="row3" align="center">$start</td>
<td class="row3" align="center">$end</td>
<td class="row3" align="center">{$paid}</td>
<td class="row3" align="center">$state</td>
</tr>
EOF;
}
function sub_choose_dead_bottom() {
global $ibforums;
return <<<EOF
</table>
</div>
<br />
EOF;
}
function sub_choose_upgrade_top($cur_id="", $currency="") {
global $ibforums;
return <<<EOF
<br />
<div class="pformstrip">{$ibforums->lang['s_upgrade_subs']}</div>
<p>{$ibforums->lang['s_upgrade_explain']}</p>
<br />
<form action='{$ibforums->base_url}act=module&amp;module=subscription&amp;upgrade=1&amp;CODE=paymentmethod&amp;curid=$cur_id&amp;currency=$currency' method='post'>
<div class="tableborder">
<table cellpadding='4' cellspacing='1' width="100%">
<tr>
<th width='5%' class='titlemedium'>&nbsp;</th>
<th width='55%' class='titlemedium'>{$ibforums->lang['s_detail']}</th>
<th width='20%' class='titlemedium' align="center">{$ibforums->lang['s_end']}</th>
<th width='20%' class='titlemedium' align="center">{$ibforums->lang['s_balance_cost']}</th>
</tr>
EOF;
}
function sub_choose_upgrade_row($id, $name, $desc, $cost, $duration ) {
global $ibforums;
return <<<EOF
<tr>
<td class="row3" align="center"><input type='radio' name='sub' value="$id" /></td>
<td class="row3"><b>$name</b><br /><i>$desc</i></td>
<td class="row3" align="center">$duration</td>
<td class="row3" align="center">{$cost}</td>
</tr>
EOF;
}
function sub_choose_upgrade_bottom() {
global $ibforums;
return <<<EOF
</table>
</div>
<div class='tableborder'>
<div class='pformstrip' align="center"><input type='submit' value='{$ibforums->lang['s_continue_button']}' class='forminput' /></div>
</div>
</form>
EOF;
}
function sub_choose_new_top($currency) {
global $ibforums;
return <<<EOF
<div class="pformstrip">{$ibforums->lang['s_available_subs']}</div>
<p>{$ibforums->lang['s_explain']}</p>
<br />
<form action='{$ibforums->base_url}act=module&amp;module=subscription&amp;CODE=paymentmethod&amp;currency=$currency' method='post'>
<div class="tableborder">
<table cellpadding='4' cellspacing='1' width="100%">
<tr>
<th width='5%' class='titlemedium'>&nbsp;</th>
<th width='55%' class='titlemedium'>{$ibforums->lang['s_detail']}</th>
<th width='20%' class='titlemedium' align="center">{$ibforums->lang['s_duration']}</th>
<th width='20%' class='titlemedium' align="center">{$ibforums->lang['s_cost']}</th>
</tr>
EOF;
}
function sub_choose_new_row($id, $name, $desc, $cost, $duration ) {
global $ibforums;
return <<<EOF
<tr>
<td class="row3" align="center"><input type='radio' name='sub' value="$id" /></td>
<td class="row3"><b>$name</b><br /><i>$desc</i></td>
<td class="row3" align="center">$duration</td>
<td class="row3" align="center">{$cost}</td>
</tr>
EOF;
}
function sub_choose_new_bottom() {
global $ibforums;
return <<<EOF
</table>
</div>
<div class='tableborder'>
<div class='pformstrip' align="center"><input type='submit' value='{$ibforums->lang['s_continue_button']}' class='forminput' /></div>
</div>
</form>
EOF;
}
function sub_currency_change_form($select, $url) {
global $ibforums;
return <<<EOF
<div align='right'><form action="$url" method="post">{$ibforums->lang['cc_currency_in']} $select <input type='submit' value='{$ibforums->lang['cc_change']}' class='forminput' /></form></div>
EOF;
}
function sub_currency_change_top() {
global $ibforums;
return <<<EOF
<select name='currency' class='forminput'>
EOF;
}
function sub_currency_change_row($id, $name, $default="") {
global $ibforums;
return <<<EOF
<option value='$id' $default>$id $name</option>
EOF;
}
function sub_currency_change_bottom() {
global $ibforums;
return <<<EOF
</select>
EOF;
}
}
?>
-410
View File
@@ -1,410 +0,0 @@
<?php
class skin_topic {
function warn_level_warn($id, $percent) {
global $ibforums;
return <<<EOF
{$ibforums->lang['tt_warn']} (<a href="javascript:PopUp('{$ibforums->base_url}act=warn&amp;mid={$id}&amp;CODE=view','Pager','500','450','0','1','1','1')">{$percent}</a>%)
EOF;
}
function warn_level_rating($id, $level,$min=0,$max=10) {
global $ibforums;
return <<<EOF
&lt;&nbsp;$min ( <a href="javascript:PopUp('{$ibforums->base_url}act=warn&amp;mid={$id}&amp;CODE=view','Pager','500','450','0','1','1','1')">{$level}</a> ) $max&nbsp;&gt;
EOF;
}
function report_link($data) {
global $ibforums;
return <<<EOF
<a href='{$ibforums->base_url}act=report&amp;f={$data['forum_id']}&amp;t={$data['topic_id']}&amp;p={$data['pid']}&amp;st={$ibforums->input['st']}'><{P_REPORT}></a>
EOF;
}
function ip_show($data) {
global $ibforums;
return <<<EOF
<span class='desc'>{$ibforums->lang['ip']}: $data</span>
EOF;
}
function golastpost_link($fid, $tid) {
global $ibforums;
return <<<EOF
( <a href='{$ibforums->base_url}act=ST&amp;f=$fid&amp;t=$tid&amp;view=getnewpost'>{$ibforums->lang['go_new_post']}</a> )
EOF;
}
function mm_start($tid) {
global $ibforums;
return <<<EOF
<br />
<form action='{$ibforums->base_url}act=mmod&amp;t=$tid' method='post'>
<input type='hidden' name='check' value='1'>
<select name='mm_id' class='forminput'>
<option value='-1'>{$ibforums->lang['mm_title']}</option>
EOF;
}
function mm_entry($id, $name) {
global $ibforums;
return <<<EOF
<option value='$id'>$name</option>
EOF;
}
function mm_end() {
global $ibforums;
return <<<EOF
</select>&nbsp;<input type='submit' value='{$ibforums->lang['mm_submit']}' class='forminput' /></form>
EOF;
}
function Mod_Panel($data, $fid, $tid, $key="") {
global $ibforums;
return <<<EOF
<div align='left' style='float:left;width:auto'>
<form method='POST' style='display:inline' name='modform' action='{$ibforums->base_url}'>
<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='auth_key' value='$key' />
<input type='hidden' name='act' value='Mod' />
<select name='CODE' class='forminput' style="font-weight:bold;color:red">
<option value='-1' style='color:black'>{$ibforums->lang['moderation_ops']}</option>
$data
</select>&nbsp;<input type='submit' value='{$ibforums->lang['jmp_go']}' class='forminput' /></form>
</div>
EOF;
}
function mod_wrapper($id="", $text="") {
global $ibforums;
return <<<EOF
<option value='$id'>$text</option>
EOF;
}
function quick_reply_box_open($fid="",$tid="",$show="hide", $key="") {
global $ibforums;
return <<<EOF
<script type="text/javascript">
<!--
function emo_pop()
{
window.open('index.{$ibforums->vars['php_ext']}?act=legends&amp;CODE=emoticons&amp;s={$ibforums->session_id}','Legends','width=250,height=500,resizable=yes,scrollbars=yes');
}
//-->
</script>
<br />
<div align='left' id='qr_open' style="display:$show;position:relative;">
<form name='REPLIER' action="{$ibforums->base_url}" method='post'>
<input type='hidden' name='act' value='Post' />
<input type='hidden' name='CODE' value='03' />
<input type='hidden' name='f' value='$fid' />
<input type='hidden' name='t' value='$tid' />
<input type='hidden' name='st' value='{$ibforums->input['st']}' />
<input type='hidden' name='enabletrack' value='{$ibforums->member['auto_track']}' />
<input type='hidden' name='auth_key' value='$key' />
<!-- TITLE DIV -->
<div class="tableborder">
<div class='maintitle'><{CAT_IMG}>&nbsp;{$ibforums->lang['qr_title']}</div>
<div class="tablepad" align="center">
<textarea cols='70' rows='8' name='Post' class='textinput' tabindex="1"></textarea>
<br /><br />
<a href='javascript:emo_pop();'>{$ibforums->lang['show_emo']}</a> &#124;
<input type='checkbox' name='enableemo' value='yes' class="checkbox" checked="checked" />&nbsp;{$ibforums->lang['qr_add_smilie']} &#124;
<input type='checkbox' name='enablesig' value='yes' class="checkbox" checked="checked" />&nbsp;{$ibforums->lang['qr_add_sig']}
<br /><br />
<input type='submit' name='submit' value='{$ibforums->lang['qr_submit']}' class='forminput' tabindex="2" accesskey="s" />&nbsp;
<input type='submit' name='preview' value='{$ibforums->lang['qr_more_opts']}' class='forminput' />
&nbsp;&nbsp; <input type='button' name='qrc' onclick="ShowHide('qr_open','qr_closed');" value='{$ibforums->lang['qr_closeit']}' class='forminput' />
</div>
</div>
</form>
</div>
EOF;
}
function quick_reply_box_closed() {
global $ibforums;
return <<<EOF
<!-- DEFAULT DIV -->
<a href="javascript:ShowHide('qr_open','qr_closed');" title="{$ibforums->lang['qr_open']}" accesskey="f"><{T_QREPLY}></a>
EOF;
}
function start_poll_link($fid, $tid) {
global $ibforums;
return <<<EOF
<a href="{$ibforums->base_url}act=Post&amp;CODE=14&amp;f=$fid&amp;t=$tid">{$ibforums->lang['new_poll_link']}</a> &#124;&nbsp;
EOF;
}
function PageTop($data) {
global $ibforums;
return <<<EOF
<script language='javascript' type='text/javascript'>
<!--
function link_to_post(pid)
{
temp = prompt( "{$ibforums->lang['tt_prompt']}", "{$ibforums->base_url}showtopic={$ibforums->input['t']}&view=findpost&p=" + pid );
return false;
}
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');
}
function ShowHide(id1, id2) {
if (id1 != '') expMenu(id1);
if (id2 != '') expMenu(id2);
}
function expMenu(id) {
var itm = null;
if (document.getElementById) {
itm = document.getElementById(id);
} else if (document.all){
itm = document.all[id];
} else if (document.layers){
itm = document.layers[id];
}
if (!itm) {
// do nothing
}
else if (itm.style) {
if (itm.style.display == "none") { itm.style.display = ""; }
else { itm.style.display = "none"; }
}
else { itm.visibility = "show"; }
}
//-->
</script>
<a name='top'></a>
<!--IBF.FORUM_RULES-->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align='left' width="20%" nowrap="nowrap">{$data['TOPIC']['SHOW_PAGES']}&nbsp;{$data['TOPIC']['go_new']}</td>
<td align='right' width="80%">{$data[TOPIC][REPLY_BUTTON]}<a href='{$ibforums->base_url}act=Post&amp;CODE=00&amp;f={$data[FORUM]['id']}' title='{$ibforums->lang['start_new_topic']}'><{A_POST}></a>{$data[TOPIC][POLL_BUTTON]}</td>
</tr>
</table>
<br />
<div class="tableborder">
<div class='maintitle'><{CAT_IMG}>&nbsp;<b>{$data['TOPIC']['title']}</b>{$data['TOPIC']['description']}</div>
<!--{IBF.POLL}-->
<div align='right' class='postlinksbar'>
<strong><!--{IBF.START_NEW_POLL}--><a href='{$ibforums->base_url}act=Track&amp;f={$data['FORUM']['id']}&amp;t={$data['TOPIC']['tid']}'>{$ibforums->lang['track_topic']}</a> |
<a href='{$ibforums->base_url}act=Forward&amp;f={$data['FORUM']['id']}&amp;t={$data['TOPIC']['tid']}'>{$ibforums->lang['forward']}</a> |
<a href='{$ibforums->base_url}act=Print&amp;client=printer&amp;f={$data['FORUM']['id']}&amp;t={$data['TOPIC']['tid']}'>{$ibforums->lang['print']}</a></strong>
</div>
EOF;
}
function RenderRow($post, $author) {
global $ibforums;
return <<<EOF
<!--Begin Msg Number {$post['pid']}-->
<table width='100%' border='0' cellspacing='1' cellpadding='3'>
<tr>
<td valign='middle' class='row4' width="1%"><a name='entry{$post['pid']}'></a><span class='{$post['name_css']}'>{$author['name']}</span></td>
<td class='row4' valign='top' width="99%">
<!-- POSTED DATE DIV -->
<div align='left' class='row4' style='float:left;padding-top:4px;padding-bottom:4px'>
{$post['post_icon']}<span class='postdetails'><b><a title="{$ibforums->lang['tt_link']}" href="#" onclick="link_to_post({$post['pid']}); return false;" style="text-decoration:underline">{$ibforums->lang['posted_on']}</a></b> {$post['post_date']}</span>
</div>
<!-- REPORT / DELETE / EDIT / QUOTE DIV -->
<div align='right'>
{$post['report_link']}{$post['delete_button']}{$post['edit_button']}<a href='{$ibforums->base_url}act=Post&amp;CODE=06&amp;f={$ibforums->input[f]}&amp;t={$ibforums->input[t]}&amp;p={$post['pid']}'><{P_QUOTE}></a>
</div>
</td>
</tr>
<tr>
<td valign='top' class='{$post['post_css']}'>
<span class='postdetails'>{$author['avatar']}<br /><br />
{$author['title']}<br />
{$author['member_rank_img']}<br /><br />
{$author['member_group']}<br />
{$author['member_posts']}<br />
{$author['member_number']}<br />
{$author['member_joined']}<br /><br />
{$author['warn_text']} {$author['warn_minus']}{$author['warn_img']}{$author['warn_add']}</span><br />
<!--$ author[field_1]-->
<img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='160' height='1' /><br />
</td>
<td width='100%' valign='top' class='{$post['post_css']}'>
<!-- THE POST {$post['pid']} -->
<div class='postcolor'>{$post['post']} {$post['attachment']}</div>
{$post['signature']}
<!-- THE POST -->
</td>
</tr>
<tr>
<td class='darkrow3' align='left'><b>{$post['ip_address']}</b></td>
<td class='darkrow3' nowrap="nowrap" align='left'>
<!-- PM / EMAIL / WWW / MSGR -->
<div align='left' class='darkrow3' style='float:left;width:auto'>
{$author['addresscard']}{$author['message_icon']}{$author['email_icon']}{$author['website_icon']}{$author['integ_icon']}{$author['icq_icon']}{$author['aol_icon']}{$author['yahoo_icon']}{$author['msn_icon']}
</div>
<!-- REPORT / UP -->
<div align='right'>
<a href='javascript:scroll(0,0);'><img src='{$ibforums->vars['img_url']}/p_up.gif' alt='Top' border='0' /></a>
</div>
</td>
</tr>
</table>
<div class='darkrow1' style='height:5px'><!-- --></div>
EOF;
}
function TableFooter($data) {
global $ibforums;
return <<<EOF
<!--IBF.TOPIC_ACTIVE-->
<div class="activeuserstrip" align="center">&laquo; <a href='{$ibforums->base_url}showtopic={$data[TOPIC]['tid']}&amp;view=old'>{$ibforums->lang['t_old']}</a> &#0124; <strong><a href='{$ibforums->base_url}showforum={$data['FORUM']['id']}'>{$data['FORUM']['name']}</a></strong> &#0124; <a href='{$ibforums->base_url}showtopic={$data[TOPIC]['tid']}&amp;view=new'>{$ibforums->lang['t_new']}</a> &raquo;</div>
</div>
<br />
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align='left' width="20%" nowrap="nowrap"><!--IBF.TOPIC_OPTIONS_CLOSED-->{$data[TOPIC][SHOW_PAGES]}</td>
<td align='right' width="80%">{$data[TOPIC][REPLY_BUTTON]}<!--IBF.QUICK_REPLY_CLOSED--><a href='{$ibforums->base_url}act=Post&amp;CODE=00&amp;f={$data[FORUM]['id']}' title='{$ibforums->lang['start_new_topic']}'><{A_POST}></a>{$data[TOPIC][POLL_BUTTON]}</td>
</tr>
</table>
<!--IBF.QUICK_REPLY_OPEN-->
<!--IBF.TOPIC_OPTIONS_OPEN-->
<br />
<!--IBF.MOD_PANEL-->
<div align='right'>{$data[FORUM]['JUMP']}</div>
<!--IBF.MULTIMOD-->
<br />
EOF;
}
function topic_opts_open($fid, $tid) {
global $ibforums;
return <<<EOF
<div id='topic_open' style='display:none;z-index:2;'>
<div class="tableborder">
<div class='maintitle'><{CAT_IMG}>&nbsp;<a href="javascript:ShowHide('topic_open','topic_closed')">{$ibforums->lang['to_close']}</a></div>
<div class='tablepad'>
<b><a href='{$ibforums->base_url}act=Track&amp;f={$fid}&amp;t={$tid}'>{$ibforums->lang['tt_title']}</a></b>
<br />
<span class='desc'>{$ibforums->lang['tt_desc']}</span>
<br /><br />
<b><a href='{$ibforums->base_url}act=Track&amp;f={$fid}&amp;type=forum'>{$ibforums->lang['ft_title']}</a></b>
<br />
<span class='desc'>{$ibforums->lang['ft_desc']}</span>
<br /><br />
<b><a href='{$ibforums->base_url}act=Print&amp;client=choose&amp;f={$fid}&amp;t={$tid}'>{$ibforums->lang['av_title']}</a></b>
<br />
<span class='desc'>{$ibforums->lang['av_desc']}</span>
</div>
</div>
</div>
EOF;
}
function topic_opts_closed() {
global $ibforums;
return <<<EOF
<a href="javascript:ShowHide('topic_open','topic_closed')" title="{$ibforums->lang['to_open']}"><{T_OPTS}></a>
EOF;
}
function topic_active_users($active=array()) {
global $ibforums;
return <<<EOF
<div class="activeuserstrip">{$ibforums->lang['active_users_title']} ({$ibforums->lang['active_users_detail']})</div>
<div class='row2' style='padding:6px'>{$ibforums->lang['active_users_members']} {$active['names']}</div>
EOF;
}
function Show_attachments_img($file_name) {
global $ibforums;
return <<<EOF
<br />
<br />
<strong><span class='edit'>{$ibforums->lang['pic_attach']}</span></strong>
<br />
<img src='{$ibforums->vars['upload_url']}/$file_name' class='attach' alt='{$ibforums->lang['pic_attach']}' />
EOF;
}
function Show_attachments_img_thumb($file_name, $width, $height, $aid) {
global $ibforums;
return <<<EOF
<br />
<br />
<strong><span class='edit'>{$ibforums->lang['pic_attach_thumb']}</span></strong>
<br />
<a href='{$ibforums->base_url}act=Attach&amp;type=post&amp;id=$aid' title='{$ibforums->lang['pic_attach_thumb']}' target='_blank'><img src='{$ibforums->vars['upload_url']}/$file_name' width='$width' height='$height' class='attach' alt='{$ibforums->lang['pic_attach']}' /></a>
EOF;
}
function Show_attachments($data) {
global $ibforums;
return <<<EOF
<br />
<br />
<strong><span class='edit'>{$ibforums->lang['attached_file']} ( {$ibforums->lang['attach_hits']}: {$data['hits']} )</span></strong>
<br />
<a href='{$ibforums->base_url}act=Attach&amp;type=post&amp;id={$data['pid']}' title='{$ibforums->lang['attach_dl']}' target='_blank'><img src='{$ibforums->vars['mime_img']}/{$data['image']}' border='0' alt='{$ibforums->lang['attached_file']}' /></a>
&nbsp;<a href='{$ibforums->base_url}act=Attach&amp;type=post&amp;id={$data['pid']}' title='{$ibforums->lang['attach_dl']}' target='_blank'>{$data['name']}</a>
EOF;
}
}
?>
File diff suppressed because it is too large. Load diff
+555 -266
View File
File diff suppressed because it is too large. Load diff
-133
View File
@@ -1,133 +0,0 @@
/* FIX IE6 Scrollbars bug - Leave this in! */
html { overflow-x: auto; }
/* Body entry, change forum page background colour, default font, font size, etc. Leave text-align:center to center board content
#ipwrapper will set text-align back to left for the forum. Any other tables / divs you use must use text-align:left to re-align
the content properly. This is a work around to a known Internet Explorer bug */
BODY { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 11px; color: #000; margin:0px;padding:0px;background-color:#FFF; text-align:center }
TABLE, TR, TD { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 11px; color: #000; }
/* MAIN WRAPPER: Adjust forum width here. Leave margins alone to auto-center content */
#ipbwrapper { text-align:left; width:95%; margin-left:auto;margin-right:auto }
#ipbwrapper img { vertical-align:middle; border: 0px }
a:link, a:visited, a:active { text-decoration: underline; color: #000 }
a:hover { color: #465584; text-decoration:underline }
fieldset.search { padding:6px; line-height:150% }
label { cursor:pointer; }
form { display:inline; }
img.attach { border:2px outset #EEF2F7;padding:2px }
.googleroot { padding:6px; line-height:130% }
.googlechild { padding:6px; margin-left:30px; line-height:130% }
.googlebottom, .googlebottom a:link, .googlebottom a:visited, .googlebottom a:active { font-size:11px; color: #3A4F6C; }
.googlish, .googlish a:link, .googlish a:visited, .googlish a:active { font-size:14px; font-weight:bold; color:#00D; }
.googlepagelinks { font-size:1.1em; letter-spacing:1px }
.googlesmall, .googlesmall a:link, .googlesmall a:active, .googlesmall a:visited { font-size:10px; color:#434951 }
li.helprow { padding:0px; margin:0px 0px 10px 0px }
ul#help { padding:0px 0px 0px 15px }
option.cat { font-weight:bold; }
option.sub { font-weight:bold;color:#555 }
.caldate { text-align:right;font-weight:bold;font-size:11px;color:#777;background-color:#DFE6EF;padding:4px;margin:0px }
.warngood { color:green }
.warnbad { color:red }
#padandcenter { margin-left:auto;margin-right:auto;text-align:center;padding:14px 0px 14px 0px }
#profilename { font-size:28px; font-weight:bold; }
#calendarname { font-size:22px; font-weight:bold; }
#photowrap { padding:6px; }
#phototitle { font-size:24px; border-bottom:1px solid black }
#photoimg { text-align:center; margin-top:15px }
#ucpmenu { line-height:150%;width:22%; border:1px solid #345487;background-color: #F5F9FD }
#ucpmenu p { padding:2px 5px 6px 9px;margin:0px; }
#ucpcontent { background-color: #F5F9FD; border:1px solid #345487;line-height:150%; width:auto }
#ucpcontent p { padding:10px;margin:0px; }
#ipsbanner { position:absolute;top:1px;right:5%; }
#logostrip { border:1px solid #345487;background-color: #3860BB;background-image:url(style_images/<#IMG_DIR#>/tile_back.gif);padding:0px;margin:0px; }
#submenu { border:1px solid #BCD0ED;background-color: #DFE6EF;font-size:10px;margin:3px 0px 3px 0px;color:#3A4F6C;font-weight:bold;}
#submenu a:link, #submenu a:visited, #submenu a:active { font-weight:bold;font-size:10px;text-decoration: none; color: #3A4F6C; }
#userlinks { border:1px solid #C2CFDF; background-color: #F0F5FA }
#navstrip { font-weight:bold;padding:6px 0px 6px 0px; }
.activeuserstrip { background-color:#BCD0ED; padding:6px }
/* Form stuff (post / profile / etc) */
.pformstrip { background-color: #D1DCEB; color:#3A4F6C;font-weight:bold;padding:7px;margin-top:1px }
.pformleft { background-color: #F5F9FD; padding:6px; margin-top:1px;width:25%; border-top:1px solid #C2CFDF; border-right:1px solid #C2CFDF; }
.pformleftw { background-color: #F5F9FD; padding:6px; margin-top:1px;width:40%; border-top:1px solid #C2CFDF; border-right:1px solid #C2CFDF; }
.pformright { background-color: #F5F9FD; padding:6px; margin-top:1px;border-top:1px solid #C2CFDF; }
/* Topic View elements */
.signature { font-size: 10px; color: #339; line-height:150% }
.postdetails { font-size: 10px }
.postcolor { font-size: 12px; line-height: 160% }
.normalname { font-size: 12px; font-weight: bold; color: #003 }
.normalname a:link, .normalname a:visited, .normalname a:active { font-size: 12px }
.unreg { font-size: 11px; font-weight: bold; color: #900 }
.post1 { background-color: #F5F9FD }
.post2 { background-color: #EEF2F7 }
.postlinksbar { background-color:#D1DCEB;padding:7px;margin-top:1px;font-size:10px; background-image: url(style_images/<#IMG_DIR#>/tile_sub.gif) }
/* Common elements */
.row1 { background-color: #F5F9FD }
.row2 { background-color: #DFE6EF }
.row3 { background-color: #EEF2F7 }
.row4 { background-color: #E4EAF2 }
.darkrow1 { background-color: #C2CFDF; color:#4C77B6; }
.darkrow2 { background-color: #BCD0ED; color:#3A4F6C; }
.darkrow3 { background-color: #D1DCEB; color:#3A4F6C; }
.hlight { background-color: #DFE6EF }
.dlight { background-color: #EEF2F7 }
.titlemedium { font-weight:bold; color:#3A4F6C; padding:7px; margin:0px; background-image: url(style_images/<#IMG_DIR#>/tile_sub.gif) }
.titlemedium a:link, .titlemedium a:visited, .titlemedium a:active { text-decoration: underline; color: #3A4F6C }
/* Main table top (dark blue gradient by default) */
.maintitle { vertical-align:middle;font-weight:bold; color:#FFF; padding:8px 0px 8px 5px; background-image: url(style_images/<#IMG_DIR#>/tile_back.gif) }
.maintitle a:link, .maintitle a:visited, .maintitle a:active { text-decoration: none; color: #FFF }
.maintitle a:hover { text-decoration: underline }
/* tableborders gives the white column / row lines effect */
.plainborder { border:1px solid #345487;background-color:#F5F9FD }
.tableborder { border:1px solid #345487;background-color:#FFF; padding:0; margin:0 }
.tablefill { border:1px solid #345487;background-color:#F5F9FD;padding:6px; }
.tablepad { background-color:#F5F9FD;padding:6px }
.tablebasic { width:100%; padding:0px 0px 0px 0px; margin:0px; border:0px }
.wrapmini { float:left;line-height:1.5em;width:25% }
.pagelinks { float:left;line-height:1.2em;width:35% }
.desc { font-size:10px; color:#434951 }
.edit { font-size: 9px }
.searchlite { font-weight:bold; color:#F00; background-color:#FF0 }
#QUOTE { white-space:normal; font-family: Verdana, Arial; font-size: 11px; color: #465584; background-color: #FAFCFE; border: 1px solid #000; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px }
#CODE { white-space:normal; font-family: Courier, Courier New, Verdana, Arial; font-size: 11px; color: #465584; background-color: #FAFCFE; border: 1px solid #000; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px }
.copyright { font-family: Verdana, Tahoma, Arial, Sans-Serif; font-size: 9px; line-height: 12px }
.codebuttons { font-size: 10px; font-family: verdana, helvetica, sans-serif; vertical-align: middle }
.forminput, .textinput, .radiobutton, .checkbox { font-size: 11px; font-family: verdana, helvetica, sans-serif; vertical-align: middle }
.thin { padding:6px 0px 6px 0px;line-height:140%;margin:2px 0px 2px 0px;border-top:1px solid #FFF;border-bottom:1px solid #FFF }
.purple { color:purple;font-weight:bold }
.red { color:red;font-weight:bold }
.green { color:green;font-weight:bold }
.blue { color:blue;font-weight:bold }
.orange { color:#F90;font-weight:bold }
+1 -99
View File
@@ -1,102 +1,4 @@
<?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'] = 'Invision Power Board';
$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'] = 'Site Home';
$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';
?>
-44
View File
@@ -1,44 +0,0 @@
<?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' , 1 ) ,
"image/png" => array( 1, 'quicktime.gif' , 'PNG Image' , 1 ) ,
"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) ,
"application/x-shockwave-flash"=> array( 0, 'quicktime.gif' , 'Flash' ,0) ,
);
?>
-34
View File
@@ -1,34 +0,0 @@
<?
//-------------------------------------------------------------------
// Pretend we're a css sheet but process a saved cache file and convert
// over the img_dir stuff.
//
// Sneaky!
//-------------------------------------------------------------------
$root_path = './';
$in = explode( "_", $_GET['d'], 2 );
$css_id = intval($in[0]);
$img_id = preg_replace( "/.css$/", "", $in[1] );
$data = "";
if ( $css_id && $img_id )
{
if ( $FH = @fopen( $root_path."cache/css_{$css_id}.css", 'r' ) )
{
$data = @fread( $FH, @filesize($root_path."cache/css_{$css_id}.css") );
@fclose( $FH );
}
}
$data = str_replace( "<#IMG_DIR#>", $img_id, $data );
@header( "Content-type: text/css" );
print $data;
exit();
?>
-33
View File
@@ -1,33 +0,0 @@
Fonts by Tom Murphy 7
---------------------
http://fonts.tom7.com/
This is the official version of the license for all the fonts (except where noted). It supercedes any other licenses circulating.
I am employing a very generous license with these fonts (the way I think most software should be) for a number of reasons. Mainly though, it is because I would be making fonts regardless of whether I was distributing them or not, and because I know that people benefit from the fact that I give them away. I take enough stuff for free and it makes me feel good to know that I am 'giving back'.
Here is the license. You are free to download and use these fonts without my explicit permission for anything you want, except for the following:
You may NOT * resell the actual font files (without my written permission and without having to give me something in return). This includes but is not limited to selling it on a Font CD (even when the fee involved is a nominal "distribution" or "handling" fee, or some similar thing), or distributing it on a site which charges a fee per font download. (In contrast, a pay-per-hour service such as America Online is free to distribute the fonts.)
You may not misrepresent the creator of the font (pretend you made them)
You may not adapt them to different fonts without my permission.
You may not modify the font files for subsequent redistribution.
However, you have permission to do the following:
Use them to make graphics for your home page, non-profit web page, or commerical web site.
Give them to your friends for free.
Make them available (for free) on your web page, as long as you don't pretend you made them. It'd be nice of you to include this README file, too.
Use them in design work that you get paid for.
Use them in any smalltime publications or fliers or other non mass-produced literature.
Make commercial products like T-shirts or Mugs or Books using the fonts and sell them. In this case, since you are indirectly profiting off of my work, I ask that you send me one of the T-shirts or Mugs or Books free, where reasonable . Obviously some discretion on your part is due; but try to be fair. If it is inappropriate for you to send me one of your product, at least make an attempt to write me an e-mail at imightbetm@aol.com and let me know where the font is being used.
Exception to the above: The fonts (or converted versions of them) may be included on any recognized distribution of the Linux and (Open/Net/Free)BSD operating systems, even if the CD is sold. Please include the readme .
* "Not", as in, "Not without my permission". I regularly give permission for this sort of thing, so if you want to redistribute the fonts for a fee, let me know and we can probably work something out. Generally I simply request a copy of the CD or magazine or whatever.
For your information, here is my address:
Permanent address:
Tom Murphy 7
339 Still Hill Rd
Hamden CT 06518.1830
USA
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-1
View File
@@ -1 +0,0 @@
//-------------------------------------------- // Set up our simple tag open values //-------------------------------------------- var B_open = 0; var I_open = 0; var U_open = 0; var QUOTE_open = 0; var CODE_open = 0; var SQL_open = 0; var HTML_open = 0; var bbtags = new Array(); // Set the initial radio button status based on cookies var allcookies = document.cookie; var pos = allcookies.indexOf("bbmode="); prep_mode(); function prep_mode() { if (pos != 1) { var cstart = pos + 7; var cend = allcookies.indexOf(";", cstart); if (cend == -1) { cend = allcookies.length; } cvalue = allcookies.substring(cstart, cend); if (cvalue == 'ezmode') { document.REPLIER.bbmode[0].checked = true; } else { document.REPLIER.bbmode[1].checked = true; } } else { // default to normal mode. document.REPLIER.bbmode[1].checked = true; } } function setmode(mVal) { document.cookie = "bbmode="+mVal+"; path=/; expires=Wed, 1 Jan 2020 00:00:00 GMT;"; } function get_easy_mode_state() { // Returns true if we've chosen easy mode if (document.REPLIER.bbmode[0].checked) { return true; } else { return false; } } //-------------------------------------------- // Set the help bar status //-------------------------------------------- function hstat(msg) { document.REPLIER.helpbox.value = eval( "help_" + msg ); } // Set the number of tags open box function cstat() { var c = stacksize(bbtags); if ( (c < 1) || (c == null) ) { c = 0; } if ( ! bbtags[0] ) { c = 0; } document.REPLIER.tagcount.value = c; } //-------------------------------------------- // 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 all tags //-------------------------------------------- function closeall() { //var c=bbtags.length; //alert('Stack: ' + c); if (bbtags[0]) { while (bbtags[0]) { tagRemove = popstack(bbtags) document.REPLIER.Post.value += "[/" + tagRemove + "]"; // Change the button status eval("document.REPLIER." + tagRemove + ".value = ' " + tagRemove + " '"); eval(tagRemove + "_open = 0"); } } // Ensure we got them all document.REPLIER.tagcount.value = 0; bbtags = new Array(); 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 + "] [/" + 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) { var tagOpen = eval(thetag + "_open"); if ( get_easy_mode_state() ) { inserttext = prompt(prompt_start + "\n[" + thetag + "]xxx[/" + thetag + "]"); if ( (inserttext != null) && (inserttext != "") ) { document.REPLIER.Post.value += "[" + thetag + "]" + inserttext + "[/" + thetag + "] "; } } else { if (tagOpen == 0) { document.REPLIER.Post.value += "[" + thetag + "]"; eval(thetag + "_open = 1"); // Change the button status eval("document.REPLIER." + thetag + ".value += '*'"); pushstack(bbtags, thetag); cstat(); hstat('click_close'); } else { // Find the last occurance of the Line truncated
Binary file not shown.

Before

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 616 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 395 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 135 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 170 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 535 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

-1
View File
@@ -1 +0,0 @@
<head> <title>Invision Power Board Colour Picker</title> <script language="JavaScript" type='text/javascript'> var theColour = ""; function showColor(val) { document.colorform.hexval.value = val; theColour = val; document.all.HEX.style.backgroundColor = val; } function keepColor() { document.colorform.keepcolour.value = theColour; } </script> </head> <body bgcolor='#FFFFFF'> <font face='arial' size='2' color='#000000'> <center> <form name="colorform"> <b>Invision Power Board Color Picker<br><br>Simply roll your mouse over the desired colour to get the Hex value and a colour preview <br> <map name="colmap"> <area shape="rect" coords="1,1,7,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#00FF00')" onClick="javascript:keepColor()"> <area shape="rect" coords="9,1,15,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#00FF33')" onClick="javascript:keepColor()"> <area shape="rect" coords="17,1,23,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#00FF66')" onClick="javascript:keepColor()"> <area shape="rect" coords="25,1,31,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#00FF99')" onClick="javascript:keepColor()"> <area shape="rect" coords="33,1,39,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#00FFCC')" onClick="javascript:keepColor()"> <area shape="rect" coords="41,1,47,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#00FFFF')" onClick="javascript:keepColor()"> <area shape="rect" coords="49,1,55,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#33FF00')" onClick="javascript:keepColor()"> <area shape="rect" coords="57,1,63,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#33FF33')" onClick="javascript:keepColor()"> <area shape="rect" coords="65,1,71,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#33FF66')" onClick="javascript:keepColor()"> <area shape="rect" coords="73,1,79,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#33FF99')" onClick="javascript:keepColor()"> <area shape="rect" coords="81,1,87,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#33FFCC')" onClick="javascript:keepColor()"> <area shape="rect" coords="89,1,95,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#33FFFF')" onClick="javascript:keepColor()"> <area shape="rect" coords="97,1,103,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#66FF00')" onClick="javascript:keepColor()"> <area shape="rect" coords="105,1,111,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#66FF33')" onClick="javascript:keepColor()"> <area shape="rect" coords="113,1,119,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#66FF66')" onClick="javascript:keepColor()"> <area shape="rect" coords="121,1,127,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#66FF99')" onClick="javascript:keepColor()"> <area shape="rect" coords="129,1,135,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#66FFCC')" onClick="javascript:keepColor()"> <area shape="rect" coords="137,1,143,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#66FFFF')" onClick="javascript:keepColor()"> <area shape="rect" coords="145,1,151,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#99FF00')" onClick="javascript:keepColor()"> <area shape="rect" coords="153,1,159,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#99FF33')" onClick="javascript:keepColor()"> <area shape="rect" coords="161,1,167,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#99FF66')" onClick="javascript:keepColor()"> <area shape="rect" coords="169,1,175,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#99FF99')" onClick="javascript:keepColor()"> <area shape="rect" coords="177,1,183,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#99FFCC')" onClick="javascript:keepColor()"> <area shape="rect" coords="185,1,191,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#99FFFF')" onClick="javascript:keepColor()"> <area shape="rect" coords="193,1,199,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#CCFF00')" onClick="javascript:keepColor()"> <area shape="rect" coords="201,1,207,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#CCFF33')" onClick="javascript:keepColor()"> <area shape="rect" coords="209,1,215,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#CCFF66')" onClick="javascript:keepColor()"> <area shape="rect" coords="217,1,223,10" onMouseOut="javascript:showColor('')" onMouseOver="jaLine truncated
Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 B

+437 -145
View File
@@ -2,17 +2,19 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board v1.3.1 Final
| Invision Power Board v2.0.0
| ========================================
| by Matthew Mecham
| (c) 2001 - 2003 Invision Power Services
| (c) 2001 - 2004 Invision Power Services
| http://www.invisionpower.com
| ========================================
| Web: http://www.invisionboard.com
| Time: Thu, 23 Sep 2004 23:05:01 GMT
| Release: 3cb325c445e1909182084806ae7f8226
| Time: Tue, 21 Sep 2004 16:34:28 GMT
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
| Email: matt@invisionpower.com
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
| INVISION POWER BOARD IS NOT FREE SOFTWARE!
| http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
|
| > Wrapper script
@@ -28,31 +30,56 @@
// Root path
define( 'ROOT_PATH', "./" );
define( 'ROOT_PATH' , "./" );
define( 'KERNEL_PATH', ROOT_PATH.'ips_kernel/' );
// Enable module usage?
// (Vital for some mods and IPB enhancements)
define ( 'USE_MODULES', 1 );
// Enable shut down features?
// Uses PHPs register_shutdown_function to save
// low priority tasks until end of exec
define ( 'USE_SHUTDOWN', 1 );
// Enable custom error handling?
// Useful to trap skin errors, etc
define( 'CUSTOM_ERROR', 1 );
//-----------------------------------------------
// NO USER EDITABLE SECTIONS BELOW
//-----------------------------------------------
define ( 'IN_IPB', 1 );
define ( 'IN_DEV', 0 );
error_reporting (E_ERROR | E_WARNING | E_PARSE);
set_magic_quotes_runtime(0);
class Debug {
function startTimer() {
if ( CUSTOM_ERROR )
{
set_error_handler("my_error_handler");
}
//===========================================================================
// DEBUG CLASS
//===========================================================================
class Debug
{
function startTimer()
{
global $starttime;
$mtime = microtime ();
$mtime = explode (' ', $mtime);
$mtime = $mtime[1] + $mtime[0];
$starttime = $mtime;
}
function endTimer() {
function endTimer()
{
global $starttime;
$mtime = microtime ();
$mtime = explode (' ', $mtime);
@@ -63,41 +90,45 @@ class Debug {
}
}
//===========================================================================
// INFO CLASS
//===========================================================================
class info {
var $member = array();
var $input = array();
var $session_id = "";
var $base_url = "";
var $vars = "";
var $skin_id = "0"; // Skin Dir name
var $skin_rid = ""; // Real skin id (numerical only)
var $lang_id = "en";
var $skin = "";
var $lang = "";
var $server_load = 0;
var $version = "v1.3.1 Final";
var $lastclick = "";
var $location = "";
var $debug_html = "";
var $perm_id = "";
var $forum_read = array();
var $topic_cache = "";
var $member = array();
var $input = array();
var $session_id = "";
var $base_url = "";
var $vars = "";
var $lang_id = "en";
var $skin = "";
var $lang = "";
var $server_load = 0;
var $version = "v2.0.0 ";
var $lastclick = "";
var $location = "";
var $debug_html = "";
var $perm_id = "";
var $forum_read = array();
var $topic_cache = "";
var $session_type = "";
function info() {
var $skin_global = "";
var $loaded_templates = array();
var $converge = "";
function info()
{
global $sess, $std, $DB, $INFO;
$this->vars = &$INFO;
$this->vars['TEAM_ICON_URL'] = $INFO['html_url'] . '/team_icons';
$this->vars['AVATARS_URL'] = $INFO['html_url'] . '/avatars';
$this->vars['EMOTICONS_URL'] = $INFO['html_url'] . '/emoticons';
$this->vars['mime_img'] = $INFO['html_url'] . '/mime_types';
}
}
//===========================================================================
// MAIN PROGRAM
//===========================================================================
//--------------------------------
// Import $INFO, now!
//--------------------------------
@@ -113,24 +144,13 @@ require ROOT_PATH."conf_global.php";
$Debug = new Debug;
$Debug->startTimer();
//--------------------------------
// Require our global functions
//--------------------------------
require ROOT_PATH."sources/functions.php";
$std = new FUNC;
$print = new display();
$sess = new session();
//--------------------------------
// Load the DB driver and such
//--------------------------------
$INFO['sql_driver'] = !$INFO['sql_driver'] ? 'mySQL' : $INFO['sql_driver'];
$INFO['sql_driver'] = ! $INFO['sql_driver'] ? 'mysql' : strtolower($INFO['sql_driver']);
$to_require = ROOT_PATH."sources/Drivers/".$INFO['sql_driver'].".php";
require ($to_require);
require ( KERNEL_PATH.'class_db_'.$INFO['sql_driver'].".php" );
$DB = new db_driver;
@@ -139,81 +159,258 @@ $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'];
$DB->obj['query_cache_file'] = ROOT_PATH.'sources/sql/'.$INFO['sql_driver'].'_queries.php';
$DB->obj['use_shutdown'] = USE_SHUTDOWN;
$DB->obj['debug'] = ($INFO['sql_debug'] == 1) ? $_GET['debug'] : 0;
//-----------------------------------
// Required vars?
//-----------------------------------
if ( is_array( $DB->connect_vars ) and count( $DB->connect_vars ) )
{
foreach( $DB->connect_vars as $k => $v )
{
$DB->connect_vars[ $k ] = $INFO[ $k ];
}
}
//--------------------------------
// Get a DB connection
//--------------------------------
$DB->connect();
//--------------------------------
// Make CONSTANT
//--------------------------------
define( 'SQL_PREFIX', $DB->obj['sql_tbl_prefix'] );
define( 'SQL_DRIVER', $INFO['sql_driver'] );
//--------------------------------
// Wrap it all up in a nice easy to
// transport super class
//--------------------------------
$ibforums = new info();
$ibforums = new info();
//--------------------------------
// Require our global functions
//--------------------------------
require ROOT_PATH."sources/functions.php";
require ROOT_PATH."sources/classes/class_display.php";
require ROOT_PATH."sources/classes/class_session.php";
require ROOT_PATH."sources/classes/class_forums.php";
require KERNEL_PATH."class_converge.php";
$std = new FUNC;
$print = new display();
$sess = new session();
$forums = new forum_functions();
//--------------------------------
// Set up our vars
//--------------------------------
$ibforums->input = $std->parse_incoming();
$ibforums->input = $std->parse_incoming();
//--------------------------------
// Short tags...
// Set converge
//--------------------------------
$ibforums->converge = new class_converge( $DB );
//===========================================================================
// Generate choice array
//===========================================================================
$choice = array(
"idx" => array( "boards" , 'boards' ,"'birthdays', 'calendar'," ),
"sf" => array( "forums" , 'forums' ,"'announcements', 'multimod'," ),
"sr" => array( "forums" , 'forums' ),
"st" => array( "topics" , 'topics' ,"'attachtypes','bbcode', 'multimod','ranks','profilefields'," ),
"announce" => array( "announcements" , 'announcements',"'bbcode','badwords','emoticons','ranks','profilefields'," ),
"login" => array( "login" , 'login' ),
"post" => array( "post" , 'post' ,"'attachtypes','badwords','bbcode','emoticons'," ),
"poll" => array( "lib/add_poll" , 'poll' ),
"reg" => array( "register" , 'register' ),
"online" => array( "online" , 'online' ),
"members" => array( "memberlist" , 'memberlist' ,"'ranks','profilefields'," ),
"help" => array( "help" , 'help' ),
"search" => array( "search" , 'search' ,"'attachtypes','multimod','bbcode','ranks','profilefields'," ),
"mod" => array( "moderate" , 'moderate' ,"'attachtypes','multimod','bbcode','emoticons'," ),
"print" => array( "misc/print_page" , 'printpage' ,"'attachtypes','bbcode', 'multimod','ranks','profilefields'," ),
"forward" => array( "misc/forward_page" , 'forwardpage' ),
"mail" => array( "misc/contact_member", 'contactmember' ),
"invite" => array( "misc/contact_member", 'contactmember' ),
"icq" => array( "misc/contact_member", 'contactmember' ),
"aol" => array( "misc/contact_member", 'contactmember' ),
"yahoo" => array( "misc/contact_member", 'contactmember' ),
"msn" => array( "misc/contact_member", 'contactmember' ),
"report" => array( "misc/contact_member", 'contactmember' ),
"chat" => array( "misc/contact_member", 'contactmember' ),
"integ" => array( "misc/contact_member", 'contactmember' ),
'boardrules' => array( "misc/contact_member", 'contactmember' ),
"msg" => array( "messenger" , 'messenger' ,"'profilefields','attachtypes','badwords','bbcode','emoticons'," ),
"usercp" => array( "usercp" , 'usercp' ,"'attachtypes','badwords','bbcode','emoticons'," ),
"profile" => array( "profile" , 'profile' ,"'ranks','profilefields','badwords','bbcode','emoticons',"),
"track" => array( "misc/tracker" , 'tracker' ),
"stats" => array( "misc/stats" , 'stats' ),
"attach" => array( "misc/attach" , 'attach' ,"'attachtypes'," ),
'legends' => array( 'misc/legends' , 'legends' ,"'badwords','bbcode' ,'emoticons'," ),
'calendar' => array( "calendar" , 'calendar' ),
'buddy' => array( "browsebuddy" , 'assistant' ),
'mmod' => array( "misc/multi_moderate", 'mmod' ,"'multimod',"),
'warn' => array( "misc/warn" , 'warn' ,"'badwords','bbcode' ,'emoticons'," ),
'home' => array( 'ipbportal' , 'ipdl' ,"'attachtypes','bbcode', 'multimod','ranks','profilefields'," ),
'module' => array( 'modules' , 'modules' ),
'toutline' => array( 'topics_outline' , 'toutline' ),
'task' => array( 'taskloader' , 'taskloader' ),
'findpost' => array( 'findpost' , 'findpost' ),
);
//---------------------------------------------------
// Check to make sure the array key exits..
//---------------------------------------------------
$ibforums->input['_low_act'] = strtolower( $ibforums->input['act'] );
if (! isset($choice[ $ibforums->input['_low_act'] ][0]) )
{
$ibforums->input['act'] = 'idx';
}
//===========================================================================
// Short tags...
//===========================================================================
if ( $ibforums->input['showforum'] != "" )
{
$ibforums->input['act'] = "SF";
$ibforums->input['act'] = "sf";
$ibforums->input['f'] = intval($ibforums->input['showforum']);
}
else if ( $ibforums->input['showtopic'] != "")
{
$ibforums->input['act'] = "ST";
$ibforums->input['act'] = "st";
$ibforums->input['t'] = intval($ibforums->input['showtopic']);
//---------------------------------------------------
// Grab and cache the topic now as we need the 'f' attr for
// the skins...
//---------------------------------------------------
$DB->query("SELECT t.*, f.topic_mm_id, f.name as forum_name, f.quick_reply, f.id as forum_id, f.read_perms, f.reply_perms, f.parent_id, f.use_html,
f.start_perms, f.allow_poll, f.password, f.posts as forum_posts, f.topics as forum_topics, f.upload_perms,
f.show_rules, f.rules_text, f.rules_title,
c.name as cat_name, c.id as cat_id
FROM ibf_topics t, ibf_forums f , ibf_categories c
WHERE t.tid=".$ibforums->input['t']." and f.id = t.forum_id and f.category=c.id");
$DB->simple_construct( array( 'select' => '*',
'from' => 'topics',
'where' => "tid=".$ibforums->input['t'],
) );
$DB->simple_exec();
$ibforums->topic_cache = $DB->fetch_row();
$ibforums->input['f'] = $ibforums->topic_cache['forum_id'];
}
else if ( $ibforums->input['showuser'] != "")
{
$ibforums->input['act'] = "Profile";
$ibforums->input['act'] = "profile";
$ibforums->input['MID'] = intval($ibforums->input['showuser']);
}
else if ( $ibforums->input['automodule'] != "" )
{
$ibforums->input['act'] = 'module';
$ibforums->input['module'] = $ibforums->input['automodule'];
}
else
{
$ibforums->input['act'] = $ibforums->input['act'] == '' ? "idx" : $ibforums->input['act'];
}
//===========================================================================
// Get cache...
//===========================================================================
$DB->simple_construct( array( 'select' => '*', 'from' => 'cache_store', 'where' => "cs_key IN ( ".$choice[ strtolower($ibforums->input['act']) ][2]."'banfilters', 'settings', 'group_cache', 'systemvars', 'skin_id_cache', 'forum_cache', 'moderators', 'stats', 'languages' )" ) );
$DB->simple_exec();
while ( $r = $DB->fetch_row() )
{
if ( $r['cs_key'] == 'settings' )
{
$tmp = unserialize(stripslashes($r['cs_value']));
if ( is_array( $tmp ) and count( $tmp ) )
{
foreach( $tmp as $k => $v )
{
$ibforums->vars[ $k ] = $v;
}
}
unset( $tmp );
}
else
{
if ( $r['cs_array'] )
{
$ibforums->cache[ $r['cs_key'] ] = unserialize(stripslashes($r['cs_value']));
}
else
{
$ibforums->cache[ $r['cs_key'] ] = $r['cs_value'];
}
}
}
if ( ! isset( $ibforums->cache['systemvars'] ) )
{
$DB->simple_exec_query( array( 'delete' => 'cache_store', 'where' => "cs_key='systemvars'" ) );
$DB->do_insert( 'cache_store', array( 'cs_key' => 'systemvars', 'cs_value' => addslashes(serialize(array())), 'cs_array' => 1 ) );
}
//--------------------------------
// Set debug mode
//--------------------------------
$DB->set_debug_mode( $ibforums->vars['sql_debug'] == 1 ? intval($_GET['debug']) : 0 );
//--------------------------------
// Initialize the FUNC
//--------------------------------
$std->FUNC_init();
//--------------------------------
// The rest :D
//--------------------------------
$ibforums->member = $sess->authorise();
$ibforums->skin = $std->load_skin();
$ibforums->lastclick = $sess->last_click;
$ibforums->location = $sess->location;
$ibforums->session_id = $sess->session_id;
$ibforums->session_id = $sess->session_id; // Used in URLs
$ibforums->my_session = $sess->session_id; // Used in code
//--------------------------------
// Initialize the forums
//--------------------------------
$forums->strip_invisible = 1;
$forums->forums_init();
//--------------------------------
// Load the skin
//--------------------------------
$std->load_skin();
list($ppu,$tpu) = explode( "&", $ibforums->member['view_prefs'] );
$ibforums->vars['display_max_topics'] = ($tpu > 0) ? $tpu : $ibforums->vars['display_max_topics'];
$ibforums->vars['display_max_posts'] = ($ppu > 0) ? $ppu : $ibforums->vars['display_max_posts'];
//--------------------------------
//===========================================================================
// Set up the session ID stuff
//--------------------------------
//===========================================================================
if ( $ibforums->session_type == 'cookie' )
{
@@ -233,14 +430,29 @@ $ibforums->js_base_url = $ibforums->vars['board_url'].'/index.'.$ibforums->vars[
$std->hdl_forum_read_cookie();
//===========================================================================
// Set up defaults
//===========================================================================
$ibforums->skin_id = $ibforums->skin['_setid'];
$ibforums->vars['img_url'] = 'style_images/' . $ibforums->skin['_imagedir'];
$ibforums->vars['AVATARS_URL'] = 'style_avatars';
$ibforums->vars['EMOTICONS_URL'] = 'style_emoticons/<#EMO_DIR#>';
$ibforums->vars['mime_img'] = 'style_images/<#IMG_DIR#>';
//--------------------------------
// Set up the skin stuff
// Set up cache path
//--------------------------------
$ibforums->skin_rid = $ibforums->skin['set_id'];
$ibforums->skin_id = 's'.$ibforums->skin['set_id'];
$ibforums->vars['img_url'] = 'style_images/' . $ibforums->skin['img_dir'];
if ( $ibforums->vars['ipb_cache_path'] )
{
define( 'CACHE_PATH', $ibforums->vars['ipb_cache_path'] );
}
else
{
define( 'CACHE_PATH', ROOT_PATH );
}
//--------------------------------
// Set up our language choice
@@ -251,6 +463,26 @@ if ($ibforums->vars['default_language'] == "")
$ibforums->vars['default_language'] = 'en';
}
//--------------------------------
// Did we choose a language?
//--------------------------------
If ( $ibforums->input['setlanguage'] and $ibforums->input['langid'] and $ibforums->member['id'] )
{
if ( is_array( $ibforums->cache['languages'] ) and count( $ibforums->cache['languages'] ) )
{
foreach( $ibforums->cache['languages'] as $idx => $data )
{
if ( $data['ldir'] == $ibforums->input['langid'] )
{
$DB->do_update( 'members', array( 'language' => $data['ldir'] ), 'id='.$ibforums->member['id'] );
$ibforums->member['language'] = $data['ldir'];
}
}
}
}
$ibforums->lang_id = $ibforums->member['language'] ? $ibforums->member['language'] : $ibforums->vars['default_language'];
if ( ($ibforums->lang_id != $ibforums->vars['default_language']) and (! is_dir( ROOT_PATH."lang/".$ibforums->lang_id ) ) )
@@ -260,10 +492,6 @@ if ( ($ibforums->lang_id != $ibforums->vars['default_language']) and (! is_dir(
$ibforums->lang = $std->load_words($ibforums->lang, 'lang_global', $ibforums->lang_id);
//--------------------------------
$skin_universal = $std->load_template('skin_global');
//--------------------------------
// Expire subscription?
//--------------------------------
@@ -273,9 +501,33 @@ if ( $ibforums->member['sub_end'] != 0 AND ( $ibforums->member['sub_end'] < time
$std->expire_subscription();
}
//--------------------------------
// Upload dir?
//--------------------------------
if ($ibforums->input['act'] != 'Login' and $ibforums->input['act'] != 'Reg' and $ibforums->input['act'] != 'Attach' and $ibforums->input['module'] != 'subscription')
$ibforums->vars['upload_dir'] = $ibforums->vars['upload_dir'] ? $ibforums->vars['upload_dir'] : ROOT_PATH.'uploads';
//===========================================================================
// DECONSTRUCTOR
//===========================================================================
if ( USE_SHUTDOWN and $ibforums->input['act'] != 'task' )
{
chdir( ROOT_PATH );
$ROOT_PATH = getcwd();
register_shutdown_function( array( &$std, 'my_deconstructor') );
}
//===========================================================================
// Force log in / board offline?
//===========================================================================
if ($ibforums->input['_low_act'] != 'login' and
$ibforums->input['_low_act'] != 'reg' and
$ibforums->input['_low_act'] != 'attach' and
$ibforums->input['_low_act'] != 'task' and
( $ibforums->input['_low_act'] != 'module' && $ibforums->input['module'] != 'subscription' ) )
{
//--------------------------------
@@ -284,7 +536,7 @@ if ($ibforums->input['act'] != 'Login' and $ibforums->input['act'] != 'Reg' and
//--------------------------------
if ($ibforums->member['g_view_board'] != 1)
{
{
$std->Error( array( 'LEVEL' => 1, 'MSG' => 'no_view_board') );
}
@@ -296,6 +548,7 @@ if ($ibforums->input['act'] != 'Login' and $ibforums->input['act'] != 'Reg' and
{
if ($ibforums->member['g_access_offline'] != 1)
{
$ibforums->vars['no_reg'] == 1;
$std->board_offline();
}
@@ -307,80 +560,71 @@ if ($ibforums->input['act'] != 'Login' and $ibforums->input['act'] != 'Reg' and
if ( (! $ibforums->member['id']) and ($ibforums->vars['force_login'] == 1) )
{
require ROOT_PATH."sources/Login.php";
require ROOT_PATH."sources/login.php";
$runme = new login();
$runme->auto_run();
}
//--------------------------------
// Show PURCHASE screen?
// Not enforced
//--------------------------------
if ( ! $ibforums->member['sub_end'] )
{
//--------------------------------
// 1: No enforce, chosen from reg
//--------------------------------
if ( ! $ibforums->vars['subsm_enforce'] and $ibforums->member['subs_pkg_chosen'] )
{
$ibforums->input['act'] = 'module';
$ibforums->input['module'] = 'subscription';
$ibforums->input['CODE'] = 'paymentmethod';
$ibforums->input['sub'] = $ibforums->member['subs_pkg_chosen'];
$ibforums->input['nocp'] = 1;
$ibforums->input['msgtype'] = 'fromreg';
}
//--------------------------------
// Show PURCHASE screen?
// Enforced
//--------------------------------
if ( $ibforums->vars['subsm_enforce'] and $ibforums->member['mgroup'] == $ibforums->vars['subsm_nopkg_group'] )
{
$ibforums->input['act'] = 'module';
$ibforums->input['module'] = 'subscription';
$ibforums->input['nocp'] = 1;
$ibforums->input['msgtype'] = 'force';
if ( $ibforums->member['subs_pkg_chosen'] )
{
$ibforums->input['CODE'] = 'paymentmethod';
$ibforums->input['sub'] = $ibforums->member['subs_pkg_chosen'];
}
}
}
}
//--------------------------------
// Decide what to do
//--------------------------------
$choice = array(
"idx" => "Boards",
"SC" => "Boards",
"SF" => "Forums",
"SR" => "Forums",
"ST" => "Topics",
"Login" => "Login",
"Post" => "Post",
"Poll" => "lib/add_poll",
"Reg" => "Register",
"Online" => "Online",
"Members" => "Memberlist",
"Help" => "Help",
"Search" => "Search",
"Mod" => "Moderate",
"Print" => "misc/print_page",
"Forward" => "misc/forward_page",
"Mail" => "misc/contact_member",
"Invite" => "misc/contact_member",
"ICQ" => "misc/contact_member",
"AOL" => "misc/contact_member",
"YAHOO" => "misc/contact_member",
"MSN" => "misc/contact_member",
"report" => "misc/contact_member",
"chat" => "misc/contact_member",
"integ" => "misc/contact_member",
"Msg" => "Messenger",
"UserCP" => "Usercp",
"Profile" => "Profile",
"Track" => "misc/tracker",
"Stats" => "misc/stats",
"Attach" => "misc/attach",
'legends' => 'misc/legends',
'modcp' => 'mod_cp',
'calendar' => "calendar",
'buddy' => "browsebuddy",
'boardrules' => "misc/contact_member",
'mmod' => "misc/multi_moderate",
'warn' => "misc/warn",
'home' => 'dynamiclite/csite',
'module' => 'modules',
);
/***************************************************/
//
// Check to make sure the array key exits..
if (! isset($choice[ $ibforums->input['act'] ]) )
{
$ibforums->input['act'] = 'idx';
}
//===========================================================================
// REQUIRE AND RUN
//===========================================================================
if ( $ibforums->input['act'] == 'home' )
{
if ( $ibforums->vars['csite_on'] )
{
require ROOT_PATH."sources/dynamiclite/csite.php";
$csite = new click_site();
require ROOT_PATH."sources/ipbportal.php";
$csite = new ipdl();
$csite->auto_run();
}
else
{
require ROOT_PATH."sources/Boards.php";
require ROOT_PATH."sources/boards.php";
$runme = new boards();
$runme->auto_run();
}
}
else if ( $ibforums->input['act'] == 'module' )
@@ -392,21 +636,69 @@ else if ( $ibforums->input['act'] == 'module' )
}
else
{
require ROOT_PATH."sources/Boards.php";
require ROOT_PATH."sources/boards.php";
}
}
else
{
// Require and run
require ROOT_PATH."sources/".$choice[ $ibforums->input['act'] ].".php";
require_once( ROOT_PATH."sources/".$choice[ strtolower($ibforums->input['act']) ][0].".php" );
$runme = new $choice[ strtolower($ibforums->input['act']) ][1];
$runme->auto_run();
}
//+-------------------------------------------------
/*-------------------------------------------------------------------------*/
// GLOBAL ROUTINES
//+-------------------------------------------------
/*-------------------------------------------------------------------------*/
function fatal_error($message="", $help="") {
function fatal_error($message="", $help="")
{
echo("$message<br><br>$help");
exit;
}
?>
/*-------------------------------------------------------------------------*/
// Custom error handler
/*-------------------------------------------------------------------------*/
function my_error_handler( $errno, $errstr, $errfile, $errline )
{
// Did we turn off errors with @?
if ( ! error_reporting() )
{
return;
}
$errfile = str_replace( @getcwd(), "", $errfile );
switch ($errno)
{
case E_ERROR:
echo "<b>IPB ERROR</b> [$errno] $errstr (Line: $errline of $errfile)<br />\n";
exit(1);
break;
case E_WARNING:
if ( strstr( $errstr, 'load_template(./skin_cache/cacheid_' ) )
{
echo "<div style='font-family:sans-serif'><b>IPB TEMPLATE ERROR:</b> Could not load the required template.
<br /><br />First, try and remove any custom skin settings by clicking <a href='index.php?setskin&id=0'>here</a>
<br /><br />Then, please visit your <a href='admin.php'>Admin Control Panel</a> to repair this template.
<br /><br /><span style='font-size:90%;color:gray'>Error: $errstr</span></div>";
}
else
{
echo "<b>IPB WARNING</b> [$errno] $errstr (Line: $errline of $errfile)<br />\n";
}
break;
default:
//Do nothing
break;
}
}
?>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

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