Version 1.3.0

This commit is contained in:
Neo committed 2025-12-19 00:17:06 -08:00
1 parent 7ef3d1712a
commit f87d29ba65
290 files changed
+50206 -17930

No files matched your search

File renamed without changes.
@@ -1,163 +1,319 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Invision Install Guide: Help & FAQ</title>
<style>
BODY, TABLE { font-family: verdana, arial; font-size:12px; line-height:150% }
.title { background-image: url(tile_back.gif); font-family:arial; font-size:18px; color:white; font-weight:bold; height:40px }
.table1 { border:1px solid #999999 }
.table2 { border:1px dotted #999999 }
.menustrip { font-color:black; background-color:#EEEEEE; font-size:12px; height:24px }
a:link, a:visited, a:active { color:#000055 }
a:hover { color:#333377;text-decoration:underline }
.header { border-bottom:1px dashed #999999; font-family:Verdana, Arial; font-weight:bold; color:#4C77B6; font-size:20px; background-color:#FEFEFE; letter-spacing:-1px }
</style>
</head>
<body bgcolor="#FFFFFF" topmargin='5' leftmargin='0'>
<!-- Start content -->
<a name='top'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td align='center'>
<b>Sections:</b> <a href='help.html#install' target='bottom'>Installation Problems</a> | <a href='help.html#admin' target='bottom'>Admin CP Problems</a> | <a href='help.html#main' target='bottom'>Board Problems</a> | <a href='help.html#help' target='bottom'>Getting Further Help</a>
</td></tr>
</table>
<br>
<a name='install'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>Installation Problems</td>
</tr>
<tr>
<td align='left'>
<b>When I run the installer, I get a page of code.</b>
<br>
If when accessing the installer via your web browser you receive a page of code and not the installation start screen, this means that either PHP has
not been installed or has not been configured properly. Please consult with your web host to see if this is the case.
<br><br>
<b>I get an error like this 'access denied for user@localhost using password YES' when I submit the main form.</b>
<br>
If you receive this error from mySQL it means that either the mySQL database name, mySQL username, mySQL password or mySQL host information is wrong. Please double check the information you
entered making sure that passwords are typed correctly. In some cases, this information is case sensitive. If this error persists, please consult with your web host to check that the information
you have is correct.
<br><br>
<b>After installing, I get this error 'Warning: fopen("/.install.lock", "w") - Permission denied ...'</b>
<br>
After installing, Invision Board attempts to create a "lock" file which disables the installation script. If you receive this error, the installer
has not been able to create this file. After you have logged into the Admin Center for the first time, you should remove the "sm_install.php" script
from your server and only re-upload it if you wish to make a fresh install. You can then safely ignore this warning.
<br><br>
<b>When installing I get an error like this: 'WARNING! Could not locate 'conf_global.php'</b>
<br>
This error means that the installer could not "guess" the location of the file 'conf_global.php'. Make sure you have uploaded this file into the same directory that you
uploaded 'sm_install.php' into. If you have this file already uploaded and the CHMOD value has been set, then you can tell the installer where to look for this file by simply
opening 'sm_install.php' in your favourite text editor. Look near the top for "$root = "./";". Edit this to reflect your "real" path. Note, this is a path - not a URL, entering "http://www.domain.com" or similar will
result in an error. A path is literally the file path from the server root to the current directory (such as '/home/site/public_html/forums/'). More information is provided in the script near the top. When you have completed
the edit, simply save the file and re-upload to your server and re-run through your web browser.
</td></tr>
</table>
<br>
<a name='admin'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>Admin CP Problems</td>
</tr>
<tr>
<td align='left'>
<b>No matter what I do, I can't stay logged into the Admin CP.</b>
<br>
For extra security, the Admin CP checks your IP address as part of the admin session validation. In some cases your IP address will change with each page request (especially if you are using a dial up ISP). You can
stop the Admin CP checking your IP address which will solve the problem.
<br>To do this, open up "admin.php" in your text editor. Near the top of the script change <span style='color:red'>$check_ip = 1;</span> to <span style='color:red'>$check_ip = 0;</span>. Save the file and re-upload to your
server.
<br>Although there is no immediate security risk to doing this, you should not disclose your admin session ID to anyone or post the link you are using for that admin CP session to anyone.
<br><br>
<b>When I try to access the Admin CP, the page is completely blank</b>
<br>
This problem could be the result of a few things.<br>
Firstly, open up "admin.php" in a text editor and near the top change: <span style='color:red'>$use_gzip = 1;</span> to <span style='color:red'>$use_gzip = 0;</span>. Save the file and re-upload to your
server.
<br>
If that doesn't solve the problem, check the CHMOD values on the directories you created during the installation process. If in doubt, CHMOD them to 0777 and any directories contained within.
</td></tr>
</table>
<br>
<a name='main'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>General Board Problems</td>
</tr>
<tr>
<td align='left'>
<b>Every time I try to access a page on the forums it loads a blank page.</b>
<br>
Can you log into the Admin CP? If you do not know the url, enter the following into your web browser address bar <b>http://www.your-domain-here.com/forums/admin.php</b> (obviously using the correct URL to your board!).
<br>If the Admin CP loads first time, try the following:
<br>Click on "Board Settings" to expand the sub-menu. Click on "Basic Config". When the page has loaded, turn off the following: <b>Print HTTP headers?</b> and <b>DISABLE GZIP encoding?</b>. When complete, submit the form
and try to access your board again.
<br>
If it still loads a blank page, check the CHMOD values on the directories you created during the installation including any directories contained within. If in doubt, CHMOD to 0777.
<br><br>
<b>I am on a Windows server and I get an Internal Server Error when trying to access my board</b>
<br>
There is an option to disable the headers that Invision Board prints by default.
<br>Log into your Admin Control Panel, click on "Board Settings" to expand the sub-menu. Click on "Basic Config". When the page has loaded, turn off <b>Print HTTP headers?</b> and submit the form
and try to access your board again.
<br><br>
<b>I am on a Windows server and when I make a post I am taken to a blank page</b>
<br>
Some Windows based servers require a different HTTP protocol when redirecting HTTP requests, there is an option in the Admin Control Panel to overcome this.
<br>
Log into your Admin Control Panel, click on "Board Settings" to expand the sub-menu. Click on "Basic Config". Choose "Refresh (Windows Savvy) from the "Type of auto-redirect?" option. Submit the form.
</td></tr>
</table>
<br>
<a name='help'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>Getting further help</td>
</tr>
<tr>
<td align='left'>
If you have a problem outside the ones solved in this guide, then don't panic!<br>
We have a large team of trained support professionals that <b>will</b> be able to provide a solution to your problems.<br>
Your first stop would be to open a new support ticket. The FREE ticket system is available from the <a href='http://www.invisionboard.com/' target='_blank'>Invision Board</a> web site. When starting a new ticket, please
be as thorough as you can in your error reporting, it will save our team time in responding to you. We pride ourselves on quality, professional support and aim to answer your request as promptly as possible.
<br>
You can also post a problem on our "Support and Community Forums". We have a large active community who have experience in maintaining their Invision Board who may be able to give you a prompt reply - our support professionals also moderate these forums and
will read your posts. We do recommend that you make use of the search facility on the board to avoid posting problems that have already been posted - there is also a good chance that it's already been reported, discussed and solved.
<br>
<br>You may wish to consider our <b>"Priority Support"</b> option. A once only fee will cover you for all support requests for a period of one year (12 months).
<br>Priority support entitles you to the following benefits:
<ul>
<li>Your support tickets will be marked priority and only Invision Board administrators will have access to those tickets.
<li>You will be given 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>
</h
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Invision Install Guide: Help & FAQ</title>
<style>
BODY, TABLE { font-family: verdana, arial; font-size:12px; line-height:150% }
.title { background-image: url(tile_back.gif); font-family:arial; font-size:18px; color:white; font-weight:bold; height:40px }
.table1 { border:1px solid #999999 }
.table2 { border:1px dotted #999999 }
.menustrip { font-color:black; background-color:#EEEEEE; font-size:12px; height:24px }
a:link, a:visited, a:active { color:#000055 }
a:hover { color:#333377;text-decoration:underline }
.header { border-bottom:1px dashed #999999; font-family:Verdana, Arial; font-weight:bold; color:#4C77B6; font-size:20px; background-color:#FEFEFE; letter-spacing:-1px }
</style>
</head>
<body bgcolor="#FFFFFF" topmargin='5' leftmargin='0'>
<!-- Start content -->
<a name='top'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td align='center'>
<b>Sections:</b> <a href='help.html#install' target='bottom'>Installation Problems</a> | <a href='help.html#admin' target='bottom'>Admin CP Problems</a> | <a href='help.html#main' target='bottom'>Board Problems</a> | <a href='help.html#help' target='bottom'>Getting Further Help</a>
</td></tr>
</table>
<br>
<a name='install'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>Installation Problems</td>
</tr>
<tr>
<td align='left'>
<b>When I run the installer, I get a page of code.</b>
<br>
If when accessing the installer via your web browser you receive a page of code and not the installation start screen, this means that either PHP has
not been installed or has not been configured properly. Please consult with your web host to see if this is the case.
<br><br>
<b>I get an error like this 'access denied for user@localhost using password YES' when I submit the main form.</b>
<br>
If you receive this error from mySQL it means that either the mySQL database name, mySQL username, mySQL password or mySQL host information is wrong. Please double check the information you
entered making sure that passwords are typed correctly. In some cases, this information is case sensitive. If this error persists, please consult with your web host to check that the information
you have is correct.
<br><br>
<b>After installing, I get this error 'Warning: fopen("/.install.lock", "w") - Permission denied ...'</b>
<br>
After installing, Invision 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
from your server and only re-upload it if you wish to make a fresh install. You can then safely ignore this warning.
<br><br>
<b>When installing I get an error like this: 'WARNING! Could not locate 'conf_global.php'</b>
<br>
This error means that the installer could not "guess" the location of the file 'conf_global.php'. Make sure you have uploaded this file into the same directory that you
uploaded 'sm_install.php' into. If you have this file already uploaded and the CHMOD value has been set, then you can tell the installer where to look for this file by simply
opening 'sm_install.php' in your favourite text editor. Look near the top for "$root = "./";". Edit this to reflect your "real" path. Note, this is a path - not a URL, entering "http://www.domain.com" or similar will
result in an error. A path is literally the file path from the server root to the current directory (such as '/home/site/public_html/forums/'). More information is provided in the script near the top. When you have completed
the edit, simply save the file and re-upload to your server and re-run through your web browser.
</td></tr>
</table>
<br>
<a name='admin'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>Admin CP Problems</td>
</tr>
<tr>
<td align='left'>
<b>No matter what I do, I can't stay logged into the Admin CP.</b>
<br>
For extra security, the Admin CP checks your IP address as part of the admin session validation. In some cases your IP address will change with each page request (especially if you are using a dial up ISP). You can
stop the Admin CP checking your IP address which will solve the problem.
<br>To do this, open up "admin.php" in your text editor. Near the top of the script change <span style='color:red'>$check_ip = 1;</span> to <span style='color:red'>$check_ip = 0;</span>. Save the file and re-upload to your
server.
<br>Although there is no immediate security risk to doing this, you should not disclose your admin session ID to anyone or post the link you are using for that admin CP session to anyone.
<br><br>
<b>When I try to access the Admin CP, the page is completely blank</b>
<br>
This problem could be the result of a few things.<br>
Firstly, open up "admin.php" in a text editor and near the top change: <span style='color:red'>$use_gzip = 1;</span> to <span style='color:red'>$use_gzip = 0;</span>. Save the file and re-upload to your
server.
<br>
If that doesn't solve the problem, check the CHMOD values on the directories you created during the installation process. If in doubt, CHMOD them to 0777 and any directories contained within.
</td></tr>
</table>
<br>
<a name='main'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>General Board Problems</td>
</tr>
<tr>
<td align='left'>
<b>Every time I try to access a page on the forums it loads a blank page.</b>
<br>
Can you log into the Admin CP? If you do not know the url, enter the following into your web browser address bar <b>http://www.your-domain-here.com/forums/admin.php</b> (obviously using the correct URL to your board!).
<br>If the Admin CP loads first time, try the following:
<br>Click on "Board Settings" to expand the sub-menu. Click on "Basic Config". When the page has loaded, turn off the following: <b>Print HTTP headers?</b> and <b>DISABLE GZIP encoding?</b>. When complete, submit the form
and try to access your board again.
<br>
If it still loads a blank page, check the CHMOD values on the directories you created during the installation including any directories contained within. If in doubt, CHMOD to 0777.
<br><br>
<b>I am on a Windows server and I get an Internal Server Error when trying to access my board</b>
<br>
There is an option to disable the headers that Invision Power Board prints by default.
<br>Log into your Admin Control Panel, click on "Board Settings" to expand the sub-menu. Click on "Basic Config". When the page has loaded, turn off <b>Print HTTP headers?</b> and submit the form
and try to access your board again.
<br><br>
<b>I am on a Windows server and when I make a post I am taken to a blank page</b>
<br>
Some Windows based servers require a different HTTP protocol when redirecting HTTP requests, there is an option in the Admin Control Panel to overcome this.
<br>
Log into your Admin Control Panel, click on "Board Settings" to expand the sub-menu. Click on "Basic Config". Choose "Refresh (Windows Savvy) from the "Type of auto-redirect?" option. Submit the form.
</td></tr>
</table>
<br>
<a name='help'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>Getting further help</td>
</tr>
<tr>
<td align='left'>
If you have a problem outside the ones solved in this guide, then don't panic!<br>
We have a large team of trained support professionals that <b>will</b> be able to provide a solution to your problems.<br>
Your first stop would be to post a problem on 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>the <a href='http://www.invisionboard.com/?whyregister'>registration</a></b> option. A yearly fee will cover you for all support requests for a period of one year (12 months).
<br>Registration entitles you to the following benefits:
<ul>
<li> You will have lifetime access to the Invision Power Services Customer Service Center.
<li> Service Ticket access will allow you to submit technical tickets for our highly experienced staff to work with you. This means you will get private, one-on-one help without having to post on our support forums.
<li> Phone support inside the US and UK (toll-free in the US).
<li> Installation of Invision Power Board is included if you need this service (usually $35).
<li> Half-price upgrade installations upon request when new releases of Invision Power Board are available
<li> Discounts on Invision Power Board feature plug-ins</ul>
<br>
For more information on our registration service, please visit our <a href='http://www.invisionboard.com/support.cgi' 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>
@@ -1,304 +1,671 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Invision Install Guide: Installing</title>
<style>
BODY, TABLE { font-family: verdana, arial; font-size:12px; line-height:150% }
.title { background-image: url(tile_back.gif); font-family:arial; font-size:18px; color:white; font-weight:bold; height:40px }
.table1 { border:1px solid #999999 }
.table2 { border:1px dotted #999999 }
.menustrip { font-color:black; background-color:#EEEEEE; font-size:12px; height:24px }
a:link, a:visited, a:active { color:#000055 }
a:hover { color:#333377;text-decoration:underline }
.header { border-bottom:1px dashed #999999; font-family:Verdana, Arial; font-weight:bold; color:#4C77B6; font-size:20px; background-color:#FEFEFE; letter-spacing:-1px }
</style>
</head>
<body bgcolor="#FFFFFF" topmargin='5' leftmargin='0'>
<!-- Start content -->
<a name='top'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>Installing: Step 1 - Uploading</td>
</tr>
<tr>
<td align='left'>
<br>At this point, you should have the zip archive "unzipped" and the contents similar to those shown in the <a href='install.html#structure' target='bottom'>structure and CHMOD guide</a>. If you
do not have a similar structure, check to make sure you have your zip program preferences set to allow creation of directories and to preserve case and long filenames.
<br><br>
If you haven't done so already, create a new directory on your server named appropriately (if you wanted to access the forums via 'http://www.domain.com/forums/', create a directory called 'forums' in the
'public_html' or 'www' directory on your webserver.
<br><br>
Using your FTP client, move into the directory you wish to upload to (if you followed the above advice, move into the newly created 'forums' directory.)
<br><br>
Using your FTP client, create the following directories "archive_in", "archive_out", "html", "lang", "Skin", "sources", "ssi_templates", "style_images",
and "uploads" <span style='color:blue'>(TIP: If your FTP client supports "Drag n' Drop" which most modern clients do, you can save yourself some time and effort by
simply selecting all the files from the "unzipped" zip archive and drag them into your FTP client window, this will then copy all the files, creating the directories as it goes. If you choose
to do this, you can safely ignore most of the following instruction, just remember to CHMOD as outlined in the stucture and CHMOD guide).</span>
<br><br>
Once the directories have been created, CHMOD "archive_in", "archive_out" and "uploads" to 0755 (if you get permissions errors later on, you can CHMOD these to
"0777"). Now, upload the contents of the files in your local folders (from the zip file) into the corresponding directories you've just created on your server. Some folders will contain other
files and folders, upload them all - preserving the structure you have in your zip file (for example, upload the entire contents of the "html" folder on your computer to the "html" directory on the server).
<br><br>
Once you have finished uploading into the directories, upload the rest of the files "admin.php", "conf_global.php", "conf_mime_types.php", "index.php",
"install_templates.txt", "sm_install.php", "ssi.php" to the same place as you created the directories earlier (into "forums" for our example).
<br>
CHMOD "conf_global.php" to 0666 (if you get permission denied errors later on, you can CHMOD this to 0777).
<br><br>
That's it, the hard work is now done! You can proceed to the next step.
</td>
</tr>
</table>
<br>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>Installing: Step 2 - Using the Installer</td>
</tr>
<tr>
<td align='left'>
An installer is provided to assist you in entering the information Invision Board needs to connect to your mySQL database and to create your new
administrators account.
<br><br>
Run the "sm_install.php" file through your web browser by entering the URL to it into your browser address bar (if you have followed our example, type in
<b>http://www.domain.com/forums/sm_install.php</b>, naturally subsituting 'domain.com' for your web address.)
<br><br>
You will be presented with a short information screen, if you receive an error telling you that "conf_global.php" does not have suitable permissions, CHMOD "conf_global.php" to
0777 via your FTP client.
<br><br>
Clicking on proceed will present you with a simple information form. You will need to know your mySQL username and password at this point. If you do not know it, please ask your web host - in most
cases it is different from the FTP log in information.
<br><br>The form is very straightfoward, with only the following points needing closer examination. If you do not know what your mySQL "host" is, try "localhost" (without the quotes). if the mySQL server
is on the same server as your website (and in most cases it is) this will suffice.
<br>
If you have created a new database for Invision Board, or wish to use an existing database, enter the name of the database in the appropriate field.<br><br>Unless you intend to install multiple copies of
Invision Board into the same database, you can leave the "table prefix" blank. If you do not have a mySQL password (if you are installing Invision Board on your local server) this can be left blank.
<br>
After submitting the form, you will be informed of any errors - if you do get an error similar to "permission denied for user@localhost using password YES" - the chances are you have either your mySQL username, mySQL password
or mySQL database name wrong. Consult with your webhost for the correct information and resubmit the form.
<br><br>
If the installation was successful, you will receive notification to that effect.
<br>
Follow the link to finish off the installation and to log into your newly installed board. When the log in page loads, enter in the information you chose for your administrator account.
<br>
Once you are logged into the board, click on the "Admin CP" link found in the navigation bar to access the Administration Control Panel.
</td>
</tr>
</table>
<br>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>Installing: Step 3 - Admin CP First Steps</td>
</tr>
<tr>
<td align='left'>
The Invision Board administration control panel is a very sophisticated tool. This is where you can create new categories and forums for your board, as well
as set bad word filters, edit emoticons, change the board colours and so on. We recommend you browse the documentation at <a href='http://www.invisionboard.com/documentation.cgi'>Invision Board</a> before getting attempting some of the more complex operations.
<br><br>
<b>Lets get stuck in!</b>
<br>
The first thing you will need to do is remove the "sm_install.php" file from your server; although Invision Board locks the installer after a successful install, it's always a good idea to remove the installer as re-running it
<b>will delete your database tables</b>.
<br><br>
<b>Before anyone can post, we need some forums!</b>
<br>
If you wish to get stuck in straight away, now would be a good time to create some forums for your members to post in.
<br>
In the Administrators CP, click on the "Forum Control" expanding menu in the left menu frame. When it loads, click on "New Category".
<br>If your website was about computers, you could enter "PC Software" as the category name. Submit the form by clicking the button at the bottom of the page.
<br>Now we have a category to "group" the forums, lets create a forum or two.
<br><br>Click on "New Forum" found in the same expandable menu. Choose "Normal Forum" from the drop down box and proceed.
<br>There are many options here, which are outside the scope of this guide, for more information see the documentation at <a href='http://www.invisionboard.com/documentation.cgi'>Invision Board</a>. We can
create a new forum without knowing what all the options do. Using our example, you might want a forum dedicated to "Games" - if so, enter "Games" as the forum title, and a suitable description for the new forum. When you have done this
scroll down and submit the form by clicking the button at the bottom of the page.
<br><br>
If you now go back to your board, and refresh the page, you will see the new category and forum. Try a little test post to make sure the system is running perfectly.
<br><br>
Congratulations! You have installed and set up your new Invision Board. If you ran into trouble, please click on the "Help!" link in the top menu bar for the FAQ and how to get support.
<br><br>
<i>Thank you for supporting Invision Board</i>
</td>
</tr>
</table>
<br>
<br>
<br>
<br>
<a name='structure'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>File Structure and CHMOD values</td>
</tr>
<tr>
<td align='left'>Below is a table showing the file structure and recommended CHMOD values for the file (and in the case of directories, the CHMOD
values for the contents of the directories).<br>The CHMOD values are not needed for Windows based servers and can be safely ignored. The CHMOD
values may vary from system to system, if in doubt, CHMOD everything to 0777.<br>Most systems will not need to CHMOD everything to install successfully,
use the table below to determine what needs CHMOD'ding for installation, and what can be left until later.
</td>
</tr>
<tr>
<td align='center'>
<table width='100%' align='center' cellpadding='0' cellspacing='0' bgcolor='#BCBCBC'>
<tr>
<td>
<table width='100%' align='center' cellpadding='4' cellspacing='1'>
<tr>
<td width='5%' bgcolor='#EEEEEE' style='font-size:10px'>&nbsp;</td>
<td width='25%' bgcolor='#EEEEEE' style='font-size:10px'><b>File/Folder Name</b></td>
<td width='20%' bgcolor='#EEEEEE' style='font-size:10px' align='center'><b>Item CHMOD Value</b></td>
<td width='30%' bgcolor='#EEEEEE' style='font-size:10px' align='center'><b>Contents CHMOD Value</b></td>
<td width='15%' bgcolor='#EEEEEE' style='font-size:10px' align='center'><b>CHMOD for install</b></td>
<td width='15%' bgcolor='#EEEEEE' style='font-size:10px' align='center'><b>Can CHMOD later</b></td>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='file.gif' border='0' alt='PHP file'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'>admin.php</td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>archive_in</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'><span style='color:red'><b>X</b></span></a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>archive_out</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'><span style='color:red'><b>X</b></span></a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='file.gif' border='0' alt='PHP file'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'>conf_global.php</td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0666</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'><span style='color:red'><b>X</b></span></a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='file.gif' border='0' alt='PHP file'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'>conf_mime_types.php</td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>html</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='file.gif' border='0' alt='PHP file'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'>index.php</td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='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'>-</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'>Skin</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'><span style='color:red'><b>X</b></span></a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='file.gif' border='0' alt='PHP file'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'>sm_install.php</td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>sources</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='file.gif' border='0' alt='PHP file'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'>ssi.php</td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>ssi_templates</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>style_images</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'><span style='color:red'><b>X</b></span></a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>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>
</h
<!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
simply selecting all the files from the "unzipped" zip archive and drag them into your FTP client window, this will then copy all the files, creating the directories as it goes. If you choose
to do this, you can safely ignore most of the following instruction, just remember to CHMOD as outlined in the stucture and CHMOD guide).</span>
<br><br>
Once the directories have been created, CHMOD "archive_in", "archive_out" and "uploads" to 0755 (if you get permissions errors later on, you can CHMOD these to
"0777"). Now, upload the contents of the files in your local folders (from the zip file) into the corresponding directories you've just created on your server. Some folders will contain other
files and folders, upload them all - preserving the structure you have in your zip file (for example, upload the entire contents of the "html" folder on your computer to the "html" directory on the server).
<br><br>
Once you have finished uploading into the directories, upload the rest of the files "admin.php", "conf_global.php", "conf_mime_types.php", "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).
<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.)
<br><br>
You will be presented with a short information screen, if you receive an error telling you that "conf_global.php" does not have suitable permissions, CHMOD "conf_global.php" to
0777 via your FTP client.
<br><br>
Clicking on proceed will present you with a simple information form. You will need to know your mySQL username and password at this point. If you do not know it, please ask your web host - in most
cases it is different from the FTP log in information.
<br><br>The form is very straightfoward, with only the following points needing closer examination. If you do not know what your mySQL "host" is, try "localhost" (without the quotes). if the mySQL server
is on the same server as your website (and in most cases it is) this will suffice.
<br>
If you have created a new database for Invision 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>
</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
<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='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'>-</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'>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='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'><span style='color:red'><b>X</b></span></a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='file.gif' border='0' alt='PHP file'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'>sm_install.php</td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>sources</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='file.gif' border='0' alt='PHP file'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'>ssi.php</td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>ssi_templates</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>style_images</span></td>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
<td align='center' valign='middle' bgcolor='#FFFFFF'><span style='color:red'><b>X</b></span></a>
</tr>
<tr>
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>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>
@@ -1,31 +1,62 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Invision Board Menu Bar</title>
<style>
BODY, TABLE { font-family: arial, verdana; font-size:11px }
.title { background-image: url(tile_back.gif); font-family:arial; font-size:18px; color:white; font-weight:bold; height:40px }
.table1 { border:1px solid #999999 }
.menustrip { font-color:black; background-color:#EEEEEE; font-size:12px; height:24px; letter-spacing:1px }
a:link, a:visited, a:active { color:#000055 }
a:hover { color:#333377;text-decoration:underline }
</style>
</head>
<body bgcolor="#FFFFFF" topmargin='5' leftmargin='0'>
<table width='95%' align='center' cellpadding='4' cellspacing='0' class='table1'>
<tr>
<td class='title' align='left'>Invision Board Installation and Help Guide</td>
</tr>
<tr>
<td class='menustrip' align='center'>[ <b><a href='welcome.html#welcome' target='bottom'>Welcome</a></b> ] :: [ <b><a href='welcome.html#require' target='bottom'>Requirements</a></b> ] :: [ <b><a href='install.html#top' target='bottom'>Installing</a></b> ] :: [ <b><a href='install.html#structure' target='bottom'>Structure & CHMOD</a></b> ] :: [ <b><a href='help.html#top' target='bottom'>Help & FAQ</a></b> ]</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Invision Board Menu Bar</title>
<style>
BODY, TABLE { font-family: arial, verdana; font-size:11px }
.title { background-image: url(tile_back.gif); font-family:arial; font-size:18px; color:white; font-weight:bold; height:40px }
.table1 { border:1px solid #999999 }
.menustrip { font-color:black; background-color:#EEEEEE; font-size:12px; height:24px; letter-spacing:1px }
a:link, a:visited, a:active { color:#000055 }
a:hover { color:#333377;text-decoration:underline }
</style>
</head>
<body bgcolor="#FFFFFF" topmargin='5' leftmargin='0'>
<table width='95%' align='center' cellpadding='4' cellspacing='0' class='table1'>
<tr>
<td class='title' align='left'>Invision Board Installation and Help Guide</td>
</tr>
<tr>
<td class='menustrip' align='center'>[ <b><a href='welcome.html#welcome' target='bottom'>Welcome</a></b> ] :: [ <b><a href='welcome.html#require' target='bottom'>Requirements</a></b> ] :: [ <b><a href='install.html#top' target='bottom'>Installing</a></b> ] :: [ <b><a href='install.html#structure' target='bottom'>Structure & CHMOD</a></b> ] :: [ <b><a href='help.html#top' target='bottom'>Help & FAQ</a></b> ]</td>
</tr>
</table>
</body>
</html>
@@ -3,7 +3,7 @@
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Invision Install Guide: Welcome</title>
<title>Invision Power Board Install Guide: Welcome</title>
<style>
BODY, TABLE { font-family: verdana, arial; font-size:12px; line-height:150% }
.title { background-image: url(tile_back.gif); font-family:arial; font-size:18px; color:white; font-weight:bold; height:40px }
@@ -24,27 +24,27 @@
<a name='welcome'></a>
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td class='header' align='left'>Welcome to Invision Board!</td>
<td class='header' align='left'>Welcome to Invision Power Board!</td>
</tr>
<tr>
<td align='left'>
<br>Welcome to Invision Board, a fast, efficient, scalable community solution written in PHP and using mySQL for database storage.
<br>Welcome to Invision Power Board, a fast, efficient, scalable community solution written in PHP and using MySQL for database storage.
<br><br>
This guide will help you through the installation process and get you on your way to setting up your own Invision Board.
This guide will help you through the installation process and get you on your way to setting up your own Invision Power Board.
<br>
Installation is very straight forward, only taking about 15 minutes from uploading the files to logging into your administration center.
<br>
<br>
You will need an FTP (File Transfer Protocol) client, if you do not have one you can download <a href='http://www.smartftp.com' target='_blank'>Smart FTP for Windows</a> or
<a href='http://www.interarchy.com' target='_blank'>InterArchy for Macintosh</a>. At the time of writing both websites have freeware or free trial versions available for download.
<br>You do not need an indepth knowledge of PHP programming to install Invision Board, but a working knowledge of FTP functions is a plus.
<br>You do not need an indepth knowledge of PHP programming to install Invision Power Board, but a working knowledge of FTP functions is a plus.
<br>
<br>This guide assumes that you have successfully downloaded the latest release from <a href='http://www.invisionboard.com' target='_blank'>Invision Board</a> and have the Zip file "unzipped" and ready to go.
<br>This guide assumes that you have successfully downloaded the latest release from <a href='http://www.invisionboard.com' target='_blank'>Invision Power Board</a> and have the Zip file "unzipped" and ready to go.
<br>The instructions will term the zip file you downloaded as "the zip archive", the directories created by the unzipping process as "the local folders" and the directories on your website as
"website directories" - this is to prevent confusion.
<br><br>
<b>If you don't know your FTP from your PHP and your CHMOD from your CHOWN, then you might wish to consider our Installation Service. For a low cost, once only fee
- one of our installation professionals will install and set up your board for you. For more information, please visit our <a href='http://www.invisionboard.com/?services' target='_blank'>advanced services</a> page.</b>
- one of our installation professionals will install and set up your board for you. For more information, please visit our <a href='http://www.invisionboard.com/support.cgi' target='_blank'>advanced services</a> page.</b>
</td></tr>
</table>
@@ -62,11 +62,11 @@
You must have a webserver that has PHP 4.0.3 (or better) and mySQL 3.22 (or better) installed. If you are unsure whether your server has these
programs installed, please check with your web host now. If you are capable, you can always <a href='http://www.php.net' target='_blank'>download PHP</a>
and <a href='http://www.mysql.com' target='blank'>download mySQL</a> and install it yourself. 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 Board works best on an Apache server, and is Apache 1 and Apache 2 savvy.
<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 Board supports table prefixes to prevent tables being overwritten.
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.
<br>If you are unsure on any of these points, please ask your webhost before proceeding.
@@ -81,7 +81,7 @@
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
<tr>
<td align='center' class='copyright'>
Invision Board, Invision Board Installation Guide &copy; 2002 <a href='http://www.invisionpower' target='_blank'>Invision Power Services</a>
Invision Power Board, Invision Power Board Installation Guide &copy; 2002 <a href='http://www.invisionpower' target='_blank'>Invision Power Services</a>
</td>
</tr>
</table>
@@ -89,4 +89,4 @@
<!-- End content -->
</body>
</h
</html>
@@ -1,16 +1,32 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Invision Board Installation</title>
</head>
<frameset rows='90, *' frameborder='no' border='0' framespacing='0'>
<frame src="data/menu.html" name="topmenu" longdesc="Top%20Menu%20Bar" scrolling="no" noresize>
<frame src="data/welcome.html" name="bottom" longdesc="Bottom%20Bar" scrolling="auto" noresize>
</frameset>
<noframes>
Sorry, you need a frames enabled browser to view this page- and why are you still living in the dark ages,
Internet Explorer 2 isn't cool anymore!
</noframes>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Invision Board Installation</title>
</head>
<frameset rows='90, *' frameborder='no' border='0' framespacing='0'>
<frame src="data/menu.html" name="topmenu" longdesc="Top%20Menu%20Bar" scrolling="no" noresize>
<frame src="data/welcome.html" name="bottom" longdesc="Bottom%20Bar" scrolling="auto" noresize>
</frameset>
<noframes>
Sorry, you need a frames enabled browser to view this page- and why are you still living in the dark ages,
Internet Explorer 2 isn't cool anymore!
</noframes>
</html>
@@ -1,177 +1,361 @@
<!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 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_v101.html#intro'>Introduction</a> | <a href='upgrade_v101.html#upgrade'>Upgrading</a> | <a href='upgrade_v101.html#main'><b>HELP!!</b></a> | <a href='upgrade_v101.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.0.x to v1.1</b>
<br>
To upgrade your existing board from Invision Board v1.0.x to Invision Board v1.1, 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 Upload Permissions</b>
<br>
The skinning system in Invision Board v1.1 is radically different from v1. This change brings many enhancements such as full online
template editing and a more powerful macro set function. These changes do mean that any existing skins will not be compatible with
v1.1. The upgrade script will change all existing skins to "hidden" and install a new default set for you.
<br>Your members will also be updated, moving them from any existing skin choices to the new default skin set. It's also worth noting that
the upload permissions system has changed. The installer will remove all existing forum upload permissions to ensure that
no error occurs after the upgrade.
</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.
<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>index.php
<br>install_templates.txt
<br>show.php
<br>upgrade4.php</span>
<br><br>Upload the directories (and any contents / sub directories):
<br>
<span style='color:red'>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 'upgrade4.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 upgrade4.php script (example: www.board.com/forums/upgrade4.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 "IBF Default Set (NEW)" 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 to open a new support ticket. The FREE ticket system is available from the <a href='http://www.invisionboard.com/' target='_blank'>Invision Board</a> web site. When starting a new ticket, please
be as thorough as you can in your error reporting, it will save our team time in responding to you. We pride ourselves on quality, professional support and aim to answer your request as promptly as possible.
<br>
You can also post a problem on our "Support and Community Forums". We have a large active community who have experience in maintaining their Invision Board who may be able to give you a prompt reply - our support professionals also moderate these forums and
will read your posts. We do recommend that you make use of the search facility on the board to avoid posting problems that have already been posted - there is also a good chance that it's already been reported, discussed and solved.
<br>
<br>You may wish to consider our <b>"Priority Support"</b> option. A once only fee will cover you for all support requests for a period of one year (12 months).
<br>Priority support entitles you to the following benefits:
<ul>
<li>Your support tickets will be marked priority and only Invision Board administrators will have access to those tickets.
<li>You will be given 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>
</h
<!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>
@@ -1,86 +1,262 @@
<?php
/*
+--------------------------------------------------------------------------
| IBFORUMS v1 UPGRADE FROM BETA3 TO RC1
| ========================================
| by Matthew Mecham and David Baxter
| (c) 2001,2002 IBForums
| http://www.ibforums.com
| ========================================
| Web: http://www.ibforums.com
| Email: phpboards@ibforums.com
| Licence Info: phpib-licence@ibforums.com
+---------------------------------------------------------------------------
|
| > Wrapper script
| > Script written by Matt Mecham
| > Date started: 14th February 2002
|
+--------------------------------------------------------------------------
*/
//-----------------------------------------------
// 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();
$DB->query("ALTER TABLE ibf_members CHANGE time_offset time_offset VARCHAR(10) DEFAULT NULL");
$DB->query("ALTER TABLE ibf_members CHANGE skin skin SMALLINT(5) DEFAULT NULL");
$DB->query("ALTER TABLE ibf_topics CHANGE forum_id forum_id SMALLINT (5) DEFAULT '0' NOT NULL");
$DB->query("ALTER TABLE ibf_members ADD dst_in_use TINYINT (1) DEFAULT '0'");
echo("<html><body><b>Running Queries:</b><br>ALTER TABLE ibf_members ADD dst_in_use TINYINT (1) DEFAULT '0'<br>ALTER TABLE ibf_topics CHANGE forum_id forum_id SMALLINT (5) DEFAULT '0' NOT NULL<br>ALTER TABLE ibf_members CHANGE time_offset time_offset VARCHAR(10) DEFAULT NULL<br>ALTER TABLE ibf_members CHANGE skin skin SMALLINT(5) DEFAULT NULL<br><br>Upgrade complete, you may now remove this file</body></html>");
exit();
//+-------------------------------------------------
// GLOBAL ROUTINES
//+-------------------------------------------------
function fatal_error($message="", $help="") {
echo("$message<br><br>$help");
exit;
}
?>
<?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
@@ -0,0 +1,58 @@
$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);
@@ -0,0 +1,123 @@
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
@@ -0,0 +1,760 @@
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
@@ -0,0 +1,112 @@
<?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>
@@ -0,0 +1,355 @@
<?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
}
}
?>
@@ -0,0 +1,176 @@
<?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 ) );
}
}
?>
@@ -0,0 +1,29 @@
<?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();
?>
@@ -0,0 +1,284 @@
<?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));
}
?>
+236
View File
@@ -0,0 +1,236 @@
<?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;
}
?>
@@ -0,0 +1,47 @@
Invision Power Dynamic Lite
---------------------------
Installation Snyopsis
.....................
Open up index.php, edit the variables at the top save and upload to your root public_html / www folder.
INSTALLATION
------------
This guide assumes that you have installed IPB in /forums/ and wish for the portal to be the first page your visitors see.
Open up index.php and edit the path to where the forums directory is:
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" );
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
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".
That's it, you're all done!
File diff suppressed because it is too large. Load diff
-89
View File
@@ -1,89 +0,0 @@
Upgrading from RC1 to RC2
-------------------------
UPGRADE SCRIPT
--------------
Upload the script 'upgade3.php' to your root IBF installation (the same directory that index.php is in).
Run it via your web browser by typing the URL to the script in the address bar.
When the script has completed, remove it from your server.
Files to update
----------------
index.php
admin.php
skin/s1/skin_global.php
skin/s1/skin_online.php
skin/s1/skin_ucp.php
skin/s1/skin_msg.php
lang/en/email_content.php
lang/en/lang_mod.php
lang/en/lang_msg.php
lang/en/lang_search.php
lang/en/lang_ucp.php
sources/Admin/ad_forums.php
sources/Admin/ad_groups.php
sources/Admin/ad_languages.php
sources/Admin/ad_settings.php
sources/Admin/ad_skin_import.php
sources/Admin/admin_skin.php
sources/Admin/admin_functions.php
sources/lib/emailer.php
sources/lib/usercp_functions.php
sources/lib/post_parser.php
sources/lib/post_poll.php
sources/Boards.php
sources/functions.php
sources/Memberlist.php
sources/Messenger.php
sources/Online.php
sources/Post.php
sources/Search.php
sources/Topics.php
sources/Usercp.php
Bugs Fixed
----------
Moderator viewing IP addresses bug fix (credit: Josh)
ACP:User Groups: List users in group error on guests and validating groups fix
Post uploads register_globals off bug fix (PHP 4.2+ fix)
Avatar uploads register_globals off bug fix (PHP 4.2+ fix)
ASCII code in emails removed
Next newest/oldest links picking moved topics bug fix
UserCP email address change email subject empty bug fix
Editing poll "no new replies" language fix
Fix to stop silly people removing all language packs
"bad arguments to implode" when importing skin packs on old PHP versions fix
Ability to set number of replies to be "hot" bug fix
Page numbers "missing" from online page at the bottom fix
Changed: Move topics with attachments show attachment regardless of forum settings
Changed: Date generation accounts for Daylight Savings Time
Messenger: Sent items entries show wrong profile when clicking on sent to name
Banned members receive blank page w/error bug fix
Messenger: Bugs in archiving messages fixed
Single quote in redirect screen title escaped bug fix
Unable to use FTP:// in an image tag fix
Redirect screens not centered bug fix
Correct sub cat new post icon used in boards view
Correct last post date used with sub categories
Using three spaces to create a blank post bug fix
Topic Tracker post icon bug fix
Search: Highlighted words fixer upper
Rouge spaces when editing post with quotes fix
DB changes (upgrade3.php will do these changes for you, shown here
for those who want to manually update, etc)
ALTER TABLE ibf_topics CHANGE forum_id forum_id SMALLINT (5) DEFAULT '0' NOT NULL
ALTER TABLE ibf_members ADD dst_in_use TINYINT (1) DEFAULT '0'
-41
View File
@@ -1,41 +0,0 @@
Upgrading from RC1 to FINAL (s6)
-------------------------
Files to update
----------------
index.php
admin.php
sources/Admin/ad_groups.php
sources/Admin/ad_settings.php
sources/Admin/ad_templates.php
sources/Driver/mySQL.php
sources/lib/usercp_functions.php
sources/lib/post_new_post.php
sources/lib/post_poll.php
sources/lib/post_reply_post.php
sources/misc/stats.php
sources/Boards.php
sources/Post.php
sources/Messenger.php
sources/mod_cp.php
Bugs Fixed
----------
Marking all as read in a subcat forum doesn't update board index post marker fix
Post & Avatar uploads (safe mode w/open basedir) bug fix
ACP: Date and times settings description typo fix
Read reciept not containing date bug fix
Viewing "The Moderating Team" displays mods in forums user cannot see fix
ACP max width/height of flash movies missing fix
Post new topic: Stop shouting bug fix
-59
View File
@@ -1,59 +0,0 @@
Upgrading from BETA 1 to BETA 2
-------------------------------
Simply upload the following files from this zip archive (found in the 'uploads' directory) to
your server, replacing them.
admin.php
index.php
lang/en/lang_search.php
Skin/s1/skin_search.php
style_templates/1/skin_search.html
sources/Admin/*.php (this means all the files in the Admin directory)
sources/lib/emailer.php
sources/lib/post_parser.php
sources/lib/usercp_functions.php
sources/lib/post_q_reply_post.php
sources/misc/forward_page.php
sources/Boards.php
sources/functions.php
sources/Messenger.php
sources/Moderate.php
sources/Profile.php
sources/Register.php
sources/Search.php
sources/Usercp.php
Bugs Fixed
----------
PHP 4.0.3 regex errors ($1 $2 $3 errors)
mysql 3.23.22 query errors (emoticons and bad words)
No forum == no profile error
Forward page link generation error
No languages showing in ACP
Wrong topics/posts showing in ACP
Wrong number of members counted via reset stats in ACP
AOL/Yahoo input wrongly labelled as incorrect
Avatar/Img extensions wrongly labelled as incorrect (PHP 4.0.3)
Logged in as incorrect user fixed
Moderators can't close/open own topics
HTML in signatures / posts fixed
Last registered info not updating via ACP approval
Editing quoted post not reflected in preview
Guests not seeing signatures/avatars and images fix
Searching in password protected forums when not logged into them fixed
Search "highlite" attribute not passing to page spans
Added: Ability to turn off GZIP encoding in ACP and on board
Added: Ability to use a windows savvy auto redirect header
-113
View File
@@ -1,113 +0,0 @@
Upgrading from BETA 2 to BETA 3
-------------------------------
STEP ONE:
---------
You must move your post icons from the "PostIcons" directory into the root images
directory.
Example:
If your post icons are in 'style_images/1/PostIcons' move them to 'style_images/1/'
##################################################################
STEP TWO:
---------
Upload the script 'upgade1.php' to your root IBF installation (the same directory that index.php is in).
Run it via your webbrowser. When the script has completed, remove it from your server
##################################################################
STEP THREE:
-----------
Simply upload the following files from this zip archive (found in the 'uploads' directory) to
your server, replacing them.
Files to update
----------------
index.php
admin.php
lang/en/lang_global.php
lang/en/lang_ucp.php
lang/en/lang_post.php
Skin/s1/skin_ucp.php
Skin/s1/skin_post.php
Skin/s1/skin_boards.php (HTML fix)
sources/Admin/ad_forums.php
sources/Admin/ad_member.php
sources/Admin/ad_settings.php
sources/Admin/ad_templates.php
sources/Admin/ad_imagemacros.php
sources/misc/attach.php
sources/misc/contact_member.php
sources/misc/forward_page.php
sources/misc/print_page.php
sources/misc/stats.php
sources/Login.php
sources/Forums.php
sources/functions.php
sources/Memberlist.php
sources/Moderate.php
sources/mod_cp.php
sources/Online.php
sources/Profile.php
sources/Search.php
sources/Topics.php
sources/Usercp.php
sources/lib/*.* (All files)
sources/Driver/mySQL.php
Bugs Fixed
----------
HTML not allowed in forum descriptions
Time zone problems fixed
Mulitple categories showing up when position duplicated
Sub forums not showing (PHP 4.0.3 fix only)
DB query count showing (PHP 4.0.3 fix only)
UserCP: wrong number of closing table tags called
Wrong messenger folders created when pre-reg via ACP
GZIP status wrongly shown
Custom member title not showing in UCP
AIM console breaks on AIM with spaces
Resynch forum counts wrong
Added: Ability to hide the session id in links
Reworked session management
HTML bug fixes
Editing posts with embedded tags
Forum log in cookies not being removed on log out
JS check added for empty messenger titles
Template tags parsing in preview bug fix
Post icon not updating in topic when first post edited
Languages not shown when forwarding topics
Topic images still showing when turned off from UCP
Wrong filename used when attempting to download files sent via upload
Links to moved topics not removed when topic deleted.
Search not returning all results bug fix
Timezones with 30min increments fix
URLs that don't begin with http:// show HTML code in edits
Wrong posts showing up in MCP post queues
Wrong reply count showing when approving moderated posts
Safe mode "catch" for creating/removing images and macros
Safe mode "catch" for creating/removing and editing templates
Viewing Profile: users time not updated with board offsets
Searching for username w/exact match returns matches inc. partial
Uploaded avatars not changing dimensions
Clicking "delete all cookies" creates new guest sessions fixed
Admins that are global moderators showing in both sections in 'View Moderating Team'
Sub categories not working on some mySQL versions fix
Print Page: Incorrect tag parsing
Print Page: Not all topics shown
-51
View File
@@ -1,51 +0,0 @@
Upgrading from BETA 3 to RC1
----------------------------
UPGRADE SCRIPT
--------------
Upload the script 'upgade2.php' to your root IBF installation (the same directory that index.php is in).
Run it via your web browser by typing the URL to the script in the address bar.
When the script has completed, remove it from your server.
Files to update
----------------
index.php
admin.php
Skin/s1/skin_ucp.php
sources/Admin/ad_forums.php
sources/Admin/ad_settings.php
sources/lib/post_parser.php
sources/Boards.php
sources/functions.php
sources/Forums.php
sources/mod_cp.php
sources/Profile.php
sources/Search.php
Bugs Fixed
----------
ACP spelling error on log in
Personal Photo field removed
Wrong tool bar tip for the HTML button (yes, we are getting picky aren't we)
Forum rules being switched off when editing a forums settings
Tighter control on forum and topic IDs
Wrong post marker icon showing in sub cat forums
Links auto parse even when IBF Code is switched off
Skins not remaining hidden if they have an ID of '0'
Mass move/prune fails when choosing "any type of topic"
Search enabled even if member group permission denied
Profile viewing enabled even if member group permission denied
Addition: ability to reset Most Online data via ACP
Multiple guest sessions created if IP address changes often
+141
View File
@@ -0,0 +1,141 @@
<html>
<head><title>Invision Power Board Welcome</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 Invision Power Board 1.3 Final</h1>
Welcome to Invision Power Board, a fast, efficient, scalable community solution written in PHP and using MySQL for database storage.
<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
<a href='Documentation/Installation%20Guide/install_guide.html'>installation guide</a> to get your board installated and configured.
<br /><br />
<h2>Updating your IPB</h2>
If you're updating your IPB, then please do the following:
<ul>
<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.
</ul>
</td>
</tr>
</table>
<br />
<a name='changes'></a>
<table align="center" width="750" cellpadding="15" cellspacing="0" bgcolor='#FFFFF' style='border:1px solid #000'>
<tr>
<td align='left'>
<h2>Changed files for this release</h2>
Please note that these files are only relevant to update from the last release. If you are updating from an older version,
please visit our website for more information.
<br /><br />
<b>Source Files</b>
<ul>
<li><b>index.php</b> (very important)</li>
<li><b>admin.php</b> (very important)</li>
<li>sources/<span style="color:blue">Admin</span>/ad_member.php </li><li>sources/<span style="color:blue">Admin</span>/ad_settings.php </li><li>sources/<span style="color:blue">lib</span>/post_parser.php </li><li>sources/Login.php </li><li>sources/mod_cp.php </li>
</ul>
<b>Language Files</b>
<ul>
</ul>
<b>Other Files</b>
<ul>
</ul>
<br />
<span style='font-size:10px'>* Denotes a new file</span>
</td>
</tr>
</table>
<br />
<table align="center" width="750" cellpadding="15" cellspacing="0" bgcolor='#FFFFF' style='border:1px solid #000'>
<tr>
<td align='left'>
<h2>Bug fixes for this release</h2>
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=101515'>#101515</a> Pagination incorrect in Mod CP when using IP address tools</li><li><a href='http://forums.invisionpower.com/index.php?showtopic=101569'>#101569</a> Integ msg edit function missing in ACP / Edit Member</li><li><a href='http://forums.invisionpower.com/index.php?showtopic=101728'>#101728</a> Some emoticons showing when using [URL] tags</li><li><a href='http://forums.invisionpower.com/index.php?showtopic=101879'>#101879</a> Pipe in username causes problem when logging into ACP</li><li><a href='http://forums.invisionpower.com/index.php?showtopic=102092'>#102092</a> PHP notice when logging out</li>
</ul>
</td>
</tr>
</table>
</body>
</html>
-1
View File
@@ -1 +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 }Line truncated
-1
View File
@@ -1 +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_attachments ( id bigint(20) NOT NULL auto_increment, mime_type varchar(128) default NULL, file_name varchar(64) default NULL, PRIMARY KEY (id) ); CREATE TABLE ibf_badwords ( wid int(3) NOT NULL auto_increment, type varchar(250) NOT NULL default '', swop varchar(250) default NULL, m_exact tinyint(1) default '0', PRIMARY KEY (wid) ); CREATE TABLE ibf_calendar_events ( eventid bigint(20) NOT NULL auto_increment, userid bigint(20) 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', 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 bigint(20) NOT NULL auto_increment, contact_id varchar(32) NOT NULL default '', member_id varchar(32) NOT NULL default '', contact_name varchar(32) NOT NULL default '', allow_msg tinyint(1) default NULL, contact_desc varchar(50) default NULL, PRIMARY KEY (id) ); CREATE TABLE ibf_css ( cssid int(10) NOT NULL auto_increment, css_name varchar(128) NOT NULL default '', css_text text, css_comments text, PRIMARY KEY (cssid) ); CREATE TABLE ibf_emoticons ( id smallint(3) NOT NULL auto_increment, typed varchar(32) NOT NULL default '', image varchar(128) NOT NULL default '', clickable smallint(2) NOT NULL default '1', PRIMARY KEY (id) ); CREATE TABLE ibf_faq ( id bigint(20) NOT NULL auto_increment, title varchar(128) NOT NULL default '', text text, description text NOT NULL, PRIMARY KEY (id) ); CREATE TABLE ibf_forum_tracker ( frid bigint(20) NOT NULL auto_increment, member_id varchar(32) NOT NULL default '', forum_id int(10) 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 int(10) default NULL, last_poster_name varchar(32) default NULL, name varchar(128) NOT NULL default '', description text, position tinyint(2) default NULL, use_ibc tinyint(1) default NULL, use_html tinyint(1) default NULL, status varchar(10) default NULL, start_perms varchar(32) default NULL, reply_perms varchar(32) default NULL, read_perms varchar(32) default NULL, 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', 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 tinyinLine truncated
+1
View File
@@ -0,0 +1 @@
<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>␍
+293 -236
View File
@@ -1,237 +1,294 @@
<?php
class skin_boards {
function stats_header() {
global $ibforums;
return <<<EOF
<!-- Board Stats -->
<!--IBF.QUICK_LOG_IN-->
<br>
<table width="<{tbl_width}>" align="center" border="0" cellspacing="4" cellpadding="0">
<tr>
<td align='center'><a href='{$ibforums->base_url}&act=Stats&CODE=leaders'>{$ibforums->lang['sm_forum_leaders']}</a> |
<a href='{$ibforums->base_url}&act=Search&CODE=getactive'>{$ibforums->lang['sm_todays_posts']}</a> |
<a href='{$ibforums->base_url}&act=Stats'>{$ibforums->lang['sm_today_posters']}</a> |
<a href='{$ibforums->base_url}&act=Members&max_results=10&sort_key=posts&sort_order=desc'>{$ibforums->lang['sm_all_posters']}</a></td>
</tr>
</table>
<br>
<table cellpadding='2' width='<{tbl_width}>' align='center' class='solidborder'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' border='0' width='100%' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td class='titlemedium' colspan='2'>{$ibforums->lang['board_stats']}</td>
</tr>
EOF;
}
function ActiveUsers($active) {
global $ibforums;
return <<<EOF
<tr>
<td class='category' colspan='2'>$active[TOTAL] {$ibforums->lang['active_users']}</td>
</tr>
<tr>
<td width="5%" class='forum1'><{F_ACTIVE}></td>
<td class='forum2' width='95%'><b>{$active[GUESTS]}</b> {$ibforums->lang['guests']}, <b>$active[MEMBERS]</b> {$ibforums->lang['public_members']} <b>$active[ANON]</b> {$ibforums->lang['anon_members']} {$active[LINK]}<br>{$active[NAMES]}</td>
</tr>
EOF;
}
function ShowStats($text) {
global $ibforums;
return <<<EOF
<tr>
<td class='category' colspan='2'>{$ibforums->lang['board_stats']}</td>
</tr>
<tr>
<td class='forum1' width='5%' valign='middle'><{F_STATS}></td>
<td class='forum2' width="95%" align='left'>$text<br>{$ibforums->lang['most_online']}</td>
</tr>
EOF;
}
function birthdays($birthusers="", $total="", $birth_lang="") {
global $ibforums;
return <<<EOF
<tr>
<td class='category' colspan='2'>{$ibforums->lang['birthday_header']}</td>
</tr>
<tr>
<td class='forum1' width='5%' valign='middle'><{F_ACTIVE}></td>
<td class='forum2' width='95%'><b>$total</b> $birth_lang<br>$birthusers</td>
</tr>
EOF;
}
function calendar_events($events = "") {
global $ibforums;
return <<<EOF
<tr>
<td class='category' colspan='2'>{$ibforums->lang['calender_f_title']}</td>
</tr>
<tr>
<td class='forum1' width='5%' valign='middle'><{F_ACTIVE}></td>
<td class='forum2' width='95%'>$events</td>
</tr>
EOF;
}
function stats_footer() {
global $ibforums;
return <<<EOF
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- Board Stats -->
EOF;
}
function BoardInformation() {
global $ibforums;
return <<<EOF
<br>
<table cellspacing='4' cellpadding='0' width='70%' border='0' align='center'>
<tr>
<td align='center'>[ <a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Login&CODE=06">{$ibforums->lang['d_delete_cookies']}</a> ] :: [ <a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Login&CODE=05">{$ibforums->lang['d_post_read']}</a> ]</td>
</tr>
</table>
EOF;
}
function CatHeader_Expanded($Data) {
global $ibforums;
return <<<EOF
<table width="<{tbl_width}>" align="center" border="0" cellspacing="1" cellpadding="0" bgcolor="<{tbl_border}>">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="3" class='maintitle'>
<tr>
<td class="maintitle"><{CAT_IMG}></td>
<td width="100%" class="maintitle"><a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&c={$Data['id']}">{$Data['name']}</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='mainbg'>
<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td align="center" nowrap class='titlemedium'><img src="{$ibforums->vars['img_url']}/spacer.gif" alt="" width="28" height="1"></td>
<td width="59%" nowrap class='titlemedium'>{$ibforums->lang['cat_name']}</td>
<td align="center" width="7%" nowrap class='titlemedium'>{$ibforums->lang['topics']}</td>
<td align="center" width="7%" nowrap class='titlemedium'>{$ibforums->lang['replies']}</td>
<td width="27%" nowrap class='titlemedium'>{$ibforums->lang['last_post_info']}</td>
</tr>
EOF;
}
function subheader() {
global $ibforums;
return <<<EOF
<br>
<table width="<{tbl_width}>" align="center" border="0" cellspacing="1" cellpadding="0" bgcolor="<{tbl_border}>">
<tr>
<td class='mainbg'>
<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td align="center" nowrap class='titlemedium'><img src="{$ibforums->vars['img_url']}/spacer.gif" alt="" width="28" height="1"></td>
<td width="59%" nowrap class='titlemedium'>{$ibforums->lang['cat_name']}</td>
<td align="center" width="7%" nowrap class='titlemedium'>{$ibforums->lang['topics']}</td>
<td align="center" width="7%" nowrap class='titlemedium'>{$ibforums->lang['replies']}</td>
<td width="27%" nowrap class='titlemedium'>{$ibforums->lang['last_post_info']}</td>
</tr>
EOF;
}
function end_this_cat() {
global $ibforums;
return <<<EOF
<tr>
<td class='mainfoot' colspan="5">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
<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}&act=ST&f=$fid&t=$tid'>$title</a></b><br>
EOF;
}
function PageTop($lastvisit) {
global $ibforums;
return <<<EOF
<table cellpadding='4' cellspacing='0' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td align='left' valign='bottom'><!-- IBF.NEWSLINK -->{$ibforums->lang['welcome_back_text']} $lastvisit</td>
<td align='right' valign='bottom'>&nbsp;</td>
</tr>
</table>
EOF;
}
function quick_log_in() {
global $ibforums;
return <<<EOF
<form style='display:inline' action="{$ibforums->base_url}&act=Login&CODE=01&CookieDate=1" method="post">
<table cellpadding='3' cellspacing='0' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td align='right' valign='middle' width='100%'><b>{$ibforums->lang['qli_title']}</b></td>
<td align='right' valign='middle' nowrap>
<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']}'>
</td>
</tr>
</table>
</form>
EOF;
}
function ForumRow($info) {
global $ibforums;
return <<<EOF
<!-- Forum {$info['id']} entry -->
<tr>
<td class="forum2" align="center">{$info['img_new_post']}</td>
<td class="forum2" width="59%"><span class="linkthru"><b><a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=SF&f={$info['id']}">{$info['name']}</a></b></span><br><span class='desc'>{$info['description']}</span><br>{$info['moderator']}</td>
<td class="forum1" align="center" width="7%">{$info['topics']}</td>
<td class="forum1" align="center" width="7%">{$info['posts']}</td>
<td class="forum1" width="27%">{$info['last_post']}<br>{$ibforums->lang['in']}: {$info['last_topic']}<br>{$ibforums->lang['by']}: {$info['last_poster']}</td>
</tr>
<!-- End of Forum {$info['id']} entry -->
EOF;
}
}
<?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;
}
}
?>
+153 -221
View File
@@ -1,222 +1,154 @@
<?php
class skin_buddy {
function buddy_js() {
global $ibforums;
return <<<EOF
<script language='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
<table cellpadding='0' cellspacing='0' border='0' width='100%' height='100%' class='row1' align='center'>
<tr>
<td valign='top'>
<table cellpadding='0' cellspacing='0' border='0' width='100%' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='5' cellspacing='1' border='0' width='100%' height='100%'>
<tr>
<td 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> ]</td>
</tr>
<tr>
<td class='category' valign='middle' align='center'>{$ibforums->lang['while_away']}</td>
</tr>
<tr>
<td align='left' class='row1'>$away_text</td>
</tr>
<tr>
<td class='category' valign='middle' align='center'>{$ibforums->lang['show_me']}</td>
</tr>
<tr>
<td align='left' class='row1'>
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
<tr>
<td align='left' width='1%'><img src='{$ibforums->vars['img_url']}/nav_m_dark.gif' border='0'></td>
<td align='left' width='99%'><a href='javascript:redirect_to("&act=Stats&CODE=leaders",0)'>{$ibforums->lang['sm_forum_leaders']}</a></td>
</tr>
<tr>
<td align='left' width='1%'><img src='{$ibforums->vars['img_url']}/nav_m_dark.gif' border='0'></td>
<td align='left' class='row1'><a href='javascript:redirect_to("&act=Search&CODE=getactive",0)'>{$ibforums->lang['sm_todays_posts']}</a></td>
</tr>
<tr>
<td align='left' width='1%'><img src='{$ibforums->vars['img_url']}/nav_m_dark.gif' border='0'></td>
<td align='left' class='row1'><a href='javascript:redirect_to("&act=Stats",0)'>{$ibforums->lang['sm_today_posters']}</a></td>
</tr>
<tr>
<td align='left' width='1%'><img src='{$ibforums->vars['img_url']}/nav_m_dark.gif' border='0'></td>
<td align='left' class='row1'><a href='javascript:redirect_to("&act=Members&max_results=10&sort_key=posts&sort_order=desc",0)'>{$ibforums->lang['sm_all_posters']}</a></td>
</tr>
<tr>
<td align='left' width='1%'><img src='{$ibforums->vars['img_url']}/nav_m_dark.gif' border='0'></td>
<td align='left' class='row1'><a href='javascript:redirect_to("&act=Search&CODE=lastten",0)'>{$ibforums->lang['sm_my_last_posts']}</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='category' valign='middle' align='center'>{$ibforums->lang['search_forums']}</td>
</tr>
<tr>
<td align='center' class='row1' valign='middle'><form action="{$ibforums->base_url}&act=Search&CODE=01&smethod=simple&forums=all&cat_forum=forum&search_in=posts&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></td>
</tr>
<tr>
<td class='category' valign='middle' align='center'>{$ibforums->lang['search_help']}</td>
</tr>
<tr>
<td align='center' class='row1' valign='middle'><form action="{$ibforums->base_url}&act=Help&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></td>
</tr>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<!--CLOSE.LINK-->
</td>
</tr>
</table>
EOF;
}
function login() {
global $ibforums;
return <<<EOF
<form action="{$ibforums->base_url}&act=Login&CODE=01&CookieDate=1&buddy=1" method="post" name='theForm' onSubmit='return check_form();'>
<table cellpadding='0' cellspacing='0' border='0' width='100%' height='100%' class='row1' align='center'>
<tr>
<td valign='top'>
<table cellpadding='0' cellspacing='0' border='0' width='100%' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='5' cellspacing='1' border='0' width='100%' height='100%'>
<tr>
<td class='titlemedium' align='center'>{$ibforums->lang['page_title']}</td>
</tr>
<tr>
<td class='category' valign='middle' align='center'>{$ibforums->lang['log_in_needed']}</td>
</tr>
<tr>
<td align='left' class='row1'>
{$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("&act=Reg", 1);'>{$ibforums->lang['reg_link']}</a></center>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<!--CLOSE.LINK-->
</td>
</tr>
</table>
</form>
EOF;
}
function closelink() {
global $ibforums;
return <<<EOF
<table cellpadding='4' cellspacing='0' border='0' width='100%' class='row1' align='center'>
<tr>
<td class='category' valign='middle' align='center'>[ <a href="javascript:window.location=window.location;">{$ibforums->lang['refresh']}</a> ] | [ <a href='javascript:self.close();'>{$ibforums->lang['close_win']}</a> ]</td>
</tr>
</table>
EOF;
}
}
<?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;
}
}
?>
+443 -273
View File
@@ -1,274 +1,444 @@
<?php
class skin_calendar {
function cal_edit_button($id) {
global $ibforums;
return <<<HTML
<div align='right'><a href='{$ibforums->base_url}&act=calendar&code=edit&eventid=$id'><{P_EDIT}></a></div><br>
HTML;
}
function cal_show_event($event, $member, $event_type, $edit_button="") {
global $ibforums;
return <<<HTML
<table width="<{tbl_width}>" align='center' border="0" cellspacing="1" cellpadding="0" bgcolor="<{tbl_border}>">
<tr>
<td colspan='2' class='maintitle' style='height:30px'>&nbsp;&nbsp;<b>{$ibforums->lang['event_date']} {$event['mday']} {$event['month_text']} {$event['year']}</b>&nbsp;&nbsp;[ <b>{$event['title']}</b> ] ($event_type)</td>
</tr>
<tr>
<td class='mainbg'>
<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td valign='top' class='row1' width='25%'><span class='normalname'><a href='{$ibforums->base_url}&act=Profile&MID={$member['id']}'>{$member['name']}</a></span><br><br>{$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' height='100%' class='row1' width='75%'>
$edit_button
<span class='postcolor'>
{$event['event_text']}
</span>
</td>
</tr>
<tr>
<td class='titlefoot' width='100%' align='center' colspan='2'>
<table border='0' cellspacing='0' cellpadding='0' width='100%' align='center'>
<tr>
<td align='center' valign='middle'>
&lt;&lt; <a href='{$ibforums->base_url}&act=calendar&d={$event['mday']}&m={$event['month']}&y={$event['year']}'>{$ibforums->lang['back']}</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
HTML;
}
function cal_page_events_start() {
global $ibforums;
return <<<HTML
<br>
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td valign='middle' align='left'><span class='pagetitle'>{$ibforums->lang['cal_title_events']}</td>
</tr>
</table>
HTML;
}
function cal_birthday_start() {
global $ibforums;
return <<<HTML
<table width="<{tbl_width}>" align='center' border="0" cellspacing="1" cellpadding="0" bgcolor="<{tbl_border}>">
<tr>
<td class='maintitle' style='height:30px'>
<table width='100%' cellpadding='4' cellspacing='1'>
<tr>
<td align='left' class='maintitle'><b>{$ibforums->lang['cal_birthdays']}</b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='mainbg'>
<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<br>
<ul>
HTML;
}
function cal_birthday_entry($uid, $uname, $age="") {
global $ibforums;
return <<<HTML
<li><a href='{$ibforums->base_url}&act=Profile&MID=$uid'>$uname</a> ($age)</li>
HTML;
}
function cal_birthday_end() {
global $ibforums;
return <<<HTML
</tr>
<tr>
<td class='titlefoot' width='100%' align='center' colspan='7'>
<table border='0' cellspacing='0' cellpadding='0' width='100%' align='center'>
<tr>
<td align='center' valign='middle'>
&lt;&lt; <a href='{$ibforums->base_url}&act=calendar&d={$ibforums->input['d']}&m={$ibforums->input['m']}&y={$ibforums->input['y']}'>{$ibforums->lang['back']}</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
HTML;
}
function cal_main_content($month, $year, $prev, $next) {
global $ibforums;
return <<<HTML
<br>
<form action='{$ibforums->base_url}&act=calendar' method='POST'>
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td valign='middle' align='left'><span class='pagetitle'>$month $year</td>
</tr>
</table>
<table width="<{tbl_width}>" align='center' border="0" cellspacing="1" cellpadding="0" bgcolor="<{tbl_border}>">
<tr>
<td class='maintitle' style='height:30px'>
<table width='100%' cellpadding='4' cellspacing='1'>
<tr>
<td align='left' class='maintitle'>{$ibforums->lang['table_title']}</td>
<td align='right' class='maintitle' style='font-weight:bold'>
&lt; <a href='{$ibforums->base_url}&act=calendar&m={$prev['month_id']}&y={$prev['year_id']}'>{$prev['month_name']} {$prev['year_id']}</a>
&nbsp;&nbsp; <a href='{$ibforums->base_url}&act=calendar&m={$next['month_id']}&y={$next['year_id']}'>{$next['month_name']} {$next['year_id']}</a> &gt;
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='mainbg'>
<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<!--IBF.DAYS_TITLE_ROW-->
<!--IBF.DAYS_CONTENT-->
</tr>
<tr>
<td class='titlefoot' width='100%' align='center' colspan='7'>
<table border='0' cellspacing='0' cellpadding='0' width='100%' align='center'>
<tr>
<td align='left' valign='middle'>
<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'>
</td>
<td align='center' valign='middle'><a href='{$ibforums->base_url}&act=calendar&code=newevent'>{$ibforums->lang['post_new_event']}</a></td>
<td align='right' style='font-weight:bold'>
&lt; <a href='{$ibforums->base_url}&act=calendar&m={$prev['month_id']}&y={$prev['year_id']}'>{$prev['month_name']} {$prev['year_id']}</a>
&nbsp;&nbsp; <a href='{$ibforums->base_url}&act=calendar&m={$next['month_id']}&y={$next['year_id']}'>{$next['month_name']} {$next['year_id']}</a> &gt;
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
HTML;
}
function cal_day_bit($day) {
global $ibforums;
return <<<HTML
<td width='14%' class='titlemedium'><b>$day</b></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:80px' class='row2'><br></td>
HTML;
}
function cal_date_cell($month_day, $events="") {
global $ibforums;
return <<<HTML
<td style='height:80px' valign='top' class='row1' align='left'>$month_day $events</td>
HTML;
}
function cal_date_cell_today($month_day, $events="") {
global $ibforums;
return <<<HTML
<td style='height:80px;border:2px;border-style:outset' valign='top' class='row1' align='left'><span class='highlight'><b>$month_day</b></span>$events</td>
HTML;
}
function cal_events_start() {
global $ibforums;
return <<<HTML
<!--<ul>-->
<br>
HTML;
}
function cal_events_wrap($link, $text) {
global $ibforums;
return <<<HTML
<li type='square'><a href='{$ibforums->base_url}&act=calendar&$link'>$text</a>
HTML;
}
function cal_events_end() {
global $ibforums;
return <<<HTML
<!--</ul>-->
HTML;
}
}
<?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
@@ -0,0 +1,436 @@
<?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;
}
}
?>
+310 -290
View File
@@ -1,291 +1,311 @@
<?php
class skin_emails {
function report_form($fid, $tid, $pid, $st, $topic_title) {
global $ibforums;
return <<<EOF
<form action="{$ibforums->base_url}&act=report&send=1&f=$fid&t=$tid&p=$pid&st=$st" method="post" name='REPLIER'>
<table cellpadding='0' cellspacing='1' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' colspan='2' class='titlemedium'>{$ibforums->lang['report_title']}</td>
</tr>
<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}&act=ST&f=$fid&t=$tid&st=$st&#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>
<tr>
<td class='row2' align='center' colspan='2'>
<input type="submit" value="{$ibforums->lang['report_submit']}" class='forminput'>
</tr>
</table>
</td>
</tr>
</table>
</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' class='MsgrObj' width='0' height='0'></object>
<object classid='clsid:FB7199AB-79BF-11d2-8D94-0000F875C541' codetype='application/x-oleobject' class='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&m=g&t=2"></td>
</tr>
<tr>
<td class='row2' align='center' colspan='2'><a href="http://edit.yahoo.com/config/send_webmesg?.target=$yahoo&.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&.kw=$yahoo&.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='category' colspan='2'>&nbsp;</td>
</tr>
</table>
EOF;
}
function pager_header($data) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' width='100%' bgcolor='<{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']}&message=Hi.+Are+you+there?"><img src="http://www.aol.co.uk/aim/remote/gr/aimver_im.gif" width=117 height=39 border=0 alt="Send me an Instant Message"></a><br><a href="aim:addbuddy?screenname={$data['AOLNAME']}"><img src="http://www.aol.co.uk/aim/remote/gr/aimver_bud.gif" width=117 height=39 border=0 alt="Add me to Your Buddy List"></a><br><a href="http://www.aol.co.uk/aim/remote.html"><img src="http://www.aol.co.uk/aim/remote/gr/aimver_botadd.gif" width=117 height=23 border=0 alt="Add Remote to Your Page"></a><br><a href="http://www.aol.co.uk/aim/index.html"><img src="http://www.aol.co.uk/aim/remote/gr/aimver_botdow.gif" width=117 height=29 border=0 alt="Download AOL Instant Messenger"></a><br><br></td></tr></table>
<!-- End AIM Remote -->
EOF;
}
function forward_form($title, $text, $lang) {
global $ibforums;
return <<<EOF
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}" method="post" name='REPLIER'>
<input type='hidden' name='act' value='Forward'>
<input type='hidden' name='CODE' value='01'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='st' value='{$ibforums->input['st']}'>
<input type='hidden' name='f' value='{$ibforums->input['f']}'>
<input type='hidden' name='t' value='{$ibforums->input['t']}'>
<table cellpadding='0' cellspacing='1' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' colspan='2' class='titlemedium'>{$ibforums->lang['title']}</td>
</tr>
<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>
<tr>
<td class='row2' align='center' colspan='2'>
<input type="submit" value="{$ibforums->lang['submit_send']}" class='forminput'>
</tr>
</table>
</td>
</tr>
</table>
</form>
EOF;
}
function show_address($data) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='1' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='0' border='0' width='100%'>
<tr>
<td class='titlemedium'><b>{$ibforums->lang['send_email_to']} {$data[NAME]}</b></td>
</tr>
<tr>
<td class='row1'>{$ibforums->lang['show_address_text']}</td>
</tr>
<td class='row1'>&gt;&gt;<b><a href="mailto:{$data[ADDRESS]}" class='misc'>{$ibforums->lang['send_email_to']} {$data[NAME]}</a></b></td>
</tr>
</table>
</td>
</tr>
</table>
EOF;
}
function send_form($data) {
global $ibforums;
return <<<EOF
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}" method="post" name='REPLIER'>
<input type='hidden' name='act' value='Mail'>
<input type='hidden' name='CODE' value='01'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='to' value='{$data[TO]}'>
<table cellpadding='0' cellspacing='1' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td align='left' colspan='2' class='titlemedium'>{$ibforums->lang['send_title']}</td>
</tr>
<tr>
<td class='row1' colspan='2' class='usermenu'><b>{$ibforums->lang['send_email_to']} {$data[NAME]}</b></td>
</tr>
<tr>
<td class='row1' align='left' width='20%' valign='top'><b>{$ibforums->lang['subject']}</b></td>
<td class='row1' width='80%'><input type='text' name='subject' value='' size='50' maxlength='50' class='forminput'>
</td>
</tr>
<tr>
<td class='row1' align='left' width='20%' valign='top'><b>{$ibforums->lang['message']}</b><br><br>{$ibforums->lang['msg_txt']}</td>
<td class='row1' width='80%'><textarea cols='60' rows='12' wrap='soft' name='message' class='textinput'></textarea>
</td>
</tr>
<tr>
<td class='row2' align='center' colspan='2'>
<input type="submit" value="{$ibforums->lang['submit_send']}" class='forminput'>
</tr>
</table>
</td>
</tr>
</table>
</form>
EOF;
}
function sent_screen($member_name) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='1' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='0' border='0' width='100%'>
<tr>
<td class='titlemedium'><b>{$ibforums->lang['email_sent']}</b></td>
</tr>
</tr>
<tr>
<td class='row1' valign='middle'><b>{$ibforums->lang['email_sent_txt']} $member_name</td>
</tr>
</table>
</td>
</tr>
</table>
EOF;
}
function forum_jump($data) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='1' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td align='right'>$data</td>
</tr>
</table>
EOF;
}
}
<?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;
}
}
?>
+265 -368
View File
@@ -1,369 +1,266 @@
<?php
class skin_forum {
function Forum_log_in($Data) {
global $ibforums;
return <<<EOF
<form action='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id};act=SF&f=$Data' method='post'>
<input type='hidden' name='act' value='SF'>
<input type='hidden' name='f' value='$Data'>
<input type='hidden' name='L' value='1'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<table cellpadding='0' cellspacing='1' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='0' border='0' width='100%'>
<tr>
<td align='left' colspan='2' class='titlemedium'>{$ibforums->lang['need_password']}</td>
</tr>
<tr>
<td class='row1' colspan='2'>{$ibforums->lang['need_password_txt']}</td>
</tr>
<tr>
<td class='row1' width='40%'><b>{$ibforums->lang['enter_pass']}</b></td>
<td class='row1'><input type='password' size='20' name='f_password'></td>
</tr>
<tr>
<td class='row2' align='center' colspan='2'><input type='submit' value='{$ibforums->lang['f_pass_submit']}' class='forminput'></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
EOF;
}
function show_rules_full($rules) {
global $ibforums;
return <<<EOF
<!-- Show FAQ/Forum Rules -->
<br>
<table cellpadding='4' cellspacing='0' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td align='left' ><b>{$rules['title']}</b><br><br>{$rules['body']}</td>
</tr>
</table>
<br>
<!-- End FAQ/Forum Rules -->
EOF;
}
function show_rules_link($rules) {
global $ibforums;
return <<<EOF
<!-- Show FAQ/Forum Rules -->
<br>
<table cellpadding='4' cellspacing='0' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td align='left' valign='middle'><b>&gt;&gt;<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=SR&f={$rules['fid']}'>{$rules['title']}</a></b></td>
</tr>
</table>
<br>
<!-- End FAQ/Forum Rules -->
EOF;
}
function show_sub_link($fid) {
global $ibforums;
return <<<EOF
| <a href='{$ibforums->base_url}&act=Track&f=$fid&type=forum'>{$ibforums->lang['ft_title']}</a>
EOF;
}
function TableEnd($Data) {
global $ibforums;
return <<<EOF
</table>
</td>
</tr>
<tr>
<td class='mainbg'>
<!--IBF.FORUM_ACTIVE-->
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
<tr>
<td class='titlefoot' width='100%' align='center'>
<table border='0' cellspacing='0' cellpadding='0'>
<tr>
<td>{$ibforums->lang['showing_text']}{$ibforums->lang['sort_text']}</td>
<td>&nbsp;<input type='submit' value='{$ibforums->lang['sort_submit']}' class='forminput'></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</form>
</tr>
</table>
<table width='<{tbl_width}>' border='0' cellspacing='0' cellpadding='4' align='center'>
<tr>
<td width='100%'>{$Data[SHOW_PAGES]}</td>
<td align='right' nowrap><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Post&CODE=00&f={$Data['id']}'><{A_POST}></a>{$Data[POLL_BUTTON]}</td>
</tr>
</table>
<table width='<{tbl_width}>' border='0' cellspacing='0' cellpadding='3' align='center'>
<tr>
<td><{B_NEW}></td>
<td nowrap>{$ibforums->lang['pm_open_new']}&nbsp;</td>
<td><{B_POLL}></td>
<td nowrap>{$ibforums->lang['pm_poll']}&nbsp;</td>
<td width='100%' rowspan='4' align='right'>
<table border='0' cellspacing='0' cellpadding='0'>
<tr>
<form action='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}' name='search'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='forums' value='{$Data['id']}'>
<input type='hidden' name='cat_forum' value='forum'>
<input type='hidden' name='act' value='Search'>
<input type='hidden' name='CODE' value='01'>
<td>{$ibforums->lang['search_forum']}&nbsp;</td>
<td nowrap><input type='text' size='30' name='keywords' class='forminput' value='{$ibforums->lang['enter_keywords']}' onFocus='this.value = "";'> <input type='submit' value='{$ibforums->lang['search_go']}' class='forminput'></td>
</form>
</tr>
</table>
<br>
{$Data[FORUM_JUMP]}
</td>
</tr>
<tr>
<td><{B_NORM}></td>
<td nowrap>{$ibforums->lang['pm_open_no']}&nbsp;</td>
<td><{B_POLL_NN}></td>
<td nowrap>{$ibforums->lang['pm_poll_no']}&nbsp;</td>
</tr>
<tr>
<td><{B_HOT}></td>
<td nowrap>{$ibforums->lang['pm_hot_new']}&nbsp;</td>
<td><{B_LOCKED}></td>
<td nowrap>{$ibforums->lang['pm_locked']}&nbsp;</td>
</tr>
<tr>
<td><{B_HOT_NN}></td>
<td nowrap>{$ibforums->lang['pm_hot_no']}&nbsp;</td>
<td><{B_MOVED}></td>
<td nowrap>{$ibforums->lang['pm_moved']}&nbsp;</td>
</tr>
</table>
EOF;
}
function show_rules($rules) {
global $ibforums;
return <<<EOF
<!-- Show Forum FAQ/Rules -->
<br>
<table cellpadding='4' cellspacing='0' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' class='titlemedium'>{$rules['title']}</td>
</tr>
<tr>
<td class='row1'>{$rules['body']}</td>
</tr>
<tr>
<td class='titlemedium' align='center'>&gt;&gt;<a href='{$ibforums->base_url}&act=SF&f={$rules['fid']}'>{$ibforums->lang['back_to_forum']}</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<!-- End Forum FAQ/Rules -->
EOF;
}
function page_title($title="", $pages="") {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td><span class='pagetitle'>$title</span>$pages</td>
</tr>
</table>
EOF;
}
function PageTop($info) {
global $ibforums;
return <<<EOF
<!-- Forum page unique top -->
<script language='javascript'>
<!--
function who_posted(tid)
{
window.open("{$ibforums->base_url}&act=Stats&CODE=who&t="+tid, "WhoPosted", "toolbar=no,scrollbars=yes,resizable=yes,width=230,height=300");
}
//-->
</script>
<!--IBF.SUBFORUMS-->
<table width='<{tbl_width}>' border='0' cellspacing='0' cellpadding='4' align='center'>
<tr>
<td width='100%'>{$info['SHOW_PAGES']}</td>
<td align='right' nowrap><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Post&CODE=00&f={$info['id']}'><{A_POST}></a>{$info[POLL_BUTTON]}</td>
</tr>
</table>
<table width='<{tbl_width}>' align='center' border='0' cellspacing='1' cellpadding='0' bgcolor='<{tbl_border}>'>
<tr>
<form action='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}' method='POST'>
<td class='maintitle'>
<table width='100%' border='0' cellspacing='0' cellpadding='3'>
<tr>
<td><img src='{$ibforums->vars['img_url']}/nav_m.gif' alt='' width='8' height='8'></td>
<td width='100%' class='maintitle'>{$info['name']}</td>
<td align='right' class='maintitle' nowrap><span style='font-size:10px'>[ <a href='{$ibforums->base_url}&act=Login&CODE=04&f={$info['id']}'>{$ibforums->lang['mark_as_read']}</a> <!--IBF.SUB_FORUM_LINK--> ]</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='mainbg'>
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
<tr>
<td align='center' nowrap class='titlemedium'>
<!-- Tuck away hidden form elements -->
<input type='hidden' name='act' value='SF'>
<input type='hidden' name='f' value='{$info['id']}'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='st' value='{$ibforums->input['st']}'>
<!-- End of tucking :D -->
<img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='20' height='1'></td>
<td align='center' nowrap class='titlemedium'><img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='20' height='1'></td>
<td width='45%' nowrap class='titlemedium'>{$ibforums->lang['h_topic_title']}</td>
<td width='14%' align='center' nowrap class='titlemedium'>{$ibforums->lang['h_topic_starter']}</td>
<td width='7%' align='center' nowrap class='titlemedium'>{$ibforums->lang['h_replies']}</td>
<td width='7%' align='center' nowrap class='titlemedium'>{$ibforums->lang['h_hits']}</td>
<td width='27%' nowrap class='titlemedium'>{$ibforums->lang['h_last_action']}</td>
</tr>
<!-- Forum page unique top -->
EOF;
}
function forum_active_users($active=array()) {
global $ibforums;
return <<<EOF
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
<tr>
<td class='titlemedium' align='left'>{$ibforums->lang['active_users_title']} ({$ibforums->lang['active_users_detail']})</td>
</tr>
<tr>
<td class='forum1'><b>{$ibforums->lang['active_users_members']}</b> {$active['names']}</td>
</tr>
</table>
EOF;
}
function show_no_matches() {
global $ibforums;
return <<<EOF
<tr>
<td class='forum2' 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='forum2'>{$Data['folder_img']}</td>
<td align='center' class='forum1'>{$Data['topic_icon']}</td>
<td class='forum2'>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td valign='middle'>{$Data['go_new_post']}</td>
<td width='100%'><span class='linkthru'>{$Data['prefix']} <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?act=ST&f={$Data['forum_id']}&t={$Data['tid']}&s={$ibforums->session_id}' class='linkthru' title='{$ibforums->lang['topic_started_on']} {$Data['start_date']}'>{$Data['title']}</a></span> {$Data[PAGES]}</td>
</tr>
</table>
<span class='desc'>{$Data['description']}</span></td>
<td align='center' class='forum1'>{$Data['starter']}</td>
<td align='center' class='forum2'>{$Data['posts']}</td>
<td align='center' class='forum1'>{$Data['views']}</td>
<td class='forum1'><span class='desc'>{$Data['last_post']}<br><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$Data['forum_id']}&t={$Data['tid']}&view=getlastpost'>{$Data['last_text']}</a> <b>{$Data['last_poster']}</b></span></td>
</tr>
<!-- End Topic Entry {$Data['tid']} -->
EOF;
}
function render_pinned_start() {
global $ibforums;
return <<<EOF
<!-- START PINNED -->
<tr>
<td align='center' class='category'>&nbsp;</td>
<td align='center' class='category'>&nbsp;</td>
<td align='left' class='category' colspan='5'>{$ibforums->lang['pinned_start']}</td>
</tr>
EOF;
}
function render_pinned_end() {
global $ibforums;
return <<<EOF
<!-- END PINNED -->
<tr>
<td align='center' class='category'>&nbsp;</td>
<td align='center' class='category'>&nbsp;</td>
<td align='left' class='category' colspan='5'>{$ibforums->lang['regular_topics']}</td>
</tr>
EOF;
}
function render_pinned_row($Data) {
global $ibforums;
return <<<EOF
<!-- Begin Pinned Topic Entry {$Data['tid']} -->
<tr>
<td align='center' class='forum2'>{$Data['folder_img']}</td>
<td align='center' class='forum1'>{$Data['topic_icon']}</td>
<td class='forum2'>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td valign='middle'>{$Data['go_new_post']}</td>
<td width='100%'><span class='linkthru' style='font-weight:bold'>{$Data['prefix']} <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?act=ST&f={$Data['forum_id']}&t={$Data['tid']}&s={$ibforums->session_id}' class='linkthru' title='{$ibforums->lang['topic_started_on']} {$Data['start_date']}'>{$Data['title']}</a></span> {$Data[PAGES]}</td>
</tr>
</table>
<span class='desc'>{$Data['description']}</span></td>
<td align='center' class='forum2'>{$Data['starter']}</td>
<td align='center' class='forum2'>{$Data['posts']}</td>
<td align='center' class='forum2'>{$Data['views']}</td>
<td class='forum2'><span class='desc'>{$Data['last_post']}<br><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$Data['forum_id']}&t={$Data['tid']}&view=getlastpost'>{$Data['last_text']}</a> <b>{$Data['last_poster']}</b></span></td>
</tr>
<!-- End Pinned Topic Entry {$Data['tid']} -->
EOF;
}
}
<?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;
}
}
?>
+344 -218
View File
@@ -2,67 +2,242 @@
class skin_global {
function Member_bar($msg, $ad_link, $mod_link) {
function pop_up_window($title, $css, $text) {
global $ibforums;
return <<<EOF
<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>
<tr>
<td align='left' valign='middle'><b>{$ibforums->lang['logged_in_as']} {$ibforums->member['name']}</b> ( <a href='{$ibforums->base_url}&act=Login&CODE=03'>{$ibforums->lang['log_out']}</a>$ad_link $mod_link )</td>
<td align='right' valign='middle'>
<b><a href='{$ibforums->base_url}&act=UserCP&CODE=00' title='{$ibforums->lang['cp_tool_tip']}'>{$ibforums->lang['your_cp']}</a></b> | <a href='{$ibforums->base_url}&act=Msg&CODE=01'>{$msg[TEXT]}</a>
| <a href='{$ibforums->base_url}&act=Search&CODE=getnew'>{$ibforums->lang['view_new_posts']}</a> | <a href='javascript:buddy_pop();' title='{$ibforums->lang['bb_tool_tip']}'>{$ibforums->lang['l_qb']}</a>
</td>
</tr>
</table>
<!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 ibf_banner() {
function make_page_jump($tp="", $pp="", $ub="" ) {
global $ibforums;
return <<<EOF
<a href='http://www.ipshosting.com' target='_blank'><img src='html/sys-img/ipshosting.gif' border='0' alt='IPS Hosting'></a>
<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>
<script language='JavaScript'>
<!--
function buddy_pop()
{
window.open('index.{$ibforums->vars['php_ext']}?act=buddy&s={$ibforums->session_id}','BrowserBuddy','width=200,height=450,resizable=yes,scrollbars=yes');
}
//-->
</script>
<table width='<{tbl_width}>' border='0' align='center' cellpadding='0' cellspacing='1' bgcolor='<{tbl_border}>'>
<tr>
<td align='left'>
<table width='100%' border='0' cellspacing='0' cellpadding='0' background='{$ibforums->vars['img_url']}/header_tile.gif'>
<tr>
<td align='left'><a href='{$ibforums->base_url}' title='Board Home'><img src='{$ibforums->vars['img_url']}/logo.jpg' alt='Powered by Invision Board' border='0'></a></td>
<td align='right' valign='middle' background='{$ibforums->vars['img_url']}/header_tile.gif'><!--IBF.BANNER--></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='row1'>
<table width='100%' border='0' cellspacing='0' cellpadding='8'>
<tr>
<td width='100%' valign='middle' align='center'> <% MEMBER BAR %>
</td>
</tr>
</table>
</td>
</tr>
</td>
<!-- 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>
<br>
<% 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;
}
@@ -70,64 +245,47 @@ EOF;
function start_nav() {
global $ibforums;
return <<<EOF
<table width='<{tbl_width}>' align='center' border="0" cellspacing="0" cellpadding="2">
<tr>
<td width='1%' valign='middle'><{F_NAV}></td>
<td width="100%" align='left' valign='middle' class="nav">
<div id='navstrip' align='left'><{F_NAV}>&nbsp;
EOF;
}
function end_nav() {
global $ibforums;
return <<<EOF
</td>
<td align='right' valign='middle' nowrap>
<table cellpadding='5' cellspacing='0' border='0' style='border:1px solid <{tbl_border}>' class='row2'>
<tr>
<td nowrap><a href='{$ibforums->base_url}&act=Help'>{$ibforums->lang['tb_help']}</a>
<span style='color:<{tbl_border}>'>|</span> <a href='{$ibforums->base_url}&act=Search&f={$ibforums->input['f']}'>{$ibforums->lang['tb_search']}</a>
<span style='color:<{tbl_border}>'>|</span> <a href='{$ibforums->base_url}&act=Members'>{$ibforums->lang['tb_mlist']}</a>
<span style='color:<{tbl_border}>'>|</span> <a href='{$ibforums->base_url}&act=calendar'>{$ibforums->lang['tb_calendar']}</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</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={$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}$Url'>
<meta http-equiv='refresh' content='2; url=$Url' />
<script type="text/javascript"> </script>
$css
</head>
<body class='mainbg'>
<table width='<{tbl_width}>' height='85%' align='center'>
<body>
<table width='100%' height='85%' align='center'>
<tr>
<td valign='middle'>
<table align='center' border="0" cellspacing="1" cellpadding="0" bgcolor="#000000">
<tr>
<td class='mainbg'>
<table width="100%" border="0" cellspacing="1" cellpadding="12">
<tr>
<td width="100%" align="center" class='row1'>
{$ibforums->lang['thanks']},
$Text<br><br>
{$ibforums->lang['transfer_you']}<br><br>
(<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}$Url'>{$ibforums->lang['dont_wait']}</a>)</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<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>
@@ -138,7 +296,7 @@ EOF;
function PM_popup() {
global $ibforums;
return <<<EOF
<script language='JavaScript'>
<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');
//-->
@@ -146,24 +304,24 @@ return <<<EOF
EOF;
}
function Guest_bar() {
global $ibforums;
return <<<EOF
&nbsp;{$ibforums->lang['guest_stuff']} ( <a href='{$ibforums->base_url}&act=Login&CODE=00'>{$ibforums->lang['log_in']}</a> | <a href='{$ibforums->base_url}&act=Reg&CODE=00'>{$ibforums->lang['register']}</a> )
EOF;
}
function admin_link() {
global $ibforums;
return <<<EOF
&nbsp;| <b><a href='{$ibforums->vars['board_url']}/admin.{$ibforums->vars['php_ext']}' target='_blank'>{$ibforums->lang['admin_cp']}</a></b>
&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
&nbsp;| <b><a href='{$ibforums->base_url}&act=modcp'>{$ibforums->lang['mod_cp']}</a></b>
&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;
}
@@ -171,149 +329,117 @@ function error_log_in($q_string) {
global $ibforums;
return <<<EOF
<form action='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}' method='post'>
<input type='hidden' name='act' value='Login'>
<input type='hidden' name='CODE' value='01'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='referer' value='$q_string'>
<input type='hidden' name='CookieDate' value='1'>
<table cellpadding='0' cellspacing='0' border='0' width='80%' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td align='left' colspan='2' class='titlemedium'>{$ibforums->lang['er_log_in_title']}</td>
</tr>
<tr>
<td class='row1' width='40%'>{$ibforums->lang['erl_enter_name']}</td>
<td class='row1'><input type='text' size='20' maxlength='64' name='UserName' class='forminput'></td>
</tr>
<tr>
<td class='row1' width='40%'>{$ibforums->lang['erl_enter_pass']}</td>
<td class='row1'><input type='password' size='20' name='PassWord' class='forminput'></td>
</tr>
<tr>
<td class='row2' align='center' colspan='2'>
<input type='submit' name='submit' value='{$ibforums->lang['erl_log_in_submit']}' class='forminput'>
</td>
</table>
</td>
</tr>
</table>
</form>
<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
<table width='<{tbl_width}>' border='0' align='center' cellpadding='0' cellspacing='1' bgcolor='<{tbl_border}>'>
<tr>
<td >
<table width='100%' border='0' cellspacing='0' cellpadding='3'>
<tr>
<td><img src='{$ibforums->vars['img_url']}/nav_m.gif' alt='' width='8' height='8'></td>
<td width='100%' class='titlemedium'>{$ibforums->lang['offline_title']}</td>
</tr>
</table>
</td>
<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='mainbg'>
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
<tr>
<td colspan='2' valign='top' class='post1'> <p>$message</p></td>
</tr>
<tr>
<td colspan='2' valign='top' class='posthead'>{$ibforums->lang['offline_login']}</td>
</tr>
<tr>
<form action='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}' method='post'>
<input type='hidden' name='act' value='Login'>
<input type='hidden' name='CODE' value='01'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='referer' value=''>
<input type='hidden' name='CookieDate' value='1'>
<td class='row1'>{$ibforums->lang['erl_enter_name']}<br><img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='180' height='1'></td>
<td width='100%' class='row1'><input type='text' size='20' maxlength='64' name='UserName' class='forminput'></td>
</tr>
<tr>
<td class='row1'>{$ibforums->lang['erl_enter_pass']}</td>
<td width='100%' class='row1'><input type='password' size='20' name='PassWord' class='forminput'></td>
</tr>
<tr>
<td colspan='2' align='center' class='titlefoot'><input type='submit' name='submit' value='{$ibforums->lang['erl_log_in_submit']}' class='forminput'></td>
</form>
</tr>
</table></td>
<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>
</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'>
<!--
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>
<script language='JavaScript' type="text/javascript">
<!--
function contact_admin() {
<table width='<{tbl_width}>' border='0' cellspacing='1' align='center' cellpadding='0' bgcolor='<{tbl_border}>'>
<tr>
<td class='maintitle' >
<table width='100%' border='0' cellspacing='0' cellpadding='3'>
<tr>
<td><img src='{$ibforums->vars['img_url']}/nav_m.gif' alt='' width='8' height='8'></td>
<td width='100%' class='maintitle'><b>{$ibforums->lang['error_title']}</b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='mainbg'>
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
<tr>
<td class='row1' valign='top'>
{$ibforums->lang['exp_text']}<br><br>
<b>{$ibforums->lang['msg_head']}</b>
<br><br>
<span class='highlight'>$message</span>
<br><br>
<!-- IBF.LOG_IN_TABLE -->
<br><br>
<b>Useful Links:</b>
<br><br>
&#149; <a href='{$ibforums->base_url}&act=Reg&CODE=10'>{$ibforums->lang['er_lost_pass']}</a><br>
&#149; <a href='{$ibforums->base_url}&act=Reg&CODE=00'>{$ibforums->lang['er_register']}</a><br>
&#149; <a href='{$ibforums->base_url}&act=Help&CODE=00'>{$ibforums->lang['er_help_files']}</a><br>
&#149; <a href='javascript:contact_admin();'>{$ibforums->lang['er_contact_admin']}</a></p>
</td>
</tr>
<tr>
<td class='titlefoot' align='center'>&lt; <a href='javascript:history.go(-1)'>{$ibforums->lang['error_back']}</a></td>
</tr>
</table>
</td>
</tr>
</table>
// 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 Member_no_usepm_bar() {
function error_post_textarea($post="") {
global $ibforums;
return <<<EOF
&nbsp;{$ibforums->lang['logged_in_as']} <b>{$ibforums->member['name']}</b> ( <a href='{$ibforums->base_url}&act=UserCP&CODE=00'>{$ibforums->lang['your_cp']}</a> | <a href='{$ibforums->base_url}&act=Login&CODE=03'>{$ibforums->lang['log_out']}</a> )
<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;
}
+64 -88
View File
@@ -1,89 +1,65 @@
<?php
class skin_help {
function row($entry) {
global $ibforums;
return <<<EOF
<!-- Help Entry ID:{$entry[ID]} -->
<tr>
<td class='{$entry['CELL_COLOUR']}' style='height:28px'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?act=Help&s={$ibforums->session_id}&CODE=01&HID={$entry['id']}'><b>{$entry['title']}</b></a><br>{$entry['description']}</td>
</tr>
<!-- End Help Entry -->
EOF;
}
function display($text) {
global $ibforums;
return <<<EOF
<!-- Displaying Help Topic -->
<tr>
<td class='row1' colspan='2' class='postcolor'>$text</td>
</tr>
<!-- End Display -->
EOF;
}
function end() {
global $ibforums;
return <<<EOF
</table>
</td>
</tr>
</table>
EOF;
}
function no_results() {
global $ibforums;
return <<<EOF
<tr>
<td 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
<table cellpadding=4 cellspacing='0' border='0' width='<{tbl_width}>' align='center'>
<tr><td>$two_text</td></tr>
</table>
<table cellpadding=0 cellspacing='1' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td align='left' colspan='2' class='titlemedium' >$one_text</td>
</tr>
<tr>
<td class='row1' colspan='2'>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?act=Help;s={$ibforums->session_id};CODE=02" method="post">
<input type='hidden' name='act' value='Help'>
<input type='hidden' name='CODE' value='02'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
{$ibforums->lang['search_txt']}&nbsp;&nbsp;<input type='text' maxlength='60' size='30' class='forminput' name='search_q'>&nbsp;<input type='submit' value='{$ibforums->lang['submit']}' class='forminput'>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table cellpadding=0 cellspacing='1' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td colspan='2' class='titlemedium' ><b>$three_text</b></td>
</tr>
EOF;
}
}
<?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;
}
}
?>
+219 -209
View File
@@ -1,210 +1,220 @@
<?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&entry=$entry&name=$name&sep=$sep&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&name=$name&sep=$sep&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 page_header( $title, $row1, $row2 ) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' width='100%' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
<tr>
<td colspan='4' class='titlemedium' align='center'>$title</td>
</tr>
<tr>
<td width='50%' align='center' class='category' valign='middle'>$row1</td>
<td width='50%' align='center' class='category' valign='middle'>$row2</td>
</tr>
EOF;
}
function emoticons_row($code, $image) {
global $ibforums;
return <<<EOF
<tr>
<td align='center' class='row1' valign='middle'><a href='javascript:add_smilie("$code")'>$code</a></td>
<td align='center' class='row2' valign='middle'><a href='javascript:add_smilie("$code")'><img src='{$ibforums->vars['EMOTICONS_URL']}/$image' border='0' valign='absmiddle' alt='$image'></a></td>
</tr>
EOF;
}
function page_footer() {
return <<<EOF
</table>
</td>
</tr>
</table>
EOF;
}
}
<?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;
}
}
?>
+76 -128
View File
@@ -1,129 +1,77 @@
<?php
class skin_login {
function ShowLogOutForm() {
global $ibforums;
return <<<EOF
<br>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}" method="post">
<input type='hidden' name='act' value='Login'>
<input type='hidden' name='CODE' value='03'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td bgcolor='<{TITLEBACK}>' valign='left' colspan='2' class='titlelarge'>{$ibforums->lang['log_out']}</td>
</tr>
<tr>
<td class='row1' colspan='2' valign='middle'><br>{$ibforums->lang['log_out_txt']}<br></td>
</tr>
<tr>
<td class='row2' align='center' colspan='2'>
<input type="submit" value="{$ibforums->lang['log_out_submit']}" class='forminput'>
</td></tr></table>
</td></tr></table>
</form>
EOF;
}
function errors($data) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='1' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
<tr>
<td class='row1' valign='top' align='left' class='highlight'><b>{$ibforums->lang['errors_found']}</b><hr noshade size='1' color='<{tbl_border}>'>$data</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
EOF;
}
function ShowForm($message, $referer="") {
global $ibforums;
return <<<EOF
<script language='JavaScript'>
<!--
function ValidateForm() {
var Check = 0;
if (document.LOGIN.UserName.value == '') { Check = 1; }
if (document.LOGIN.PassWord.value == '') { Check = 1; }
if (Check == 1) {
alert("{$ibforums->lang['blank_fields']}");
return false;
} else {
document.LOGIN.submit.disabled = true;
return true;
}
}
//-->
</script>
<br>
<table cellpadding='3' cellspacing='1' border='0' align='center' width='<{tbl_width}>'>
<tr>
<td align='left'>{$ibforums->lang['login_text']}</td>
</tr>
<tr>
<td align='left'><b>{$ibforums->lang['forgot_pass']} <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?act=Reg&CODE=10'>{$ibforums->lang['pass_link']}</a></b></td>
</tr>
</table>
<form action="{$ibforums->base_url}&act=Login&CODE=01" method="post" name='LOGIN' onSubmit='return ValidateForm()'>
<input type='hidden' name='referer' value="$referer">
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td align='left' colspan='2' class='titlemedium'>$message</td>
</tr>
<tr>
<td class='row1' width='40%'>{$ibforums->lang['enter_name']}</td>
<td class='row1'><input type='text' size='20' maxlength='64' name='UserName' class='forminput'></td>
</tr>
<tr>
<td class='row1' width='40%'>{$ibforums->lang['enter_pass']}</td>
<td class='row1'><input type='password' size='20' name='PassWord' class='forminput'></td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td align='left' colspan='2' class='titlemedium'>{$ibforums->lang['options']}</td>
</tr>
<tr>
<td class='row1' width='40%' align='left' valign='top'>{$ibforums->lang['cookies']}</td>
<td class='row1' width='40%'><input type="radio" name="CookieDate" value="1" checked>{$ibforums->lang['cookie_yes']}<br><input type="radio" name="CookieDate" value="0">{$ibforums->lang['cookie_no']}</td>
</tr>
<tr>
<td class='row1' width='40%' align='left' valign='top'>{$ibforums->lang['privacy']}</td>
<td class='row1' width='40%'><input type="checkbox" name="Privacy" value="1">{$ibforums->lang['anon_name']}</td>
</tr>
<tr>
<td class='row2' align='center' colspan='2'>
<input type="submit" name='submit' value="{$ibforums->lang['log_in_submit']}" class='forminput'>
</td></tr></table>
</td></tr></table>
</form>
EOF;
}
}
<?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;
}
}
?>
+123 -127
View File
@@ -1,128 +1,124 @@
<?php
class skin_mlist {
function Page_header($links) {
global $ibforums;
return <<<EOF
<script language='Javascript' type='text/javascript'>
<!--
function PopUp(url, name, width,height,center,resize,scroll,posleft,postop) {
if (posleft != 0) { x = posleft }
if (postop != 0) { y = postop }
if (!scroll) { scroll = 1 }
if (!resize) { resize = 1 }
if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {
X = (screen.width - width ) / 2;
Y = (screen.height - height) / 2;
}
if (scroll != 0) { scroll = 1 }
var Win = window.open( url, name, 'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no');
}
//-->
</script>
<table width="<{tbl_width}>" border="0" align='center' cellspacing="0" cellpadding="4">
<tr>
<td width="100%" height='38'>{$links[SHOW_PAGES]}</td>
</tr>
</table>
<table width="<{tbl_width}>" border="0" align='center' cellspacing="1" cellpadding="0" bgcolor="<{tbl_border}>">
<tr>
<td class='maintitle' >
&nbsp;
</td>
</tr>
<tr>
<td class='mainbg'>
<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td nowrap class='titlemedium' width="30%">{$ibforums->lang['member_name']}</td>
<td nowrap class='titlemedium' align="center" width="20%">{$ibforums->lang['member_level']}</td>
<td nowrap class='titlemedium' align="center" width="20%">{$ibforums->lang['member_group']}</td>
<td nowrap class='titlemedium' align="center" width="20%">{$ibforums->lang['member_joined']}</td>
<td nowrap class='titlemedium' align="center" width="10%">{$ibforums->lang['member_posts']}</td>
<td nowrap class='titlemedium' align="center">{$ibforums->lang['member_email']}</td>
<td nowrap class='titlemedium' align="center">{$ibforums->lang['member_aol']}</td>
<td nowrap class='titlemedium' align="center">{$ibforums->lang['member_icq']}</td>
</tr>
EOF;
}
function end($links) {
global $ibforums;
return <<<EOF
<table width="<{tbl_width}>" border="0" align='center' cellspacing="0" cellpadding="4">
<tr>
<td width="100%" height='38'>{$links[SHOW_PAGES]}</td>
</tr>
</table>
EOF;
}
function no_results() {
global $ibforums;
return <<<EOF
No results
EOF;
}
function start() {
global $ibforums;
return <<<EOF
<!-- nothing here -->
EOF;
}
function Page_end() {
global $ibforums;
return <<<EOF
<!-- End content Table -->
<form action='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id};act=Members' method='POST'>
<input type='hidden' name='act' value='Members'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<tr>
<td class='postfoot' 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>{$ibforums->lang['ch_all']}</option>
</select>&nbsp;&nbsp;<input class='forminput' type='text' size='25' name='name' value='{$ibforums->input['name']}'><br>
{$ibforums->lang['sorting_text']}&nbsp;<input type='submit' value='{$ibforums->lang['sort_submit']}' class='forminput'></td>
</tr>
</form>
</table>
</td>
</tr>
</table>
EOF;
}
function show_row($member) {
global $ibforums;
return <<<EOF
<!-- Entry for {$member[MEMBER_NAME]} -->
<tr>
<td class='forum2' width="30%"><b><a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Profile&CODE=03&MID={$member[MEMBER_ID]}">{$member[MEMBER_NAME]}</a></b></td>
<td class='forum2' nowrap width="20%">{$member[MEMBER_PIPS_IMG]}</td>
<td class='forum1' align="center" width="20%">{$member[MEMBER_GROUP]}</td>
<td class='forum2' nowrap align="center" width="20%">{$member[MEMBER_JOINED]}</td>
<td class='forum2' align="center" width="10%">{$member[MEMBER_POSTS]}</td>
<td class='forum1' align="center">{$member[MEMBER_EMAIL]}</td>
<td class='forum1' align="center">{$member[AOLNAME]}</td>
<td class='forum1' align="center">{$member[ICQNUMBER]}</td>
</tr>
<!-- End of Entry -->
EOF;
}
}
<?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;
}
}
?>
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+81 -97
View File
@@ -1,98 +1,82 @@
<?php
class skin_online {
function end($links) {
global $ibforums;
return <<<EOF
<br>
<table cellpadding='0' cellspacing='4' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td valign='middle' align='left'>{$links[SHOW_PAGES]}</td>
</tr>
</table>
EOF;
}
function show_row($session) {
global $ibforums;
return <<<EOF
<!-- Entry for {$session['member_id']} -->
<tr>
<td 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($links) {
global $ibforums;
return <<<EOF
<!-- End content Table -->
<tr>
<td colspan='4' class='category'>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table cellpadding='0' cellspacing='4' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td valign='middle' align='left'>$links</td>
</tr>
</table>
EOF;
}
function Page_header($links) {
global $ibforums;
return <<<EOF
<script language='Javascript' type='text/javascript'>
<!--
function PopUp(url, name, width,height,center,resize,scroll,posleft,postop) {
if (posleft != 0) { x = posleft }
if (postop != 0) { y = postop }
if (!scroll) { scroll = 1 }
if (!resize) { resize = 1 }
if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {
X = (screen.width - width ) / 2;
Y = (screen.height - height) / 2;
}
if (scroll != 0) { scroll = 1 }
var Win = window.open( url, name, 'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no');
}
//-->
</script>
<table cellpadding='0' cellspacing='4' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td valign='middle' align='left'>$links</td>
</tr>
</table>
<br>
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td align='left' width='30%' class='titlemedium'>{$ibforums->lang['member_name']}</td>
<td align='left' width='30%' class='titlemedium'>{$ibforums->lang['where']}</td>
<td align='center' width='20%' class='titlemedium'>{$ibforums->lang['time']}</td>
<td align='left' width='10%' class='titlemedium'>&nbsp;</td>
</tr>
EOF;
}
}
<?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;
}
}
?>
+119 -99
View File
@@ -1,100 +1,120 @@
<?php
class skin_poll {
function edit_link($tid, $fid) {
global $ibforums;
return <<<EOF
[ <a href="{$ibforums->base_url}&act=Mod&CODE=20&f=$fid&t=$tid">{$ibforums->lang['ba_edit']}</a> ]
EOF;
}
function delete_link($tid, $fid) {
global $ibforums;
return <<<EOF
[ <a href="{$ibforums->base_url}&act=Mod&CODE=22&f=$fid&t=$tid">{$ibforums->lang['ba_delete']}</a> ]
EOF;
}
function Render_row_form($votes, $id, $answer) {
global $ibforums;
return <<<EOF
<tr>
<td class='row1' colspan='3'><INPUT type="radio" name="poll_vote" value="$id">&nbsp;<b>$answer</b></td>
</tr>
EOF;
}
function ShowPoll_header($tid, $poll_q, $edit, $delete) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' width='100%' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td align='right' colspan='3' width='99%' class='titlemedium'><form action="{$ibforums->base_url}&act=Poll&t=$tid" method="post"> $edit &nbsp; $delete</td>
</tr>
<tr>
<td class='row1'>
<table cellpadding='4' cellspacing='1' border='0' align='center'>
<tr>
<td colspan='3' align='center'><b>$poll_q</b></td>
</tr>
EOF;
}
function ShowPoll_Form_header($tid, $poll_q, $edit, $delete) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' width='100%' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td align='right' colspan='3' width='99%' class='titlemedium'><form action="{$ibforums->base_url}&act=Poll&t=$tid" method="post"> $edit &nbsp; $delete</td>
</tr>
<tr>
<td class='row1'>
<table cellpadding='4' cellspacing='1' border='0' align='center'>
<tr>
<td colspan='3' align='center'><b>$poll_q</b></td>
</tr>
EOF;
}
function ShowPoll_footer($vote_button) {
global $ibforums;
return <<<EOF
</table>
</td>
<tr>
<td class='titlemedium' align='center' colspan='3'>
$vote_button</form>
</td></tr></table>
</td></tr></table>
<td class='mainbg'>
</tr>
<tr>
<td class='mainbg'>
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'><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;
}
}
<?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;
}
}
?>
File diff suppressed because it is too large. Load diff
+21 -33
View File
@@ -5,36 +5,24 @@ class skin_printpage {
function choose_form($fid, $tid, $title) {
global $ibforums;
return <<<EOF
<br>
<table width='<{tbl_width}>' border='0' cellspacing='1' cellpadding='0' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td class='mainbg'>
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
<tr>
<td width='100%' class='titlemedium'>{$ibforums->lang['tvo_title']}&nbsp;$title</td>
</tr>
<tr>
<td class='row1'>
<b><a href='{$ibforums->base_url}&act=Print&client=printer&f=$fid&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&client=html&f=$fid&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&client=wordr&f=$fid&t=$tid'>{$ibforums->lang['o_word_title']}</a></b>
<br>
{$ibforums->lang['o_word_desc']}
<br><br><br><br>
&lt;&lt;<a href='{$ibforums->base_url}&act=ST&f=$fid&t=$tid'>{$ibforums->lang['back_topic']}</a></b>
</td>
</tr>
</table>
</td>
</tr>
</table>
<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;
}
@@ -58,7 +46,7 @@ EOF;
function pp_end() {
global $ibforums;
return <<<EOF
<center><font face='arial' size='1' color='#000000'>Powered by Invision Board (http://www.invisionboard.com)<br />&copy; Invision Power Services (http://www.invisionpower.com)</font></center>
<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;
}
@@ -67,13 +55,13 @@ global $ibforums;
return <<<EOF
<html>
<head>
<title>{$ibforums->vars['board_name']} [Powered by IB Forums]</title>
<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&f=$fid&t=$tid'>{$ibforums->lang['topic_here']}</a></b></font>
<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>
+382 -144
View File
@@ -2,163 +2,401 @@
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
<tr>
<td align='left'><a href='{$info['base_url']}&act=UserCP&CODE=22'>{$ibforums->lang['edit_my_sig']}</a> |
<a href='{$info['base_url']}&act=UserCP&CODE=24'>{$ibforums->lang['edit_avatar']}</a> |
<a href='{$info['base_url']}&act=UserCP&CODE=01'>{$ibforums->lang['edit_profile']}</a></td>
</tr>
&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
<table cellpadding='0' cellspacing='1' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td><span class='pagetitle'>{$info['name']}</span></td>
</tr>
<tr>
<td align='left'><a href='{$info['base_url']}&act=Search&CODE=getalluser&mid={$info['mid']}'>{$ibforums->lang['find_posts']}</a> |
<a href='{$info['base_url']}&act=Msg&CODE=02&MID={$info['mid']}'>{$ibforums->lang['add_to_contact']}</a></td>
</tr>
<!--MEM OPTIONS-->
<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>
<table cellpadding='0' cellspacing='1' border='0' width='<{tbl_width}>' align='center'>
<br />
<table cellpadding='0' align='center' cellspacing='2' border='0' width="100%">
<tr>
<td>
<table cellpadding='0' cellspacing='1' border='0' width='100%' bgcolor='<{tbl_border}>'>
<tr>
<td width='50%' valign='top' class='row1'>
<table cellpadding='6' cellspacing='1' border='0' width='100%' class='row1'>
<tr>
<td align='center' colspan='2' class='titlemedium'>{$ibforums->lang['active_stats']}</td>
</tr>
<tr>
<td align='left' width='30%' valign='top'><b>{$ibforums->lang['total_posts']}</b></td>
<td align='left' class='bottomborder'><b>{$info['posts']}</b><br>( {$info['total_pct']}% {$ibforums->lang['total_percent']} )</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['posts_per_day']}</b></td>
<td align='left' class='bottomborder'><b>{$info['posts_day']}</b></td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['joined']}</b></td>
<td align='left' class='bottomborder'><b>{$info['joined']}</b></td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['fav_forum']}</b></td>
<td align='left'><a href='{$info['base_url']}&act=SF&f={$info['fav_id']}'>{$info['fav_forum']}</a><br>{$info['fav_posts']} {$ibforums->lang['fav_posts']}<br>( {$info['percent']}% {$ibforums->lang['fav_percent']} )</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['user_local_time']}</b></td>
<td align='left'>{$info['local_time']}</td>
</tr>
</table>
</td>
<!-- Communication -->
<td width='50%' valign='top' class='row1'>
<table cellpadding='6' cellspacing='1' border='0' width='100%' class='row1'>
<tr>
<td align='center' colspan='2' class='titlemedium'>{$ibforums->lang['communicate']}</td>
</tr>
<tr>
<td align='left' width='30%' valign='top'><b>{$ibforums->lang['email']}</b></td>
<td align='left' class='bottomborder'>{$info['email']}</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['aim']}</b></td>
<td align='left' class='bottomborder'>{$info['aim_name']}</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['icq']}</b></td>
<td align='left' class='bottomborder'>{$info['icq_number']}</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['yahoo']}</b></td>
<td align='left' class='bottomborder'>{$info['yahoo']}</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['msn']}</b></td>
<td align='left' class='bottomborder'>{$info['msn_name']}</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['pm']}</b></td>
<td align='left'><a href='{$info['base_url']}&act=Msg&CODE=4&MID={$info['mid']}'>{$ibforums->lang['click_here']}</a></td>
</tr>
</table>
</td>
<!-- END CONTENT ROW 1 -->
<!-- information -->
</tr>
<tr>
<td width='50%' valign='top' class='row1'>
<table cellpadding='6' cellspacing='1' border='0' width='100%' class='row1'>
<tr>
<td align='center' colspan='2' class='titlemedium'>{$ibforums->lang['info']}</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['homepage']}</b></td>
<td align='left' class='bottomborder'>{$info['homepage']}</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['birthday']}</b></td>
<td align='left' class='bottomborder'>{$info['birthday']}</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['location']}</b></td>
<td align='left' class='bottomborder'>{$info['location']}</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['interests']}</b></td>
<td align='left'>{$info['interests']}</td>
</tr>
<!--{CUSTOM.FIELDS}-->
</table>
</td>
<!-- Profile -->
<td width='50%' valign='top' class='row1'>
<table cellpadding='6' cellspacing='1' border='0' width='100%' class='row1'>
<tr>
<td align='center' colspan='2' class='titlemedium'>{$ibforums->lang['post_detail']}</td>
</tr>
<tr>
<td align='left' width='30%' valign='top'><b>{$ibforums->lang['mgroup']}</b></td>
<td align='left' class='bottomborder'>{$info['group_title']}</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['mtitle']}</b></td>
<td align='left' class='bottomborder'>{$info['member_title']}</td>
</tr>
<tr>
<td align='left' width='30%' valign='top'><b>{$ibforums->lang['avatar']}</b></td>
<td align='left' class='bottomborder'>{$info['avatar']}</td>
</tr>
<tr>
<td align='left' valign='top'><b>{$ibforums->lang['siggie']}</b></td>
<td align='left'>{$info['signature']}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan='2' class='row2' align='center' style='height:24px'>&lt;( <a href='javascript:history.go(-1)'>{$ibforums->lang['back']}</a> )</td>
</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>
</tr>
</table>
<!-- 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;
}
@@ -166,8 +404,8 @@ function custom_field($title, $value="") {
global $ibforums;
return <<<EOF
<tr>
<td align='left' width='30%' valign='top'><b>$title</b></td>
<td align='left' class='bottomborder'>$value</td>
<td class="row3" valign='top'><b>$title</b></td>
<td align='left' class='row1'>$value</td>
</tr>
EOF;
}
+366 -295
View File
@@ -16,19 +16,19 @@ return <<<EOF
<tr>
<td valign='middle' align='left'>
<span class='pagetitle'>{$ibforums->vars['board_name']}: {$ibforums->lang['cpf_title']}</span>
<br><br>
<br /><br />
<b><span style='font-size:12px'>{$ibforums->lang['cpf_perm_parent']}</span></b>
<br><br>
<br /><br />
{$ibforums->lang['cpf_fax']} {$ibforums->vars['coppa_fax']}
<br><br>
<br /><br />
{$ibforums->lang['cpf_address']}
<br>
<br />
{$ibforums->vars['coppa_address']}
</td>
</tr>
</table>
<br>
<br />
<table cellpadding='4' cellspacing='2' border='1' width='95%' align='center'>
<tr>
<td width='40%'>{$ibforums->lang['user_name']}</td>
@@ -43,7 +43,7 @@ return <<<EOF
<td>&nbsp;</td>
</tr>
</table>
<br>
<br />
<table cellpadding='0' cellspacing='4' border='0' width='95%' align='center'>
<tr>
<td valign='middle' align='left'>
@@ -51,7 +51,7 @@ return <<<EOF
</td>
</tr>
</table>
<br>
<br />
<table cellpadding='10' cellspacing='2' border='1' width='95%' align='center'>
<tr>
<td width='40%'>{$ibforums->lang['cpf_name']}</td>
@@ -86,334 +86,405 @@ EOF;
function coppa_two() {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' class='titlemedium'>{$ibforums->lang['cp2_title']}</td>
</tr>
<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&coppa_pass=1&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>
</td>
</tr>
</table>
<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
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' class='titlemedium'>{$ibforums->lang['coppa_info']}</td>
</tr>
<tr>
<td class='row1' align='center' style='font-weight:bold;font-size:12px'>
<br><br>
{$ibforums->lang['coppa_link']}
<br><br>
&lt; <a href='{$ibforums->base_url}&act=Reg&coppa_pass=1'>{$ibforums->lang['coppa_date_before']} $coppadate</a>
- <a href='{$ibforums->base_url}&act=Reg&CODE=coppa_two'>{$ibforums->lang['coppa_date_after']} $coppadate</a> &gt;
<br><br>&nbsp;
</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>
</td>
</tr>
</table>
<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() {
function lost_pass_form($lasid="") {
global $ibforums;
return <<<EOF
<br>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post">
<input type='hidden' name='act' value='Reg'>
<input type='hidden' name='CODE' value='11'>
<table cellpadding='0' cellspacing='4' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td valign='middle' align='left'><b>{$ibforums->lang['lp_header']}</b><br><br>{$ibforums->lang['lp_text']}</td>
</tr>
</table>
<br>
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' colspan='2' class='titlemedium'>{$ibforums->lang['complete_form']}</td>
</tr>
<tr>
<td class='row1' width='40%'>{$ibforums->lang['lp_user_name']}</td>
<td class='row1'><input type='text' size='32' maxlength='32' name='member_name' class='forminput'></td>
</tr>
<tr>
<td class='row2' align='center' colspan='2'>
<input type="submit" value="{$ibforums->lang['lp_send']}" class='forminput'>
</td></tr></table>
</td></tr></table>
</form>
<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
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' class='titlemedium'>{$ibforums->lang['registration_process']}</td>
</tr>
<tr>
<td class='row1'>{$ibforums->lang['thank_you']} {$member['name']}. {$ibforums->lang['auth_text']} {$member['email']}</td>
</tr>
</table>
</td>
</tr>
</table>
<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
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' class='titlemedium'>{$ibforums->lang['registration_process']}</td>
</tr>
<tr>
<td class='row1'>{$ibforums->lang['thank_you']} {$member['name']}. {$ibforums->lang['preview_reg_text']}</td>
</tr>
</table>
</td>
</tr>
</table>
<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'>
<!--
function Validate() {
// Check for Empty fields
if (document.REG.uid.value == "" || document.REG.aid.value == "") {
alert ("{$ibforums->lang['js_blanks']}");
return false;
}
}
//-->
</script>
<br>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='REG' onSubmit='return Validate()'>
<input type='hidden' name='act' value='Reg'>
<input type='hidden' name='CODE' value='03'>
<input type='hidden' name='type' value='$type'>
<table cellpadding='0' cellspacing='4' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td valign='middle' align='left'><b>{$ibforums->lang['dumb_header']}</b><br><br>{$ibforums->lang['dumb_text']}</td>
</tr>
</table>
<br>
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' colspan='2' class='titlemedium'>{$ibforums->lang['complete_form']}</td>
</tr>
<tr>
<td class='row1' width='40%'>{$ibforums->lang['user_id']}</td>
<td class='row1'><input type='text' size='32' maxlength='32' name='uid' class='forminput'></td>
</tr>
<tr>
<td class='row2' width='40%'>{$ibforums->lang['val_key']}</td>
<td class='row2'><input type='text' size='32' maxlength='50' name='aid' class='forminput'></td>
</tr>
<tr>
<td class='row2' align='center' colspan='2'>
<input type="submit" value="{$ibforums->lang['dumb_submit']}" class='forminput'>
</td></tr></table>
</td></tr></table>
</form>
<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'>
<!--
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;
}
<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?
// Have we checked the checkbox?
if (document.REG.agree.checked == true) {
return true;
} else {
alert ("{$ibforums->lang['js_no_check']}");
return false;
}
}
//-->
</script>
<br>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='REG' onSubmit='return Validate()'>
<input type='hidden' name='act' value='Reg'>
<input type='hidden' name='CODE' value='02'>
<input type='hidden' name='coppa_user' value='{$data['coppa_user']}'>
<table cellpadding='0' cellspacing='4' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td valign='middle' align='left'>{$ibforums->lang['reg_header']}</b><br><br>{$data['TEXT']}</td>
</tr>
</table>
<br>
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' colspan='2' class='titlemedium'>{$ibforums->lang['complete_form']}</td>
</tr>
<tr>
<td class='row1' width='40%'>{$ibforums->lang['user_name']}</td>
<td class='row1'><input type='text' size='32' maxlength='64' value='{$ibforums->input['UserName']}' name='UserName' class='forminput'></td>
</tr>
<tr>
<td class='row2' width='40%'>{$ibforums->lang['pass_word']}</td>
<td class='row2'><input type='password' size='32' maxlength='32' value='{$ibforums->input['PassWord']}' name='PassWord' class='forminput'></td>
</tr>
<tr>
<td class='row2' width='40%'>{$ibforums->lang['re_enter_pass']}</td>
<td class='row2'><input type='password' size='32' maxlength='32' value='{$ibforums->input['PassWord_Check']}' name='PassWord_Check' class='forminput'></td>
</tr>
<tr>
<td class='row1' width='40%'>{$ibforums->lang['email_address']}</td>
<td class='row1'><input type='text' size='32' maxlength='50' value='{$ibforums->input['EmailAddress']}' name='EmailAddress' class='forminput'></td>
</tr>
<tr>
<td class='row1' width='40%'>{$ibforums->lang['email_address_two']}</td>
<td class='row1'><input type='text' size='32' maxlength='50' value='{$ibforums->input['EmailAddress_two']}' name='EmailAddress_two' class='forminput'></td>
</tr>
<!--{REQUIRED.FIELDS}-->
<!--{OPTIONAL.FIELDS}-->
</table>
</td>
</tr>
</table>
<!--{REG.ANTISPAM}-->
<br>
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' class='titlemedium'>{$ibforums->lang['terms_service']}</td>
</tr>
<tr>
<td class='row1' align='center'>{$ibforums->lang['terms_service_text']}<br>
<textarea cols='75' rows='9' wrap='soft' name='Post' class='textinput' style='font-size:10px'>{$data[RULES]}</textarea>
<br><br><b>{$ibforums->lang['agree_submit']}</b>&nbsp;<input type='checkbox' name='agree' value='1'>
</td>
</tr>
<tr>
<td class='row2' align='center'>
<input type="submit" value="{$ibforums->lang['submit_form']}" class='forminput'>
</td></tr></table>
</td></tr></table>
</form>
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
<table cellpadding='0' cellspacing='1' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
<tr>
<td class='row1' valign='top' align='left'><b>{$ibforums->lang['errors_found']}</b></font><hr noshade size='1' color='<{tbl_border}>'>$data</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<div class="tableborder">
<div class="pformstrip">{$ibforums->lang['errors_found']}</div>
<div class="tablepad"><span class='postcolor'>$data</span></div>
</div>
<br />
EOF;
}
function reg_antispam($regid) {
function bot_antispam($regid) {
global $ibforums;
return <<<EOF
<br>
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' colspan='2' class='titlemedium'>{$ibforums->lang['ras_title']}</td>
</tr>
<tr>
<td class='row1' width='40%'>{$ibforums->lang['ras_numbers']}</td>
<td class='row1'>
<input type='hidden' name='regid' value='$regid'>
<img src='{$ibforums->base_url}&act=Reg&CODE=image&rc={$regid}&p=1' border='0' alt='Code Bit'>
&nbsp;<img src='{$ibforums->base_url}&act=Reg&CODE=image&rc={$regid}&p=2' border='0' alt='Code Bit'>
&nbsp;<img src='{$ibforums->base_url}&act=Reg&CODE=image&rc={$regid}&p=3' border='0' alt='Code Bit'>
&nbsp;<img src='{$ibforums->base_url}&act=Reg&CODE=image&rc={$regid}&p=4' border='0' alt='Code Bit'>
&nbsp;<img src='{$ibforums->base_url}&act=Reg&CODE=image&rc={$regid}&p=5' border='0' alt='Code Bit'>
&nbsp;<img src='{$ibforums->base_url}&act=Reg&CODE=image&rc={$regid}&p=6' border='0' alt='Code Bit'>
</td>
</tr>
<tr>
<td class='row2' width='40%'>{$ibforums->lang['ras_text']}</td>
<td class='row2'><input type='text' size='32' maxlength='32' name='reg_code' class='forminput'></td>
</tr>
</table>
</td>
</tr>
</table>
<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;
}
@@ -422,40 +493,40 @@ EOF;
function optional_title() {
global $ibforums;
return <<<EOF
<tr>
<td valign='left' colspan='2' class='titlemedium'>{$ibforums->lang['cf_optional']}</td>
</tr>
<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='row1' width='40%' valign='top'><b>$title</b><br>$desc</td>
<td class='row1'>$content</td>
</tr>
<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='50' name='$name' value='$value' class='forminput'>
<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>
<select name='$name' class='forminput'>$options</select>
EOF;
}
function field_textarea($name, $value) {
global $ibforums;
return <<<EOF
<textarea cols='60' rows='5' wrap='soft' name='$name' class='forminput'>$value</textarea>
<textarea cols='60' rows='5' name='$name' class='forminput'>$value</textarea>
EOF;
}
+417 -325
View File
@@ -3,27 +3,27 @@
class skin_search {
//
function RenderRow($Data) {
global $ibforums;
return <<<EOF
<!-- Begin Topic Entry {$Data['tid']} -->
<tr>
<td align='center' class='forum2'>{$Data['folder_img']}</td>
<td align='center' width='3%' class='forum1'>{$Data['topic_icon']}</td>
<td class='forum2'>
<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%'><span class='linkthru'>{$Data['prefix']} <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?act=ST&f={$Data['forum_id']}&t={$Data['tid']}&hl={$Data['keywords']}&s={$ibforums->session_id}' class='linkthru'>{$Data['title']}</a></span> {$Data[PAGES]}</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='forum2' width='20%' align='center'><span class="linkthru"><a href="{$ibforums->base_url}&act=SF&f={$Data['forum_id']}">{$Data['forum_name']}</a></span></td>
<td align='center' class='forum1'>{$Data['starter']}</td>
<td align='center' class='forum2'>{$Data['posts']}</td>
<td align='center' class='forum1'>{$Data['views']}</td>
<td class='forum1'>{$Data['last_post']}<br><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$Data['forum_id']}&t={$Data['tid']}&view=getlastpost'>{$Data['last_text']}</a> <b>{$Data['last_poster']}</b></td>
<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;
@@ -32,91 +32,57 @@ EOF;
function RenderPostRow($Data) {
global $ibforums;
return <<<EOF
<!-- Begin Topic Entry {$Data['tid']} -->
<tr>
<td align='center' class='titlemedium' colspan='2'>
<table cellpadding='5' cellspacing='0' width='100%' border='0'>
<tr>
<td align='left'>{$Data['folder_img']}</td>
<td align='left' width='100%'><b>{$ibforums->lang['rp_topic']} <span class='linkthru'>{$Data['prefix']} <a href='{$ibforums->base_url}&act=ST&f={$Data['forum_id']}&t={$Data['tid']}&hl={$Data['keywords']}' class='linkthru'>{$Data['title']}</a></span></b> {$Data[PAGES]}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width='150' align='left' class='posthead'><span class='normalname'>{$Data['author_name']}</span></td>
<td class='posthead'>
{$ibforums->lang['rp_forum']} <span class="linkthru"><a href="{$ibforums->base_url}&act=SF&f={$Data['forum_id']}">{$Data['forum_name']}</a></span>&nbsp;&nbsp;&nbsp;&nbsp;{$ibforums->lang['rp_postedon']} {$Data['post_date']}&nbsp;&nbsp;&nbsp;&nbsp;{$ibforums->lang['rp_post']} <a href='{$ibforums->base_url}&act=ST&f={$Data['forum_id']}&t={$Data['tid']}&hl={$Data['keywords']}&#entry{$Data['pid']}' class='linkthru'>#{$Data['pid']}</a>
</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'>{$Data['post']}</td>
</tr>
<tr>
<td class='postsep' colspan='2'><img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='1' height='1'></td>
</tr>
<!-- End Topic Entry {$Data['tid']} -->
<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
<!-- Cgi-bot Start Forum page unique top -->
<table cellpadding='0 'cellspacing='4' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td valign='middle' width='50%' nowrap align='left'>{$Data[SHOW_PAGES]}</td>
</tr>
</table>
<table cellpadding='0' cellspacing='1' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td class='mainbg'>
<table cellpadding='0' cellspacing='0' border='0' width='100%' align='center' >
<tr>
<td>
<table cellpadding='2' cellspacing='1' border='0' width='100%'>
<tr>
<td align='center' width='150' class='maintitle'>{$ibforums->lang['rp_author']}</td>
<td align='center' width='100%' class='maintitle'>{$ibforums->lang['rp_message']}</td>
</tr>
<div>{$Data[SHOW_PAGES]}</div>
EOF;
}
function end_as_post($Data) {
global $ibforums;
return <<<EOF
<tr><td colspan='2' class='titlemedium'>&nbsp;</td></tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellpadding='0 'cellspacing='4' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td valign='middle' width='50%' nowrap align='left'>{$Data[SHOW_PAGES]}</td>
</tr>
</table>
<table cellpadding='0' cellspacing='4' border='0' width='50%' align='center'>
<tr>
<td valign='middle' nowrap><{B_NEW}>&nbsp;{$ibforums->lang['pm_open_new']}</td>
<td valign='middle' nowrap><{B_HOT}>&nbsp;{$ibforums->lang['pm_hot_new']}</td>
<td valign='middle' nowrap><{B_POLL}>&nbsp;{$ibforums->lang['pm_poll']}</td>
<td valign='middle' nowrap><{B_LOCKED}>&nbsp;{$ibforums->lang['pm_locked']}</td>
</tr>
<tr>
<td valign='middle' nowrap><{B_NORM}>&nbsp;{$ibforums->lang['pm_open_no']}</td>
<td valign='middle' nowrap><{B_HOT_NN}>&nbsp;{$ibforums->lang['pm_hot_no']}</td>
<td valign='middle' nowrap><{B_POLL_NN}>&nbsp;{$ibforums->lang['pm_poll_no']}</td>
<td valign='middle' nowrap><{B_MOVED}>&nbsp;{$ibforums->lang['pm_moved']}</td>
</tr>
</table>
<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;
}
@@ -124,271 +90,397 @@ EOF;
function end($Data) {
global $ibforums;
return <<<EOF
<tr><td colspan='8' class='titlemedium'>&nbsp;</td></tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellpadding='0 'cellspacing='4' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td valign='middle' width='50%' nowrap align='left'>{$Data[SHOW_PAGES]}</td>
</tr>
</table>
<table cellpadding='0' cellspacing='4' border='0' width='50%' align='center'>
<tr>
<td valign='middle' nowrap><{B_NEW}>&nbsp;{$ibforums->lang['pm_open_new']}</td>
<td valign='middle' nowrap><{B_HOT}>&nbsp;{$ibforums->lang['pm_hot_new']}</td>
<td valign='middle' nowrap><{B_POLL}>&nbsp;{$ibforums->lang['pm_poll']}</td>
<td valign='middle' nowrap><{B_LOCKED}>&nbsp;{$ibforums->lang['pm_locked']}</td>
</tr>
<tr>
<td valign='middle' nowrap><{B_NORM}>&nbsp;{$ibforums->lang['pm_open_no']}</td>
<td valign='middle' nowrap><{B_HOT_NN}>&nbsp;{$ibforums->lang['pm_hot_no']}</td>
<td valign='middle' nowrap><{B_POLL_NN}>&nbsp;{$ibforums->lang['pm_poll_no']}</td>
<td valign='middle' nowrap><{B_MOVED}>&nbsp;{$ibforums->lang['pm_moved']}</td>
</tr>
</table>
</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 Form($forums, $cats) {
function boolean_explain_page() {
global $ibforums;
return <<<EOF
<!-- Search Form -->
<SCRIPT LANGUAGE="JavaScript">
<!--
function chooseForum() {
document.sForm.cat_forum[1].checked = true;
}
function chooseCat() {
document.sForm.cat_forum[0].checked = true;
}
//-->
</SCRIPT>
<form action="{$ibforums->base_url}&act=Search&CODE=01" method="post" name='sForm'>
$hidden_fields
<br>
<table cellpadding='0' cellspacing='1' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td colspan='2' class="maintitle" align='center'>{$ibforums->lang['keywords_title']}</td>
</tr>
<tr>
<td class='titlemedium' width='50%'><b>{$ibforums->lang['key_search']}</b></td>
<td class='titlemedium' width='50%'><b>{$ibforums->lang['mem_search']}</b></td>
</tr>
<tr>
<td class='row1' valign='top'><input type='text' maxlength='100' size='40' name='keywords' class='forminput'><br><br>{$ibforums->lang['keysearch_text']}</td>
<td class='row1' valign='top'>
<table width='100%' cellpadding='4' cellspacing='0' border='0' align='center'>
<tr>
<td colspan='2'><input type='text' maxlength='100' size='50' name='namesearch' class='forminput'></td>
</tr>
<td width='40%'>
<input name='exactname' type='radio' value='1' checked>&nbsp;{$ibforums->lang['match_name_ex']}
<br><input name='exactname' type='radio' value='0'>&nbsp;{$ibforums->lang['match_name_pa']}
</td>
<td width='60%'>
<input name='joinname' type='radio' value='1' checked>&nbsp;{$ibforums->lang['joinname_true']}
<br><input name='joinname' type='radio' value='0'>&nbsp;{$ibforums->lang['joinname_false']}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table cellpadding='0' cellspacing='1' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td colspan='2' class="maintitle" align='center'>{$ibforums->lang['search_options']}</td>
</tr>
<tr>
<td class='titlemedium' width='50%' valign='middle'><b>{$ibforums->lang['search_where']}</b></td>
<td class='titlemedium' width='50%' valign='middle'><b>{$ibforums->lang['search_refine']}</b></td>
</tr>
<tr>
<td class='row1' valign='middle'>
<table cellspacing='4' cellpadding='0' width='100%' align='center' border='0'>
<tr>
<td valign='top' width='40%' nowrap><input type='radio' name='cat_forum' value='cat'>&nbsp;<b>{$ibforums->lang['search_cats']}</b></td>
<td valign='top' width='60%'>$cats</td>
</tr>
<tr>
<td valign='top' nowrap><input type='radio' name='cat_forum' value='forum' checked>&nbsp;<b>{$ibforums->lang['search_forums']}</b></td>
<td valign='top'>$forums</td>
</tr>
<tr>
<td><input type='radio' name='search_in' value='posts' checked>&nbsp;{$ibforums->lang['in_posts']}<br><input type='radio' name='search_in' value='titles'>&nbsp;{$ibforums->lang['in_topics']}</td>
<td><input type='radio' name='result_type' value='topics' checked>&nbsp;{$ibforums->lang['results_topics']}<br><input type='radio' name='result_type' value='posts'>&nbsp;{$ibforums->lang['results_post']}</td>
</tr>
</table>
</td>
<td class='row1' valign='top'>
<table cellspacing='4' cellpadding='0' width='100%' align='center' border='0'>
<tr>
<td valign='top'>
<b>{$ibforums->lang['search_from']}</b>
<br>
<select name='prune' class='forminput'>
<option value='1'>{$ibforums->lang['today']}
<option value='7'>{$ibforums->lang['this_week']}
<option value='30' selected>{$ibforums->lang['this_month']}
<option value='365'>{$ibforums->lang['this_year']}
<option value='0'>{$ibforums->lang['ever']}
</select>
<br>{$ibforums->lang['and']}&nbsp;<input type='radio' name='prune_type' value='older' class='forminput' style='background-color:<{MISCBACK_ONE}>'>&nbsp;{$ibforums->lang['older']}&nbsp;<input type='radio' name='prune_type' value='newer' class='forminput' style='background-color:<{MISCBACK_ONE}>' checked>&nbsp;{$ibforums->lang['newer']}
</td>
<td valign='top'>
<b>{$ibforums->lang['sort_results']}</b><br>
<select name='sort_key' class='forminput'>
<option value='last_post'>{$ibforums->lang['last_date']}</option>
<option value='posts'>{$ibforums->lang['number_topics']}</option>
<option value='starter_name'>{$ibforums->lang['poster_name']}</option>
<option value='forum_id'>{$ibforums->lang['forum_name']}</option>
</select>
<br><input type='radio' name='sort_order' value='desc' checked>{$ibforums->lang['descending']}
<br><input type='radio' name='sort_order' value='asc''>{$ibforums->lang['ascending']}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='row1' colspan='2' align='center'><input type='submit' value='{$ibforums->lang['do_search']}' class='forminput'></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<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 active_start($Data) {
function result_simple_header($data) {
global $ibforums;
return <<<EOF
<script language='Javascript'>
<!--
function checkvalues() {
f = document.dateline;
if (f.st_day.value < f.end_day.value) {
alert("{$ibforums->lang['active_js_error']}");
return false;
}
if (f.st_day.value == f.end_day.value) {
alert("{$ibforums->lang['active_js_error']}");
return false;
}
}
-->
</script>
<br>
<table cellpadding='0 'cellspacing='4' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td valign='middle' nowrap align='left'><span class='pagetitle'>{$ibforums->lang['active_topics']}</span><br>{$Data[SHOW_PAGES]}</td>
<td valign='middle' align='right'>
<form action='{$ibforums->base_url}&act=Search&CODE=getactive' method='POST' name='dateline' onSubmit='return checkvalues();'>
</td>
</tr>
</table>
<table cellpadding='2' cellspacing='0' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td class='maintitle' align='center'>
{$ibforums->lang['active_st_text']}
<select name='st_day' class='forminput'>
<option value='s1'>{$ibforums->lang['active_yesterday']}</option>
<option value='s2'>2 {$ibforums->lang['active_days']}</option>
<option value='s3'>3 {$ibforums->lang['active_days']}</option>
<option value='s4'>4 {$ibforums->lang['active_days']}</option>
<option value='s5'>5 {$ibforums->lang['active_days']}</option>
<option value='s6'>6 {$ibforums->lang['active_days']}</option>
<option value='s7'>{$ibforums->lang['active_week']}</option>
<option value='s30'>{$ibforums->lang['active_month']}</option>
</select>
&nbsp;&nbsp;{$ibforums->lang['active_end_text']}&nbsp;&nbsp;
<select name='end_day' class='forminput'>
<option value='e0'>{$ibforums->lang['active_today']}</option>
<option value='e1'>{$ibforums->lang['active_yesterday']}</option>
<option value='e2'>2 {$ibforums->lang['active_days']}</option>
<option value='e3'>3 {$ibforums->lang['active_days']}</option>
<option value='e4'>4 {$ibforums->lang['active_days']}</option>
<option value='e5'>5 {$ibforums->lang['active_days']}</option>
<option value='e6'>6 {$ibforums->lang['active_days']}</option>
<option value='e7'>{$ibforums->lang['active_week']}</option>
</select>
&nbsp;&nbsp;<input type='submit' value='&gt;&gt;' class='forminput'></form>
</td>
</tr>
<tr>
<td>
<table cellpadding='0' cellspacing='0' border='0' width='100%' align='center'>
<tr>
<td class='mainbg'>
<table cellpadding='4' cellspacing='1' border='0' 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>
<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
<!-- Cgi-bot Start Forum page unique top -->
<table cellpadding='0 'cellspacing='4' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td valign='middle' width='50%' nowrap align='left'>{$Data[SHOW_PAGES]}</td>
</tr>
</table>
<table cellpadding='1' cellspacing='0' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' border='0' width='100%' align='center'>
<tr>
<td class='mainbg'>
<table cellpadding='2' cellspacing='1' border='0' 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>
<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'><b>{$ibforums->lang['active_no_topics']}</b></td></tr>
<tr><td colspan='8' class='row1' align='center'><strong>{$ibforums->lang['active_no_topics']}</strong></td></tr>
EOF;
}
+81 -77
View File
@@ -14,22 +14,18 @@ return <<<EOF
var tid = '$tid';
var fid = '$fid';
opener.location= '$ibforums->base_url' + '&act=ST&f=' + fid + '&t=' + tid;
opener.location= '$ibforums->base_url' + 'showtopic=' + tid;
self.close();
}
//-->
</script>
<table cellpadding='0' cellspacing='0' border='0' width='100%' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
<tr>
<td colspan='2' class='titlemedium' align='center' >{$ibforums->lang['who_farted']} $title</td>
</tr>
<tr>
<td width='70%' align='left' class='category' valign='middle'>{$ibforums->lang['who_poster']}</td>
<td width='30%' align='center' class='category' valign='middle'>{$ibforums->lang['who_posts']}</td>
</tr>
<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;
}
@@ -37,18 +33,17 @@ 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>
<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}&act=Profile&MID=$id' target='_blank'>$name</a>
<a href='{$ibforums->base_url}showuser=$id' target='_blank'>$name</a>
EOF;
}
@@ -56,13 +51,9 @@ EOF;
function who_end() {
global $ibforums;
return <<<EOF
<tr>
<td colspan='2' align='center' class='titlemedium' valign='middle'><a href='javascript:bog_off();'>{$ibforums->lang['who_go']}</a></td>
</tr>
</table>
</td>
</tr>
</table>
</table>
<div class='titlemedium' align='center'><a href='javascript:bog_off();'>{$ibforums->lang['who_go']}</a></div>
</div>
EOF;
}
@@ -82,94 +73,107 @@ EOF;
function group_strip( $group ) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
<tr>
<td colspan='4' class='titlemedium' align='center' >$group</td>
</tr>
<tr>
<td width='30%' align='left' class='category' valign='middle'>{$ibforums->lang['leader_name']}</td>
<td width='40%' align='center' class='category' valign='middle'>{$ibforums->lang['leader_forums']}</td>
<td align='center' width='25%' class='category' valign='middle'>{$ibforums->lang['leader_location']}</td>
<td align='center' width='5%' class='category' valign='middle'>&nbsp;</td>
</tr>
<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}&act=Profile&MID={$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='row2' valign='middle'>{$info['msg_icon']}</td>
</tr>
<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>
</td>
</tr>
</table>
<br>
</table>
</div>
<br />
EOF;
}
function top_poster_header() {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
<tr>
<td width='30%' align='left' class='titlemedium' valign='middle'>{$ibforums->lang['member']}</td>
<td width='20%' align='center' class='titlemedium' valign='middle'>{$ibforums->lang['member_joined']}</td>
<td align='center' width='15%' class='titlemedium' valign='middle'>{$ibforums->lang['member_posts']}</td>
<td align='center' width='15%' class='titlemedium' valign='middle'>{$ibforums->lang['member_today']}</td>
<td align='center' width='20%' class='titlemedium' valign='middle'>{$ibforums->lang['member_percent']}</td>
</tr>
<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}&act=Profile&MID={$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='row2' valign='middle'>{$info['tpost']}</td>
<td align='center' class='row2' valign='middle'>{$info['today_pct']}%</td>
</tr>
<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
<tr>
<td colspan='5' align='center' class='titlemedium' valign='middle'>{$ibforums->lang['total_today']} $info</td>
</tr>
</table>
</td>
</tr>
</table>
</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>
<tr>
<td colspan='5' align='center' class='row1' valign='middle'>{$ibforums->lang['no_info']}</td>
</tr>
EOF;
}
+550
View File
@@ -0,0 +1,550 @@
<?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;
}
}
?>
+409 -290
View File
@@ -1,291 +1,410 @@
<?php
class skin_topic {
function report_link($data) {
global $ibforums;
return <<<EOF
<span class='desc'><a href='{$ibforums->base_url}&act=report&f={$data['forum_id']}&t={$data['topic_id']}&p={$data['pid']}&st={$ibforums->input['st']}'>{$ibforums->lang['snitch_geezer_to_a_copper']}</a></span>
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&f=$fid&t=$tid&view=getnewpost'>{$ibforums->lang['go_new_post']}</a> )
EOF;
}
function Mod_Panel($data, $fid, $tid) {
global $ibforums;
return <<<EOF
<!--<table cellpadding='0' cellspacing='0' width='100%' border='0' align='right'>
<tr>
<td align='right'>-->
<form method='POST' style='display:inline' name='modform' action='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='t' value='$tid'>
<input type='hidden' name='f' value='$fid'>
<input type='hidden' name='st' value='{$ibforums->input['st']}'>
<input type='hidden' name='act' value='Mod'>
<select name='CODE' class='forminput' 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>
<!--</td>
</tr>
</table>-->
EOF;
}
function mod_wrapper($id="", $text="") {
global $ibforums;
return <<<EOF
<option value='$id'>$text</option>
EOF;
}
function TableFooter($data) {
global $ibforums;
return <<<EOF
</table></td>
</tr>
<tr>
<td class='mainbg'>
<!--IBF.TOPIC_ACTIVE-->
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
<tr>
<td class='titlemedium' width='100%'>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td align='left'><b>{$ibforums->lang['topic_stats']}</b></td>
<td align='right'><b><a href='{$ibforums->base_url}&act=Track&f={$data['FORUM']['id']}&t={$data['TOPIC']['tid']}'>{$ibforums->lang['track_topic']}</a> |
<a href='{$ibforums->base_url}&act=Forward&f={$data['FORUM']['id']}&t={$data['TOPIC']['tid']}'>{$ibforums->lang['forward']}</a> |
<a href='{$ibforums->base_url}&act=Print&client=printer&f={$data['FORUM']['id']}&t={$data['TOPIC']['tid']}'>{$ibforums->lang['print']}</a></b></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width='<{tbl_width}>' align='center' border='0' cellspacing='0' cellpadding='4'>
<tr>
<td width='100%'>{$data[TOPIC][SHOW_PAGES]}
<br>&lt;&lt; <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=SF&f={$data['FORUM']['id']}'>Back to {$data['FORUM']['name']}</a></td>
<td align='right' nowrap>{$data[TOPIC][REPLY_BUTTON]}<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Post&CODE=00&f={$data[FORUM]['id']}' title='{$ibforums->lang['start_new_topic']}'><{A_POST}></a>{$data[TOPIC][POLL_BUTTON]}</td>
</tr>
</table>
<br>
<table width='<{tbl_width}>' align='center' border='0' cellspacing='0' cellpadding='3'>
<tr>
<td width='60%' align='left'>
<!--IBF.EMAIL_OPTIONS-->
</td>
<td width='40%' align='right' nowrap valign='top'>{$data[FORUM]['JUMP']}<br><br><!--IBF.MOD_PANEL--></td>
</tr>
</table>
<br>
EOF;
}
function email_options($tid, $fid) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='0' width='80%' align='left' border='0'>
<tr>
<td>
<b><a href='{$ibforums->base_url}&act=Track&f=$fid&t=$tid'>{$ibforums->lang['tt_title']}</a></b>
<br>{$ibforums->lang['tt_desc']}
<br><br>
<b><a href='{$ibforums->base_url}&act=Track&f=$fid&type=forum'>{$ibforums->lang['ft_title']}</a></b>
<br>{$ibforums->lang['ft_desc']}
<br><br>
<b><a href='{$ibforums->base_url}&act=Print&client=choose&f=$fid&t=$tid'>{$ibforums->lang['av_title']}</a></b>
<br>{$ibforums->lang['av_desc']}
</td>
</tr>
</table>
EOF;
}
function RenderRow($data) {
global $ibforums;
return <<<EOF
<!--Begin Msg Number {$data[POST]['pid']}-->
<tr>
<td valign='middle' class='posthead'><a name='entry{$data[POST]['pid']}'></a><span class='{$data[POST]['name_css']}'>{$data[POSTER]['name']}</span></td>
<td class='posthead' valign='top'>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td class='posthead'>{$data[POST]['post_icon']}<span class='postdetails'><b>{$ibforums->lang['posted_on']}</b> {$data[POST]['post_date']}</span></td>
<td class='posthead' align='right'>{$data[POST]['delete_button']}{$data[POST]['edit_button']}<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Post&CODE=06&f={$ibforums->input[f]}&t={$ibforums->input[t]}&p={$data[POST]['pid']}'><{P_QUOTE}></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign='top' class='{$data['POST']['post_css']}'>
<span class='postdetails'>{$data[POSTER]['avatar']}<br><br>
{$data[POSTER]['title']}<br>
{$data[POSTER]['member_rank_img']}<br><br>
{$data[POSTER]['member_group']}<br>
{$data[POSTER]['member_posts']}<br>
{$data[POSTER]['member_number']}<br>
{$data[POSTER]['member_joined']}<br>
{$data[POSTER][WARN_GFX]}<br><br></span>
<img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='160' height='1'><br>
</td>
<td width='100%' valign='top' class='{$data['POST']['post_css']}'><span class='postcolor'>{$data[POST]['post']} {$data[POST]['attachment']} {$data[POST]['signature']}</td>
</tr>
<tr>
<td class='postfoot' align='left'>{$data[POST]['ip_address']}&nbsp;</td>
<td class='postfoot' nowrap align='left'>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td class='postfoot' align='left' valign='middle' nowrap>{$data[POSTER]['message_icon']}{$data[POSTER]['email_icon']}{$data[POSTER]['website_icon']}{$data[POSTER]['icq_icon']}{$data[POSTER]['aol_icon']}{$data[POSTER]['yahoo_icon']}{$data[POSTER]['msn_icon']}</td>
<td class='postfoot' valign='middle' align='right'>{$data[POST]['report_link']}&nbsp;</td>
<td class='postfoot' valign='middle' align='right' width='2%'><a href='javascript:scroll(0,0);'><img src='{$ibforums->vars['img_url']}/p_up.gif' alt='Top' border='0'></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='postsep' colspan='2'><img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='1' height='1'></td>
</tr>
<!-- end Message -->
EOF;
}
function PageTop($data) {
global $ibforums;
return <<<EOF
<script language='javascript'>
<!--
function delete_post(theURL) {
if (confirm('{$ibforums->lang['js_del_1']}')) {
window.location.href=theURL;
}
else {
alert ('{$ibforums->lang['js_del_2']}');
}
}
function PopUp(url, name, width,height,center,resize,scroll,posleft,postop) {
if (posleft != 0) { x = posleft }
if (postop != 0) { y = postop }
if (!scroll) { scroll = 1 }
if (!resize) { resize = 1 }
if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {
X = (screen.width - width ) / 2;
Y = (screen.height - height) / 2;
}
if (scroll != 0) { scroll = 1 }
var Win = window.open( url, name, 'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no');
}
//-->
</script>
<a name='top'></a>
<!-- Cgi-bot Start Forum page unique top -->
<table width='<{tbl_width}>' border='0' cellspacing='0' cellpadding='4' align='center'>
<tr>
<td width='100%'>{$data['TOPIC']['SHOW_PAGES']}&nbsp;{$data['TOPIC']['go_new']}</td>
<td align='right' nowrap>{$data[TOPIC][REPLY_BUTTON]}<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Post&CODE=00&f={$data[FORUM]['id']}' title='{$ibforums->lang['start_new_topic']}'><{A_POST}></a>{$data[TOPIC][POLL_BUTTON]}</td>
</tr>
</table>
<table width='<{tbl_width}>' border='0' cellspacing='1' cellpadding='0' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td class='maintitle'>
<table width='100%' border='0' cellspacing='0' cellpadding='3'>
<tr>
<td><img src='{$ibforums->vars['img_url']}/nav_m.gif' alt='' width='8' height='8'></td>
<td width='100%' class='maintitle'><b>{$data['TOPIC']['title']}</b>{$data['TOPIC']['description']}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='mainbg'>
<!--{IBF.POLL}-->
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
<tr>
<td width='100%' class='titlemedium' nowrap colspan="2">
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td align='left'><b>&laquo; <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$data[FORUM]['id']}&t={$data[TOPIC]['tid']}&view=old'>{$ibforums->lang['t_old']}</a> | <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$data[FORUM]['id']}&t={$data[TOPIC]['tid']}&view=new'>{$ibforums->lang['t_new']}</a> &raquo;</b></td>
<td align='right'><b>
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Track&f={$data['FORUM']['id']}&t={$data['TOPIC']['tid']}'>{$ibforums->lang['track_topic']}</a> |
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Forward&f={$data['FORUM']['id']}&t={$data['TOPIC']['tid']}'>{$ibforums->lang['forward']}</a> |
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Print&client=printer&f={$data['FORUM']['id']}&t={$data['TOPIC']['tid']}'>{$ibforums->lang['print']}</a></b></td>
</tr>
</table>
</td>
</tr>
<!-- Cgi-bot End Forum page unique top -->
EOF;
}
function topic_active_users($active=array()) {
global $ibforums;
return <<<EOF
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
<tr>
<td class='titlemedium' align='left'>{$ibforums->lang['active_users_title']} ({$ibforums->lang['active_users_detail']})</td>
</tr>
<tr>
<td class='forum1'><b>{$ibforums->lang['active_users_members']}</b> {$active['names']}</td>
</tr>
</table>
EOF;
}
function Show_attachments_img($data) {
global $ibforums;
return <<<EOF
<br><br><center><b>{$ibforums->lang['pic_attach']}</b></center><br>
<table cellpadding='4' cellspacing='0' border='0' width='50%' align='center' class='fancyborder'>
<tr>
<td valign='middle' align='center'><img src='{$ibforums->vars['upload_url']}/{$data['file_name']}' border='0' alt='{$ibforums->lang['pic_attach']}'></td>
</tr>
</table>
<p>
EOF;
}
function Show_attachments($data) {
global $ibforums;
return <<<EOF
<br><br>
<table cellpadding='4' cellspacing='0' border='0' width='50%' align='center' class='fancyborder'>
<tr>
<td align='right' valign='middle' rowspan='2'><img src='{$ibforums->vars['mime_img']}/{$data['image']}' border='0' alt='User Attached Image'></td>
<td align='left'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Attach&type=post&id={$data['pid']}' target='_blank'>{$ibforums->lang['attach_dl']}</a></td>
</tr>
<tr>
<td align='left' valign='middle' width='98%'>{$data['name']} ( {$ibforums->lang['attach_hits']}: {$data['hits']} )</td>
</tr>
</table>
<br><br>
EOF;
}
}
<?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
+127 -25
View File
@@ -2,15 +2,17 @@
/*
+--------------------------------------------------------------------------
| IBFORUMS v1
| Invision Power Board v1.3 Final
| ========================================
| by Matthew Mecham and David Baxter
| (c) 2001,2002 IBForums
| http://www.ibforums.com
| by Matthew Mecham
| (c) 2001 - 2003 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: Sun, 04 Jan 2004 00:30:16 GMT
| Release: 28e7bfb25f08ac72a789cb1b172fa185
| Email: matt@invisionpower.com
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
|
| > Admin wrapper script
@@ -31,7 +33,7 @@ $is_on_tripod = 0;
// Root path
$root_path = "./";
define( 'ROOT_PATH', './' );
// Check IP address to see if they match?
// this may cause problems for users on proxies
@@ -43,8 +45,13 @@ $check_ip = 1;
// in the admin center?
$use_gzip = 1;
// Enable module usage?
// (Vital for some mods and IPB enhancements)
define ( 'USE_MODULES', 1 );
/*-----------------------------------------------
NO USER EDITABLE SECTIONS BELOW
------------------------------------------------*/
@@ -52,6 +59,8 @@ $use_gzip = 1;
error_reporting (E_ERROR | E_WARNING | E_PARSE);
set_magic_quotes_runtime(0);
define ( 'IN_ACP', 1 );
if ( $is_on_tripod != 1 )
{
if (function_exists('ini_get'))
@@ -97,14 +106,22 @@ class Debug {
class info {
var $vars = "";
var $version = '1.0';
var $vars = "";
var $version = '1.3';
var $acpversion = '13005';
var $base_url = '';
function info($INFO)
{
//global $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';
$this->base_url = $INFO['board_url']."/index.".$INFO['php_ext'].'?';
}
}
@@ -114,7 +131,7 @@ class info {
Import $INFO
------------------------------------------------*/
require $root_path."conf_global.php";
require ROOT_PATH."conf_global.php";
$ibforums = new info($INFO);
@@ -140,7 +157,7 @@ $PassWord = "";
Load up our classes (compiled into one package)
------------------------------------------------*/
require $root_path."sources/functions.php";
require ROOT_PATH."sources/functions.php";
$std = new FUNC;
@@ -152,26 +169,30 @@ $IN = $std->parse_incoming();
$IN['AD_SESS'] = $HTTP_POST_VARS['adsess'] ? $HTTP_POST_VARS['adsess'] : $HTTP_GET_VARS['adsess'];
$IN['AD_SESS'] = $std->clean_value( $IN['AD_SESS'] );
/*-----------------------------------------------
Import $PAGES and $CATS
------------------------------------------------*/
require $root_path."sources/Admin/admin_pages.php";
require ROOT_PATH."sources/Admin/admin_pages.php";
/*-----------------------------------------------
Import Skinable elements
------------------------------------------------*/
require $root_path."sources/Admin/admin_skin.php";
require ROOT_PATH."sources/Admin/admin_skin.php";
$SKIN = new admin_skin();
$skin_universal = &$SKIN; //To keep functions.php happy
/*-----------------------------------------------
Import Admin Functions
------------------------------------------------*/
require $root_path."sources/Admin/admin_functions.php";
require ROOT_PATH."sources/Admin/admin_functions.php";
$ADMIN = new admin_functions();
@@ -181,7 +202,7 @@ $ADMIN = new admin_functions();
$INFO['sql_driver'] = !$INFO['sql_driver'] ? 'mySQL' : $INFO['sql_driver'];
$to_require = $root_path."sources/Drivers/".$INFO['sql_driver'].".php";
$to_require = ROOT_PATH."sources/Drivers/".$INFO['sql_driver'].".php";
require ($to_require);
$DB = new db_driver;
@@ -205,6 +226,30 @@ $DB->connect();
// Good eh?
//------------------------------------------------
//------------------------------------------------
// Sort out settings cookie
//------------------------------------------------
$INFO['menu'] = 0;
$INFO['tx'] = 80;
$INFO['ty'] = 40;
$INFO['preview'] = "";
if ( $cookie = $std->my_getcookie('acpprefs') )
{
list( $INFO['menu'], $INFO['tx'], $INFO['ty'], $INFO['preview'] ) = explode( ",", $cookie );
}
//------------------------------------------------
// ME 'N U!
//------------------------------------------------
if ( ! isset($IN['show']) )
{
$IN['show'] = $std->my_getcookie('acpmenu');
}
if ($IN['show'] == 'none')
{
$IN['show'] = "";
@@ -372,7 +417,9 @@ else
// DB
//----------------------------------
$DB->query("SELECT name, password, id, mgroup FROM ibf_members WHERE LOWER(name)='".strtolower($IN['username'])."'");
$username = strtolower(str_replace( '|', '&#124;', $IN['username']) );
$DB->query("SELECT name, password, id, mgroup FROM ibf_members WHERE LOWER(name)='".$username."'");
$mem = $DB->fetch_row();
if ( empty($mem['id']) )
@@ -502,7 +549,7 @@ else
function do_login($message="") {
global $IN, $DB, $ADMIN, $SKIN;
global $IN, $DB, $ADMIN, $SKIN, $std;
//-------------------------------------------------------
// Remove all out of date sessions, like a good boy. Woof.
@@ -527,6 +574,29 @@ function do_login($message="") {
//-->
</script>
";
//+------------------------------------------------------
//| SEMI-AUTO Log in ma-thingy?
//+------------------------------------------------------
$name = "";
$extra = "";
$mid = intval( $std->my_getcookie('member_id') );
if ( $mid > 0 )
{
$DB->query("SELECT m.id, m.name, m.mgroup, g.g_access_cp FROM ibf_members m, ibf_groups g WHERE m.id=$mid AND g.g_id=m.mgroup AND g.g_access_cp=1");
if ( $r = $DB->fetch_row() )
{
$name = $r['name'];
$extra = 'onload="document.theAdminForm.password.focus();"';
}
}
//+------------------------------------------------------
//| SHW DA FRM (txt msg stylee)
//+------------------------------------------------------
$ADMIN->html .= $SKIN->start_form( array( 1 => array('login', 'yes') ) );
@@ -536,7 +606,7 @@ function do_login($message="") {
$ADMIN->html .= $SKIN->start_table( "Verification Required" );
$ADMIN->html .= $SKIN->add_td_row( array( "Your Forums Username:",
"<input type='text' style='width:100%' name='username' value=''>",
"<input type='text' style='width:100%' name='username' value='$name'>",
) );
$ADMIN->html .= $SKIN->add_td_row( array( "Your Forums Password:",
@@ -546,6 +616,10 @@ function do_login($message="") {
$ADMIN->html .= $SKIN->end_form("Log in");
$ADMIN->html .= $SKIN->end_table();
$SKIN->top_extra = $extra;
$ADMIN->no_jump = 1;
$ADMIN->output();
@@ -556,7 +630,20 @@ function do_login($message="") {
function do_admin_stuff() {
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $ibforums;
global $IN, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $ibforums;
if ( $INFO['ipb_reg_number'] )
{
list( $a, $b, $c, $d, $e ) = explode( '-', $INFO['ipb_reg_number'] );
if ( strlen($e) > 9 )
{
if ( time() > $e )
{
$ADMIN->rebuild_config( array( 'ipb_reg_number' => '' ) );
}
}
}
/*----------------------------------
@@ -590,6 +677,16 @@ function do_admin_stuff() {
'adminlog' => "adminlogs",
'ips' => 'ips',
'mysql' => 'mysql',
'pin' => 'plugins',
'emaillog' => 'emaillogs',
'multimod' => 'multi_moderate',
'prefs' => "prefs",
'spiderlog' => "spiderlogs",
'warnlog' => "warnlogs",
'csite' => 'ad_dynamiclite',
'msubs' => 'subsmanager',
'mtools' => 'member_tools',
'skinfix' => 'skinfix',
);
@@ -598,7 +695,8 @@ function do_admin_stuff() {
$IN['act'] = $IN['act'] == '' ? "idx" : $IN['act'];
// Check to make sure the array key exits..
if (! isset($choice[$IN['act']]) ) {
if (! isset($choice[$IN['act']]) )
{
$IN['act'] = 'idx';
}
@@ -613,9 +711,13 @@ function do_admin_stuff() {
{
$ADMIN->menu();
}
else if ($IN['act'] == 'csite')
{
require ROOT_PATH."sources/dynamiclite/ad_dynamiclite.php";
}
else
{
require $root_path."sources/Admin/ad_".$choice[$IN['act']].".php";
require ROOT_PATH."sources/Admin/ad_".$choice[$IN['act']].".php";
}
}
+133
View File
@@ -0,0 +1,133 @@
/* 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
View File
@@ -0,0 +1 @@
<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>␍
+2 -2
View File
@@ -29,7 +29,7 @@ $INFO['member_group'] = '3';
$INFO['guest_group'] = '2';
$INFO['boardname'] = 'IBForums';
$INFO['board_desc'] = 'Website forums';
$INFO['board_name'] = 'IBForums';
$INFO['board_name'] = 'Invision Power Board';
$INFO['php_ext'] = 'php';
$INFO['board_url'] = '';
$INFO['match_browser'] = '0';
@@ -60,7 +60,7 @@ $INFO['etfilter_shout'] = '0';
$INFO['flood_control'] = '30';
$INFO['force_login'] = '0';
$INFO['show_img_upload'] = '1';
$INFO['home_name'] = 'ibforums.com';
$INFO['home_name'] = 'Site Home';
$INFO['home_url'] = 'http://localhost';
$INFO['hot_topic'] = '15';
$INFO['html_dir'] = '';
+5 -2
View File
@@ -6,10 +6,11 @@ $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' ) ,
"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' ) ,
"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 ) ,
@@ -35,6 +36,8 @@ $mime_types = array(
"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
@@ -0,0 +1,34 @@
<?
//-------------------------------------------------------------------
// 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
@@ -0,0 +1,33 @@
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.
+1
View File
@@ -0,0 +1 @@
<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>␍
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

@@ -0,0 +1,31 @@
Readme for Avatars Distributed with Invisionboard
-------------------------------------------------
The avatars distributed with Invisionboard were created by members of the Invisionboard
community. As such, the creator of each avatar is responsible for the copyright of each image.
Invisionboard does not claim to own any of the images, and any questions regarding individual
avatars should be directed to the original creator.
Author of each Avatar
----------------------
IBFstars.jpg - chrishanke
Whale.jpg - Jay144
Hammer-man.jpg - Jay144
Dolphin.jpg - Jay144
Crazyman.jpg - Jay144
Meow.gif - SoftwareX
Woof.gif - SoftwareX
Melon.gif - Adam
Leaf.gif - Adam
Golfball.gif - Adam
Fish.gif - Adam
Aeroplane.gif - Adam
No-Avatar.gif - //n2
Pow.gif - //n2
Radioactive - //n2
Wub.gif - //n2
Pink-sea.gif - Xerro
Orange-sticks.gif - Xerro
Green-haze.gif - Xerro
File renamed without changes.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 325 B

+1
View File
@@ -0,0 +1 @@
<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>␍
Binary file not shown.

Before

Width:  |  Height:  |  Size: 699 B

After

Width:  |  Height:  |  Size: 698 B

+394 -1
View File
@@ -1 +1,394 @@
//-------------------------------------------- // 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() { 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 opened tag lastindex = 0; for (i = 0 ; Line truncated
//--------------------------------------------
// Set up our simple tag open values
//--------------------------------------------
//
// Modified by Volker Puttrich to allow IE 4+
// on windows to use cursor position for inserting
// tags / smilies
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();
// Determine browser type and stuff.
// Borrowed from http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html
var myAgent = navigator.userAgent.toLowerCase();
var myVersion = parseInt(navigator.appVersion);
var is_ie = ((myAgent.indexOf("msie") != -1) && (myAgent.indexOf("opera") == -1));
var is_nav = ((myAgent.indexOf('mozilla')!=-1) && (myAgent.indexOf('spoofer')==-1)
&& (myAgent.indexOf('compatible') == -1) && (myAgent.indexOf('opera')==-1)
&& (myAgent.indexOf('webtv') ==-1) && (myAgent.indexOf('hotjava')==-1));
var is_win = ((myAgent.indexOf("win")!=-1) || (myAgent.indexOf("16bit")!=-1));
var is_mac = (myAgent.indexOf("mac")!=-1);
// 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()
{
if (bbtags[0]) {
while (bbtags[0]) {
tagRemove = popstack(bbtags)
document.REPLIER.Post.value += "[/" + tagRemove + "]";
// Change the button status
// Ensure we're not looking for FONT, SIZE or COLOR as these
// buttons don't exist, they are select lists instead.
if ( (tagRemove != 'FONT') && (tagRemove != 'SIZE') && (tagRemove != 'COLOR') )
{
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)
{
doInsert(" " + theSmilie + " ", "", false);
}
//--------------------------------------------
// ADD CODE
//--------------------------------------------
function add_code(NewCode)
{
document.REPLIER.Post.value += NewCode;
document.REPLIER.Post.focus();
}
//--------------------------------------------
// ALTER FONT
//--------------------------------------------
function alterfont(theval, thetag)
{
if (theval == 0)
return;
if(doInsert("[" + thetag + "=" + theval + "]", "[/" + thetag + "]", true))
pushstack(bbtags, thetag);
document.REPLIER.ffont.selectedIndex = 0;
document.REPLIER.fsize.selectedIndex = 0;
document.REPLIER.fcolor.selectedIndex = 0;
cstat();
}
//--------------------------------------------
// 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 != "") )
{
doInsert("[" + thetag + "]" + inserttext + "[/" + thetag + "] ", "", false);
}
}
else {
if (tagOpen == 0)
{
if(doInsert("[" + thetag + "]", "[/" + thetag + "]", true))
{
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 opened tag
lastindex = 0;
for (i = 0 ; i < bbtags.length; i++ )
{
if ( bbtags[i] == thetag )
{
lastindex = i;
}
}
// Close all tags opened up to that tag was opened
while (bbtags[lastindex])
{
tagRemove = popstack(bbtags);
doInsert("[/" + tagRemove + "]", "", false)
// Change the button status
if ( (tagRemove != 'FONT') && (tagRemove != 'SIZE') && (tagRemove != 'COLOR') )
{
eval("document.REPLIER." + tagRemove + ".value = ' " + tagRemove + " '");
eval(tagRemove + "_open = 0");
}
}
cstat();
}
}
}
function tag_list()
{
var listvalue = "init";
var thelist = "";
while ( (listvalue != "") && (listvalue != null) )
{
listvalue = prompt(list_prompt, "");
if ( (listvalue != "") && (listvalue != null) )
{
thelist = thelist+"[*]"+listvalue+"\n";
}
}
if ( thelist != "" )
{
doInsert( "[LIST]\n" + thelist + "[/LIST]\n", "", false);
}
}
function tag_url()
{
var FoundErrors = '';
var enterURL = prompt(text_enter_url, "http://");
var enterTITLE = prompt(text_enter_url_name, "My Webpage");
if (!enterURL) {
FoundErrors += " " + error_no_url;
}
if (!enterTITLE) {
FoundErrors += " " + error_no_title;
}
if (FoundErrors) {
alert("Error!"+FoundErrors);
return;
}
doInsert("[URL="+enterURL+"]"+enterTITLE+"[/URL]", "", false);
}
function tag_image()
{
var FoundErrors = '';
var enterURL = prompt(text_enter_image, "http://");
if (!enterURL) {
FoundErrors += " " + error_no_url;
}
if (FoundErrors) {
alert("Error!"+FoundErrors);
return;
}
doInsert("[IMG]"+enterURL+"[/IMG]", "", false);
}
function tag_email()
{
var emailAddress = prompt(text_enter_email, "");
if (!emailAddress) {
alert(error_no_email);
return;
}
doInsert("[EMAIL]"+emailAddress+"[/EMAIL]", "", false);
}
//--------------------------------------------
// GENERAL INSERT FUNCTION
//--------------------------------------------
// ibTag: opening tag
// ibClsTag: closing tag, used if we have selected text
// isSingle: true if we do not close the tag right now
// return value: true if the tag needs to be closed later
//
function doInsert(ibTag, ibClsTag, isSingle)
{
var isClose = false;
var obj_ta = document.REPLIER.Post;
if ( (myVersion >= 4) && is_ie && is_win) // Ensure it works for IE4up / Win only
{
if(obj_ta.isTextEdit){ // this doesn't work for NS, but it works for IE 4+ and compatible browsers
obj_ta.focus();
var sel = document.selection;
var rng = sel.createRange();
rng.colapse;
if((sel.type == "Text" || sel.type == "None") && rng != null){
if(ibClsTag != "" && rng.text.length > 0)
ibTag += rng.text + ibClsTag;
else if(isSingle)
isClose = true;
rng.text = ibTag;
}
}
else{
if(isSingle)
isClose = true;
obj_ta.value += ibTag;
}
}
else
{
if(isSingle)
isClose = true;
obj_ta.value += ibTag;
}
obj_ta.focus();
// clear multiple blanks
// obj_ta.value = obj_ta.value.replace(/ /, " ");
return isClose;
}
+1
View File
@@ -0,0 +1 @@
//-------------------------------------------- // 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
View File
Whitespace-only changes.
Loaded 100 of 290 files, more files were not shown because too many files have changed in this diff. Show more