Version 1.1.1
This commit is contained in:
1 parent
aabfdc1f57
commit
7ef3d1712a
179 files changed
+57457
-44972
No files matched your search
Vendored
BIN
Binary file not shown.
@@ -1,28 +0,0 @@
|
||||
Upgrading from 1.0.0 to 1.0.1
|
||||
-----------------------------
|
||||
|
||||
|
||||
Files to update
|
||||
----------------
|
||||
|
||||
index.php
|
||||
|
||||
sources/Boards.php
|
||||
sources/Forums.php
|
||||
sources/post.php
|
||||
|
||||
sources/lib/post_reply_post.php
|
||||
sources/lib/post_q_reply_post.php
|
||||
sources/search.php
|
||||
|
||||
sources/Admin/ad_member.php
|
||||
|
||||
|
||||
Bugs Fixed
|
||||
----------
|
||||
|
||||
Various Posting bugs fixed
|
||||
Tighter permission checking when posting
|
||||
ICQ number not being saved when editing a profile via the ACP
|
||||
Incorrect error displayed when attempting to access a forum you don't have permission for
|
||||
Shortened topic titles in board view display showing partial HTML entities (credit Chrisken)
|
||||
@@ -134,10 +134,10 @@
|
||||
<td align='left'>
|
||||
If you have a problem outside the ones solved in this guide, then don't panic!<br>
|
||||
We have a large team of trained support professionals that <b>will</b> be able to provide a solution to your problems.<br>
|
||||
Your first stop would be to open a new support ticket. The FREE ticket system is available from the <a href='http://www.invisionboard.com/members/' target='_blank'>Invision Board Member Center</a>. When starting a new ticket, please
|
||||
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 Boards". We have a large active community who have experience in maintaining their Invision Board who may be able to give you a prompt reply - our support professionals also moderate these forums and
|
||||
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>
|
||||
|
||||
@@ -145,14 +145,14 @@
|
||||
<br>Priority support entitles you to the following benefits:
|
||||
<ul>
|
||||
<li>Your support tickets will be marked priority and only Invision Board administrators will have access to those tickets.
|
||||
<li>You will be given a password to access the private support forum on our Community Forums.
|
||||
<li>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 the software for you if desired.</ul>
|
||||
<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/members/' target='_blank'>Invision Board Member Center</a>.
|
||||
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, 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.
|
||||
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>
|
||||
@@ -160,4 +160,4 @@ If you wish to contact us, please visit our <a href='http://www.invisionpower.co
|
||||
<!-- End content -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</h
|
||||
@@ -36,7 +36,7 @@
|
||||
Using your FTP client, move into the directory you wish to upload to (if you followed the above advice, move into the newly created 'forums' directory.)
|
||||
<br><br>
|
||||
Using your FTP client, create the following directories "archive_in", "archive_out", "html", "lang", "Skin", "sources", "ssi_templates", "style_images",
|
||||
"style_sheets", "style_templates" and "uploads" <span style='color:blue'>(TIP: If your FTP client supports "Drag n' Drop" which most modern clients do, you can save yourself some time and effort by
|
||||
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>
|
||||
@@ -45,7 +45,7 @@
|
||||
files and folders, upload them all - preserving the structure you have in your zip file (for example, upload the entire contents of the "html" folder on your computer to the "html" directory on the server).
|
||||
<br><br>
|
||||
Once you have finished uploading into the directories, upload the rest of the files "admin.php", "conf_global.php", "conf_mime_types.php", "index.php",
|
||||
"phpinfo.php", "sm_install.php", "ssi.php" to the same place as you created the directories earlier (into "forums" for our example).
|
||||
"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>
|
||||
@@ -101,7 +101,7 @@
|
||||
<tr>
|
||||
<td align='left'>
|
||||
The Invision Board administration control panel is a very sophisticated tool. This is where you can create new categories and forums for your board, as well
|
||||
as set bad word filters, edit emoticons, change the board colours and so on. We recommend you browse the documentation at <a href='http://www.invisionboard.com/members'>Invision Board</a> before getting attempting some of the more complex operations.
|
||||
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>
|
||||
@@ -116,7 +116,7 @@
|
||||
<br>If your website was about computers, you could enter "PC Software" as the category name. Submit the form by clicking the button at the bottom of the page.
|
||||
<br>Now we have a category to "group" the forums, lets create a forum or two.
|
||||
<br><br>Click on "New Forum" found in the same expandable menu. Choose "Normal Forum" from the drop down box and proceed.
|
||||
<br>There are many options here, which are outside the scope of this guide, for more information see the documentation at <a href='http://www.invisionboard.com/members'>Invision Board</a>. We can
|
||||
<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>
|
||||
@@ -217,6 +217,14 @@
|
||||
<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>
|
||||
@@ -226,14 +234,6 @@
|
||||
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
|
||||
<td align='center' valign='middle' bgcolor='#FFFFFF'><span style='color:red'><b>X</b></span></a>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='file.gif' border='0' alt='PHP file'></td>
|
||||
<td align='left' valign='middle' bgcolor='#FFFFFF'>phpinfo.php</td>
|
||||
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
|
||||
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
|
||||
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
|
||||
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
|
||||
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>Skin</span></td>
|
||||
@@ -282,22 +282,6 @@
|
||||
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
|
||||
<td align='center' valign='middle' bgcolor='#FFFFFF'><span style='color:red'><b>X</b></span></a>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
|
||||
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>style_sheets</span></td>
|
||||
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
|
||||
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
|
||||
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
|
||||
<td align='center' valign='middle' bgcolor='#FFFFFF'><span style='color:red'><b>X</b></span></a>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
|
||||
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>style_templates</span></td>
|
||||
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
|
||||
<td align='center' valign='middle' bgcolor='#FFFFFF'>0755</a>
|
||||
<td align='center' valign='middle' bgcolor='#FFFFFF'>-</a>
|
||||
<td align='center' valign='middle' bgcolor='#FFFFFF'><span style='color:red'><b>X</b></span></a>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='center' valign='middle' bgcolor='#FFFFFF'><img src='folder.gif' border='0' alt='folder'></td>
|
||||
<td align='left' valign='middle' bgcolor='#FFFFFF'><span style='color:blue'>uploads</span></td>
|
||||
@@ -317,4 +301,4 @@
|
||||
<!-- End content -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</h
|
||||
@@ -1,92 +1,92 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
|
||||
<title>Invision Install Guide: Welcome</title>
|
||||
<style>
|
||||
BODY, TABLE { font-family: verdana, arial; font-size:12px; line-height:150% }
|
||||
.title { background-image: url(tile_back.gif); font-family:arial; font-size:18px; color:white; font-weight:bold; height:40px }
|
||||
.table1 { border:1px solid #999999 }
|
||||
.table2 { border:1px dotted #999999 }
|
||||
.menustrip { font-color:black; background-color:#EEEEEE; font-size:12px; height:24px }
|
||||
a:link, a:visited, a:active { color:#000055 }
|
||||
a:hover { color:#333377;text-decoration:underline }
|
||||
.copyright { font-size:10px }
|
||||
.header { border-bottom:1px dashed #999999; font-family:Verdana, Arial; font-weight:bold; color:#4C77B6; font-size:20px; background-color:#FEFEFE; letter-spacing:-1px }
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" topmargin='5' leftmargin='0'>
|
||||
|
||||
<!-- Start content -->
|
||||
|
||||
<a name='welcome'></a>
|
||||
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
|
||||
<tr>
|
||||
<td class='header' align='left'>Welcome to Invision Board!</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='left'>
|
||||
<br>Welcome to Invision Board, a fast, efficient, scalable community solution written in PHP and using mySQL for database storage.
|
||||
<br><br>
|
||||
This guide will help you through the installation process and get you on your way to setting up your own Invision Board.
|
||||
<br>
|
||||
Installation is very straight forward, only taking about 15 minutes from uploading the files to logging into your administration center.
|
||||
<br>
|
||||
<br>
|
||||
You will need an FTP (File Transfer Protocol) client, if you do not have one you can download <a href='http://www.smartftp.com' target='_blank'>Smart FTP for Windows</a> or
|
||||
<a href='http://www.interarchy.com' target='_blank'>InterArchy for Macintosh</a>. At the time of writing both websites have freeware or free trial versions available for download.
|
||||
<br>You do not need an indepth knowledge of PHP programming to install Invision Board, but a working knowledge of FTP functions is a plus.
|
||||
<br>
|
||||
<br>This guide assumes that you have successfully downloaded the latest release from <a href='http://www.invisionboard.com' target='_blank'>Invision Board</a> and have the Zip file "unzipped" and ready to go.
|
||||
<br>The instructions will term the zip file you downloaded as "the zip archive", the directories created by the unzipping process as "the local folders" and the directories on your website as
|
||||
"website directories" - this is to prevent confusion.
|
||||
<br><br>
|
||||
<b>If you don't know your FTP from your PHP and your CHMOD from your CHOWN, then you might wish to consider our Installation Service. For a low cost, once only fee
|
||||
- one of our installation professionals will install and set up your board for you. For more information, please visit our <a href='http://www.invisionboard.com/members/?c=priority' target='_blank'>advanced services</a> page.</b>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<a name='require'></a>
|
||||
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
|
||||
<tr>
|
||||
<td class='header' align='left'>Requirements</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='left'>The exact requirements will depend on many factors, your estimated board traffic being one.
|
||||
<br><br><b>Server Requirements</b>
|
||||
<br>
|
||||
You must have a webserver that has PHP 4.0.3 (or better) and mySQL 3.22 (or better) installed. If you are unsure whether your server has these
|
||||
programs installed, please check with your web host now. If you are capable, you can always <a href='http://www.php.net' target='_blank'>download PHP</a>
|
||||
and <a href='http://www.mysql.com' target='blank'>download mySQL</a> and install it yourself.
|
||||
<br>Invision Board works best on an Apache server, and is Apache 1 and Apache 2 savvy.
|
||||
<br><br>
|
||||
<b>General Requirements</b>
|
||||
<br>
|
||||
You <b>do not</b> need a new mySQL database as Invision Board supports table prefixes to prevent tables being overwritten.
|
||||
<br>You will also need the mySQL username and mySQL password for a mySQL user that has permission to "CREATE", "DROP" and "ALTER" tables.
|
||||
<br>You will need about 2mb of free web space and roughly 3mb of mySQL database space to allow installation and a moderately sized community.
|
||||
<br>If you are unsure on any of these points, please ask your webhost before proceeding.
|
||||
<br><br>
|
||||
<b>>> <a href='install.html' target='bottom'>Enough chit chat, lets get installing!</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br><br>
|
||||
|
||||
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
|
||||
<tr>
|
||||
<td align='center' class='copyright'>
|
||||
Invision Board, Invision Board Installation Guide © 2002 <a href='http://www.invisionpower' target='_blank'>Invision Power Services</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- End content -->
|
||||
|
||||
</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 Install Guide: Welcome</title>
|
||||
<style>
|
||||
BODY, TABLE { font-family: verdana, arial; font-size:12px; line-height:150% }
|
||||
.title { background-image: url(tile_back.gif); font-family:arial; font-size:18px; color:white; font-weight:bold; height:40px }
|
||||
.table1 { border:1px solid #999999 }
|
||||
.table2 { border:1px dotted #999999 }
|
||||
.menustrip { font-color:black; background-color:#EEEEEE; font-size:12px; height:24px }
|
||||
a:link, a:visited, a:active { color:#000055 }
|
||||
a:hover { color:#333377;text-decoration:underline }
|
||||
.copyright { font-size:10px }
|
||||
.header { border-bottom:1px dashed #999999; font-family:Verdana, Arial; font-weight:bold; color:#4C77B6; font-size:20px; background-color:#FEFEFE; letter-spacing:-1px }
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" topmargin='5' leftmargin='0'>
|
||||
|
||||
<!-- Start content -->
|
||||
|
||||
<a name='welcome'></a>
|
||||
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
|
||||
<tr>
|
||||
<td class='header' align='left'>Welcome to Invision Board!</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='left'>
|
||||
<br>Welcome to Invision Board, a fast, efficient, scalable community solution written in PHP and using mySQL for database storage.
|
||||
<br><br>
|
||||
This guide will help you through the installation process and get you on your way to setting up your own Invision Board.
|
||||
<br>
|
||||
Installation is very straight forward, only taking about 15 minutes from uploading the files to logging into your administration center.
|
||||
<br>
|
||||
<br>
|
||||
You will need an FTP (File Transfer Protocol) client, if you do not have one you can download <a href='http://www.smartftp.com' target='_blank'>Smart FTP for Windows</a> or
|
||||
<a href='http://www.interarchy.com' target='_blank'>InterArchy for Macintosh</a>. At the time of writing both websites have freeware or free trial versions available for download.
|
||||
<br>You do not need an indepth knowledge of PHP programming to install Invision Board, but a working knowledge of FTP functions is a plus.
|
||||
<br>
|
||||
<br>This guide assumes that you have successfully downloaded the latest release from <a href='http://www.invisionboard.com' target='_blank'>Invision Board</a> and have the Zip file "unzipped" and ready to go.
|
||||
<br>The instructions will term the zip file you downloaded as "the zip archive", the directories created by the unzipping process as "the local folders" and the directories on your website as
|
||||
"website directories" - this is to prevent confusion.
|
||||
<br><br>
|
||||
<b>If you don't know your FTP from your PHP and your CHMOD from your CHOWN, then you might wish to consider our Installation Service. For a low cost, once only fee
|
||||
- one of our installation professionals will install and set up your board for you. For more information, please visit our <a href='http://www.invisionboard.com/?services' target='_blank'>advanced services</a> page.</b>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<a name='require'></a>
|
||||
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
|
||||
<tr>
|
||||
<td class='header' align='left'>Requirements</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='left'>The exact requirements will depend on many factors, your estimated board traffic being one.
|
||||
<br><br><b>Server Requirements</b>
|
||||
<br>
|
||||
You must have a webserver that has PHP 4.0.3 (or better) and mySQL 3.22 (or better) installed. If you are unsure whether your server has these
|
||||
programs installed, please check with your web host now. If you are capable, you can always <a href='http://www.php.net' target='_blank'>download PHP</a>
|
||||
and <a href='http://www.mysql.com' target='blank'>download mySQL</a> and install it yourself. 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><br>
|
||||
<b>General Requirements</b>
|
||||
<br>
|
||||
You <b>do not</b> need a new mySQL database as Invision Board supports table prefixes to prevent tables being overwritten.
|
||||
<br>You will also need the mySQL username and mySQL password for a mySQL user that has permission to "CREATE", "DROP" and "ALTER" tables.
|
||||
<br>You will need about 2mb of free web space and roughly 3mb of mySQL database space to allow installation and a moderately sized community.
|
||||
<br>If you are unsure on any of these points, please ask your webhost before proceeding.
|
||||
<br><br>
|
||||
<b>>> <a href='install.html' target='bottom'>Enough chit chat, lets get installing!</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br><br>
|
||||
|
||||
<table width='95%' align='center' cellpadding='4' cellspacing='0'>
|
||||
<tr>
|
||||
<td align='center' class='copyright'>
|
||||
Invision Board, Invision Board Installation Guide © 2002 <a href='http://www.invisionpower' target='_blank'>Invision Power Services</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- End content -->
|
||||
|
||||
</body>
|
||||
</h
|
||||
File renamed without changes.
@@ -1 +0,0 @@
|
||||
INSERT INTO ibf_categories (id, position, state, name, description, image, url) VALUES (-1, NULL, NULL, '-', NULL, NULL, NULL);
INSERT INTO ibf_css (cssid, css_name, css_text) VALUES (1, 'Invision Style Sheet', NULL);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (1, ':)', 'smile.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (2, ':(', 'sad.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (3, ':D', 'biggrin.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (5, ':o', 'ohno.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (6, ':crazy:', 'crazy.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (7, ':laugh:', 'laugh.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (8, ':hmmm:', 'hmmm.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (9, ':rolleyes:', 'rolleyes.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (10, ';)', 'wink.gif', 1);
INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (11, ':p', 'tongue.gif', 1);
INSERT INTO ibf_faq (id, title, text, description) VALUES (1, 'Registration benefits', 'To be able to use all the features on this board, the administrator will probably require that you register for a member account. Registration is free and only takes a moment to complete.\r<br>\r<br>During registration, the adminstrator requires that you supply a valid email address. This is important as the administrator may require that you validate your registration via an email. If this is the case, you will be notified when registering.\r<br>In some cases, the administrator will need to approve your regsitration before you can use your member account fully. If this is the case you will be notified during registration.\r<br>\r<br>Once you have registered and logged in, you will have access to your private messenger and your control panel.\r<br>\r<br>For more information on these items, please see the relevant sections in this documentation.', 'How to register and the added benefits of being a registered member.');
INSERT INTO ibf_faq (id, title, text, description) VALUES (2, 'Cookies and cookie usage', 'Using cookies is optional, but strongly recommended. Cookies are used to track topics, showing you which topics have new replies since your last visit and to automatically log you in when you return.\r<br>\r<br>This board will also allow you to remove the long session id\'s found in the URL\'s. You can do this by entering your control panel (click the link at the top of the board) and entering the \'Board Settings\' section. It is recommended that you enable this feature because you may experience problems if your internet connection shares a proxy and you share a link with another user. If in doubt, choose to hide the session id.\r<br>\r<br><b>Clearing Cookies</b>\r<br>\r<br>You can clear the cookies at any time by clicking on the link found at the bottom of the main board page (the first page you see when returning to the board). If this does not work for you, you may need to remove the cookies manually.\r<br>\r<br><u>Removing Cookies in Internet Explorer for Windows</u>\r<br>\r<br><ul>\r<br><li> Close all open Internet Explorer Windows\r<br><li> Click on the \'start\' button\r<br><li> Move up to \'Find\' and click on \'Files and Folders\'\r<br><li> When the new window appears, type in the domain name of the board you are using into the \'containing text\' field. (If the boards address was \'http://www.invisionboard.com/forums/index.php\' you would enter \'invisionboard.com\' without the quotes)\r<br><li> In the \'look in\' box, type in <b>C:\Windows\Cookies</b> and press \'Find Now\'\r<br><li> After it has finished searching, highlight all files (click on a file then press CTRL+A) and delete them.\r<br></ul>\r<br>\r<br><u>Removing Cookies in Internet Explorer for Macintosh</u>\r<br>\r<br><ul>\r<br><li> With Internet Explorer active, choose \'Edit\' and then \'Preferences\' from the Macintosh menu bar at the top of the screen\r<br><li> When the preferences panel opens, choose \'Cookies\' found in the \'Receiving Files\' section.\r<br><li> When the cookie pane loads, look for the domain name of the board (If the boards address was \'http://www.invisionboard.com/forums/index.php\' look for \'invisionboard.com\' or \'www.invisionboard.com\'\r<br><li> For each cookie, click on the entry and press the delete button.\r<br></ul>\r<br>\r<br>Your cookies should now be removed. In some cases you may need to restart your computer for the changes to take effect.', 'The benefits of using cookies and how to remove cookies set by this board.');
INSERT INTO ibf_faq (id, title, text, description) VALUES (3, 'Recovering lost or forgotten passwords', 'Security is a big feature on this board, and to that end, all passwords are encrypted when you register.\r<br>This means that we cannot email your passwoLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
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 +1 @@
|
||||
CREATE TABLE ibf_admin_sessions (
ID varchar(32) NOT NULL default '',
IP_ADDRESS varchar(32) NOT NULL default '',
MEMBER_NAME varchar(32) NOT NULL default '',
MEMBER_ID varchar(32) NOT NULL default '',
SESSION_KEY varchar(32) NOT NULL default '',
LOCATION varchar(64) default 'index',
LOG_IN_TIME int(10) NOT NULL default '0',
RUNNING_TIME int(10) NOT NULL default '0',
PRIMARY KEY (ID)
);
CREATE TABLE ibf_attachments (
id bigint(20) NOT NULL auto_increment,
mime_type varchar(128) default NULL,
file_name varchar(64) default NULL,
PRIMARY KEY (id)
);
CREATE TABLE ibf_badwords (
wid int(3) NOT NULL auto_increment,
type varchar(250) NOT NULL default '',
swop varchar(250) default NULL,
m_exact tinyint(1) default '0',
PRIMARY KEY (wid)
);
CREATE TABLE ibf_categories (
id tinyint(3) NOT NULL default '0',
position tinyint(3) default NULL,
state varchar(10) default NULL,
name varchar(128) NOT NULL default '',
description text,
image varchar(128) default NULL,
url varchar(128) default NULL,
PRIMARY KEY (id)
);
CREATE TABLE ibf_contacts (
id bigint(20) NOT NULL auto_increment,
contact_id varchar(32) NOT NULL default '',
member_id varchar(32) NOT NULL default '',
contact_name varchar(32) NOT NULL default '',
allow_msg tinyint(1) default NULL,
contact_desc varchar(50) default NULL,
PRIMARY KEY (id)
);
CREATE TABLE ibf_css (
cssid int(10) NOT NULL auto_increment,
css_name varchar(128) NOT NULL default '',
css_text text,
PRIMARY KEY (cssid)
);
CREATE TABLE ibf_emoticons (
id smallint(3) NOT NULL auto_increment,
typed varchar(32) NOT NULL default '',
image varchar(128) NOT NULL default '',
clickable smallint(2) NOT NULL default '1',
PRIMARY KEY (id)
);
CREATE TABLE ibf_faq (
id bigint(20) NOT NULL auto_increment,
title varchar(128) NOT NULL default '',
text text,
description text NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE ibf_forums (
id smallint(5) NOT NULL default '0',
topics mediumint(6) default NULL,
posts mediumint(6) default NULL,
last_post int(10) default NULL,
last_poster_id varchar(32) default NULL,
last_poster_name varchar(32) default NULL,
name varchar(128) NOT NULL default '',
description text,
position tinyint(2) default NULL,
use_ibc tinyint(1) default NULL,
use_html tinyint(1) default NULL,
status varchar(10) default NULL,
start_perms varchar(200) default NULL,
reply_perms varchar(200) default NULL,
read_perms varchar(200) default NULL,
password varchar(32) default NULL,
category tinyint(2) NOT NULL default '0',
last_title varchar(128) default NULL,
last_id smallint(5) default NULL,
sort_key varchar(32) default NULL,
sort_order varchar(32) default NULL,
prune tinyint(3) default NULL,
show_rules tinyint(1) default NULL,
use_attach tinyint(1) default NULL,
preview_posts tinyint(1) default NULL,
allow_poll tinyint(1) NOT NULL default '1',
allow_pollbump tinyint(1) NOT NULL default '0',
inc_postcount tinyint(1) NOT NULL default '1',
skin_id int(10) default NULL,
parent_id mediumint(5) default '-1',
subwrap tinyint(1) default '0',
PRIMARY KEY (id),
KEY category (category)
);
CREATE TABLE ibf_groups (
g_id int(3) unsigned NOT NULL auto_increment,
g_view_board tinyint(1) default NULL,
g_mem_info tinyint(1) default NULL,
g_other_topics tinyint(1) default NULL,
g_use_search tinyint(1) default NULL,
g_email_friend tinyint(1) default NULL,
g_invite_friend tinyint(1) default NULL,
g_edit_profile tinyint(1) default NULL,
g_post_new_topics tinyint(1) default NULL,
g_reply_own_topics tinyint(1) default NULL,
g_reply_other_topics tinyint(1) default NULL,
g_edit_posts tinyint(1) default NULL,
g_delete_own_posts tinyint(1) default NULL,
g_open_close_posts tinyint(1) default NULL,
g_delete_own_topics tinyint(1) default NULL,
g_post_polls tinyint(1) default NULL,
g_vote_polls tinyint(1) default NULL,
g_use_pm tinyint(1) default NULL,
g_is_supmod tinyint(1) default NULL,
g_access_cp tinyint(1) default NULL,
g_title varchar(32) NOT NULL default '',
g_can_remove tinyint(1) default NULL,
g_append_edit tinyint(1) default NULL,
g_access_offline tinyint(1) default NULL,
g_avoid_q tinyint(1) default NULL,
g_avoid_flood tinyint(1) default NULL,
g_icon varchar(64) default NULL,
g_attach_max bigint(20) default NULL,
g_avatar_upload tinyint(1) default '0',
g_calendar_post tinyint(1) default '0',
prefix varchar(250) default NULL,
suffix varchar(250) default NULL,
PRIMARY KEY (g_id)
);
CREATE TABLE ibf_images (
imid int(10) NOT NULL auto_increment,
setname varchar(125) NOT NULL default '',
A_LOCKED_B varchar(250) default NULL,
A_MOVED_B varchar(250) default NULL,
A_POLL varchar(250) default NULL,
A_POLLONLY_B varchar(250) default NULL,
A_POST varchar(250) default NULL,
A_REPLY varchar(250) default NULL,
A_STAR varchar(250) default NULL,
B_HOT varchar(250) default NLine truncated
|
||||
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
|
||||
@@ -0,0 +1,177 @@
|
||||
<!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
|
||||
@@ -1,664 +0,0 @@
|
||||
<?php
|
||||
|
||||
class ModCPView {
|
||||
|
||||
|
||||
|
||||
function topic_none() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' colspan='2'><i>{$ibforums->lang['q_t_n']}</i></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function endcp() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function post_none() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' colspan='2'><i>{$ibforums->lang['q_p_n']}</i></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function end_forum_splash() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function post_form_header($count) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium' colspan='2'>{$ibforums->lang['q_posts']} $count</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function prune_form_header() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium' colspan='2'>{$ibforums->lang['search_prune']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' colspan='2'>
|
||||
<i>{$ibforums->lang['define_search']}</i>
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='theForm'>
|
||||
<input type='hidden' name='act' value='ModCP'>
|
||||
<input type='hidden' name='CODE' value='process_prune'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='f' value='$iB::IN{'f'}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_prune_cutoff']}</td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='DAYS' size='5' maxlength='10' class='forminput'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_prune_perpage']}</td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='PAGE' size='5' maxlength='10' value='20' class='forminput'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='2' align='center'><input type='button' class='forminput' value='{$ibforums->lang['prune_forum']}' onClick='check_prune();'></form></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function show_post_results($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>
|
||||
<b>{$ibforums->lang['a_topic_results']}</b><hr noshade size=1 color='{$ibforums->skin['TABLE_BORDER_COL']}'>
|
||||
{$ibforums->lang['a_topic_deleted']} {$data[DELETED]}<br><br>
|
||||
{$ibforums->lang['a_topic_approved']} {$data[APPROVED]}<br><br>
|
||||
{$ibforums->lang['a_topic_left']} {$data[LEFT]}<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function topic_header($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td><b>{$ibforums->lang['f_moderate']} {$data[FORUM_NAME]}</b><br>{$ibforums->lang['f_moderate_t']}
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='theForm'>
|
||||
<input type='hidden' name='act' value='ModCP'>
|
||||
<input type='hidden' name='CODE' value='{$data[search_type]}'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='f' value='$iB::IN{'f'}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing='1' cellpadding='0' border='0' width='95%' align='center' bgcolor='{$ibforums->skin['TABLE_BORDER_COL']}'>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing='1' cellpadding='4' border='0' width='100%' align='center'>
|
||||
<tr>
|
||||
<td width='15%' bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium'>{$ibforums->lang['tt_action']}</td>
|
||||
<td width='45%' bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium'>{$ibforums->lang['st_topic']}</td>
|
||||
<td width='5%' bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium'>{$ibforums->lang['st_posts']}</td>
|
||||
<td width='35%' bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium'>{$ibforums->lang['st_last']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function open_form_header() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium' colspan='2'>{$ibforums->lang['search_openclose']} $count</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' colspan='2'>
|
||||
<i>{$ibforums->lang['define_search']}</i>
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='theForm'>
|
||||
<input type='hidden' name='act' value='ModCP'>
|
||||
<input type='hidden' name='CODE' value='process_open'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='f' value='$iB::IN{'f'}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_topics_cutoff']}</td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='DAYS' size='5' maxlength='10' class='forminput'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_sort']}</td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><select name='ORDER' class='forminput'><option value='asc'>{$ibforums->lang['s_topics_asc']}</option><option value='desc' selected>{$ibforums->lang['s_topics_desc']}</option></select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_limit']}</td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='LIMIT' size='5' maxlength='10' class='forminput'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='2' align='center'><input type='submit' class='forminput' value='{$ibforums->lang['submit_topics']}'></form></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function render_topic_post($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='middle'><input type='hidden' name='POST_{$data[POST]}->{'ID'}' value='{$data[POST]}->{'POST_ID'}'><input type='hidden' name='TOPIC_{$data[POST]}->{'ID'}' value='{$data[TOPIC]}->{'TOPIC_ID'}'><select name='CHOICE_{$data[POST]}->{'ID'}' class='forminput'><option value='APPROVE' selected>{$ibforums->lang['c_approve']}</option>{$data[TOPIC]}->{'DELETE'}<option value='LEAVE' selected>{$ibforums->lang['c_leave']}</option></select></td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='top'>
|
||||
<table cellspacing='1' cellpadding='4' border='0' width='100%' align='center'>
|
||||
<tr>
|
||||
<td valign='top' width='15%'>{$data[POST]}->{'MEMBER_NAME'}</td>
|
||||
<td valign='top' width='85%'><b>{$ibforums->lang['ss_posted_on']}</b> {$data[POST]}->{'POST_DATE'}<hr noshade size=1 color='{$ibforums->skin['TABLE_BORDER_COL']}'>{$data[POST]}->{'POST'} ( <a href="javascript:PopUp('{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f=$iB::IN{'f'}&CODE=readpost&ID={$data[POST]}->{'ID'}','ViewPost','400','200','0','1','1','1')">{$ibforums->lang['ss_read_more']}</a> )</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function online_menu() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' id='controlpanel'>{$ibforums->lang['m_moderate']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f=$iB::IN{'f'}'>{$ibforums->lang['m_approve']}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f=$iB::IN{'f'};CODE=prune'>{$ibforums->lang['m_prune']}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f=$iB::IN{'f'};CODE=delete'>{$ibforums->lang['m_delete']}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f=$iB::IN{'f'};CODE=open'>{$ibforums->lang['m_open']}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f=$iB::IN{'f'};CODE=move'>{$ibforums->lang['m_move']}</a></td>
|
||||
</tr>
|
||||
<!-- To be added later
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' id='controlpanel'>{$ibforums->lang['m_prefs']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f=$iB::IN{'f'}'>{$ibforums->lang['m_email']}</a></td>
|
||||
</tr>
|
||||
-->
|
||||
EOF;
|
||||
}
|
||||
|
||||
function show_topic_results($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>
|
||||
<b>{$ibforums->lang['a_post_results']}</b><hr noshade size=1 color='{$ibforums->skin['TABLE_BORDER_COL']}'>
|
||||
{$ibforums->lang['a_post_deleted']} {$data[DELETED]}<br><br>
|
||||
{$ibforums->lang['a_post_approved']} {$data[APPROVED]}<br><br>
|
||||
{$ibforums->lang['a_post_left']} {$data[LEFT]}<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function main_splash() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td><b>{$ibforums->lang['mod_forum_t']}</b><br>{$ibforums->lang['mod_forum']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing='1' cellpadding='0' border='0' width='95%' align='center' bgcolor='{$ibforums->skin['TABLE_BORDER_COL']}'>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing='1' cellpadding='4' border='0' width='100%' align='center'>
|
||||
<tr>
|
||||
<td width='54%' bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium'>{$ibforums->lang['forum_name']}</td>
|
||||
<td width='6%' bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium'>{$ibforums->lang['forum_topics']}</td>
|
||||
<td width='5%' bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium'>{$ibforums->lang['forum_posts']}</td>
|
||||
<td width='35%' bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium'>{$ibforums->lang['last_post']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function move_form_header() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium' colspan='2'>{$ibforums->lang['search_move']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' colspan='2'>
|
||||
<i>{$ibforums->lang['define_search']}</i>
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='theForm'>
|
||||
<input type='hidden' name='act' value='ModCP'>
|
||||
<input type='hidden' name='CODE' value='process_move'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='f' value='$iB::IN{'f'}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_topics_cutoff']}</td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='DAYS' size='5' maxlength='10' class='forminput'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_sort']}</td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><select name='ORDER' class='forminput'><option value='asc'>{$ibforums->lang['s_topics_asc']}</option><option value='desc' selected>{$ibforums->lang['s_topics_desc']}</option></select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_limit']}</td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='LIMIT' size='5' maxlength='10' class='forminput'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='2' align='center'><input type='submit' class='forminput' value='{$ibforums->lang['submit_topics']}'></form></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function delete_form_header() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium' colspan='2'>{$ibforums->lang['search_delete']} $count</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' colspan='2'>
|
||||
<i>{$ibforums->lang['define_search']}</i>
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='theForm'>
|
||||
<input type='hidden' name='act' value='ModCP'>
|
||||
<input type='hidden' name='CODE' value='process_delete'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='f' value='$iB::IN{'f'}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_topics_cutoff']}</td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='DAYS' size='5' maxlength='10' class='forminput'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_sort']}</td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><select name='ORDER' class='forminput'><option value='asc'>{$ibforums->lang['s_topics_asc']}</option><option value='desc' selected>{$ibforums->lang['s_topics_desc']}</option></select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_limit']}</td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='LIMIT' size='5' maxlength='10' class='forminput'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='2' align='center'><input type='submit' class='forminput' value='{$ibforums->lang['submit_topics']}'></form></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function render_cat($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor="{$ibforums->skin['CAT_BACK']}" id='category' colspan='4'>{$data[CAT_NAME]}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function topic_footer() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='4' align='center'><input type='submit' value='{$ibforums->lang['process_records']}' class='forminput'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function show_move_results($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>
|
||||
<b>{$ibforums->lang['a_topic_results']}</b><hr noshade size=1 color='{$ibforums->skin['TABLE_BORDER_COL']}'>
|
||||
{$ibforums->lang['a_topic_d_left']} {$data[leave]}<br><br>
|
||||
{$ibforums->lang['a_topic_moved']} {$data[move]}<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function search_header($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td><b>{$ibforums->lang['f_moderate']} {$data[FORUM_NAME]}</b><br>{$ibforums->lang['f_moderate_t']}
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='theForm'>
|
||||
<input type='hidden' name='act' value='ModCP'>
|
||||
<input type='hidden' name='CODE' value='{$data[search_type]}'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='f' value='$iB::IN{'f'}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing='1' cellpadding='0' border='0' width='95%' align='center' bgcolor='{$ibforums->skin['TABLE_BORDER_COL']}'>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing='1' cellpadding='4' border='0' width='100%' align='center'>
|
||||
<tr>
|
||||
<td width='15%' bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium'>{$ibforums->lang['tt_action']}</td>
|
||||
<td width='85%' bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium'>{$ibforums->lang['tt_details']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function move_ops($html, $forum_name) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td><table cellspacing='0' cellpadding='4' border='0' width='100%' align='center'>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['move_topics_from']} <b>$forum_name</b> {$ibforums->lang['to']}:
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='theForm'>
|
||||
<input type='hidden' name='act' value='ModCP'>
|
||||
<input type='hidden' name='CODE' value='do_move'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='f' value='$iB::IN{'f'}'>
|
||||
</td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>$html</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><b>{$ibforums->lang['delete_old']}</b></td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>
|
||||
<select name='leave' class='forminput'>
|
||||
<option value='leave_full' selected>{$ibforums->lang['leave_locked']}
|
||||
<option value='leave_empty'>{$ibforums->lang['leave_empty']}
|
||||
<option value='delete'>{$ibforums->lang['dont_leave']}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function read_post($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table cellspacing='1' cellpadding='0' border='0' width='100%' align='center' bgcolor='{$ibforums->skin['TABLE_BORDER_COL']}'>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing='1' cellpadding='4' border='0' width='100%' align='center'>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$data[POST]}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function forum_splash($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td><b>{$ibforums->lang['f_moderate']} {$data[FORUM_NAME]}</b><br>{$ibforums->lang['f_moderate_t']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing='1' cellpadding='0' border='0' width='95%' align='center' bgcolor='{$ibforums->skin['TABLE_BORDER_COL']}'>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing='1' cellpadding='4' border='0' width='100%' align='center'>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function show_open_results($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>
|
||||
<b>{$ibforums->lang['a_topic_results']}</b><hr noshade size=1 color='{$ibforums->skin['TABLE_BORDER_COL']}'>
|
||||
{$ibforums->lang['a_topic_open']} {$data[open]}<br><br>
|
||||
{$ibforums->lang['a_topic_close']} {$data[closed]}<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function render_topic_title($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='2'>{$ibforums->lang['ss_topic_title']} <b>{$data[TOPIC_TITLE]}</b></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function render_forum($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor="{$ibforums->skin['FORUM_COL_TWO']}"><span id="linkthru"><b><a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f={$data[FORUM_ID]}">{$data[FORUM_NAME]}</a></b></span><br>{$ibforums->lang['topic_to_mod']} <b>{$data[TOPICS_NOT_APPROVED]}</b></td>
|
||||
<td bgcolor="{$ibforums->skin['FORUM_COL_ONE']}" align='center' valign='middle'>{$data[FORUM_TOPICS]}</td>
|
||||
<td bgcolor="{$ibforums->skin['FORUM_COL_ONE']}" align='center' valign='middle' id='highlight'>{$data[FORUM_POSTS]}</td>
|
||||
<td bgcolor="{$ibforums->skin['FORUM_COL_ONE']}" align="left" valign='middle'><span id='highlight'>{$data[FORUM_LAST_POST]}</span>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function render_newtopic($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='2'>{$ibforums->lang['ss_topic_title']} <b>{$data[TOPIC]}->{'TOPIC_TITLE'}</b></td>
|
||||
</tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='middle'><input type='hidden' name='R_POST_{$data[TOPIC]}->{'TOPIC_ID'}' value='{$data[POST]}->{'POST_ID'}'><input type='hidden' name='POST_{$data[TOPIC]}->{'TOPIC_ID'}' value='{$data[POST]}->{'ID'}'><select name='CHOICE_{$data[TOPIC]}->{'TOPIC_ID'}' class='forminput'><option value='APPROVE' selected>{$ibforums->lang['c_approve']}</option>{$data[TOPIC]}->{'DELETE'}<option value='LEAVE' selected>{$ibforums->lang['c_leave']}</option></select></td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='top'>
|
||||
<table cellspacing='1' cellpadding='4' border='0' width='100%' align='center'>
|
||||
<tr>
|
||||
<td valign='top' width='15%'><a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Profile&CODE=03&MID={$data[TOPIC]}->{'TOPIC_STARTER'}" target='_blank'><b>{$data[TOPIC]}->{'TOPIC_STARTER_N'}</b></a></td>
|
||||
<td valign='top' width='85%'><b>{$ibforums->lang['ss_posted_on']}</b> {$data[TOPIC]}->{'TOPIC_START_DATE'}<hr noshade size=1 color='{$ibforums->skin['TABLE_BORDER_COL']}'>{$data[POST]}->{'POST'} ( <a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Profile&CODE=03&MID={$data[TOPIC]}->{'{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f=$iB::IN{'f'}&CODE=readpost&ID={$data[POST]}->{'ID'}','ViewPost','400','200','0','1','1','1')">{$ibforums->lang['ss_read_more']}</a> )</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function topic_form() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' colspan='2'>
|
||||
<i>{$ibforums->lang['define_search']}</i>
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='theForm'>
|
||||
<input type='hidden' name='act' value='ModCP'>
|
||||
<input type='hidden' name='CODE' value='topic_search'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='f' value='$iB::IN{'f'}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_topics_cutoff']}</td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='DAYS' size='5' maxlength='10' class='forminput'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_sort']}</td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><select name='ORDER' class='forminput'><option value='asc'>{$ibforums->lang['s_topics_asc']}</option><option value='desc' selected>{$ibforums->lang['s_topics_desc']}</option></select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_limit']}</td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='LIMIT' size='5' maxlength='10' class='forminput'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='2' align='center'><input type='submit' name='TOPICS' class='forminput' value='{$ibforums->lang['submit_topics']}'></form></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function render_opentopic($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='middle'>{$data[SELECT]}</td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><span id="linkthru"><a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$data[FORUM_ID]}&t={$data[TOPIC_ID]}" target='_blank'>{$data[TOPIC_TITLE]}</a></span><br>{$data[TOPIC_DESC]}</td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' align='center' valign='middle'>{$data[TOPIC_POSTS]}</td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><span id='highlight'>{$data[TOPIC_LAST_DATE]}</span><br>{$ibforums->lang['st_by']} {$data[LAST_POSTER]}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function post_form() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' colspan='2'>
|
||||
<i>{$ibforums->lang['define_search']}</i>
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='theForm'>
|
||||
<input type='hidden' name='act' value='ModCP'>
|
||||
<input type='hidden' name='CODE' value='post_search'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='f' value='$iB::IN{'f'}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_posts_cutoff']}</td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='DAYS' size='5' maxlength='10' class='forminput'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_sort']}</td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><select name='ORDER' class='forminput'><option value='asc'>{$ibforums->lang['s_topics_asc']}</option><option value='desc' selected>{$ibforums->lang['s_topics_desc']}</option></select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_limit']}</td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='LIMIT' size='5' maxlength='10' class='forminput'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='2' align='center'><input type='submit' name='POSTS' value='{$ibforums->lang['submit_posts']}' class='forminput'></form></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function startcp() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<script langauge="javascript">
|
||||
<!--
|
||||
function check_prune() {
|
||||
var message = "{$ibforums->lang['prune_confirm']} "+document.theForm.DAYS.value+"\\n{$ibforums->lang['prune_confirm_b']}";
|
||||
if ( confirm( message ) ) {
|
||||
document.theForm.submit();
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
function PopUp(url, name, width,height,center,resize,scroll,posleft,postop) {
|
||||
if (posleft != 0) { x = posleft }
|
||||
if (postop != 0) { y = postop }
|
||||
if (!scroll) { scroll = 1 }
|
||||
if (!resize) { resize = 1 }
|
||||
if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {
|
||||
X = (screen.width - width ) / 2;
|
||||
Y = (screen.height - height) / 2;
|
||||
}
|
||||
if (scroll != 0) { scroll = 1 }
|
||||
var Win = window.open( url, name, 'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no');
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['TABLE_WIDTH']}' bgcolor='{$ibforums->skin['TABLE_BORDER_COL']}' align='center'>
|
||||
<tr>
|
||||
<td width='20%' bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='top'>
|
||||
<table cellspacing='0' cellpadding='4' border='0' width='100%' align='center'>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['TITLEBACK']}' valign='left' id='titlelarge'>{$ibforums->lang['menu']}</td>
|
||||
</tr>
|
||||
<!--menu goes here-->
|
||||
</table>
|
||||
</td>
|
||||
<td width='80%' bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='top'>
|
||||
<table cellspacing='0' cellpadding='4' border='0' width='100%' align='center'>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['TITLEBACK']}' valign='left' id='titlelarge'>{$ibforums->lang['display']}</td>
|
||||
</tr>
|
||||
<!--main content-->
|
||||
EOF;
|
||||
}
|
||||
|
||||
function show_delete_results($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>
|
||||
<b>{$ibforums->lang['a_topic_results']}</b><hr noshade size=1 color='{$ibforums->skin['TABLE_BORDER_COL']}'>
|
||||
{$ibforums->lang['a_topic_d_delete']} {$data[delete]}<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function search_footer() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='2' align='center'><input type='submit' value='{$ibforums->lang['process_records']}' class='forminput'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function topic_form_header($count) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium' colspan='2'>{$ibforums->lang['q_topics']} $count</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function offline_menu() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><b>{$ibforums->lang['menu_off']}</b></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function end_main_splash() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
@@ -1,101 +0,0 @@
|
||||
<?php
|
||||
|
||||
class ReportView {
|
||||
|
||||
|
||||
|
||||
function body() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr><!--test-->
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='top'>{$ibforums->lang['message']}<br><br><span style='font-size:12px;color:red;font-weight:bold'>{$ibforums->lang['warn']}</span></td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><textarea cols='60' rows='12' wrap='soft' name='Post' tabindex='3' class='textinput'></textarea></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function foot() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' align='center' colspan='2'>
|
||||
<input type="submit" value="{$ibforums->lang['send']}" class='forminput'>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function header($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}" method="post" name='REPLIER'>
|
||||
<input type='hidden' name='act' value='Report'>
|
||||
<input type='hidden' name='SEND' value='1'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='f' value='$iB::IN{'f'}'>
|
||||
<input type='hidden' name='t' value='$iB::IN{'t'}'>
|
||||
<input type='hidden' name='p' value='$iB::IN{'p'}'>
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['TABLE_WIDTH']}' bgcolor='{$ibforums->skin['TABLE_BORDER_COL']}' align='center'>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['TITLEBACK']}' align='left' colspan='2' id='titlemedium'>{$ibforums->lang['title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' align='left' width='20%' valign='top'><b>{$ibforums->lang['in_forum']}</b></td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' width='80%'><b>{$data[FORUM]}->{'FORUM_NAME'}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' align='left' width='20%' valign='top'><b>{$ibforums->lang['in_topic']}</b></td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' width='80%'><b>{$data[TOPIC]}->{'TOPIC_TITLE'}</b></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function sent_screen($member_name) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['TABLE_WIDTH']}' bgcolor='{$ibforums->skin['TABLE_BORDER_COL']}' align='center'>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellpadding='4' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['TITLEBACK']}' colspan='2' id='titlelarge'><b>{$ibforums->lang['email_sent']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' colspan='2' id='usermenu'><img src='{$ibforums->vars['html_url']}/images/cp_redtri.gif' border='0' height='15' width='15' align='middle' alt=''> <b>{$ibforums->lang['email_sent']}</b></td>
|
||||
</tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='middle'><img src='{$ibforums->vars['html_url']}/images/msg_sent.gif' border='0' height='32' width='32' alt=''></td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='middle'><b>{$ibforums->lang['email_sent_txt']} $member_name</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function guest() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' align='left' width='20%' valign='top'><b>{$ibforums->lang['name']}</b></td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' width='80%'><input type='text' name='name' value='' size='50' maxlength='50' class='forminput'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' align='left' width='20%' valign='top'><b>{$ibforums->lang['email']}</b></td>
|
||||
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' width='80%'><input type='text' name='email' value='' size='50' maxlength='50' class='forminput'></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
@@ -8,17 +8,27 @@ function stats_header() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<!-- Board Stats -->
|
||||
<!--IBF.QUICK_LOG_IN-->
|
||||
<br>
|
||||
<table cellpadding='2' width='{$ibforums->skin['tbl_width']}' align='center' id='solidborder'>
|
||||
<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='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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 id='titlemedium' colspan='2'>{$ibforums->lang['board_stats']}</td>
|
||||
<td class='titlemedium' colspan='2'>{$ibforums->lang['board_stats']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
@@ -27,11 +37,11 @@ function ActiveUsers($active) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td id='category' colspan='2'>$active[TOTAL] {$ibforums->lang['active_users']}</td>
|
||||
<td class='category' colspan='2'>$active[TOTAL] {$ibforums->lang['active_users']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="5%" id='forum1'>{$ibforums->skin['F_ACTIVE']}</td>
|
||||
<td id='forum2' width='95%'><b>{$active[GUESTS]}</b> {$ibforums->lang['guests']}, <b>$active[MEMBERS]</b> {$ibforums->lang['public_members']} <b>$active[ANON]</b> {$ibforums->lang['anon_members']} {$active[LINK]}<br>{$active[NAMES]}</td>
|
||||
<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;
|
||||
}
|
||||
@@ -40,11 +50,11 @@ function ShowStats($text) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td id='category' colspan='2'>{$ibforums->lang['board_stats']}</td>
|
||||
<td class='category' colspan='2'>{$ibforums->lang['board_stats']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='forum1' width='5%' valign='middle'>{$ibforums->skin['F_STATS']}</td>
|
||||
<td id='forum2' width="95%" align='left'>$text<br>{$ibforums->lang['most_online']}</td>
|
||||
<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;
|
||||
}
|
||||
@@ -53,11 +63,26 @@ function birthdays($birthusers="", $total="", $birth_lang="") {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td id='category' colspan='2'>{$ibforums->lang['birthday_header']}</td>
|
||||
<td class='category' colspan='2'>{$ibforums->lang['birthday_header']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='forum1' width='5%' valign='middle'>{$ibforums->skin['F_ACTIVE']}</td>
|
||||
<td id='forum2' width='95%'><b>$total</b> $birth_lang<br>$birthusers</td>
|
||||
<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;
|
||||
}
|
||||
@@ -92,26 +117,26 @@ EOF;
|
||||
function CatHeader_Expanded($Data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table width="{$ibforums->skin['tbl_width']}" align="center" border="0" cellspacing="1" cellpadding="0" bgcolor="{$ibforums->skin['tbl_border']}">
|
||||
<table width="<{tbl_width}>" align="center" border="0" cellspacing="1" cellpadding="0" bgcolor="<{tbl_border}>">
|
||||
<tr>
|
||||
<td id='maintitleback' background='{$ibforums->vars['img_url']}/tile_back.gif'>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3">
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="3" class='maintitle'>
|
||||
<tr>
|
||||
<td>{$ibforums->skin['CAT_IMG']}</td>
|
||||
<td width="100%" id="maintitle"><a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&c={$Data['id']}">{$Data['name']}</a></td>
|
||||
<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 id='mainbg'>
|
||||
<td class='mainbg'>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="4">
|
||||
<tr>
|
||||
<td align="center" nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'><img src="{$ibforums->vars['img_url']}/spacer.gif" alt="" width="28" height="1"></td>
|
||||
<td width="59%" nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['cat_name']}</td>
|
||||
<td align="center" width="7%" nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['topics']}</td>
|
||||
<td align="center" width="7%" nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['replies']}</td>
|
||||
<td width="27%" nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['last_post_info']}</td>
|
||||
<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;
|
||||
}
|
||||
@@ -119,16 +144,17 @@ EOF;
|
||||
function subheader() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table width="{$ibforums->skin['tbl_width']}" align="center" border="0" cellspacing="1" cellpadding="0" bgcolor="{$ibforums->skin['tbl_border']}">
|
||||
<br>
|
||||
<table width="<{tbl_width}>" align="center" border="0" cellspacing="1" cellpadding="0" bgcolor="<{tbl_border}>">
|
||||
<tr>
|
||||
<td id='mainbg'>
|
||||
<td class='mainbg'>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="4">
|
||||
<tr>
|
||||
<td align="center" nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'><img src="{$ibforums->vars['img_url']}/spacer.gif" alt="" width="28" height="1"></td>
|
||||
<td width="59%" nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['cat_name']}</td>
|
||||
<td align="center" width="7%" nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['topics']}</td>
|
||||
<td align="center" width="7%" nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['replies']}</td>
|
||||
<td width="27%" nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['last_post_info']}</td>
|
||||
<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;
|
||||
}
|
||||
@@ -137,7 +163,7 @@ function end_this_cat() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td id='mainfoot' colspan="5"> </td>
|
||||
<td class='mainfoot' colspan="5"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -150,10 +176,7 @@ EOF;
|
||||
function end_all_cats() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<!--</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>-->
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
@@ -167,17 +190,30 @@ EOF;
|
||||
function PageTop($lastvisit) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table cellpadding='4' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
|
||||
<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'>
|
||||
<a href='{$ibforums->base_url}&act=Stats&CODE=leaders'>{$ibforums->lang['sm_forum_leaders']}</a> |
|
||||
<a href='{$ibforums->base_url}&act=Search&CODE=getactive'>{$ibforums->lang['sm_todays_posts']}</a><br>
|
||||
<a href='{$ibforums->base_url}&act=Stats'>{$ibforums->lang['sm_today_posters']}</a> |
|
||||
<a href='{$ibforums->base_url}&act=Members&max_results=10&sort_key=posts&sort_order=desc'>{$ibforums->lang['sm_all_posters']}</a>
|
||||
<td align='right' valign='bottom'> </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;
|
||||
}
|
||||
|
||||
@@ -186,11 +222,11 @@ global $ibforums;
|
||||
return <<<EOF
|
||||
<!-- Forum {$info['id']} entry -->
|
||||
<tr>
|
||||
<td id="forum2" align="center">{$info['img_new_post']}</td>
|
||||
<td id="forum2" width="59%"><span id="linkthru"><b><a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=SF&f={$info['id']}">{$info['name']}</a></b></span><br><span id='desc'>{$info['description']}</span><br>{$info['moderator']}</td>
|
||||
<td id="forum1" align="center" width="7%">{$info['topics']}</td>
|
||||
<td id="forum1" align="center" width="7%">{$info['posts']}</td>
|
||||
<td id="forum1" width="27%">{$info['last_post']}<br>{$ibforums->lang['in']}: {$info['last_topic']}<br>{$ibforums->lang['by']}: {$info['last_poster']}</td>
|
||||
<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;
|
||||
|
||||
@@ -0,0 +1,222 @@
|
||||
<?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']} [ <a href='javascript:shrink()' style='text-decoration:none'>-</a> <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'> <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'> <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;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,274 @@
|
||||
<?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'> <b>{$ibforums->lang['event_date']} {$event['mday']} {$event['month_text']} {$event['year']}</b> [ <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'>
|
||||
<< <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'>
|
||||
<< <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'>
|
||||
< <a href='{$ibforums->base_url}&act=calendar&m={$prev['month_id']}&y={$prev['year_id']}'>{$prev['month_name']} {$prev['year_id']}</a>
|
||||
<a href='{$ibforums->base_url}&act=calendar&m={$next['month_id']}&y={$next['year_id']}'>{$next['month_name']} {$next['year_id']}</a> >
|
||||
</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> <select name='y' class='forminput'><!--IBF.YEAR_BOX--></select> <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'>
|
||||
< <a href='{$ibforums->base_url}&act=calendar&m={$prev['month_id']}&y={$prev['year_id']}'>{$prev['month_name']} {$prev['year_id']}</a>
|
||||
<a href='{$ibforums->base_url}&act=calendar&m={$next['month_id']}&y={$next['year_id']}'>{$next['month_name']} {$next['year_id']}</a> >
|
||||
</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;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
+116
-39
@@ -3,6 +3,83 @@
|
||||
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;
|
||||
@@ -11,19 +88,19 @@ return <<<EOF
|
||||
<INPUT TYPE="hidden" NAME="subject" VALUE="From WebPager Panel">
|
||||
<input type="hidden" name="to" value="{$data[UIN]}">
|
||||
<tr>
|
||||
<td id='row2'' align='left'><b>{$ibforums->lang['name']}</b></td>
|
||||
<td id='row2'' align='left'><input type='text' name='from' value='{$ibforums->member['name']}' size='40' class='forminput' onMouseOver="this.focus()" onFocus="this.select()"></td>
|
||||
<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 id='row2'' align='left'><b>{$ibforums->lang['email']}</b></td>
|
||||
<td id='row2'' align='left'><input type='text' name='fromemail' value='{$ibforums->member['email']}' size='40' class='forminput' onMouseOver="this.focus()" onFocus="this.select()"></td>
|
||||
<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 id='row2'' align='left' valign='top'><b>{$ibforums->lang['msg']}</b></td>
|
||||
<td id='row2'' align='left'><textarea wrap='virtual' cols='50' rows='12' wrap='soft' name='body' class='textinput' onMouseOver="this.focus()" onFocus="this.select()"></textarea></td>
|
||||
<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 id='row2'' align='center' colspan='2'><input type='submit' value='{$ibforums->lang['submit']}' class='forminput'></td>
|
||||
<td class='row2' align='center' colspan='2'><input type='submit' value='{$ibforums->lang['submit']}' class='forminput'></td>
|
||||
</tr>
|
||||
</form>
|
||||
EOF;
|
||||
@@ -37,7 +114,7 @@ return <<<EOF
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='category' colspan='2'> </td>
|
||||
<td class='category' colspan='2'> </td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
@@ -46,12 +123,12 @@ EOF;
|
||||
function pager_header($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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' id='titlemedium'>{$data[TITLE]}</td>
|
||||
<td colspan='2' align='center' class='titlemedium'>{$data[TITLE]}</td>
|
||||
EOF;
|
||||
}
|
||||
|
||||
@@ -75,36 +152,36 @@ return <<<EOF
|
||||
<input type='hidden' name='st' value='{$ibforums->input['st']}'>
|
||||
<input type='hidden' name='f' value='{$ibforums->input['f']}'>
|
||||
<input type='hidden' name='t' value='{$ibforums->input['t']}'>
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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' id='titlemedium'>{$ibforums->lang['title']}</td>
|
||||
<td valign='left' colspan='2' class='titlemedium'>{$ibforums->lang['title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' align='left' width='30%' valign='top'><b>{$ibforums->lang['send_lang']}</b></td>
|
||||
<td id='row1' width='80%'>$lang</td>
|
||||
<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 id='row1' align='left' width='30%' valign='top'><b>{$ibforums->lang['to_name']}</b></td>
|
||||
<td id='row1' width='80%'><input type='text' class='forminput' name='to_name' value='' size='30' maxlength='100'></td>
|
||||
<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 id='row1' align='left' width='30%' valign='top'><b>{$ibforums->lang['to_email']}</b></td>
|
||||
<td id='row1' width='80%'><input type='text' class='forminput' name='to_email' value='' size='30' maxlength='100'></td>
|
||||
<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 id='row1' align='left' width='30%' valign='top'><b>{$ibforums->lang['subject']}</b></td>
|
||||
<td id='row1' width='80%'><input type='text' class='forminput' name='subject' value='{$title}' size='30' maxlength='120'></td>
|
||||
<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 id='row1' align='left' width='30%' valign='top'><b>{$ibforums->lang['message']}</b></td>
|
||||
<td id='row1' width='80%'><textarea cols='60' rows='12' wrap='soft' name='message' class='textinput'>{$text}</textarea>
|
||||
<td 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 id='row2' align='center' colspan='2'>
|
||||
<td class='row2' align='center' colspan='2'>
|
||||
<input type="submit" value="{$ibforums->lang['submit_send']}" class='forminput'>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -118,17 +195,17 @@ EOF;
|
||||
function show_address($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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 id='titlemedium'><b>{$ibforums->lang['send_email_to']} {$data[NAME]}</b></td>
|
||||
<td class='titlemedium'><b>{$ibforums->lang['send_email_to']} {$data[NAME]}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1'>{$ibforums->lang['show_address_text']}</td>
|
||||
<td class='row1'>{$ibforums->lang['show_address_text']}</td>
|
||||
</tr>
|
||||
<td id='row1'>>><b><a href="mailto:{$data[ADDRESS]}" class='misc'>{$ibforums->lang['send_email_to']} {$data[NAME]}</a></b></td>
|
||||
<td class='row1'>>><b><a href="mailto:{$data[ADDRESS]}" class='misc'>{$ibforums->lang['send_email_to']} {$data[NAME]}</a></b></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -145,28 +222,28 @@ return <<<EOF
|
||||
<input type='hidden' name='CODE' value='01'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='to' value='{$data[TO]}'>
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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' id='titlemedium'>{$ibforums->lang['send_title']}</td>
|
||||
<td align='left' colspan='2' class='titlemedium'>{$ibforums->lang['send_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' colspan='2' id='usermenu'><b>{$ibforums->lang['send_email_to']} {$data[NAME]}</b></td>
|
||||
<td class='row1' colspan='2' class='usermenu'><b>{$ibforums->lang['send_email_to']} {$data[NAME]}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' align='left' width='20%' valign='top'><b>{$ibforums->lang['subject']}</b></td>
|
||||
<td id='row1' width='80%'><input type='text' name='subject' value='' size='50' maxlength='50' class='forminput'>
|
||||
<td 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 id='row1' align='left' width='20%' valign='top'><b>{$ibforums->lang['message']}</b><br><br>{$ibforums->lang['msg_txt']}</td>
|
||||
<td id='row1' width='80%'><textarea cols='60' rows='12' wrap='soft' name='message' class='textinput'></textarea>
|
||||
<td 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 id='row2' align='center' colspan='2'>
|
||||
<td class='row2' align='center' colspan='2'>
|
||||
<input type="submit" value="{$ibforums->lang['submit_send']}" class='forminput'>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -180,16 +257,16 @@ EOF;
|
||||
function sent_screen($member_name) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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 id='titlemedium'><b>{$ibforums->lang['email_sent']}</b></td>
|
||||
<td class='titlemedium'><b>{$ibforums->lang['email_sent']}</b></td>
|
||||
</tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' valign='middle'><b>{$ibforums->lang['email_sent_txt']} $member_name</td>
|
||||
<td class='row1' valign='middle'><b>{$ibforums->lang['email_sent_txt']} $member_name</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -201,7 +278,7 @@ EOF;
|
||||
function forum_jump($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='<{tbl_width}>' align='center'>
|
||||
<tr>
|
||||
<td align='right'>$data</td>
|
||||
</tr>
|
||||
|
||||
+155
-66
@@ -12,22 +12,22 @@ return <<<EOF
|
||||
<input type='hidden' name='f' value='$Data'>
|
||||
<input type='hidden' name='L' value='1'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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' id='titlemedium'>{$ibforums->lang['need_password']}</td>
|
||||
<td align='left' colspan='2' class='titlemedium'>{$ibforums->lang['need_password']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' colspan='2'>{$ibforums->lang['need_password_txt']}</td>
|
||||
<td class='row1' colspan='2'>{$ibforums->lang['need_password_txt']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' width='40%'><b>{$ibforums->lang['enter_pass']}</b></td>
|
||||
<td id='row1'><input type='password' size='20' name='f_password'></td>
|
||||
<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 id='row2' align='center' colspan='2'><input type='submit' value='{$ibforums->lang['f_pass_submit']}' class='forminput'></td>
|
||||
<td class='row2' align='center' colspan='2'><input type='submit' value='{$ibforums->lang['f_pass_submit']}' class='forminput'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -37,24 +37,13 @@ return <<<EOF
|
||||
EOF;
|
||||
}
|
||||
|
||||
function Mod_Panel($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<br>
|
||||
<table cellpadding='3' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
|
||||
<tr>
|
||||
<td align='center'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f=$data'>{$ibforums->lang['mod_cp']}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function show_rules_full($rules) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<!-- Show FAQ/Forum Rules -->
|
||||
<br>
|
||||
<table cellpadding='4' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
|
||||
<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>
|
||||
@@ -69,7 +58,7 @@ global $ibforums;
|
||||
return <<<EOF
|
||||
<!-- Show FAQ/Forum Rules -->
|
||||
<br>
|
||||
<table cellpadding='4' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
|
||||
<table cellpadding='4' cellspacing='0' border='0' width='<{tbl_width}>' align='center'>
|
||||
<tr>
|
||||
<td align='left' valign='middle'><b>>><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>
|
||||
@@ -79,6 +68,14 @@ return <<<EOF
|
||||
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
|
||||
@@ -86,10 +83,11 @@ return <<<EOF
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='mainbg'>
|
||||
<td class='mainbg'>
|
||||
<!--IBF.FORUM_ACTIVE-->
|
||||
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
|
||||
<tr>
|
||||
<td id='titlefoot' width='100%' align='center'>
|
||||
<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>
|
||||
@@ -103,17 +101,17 @@ return <<<EOF
|
||||
</form>
|
||||
</tr>
|
||||
</table>
|
||||
<table width='{$ibforums->skin['tbl_width']}' border='0' cellspacing='0' cellpadding='4' align='center'>
|
||||
<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']}'>{$ibforums->skin['A_POST']}</a>{$Data[POLL_BUTTON]}</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='{$ibforums->skin['tbl_width']}' border='0' cellspacing='0' cellpadding='3' align='center'>
|
||||
<table width='<{tbl_width}>' border='0' cellspacing='0' cellpadding='3' align='center'>
|
||||
<tr>
|
||||
<td>{$ibforums->skin['B_NEW']}</td>
|
||||
<td><{B_NEW}></td>
|
||||
<td nowrap>{$ibforums->lang['pm_open_new']} </td>
|
||||
<td>{$ibforums->skin['B_POLL']}</td>
|
||||
<td><{B_POLL}></td>
|
||||
<td nowrap>{$ibforums->lang['pm_poll']} </td>
|
||||
<td width='100%' rowspan='4' align='right'>
|
||||
<table border='0' cellspacing='0' cellpadding='0'>
|
||||
@@ -134,21 +132,21 @@ return <<<EOF
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$ibforums->skin['B_NORM']}</td>
|
||||
<td><{B_NORM}></td>
|
||||
<td nowrap>{$ibforums->lang['pm_open_no']} </td>
|
||||
<td>{$ibforums->skin['B_POLL_NN']}</td>
|
||||
<td><{B_POLL_NN}></td>
|
||||
<td nowrap>{$ibforums->lang['pm_poll_no']} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$ibforums->skin['B_HOT']}</td>
|
||||
<td><{B_HOT}></td>
|
||||
<td nowrap>{$ibforums->lang['pm_hot_new']} </td>
|
||||
<td>{$ibforums->skin['B_LOCKED']}</td>
|
||||
<td><{B_LOCKED}></td>
|
||||
<td nowrap>{$ibforums->lang['pm_locked']} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$ibforums->skin['B_HOT_NN']}</td>
|
||||
<td><{B_HOT_NN}></td>
|
||||
<td nowrap>{$ibforums->lang['pm_hot_no']} </td>
|
||||
<td>{$ibforums->skin['B_MOVED']}</td>
|
||||
<td><{B_MOVED}></td>
|
||||
<td nowrap>{$ibforums->lang['pm_moved']} </td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -160,18 +158,18 @@ global $ibforums;
|
||||
return <<<EOF
|
||||
<!-- Show Forum FAQ/Rules -->
|
||||
<br>
|
||||
<table cellpadding='4' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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' id='titlemedium'>{$rules['title']}</td>
|
||||
<td valign='left' class='titlemedium'>{$rules['title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1'>{$rules['body']}</td>
|
||||
<td class='row1'>{$rules['body']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='titlemedium' align='center'>>><a href='{$ibforums->base_url}&act=SF&f={$rules['fid']}'>{$ibforums->lang['back_to_forum']}</td>
|
||||
<td class='titlemedium' align='center'>>><a href='{$ibforums->base_url}&act=SF&f={$rules['fid']}'>{$ibforums->lang['back_to_forum']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -185,9 +183,9 @@ EOF;
|
||||
function page_title($title="", $pages="") {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' align='center'>
|
||||
<tr>
|
||||
<td><span id='pagetitle'>$title</span>$pages</td>
|
||||
<td><span class='pagetitle'>$title</span>$pages</td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
@@ -197,52 +195,86 @@ function PageTop($info) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<!-- Forum page unique top -->
|
||||
<table width='{$ibforums->skin['tbl_width']}' border='0' cellspacing='0' cellpadding='4' align='center'>
|
||||
|
||||
<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']}'>{$ibforums->skin['A_POST']}</a>{$info[POLL_BUTTON]}</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='{$ibforums->skin['tbl_width']}' align='center' border='0' cellspacing='1' cellpadding='0' bgcolor='{$ibforums->skin['tbl_border']}'>
|
||||
<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 background='{$ibforums->vars['img_url']}/tile_back.gif' id='maintitleback'>
|
||||
<table width='100%' border='0' cellspacing='0' cellpadding='3'>
|
||||
<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%' id='maintitle'>{$info['name']}</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>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='mainbg'>
|
||||
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
|
||||
<td class='mainbg'>
|
||||
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
|
||||
<tr>
|
||||
<td align='center' nowrap background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium'>
|
||||
<!-- Tuck away hidden form elements -->
|
||||
<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 background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium'><img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='20' height='1'></td>
|
||||
<td width='45%' nowrap background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium'>{$ibforums->lang['h_topic_title']} ( <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Login&CODE=04&f={$info['id']}'>{$ibforums->lang['mark_as_read']}</a> )</td>
|
||||
<td width='14%' align='center' nowrap background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium'>{$ibforums->lang['h_topic_starter']}</td>
|
||||
<td width='7%' align='center' nowrap background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium'>{$ibforums->lang['h_replies']}</td>
|
||||
<td width='7%' align='center' nowrap background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium'>{$ibforums->lang['h_hits']}</td>
|
||||
<td width='27%' nowrap background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium'>{$ibforums->lang['h_last_action']}</td>
|
||||
<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 id='forum2' colspan='7' align='center'>
|
||||
<td class='forum2' colspan='7' align='center'>
|
||||
<br>
|
||||
<b>{$ibforums->lang['no_topics']}</b>
|
||||
<br><br>
|
||||
@@ -251,30 +283,87 @@ return <<<EOF
|
||||
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' id='forum2'>{$Data['folder_img']}</td>
|
||||
<td align='center' id='forum1'>{$Data['topic_icon']}</td>
|
||||
<td id='forum2'>
|
||||
<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 id='linkthru'>{$Data['prefix']} <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?act=ST&f={$Data['forum_id']}&t={$Data['tid']}&s={$ibforums->session_id}' id='linkthru' title='{$ibforums->lang['topic_started_on']} {$Data['start_date']}'>{$Data['title']}</a></span> {$Data[PAGES]}</td>
|
||||
<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 id='desc'>{$Data['description']}</span></td>
|
||||
<td align='center' id='forum1'>{$Data['starter']}</td>
|
||||
<td align='center' id='forum2'>{$Data['posts']}</td>
|
||||
<td align='center' id='forum1'>{$Data['views']}</td>
|
||||
<td id='forum1'>{$Data['last_post']}<br><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$Data['forum_id']}&t={$Data['tid']}&view=getlastpost'>{$Data['last_text']}</a> <b>{$Data['last_poster']}</b></td>
|
||||
<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'> </td>
|
||||
<td align='center' class='category'> </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'> </td>
|
||||
<td align='center' class='category'> </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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
+321
-272
@@ -1,273 +1,322 @@
|
||||
<?php
|
||||
|
||||
class skin_global {
|
||||
|
||||
|
||||
|
||||
function Member_bar($msg) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
{$ibforums->lang['logged_in_as']} <b>{$ibforums->member['name']}</b> ( <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=UserCP&CODE=00'>{$ibforums->lang['your_cp']}</a> | <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Login&CODE=03'>{$ibforums->lang['log_out']}</a> | <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Msg&CODE=01'>{$msg[TEXT]}</a> )
|
||||
EOF;
|
||||
}
|
||||
|
||||
function BoardHeader($time="") {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<table width='{$ibforums->skin['tbl_width']}' border='0' align='center' cellpadding='0' cellspacing='1' bgcolor='{$ibforums->skin['tbl_border']}'>
|
||||
<tr>
|
||||
<td background='{$ibforums->vars['img_url']}/header_tile.gif'><img src='{$ibforums->vars['img_url']}/logo.jpg' alt='Powered by IBForums' border='0'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='alt1'>
|
||||
<table width='100%' border='0' cellspacing='0' cellpadding='2'>
|
||||
<tr>
|
||||
<td width='100%'>
|
||||
<% MEMBER BAR %>
|
||||
</td>
|
||||
<td nowrap valign='middle'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Search&f={$ibforums->input['f']}' style='text-decoration:none'><img src='{$ibforums->vars['img_url']}/icon_search.gif' title='Search' name='search' border='0' align='absmiddle'> Search</a> | <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Members' style='text-decoration:none'><img src='{$ibforums->vars['img_url']}/icon_members.gif' title='Members List' name='members' align='absmiddle' border='0'> Member List</a> | <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Help' style='text-decoration:none'><img src='{$ibforums->vars['img_url']}/icon_help.gif' title='Help Files' name='help' border='0' align='absmiddle'> Help</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</td>
|
||||
</table>
|
||||
<br>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function start_nav() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table width='{$ibforums->skin['tbl_width']}' align='center' border="0" cellspacing="0" cellpadding="1">
|
||||
<tr>
|
||||
<td>{$ibforums->skin['F_NAV']}</td>
|
||||
<td width="100%" id="nav">
|
||||
EOF;
|
||||
}
|
||||
|
||||
function end_nav() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function Redirect($Text, $Url) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<html>
|
||||
<head>
|
||||
<title>{$ibforums->lang['stand_by']}</title>
|
||||
<meta http-equiv='refresh' content='2; url={$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}$Url'>
|
||||
<link type='text/css' href='style_sheets/stylesheet_{$ibforums->skin['css_id']}.css' rel='stylesheet'>
|
||||
</head>
|
||||
|
||||
<body id='mainbg'>
|
||||
<table width='{$ibforums->skin['tbl_width']}' height='85%' align='center'>
|
||||
<tr>
|
||||
<td valign='middle'>
|
||||
<table align='center' border="0" cellspacing="1" cellpadding="0" bgcolor="{$ibforums->skin['tbl_border']}">
|
||||
<tr>
|
||||
<td id='mainbg'>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="12">
|
||||
<tr>
|
||||
<td width="100%" align="center" id='alt1'>
|
||||
{$ibforums->lang['thanks']},
|
||||
$Text<br><br>
|
||||
{$ibforums->lang['transfer_you']}<br><br>
|
||||
(<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}$Url'>{$ibforums->lang['dont_wait']}</a>)</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function PM_popup() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<script language='JavaScript'>
|
||||
<!--
|
||||
window.open('index.{$ibforums->vars['php_ext']}?act=Msg&CODE=99&s={$ibforums->session_id}','NewPM','width=500,height=250,resizable=yes,scrollbars=1');
|
||||
//-->
|
||||
</script>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function Guest_bar() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
{$ibforums->lang['guest_stuff']} ( <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Login&CODE=00'>{$ibforums->lang['log_in']}</a> | <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Reg&CODE=00'>{$ibforums->lang['register']}</a> )
|
||||
EOF;
|
||||
}
|
||||
|
||||
function admin_link() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
( <b><a href='{$ibforums->vars['board_url']}/admin.{$ibforums->vars['php_ext']}' target='_blank'>{$ibforums->lang['admin_cp']}</a></b> )
|
||||
EOF;
|
||||
}
|
||||
|
||||
function error_log_in($q_string) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<form action='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}' method='post'>
|
||||
<input type='hidden' name='act' value='Login'>
|
||||
<input type='hidden' name='CODE' value='01'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='referer' value='$q_string'>
|
||||
<input type='hidden' name='CookieDate' value='1'>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='80%' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
|
||||
<tr>
|
||||
<td align='left' colspan='2' id='titlemedium'>{$ibforums->lang['er_log_in_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' width='40%'>{$ibforums->lang['erl_enter_name']}</td>
|
||||
<td id='row1'><input type='text' size='20' maxlength='64' name='UserName' class='forminput'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' width='40%'>{$ibforums->lang['erl_enter_pass']}</td>
|
||||
<td id='row1'><input type='password' size='20' name='PassWord' class='forminput'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row2' align='center' colspan='2'>
|
||||
<input type='submit' name='submit' value='{$ibforums->lang['erl_log_in_submit']}' class='forminput'>
|
||||
</td>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function board_offline($message = "") {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table width='{$ibforums->skin['tbl_width']}' border='0' align='center' cellpadding='0' cellspacing='1' bgcolor='{$ibforums->skin['tbl_border']}'>
|
||||
<tr>
|
||||
<td background='{$ibforums->vars['img_url']}/tile_back.gif'>
|
||||
<table width='100%' border='0' cellspacing='0' cellpadding='3'>
|
||||
<tr>
|
||||
<td><img src='{$ibforums->vars['img_url']}/nav_m.gif' alt='' width='8' height='8'></td>
|
||||
<td width='100%' id='titlemedium'>{$ibforums->lang['offline_title']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='mainbg'>
|
||||
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
|
||||
<tr>
|
||||
<td colspan='2' valign='top' id='post1'> <p>$message</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' valign='top' id='posthead'>{$ibforums->lang['offline_login']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<form action='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}' method='post'>
|
||||
<input type='hidden' name='act' value='Login'>
|
||||
<input type='hidden' name='CODE' value='01'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='referer' value=''>
|
||||
<input type='hidden' name='CookieDate' value='1'>
|
||||
<td id='alt1'>{$ibforums->lang['erl_enter_name']}<br><img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='180' height='1'></td>
|
||||
<td width='100%' id='alt1'><input type='text' size='20' maxlength='64' name='UserName' class='forminput'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='alt1'>{$ibforums->lang['erl_enter_pass']}</td>
|
||||
<td width='100%' id='alt1'><input type='password' size='20' name='PassWord' class='forminput'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' align='center' id='titlefoot'><input type='submit' name='submit' value='{$ibforums->lang['erl_log_in_submit']}' class='forminput'></td>
|
||||
</form>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function Error($message, $ad_email_one="", $ad_email_two="") {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<script language='javascript'>
|
||||
<!--
|
||||
function contact_admin() {
|
||||
|
||||
// Very basic spam bot stopper
|
||||
|
||||
admin_email_one = '$ad_email_one';
|
||||
admin_email_two = '$ad_email_two';
|
||||
|
||||
window.location = 'mailto:'+admin_email_one+'@'+admin_email_two+'?subject=Error on the forums';
|
||||
|
||||
}
|
||||
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<table width='{$ibforums->skin['tbl_width']}' border='0' cellspacing='1' align='center' cellpadding='0' bgcolor='{$ibforums->skin['tbl_border']}'>
|
||||
<tr>
|
||||
<td id='maintitleback' background='{$ibforums->vars['img_url']}/tile_back.gif'>
|
||||
<table width='100%' border='0' cellspacing='0' cellpadding='3'>
|
||||
<tr>
|
||||
<td><img src='{$ibforums->vars['img_url']}/nav_m.gif' alt='' width='8' height='8'></td>
|
||||
<td width='100%' id='maintitle'><b>{$ibforums->lang['error_title']}</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='mainbg'>
|
||||
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
|
||||
<tr>
|
||||
<td id='alt1' valign='top'>
|
||||
{$ibforums->lang['exp_text']}<br><br>
|
||||
<b>{$ibforums->lang['msg_head']}</b>
|
||||
<br><br>
|
||||
<span id='alert'>$message</span>
|
||||
<br><br>
|
||||
<!-- IBF.LOG_IN_TABLE -->
|
||||
<br><br>
|
||||
<b>Useful Links:</b>
|
||||
<br><br>
|
||||
• <a href='{$ibforums->base_url}&act=Reg&CODE=10'>{$ibforums->lang['er_lost_pass']}</a><br>
|
||||
• <a href='{$ibforums->base_url}&act=Reg&CODE=00'>{$ibforums->lang['er_register']}</a><br>
|
||||
• <a href='{$ibforums->base_url}&act=Help&CODE=00'>{$ibforums->lang['er_help_files']}</a><br>
|
||||
• <a href='javascript:contact_admin();'>{$ibforums->lang['er_contact_admin']}</a></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='titlefoot' align='center'>< <a href='javascript:history.go(-1)'>{$ibforums->lang['error_back']}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function Member_no_usepm_bar() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
{$ibforums->lang['logged_in_as']} <b>{$ibforums->member['name']}</b> ( <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=UserCP&CODE=00'>{$ibforums->lang['your_cp']}</a> | <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Login&CODE=03'>{$ibforums->lang['log_out']}</a> )
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
<?php
|
||||
|
||||
class skin_global {
|
||||
|
||||
|
||||
|
||||
function Member_bar($msg, $ad_link, $mod_link) {
|
||||
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>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function ibf_banner() {
|
||||
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>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function BoardHeader($time="") {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<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>
|
||||
</table>
|
||||
<br>
|
||||
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">
|
||||
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>
|
||||
<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'>
|
||||
$css
|
||||
</head>
|
||||
<body class='mainbg'>
|
||||
<table width='<{tbl_width}>' 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>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function PM_popup() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<script language='JavaScript'>
|
||||
<!--
|
||||
window.open('index.{$ibforums->vars['php_ext']}?act=Msg&CODE=99&s={$ibforums->session_id}','NewPM','width=500,height=250,resizable=yes,scrollbars=yes');
|
||||
//-->
|
||||
</script>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function Guest_bar() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
{$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
|
||||
| <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
|
||||
| <b><a href='{$ibforums->base_url}&act=modcp'>{$ibforums->lang['mod_cp']}</a></b>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function error_log_in($q_string) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<form action='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}' method='post'>
|
||||
<input type='hidden' name='act' value='Login'>
|
||||
<input type='hidden' name='CODE' value='01'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='referer' value='$q_string'>
|
||||
<input type='hidden' name='CookieDate' value='1'>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='80%' bgcolor='<{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>
|
||||
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>
|
||||
</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>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function Error($message, $ad_email_one="", $ad_email_two="") {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<script language='javascript'>
|
||||
<!--
|
||||
function contact_admin() {
|
||||
|
||||
// Very basic spam bot stopper
|
||||
|
||||
admin_email_one = '$ad_email_one';
|
||||
admin_email_two = '$ad_email_two';
|
||||
|
||||
window.location = 'mailto:'+admin_email_one+'@'+admin_email_two+'?subject=Error on the forums';
|
||||
|
||||
}
|
||||
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<table width='<{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>
|
||||
• <a href='{$ibforums->base_url}&act=Reg&CODE=10'>{$ibforums->lang['er_lost_pass']}</a><br>
|
||||
• <a href='{$ibforums->base_url}&act=Reg&CODE=00'>{$ibforums->lang['er_register']}</a><br>
|
||||
• <a href='{$ibforums->base_url}&act=Help&CODE=00'>{$ibforums->lang['er_help_files']}</a><br>
|
||||
• <a href='javascript:contact_admin();'>{$ibforums->lang['er_contact_admin']}</a></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='titlefoot' align='center'>< <a href='javascript:history.go(-1)'>{$ibforums->lang['error_back']}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function Member_no_usepm_bar() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
{$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> )
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
@@ -9,7 +9,7 @@ global $ibforums;
|
||||
return <<<EOF
|
||||
<!-- Help Entry ID:{$entry[ID]} -->
|
||||
<tr>
|
||||
<td id='{$entry['CELL_COLOUR']}' style='height:28px'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?act=Help&s={$ibforums->session_id}&CODE=01&HID={$entry['id']}'><b>{$entry['title']}</b></a><br>{$entry['description']}</td>
|
||||
<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;
|
||||
@@ -20,7 +20,7 @@ global $ibforums;
|
||||
return <<<EOF
|
||||
<!-- Displaying Help Topic -->
|
||||
<tr>
|
||||
<td id='row1' colspan='2' id='postcolor'>$text</td>
|
||||
<td class='row1' colspan='2' class='postcolor'>$text</td>
|
||||
</tr>
|
||||
<!-- End Display -->
|
||||
EOF;
|
||||
@@ -40,7 +40,7 @@ function no_results() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td id='row1' colspan='2'><b>{$ibforums->lang['no_results']}</b></td>
|
||||
<td class='row1' colspan='2'><b>{$ibforums->lang['no_results']}</b></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
@@ -48,19 +48,19 @@ EOF;
|
||||
function start($one_text, $two_text, $three_text) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table cellpadding=4 cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
|
||||
<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='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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' id='titlemedium' background="{$ibforums->vars['img_url']}/tile_sub.gif">$one_text</td>
|
||||
<td align='left' colspan='2' class='titlemedium' >$one_text</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' colspan='2'>
|
||||
<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'>
|
||||
@@ -74,12 +74,12 @@ return <<<EOF
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table cellpadding=0 cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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' id='titlemedium' background="{$ibforums->vars['img_url']}/tile_sub.gif"><b>$three_text</b></td>
|
||||
<td colspan='2' class='titlemedium' ><b>$three_text</b></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
@@ -3,6 +3,143 @@
|
||||
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
|
||||
@@ -23,16 +160,16 @@ function page_header( $title, $row1, $row2 ) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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' id='titlemedium' align='center'>$title</td>
|
||||
<td colspan='4' class='titlemedium' align='center'>$title</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='50%' align='center' id='category' valign='middle'>$row1</td>
|
||||
<td width='50%' align='center' id='category' valign='middle'>$row2</td>
|
||||
<td width='50%' align='center' class='category' valign='middle'>$row1</td>
|
||||
<td width='50%' align='center' class='category' valign='middle'>$row2</td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -45,8 +182,8 @@ global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td align='center' id='row1' valign='middle'><a href='javascript:add_smilie("$code")'>$code</a></td>
|
||||
<td align='center' id='row2' valign='middle'><a href='javascript:add_smilie("$code")'><img src='{$ibforums->vars['EMOTICONS_URL']}/$image' border='0' valign='absmiddle' alt='$image'></a></td>
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
@@ -12,18 +12,18 @@ return <<<EOF
|
||||
<input type='hidden' name='act' value='Login'>
|
||||
<input type='hidden' name='CODE' value='03'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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='{$ibforums->skin['TITLEBACK']}' valign='left' colspan='2' id='titlelarge'>{$ibforums->lang['log_out']}</td>
|
||||
<td bgcolor='<{TITLEBACK}>' valign='left' colspan='2' class='titlelarge'>{$ibforums->lang['log_out']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' colspan='2' valign='middle'><br>{$ibforums->lang['log_out_txt']}<br></td>
|
||||
<td class='row1' colspan='2' valign='middle'><br>{$ibforums->lang['log_out_txt']}<br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row2' align='center' colspan='2'>
|
||||
<td class='row2' align='center' colspan='2'>
|
||||
<input type="submit" value="{$ibforums->lang['log_out_submit']}" class='forminput'>
|
||||
</td></tr></table>
|
||||
</td></tr></table>
|
||||
@@ -34,12 +34,12 @@ EOF;
|
||||
function errors($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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 id='row1' valign='top' align='left' id='highlight'><b>{$ibforums->lang['errors_found']}</b><hr noshade size='1' color='{$ibforums->skin['tbl_border']}'>$data</td>
|
||||
<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>
|
||||
@@ -49,7 +49,7 @@ return <<<EOF
|
||||
EOF;
|
||||
}
|
||||
|
||||
function ShowForm($message) {
|
||||
function ShowForm($message, $referer="") {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<script language='JavaScript'>
|
||||
@@ -70,7 +70,7 @@ return <<<EOF
|
||||
//-->
|
||||
</script>
|
||||
<br>
|
||||
<table cellpadding='3' cellspacing='1' border='0' align='center' width='{$ibforums->skin['tbl_width']}'>
|
||||
<table cellpadding='3' cellspacing='1' border='0' align='center' width='<{tbl_width}>'>
|
||||
<tr>
|
||||
<td align='left'>{$ibforums->lang['login_text']}</td>
|
||||
</tr>
|
||||
@@ -78,48 +78,45 @@ return <<<EOF
|
||||
<td align='left'><b>{$ibforums->lang['forgot_pass']} <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?act=Reg&CODE=10'>{$ibforums->lang['pass_link']}</a></b></td>
|
||||
</tr>
|
||||
</table>
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='LOGIN' onSubmit='return ValidateForm()'>
|
||||
<input type='hidden' name='act' value='Login'>
|
||||
<input type='hidden' name='CODE' value='01'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='referer' value="">
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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' id='titlemedium'>$message</td>
|
||||
<td align='left' colspan='2' class='titlemedium'>$message</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' width='40%'>{$ibforums->lang['enter_name']}</td>
|
||||
<td id='row1'><input type='text' size='20' maxlength='64' name='UserName' class='forminput'></td>
|
||||
<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 id='row1' width='40%'>{$ibforums->lang['enter_pass']}</td>
|
||||
<td id='row1'><input type='password' size='20' name='PassWord' class='forminput'></td>
|
||||
<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='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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='{$ibforums->skin['MISCBACK_TITLE']}' align='left' colspan='2' id='titlemedium'>{$ibforums->lang['options']}</td>
|
||||
<td align='left' colspan='2' class='titlemedium'>{$ibforums->lang['options']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' width='40%' align='left' valign='top'>{$ibforums->lang['cookies']}</td>
|
||||
<td id='row1' width='40%'><input type="radio" name="CookieDate" value="1" checked>{$ibforums->lang['cookie_yes']}<br><input type="radio" name="CookieDate" value="0">{$ibforums->lang['cookie_no']}</td>
|
||||
<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 id='row1' width='40%' align='left' valign='top'>{$ibforums->lang['privacy']}</td>
|
||||
<td id='row1' width='40%'><input type="checkbox" name="Privacy" value="1">{$ibforums->lang['anon_name']}</td>
|
||||
<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 id='row2' align='center' colspan='2'>
|
||||
<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>
|
||||
|
||||
@@ -27,29 +27,29 @@ return <<<EOF
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<table width="{$ibforums->skin['tbl_width']}" border="0" align='center' cellspacing="0" cellpadding="4">
|
||||
<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="{$ibforums->skin['tbl_width']}" border="0" align='center' cellspacing="1" cellpadding="0" bgcolor="{$ibforums->skin['tbl_border']}">
|
||||
<table width="<{tbl_width}>" border="0" align='center' cellspacing="1" cellpadding="0" bgcolor="<{tbl_border}>">
|
||||
<tr>
|
||||
<td id='maintitleback' background='{$ibforums->vars['img_url']}/tile_back.gif'>
|
||||
<td class='maintitle' >
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='mainbg'>
|
||||
<td class='mainbg'>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="4">
|
||||
<tr>
|
||||
<td nowrap background="{$ibforums->vars['img_url']}/tile_sub.gif" id='titlemedium' width="30%">{$ibforums->lang['member_name']}</td>
|
||||
<td nowrap background="{$ibforums->vars['img_url']}/tile_sub.gif" id='titlemedium' align="center" width="20%">{$ibforums->lang['member_level']}</td>
|
||||
<td nowrap background="{$ibforums->vars['img_url']}/tile_sub.gif" id='titlemedium' align="center" width="20%">{$ibforums->lang['member_group']}</td>
|
||||
<td nowrap background="{$ibforums->vars['img_url']}/tile_sub.gif" id='titlemedium' align="center" width="20%">{$ibforums->lang['member_joined']}</td>
|
||||
<td nowrap background="{$ibforums->vars['img_url']}/tile_sub.gif" id='titlemedium' align="center" width="10%">{$ibforums->lang['member_posts']}</td>
|
||||
<td nowrap background="{$ibforums->vars['img_url']}/tile_sub.gif" id='titlemedium' align="center">{$ibforums->lang['member_email']}</td>
|
||||
<td nowrap background="{$ibforums->vars['img_url']}/tile_sub.gif" id='titlemedium' align="center">{$ibforums->lang['member_aol']}</td>
|
||||
<td nowrap background="{$ibforums->vars['img_url']}/tile_sub.gif" id='titlemedium' align="center">{$ibforums->lang['member_icq']}</td>
|
||||
<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;
|
||||
}
|
||||
@@ -57,7 +57,7 @@ EOF;
|
||||
function end($links) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table width="{$ibforums->skin['tbl_width']}" border="0" align='center' cellspacing="0" cellpadding="4">
|
||||
<table width="<{tbl_width}>" border="0" align='center' cellspacing="0" cellpadding="4">
|
||||
<tr>
|
||||
<td width="100%" height='38'>{$links[SHOW_PAGES]}</td>
|
||||
</tr>
|
||||
@@ -88,7 +88,13 @@ return <<<EOF
|
||||
<input type='hidden' name='act' value='Members'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<tr>
|
||||
<td id='subtitle' colspan="9" align='center'>{$ibforums->lang['sorting_text']} <input type='submit' value='{$ibforums->lang['sort_submit']}' class='forminput'></td>
|
||||
<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> <input class='forminput' type='text' size='25' name='name' value='{$ibforums->input['name']}'><br>
|
||||
{$ibforums->lang['sorting_text']} <input type='submit' value='{$ibforums->lang['sort_submit']}' class='forminput'></td>
|
||||
</tr>
|
||||
</form>
|
||||
|
||||
@@ -104,14 +110,14 @@ global $ibforums;
|
||||
return <<<EOF
|
||||
<!-- Entry for {$member[MEMBER_NAME]} -->
|
||||
<tr>
|
||||
<td id='forum2' width="30%"><b><a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Profile&CODE=03&MID={$member[MEMBER_ID]}">{$member[MEMBER_NAME]}</a></b></td>
|
||||
<td id='forum2' nowrap width="20%">{$member[MEMBER_PIPS_IMG]}</td>
|
||||
<td id='forum1' align="center" width="20%">{$member[MEMBER_GROUP]}</td>
|
||||
<td id='forum2' nowrap align="center" width="20%">{$member[MEMBER_JOINED]}</td>
|
||||
<td id='forum2' align="center" width="10%">{$member[MEMBER_POSTS]}</td>
|
||||
<td id='forum1' align="center">{$member[MEMBER_EMAIL]}</td>
|
||||
<td id='forum1' align="center">{$member[AOLNAME]}</td>
|
||||
<td id='forum1' align="center">{$member[ICQNUMBER]}</td>
|
||||
<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;
|
||||
|
||||
+228
-133
@@ -16,17 +16,17 @@ return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
<table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder' align='center'>
|
||||
<table cellpadding='2' cellspacing='1' border='0' width='100%' class='fancyborder' align='center'>
|
||||
<tr>
|
||||
<td><span id='pagetitle'>{$ibforums->lang['cp_mod_posts_title2']} $forumname</span>
|
||||
<td><span class='pagetitle'>{$ibforums->lang['cp_mod_posts_title2']} $forumname</span>
|
||||
<br>$pages
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
<table width='100%' cellpadding='4' cellspacing='1' bgcolor='{$ibforums->skin['tbl_border']}'>
|
||||
<table width='100%' cellpadding='4' cellspacing='1' bgcolor='<{tbl_border}>'>
|
||||
<tr>
|
||||
<td valign='middle' id='titlemedium' align='left' colspan='2'>$title</td>
|
||||
<td valign='middle' class='titlemedium' align='left' colspan='2'>$title</td>
|
||||
</tr>
|
||||
|
||||
EOF;
|
||||
@@ -39,19 +39,19 @@ return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
<table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder' align='center'>
|
||||
<table cellpadding='2' cellspacing='1' border='0' width='100%' class='fancyborder' align='center'>
|
||||
<tr>
|
||||
<td><span id='pagetitle'>{$ibforums->lang['cp_mod_posts_title2']} $forumname</span>
|
||||
<td><span class='pagetitle'>{$ibforums->lang['cp_mod_posts_title2']} $forumname</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table width='100%' cellpadding='4' cellspacing='1' bgcolor='{$ibforums->skin['tbl_border']}'>
|
||||
<table width='100%' cellpadding='4' cellspacing='1' bgcolor='<{tbl_border}>'>
|
||||
<tr>
|
||||
<td id='titlemedium' width='40%'>{$ibforums->lang['cp_3_title']}</td>
|
||||
<td id='titlemedium' width='20%' align='center'>{$ibforums->lang['cp_3_replies']}</td>
|
||||
<td id='titlemedium' width='20%' align='center'>{$ibforums->lang['cp_3_approveall']}</td>
|
||||
<td id='titlemedium' width='20%' align='center'>{$ibforums->lang['cp_3_viewall']}</td>
|
||||
<td class='titlemedium' width='40%'>{$ibforums->lang['cp_3_title']}</td>
|
||||
<td class='titlemedium' width='20%' align='center'>{$ibforums->lang['cp_3_replies']}</td>
|
||||
<td class='titlemedium' width='20%' align='center'>{$ibforums->lang['cp_3_approveall']}</td>
|
||||
<td class='titlemedium' width='20%' align='center'>{$ibforums->lang['cp_3_viewall']}</td>
|
||||
</tr>
|
||||
|
||||
EOF;
|
||||
@@ -62,10 +62,10 @@ global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td id='row1' width='40%' align='left'><b><a href='{$ibforums->base_url}&act=ST&f=$fid&t=$tid' target='_blank'>$title</a></b></td>
|
||||
<td id='row1' width='20%' align='center'>$replies</td>
|
||||
<td id='row1' width='20%' align='center'><a href='{$ibforums->base_url}&act=ModCP&f=$fid&tid=$tid&CODE=modtopicapprove'>{$ibforums->lang['cp_3_approveall']}</a></td>
|
||||
<td id='row1' width='20%' align='center'><a href='{$ibforums->base_url}&act=ModCP&f=$fid&tid=$tid&CODE=modtopicview'>{$ibforums->lang['cp_3_viewall']}</a></td>
|
||||
<td class='row1' width='40%' align='left'><b><a href='{$ibforums->base_url}&act=ST&f=$fid&t=$tid' target='_blank'>$title</a></b></td>
|
||||
<td class='row1' width='20%' align='center'>$replies</td>
|
||||
<td class='row1' width='20%' align='center'><a href='{$ibforums->base_url}&act=ModCP&f=$fid&tid=$tid&CODE=modtopicapprove'>{$ibforums->lang['cp_3_approveall']}</a></td>
|
||||
<td class='row1' width='20%' align='center'><a href='{$ibforums->base_url}&act=ModCP&f=$fid&tid=$tid&CODE=modtopicview'>{$ibforums->lang['cp_3_viewall']}</a></td>
|
||||
</tr>
|
||||
|
||||
EOF;
|
||||
@@ -99,9 +99,9 @@ return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
<table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder' align='center'>
|
||||
<table cellpadding='2' cellspacing='1' border='0' width='100%' class='fancyborder' align='center'>
|
||||
<tr>
|
||||
<td><span id='pagetitle'>{$ibforums->lang['cp_mod_topics_title2']} $forumname</span>
|
||||
<td><span class='pagetitle'>{$ibforums->lang['cp_mod_topics_title2']} $forumname</span>
|
||||
<br>$pages
|
||||
</td>
|
||||
</tr>
|
||||
@@ -114,7 +114,7 @@ global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td id='row2' align='center'><select name='type' class='forminput'><option value='approve'>{$ibforums->lang['cp_1_approve']}</option><option value='remove'>{$ibforums->lang['cp_1_remove']}</option></select> {$ibforums->lang['cp_1_selected']} <input type='submit' value='{$ibforums->lang['cp_1_go']}' class='forminput'></td>
|
||||
<td class='row2' align='center'><select name='type' class='forminput'><option value='approve'>{$ibforums->lang['cp_1_approve']}</option><option value='remove'>{$ibforums->lang['cp_1_remove']}</option></select> {$ibforums->lang['cp_1_selected']} <input type='submit' value='{$ibforums->lang['cp_1_go']}' class='forminput'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -131,9 +131,9 @@ return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
<table width='100%' cellpadding='4' cellspacing='1' bgcolor='{$ibforums->skin['tbl_border']}'>
|
||||
<table width='100%' cellpadding='4' cellspacing='1' bgcolor='<{tbl_border}>'>
|
||||
<tr>
|
||||
<td valign='middle' id='titlemedium' align='left' colspan='2'><input type='checkbox' name='TID_$topic_id' value='1'> $title</td>
|
||||
<td valign='middle' class='titlemedium' align='left' colspan='2'><input type='checkbox' name='TID_$topic_id' value='1'> $title</td>
|
||||
</tr>
|
||||
|
||||
EOF;
|
||||
@@ -145,10 +145,10 @@ global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td valign='top' id='row1' width='25%'><span id='normalname'>{$data['member']['name']}</span><br><br>{$data['member']['avatar']}<span id='postdetails'><br>{$data['member']['MEMBER_GROUP']}<br>{$data['member']['MEMBER_POSTS']}<br>{$data['member']['MEMBER_JOINED']}</span></td>
|
||||
<td valign='top' height='100%' id='row1' width='75%'>
|
||||
<td valign='top' class='row1' width='25%'><span class='normalname'>{$data['member']['name']}</span><br><br>{$data['member']['avatar']}<span class='postdetails'><br>{$data['member']['MEMBER_GROUP']}<br>{$data['member']['MEMBER_POSTS']}<br>{$data['member']['MEMBER_JOINED']}</span></td>
|
||||
<td valign='top' height='100%' class='row1' width='75%'>
|
||||
<b>{$ibforums->lang['posted_on']} {$data['msg']['post_date']}</b><br><br>
|
||||
<span id='postcolor'>
|
||||
<span class='postcolor'>
|
||||
{$data['msg']['post']}
|
||||
</span>
|
||||
</td>
|
||||
@@ -163,7 +163,7 @@ global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td align='left' colspan='2' id='category'><input type='checkbox' name='PID_$pid' value='1'> {$ibforums->lang['cp_3_postno']} $pid</td>
|
||||
<td align='left' colspan='2' class='category'><input type='checkbox' name='PID_$pid' value='1'> {$ibforums->lang['cp_3_postno']} $pid</td>
|
||||
</tr>
|
||||
|
||||
EOF;
|
||||
@@ -192,9 +192,9 @@ return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
<table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder' align='center'>
|
||||
<table cellpadding='2' cellspacing='1' border='0' width='100%' class='fancyborder' align='center'>
|
||||
<tr>
|
||||
<td><span id='pagetitle'>{$ibforums->lang['cp_results']}</span>
|
||||
<td><span class='pagetitle'>{$ibforums->lang['cp_results']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -214,9 +214,9 @@ return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
<table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder' align='center'>
|
||||
<table cellpadding='2' cellspacing='1' border='0' width='100%' class='fancyborder' align='center'>
|
||||
<tr>
|
||||
<td><span id='pagetitle'>{$ibforums->lang['cp_check_result']}</span>
|
||||
<td><span class='pagetitle'>{$ibforums->lang['cp_check_result']}</span>
|
||||
<br>{$ibforums->lang['cp_check_text']}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -229,7 +229,7 @@ return <<<EOF
|
||||
<td><span style='color:red'>$count</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' align='center' id='row2'><b><a href='{$ibforums->base_url}$link'>$link_text</a></b></td>
|
||||
<td colspan='2' align='center' class='row2'><b><a href='{$ibforums->base_url}$link'>$link_text</a></b></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -252,15 +252,15 @@ return <<<EOF
|
||||
<!-- IBF.CONFIRM -->
|
||||
|
||||
<tr>
|
||||
<td colspan='2' id='pagetitle'>{$ibforums->lang['cp_prune']} {$forum['name']}</td>
|
||||
<td colspan='2' class='pagetitle'>{$ibforums->lang['cp_prune']} {$forum['name']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2'>{$ibforums->lang['cp_prune_text']}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width='40%' id='row2'>{$ibforums->lang['cp_action']}</td>
|
||||
<td id='row2'><select name='df' class='forminput'>$forums</select></td>
|
||||
<td width='40%' class='row2'>{$ibforums->lang['cp_action']}</td>
|
||||
<td class='row2'><select name='df' class='forminput'>$forums</select></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@@ -304,7 +304,7 @@ return <<<EOF
|
||||
<input type='hidden' name='f' value='{$ibforums->input['f']}'>
|
||||
<input type='hidden' name='memberid' value='{$profile['id']}'>
|
||||
<tr>
|
||||
<td colspan='2' id='pagetitle'>{$ibforums->lang['cp_edit_user']}: {$profile['name']}</td>
|
||||
<td colspan='2' class='pagetitle'>{$ibforums->lang['cp_edit_user']}: {$profile['name']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%'>{$ibforums->lang['cp_remove_av']}</td>
|
||||
@@ -350,7 +350,7 @@ return <<<EOF
|
||||
<input type='hidden' name='CODE' value='doedituser'>
|
||||
<input type='hidden' name='f' value='{$ibforums->input['f']}'>
|
||||
<tr>
|
||||
<td colspan='2' id='pagetitle'>{$ibforums->lang['cp_edit_user']}</td>
|
||||
<td colspan='2' class='pagetitle'>{$ibforums->lang['cp_edit_user']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%'>{$ibforums->lang['cp_find_2_user']}</td>
|
||||
@@ -375,7 +375,7 @@ return <<<EOF
|
||||
<input type='hidden' name='CODE' value='dofinduser'>
|
||||
<input type='hidden' name='f' value='{$ibforums->input['f']}'>
|
||||
<tr>
|
||||
<td colspan='2' id='pagetitle'>{$ibforums->lang['cp_edit_user']}</td>
|
||||
<td colspan='2' class='pagetitle'>{$ibforums->lang['cp_edit_user']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%'>{$ibforums->lang['cp_find_user']}</td>
|
||||
@@ -395,14 +395,14 @@ global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td id='pagetitle'>{$ibforums->lang['cp_welcome']}</td>
|
||||
<td class='pagetitle'>{$ibforums->lang['cp_welcome']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$ibforums->lang['cp_welcome_text']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellpadding='2' cellspacing='1' border='0' width='75%' id='fancyborder' align='center'>
|
||||
<table cellpadding='2' cellspacing='1' border='0' width='75%' class='fancyborder' align='center'>
|
||||
<tr>
|
||||
<td><b>{$ibforums->lang['cp_mod_in']}</b></td>
|
||||
<td>$forum</td>
|
||||
@@ -435,7 +435,7 @@ return <<<EOF
|
||||
|
||||
|
||||
<tr>
|
||||
<td id='row1' colspan='2'>$words</td>
|
||||
<td class='row1' colspan='2'>$words</td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -448,7 +448,7 @@ return <<<EOF
|
||||
|
||||
|
||||
<tr>
|
||||
<td id='row2' align='center' colspan='2'>
|
||||
<td class='row2' align='center' colspan='2'>
|
||||
<input type="submit" name="submit" value="$action" class='forminput'>
|
||||
</td></tr></table>
|
||||
</td></tr></table>
|
||||
@@ -464,12 +464,12 @@ return <<<EOF
|
||||
|
||||
|
||||
<tr>
|
||||
<td id='row1'>{$ibforums->lang[move_from]} <b>$forum_name</b> {$ibforums->lang[to]}:</td>
|
||||
<td id='row1'><select name='move_id' class='forminput'>$jhtml</select></td>
|
||||
<td class='row1'>{$ibforums->lang[move_from]} <b>$forum_name</b> {$ibforums->lang[to]}:</td>
|
||||
<td class='row1'><select name='move_id' class='forminput'>$jhtml</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1'><b>{$ibforums->lang['leave_link']}</b></td>
|
||||
<td id='row1'>
|
||||
<td class='row1'><b>{$ibforums->lang['leave_link']}</b></td>
|
||||
<td class='row1'>
|
||||
<select name='leave' class='forminput'>
|
||||
<option value='y' selected>{$ibforums->lang['yes']}</option>
|
||||
<option value='n'>{$ibforums->lang['no']}</option>
|
||||
@@ -503,12 +503,12 @@ return <<<EOF
|
||||
|
||||
|
||||
<tr>
|
||||
<td id='row1'><b>{$ibforums->lang[edit_f_title]}</b></td>
|
||||
<td id='row1'><input type='text' size='40' maxlength='50' name='TopicTitle' value='$title'></td>
|
||||
<td class='row1'><b>{$ibforums->lang[edit_f_title]}</b></td>
|
||||
<td class='row1'><input type='text' size='40' maxlength='50' name='TopicTitle' value='$title'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1'><b>{$ibforums->lang[edit_f_desc]}</b></td>
|
||||
<td id='row1'><input type='text' size='40' maxlength='40' name='TopicDesc' value='$desc'></td>
|
||||
<td class='row1'><b>{$ibforums->lang[edit_f_desc]}</b></td>
|
||||
<td class='row1'><input type='text' size='40' maxlength='40' name='TopicDesc' value='$desc'></td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -521,8 +521,8 @@ global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td id='row1'><b>{$ibforums->lang['pe_option']} $id</b></td>
|
||||
<td id='row1'><input type='text' size='60' maxlength='250' name='POLL_$id' value='$entry'></td>
|
||||
<td class='row1'><b>{$ibforums->lang['pe_option']} $id</b></td>
|
||||
<td class='row1'><input type='text' size='60' maxlength='250' name='POLL_$id' value='$entry'></td>
|
||||
</tr>
|
||||
|
||||
EOF;
|
||||
@@ -536,8 +536,8 @@ global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td id='row1'><b>{$ibforums->lang['pe_pollonly']} $id</b></td>
|
||||
<td id='row1'><select name='pollonly' class='forminput'><option value='0'>{$ibforums->lang['pe_no']}</option><option value='1'>{$ibforums->lang['pe_yes']}</option></select></td>
|
||||
<td class='row1'><b>{$ibforums->lang['pe_pollonly']} $id</b></td>
|
||||
<td class='row1'><select name='pollonly' class='forminput'><option value='0'>{$ibforums->lang['pe_no']}</option><option value='1'>{$ibforums->lang['pe_yes']}</option></select></td>
|
||||
</tr>
|
||||
|
||||
EOF;
|
||||
@@ -548,13 +548,13 @@ EOF;
|
||||
function table_top($posting_title) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<br>
|
||||
<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 valign='left' colspan='2' id='titlemedium'>$posting_title</td>
|
||||
<td valign='left' colspan='2' class='titlemedium'>$posting_title</td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -562,13 +562,116 @@ EOF;
|
||||
}
|
||||
|
||||
|
||||
function topic_history($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<br>
|
||||
<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 valign='left' colspan='2' class='titlemedium'>{$ibforums->lang['th_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1' width='40%'><b>{$ibforums->lang['th_topic']}</b></td>
|
||||
<td class='row1' width='60%'>{$data['th_topic']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1'><b>{$ibforums->lang['th_desc']}</b></td>
|
||||
<td class='row1'>{$data['th_desc']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1'><b>{$ibforums->lang['th_start_date']}</b></td>
|
||||
<td class='row1'>{$data['th_start_date']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1'><b>{$ibforums->lang['th_start_name']}</b></td>
|
||||
<td class='row1'>{$data['th_start_name']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1'><b>{$ibforums->lang['th_last_date']}</b></td>
|
||||
<td class='row1'>{$data['th_last_date']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1'><b>{$ibforums->lang['th_last_name']}</b></td>
|
||||
<td class='row1'>{$data['th_last_name']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1'><b>{$ibforums->lang['th_avg_post']}</b></td>
|
||||
<td class='row1'>{$data['th_avg_post']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function mod_log_start() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<br>
|
||||
<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 valign='left' colspan='3' class='titlemedium'>{$ibforums->lang['ml_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='category' width='30%'><b>{$ibforums->lang['ml_name']}</b></td>
|
||||
<td class='category' width='50%'><b>{$ibforums->lang['ml_desc']}</b></td>
|
||||
<td class='category' width='20%'><b>{$ibforums->lang['ml_date']}</b></td>
|
||||
</tr>
|
||||
|
||||
EOF;
|
||||
|
||||
}
|
||||
|
||||
function mod_log_none() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td class='row1' colspan='3' align='center'><i>{$data['ml_none']}</i></td>
|
||||
</tr>
|
||||
|
||||
EOF;
|
||||
|
||||
}
|
||||
|
||||
function mod_log_row($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td class='row1'>{$data['member']}</td>
|
||||
<td class='row1'>{$data['action']}</td>
|
||||
<td class='row1'>{$data['date']}</td>
|
||||
</tr>
|
||||
|
||||
EOF;
|
||||
|
||||
}
|
||||
|
||||
function mod_log_end() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
EOF;
|
||||
|
||||
}
|
||||
|
||||
function forum_jump($data, $menu_extra="") {
|
||||
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<br>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' align='center'>
|
||||
<tr>
|
||||
<td align='right'>{$data}</td>
|
||||
</tr>
|
||||
@@ -578,96 +681,88 @@ EOF;
|
||||
|
||||
}
|
||||
|
||||
function Menu_bar($base_url, $fid) {
|
||||
|
||||
|
||||
function split_body($jump="") {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<br>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellpadding='2' cellspacing='1' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='20%' id='titlemedium'> </td>
|
||||
<td width='80%' id='titlemedium'> </td>
|
||||
</tr>
|
||||
<td id='row1' valign='top'>
|
||||
|
||||
<!-- Moderate Topics -->
|
||||
|
||||
<table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder'>
|
||||
<tr>
|
||||
<td id='title'><b>{$ibforums->lang['cp_mod_topics_title']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1'><a href='{$base_url}&act=ModCP&CODE=modtopics&f=$fid'>{$ibforums->lang['cp_mod_topics']}</a></td>
|
||||
</tr>
|
||||
<td id='row1'><a href='{$base_url}&act=ModCP&CODE=modposts&f=$fid'>{$ibforums->lang['cp_mod_posts']}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- Manage Topics -->
|
||||
|
||||
<br>
|
||||
|
||||
<table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder'>
|
||||
<tr>
|
||||
<td id='title'><b>{$ibforums->lang['cp_manage_posts']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1'><a href='{$base_url}&act=ModCP&CODE=prune&f=$fid'>{$ibforums->lang['cp_prune_posts']}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- Manage Users -->
|
||||
|
||||
<br>
|
||||
|
||||
<table cellpadding='2' cellspacing='1' border='0' width='100%' id='fancyborder'>
|
||||
<tr>
|
||||
<td id='title'><b>{$ibforums->lang['cp_mod_users_title']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1'><a href='{$base_url}&act=ModCP&CODE=edituser&f=$fid'>{$ibforums->lang['cp_user_edit']}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td id='row1' valign='top'>
|
||||
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
|
||||
<!-- Start main CP area -->
|
||||
|
||||
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
function CP_end() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<!-- end main CP area -->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table></td></tr></table>
|
||||
|
||||
<tr>
|
||||
<td class='row1'><b>{$ibforums->lang['mt_new_title']}</b></td>
|
||||
<td class='row1'><input type='text' size='40' maxlength='50' name='title' value=''></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1'><b>{$ibforums->lang['mt_new_desc']}</b></td>
|
||||
<td class='row1'><input type='text' size='40' maxlength='40' name='desc' value=''></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1'>{$ibforums->lang['st_forum']}</td>
|
||||
<td class='row1'><select name='fid' class='forminput'>$jump</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1' colspan='2'>
|
||||
<table width='100%' cellpadding='4' cellspacing='1' border='0' style='border:1px solid <{tbl_border}>'>
|
||||
<tr>
|
||||
<td class='titlemedium'>{$ibforums->lang['st_post']}</td>
|
||||
</tr>
|
||||
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
function mod_error($msg="") {
|
||||
function split_row($row) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td id='pagetitle'>{$ibforums->lang['cp_error']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>$msg</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='border-bottom:1px solid <{tbl_border}>' class='{$row['post_css']}'>{$row['st_top_bit']}
|
||||
<hr noshade size=1 color="<{tbl_border}>">
|
||||
<br>{$row['post']}
|
||||
<br><div align='right'><b>{$ibforums->lang['st_split']}</b> <input type='checkbox' name='post_{$row['pid']}' value='1'></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
function split_end_form($action) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
</table>
|
||||
</td>
|
||||
<tr>
|
||||
<td class='row2' align='center' colspan='2'>
|
||||
<input type="submit" name="submit" value="$action" class='forminput'>
|
||||
</td></tr></table>
|
||||
</td></tr></table>
|
||||
</form>
|
||||
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
function merge_body($title="", $desc="") {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
|
||||
<tr>
|
||||
<td class='row1'><b>{$ibforums->lang['mt_new_title']}</b></td>
|
||||
<td class='row1'><input type='text' size='40' maxlength='50' name='title' value='$title'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1'><b>{$ibforums->lang['mt_new_desc']}</b></td>
|
||||
<td class='row1'><input type='text' size='40' maxlength='40' name='desc' value='$desc'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1'>{$ibforums->lang['mt_tid']}</td>
|
||||
<td class='row1'><input type='text' size='80' name='topic_url' value=''></td>
|
||||
</tr>
|
||||
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,880 @@
|
||||
<?php
|
||||
|
||||
class skin_modcp {
|
||||
|
||||
|
||||
function mod_cp_start() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table width="<{tbl_width}>" align="center" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr>
|
||||
<td><span class='pagetitle'>{$ibforums->lang['cp_modcp_ptitle']}</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>{$ibforums->lang['mod_opts']}:</b>
|
||||
<a href='{$ibforums->base_url}&act=modcp&CODE=showforums'>{$ibforums->lang['menu_forums']}</a> |
|
||||
<a href='{$ibforums->base_url}&act=modcp&CODE=members'>{$ibforums->lang['menu_users']}</a> |
|
||||
<a href='{$ibforums->base_url}&act=modcp&CODE=ip'>{$ibforums->lang['menu_ip']}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
function modtopicview_start($tid,$forumname, $fid, $title) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<form name='ibform' action='{$ibforums->base_url}' method='POST'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='act' value='modcp'>
|
||||
<input type='hidden' name='CODE' value='domodposts'>
|
||||
<input type='hidden' name='f' value='{$fid}'>
|
||||
<input type='hidden' name='tid' value='{$tid}'>
|
||||
|
||||
<table cellpadding='0' cellspacing='10' border='0' width='<{tbl_width}>' align='center'>
|
||||
<tr>
|
||||
<td><span class='nav'>{$ibforums->lang['cp_mod_posts_title2']} $forumname</span>
|
||||
<br>$pages
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width='<{tbl_width}>' align='center' cellpadding='4' cellspacing='1' bgcolor='<{tbl_border}>'>
|
||||
<tr>
|
||||
<td valign='middle' class='titlemedium' align='left' colspan='2'>$title</td>
|
||||
</tr>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
function modpost_topicstart($forumname, $fid) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' align='center'>
|
||||
<tr>
|
||||
<td><span class='nav'>{$ibforums->lang['cp_mod_posts_title2']} $forumname</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width='<{tbl_width}>' cellpadding='4' align='center' cellspacing='1' bgcolor='<{tbl_border}>'>
|
||||
<tr>
|
||||
<td class='titlemedium' width='40%'>{$ibforums->lang['cp_3_title']}</td>
|
||||
<td class='titlemedium' width='20%' align='center'>{$ibforums->lang['cp_3_replies']}</td>
|
||||
<td class='titlemedium' width='20%' align='center'>{$ibforums->lang['cp_3_approveall']}</td>
|
||||
<td class='titlemedium' width='20%' align='center'>{$ibforums->lang['cp_3_viewall']}</td>
|
||||
</tr>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
function modpost_topicentry($title, $tid, $replies, $fid) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td class='row1' width='40%' align='left'><b><a href='{$ibforums->base_url}&act=ST&f=$fid&t=$tid' target='_blank'>$title</a></b></td>
|
||||
<td class='row1' width='20%' align='center'>$replies</td>
|
||||
<td class='row1' width='20%' align='center'><a href='{$ibforums->base_url}&act=modcp&f=$fid&tid=$tid&CODE=modtopicapprove'>{$ibforums->lang['cp_3_approveall']}</a></td>
|
||||
<td class='row1' width='20%' align='center'><a href='{$ibforums->base_url}&act=modcp&f=$fid&tid=$tid&CODE=modtopicview'>{$ibforums->lang['cp_3_viewall']}</a></td>
|
||||
</tr>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
function modpost_topicend() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function modtopics_start($pages,$forumname, $fid) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<form name='ibform' action='{$ibforums->base_url}' method='POST'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='act' value='modcp'>
|
||||
<input type='hidden' name='CODE' value='domodtopics'>
|
||||
<input type='hidden' name='f' value='{$fid}'>
|
||||
|
||||
<table cellpadding='2' cellspacing='1' border='0' width='<{tbl_width}>' align='center'>
|
||||
<tr>
|
||||
<td><span class='nav'>{$ibforums->lang['cp_mod_topics_title2']} $forumname</span>
|
||||
<br>$pages
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
function modtopics_end() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<table width='<{tbl_width}>' cellpadding='4' align='center' cellspacing='1' bgcolor='<{tbl_border}>'>
|
||||
<tr>
|
||||
<td class='row2' align='center'><input type='submit' value='{$ibforums->lang['cp_1_go']}' class='forminput'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
function mod_topic_title($title, $topic_id) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<table width='<{tbl_width}>' cellpadding='4' align='center' cellspacing='1' bgcolor='<{tbl_border}>'>
|
||||
<tr>
|
||||
<td valign='middle' class='titlemedium' align='left' colspan='2'><select name='TID_$topic_id' class='forminput'><option value='approve'>{$ibforums->lang['cp_1_approve']}</option><option value='remove'>{$ibforums->lang['cp_1_remove']}</option><option value='leave'>{$ibforums->lang['cp_1_leave']}</option></select> $title</td>
|
||||
</tr>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
function mod_postentry($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td valign='top' class='row1' width='25%'><span class='normalname'>{$data['member']['name']}</span><br><br>{$data['member']['avatar']}<span class='postdetails'><br>{$data['member']['MEMBER_GROUP']}<br>{$data['member']['MEMBER_POSTS']}<br>{$data['member']['MEMBER_JOINED']}</span></td>
|
||||
<td valign='top' height='100%' class='row1' width='75%'>
|
||||
<b>{$ibforums->lang['posted_on']} {$data['msg']['post_date']}</b><br><br>
|
||||
<span class='postcolor'>
|
||||
{$data['msg']['post']}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
function mod_postentry_checkbox($pid) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td align='left' colspan='2' class='category'><select name='PID_$pid' class='forminput'><option value='approve'>{$ibforums->lang['cp_1_approve']}</option><option value='remove'>{$ibforums->lang['cp_1_remove']}</option><option value='leave'>{$ibforums->lang['cp_1_leave']}</option></select> {$ibforums->lang['cp_3_postno']} $pid</td>
|
||||
</tr>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
function mod_topic_spacer() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
</table>
|
||||
<br>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
function results($text) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
<table cellpadding='2' cellspacing='1' border='0' width='100%' class='fancyborder' align='center'>
|
||||
<tr>
|
||||
<td><span class='pagetitle'>{$ibforums->lang['cp_results']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2'><b>$text</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
function prune_confirm($tcount, $count, $link, $link_text) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
|
||||
<table width='<{tbl_width}>' cellpadding='1' align='center' cellspacing='1' bgcolor='<{tbl_border}>'>
|
||||
<tr>
|
||||
<td>
|
||||
<table width='100%' align='center' cellpadding='0' cellspacing='4' class='row1'>
|
||||
<tr>
|
||||
<td><span class='pagetitle'>{$ibforums->lang['cp_check_result']}</span>
|
||||
<br>{$ibforums->lang['cp_check_text']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>{$ibforums->lang['cp_total_topics']}</b></td>
|
||||
<td>$tcount</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b><span style='color:red'>{$ibforums->lang['cp_total_match']}</span></b></td>
|
||||
<td><span style='color:red'>$count</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' align='center' class='row2'><b><a class='nav' href='{$ibforums->base_url}$link'>$link_text</a></b></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
function prune_splash($forum, $forums, $select) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<form name='ibform' action='{$ibforums->base_url}' method='POST'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='act' value='modcp'>
|
||||
<input type='hidden' name='CODE' value='prune'>
|
||||
<input type='hidden' name='f' value='{$forum['id']}'>
|
||||
<input type='hidden' name='check' value='1'>
|
||||
|
||||
|
||||
|
||||
<table width="<{tbl_width}>" align="center" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr>
|
||||
<td><span class='nav'>{$ibforums->lang['cp_prune']} {$forum['name']}</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$ibforums->lang['cp_prune_text']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<!-- IBF.CONFIRM -->
|
||||
|
||||
|
||||
|
||||
<table width='<{tbl_width}>' cellpadding='0' align='center' cellspacing='1' bgcolor='<{tbl_border}>'>
|
||||
<tr>
|
||||
<td>
|
||||
<table width='100%' align='center' cellpadding='4' cellspacing='1' class='row1'>
|
||||
<tr>
|
||||
<td width='40%'>{$ibforums->lang['cp_action']}</td>
|
||||
<td ><select name='df' class='forminput'>$forums</select></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width='40%'>{$ibforums->lang['cp_prune_days']}</td>
|
||||
<td><input type='text' size='40' name='dateline' value='{$ibforums->input['dateline']}' class='forminput'></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width='40%'>{$ibforums->lang['cp_prune_type']}</td>
|
||||
<td>$select</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width='40%'>{$ibforums->lang['cp_prune_replies']}</td>
|
||||
<td><input type='text' size='40' name='posts' value='{$ibforums->input['posts']}' class='forminput'></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width='40%'>{$ibforums->lang['cp_prune_member']}</td>
|
||||
<td><input type='text' size='40' name='member' value='{$ibforums->input['member']}' class='forminput'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' align='center'><input type='submit' value='{$ibforums->lang['cp_prune_sub1']}' class='forminput'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function edit_user_form($profile) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<form name='ibform' action='{$ibforums->base_url}' method='POST'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='act' value='modcp'>
|
||||
<input type='hidden' name='CODE' value='compedit'>
|
||||
<input type='hidden' name='memberid' value='{$profile['id']}'>
|
||||
|
||||
<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="3">
|
||||
<tr>
|
||||
<td colspan='2' class='maintitle'>{$ibforums->lang['cp_edit_user']}: {$profile['name']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='row2'>{$ibforums->lang['cp_remove_av']}</td>
|
||||
<td class='row2'><select name='avatar' class='forminput'><option value='0'>{$ibforums->lang['no']}</option><option value='1'>{$ibforums->lang['yes']}</option></select></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width='40%' class='row2'>{$ibforums->lang['cp_edit_website']}</td>
|
||||
<td class='row2'><input type='text' size='40' name='website' value='{$profile['website']}' class='forminput'></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width='40%' class='row2'>{$ibforums->lang['cp_edit_location']}</td>
|
||||
<td class='row2'><input type='text' size='40' name='location' value='{$profile['location']}' class='forminput'></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width='40%' class='row2'>{$ibforums->lang['cp_edit_interests']}</td>
|
||||
<td class='row2'><textarea cols='50' rows='3' name='interests' class='forminput'>{$profile['interests']}</textarea></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='row2' width='40%'>{$ibforums->lang['cp_edit_signature']}</td>
|
||||
<td class='row2'><textarea cols='50' rows='5' name='signature' class='forminput'>{$profile['signature']}</textarea></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan='2' class='row1' align='center'><input type='submit' value='{$ibforums->lang['cp_find_2_submit']}' class='forminput'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
function find_two($select) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<form name='ibform' action='{$ibforums->base_url}' method='POST'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='act' value='modcp'>
|
||||
<input type='hidden' name='CODE' value='doedituser'>
|
||||
<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="3">
|
||||
<tr>
|
||||
<td colspan='2' class='maintitle'>{$ibforums->lang['cp_edit_user']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='row1'>{$ibforums->lang['cp_find_2_user']}</td>
|
||||
<td class='row1'>$select</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' class='row1' align='center'><input type='submit' value='{$ibforums->lang['cp_find_2_submit']}' class='forminput'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
function find_user() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<form name='ibform' action='{$ibforums->base_url}' method='POST'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='act' value='modcp'>
|
||||
<input type='hidden' name='CODE' value='dofinduser'>
|
||||
<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="3">
|
||||
<tr>
|
||||
<td colspan='2' class='maintitle'>{$ibforums->lang['cp_edit_user']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='row1'>{$ibforums->lang['cp_find_user']}</td>
|
||||
<td class='row1'><input type='text' size='40' name='name' value='' class='forminput'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' align='center' class='row1'><input type='submit' value='{$ibforums->lang['cp_find_submit']}' class='forminput'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
function ip_start_form($ip_addr) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<form name='ibform' action='{$ibforums->base_url}' method='POST'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='act' value='modcp'>
|
||||
<input type='hidden' name='CODE' value='doip'>
|
||||
<table width="<{tbl_width}>" align="center" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr>
|
||||
<td class='desc'>{$ibforums->lang['ip_desc_text']}<br><br>{$ibforums->lang['ip_warn_text']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<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="3">
|
||||
<tr>
|
||||
<td colspan='2' class='maintitle'>{$ibforums->lang['menu_ip']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='row1'>{$ibforums->lang['ip_enter']}</td>
|
||||
<td class='row1'>
|
||||
<input type='text' size='3' maxlength='3' name='ip1' value='{$ip_addr[0]}' class='forminput'><b>.</b>
|
||||
<input type='text' size='3' maxlength='3' name='ip2' value='{$ip_addr[1]}' class='forminput'><b>.</b>
|
||||
<input type='text' size='3' maxlength='3' name='ip3' value='{$ip_addr[2]}' class='forminput'><b>.</b>
|
||||
<input type='text' size='3' maxlength='3' name='ip4' value='{$ip_addr[3]}' class='forminput'>
|
||||
<select name='iptool' class='forminput'>
|
||||
<option value='resolve'>{$ibforums->lang['ip_resolve']}</option>
|
||||
<option value='posts'>{$ibforums->lang['ip_posts']}</option>
|
||||
<option value='members'>{$ibforums->lang['ip_members']}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' align='center' class='row1'><input type='submit' value='{$ibforums->lang['ip_submit']}' class='forminput'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
function ip_member_start($pages) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<table width="<{tbl_width}>" align="center" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr>
|
||||
<td align='left'>$pages</td>
|
||||
</tr>
|
||||
</table>
|
||||
<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="3">
|
||||
<tr>
|
||||
<td colspan='5' class='maintitle'>{$ibforums->lang['ipm_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='titlemedium' width='20%'>{$ibforums->lang['ipm_name']}</td>
|
||||
<td class='titlemedium' width='20%'>{$ibforums->lang['ipm_ip']}</td>
|
||||
<td class='titlemedium' width='10%'>{$ibforums->lang['ipm_posts']}</td>
|
||||
<td class='titlemedium' width='20%'>{$ibforums->lang['ipm_reg']}</td>
|
||||
<td class='titlemedium' width='30%'>{$ibforums->lang['ipm_options']}</td>
|
||||
</tr>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
function ip_member_row($row) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td class='row2'>{$row['name']}</td>
|
||||
<td class='row2'>{$row['ip_address']}</td>
|
||||
<td class='row2'>{$row['posts']}</td>
|
||||
<td class='row2'>{$row['joined']}</td>
|
||||
<td class='row2' align='center'><a href='{$ibforums->base_url}&act=Profile&MID={$row['id']}' target='_blank'>{$ibforums->lang['ipm_view']}</a>
|
||||
| <a href='{$ibforums->base_url}&act=modcp&CODE=doedituser&memberid={$row['id']}'>{$ibforums->lang['ipm_edit']}</a></td>
|
||||
</tr>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
function ip_member_end($pages) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="<{tbl_width}>" align="center" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr>
|
||||
<td align='left'>$pages</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
function splash($tcount, $pcount, $forum) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td class='pagetitle'>{$ibforums->lang['cp_welcome']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$ibforums->lang['cp_welcome_text']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellpadding='2' cellspacing='1' border='0' width='75%' class='fancyborder' align='center'>
|
||||
<tr>
|
||||
<td><b>{$ibforums->lang['cp_mod_in']}</b></td>
|
||||
<td>$forum</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>{$ibforums->lang['cp_topics_wait']}</b></td>
|
||||
<td>$tcount</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>{$ibforums->lang['cp_posts_wait']}</b></td>
|
||||
<td>$pcount</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function mod_exp($words) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class='row1' colspan='2'>$words</td>
|
||||
</tr>
|
||||
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
function end_form($action) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
|
||||
<tr>
|
||||
<td class='row2' align='center' colspan='2'>
|
||||
<input type="submit" name="submit" value="$action" class='forminput'>
|
||||
</td></tr></table>
|
||||
</td></tr></table>
|
||||
</form>
|
||||
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
function forum_row($info) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<!-- Forum {$info['id']} entry -->
|
||||
<tr>
|
||||
<td class='forum2' align='center' width='5%'>{$info['folder_icon']}</td>
|
||||
<td class="forum2"><span class="linkthru"><b><a href="{$ibforums->base_url}&act=modcp&CODE=showtopics&f={$info['id']}">{$info['name']}</a></b></span><br><span class='desc'>{$info['description']}</span><br>{$info['moderator']}</td>
|
||||
<td class="forum1" align="center">{$info['q_topics']}</td>
|
||||
<td class="forum1" align="center">{$info['q_posts']}</td>
|
||||
<td class="forum1">{$info['last_post']}<br>{$ibforums->lang['in']}: {$info['last_topic']}<br>{$ibforums->lang['by']}: {$info['last_poster']}</td>
|
||||
<td class="forum1" align="center"><input type='radio' name='f' value='{$info['id']}'></td>
|
||||
</tr>
|
||||
<!-- End of Forum {$info['id']} entry -->
|
||||
EOF;
|
||||
}
|
||||
|
||||
function forum_page_start() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<form action='{$ibforums->base_url}&act=modcp&CODE=fchoice' method='post'>
|
||||
<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="3">
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
function cat_row($cat_name) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td colspan='6' class='maintitle'>$cat_name</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='titlemedium' align='left' width='5%'> </td>
|
||||
<td width="45%" nowrap class='titlemedium'>{$ibforums->lang['cat_name']}</td>
|
||||
<td align="center" width="10%" nowrap class='titlemedium'>{$ibforums->lang['f_q_topics']}</td>
|
||||
<td align="center" width="10%" nowrap class='titlemedium'>{$ibforums->lang['f_q_posts']}</td>
|
||||
<td width="25%" nowrap class='titlemedium'>{$ibforums->lang['last_post_info']}</td>
|
||||
<td width="5%" nowrap class='titlemedium'>{$ibforums->lang['f_select']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function forum_page_end() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td colspan='6' class='row2' align='right'><b>{$ibforums->lang['f_w_selected']}</b>
|
||||
<select class='forminput' name='fact'>
|
||||
<option value='mod_topic'>{$ibforums->lang['cp_mod_topics']}</option>
|
||||
<option value='mod_post'>{$ibforums->lang['cp_mod_posts']}</option>
|
||||
<option value='prune_move'>{$ibforums->lang['cp_prune_posts']}</option>
|
||||
</select> <input type='submit' value='{$ibforums->lang['f_go']}' class='forminput'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function mod_simple_page($title="",$msg="") {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table cellpadding='5' align='center' width='<{tbl_width}>' cellspacing='0' border='0' style='border:1px solid <{tbl_border}>' class='row2'>
|
||||
<tr>
|
||||
<td class='pagetitle'>$title</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>$msg</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
function ip_post_results($uid="",$count="") {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
{$ibforums->lang['ipp_found']} $count
|
||||
<br>
|
||||
<br>
|
||||
<a target='_blank' href='{$ibforums->base_url}&act=Search&CODE=show&searchid=$uid&search_in=posts&result_type=posts'>{$ibforums->lang['ipp_click']}</a>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
function start_topics($pages,$info) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<script language='javascript'>
|
||||
<!--
|
||||
function checkdelete() {
|
||||
|
||||
isDelete = document.topic.tact.options[document.topic.tact.selectedIndex].value;
|
||||
|
||||
msg = '';
|
||||
|
||||
if (isDelete == 'delete')
|
||||
{
|
||||
msg = "{$ibforums->lang['cp_js_delete']}";
|
||||
|
||||
formCheck = confirm(msg);
|
||||
|
||||
if (formCheck == true)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<table width='<{tbl_width}>' border='0' cellspacing='0' cellpadding='4' align='center'>
|
||||
<tr>
|
||||
<td width='100%'>$pages</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width='<{tbl_width}>' align='center' border='0' cellspacing='1' cellpadding='0' bgcolor='<{tbl_border}>'>
|
||||
<tr>
|
||||
<form action='{$ibforums->base_url}&act=modcp&f={$info['id']}&CODE=topicchoice' method='POST' name='topic' onSubmit='return checkdelete();'>
|
||||
<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>{$info['name']}</b> [ <a target='_blank' href='{$ibforums->base_url}&act=SF&f={$info['id']}'>{$ibforums->lang['new_show_forum']}</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='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='40%' 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>
|
||||
<td width='27%' nowrap class='titlemedium'>{$ibforums->lang['f_select']}</td>
|
||||
</tr>
|
||||
<!-- Forum page unique top -->
|
||||
EOF;
|
||||
}
|
||||
|
||||
function show_no_topics() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td class='forum2' colspan='8' align='center'>
|
||||
<br>
|
||||
<b>{$ibforums->lang['fv_no_topics']}</b>
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function topic_row($Data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<!-- Begin Topic Entry {$Data['tid']} -->
|
||||
<tr>
|
||||
<td align='center' class='forum2'>{$Data['folder_img']}</td>
|
||||
<td align='center' class='forum1'>{$Data['topic_icon']}</td>
|
||||
<td class='forum2'>
|
||||
<span class='linkthru'>{$Data['prefix']} <a target='_blank' 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>
|
||||
<br><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>{$Data['last_text']} <b>{$Data['last_poster']}</b></span></td>
|
||||
<td align='center' class='forum1'><input type='checkbox' name='TID_{$Data['real_tid']}' value=1></td>
|
||||
</tr>
|
||||
<!-- End Topic Entry {$Data['tid']} -->
|
||||
EOF;
|
||||
}
|
||||
|
||||
function topics_end($Data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='mainbg'>
|
||||
<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 align='right'><b>{$ibforums->lang['t_w_selected']}</b>
|
||||
<select class='forminput' name='tact'>
|
||||
<option value='close'>{$ibforums->lang['cpt_close']}</option>
|
||||
<option value='open'>{$ibforums->lang['cpt_open']}</option>
|
||||
<option value='pin'>{$ibforums->lang['cpt_pin']}</option>
|
||||
<option value='unpin'>{$ibforums->lang['cpt_unpin']}</option>
|
||||
<option value='move'>{$ibforums->lang['cpt_move']}</option>
|
||||
<option value='delete'>{$ibforums->lang['cpt_delete']}</option>
|
||||
</select>
|
||||
<input type='submit' value='{$ibforums->lang['f_go']}' class='forminput'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</form>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function move_checked_form_end($jump_html) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td class='row1' colspan='2' align='center'>{$ibforums->lang['cp_tmove_to']} <select class='forminput' name='df'>$jump_html</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row2' colspan='2' align='center'><input type='submit' value='{$ibforums->lang['cp_tmove_end']}' class='forminput'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function move_checked_form_entry($tid, $title) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td class='row1' width='90%' align='left'>$title</td>
|
||||
<td class='row1' width='10%' align='center'><input type='checkbox' name='TID_$tid' value='1' checked></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function move_checked_form_start($forum_name, $fid) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<form action='{$ibforums->base_url}&act=modcp&CODE=topicchoice&tact=domove&f=$fid' method='post'>
|
||||
<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="3">
|
||||
<tr>
|
||||
<td class='maintitle' colspan='2'>{$ibforums->lang['cp_tmove_start']} $forum_name</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
+548
-112
@@ -7,16 +7,43 @@ function preview($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<td colspan='2' id='row1'>
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='100%' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<td colspan='2' class='row1'>
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='100%' bgcolor='<{tbl_border}>' align='center'>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
|
||||
<tr>
|
||||
<td id='category' valign='top' align='left'><b>{$ibforums->lang['pm_preview']}</b></td>
|
||||
<td class='category' valign='top' align='left'><b>{$ibforums->lang['pm_preview']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' valign='top' align='left'>$data</td>
|
||||
<td class='row1' valign='top' align='left'>$data</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
function pm_errors($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<td colspan='2' class='row1'>
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='100%' bgcolor='<{tbl_border}>' align='center'>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
|
||||
<tr>
|
||||
<td class='category' valign='top' align='left'><span class='highlight'><b>{$ibforums->lang['pme_title']}</b></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1' valign='top' align='left'>$data<br><br>{$ibforums->lang['pme_none_sent']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -31,7 +58,7 @@ EOF;
|
||||
|
||||
|
||||
|
||||
function pm_popup($text) {
|
||||
function pm_popup($text, $mid) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<script language='javascript'>
|
||||
@@ -42,21 +69,30 @@ return <<<EOF
|
||||
}
|
||||
|
||||
function goto_this_inbox() {
|
||||
window.resizeTo('650','500');
|
||||
window.resizeTo('700','500');
|
||||
document.location.href = '{$ibforums->base_url}&act=Msg&CODE=01';
|
||||
}
|
||||
|
||||
function go_read_msg() {
|
||||
window.resizeTo('700','500');
|
||||
document.location.href = '{$ibforums->base_url}&act=Msg&CODE=03&VID=in&MSID=$mid';
|
||||
}
|
||||
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<table cellspacing='1' cellpadding='10' width='100%' height='100%' align='center' id='row1'>
|
||||
<table cellspacing='1' cellpadding='10' width='100%' height='100%' align='center' class='row1'>
|
||||
<tr>
|
||||
<td id='pagetitle' align='center'>{$ibforums->lang['pmp_title']}</td>
|
||||
<td class='pagetitle' align='center'>{$ibforums->lang['pmp_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='center'>$text</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='center' style='font-size:12px;font-weight:bold'><a href='javascript:goto_inbox();'>{$ibforums->lang['pmp_go_inbox']}</a> ( <a href='javascript:goto_this_inbox();'>{$ibforums->lang['pmp_thiswindow']}</a> )<br><br><a href='javascript:window.close();'>{$ibforums->lang['pmp_ignore']}</a></td>
|
||||
<td align='center' style='font-size:12px;font-weight:bold'>
|
||||
<a href='javascript:go_read_msg();'>{$ibforums->lang['pmp_get_last']}</a>
|
||||
<br /><br />
|
||||
<a href='javascript:goto_inbox();'>{$ibforums->lang['pmp_go_inbox']}</a> ( <a href='javascript:goto_this_inbox();'>{$ibforums->lang['pmp_thiswindow']}</a> )<br><br><a href='javascript:window.close();'>{$ibforums->lang['pmp_ignore']}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
@@ -108,7 +144,7 @@ EOF;
|
||||
function archive_complete() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<td id='row1 colspan='2'><span id='pagetitle'>{$ibforums->lang['arc_comp_title']}</span><br>{$ibforums->lang['arc_complete']}</td>
|
||||
<td class='row1 colspan='2'><span class='pagetitle'>{$ibforums->lang['arc_comp_title']}</span><br>{$ibforums->lang['arc_complete']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
@@ -116,10 +152,10 @@ EOF;
|
||||
function archive_form($jump_html="") {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<td id='row1 colspan='2'><span id='pagetitle'>{$ibforums->lang['archive_title']}</span><br>{$ibforums->lang['archive_text']}</td>
|
||||
<td class='row1 colspan='2'><span class='pagetitle'>{$ibforums->lang['archive_title']}</span><br>{$ibforums->lang['archive_text']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1 colspan='2'>
|
||||
<td class='row1 colspan='2'>
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post">
|
||||
<input type='hidden' name='act' value='Msg'>
|
||||
<input type='hidden' name='CODE' value='15'>
|
||||
@@ -127,27 +163,27 @@ return <<<EOF
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1'><b>{$ibforums->lang['arc_folders']}</b></td>
|
||||
<td id='row1'>$jump_html</td>
|
||||
<td class='row1'><b>{$ibforums->lang['arc_folders']}</b></td>
|
||||
<td class='row1'>$jump_html</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row2'><b>{$ibforums->lang['arc_dateline']}</b></td>
|
||||
<td id='row2' valign='middle'><select name='dateline' class='forminput'><option value='1'>1</option><option value='7'>7</option><option value='30' selected>30</option><option value='90'>90</option><option value='365'>365</option><option value='all'>{$ibforums->lang['arc_alldays']}</option></select> {$ibforums->lang['arc_days']}</td>
|
||||
<td class='row2'><b>{$ibforums->lang['arc_dateline']}</b></td>
|
||||
<td class='row2' valign='middle'><select name='dateline' class='forminput'><option value='1'>1</option><option value='7'>7</option><option value='30' selected>30</option><option value='90'>90</option><option value='365'>365</option><option value='all'>{$ibforums->lang['arc_alldays']}</option></select> {$ibforums->lang['arc_days']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1'><b>{$ibforums->lang['arc_max']}</b></td>
|
||||
<td id='row1' valign='middle'><select name='number' class='forminput'><option value='5'>5</option><option value='10'>10</option><option value='20' selected>20</option><option value='30'>30</option><option value='40'>40</option><option value='50'>50</option></select></td>
|
||||
<td class='row1'><b>{$ibforums->lang['arc_max']}</b></td>
|
||||
<td class='row1' valign='middle'><select name='number' class='forminput'><option value='5'>5</option><option value='10'>10</option><option value='20' selected>20</option><option value='30'>30</option><option value='40'>40</option><option value='50'>50</option></select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row2'><b>{$ibforums->lang['arc_delete']}</b></td>
|
||||
<td id='row2' valign='middle'><select name='delete' class='forminput'><option value='yes' selected>{$ibforums->lang['arc_yes']}</option><option value='no'>{$ibforums->lang['arc_no']}</option></select></td>
|
||||
<td class='row2'><b>{$ibforums->lang['arc_delete']}</b></td>
|
||||
<td class='row2' valign='middle'><select name='delete' class='forminput'><option value='yes' selected>{$ibforums->lang['arc_yes']}</option><option value='no'>{$ibforums->lang['arc_no']}</option></select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1'><b>{$ibforums->lang['arc_type']}</b></td>
|
||||
<td id='row1' valign='middle'><select name='type' class='forminput'><option value='xls' selected>{$ibforums->lang['arc_xls']}</option><option value='html'>{$ibforums->lang['arc_html']}</option></select></td>
|
||||
<td class='row1'><b>{$ibforums->lang['arc_type']}</b></td>
|
||||
<td class='row1' valign='middle'><select name='type' class='forminput'><option value='xls' selected>{$ibforums->lang['arc_xls']}</option><option value='html'>{$ibforums->lang['arc_html']}</option></select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' align='center' id='row2'><input type="submit" value="{$ibforums->lang['arc_submit']}" class='forminput'></td>
|
||||
<td colspan='2' align='center' class='row2'><input type="submit" value="{$ibforums->lang['arc_submit']}" class='forminput'></td>
|
||||
</tr>
|
||||
</form>
|
||||
EOF;
|
||||
@@ -157,7 +193,7 @@ function No_msg_inbox() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td id='row1' colspan='5' align='center'><b>{$ibforums->lang['inbox_no_msg']}</b></td>
|
||||
<td class='row1' colspan='5' align='center'><b>{$ibforums->lang['inbox_no_msg']}</b></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
@@ -166,10 +202,10 @@ function prefs_add_dirs() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td colspan='2' id='category'><b>{$ibforums->lang['prefs_new']}</b></td>
|
||||
<td colspan='2' class='category'><b>{$ibforums->lang['prefs_new']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1 colspan='2'>{$ibforums->lang['prefs_text_b']}</td>
|
||||
<td class='row1 colspan='2'>{$ibforums->lang['prefs_text_b']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
@@ -184,7 +220,7 @@ EOF;
|
||||
function Address_header() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<td colspan='2' id='category'><b>{$ibforums->lang['address_current']}</b></td>
|
||||
<td colspan='2' class='category'><b>{$ibforums->lang['address_current']}</b></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
@@ -193,7 +229,7 @@ function Address_none() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td id='row1 colspan='2' align='center'><b>{$ibforums->lang['address_none']}</b></td>
|
||||
<td class='row1 colspan='2' align='center'><b>{$ibforums->lang['address_none']}</b></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
@@ -201,10 +237,10 @@ EOF;
|
||||
function address_edit($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<td colspan='2' id='category'><b>{$ibforums->lang['member_edit']}</b></font></td>
|
||||
<td colspan='2' class='category'><b>{$ibforums->lang['member_edit']}</b></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1 align='left' valign='middle' colspan='2'>
|
||||
<td class='row1 align='left' valign='middle' colspan='2'>
|
||||
<table cellspacing='1' cellpadding='2' width='100%' border='0'>
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post">
|
||||
<input type='hidden' name='act' value='Msg'>
|
||||
@@ -230,8 +266,8 @@ function render_address_row($entry) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td id='row1 align='left' valign='middle'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Profile&CODE=03&MID={$entry['contact_id']}'><b>{$entry['contact_name']}</b></a> [ {$entry['contact_desc']} ]</td>
|
||||
<td id='row1 align='left' valign='middle'>
|
||||
<td class='row1 align='left' valign='middle'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Profile&CODE=03&MID={$entry['contact_id']}'><b>{$entry['contact_name']}</b></a> [ {$entry['contact_desc']} ]</td>
|
||||
<td class='row1 align='left' valign='middle'>
|
||||
[ <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Msg&CODE=11&MID={$entry['contact_id']}' class='misc'>{$ibforums->lang['edit']}</a> ] :: [ <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Msg&CODE=10&MID={$entry['contact_id']}'>{$ibforums->lang['delete']}</a> ]
|
||||
( {$entry['text']} )
|
||||
</td>
|
||||
@@ -243,10 +279,10 @@ function address_add($mem_to_add) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td colspan='2' id='category'><b>{$ibforums->lang['member_add']}</b></font></td>
|
||||
<td colspan='2' class='category'><b>{$ibforums->lang['member_add']}</b></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1 align='left' valign='middle' colspan='2'>
|
||||
<td class='row1 align='left' valign='middle' colspan='2'>
|
||||
<table cellspacing='1' cellpadding='2' width='100%' border='0'>
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post">
|
||||
<input type='hidden' name='act' value='Msg'>
|
||||
@@ -258,7 +294,7 @@ return <<<EOF
|
||||
<td valign='middle' align='left'>{$ibforums->lang['allow_msg']}<br><select name='allow_msg' class='forminput'><option value='yes' selected>{$ibforums->lang['yes']}<option value='no'>{$ibforums->lang['no']}</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row2' colspan='3' align='center'><input type="submit" value="{$ibforums->lang['submit_address']}" class='forminput'></td>
|
||||
<td class='row2' colspan='3' align='center'><input type="submit" value="{$ibforums->lang['submit_address']}" class='forminput'></td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
@@ -271,7 +307,7 @@ function prefs_footer() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td id='row2 colspan='2' align='center'><input type='submit' value='{$ibforums->lang['prefs_submit']}' class='forminput'></td>
|
||||
<td class='row2 colspan='2' align='center'><input type='submit' value='{$ibforums->lang['prefs_submit']}' class='forminput'></td>
|
||||
</tr></form>
|
||||
EOF;
|
||||
}
|
||||
@@ -280,7 +316,7 @@ function prefs_row($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td id='row1 colspan='2'><input type='text' name='{$data[ID]}' value='{$data[REAL]}' class='forminput'>{$data[EXTRA]}</td>
|
||||
<td class='row1 colspan='2'><input type='text' name='{$data[ID]}' value='{$data[REAL]}' class='forminput'>{$data[EXTRA]}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
@@ -289,11 +325,11 @@ function Address_table_header() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td valign='top' id='row1 colspan='2'>
|
||||
<td valign='top' class='row1 colspan='2'>
|
||||
<table cellpadding='4' cellspacing='0' align='center' width='100%' style='border:1px solid {$this->class['SKIN']['TABLE_BORDER_COL']}'>
|
||||
<tr>
|
||||
<td id='row2 align='left' width='60%' id='titlemedium'><b>{$ibforums->lang['member_name']}</b></td>
|
||||
<td id='row2 align='left' width='40%' id='titlemedium'><b>{$ibforums->lang['enter_block']}</b></td>
|
||||
<td class='row2 align='left' width='60%' class='titlemedium'><b>{$ibforums->lang['member_name']}</b></td>
|
||||
<td class='row2 align='left' width='40%' class='titlemedium'><b>{$ibforums->lang['enter_block']}</b></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
@@ -301,41 +337,69 @@ EOF;
|
||||
function Render_msg($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<td id='row1 align='left'><span id='pagetitle'>{$data['msg']['title']}</span><br>{$data['msg']['msg_date']}</td>
|
||||
<td id='row1 align='right'>
|
||||
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&CODE=04&act=Msg&MID={$data['member']['id']}&MSID={$data['msg']['msg_id']}'>{$ibforums->skin[M_REPLY]}</a>
|
||||
|
||||
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&CODE=02&act=Msg&MID={$data['member']['id']}'>{$ibforums->skin[M_ADDMEM]}</a>
|
||||
|
||||
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&CODE=05&act=Msg&MSID={$data['msg']['msg_id']}&VID={$data['member']['VID']}'>{$ibforums->skin[M_DELETE]}</a>
|
||||
<script language='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>
|
||||
<td class='row1 align='left' width='100%'><span class='pagetitle'>{$data['msg']['title']}</span><br>{$data['msg']['msg_date']}</td>
|
||||
<td class='row1 align='right' nowrap>
|
||||
[ <a href='{$ibforums->base_url}&CODE=04&act=Msg&MSID={$data['msg']['msg_id']}&MID={$data['member']['id']}&fwd=1'>{$ibforums->lang['vm_forward_pm']}</a> | <a href='{$ibforums->base_url}&CODE=04&act=Msg&MID={$data['member']['id']}&MSID={$data['msg']['msg_id']}'>{$ibforums->lang['pm_reply_link']}</a> ]
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
<table width='100%' cellpadding='4' cellspacing='1' bgcolor='{$ibforums->skin['tbl_border']}'>
|
||||
<table width='100%' cellpadding='0' cellspacing='1' bgcolor='<{tbl_border}>'>
|
||||
<tr>
|
||||
<td class='mainbg'>
|
||||
<table width='100%' cellpadding='4' cellspacing='1' border='0'>
|
||||
<tr>
|
||||
<td valign='middle' id='titlemedium' align='center' width='25%'>{$ibforums->lang['author']}</td>
|
||||
<td valign='middle' id='titlemedium' align='center' width='75%'>{$ibforums->lang['m_pmessage']}</td>
|
||||
<td valign='middle' class='titlemedium' align='left' width='25%'>{$ibforums->lang['author']}</td>
|
||||
<td valign='middle' class='titlemedium' align='left' width='75%'>
|
||||
<table width='100%' cellpadding='0' cellspacing='0' border='0' align='left'>
|
||||
<tr>
|
||||
<td align='left' width='100%' valign='middle' class='titlemedium'>{$ibforums->lang['m_pmessage']}</td>
|
||||
<td align='left' valign='middle' nowrap class='titlemedium'>[ <a href='{$ibforums->base_url}&CODE=05&act=Msg&MSID={$data['msg']['msg_id']}&VID={$data['member']['VID']}'>{$ibforums->lang['vm_delete_pm']}</a> ]</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' id='row1'><span id='normalname'>{$data['member']['name']}</span><br>{$data['member']['avatar']}<br><span id="membertitle">{$data['member']['title']}</span><span id='postdetails'><br>{$data['member']['MEMBER_GROUP']}<br>{$data['member']['MEMBER_POSTS']}<br>{$data['member']['MEMBER_JOINED']}</span></td>
|
||||
<td valign='top' height='100%' id='row1'>
|
||||
<span id='postcolor'>
|
||||
<td valign='top' class='row1'><span class='normalname'>{$data['member']['name']}</span><br>{$data['member']['avatar']}<br><span class="membertitle">{$data['member']['title']}</span><span class='postdetails'><br>{$data['member']['MEMBER_GROUP']}<br>{$data['member']['MEMBER_POSTS']}<br>{$data['member']['MEMBER_JOINED']}</span></td>
|
||||
<td valign='top' height='100%' class='row1'>
|
||||
<span class='postcolor'>
|
||||
{$data['msg']['message']}
|
||||
{$data['member']['signature']}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' id='titlemedium' align='center'>{$data['member']['MESSAGE_ICON']}{$data['member']['EMAIL_ICON']}{$data['member']['WEBSITE_ICON']}{$data['member']['ICQ_ICON']}{$data['member']['AOL_ICON']}{$data['member']['YAHOO_ICON']}</td>
|
||||
<td class='postfoot' align='center'>[ <a href='{$ibforums->base_url}&CODE=02&act=Msg&MID={$data['member']['id']}'>{$ibforums->lang['add_to_book']}</a> ]</td>
|
||||
<td class='postfoot' align='left'>{$data['member']['MESSAGE_ICON']}{$data['member']['EMAIL_ICON']}{$data['member']['WEBSITE_ICON']}{$data['member']['ICQ_ICON']}{$data['member']['AOL_ICON']}{$data['member']['YAHOO_ICON']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1 align='right' colspan='2'>
|
||||
<td class='row1 align='left' width='100%'>
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" name='jump' method="post">
|
||||
<input type='hidden' name='act' value='Msg'>
|
||||
<input type='hidden' name='CODE' value='01'>
|
||||
@@ -344,13 +408,146 @@ return <<<EOF
|
||||
<input type='submit' name='submit' value='{$ibforums->lang[goto_submit]}' class='forminput'>
|
||||
</form>
|
||||
</td>
|
||||
<td class='row1 align='right' nowrap>
|
||||
[ <a href='{$ibforums->base_url}&CODE=04&act=Msg&MSID={$data['msg']['msg_id']}&MID={$data['member']['id']}&fwd=1'>{$ibforums->lang['vm_forward_pm']}</a> | <a href='{$ibforums->base_url}&CODE=04&act=Msg&MID={$data['member']['id']}&MSID={$data['msg']['msg_id']}'>{$ibforums->lang['pm_reply_link']}</a> ]
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
function inbox_table_header($dirname, $info) {
|
||||
function trackread_table_header() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<!-- inbox folder -->
|
||||
<script language='JavaScript'>
|
||||
<!--
|
||||
function CheckAll(fmobj) {
|
||||
for (var i=0;i<fmobj.elements.length;i++) {
|
||||
var e = fmobj.elements[i];
|
||||
if ((e.name != 'allbox') && (e.type=='checkbox') && (!e.disabled)) {
|
||||
e.checked = fmobj.allbox.checked;
|
||||
}
|
||||
}
|
||||
}
|
||||
function CheckCheckAll(fmobj) {
|
||||
var TotalBoxes = 0;
|
||||
var TotalOn = 0;
|
||||
for (var i=0;i<fmobj.elements.length;i++) {
|
||||
var e = fmobj.elements[i];
|
||||
if ((e.name != 'allbox') && (e.type=='checkbox')) {
|
||||
TotalBoxes++;
|
||||
if (e.checked) {
|
||||
TotalOn++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (TotalBoxes==TotalOn) {fmobj.allbox.checked=true;}
|
||||
else {fmobj.allbox.checked=false;}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<form action="{$ibforums->base_url}&CODE=31&act=Msg" name='trackread' method="post">
|
||||
<tr>
|
||||
<td valign='top' colspan='2'><span class='pagetitle'>{$ibforums->lang['tk_read_messages']}</span><br>{$ibforums->lang['tk_read_desc']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' colspan='2'>
|
||||
<table cellpadding='4' cellspacing='1' align='center' width='100%' style='border:1px solid <{tbl_border}>'>
|
||||
<tr>
|
||||
<td align='left' width='5%' class='titlemedium'> </td>
|
||||
<td align='left' width='30%' class='titlemedium'><b>{$ibforums->lang['message_title']}</b></td>
|
||||
<td align='left' width='30%' class='titlemedium'><b>{$ibforums->lang['pms_message_to']}</b></td>
|
||||
<td align='left' width='20%' class='titlemedium'><b>{$ibforums->lang['tk_read_date']}</b></td>
|
||||
<td align='left' width='5%' class='titlemedium'><input name="allbox" type="checkbox" value="Check All" onClick="CheckAll(this.trackread);"></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function trackread_row($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td class='row2' align='left' valign='middle'>{$data['icon']}</td>
|
||||
<td class='row2' align='left'>{$data['title']}</td>
|
||||
<td class='row2' align='left'><a href='{$ibforums->base_url}&act=Profile&MID={$data['id']}'>{$data['to_name']}</a></td>
|
||||
<td class='row2' align='left'>{$data['date']}</td>
|
||||
<td class='row2' align='left'><input type='checkbox' name='msgid_{$data['msg_id']}' value='yes' class='forminput'></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function trackread_end() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td align='right' nowrap class='titlemedium' colspan='6'><input type='submit' name='endtrack' value='{$ibforums->lang['tk_untrack_button']}' class='forminput'> {$ibforums->lang['selected_msg']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td></tr>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function trackUNread_table_header() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<form action="{$ibforums->base_url}&CODE=32&act=Msg" name='trackunread' method="post">
|
||||
<tr>
|
||||
<td valign='top' colspan='2'><span class='pagetitle'>{$ibforums->lang['tk_unread_messages']}</span><br>{$ibforums->lang['tk_unread_desc']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' colspan='2'>
|
||||
<table cellpadding='4' cellspacing='1' align='center' width='100%' style='border:1px solid <{tbl_border}>'>
|
||||
<tr>
|
||||
<td align='left' width='5%' class='titlemedium'> </td>
|
||||
<td align='left' width='30%' class='titlemedium'><b>{$ibforums->lang['message_title']}</b></td>
|
||||
<td align='left' width='30%' class='titlemedium'><b>{$ibforums->lang['pms_message_to']}</b></td>
|
||||
<td align='left' width='20%' class='titlemedium'><b>{$ibforums->lang['tk_unread_date']}</b></td>
|
||||
<td align='left' width='5%' class='titlemedium'><input name="allbox" type="checkbox" value="Check All" onClick="CheckAll(this.trackunread);"></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function trackUNread_row($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td class='row2' align='left' valign='middle'>{$data['icon']}</td>
|
||||
<td class='row2' align='left'>{$data['title']}</td>
|
||||
<td class='row2' align='left'><a href='{$ibforums->base_url}&act=Profile&MID={$data['id']}'>{$data['to_name']}</a></td>
|
||||
<td class='row2' align='left'>{$data['date']}</td>
|
||||
<td class='row2' align='left'><input type='checkbox' name='msgid_{$data['msg_id']}' value='yes' class='forminput'></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function trackUNread_end() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td align='right' nowrap class='titlemedium' colspan='6'><input type='submit' name='delete' value='{$ibforums->lang['delete_button']}' class='forminput'> {$ibforums->lang['selected_msg']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td></tr>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function unsent_table_header() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<!-- inbox folder -->
|
||||
@@ -384,25 +581,221 @@ return <<<EOF
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id};CODE=06;act=Msg" name='mutliact' method="post">
|
||||
<input type='hidden' name='act' value='Msg'>
|
||||
<input type='hidden' name='CODE' value='06'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<form action="{$ibforums->base_url}&CODE=06&act=Msg&saved=1" name='mutliact' method="post">
|
||||
<tr>
|
||||
<td valign='top' colspan='2'><span id='pagetitle'>$dirname</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2'><b>{$ibforums->lang['total_messages']}:</b> {$info['total_messages']} {$info['full_percent']}<br><b>{$ibforums->lang['messages_left']}</b> {$info['space_free']} {$info['full_messenger']}</td>
|
||||
<td valign='top' colspan='2'><span class='pagetitle'>{$ibforums->lang['pms_saved_title']}</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' colspan='2'>
|
||||
<table cellpadding='4' cellspacing='1' align='center' width='100%' style='border:1px solid {$ibforums->skin['tbl_border']}'>
|
||||
<table cellpadding='4' cellspacing='1' align='center' width='100%' style='border:1px solid <{tbl_border}>'>
|
||||
<tr>
|
||||
<td align='left' width='5%' id='titlemedium'> </td>
|
||||
<td align='left' width='40%' id='titlemedium'><b>{$ibforums->lang['message_title']}</b></td>
|
||||
<td align='left' width='30%' id='titlemedium'><b>{$ibforums->lang['message_from']}</b></td>
|
||||
<td align='left' width='20%' id='titlemedium'><b>{$ibforums->lang['message_date']}</b></td>
|
||||
<td align='left' width='5%' id='titlemedium'><input name="allbox" type="checkbox" value="Check All" onClick="CheckAll();"></td>
|
||||
<td align='left' width='5%' class='titlemedium'> </td>
|
||||
<td align='left' width='30%' class='titlemedium'><b>{$ibforums->lang['message_title']}</b></td>
|
||||
<td align='left' width='30%' class='titlemedium'><b>{$ibforums->lang['pms_message_to']}</b></td>
|
||||
<td align='left' width='20%' class='titlemedium'><b>{$ibforums->lang['pms_saved_date']}</b></td>
|
||||
<td align='left' width='10%' class='titlemedium'><b>{$ibforums->lang['pms_cc_users']}</b></td>
|
||||
<td align='left' width='5%' class='titlemedium'><input name="allbox" type="checkbox" value="Check All" onClick="CheckAll();"></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
function unsent_row($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td class='row2' align='left' valign='middle'>{$data['msg']['icon']}</td>
|
||||
<td class='row2' align='left'><a href='{$ibforums->base_url}&act=Msg&CODE=21&MSID={$data['msg']['msg_id']}'>{$data['msg']['title']}</a></td>
|
||||
<td class='row2' align='left'><a href='{$ibforums->base_url}&act=Profile&MID={$data['msg']['recipient_id']}'>{$data['msg']['to_name']}</a></td>
|
||||
<td class='row2' align='left'>{$data['msg']['date']}</td>
|
||||
<td class='row2' align='center'>{$data['msg']['cc_users']}</td>
|
||||
<td class='row2' align='left'><input type='checkbox' name='msgid_{$data['msg']['msg_id']}' value='yes' class='forminput'></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function unsent_end() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td align='center' nowrap class='titlemedium' colspan='6'><input type='submit' name='delete' value='{$ibforums->lang['delete_button']}' class='forminput'> {$ibforums->lang['selected_msg']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td></tr>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
function inbox_table_header($dirname, $info, $vdi_html="") {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<!-- inbox folder -->
|
||||
<script language='JavaScript'>
|
||||
<!--
|
||||
|
||||
var ie = document.all ? 1 : 0;
|
||||
//var ns4 = document.layers ? 1 : 0;
|
||||
|
||||
function hl(cb)
|
||||
{
|
||||
if (ie)
|
||||
{
|
||||
while (cb.tagName != "TR")
|
||||
{
|
||||
cb = cb.parentElement;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
while (cb.tagName != "TR")
|
||||
{
|
||||
cb = cb.parentNode;
|
||||
}
|
||||
}
|
||||
cb.className = 'hlight';
|
||||
}
|
||||
|
||||
function dl(cb) {
|
||||
if (ie)
|
||||
{
|
||||
while (cb.tagName != "TR")
|
||||
{
|
||||
cb = cb.parentElement;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
while (cb.tagName != "TR")
|
||||
{
|
||||
cb = cb.parentNode;
|
||||
}
|
||||
}
|
||||
cb.className = 'dlight';
|
||||
}
|
||||
|
||||
function cca(cb) {
|
||||
if (cb.checked)
|
||||
{
|
||||
hl(cb);
|
||||
}
|
||||
else
|
||||
{
|
||||
dl(cb);
|
||||
}
|
||||
}
|
||||
|
||||
function CheckAll(cb) {
|
||||
var fmobj = document.mutliact;
|
||||
for (var i=0;i<fmobj.elements.length;i++) {
|
||||
var e = fmobj.elements[i];
|
||||
if ((e.name != 'allbox') && (e.type=='checkbox') && (!e.disabled)) {
|
||||
e.checked = fmobj.allbox.checked;
|
||||
if (fmobj.allbox.checked)
|
||||
{
|
||||
hl(e);
|
||||
}
|
||||
else
|
||||
{
|
||||
dl(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
function CheckCheckAll(cb) {
|
||||
var fmobj = document.mutliact;
|
||||
var TotalBoxes = 0;
|
||||
var TotalOn = 0;
|
||||
for (var i=0;i<fmobj.elements.length;i++) {
|
||||
var e = fmobj.elements[i];
|
||||
if ((e.name != 'allbox') && (e.type=='checkbox')) {
|
||||
TotalBoxes++;
|
||||
if (e.checked) {
|
||||
TotalOn++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (TotalBoxes==TotalOn) {fmobj.allbox.checked=true;}
|
||||
else {fmobj.allbox.checked=false;}
|
||||
}
|
||||
|
||||
function select_read() {
|
||||
var fmobj = document.mutliact;
|
||||
for (var i=0;i<fmobj.elements.length;i++) {
|
||||
var e = fmobj.elements[i];
|
||||
if ((e.type=='hidden') && (e.value == 1) && (! isNaN(e.name) ))
|
||||
{
|
||||
eval("fmobj.msgid_" + e.name + ".checked=true;");
|
||||
hl(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function unselect_all() {
|
||||
var fmobj = document.mutliact;
|
||||
for (var i=0;i<fmobj.elements.length;i++) {
|
||||
var e = fmobj.elements[i];
|
||||
if (e.type=='checkbox') {
|
||||
e.checked=false;
|
||||
dl(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<tr>
|
||||
<td valign='top' colspan='2'><span class='pagetitle'>$dirname</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
<table cellpadding='1' cellspacing='0' width='100%' align='center'>
|
||||
<tr>
|
||||
<td align='left' valign='middle' width='300'>
|
||||
<img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='300' height='1'>
|
||||
<br>
|
||||
<table cellpadding='0' cellspacing='1' width='100%' align='center' border='0' bgcolor='<{tbl_border}>'>
|
||||
<tr>
|
||||
<td class='mainbg'>
|
||||
<table cellpadding='4' cellspacing='1' width='100%' align='center' border='0'>
|
||||
<tr>
|
||||
<td class='row1' align='left' colspan='3'>{$info['full_messenger']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='left' valign='middle' class='row2' colspan='3'><img src='{$ibforums->vars['img_url']}/bar_left.gif' border='0' width='4' height='11' align='middle' alt=''><img src='{$ibforums->vars['img_url']}/bar.gif' border='0' width='{$info['img_width']}' height='11' align='middle' alt=''><img src='{$ibforums->vars['img_url']}/bar_right.gif' border='0' width='4' height='11' align='middle' alt=''></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1' width='33%' align='left' valign='middle'>0%</td>
|
||||
<td class='row1' width='33%' align='center' valign='middle'>50%</td>
|
||||
<td class='row1' width='33%' align='right' valign='middle'>100%</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<!-- Right side -->
|
||||
<td width='100%' align='right' valign='bottom'>
|
||||
<a href='javascript:select_read()'>{$ibforums->lang['pmpc_mark_read']}</a> :: <a href='javascript:unselect_all()'>{$ibforums->lang['pmpc_unmark_all']}</a><br><br>
|
||||
<form action="{$ibforums->base_url}&CODE=01&act=Msg" name='jump' method="post">
|
||||
<b>{$ibforums->lang['goto_folder']}: </b> $vdi_html <input type='submit' name='submit' value='{$ibforums->lang['goto_submit']}' class='forminput'>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' colspan='2' class='dlight'>
|
||||
<form action="{$ibforums->base_url}&CODE=06&act=Msg" name='mutliact' method="post">
|
||||
<table cellpadding='4' cellspacing='1' align='center' width='100%' style='border:1px solid <{tbl_border}>'>
|
||||
<tr>
|
||||
<td align='left' width='5%' class='titlemedium'> </td>
|
||||
<td align='left' width='40%' class='titlemedium'><a href='{$ibforums->base_url}&act=Msg&CODE=01&VID={$info['vid']}&sort=title'><b>{$ibforums->lang['message_title']}</b></a></td>
|
||||
<td align='left' width='30%' class='titlemedium'><a href='{$ibforums->base_url}&act=Msg&CODE=01&VID={$info['vid']}&sort=name'><b>{$ibforums->lang['message_from']}</b></a></td>
|
||||
<td align='left' width='20%' class='titlemedium'><a href='{$ibforums->base_url}&act=Msg&CODE=01&VID={$info['vid']}&sort={$info['date_order']}'><b>{$ibforums->lang['message_date']}</b></a></td>
|
||||
<td align='left' width='5%' class='titlemedium'><input name="allbox" type="checkbox" value="Check All" onClick="CheckAll();"></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
@@ -411,40 +804,33 @@ function inbox_row($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td id='row2 align='left' valign='middle'>{$data['msg']['icon']}</td>
|
||||
<td id='row2 align='left'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Msg&CODE=03&VID={$data['stat']['current_id']}&MSID={$data['msg']['msg_id']}'>{$data['msg']['title']}</a></td>
|
||||
<td id='row2 align='left'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Profile&MID={$data['msg']['from_id']}'>{$data['msg']['from_name']}</a> {$data['msg']['add_to_contacts']}</td>
|
||||
<td id='row2 align='left'>{$data['msg']['date']}</td>
|
||||
<td id='row2 align='left'><input type='checkbox' name='msgid-{$data['msg']['msg_id']}' value='yes' class='forminput'></td>
|
||||
<td align='left' valign='middle'>{$data['msg']['icon']}</td>
|
||||
<td align='left'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Msg&CODE=03&VID={$data['stat']['current_id']}&MSID={$data['msg']['msg_id']}'>{$data['msg']['title']}</a></td>
|
||||
<td align='left'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Profile&MID={$data['msg']['from_id']}'>{$data['msg']['from_name']}</a> {$data['msg']['add_to_contacts']}</td>
|
||||
<td align='left'>{$data['msg']['date']}</td>
|
||||
<td align='left'><input type='hidden' name='{$data['msg']['msg_id']}' value='{$data['msg']['read_state']}'><input type='checkbox' name='msgid_{$data['msg']['msg_id']}' value='yes' class='forminput' onClick="cca(this);"></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function end_inbox($vdi_html) {
|
||||
function end_inbox($vdi_html, $amount_info="") {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td align='right' nowrap id='titlemedium' colspan='5'>
|
||||
<td align='right' nowrap class='titlemedium' colspan='5'>
|
||||
<input type='submit' name='move' value='{$ibforums->lang['move_button']}' class='forminput'> $vdi_html {$ibforums->lang['move_or_delete']} <input type='submit' name='delete' value='{$ibforums->lang['delete_button']}' class='forminput'> {$ibforums->lang['selected_msg']}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td id='row1 align='left' valign='middle'>
|
||||
{$ibforums->skin['M_READ']} {$ibforums->lang['icon_read']}
|
||||
{$ibforums->skin['M_UNREAD']} {$ibforums->lang['icon_unread']}
|
||||
</td>
|
||||
<td id='row1 align='right' valign='middle'>
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id};CODE=01;act=Msg" name='jump' method="post">
|
||||
<input type='hidden' name='act' value='Msg'>
|
||||
<input type='hidden' name='CODE' value='01'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<b>{$ibforums->lang['goto_folder']}: </b> $vdi_html
|
||||
<input type='submit' name='submit' value='{$ibforums->lang['goto_submit']}' class='forminput'>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1 align='left' valign='middle' width='100%'>
|
||||
<{M_READ}> {$ibforums->lang['icon_read']}
|
||||
<{M_UNREAD}> {$ibforums->lang['icon_unread']}
|
||||
</td>
|
||||
<td class='row1 align='right' valign='middle' nowrap><i>$amount_info</i></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
@@ -453,19 +839,20 @@ function send_form_footer() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td colspan='2' id='category'><b>{$ibforums->lang['msg_options']}</b></td>
|
||||
<td colspan='2' class='category'><b>{$ibforums->lang['msg_options']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' align='left' width='40%'> </td>
|
||||
<td id='row1' align='left' width='60%'>
|
||||
<td class='row1' align='left' width='40%'> </td>
|
||||
<td class='row1' align='left' width='60%'>
|
||||
<input type='checkbox' name='add_sent' value='yes' checked> <b>{$ibforums->lang['auto_sent_add']}</b>
|
||||
<br><input type='checkbox' name='add_tracking' value='1'> <b>{$ibforums->lang['read_rec_notify']}</b>
|
||||
<br><input type='checkbox' name='add_tracking' value='1'> <b>{$ibforums->lang['vm_track_msg']}</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row2' align='center' colspan='2'>
|
||||
<td class='row2' align='center' colspan='2'>
|
||||
<input type="submit" value="{$ibforums->lang['submit_send']}" class='forminput' name='submit'>
|
||||
<input type="submit" value="{$ibforums->lang['pm_pre_button']}" class='forminput' name='preview'>
|
||||
<input type="submit" value="{$ibforums->lang['pms_send_later']}" class='forminput' name='save'>
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
@@ -475,39 +862,88 @@ EOF;
|
||||
function Send_form($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<script language='javascript'>
|
||||
<!--
|
||||
function find_users()
|
||||
{
|
||||
|
||||
window.open('index.{$ibforums->vars['php_ext']}?act=legends&CODE=finduser_one&s={$ibforums->session_id}&entry=textarea&name=carbon_copy&sep=line','FindUsers','width=400,height=250,resizable=yes,scrollbars=yes');
|
||||
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='REPLIER' onSubmit='return ValidateForm(1)'>
|
||||
<input type='hidden' name='act' value='Msg'>
|
||||
<input type='hidden' name='CODE' value='04'>
|
||||
<input type='hidden' name='MODE' value='01'>
|
||||
<input type='hidden' name='OID' value='{$data['OID']}'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
|
||||
<td colspan='2' id='category'><b>{$ibforums->lang['to_whom']}</b></td>
|
||||
</tr>
|
||||
<td colspan='2' class='solidborder'>
|
||||
<table cellpadding='4' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td colspan='2' class='category'><b>{$ibforums->lang['to_whom']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1' align='left' width='40%'>{$ibforums->lang['address_list']}</td>
|
||||
<td class='row1' align='left' width='60%' valign='top'>{$data[CONTACTS]}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1' align='left' width='40%'>{$ibforums->lang['enter_name']}</td>
|
||||
<td class='row1' align='left' width='60%' valign='top'><input type='text' name='entered_name' size='50' value='{$data[N_ENTER]}' class='forminput'></td>
|
||||
</tr>
|
||||
<!--IBF.MASS_PM_BOX-->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1' colspan='2'> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' align='left' width='40%'>{$ibforums->lang['address_list']}</td>
|
||||
<td id='row1' align='left' width='60%' valign='top'>{$data[CONTACTS]}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' align='left' width='40%'>{$ibforums->lang['enter_name']}</td>
|
||||
<td id='row1' align='left' width='60%' valign='top'><input type='text' name='entered_name' value='{$data[N_ENTER]}' class='forminput'></td>
|
||||
<td colspan='2' class='category'><b>{$ibforums->lang['enter_message']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' id='category'><b>{$ibforums->lang['enter_message']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' align='left' width='40%'>{$ibforums->lang['msg_title']}</td>
|
||||
<td id='row1' align='left' width='60%' valign='top'><input type='text' name='msg_title' size='40' maxlength='40' value='{$data[O_TITLE]}' class='forminput'></td>
|
||||
<td class='row1' align='left' width='40%'>{$ibforums->lang['msg_title']}</td>
|
||||
<td class='row1' align='left' width='60%' valign='top'><input type='text' name='msg_title' size='40' maxlength='40' value='{$data[O_TITLE]}' class='forminput'></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function mass_pm_box($names="") {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<tr>
|
||||
<td colspan='2' class='category'><b>{$ibforums->lang['carbon_copy_title']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1' align='left' width='40%' valign='top'>{$ibforums->lang['carbon_copy_desc']}</td>
|
||||
<td class='row1' align='left' width='60%' valign='middle'>
|
||||
<table cellspacing='0' width='100%' cellpadding='4' border='0'>
|
||||
<tr>
|
||||
<td align='left' valign='middle'><textarea name='carbon_copy' rows='5' cols='40'>$names</textarea></td>
|
||||
<td align='left' width='100%' valign='middle'>
|
||||
<input type='button' class='forminput' name='findusers' onClick='find_users()' value='{$ibforums->lang['find_user_names']}'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function prefs_header() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<td colspan='2' id='category'><b>{$ibforums->lang['prefs_current']}</b></td>
|
||||
<td colspan='2' class='category'><b>{$ibforums->lang['prefs_current']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1 colspan='2'>{$ibforums->lang['prefs_text_a']}</td>
|
||||
<td class='row1 colspan='2'>{$ibforums->lang['prefs_text_a']}</td>
|
||||
</tr>
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post">
|
||||
<input type='hidden' name='act' value='Msg'>
|
||||
|
||||
@@ -8,7 +8,7 @@ function end($links) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<br>
|
||||
<table cellpadding='0' cellspacing='4' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
|
||||
<table cellpadding='0' cellspacing='4' border='0' width='<{tbl_width}>' align='center'>
|
||||
<tr>
|
||||
<td valign='middle' align='left'>{$links[SHOW_PAGES]}</td>
|
||||
</tr>
|
||||
@@ -21,10 +21,10 @@ global $ibforums;
|
||||
return <<<EOF
|
||||
<!-- Entry for {$session['member_id']} -->
|
||||
<tr>
|
||||
<td id='row1'>{$session['member_name']}</td>
|
||||
<td id='row1'>{$session['where_line']}</td>
|
||||
<td id='row1' align='center'>{$session['running_time']}</td>
|
||||
<td id='row1' align='center'>{$session['msg_icon']}</td>
|
||||
<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;
|
||||
@@ -35,14 +35,14 @@ global $ibforums;
|
||||
return <<<EOF
|
||||
<!-- End content Table -->
|
||||
<tr>
|
||||
<td colspan='4' id='category'> </td>
|
||||
<td colspan='4' class='category'> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table cellpadding='0' cellspacing='4' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
|
||||
<table cellpadding='0' cellspacing='4' border='0' width='<{tbl_width}>' align='center'>
|
||||
<tr>
|
||||
<td valign='middle' align='left'>$links</td>
|
||||
</tr>
|
||||
@@ -74,21 +74,21 @@ return <<<EOF
|
||||
</script>
|
||||
|
||||
|
||||
<table cellpadding='0' cellspacing='4' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
|
||||
<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='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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%' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['member_name']}</td>
|
||||
<td align='left' width='30%' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['where']}</td>
|
||||
<td align='center' width='20%' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['time']}</td>
|
||||
<td align='left' width='10%' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'> </td>
|
||||
<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'> </td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
@@ -22,42 +22,65 @@ function Render_row_form($votes, $id, $answer) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td id='row1' colspan='3'><INPUT type="radio" name="poll_vote" value="$id"> <b>$answer</b></td>
|
||||
<td class='row1' colspan='3'><INPUT type="radio" name="poll_vote" value="$id"> <b>$answer</b></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function ShowPoll_header($tid, $edit, $delete) {
|
||||
function ShowPoll_header($tid, $poll_q, $edit, $delete) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}" method="post">
|
||||
<input type='hidden' name='act' value='Poll'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='t' value='$tid'>
|
||||
<br>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%' align='center'>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
|
||||
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
|
||||
<tr>
|
||||
<td align='right' colspan='3' id='titlemedium'>$edit $delete</td>
|
||||
<td align='right' colspan='3' width='99%' class='titlemedium'><form action="{$ibforums->base_url}&act=Poll&t=$tid" method="post"> $edit $delete</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' valign='middle' align='left' width='50%'><b>{$ibforums->lang['poll_s_choices']}</b></td>
|
||||
<td id='row1' valign='middle' align='left' width='10%'><b>{$ibforums->lang['poll_s_votes']}</b></td>
|
||||
<td id='row1' valign='middle' align='left' width='40%'><b>{$ibforums->lang['poll_s_stats']}</b></td>
|
||||
<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 $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 id='row2' align='center' colspan='3'>
|
||||
$vote_button
|
||||
<td class='titlemedium' align='center' colspan='3'>
|
||||
$vote_button</form>
|
||||
</td></tr></table>
|
||||
</td></tr></table>
|
||||
</form>
|
||||
<td class='mainbg'>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='mainbg'>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
@@ -65,9 +88,9 @@ function Render_row_results($votes, $id, $answer, $percentage, $width) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td id='row1'><b>$answer</b></td>
|
||||
<td id='row1'><b>$votes</b></td>
|
||||
<td id='row1'><img src='{$ibforums->vars['img_url']}/bar_left.gif' border='0' width='4' height='11' align='middle' alt=''><img src='{$ibforums->vars['img_url']}/bar.gif' border='0' width='$width' height='11' align='middle' alt=''><img src='{$ibforums->vars['img_url']}/bar_right.gif' border='0' width='4' height='11' align='middle' alt=''> [$percentage%]</td>
|
||||
<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=''> [$percentage%]</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
+410
-68
@@ -20,6 +20,17 @@ return <<<EOF
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
function add_edit_box($checked="") {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td class="row1" width='20%'><b>{$ibforums->lang['edit_ops']}</b></td>
|
||||
<td class="row1" width="100%" valign='middle'><input type='checkbox' name='add_edit' value='1' $checked class='forminput'> {$ibforums->lang['append_edit']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function table_top($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
@@ -42,26 +53,115 @@ return <<<EOF
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<table width="{$ibforums->skin['tbl_width']}" align='center' border="0" cellspacing="1" cellpadding="0" bgcolor="{$ibforums->skin['tbl_border']}">
|
||||
<table width="<{tbl_width}>" align='center' border="0" cellspacing="1" cellpadding="0" bgcolor="<{tbl_border}>">
|
||||
<tr>
|
||||
<td id='maintitleback' background='{$ibforums->vars['img_url']}/tile_back.gif'>
|
||||
<td class='maintitle'>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='mainbg'>
|
||||
<td class='mainbg'>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="4">
|
||||
<tr>
|
||||
<td id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif' colspan="2">$data</td>
|
||||
<td class='titlemedium' colspan="2">$data</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function calendar_start_form() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<form action='{$ibforums->base_url}&act=calendar&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&code=doedit&eventid=$eventid' method='POST' name='REPLIER' onSubmit='return ValidateForm()'>
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function calendar_event_title($data="") {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td class="row1" width='20%'>{$ibforums->lang['calendar_title']}</td>
|
||||
<td class="row1" width="100%"><input type='text' size='40' maxlength='40' name='event_title' 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'> {$ibforums->lang['calendar_delete_box']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function calendar_choose_date($days, $months, $years) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td class="row1" nowrap>{$ibforums->lang['calendar_event_date']}</td>
|
||||
<td class="row1" width="100%"><select name='e_day' class='forminput'>$days</select> <select name='e_month' class='forminput'>$months</select> <select name='e_year' class='forminput'>$years</select></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function calendar_event_type($pub_select="", $priv_select="") {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td class="row1" nowrap>{$ibforums->lang['calendar_event_type']}</td>
|
||||
<td class="row1" width="100%"><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="row1">{$ibforums->lang['calendar_group_filter']}</td>
|
||||
<td class="row1" width="100%"><select name='e_groups[]' class='forminput' size='5' multiple>$groups</select></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function calendar_end_form($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td class='mainfoot' align="center" colspan="2"><input type="submit" name="submit" value="$data" tabindex='4' class='forminput'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function EndForm($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td id='mainfoot' align="center" colspan="2"><input type="submit" name="submit" value="$data" tabindex='4' class='forminput'>
|
||||
<td class='mainfoot' align="center" colspan="2"><input type="submit" name="submit" value="$data" tabindex='4' class='forminput' accesskey='s'>
|
||||
<input type="submit" name="preview" value="{$ibforums->lang['button_preview']}" tabindex='5' class='forminput'></td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -75,13 +175,13 @@ EOF;
|
||||
function smilie_table() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table align="center" cellspacing='1' cellpadding='3' border='0' id='row2' style="border-width:1px; border-color:{$ibforums->skin['tbl_border']}; border-style:solid; width:95%" align='left'>
|
||||
<table align="center" cellspacing='1' cellpadding='3' border='0' class='row2' style="border-width:1px; border-color:<{tbl_border}>; border-style:solid; width:95%" align='left'>
|
||||
<tr>
|
||||
<td colspan='{$ibforums->vars['emo_per_row']}' align='center'>{$ibforums->lang['click_smilie']}</td>
|
||||
</tr>
|
||||
<!--THE SMILIES-->
|
||||
<tr>
|
||||
<td colspan='{$ibforums->vars['emo_per_row']}' id='row1' align='center'><a href='javascript:emo_pop()'>{$ibforums->lang['all_emoticons']}</a></td>
|
||||
<td colspan='{$ibforums->vars['emo_per_row']}' class='row1' align='center'><a href='javascript:emo_pop()'>{$ibforums->lang['all_emoticons']}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
@@ -92,7 +192,7 @@ global $ibforums;
|
||||
return <<<EOF
|
||||
<!-- Cgi-bot TopicSummaryBottom -->
|
||||
<tr>
|
||||
<td valign='left' colspan='2' id='titlemedium'><a href="javascript:PopUp('index.{$ibforums->vars['php_ext']}?act=ST&f={$ibforums->input['f']}&t={$ibforums->input['t']}','TopicSummary',700,450,1,1)">{$ibforums->lang['review_topic']}</a></td>
|
||||
<td valign='left' colspan='2' class='titlemedium'><a href="javascript:PopUp('index.{$ibforums->vars['php_ext']}?act=ST&f={$ibforums->input['f']}&t={$ibforums->input['t']}','TopicSummary',700,450,1,1)">{$ibforums->lang['review_topic']}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -106,10 +206,10 @@ function PostIcons() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td valign="top" id='row1'>{$ibforums->lang['post_icon']}</td>
|
||||
<td valign="top" width="100%" id='row1'>
|
||||
<INPUT type="radio" name="iconid" value="1"> <IMG SRC="{$ibforums->vars['img_url']}/icon1.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="2" > <IMG SRC="{$ibforums->vars['img_url']}/icon2.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="3" > <IMG SRC="{$ibforums->vars['img_url']}/icon3.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="4" > <IMG SRC="{$ibforums->vars['img_url']}/icon4.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="5" > <IMG SRC="{$ibforums->vars['img_url']}/icon5.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="6" > <IMG SRC="{$ibforums->vars['img_url']}/icon6.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="7" > <IMG SRC="{$ibforums->vars['img_url']}/icon7.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''> <br>
|
||||
<INPUT type="radio" name="iconid" value="8"> <IMG SRC="{$ibforums->vars['img_url']}/icon8.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="9" > <IMG SRC="{$ibforums->vars['img_url']}/icon9.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="10" > <IMG SRC="{$ibforums->vars['img_url']}/icon10.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="11" > <IMG SRC="{$ibforums->vars['img_url']}/icon11.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="12" > <IMG SRC="{$ibforums->vars['img_url']}/icon12.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="13" > <IMG SRC="{$ibforums->vars['img_url']}/icon13.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="14" > <IMG SRC="{$ibforums->vars['img_url']}/icon14.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>
|
||||
<td valign="top" class='row1'>{$ibforums->lang['post_icon']}</td>
|
||||
<td valign="top" width="100%" class='row1'>
|
||||
<INPUT type="radio" name="iconid" value="1"> <IMG SRC="{$ibforums->vars['img_url']}/icon1.gif" ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="2" > <IMG SRC="{$ibforums->vars['img_url']}/icon2.gif" ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="3" > <IMG SRC="{$ibforums->vars['img_url']}/icon3.gif" ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="4" > <IMG SRC="{$ibforums->vars['img_url']}/icon4.gif" ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="5" > <IMG SRC="{$ibforums->vars['img_url']}/icon5.gif" ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="6" > <IMG SRC="{$ibforums->vars['img_url']}/icon6.gif" ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="7" > <IMG SRC="{$ibforums->vars['img_url']}/icon7.gif" ALIGN='center' alt=''> <br>
|
||||
<INPUT type="radio" name="iconid" value="8"> <IMG SRC="{$ibforums->vars['img_url']}/icon8.gif" ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="9" > <IMG SRC="{$ibforums->vars['img_url']}/icon9.gif" ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="10" > <IMG SRC="{$ibforums->vars['img_url']}/icon10.gif" ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="11" > <IMG SRC="{$ibforums->vars['img_url']}/icon11.gif" ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="12" > <IMG SRC="{$ibforums->vars['img_url']}/icon12.gif" ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="13" > <IMG SRC="{$ibforums->vars['img_url']}/icon13.gif" ALIGN='center' alt=''> <INPUT type="radio" name="iconid" value="14" > <IMG SRC="{$ibforums->vars['img_url']}/icon14.gif" ALIGN='center' alt=''>
|
||||
<BR>
|
||||
<INPUT type="radio" name="iconid" value="0" CHECKED> [ Use None ]
|
||||
</td>
|
||||
@@ -120,12 +220,12 @@ EOF;
|
||||
function errors($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['TABLE_BORDER_COL']}' align='center'>
|
||||
<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 id='row1' valign='top' align='left'><b>{$ibforums->lang['errors_found']}</b></font><hr noshade size='1' color='{$ibforums->skin['tbl_border']}'>$data</td>
|
||||
<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>
|
||||
@@ -139,28 +239,57 @@ function Upload_field($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td id="subtitle" colspan="2">{$ibforums->lang['upload_title']}</td>
|
||||
<td class="postfoot" colspan="2">{$ibforums->lang['upload_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1'>{$ibforums->lang['upload_text']} $data</td>
|
||||
<td id='row1' width="100%"><input class='textinput' type='file' size='30' name='FILE_UPLOAD'></td>
|
||||
<td class='row1'>{$ibforums->lang['upload_text']} $data</td>
|
||||
<td class='row1' width="100%"><input class='textinput' type='file' size='30' name='FILE_UPLOAD'></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function edit_upload_field($data, $file_name="") {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td class="postfoot" colspan="2">{$ibforums->lang['upload_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1'>{$ibforums->lang['upload_text']} $data</td>
|
||||
<td class='row1' width="100%">
|
||||
<table cellpadding='4' cellspacing='0' width='100%' border='0'>
|
||||
<tr>
|
||||
<td><input type='radio' name='editupload' value='keep' checked></td>
|
||||
<td width='100%'><b>{$ibforums->lang['eu_keep']}</b> ( $file_name )</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type='radio' name='editupload' value='delete'></td>
|
||||
<td width='100%'><b>{$ibforums->lang['eu_delete']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='middle'><input type='radio' name='editupload' value='new'></td>
|
||||
<td width='100%'><b>{$ibforums->lang['eu_new']}</b><br><input class='textinput' type='file' size='30' name='FILE_UPLOAD' onClick='document.REPLIER.editupload[2].checked=true;'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
function topictitle_fields($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td id="subtitle" colspan="2">{$ibforums->lang['tt_topic_settings']}</td>
|
||||
<td class="postfoot" colspan="2">{$ibforums->lang['tt_topic_settings']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1'>{$ibforums->lang['topic_title']}</td>
|
||||
<td id='row1' width="100%" valign="top"><input type='text' size='40' maxlength='50' name='TopicTitle' value='{$data[TITLE]}' tabindex='1' class='forminput'></td>
|
||||
<td class='row1'>{$ibforums->lang['topic_title']}</td>
|
||||
<td class='row1' width="100%" valign="top"><input type='text' size='40' maxlength='50' name='TopicTitle' value='{$data[TITLE]}' tabindex='1' class='forminput'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1'>{$ibforums->lang['topic_desc']}</td>
|
||||
<td id='row1' width="100%" valign="top"><input type='text' size='40' maxlength='40' name='TopicDesc' value='{$data[DESC]}' tabindex='2' class='forminput'></td>
|
||||
<td class='row1'>{$ibforums->lang['topic_desc']}</td>
|
||||
<td class='row1' width="100%" valign="top"><input type='text' size='40' maxlength='40' name='TopicDesc' value='{$data[DESC]}' tabindex='2' class='forminput'></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
@@ -168,9 +297,9 @@ EOF;
|
||||
function TopicSummary_body($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr id='postdetails'>
|
||||
<td id='row1' align='left' valign='top' width='20%'><b>{$data['author']}</b></td>
|
||||
<td id='row1' align='left' valign='top' width='80%'>{$ibforums->lang['posted_on']} {$data['date']}<hr noshade size='1'><span id='postcolor'>{$data['post']}</span></td>
|
||||
<tr class='postdetails'>
|
||||
<td class='row1' align='left' valign='top' width='20%'><b>{$data['author']}</b></td>
|
||||
<td class='row1' align='left' valign='top' width='80%'>{$ibforums->lang['posted_on']} {$data['date']}<hr noshade size='1'><span class='postcolor'>{$data['post']}</span></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
@@ -178,12 +307,12 @@ EOF;
|
||||
function preview($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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 id='row1' valign='top' align='left'><b>{$ibforums->lang['post_preview']}</b><hr noshade size='1' color='{$ibforums->skin['tbl_border']}'><span id='postcolor'>$data</span></td>
|
||||
<td class='row1' valign='top' align='left'><b>{$ibforums->lang['post_preview']}</b><hr noshade size='1' color='<{tbl_border}>'><span class='postcolor'>$data</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -199,12 +328,12 @@ return <<<EOF
|
||||
<a name="top">
|
||||
<!-- Cgi-bot TopicSummaryTop -->
|
||||
<br>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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' id='titlemedium'>{$ibforums->lang['last_posts']}</td>
|
||||
<td valign='left' colspan='2' class='titlemedium'>{$ibforums->lang['last_posts']}</td>
|
||||
</tr>
|
||||
<!-- Cgi-bot End TopicSummaryTop -->
|
||||
EOF;
|
||||
@@ -221,11 +350,11 @@ function mod_options($jump) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td id="subtitle" colspan="2">{$ibforums->lang['tt_options']}</td>
|
||||
<td class="postfoot" colspan="2">{$ibforums->lang['tt_options']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id="row1">{$ibforums->lang['mod_options']}</td>
|
||||
<td id="row1" width="100%">$jump</td>
|
||||
<td class="row1">{$ibforums->lang['mod_options']}</td>
|
||||
<td class="row1" width="100%">$jump</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
@@ -234,11 +363,11 @@ function quote_box($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td id="subtitle" colspan="2">{$ibforums->lang['post_to_quote']}</td>
|
||||
<td class="postfoot" colspan="2">{$ibforums->lang['post_to_quote']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' valign="top">{$ibforums->lang['post_to_quote_txt']}</td>
|
||||
<td id='row1' width="100%" valign="top">
|
||||
<td class='row1' valign="top">{$ibforums->lang['post_to_quote_txt']}</td>
|
||||
<td class='row1' width="100%" valign="top">
|
||||
<textarea cols='60' rows='12' wrap='soft' name='QPost' class='textinput'>{$data['post']}</textarea><input type='hidden' name='QAuthor' value='{$data['author_id']}'><input type='hidden' name='QAuthorN' value='{$data['author_name']}'><input type='hidden' name='QDate' value='{$data['post_date']}'></td>
|
||||
</tr>
|
||||
EOF;
|
||||
@@ -252,6 +381,8 @@ return <<<EOF
|
||||
|
||||
var MessageMax = "{$ibforums->lang['the_max_length']}";
|
||||
var Override = "{$ibforums->lang['override']}";
|
||||
|
||||
|
||||
function emo_pop()
|
||||
{
|
||||
|
||||
@@ -314,24 +445,45 @@ function CheckLength() {
|
||||
var error_no_email = "{$ibforums->lang['jscode_error_no_email']}";
|
||||
var error_no_width = "{$ibforums->lang['jscode_error_no_width']}";
|
||||
var error_no_height = "{$ibforums->lang['jscode_error_no_height']}";
|
||||
var prompt_start = "{$ibforums->lang['js_text_to_format']}";
|
||||
|
||||
var help_bold = "{$ibforums->lang['hb_bold']}";
|
||||
var help_italic = "{$ibforums->lang['hb_italic']}";
|
||||
var help_under = "{$ibforums->lang['hb_under']}";
|
||||
var help_font = "{$ibforums->lang['hb_font']}";
|
||||
var help_size = "{$ibforums->lang['hb_size']}";
|
||||
var help_color = "{$ibforums->lang['hb_color']}";
|
||||
var help_close = "{$ibforums->lang['hb_close']}";
|
||||
var help_url = "{$ibforums->lang['hb_url']}";
|
||||
var help_img = "{$ibforums->lang['hb_img']}";
|
||||
var help_email = "{$ibforums->lang['hb_email']}";
|
||||
var help_quote = "{$ibforums->lang['hb_quote']}";
|
||||
var help_list = "{$ibforums->lang['hb_list']}";
|
||||
var help_code = "{$ibforums->lang['hb_code']}";
|
||||
var help_click_close = "{$ibforums->lang['hb_click_close']}";
|
||||
var list_prompt = "{$ibforums->lang['js_tag_list']}";
|
||||
|
||||
|
||||
//-->
|
||||
</script>
|
||||
<script language='Javascript' src='html/ibfcode.js'></script>
|
||||
|
||||
<tr>
|
||||
<td id="subtitle" colspan="2">{$ibforums->lang['ib_code_buttons']}</td>
|
||||
<td class="postfoot" colspan="2">{$ibforums->lang['ib_code_buttons']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1'>{$ibforums->lang['ibf_code_txt']}</td>
|
||||
<td id='row1' width="100%" valign="top">
|
||||
<table cellpadding='2' cellspacing='2' width='100%' align='center'>
|
||||
<td class='row1'>
|
||||
<input type='radio' name='bbmode' value='ezmode' onClick='setmode(this.value)'> <b>{$ibforums->lang['bbcode_guided']}</b><br>
|
||||
<input type='radio' name='bbmode' value='normal' onClick='setmode(this.value)' checked> <b>{$ibforums->lang['bbcode_normal']}</b>
|
||||
</td>
|
||||
<script language='Javascript' src='html/ibfcode.js'></script>
|
||||
<td class='row1' width="100%" valign="top">
|
||||
<table cellpadding='2' cellspacing='2' width='100%' align='center'>
|
||||
<tr>
|
||||
<td nowrap width='10%'>
|
||||
<input type='button' accesskey='b' value=' B ' onClick='simpletag("B")' class='codebuttons' title="BOLD: [Control / Alt] + b" name='bold' style="font-weight:bold">
|
||||
<input type='button' accesskey='i' value=' I ' onClick='simpletag("I")' class='codebuttons' title="ITALIC: [Control / Alt] + i" name='italic' style="font-style:italic">
|
||||
<input type='button' accesskey='u' value=' U ' onClick='simpletag("U")' class='codebuttons' title="UNDERLINE: [Control / Alt] + u" name='under' style="text-decoration:underline">
|
||||
<input type='button' accesskey='b' value=' B ' onClick='simpletag("B")' class='codebuttons' name='B' style="font-weight:bold" onMouseOver="hstat('bold')">
|
||||
<input type='button' accesskey='i' value=' I ' onClick='simpletag("I")' class='codebuttons' name='I' style="font-style:italic" onMouseOver="hstat('italic')">
|
||||
<input type='button' accesskey='u' value=' U ' onClick='simpletag("U")' class='codebuttons' name='U' style="text-decoration:underline" onMouseOver="hstat('under')">
|
||||
|
||||
<select name='ffont' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'FONT')">
|
||||
<select name='ffont' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'FONT')" onMouseOver="hstat('font')">
|
||||
<option value='0'>{$ibforums->lang['ct_font']}</option>
|
||||
<option value='Arial' style='font-family:Arial'>{$ibforums->lang['ct_arial']}</option>
|
||||
<option value='Times' style='font-family:Times'>{$ibforums->lang['ct_times']}</option>
|
||||
@@ -339,12 +491,12 @@ function CheckLength() {
|
||||
<option value='Impact' style='font-family:Impact'>{$ibforums->lang['ct_impact']}</option>
|
||||
<option value='Geneva' style='font-family:Geneva'>{$ibforums->lang['ct_geneva']}</option>
|
||||
<option value='Optima' style='font-family:Optima'>Optima</option>
|
||||
</select><select name='fsize' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'SIZE')">
|
||||
</select><select name='fsize' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'SIZE')" onMouseOver="hstat('size')">
|
||||
<option value='0'>{$ibforums->lang['ct_size']}</option>
|
||||
<option value='1'>{$ibforums->lang['ct_sml']}</option>
|
||||
<option value='7'>{$ibforums->lang['ct_lrg']}</option>
|
||||
<option value='14'>{$ibforums->lang['ct_lest']}</option>
|
||||
</select><select name='fcolor' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'COLOR')">
|
||||
</select><select name='fcolor' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'COLOR')" onMouseOver="hstat('color')">
|
||||
<option value='0'>{$ibforums->lang['ct_color']}</option>
|
||||
<option value='blue' style='color:blue'>{$ibforums->lang['ct_blue']}</option>
|
||||
<option value='red' style='color:red'>{$ibforums->lang['ct_red']}</option>
|
||||
@@ -354,40 +506,226 @@ function CheckLength() {
|
||||
<option value='gray' style='color:gray'>{$ibforums->lang['ct_grey']}</option>
|
||||
<option value='green' style='color:green'>{$ibforums->lang['ct_green']}</option>
|
||||
</select>
|
||||
<a href='javascript:closeall();' onMouseOver="hstat('close')">{$ibforums->lang['js_close_all_tags']}</a>
|
||||
</td>
|
||||
<td align='left'nowrap width='10%'><input type='button' accesskey='c' value=' x ' onClick='closelast()' class='codebuttons' title="Close Current Tag: [Control / Alt] + c" name='bold' style="color:red"> Close Current Tag</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='left'>
|
||||
<input type='button' accesskey='h' value=' http:// ' onClick='tag_url()' class='codebuttons' title="HYPERLINK: [Control / Alt] + h" style="text-decoration:underline;color:blue">
|
||||
<input type='button' accesskey='g' value=' IMG ' onClick='tag_image()' class='codebuttons' title="IMG: [Control / Alt] + g" >
|
||||
<input type='button' accesskey='e' value=' @ ' onClick='tag_email()' class='codebuttons' title="EMAIL: [Control / Alt] + e" style="text-decoration:underline;color:blue">
|
||||
<input type='button' accesskey='q' value=' Quote ' onClick='simpletag("QUOTE")' class='codebuttons' title="QUOTE: [Control / Alt] + q" name='quote'>
|
||||
<input type='button' accesskey='p' value=' Code ' onClick='simpletag("CODE")' class='codebuttons' title="CODE: [Control / Alt] + p" name='code'>
|
||||
<input type='button' accesskey='s' value=' SQL ' onClick='simpletag("SQL")' class='codebuttons' title="SQL: [Control / Alt] + s" name='code'>
|
||||
<input type='button' accesskey='t' value=' HTML ' onClick='simpletag("HTML")' class='codebuttons' title="HTML: [Control / Alt] + t" name='code'>
|
||||
</td>
|
||||
<td align='left'>
|
||||
<input type='button' accesskey='x' value=' X ' onClick='closeall()' class='codebuttons' title="Close Current Tag: [Control / Alt] + x" name='bold' style="color:red;font-weight:bold"> Close All Tags
|
||||
<input type='button' accesskey='h' value=' http:// ' onClick='tag_url()' class='codebuttons' name='url' onMouseOver="hstat('url')">
|
||||
<input type='button' accesskey='g' value=' IMG ' onClick='tag_image()' class='codebuttons' name='img' onMouseOver="hstat('img')">
|
||||
<input type='button' accesskey='e' value=' @ ' onClick='tag_email()' class='codebuttons' name='email' onMouseOver="hstat('email')">
|
||||
<input type='button' accesskey='q' value=' QUOTE ' onClick='simpletag("QUOTE")' class='codebuttons' name='QUOTE' onMouseOver="hstat('quote')">
|
||||
<input type='button' accesskey='p' value=' CODE ' onClick='simpletag("CODE")' class='codebuttons' name='CODE' onMouseOver="hstat('code')">
|
||||
<input type='button' accesskey='l' value=' LIST ' onClick='tag_list()' class='codebuttons' name="LIST" onMouseOver="hstat('list')">
|
||||
<!--<input type='button' accesskey='l' value=' SQL ' onClick='simpletag("SQL")' class='codebuttons' name='SQL'>
|
||||
<input type='button' accesskey='t' value=' HTML ' onClick='simpletag("HTML")' class='codebuttons' name='HTML'>-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<!-- Help Box -->
|
||||
<td align='left' valign='middle'>
|
||||
{$ibforums->lang['hb_open_tags']}: <input type='text' name='tagcount' size='3' maxlength='3' style='font-size:10px;font-family:verdana,arial;border:0px;font-weight:bold;' readonly class='row1' value="0">
|
||||
<input type='text' name='helpbox' size='50' maxlength='120' style='width:80%;font-size:10px;font-family:verdana,arial;border:0px' readonly class='row1' value="{$ibforums->lang['hb_start']}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id="subtitle" colspan="2">{$ibforums->lang['post']}</td>
|
||||
<td class="postfoot" colspan="2">{$ibforums->lang['post']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1'>(<a href='javascript:CheckLength()'>{$ibforums->lang['check_length']}</a>)<br><br><!--SMILIE TABLE--><img src="{$ibforums->vars['img_url']}/spacer.gif" alt="" width="180" height="1"></td>
|
||||
<td id='row1' width="100%" valign="top"><textarea cols='80' rows='15' wrap='soft' name='Post' tabindex='3' class='textinput'>$data</textarea><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<td class='row1'>(<a href='javascript:CheckLength()'>{$ibforums->lang['check_length']}</a>)<br><br><!--SMILIE TABLE--><img src="{$ibforums->vars['img_url']}/spacer.gif" alt="" width="180" height="1"></td>
|
||||
<td class='row1' width="100%" valign="top"><textarea cols='60' style='width:95%' rows='15' wrap='soft' name='Post' tabindex='3' class='textinput'>$data</textarea><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td><input type='checkbox' name='enableemo' value='yes' checked></td>
|
||||
<td width="100%">{$ibforums->lang['enable_emo']}</td>
|
||||
</tr>
|
||||
<!--IBF.SIG_CLICK-->
|
||||
<tr>
|
||||
<td><input type='checkbox' name='enablesig' value='yes' checked></td>
|
||||
<td width="100%">{$ibforums->lang['enable_sig']}</td>
|
||||
</tr>
|
||||
<!--IBF.END_SIG_CLICK-->
|
||||
</table></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function pm_postbox_buttons($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<script language="javascript1.2">
|
||||
<!--
|
||||
|
||||
var MessageMax = "{$ibforums->lang['the_max_length']}";
|
||||
var Override = "{$ibforums->lang['override']}";
|
||||
|
||||
|
||||
function emo_pop()
|
||||
{
|
||||
|
||||
window.open('index.{$ibforums->vars['php_ext']}?act=legends&CODE=emoticons&s={$ibforums->session_id}','Legends','width=250,height=500,resizable=yes,scrollbars=yes');
|
||||
|
||||
}
|
||||
function CheckLength() {
|
||||
MessageLength = document.REPLIER.Post.value.length;
|
||||
message = "";
|
||||
|
||||
if (MessageMax !=0) {
|
||||
message = "{$ibforums->lang['js_post']}:\\n{$ibforums->lang['js_max_length']} " + MessageMax + " {$ibforums->lang['js_characters']}.";
|
||||
} else {
|
||||
message = "";
|
||||
}
|
||||
alert(message + "\\n{$ibforums->lang['js_used']} " + MessageLength + " {$ibforums->lang['js_characters']}.");
|
||||
}
|
||||
|
||||
function ValidateForm(isMsg) {
|
||||
MessageLength = document.REPLIER.Post.value.length;
|
||||
errors = "";
|
||||
|
||||
if (isMsg == 1)
|
||||
{
|
||||
if (document.REPLIER.msg_title.value.length < 2)
|
||||
{
|
||||
errors = "{$ibforums->lang['msg_no_title']}";
|
||||
}
|
||||
}
|
||||
|
||||
if (MessageLength < 2) {
|
||||
errors = "{$ibforums->lang['js_no_message']}";
|
||||
}
|
||||
if (MessageMax !=0) {
|
||||
if (MessageLength > MessageMax) {
|
||||
errors = "{$ibforums->lang['js_max_length']} " + MessageMax + " {$ibforums->lang['js_characters']}. {$ibforums->lang['js_current']}: " + MessageLength;
|
||||
}
|
||||
}
|
||||
if (errors != "" && Override == "") {
|
||||
alert(errors);
|
||||
return false;
|
||||
} else {
|
||||
document.REPLIER.submit.disabled = true;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// IBC Code stuff
|
||||
var text_enter_url = "{$ibforums->lang['jscode_text_enter_url']}";
|
||||
var text_enter_url_name = "{$ibforums->lang['jscode_text_enter_url_name']}";
|
||||
var text_enter_image = "{$ibforums->lang['jscode_text_enter_image']}";
|
||||
var text_enter_email = "{$ibforums->lang['jscode_text_enter_email']}";
|
||||
var text_enter_flash = "{$ibforums->lang['jscode_text_enter_flash']}";
|
||||
var text_code = "{$ibforums->lang['jscode_text_code']}";
|
||||
var text_quote = "{$ibforums->lang['jscode_text_quote']}";
|
||||
var error_no_url = "{$ibforums->lang['jscode_error_no_url']}";
|
||||
var error_no_title = "{$ibforums->lang['jscode_error_no_title']}";
|
||||
var error_no_email = "{$ibforums->lang['jscode_error_no_email']}";
|
||||
var error_no_width = "{$ibforums->lang['jscode_error_no_width']}";
|
||||
var error_no_height = "{$ibforums->lang['jscode_error_no_height']}";
|
||||
var prompt_start = "{$ibforums->lang['js_text_to_format']}";
|
||||
|
||||
var help_bold = "{$ibforums->lang['hb_bold']}";
|
||||
var help_italic = "{$ibforums->lang['hb_italic']}";
|
||||
var help_under = "{$ibforums->lang['hb_under']}";
|
||||
var help_font = "{$ibforums->lang['hb_font']}";
|
||||
var help_size = "{$ibforums->lang['hb_size']}";
|
||||
var help_color = "{$ibforums->lang['hb_color']}";
|
||||
var help_close = "{$ibforums->lang['hb_close']}";
|
||||
var help_url = "{$ibforums->lang['hb_url']}";
|
||||
var help_img = "{$ibforums->lang['hb_img']}";
|
||||
var help_email = "{$ibforums->lang['hb_email']}";
|
||||
var help_quote = "{$ibforums->lang['hb_quote']}";
|
||||
var help_list = "{$ibforums->lang['hb_list']}";
|
||||
var help_code = "{$ibforums->lang['hb_code']}";
|
||||
var help_click_close = "{$ibforums->lang['hb_click_close']}";
|
||||
var list_prompt = "{$ibforums->lang['js_tag_list']}";
|
||||
|
||||
|
||||
//-->
|
||||
</script>
|
||||
<tr>
|
||||
<td class="postfoot" colspan="2">{$ibforums->lang['ib_code_buttons']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1'>
|
||||
<input type='radio' name='bbmode' value='ezmode' onClick='setmode(this.value)'> <b>{$ibforums->lang['bbcode_guided']}</b><br>
|
||||
<input type='radio' name='bbmode' value='normal' onClick='setmode(this.value)' checked> <b>{$ibforums->lang['bbcode_normal']}</b>
|
||||
</td>
|
||||
<script language='Javascript' src='html/ibfcode.js'></script>
|
||||
<td class='row1' width="100%" valign="top">
|
||||
<table cellpadding='2' cellspacing='2' width='100%' align='center'>
|
||||
<tr>
|
||||
<td nowrap width='10%'>
|
||||
<input type='button' accesskey='b' value=' B ' onClick='simpletag("B")' class='codebuttons' name='B' style="font-weight:bold" onMouseOver="hstat('bold')">
|
||||
<input type='button' accesskey='i' value=' I ' onClick='simpletag("I")' class='codebuttons' name='I' style="font-style:italic" onMouseOver="hstat('italic')">
|
||||
<input type='button' accesskey='u' value=' U ' onClick='simpletag("U")' class='codebuttons' name='U' style="text-decoration:underline" onMouseOver="hstat('under')">
|
||||
|
||||
<select name='ffont' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'FONT')" onMouseOver="hstat('font')">
|
||||
<option value='0'>{$ibforums->lang['ct_font']}</option>
|
||||
<option value='Arial' style='font-family:Arial'>{$ibforums->lang['ct_arial']}</option>
|
||||
<option value='Times' style='font-family:Times'>{$ibforums->lang['ct_times']}</option>
|
||||
<option value='Courier' style='font-family:Courier'>{$ibforums->lang['ct_courier']}</option>
|
||||
<option value='Impact' style='font-family:Impact'>{$ibforums->lang['ct_impact']}</option>
|
||||
<option value='Geneva' style='font-family:Geneva'>{$ibforums->lang['ct_geneva']}</option>
|
||||
<option value='Optima' style='font-family:Optima'>Optima</option>
|
||||
</select><select name='fsize' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'SIZE')" onMouseOver="hstat('size')">
|
||||
<option value='0'>{$ibforums->lang['ct_size']}</option>
|
||||
<option value='1'>{$ibforums->lang['ct_sml']}</option>
|
||||
<option value='7'>{$ibforums->lang['ct_lrg']}</option>
|
||||
<option value='14'>{$ibforums->lang['ct_lest']}</option>
|
||||
</select><select name='fcolor' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'COLOR')" onMouseOver="hstat('color')">
|
||||
<option value='0'>{$ibforums->lang['ct_color']}</option>
|
||||
<option value='blue' style='color:blue'>{$ibforums->lang['ct_blue']}</option>
|
||||
<option value='red' style='color:red'>{$ibforums->lang['ct_red']}</option>
|
||||
<option value='purple' style='color:purple'>{$ibforums->lang['ct_purple']}</option>
|
||||
<option value='orange' style='color:orange'>{$ibforums->lang['ct_orange']}</option>
|
||||
<option value='yellow' style='color:yellow'>{$ibforums->lang['ct_yellow']}</option>
|
||||
<option value='gray' style='color:gray'>{$ibforums->lang['ct_grey']}</option>
|
||||
<option value='green' style='color:green'>{$ibforums->lang['ct_green']}</option>
|
||||
</select>
|
||||
<a href='javascript:closeall();' onMouseOver="hstat('close')">{$ibforums->lang['js_close_all_tags']}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='left'>
|
||||
<input type='button' accesskey='h' value=' http:// ' onClick='tag_url()' class='codebuttons' name='url' onMouseOver="hstat('url')">
|
||||
<input type='button' accesskey='g' value=' IMG ' onClick='tag_image()' class='codebuttons' name='img' onMouseOver="hstat('img')">
|
||||
<input type='button' accesskey='e' value=' @ ' onClick='tag_email()' class='codebuttons' name='email' onMouseOver="hstat('email')">
|
||||
<input type='button' accesskey='q' value=' QUOTE ' onClick='simpletag("QUOTE")' class='codebuttons' name='QUOTE' onMouseOver="hstat('quote')">
|
||||
<input type='button' accesskey='p' value=' CODE ' onClick='simpletag("CODE")' class='codebuttons' name='CODE' onMouseOver="hstat('code')">
|
||||
<input type='button' accesskey='l' value=' LIST ' onClick='tag_list()' class='codebuttons' name="LIST" onMouseOver="hstat('list')">
|
||||
<!--<input type='button' accesskey='l' value=' SQL ' onClick='simpletag("SQL")' class='codebuttons' name='SQL'>
|
||||
<input type='button' accesskey='t' value=' HTML ' onClick='simpletag("HTML")' class='codebuttons' name='HTML'>-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<!-- Help Box -->
|
||||
<td align='left' valign='middle'>
|
||||
{$ibforums->lang['hb_open_tags']}: <input type='text' name='tagcount' size='3' maxlength='3' style='font-size:10px;font-family:verdana,arial;border:0px;font-weight:bold;' readonly class='row1' value="0">
|
||||
<input type='text' name='helpbox' size='50' maxlength='120' style='width:80%;font-size:10px;font-family:verdana,arial;border:0px' readonly class='row1' value="{$ibforums->lang['hb_start']}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="postfoot" colspan="2">{$ibforums->lang['post']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1'>(<a href='javascript:CheckLength()'>{$ibforums->lang['check_length']}</a>)<br><br><!--SMILIE TABLE--><img src="{$ibforums->vars['img_url']}/spacer.gif" alt="" width="180" height="1"></td>
|
||||
<td class='row1' width="100%" valign="top"><textarea cols='60' style='width:95%' rows='15' wrap='soft' name='Post' tabindex='3' class='textinput'>$data</textarea><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td><input type='checkbox' name='enableemo' value='yes' checked></td>
|
||||
<td width="100%">{$ibforums->lang['enable_emo']}</td>
|
||||
</tr>
|
||||
<!--IBF.SIG_CLICK-->
|
||||
<tr>
|
||||
<td><input type='checkbox' name='enablesig' value='yes' checked></td>
|
||||
<td width="100%">{$ibforums->lang['enable_sig']}</td>
|
||||
</tr>
|
||||
<!--IBF.END_SIG_CLICK-->
|
||||
</table></td>
|
||||
</tr>
|
||||
EOF;
|
||||
@@ -397,24 +735,28 @@ function nameField_unreg($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td id="subtitle" colspan="2">{$ibforums->lang['unreg_namestuff']}</td>
|
||||
<td class="postfoot" colspan="2">{$ibforums->lang['unreg_namestuff']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id="row1">{$ibforums->lang['guest_name']}</td>
|
||||
<td id="row1" width="100%"><input type='text' size='40' maxlength='40' name='UserName' value='$data' onMouseOver="this.focus()" onFocus="this.select()"></td>
|
||||
<td class="row1">{$ibforums->lang['guest_name']}</td>
|
||||
<td class="row1" width="100%"><input type='text' size='40' maxlength='40' name='UserName' value='$data' onMouseOver="this.focus()" onFocus="this.select()"></td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function poll_box($data) {
|
||||
function poll_box($data, $extra="") {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td id="subtitle" colspan="2">{$ibforums->lang['tt_poll_settings']}</td>
|
||||
<td class="postfoot" colspan="2">{$ibforums->lang['tt_poll_settings']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1'>{$ibforums->lang['poll_choices']}</td>
|
||||
<td id='row1' width="100%" valign="top"><textarea cols='60' rows='12' wrap='soft' name='PollAnswers' class='textinput'>$data</textarea>
|
||||
<td class="row1">{$ibforums->lang['poll_question']}</td>
|
||||
<td class="row1" width="100%"><input type='text' size='40' maxlength='250' name='pollq' value=''></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='row1' valign='top'>{$ibforums->lang['poll_choices']}<br><br>$extra</td>
|
||||
<td class='row1' width="100%" valign="top"><textarea cols='60' rows='12' wrap='soft' name='PollAnswers' class='textinput'>$data</textarea>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td><input type='checkbox' size='40' value='1' name='allow_disc' class='forminput'></td>
|
||||
|
||||
@@ -2,48 +2,86 @@
|
||||
|
||||
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']} $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>
|
||||
<<<a href='{$ibforums->base_url}&act=ST&f=$fid&t=$tid'>{$ibforums->lang['back_topic']}</a></b>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function pp_postentry($poster, $entry ) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<b>{$ibforums->lang['by']}: {$entry['author_name']}</b> {$this->class['LANG']['on']} {$entry['post_date']}
|
||||
<br><br>
|
||||
{$entry['post']}
|
||||
<hr>
|
||||
<table width='90%' align='center' cellpadding='6' border='1'>
|
||||
<tr>
|
||||
<td bgcolor='#EEEEEE'><font face='arial' size='2' color='#000000'><b>{$ibforums->lang['by']}: {$entry['author_name']}</b> {$ibforums->lang['on']} {$entry['post_date']}</b></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><font face='arial' size='3' color='#000000'>{$entry['post']}</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
EOF;
|
||||
}
|
||||
|
||||
function pp_end() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<i>{$ibforums->lang['end']}</i>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<center><font face='arial' size='1' color='#000000'>Powered by Invision Board (http://www.invisionboard.com)<br />© Invision Power Services (http://www.invisionpower.com)</font></center>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function pp_header($forum_name, $topic_title, $topic_starter) {
|
||||
function pp_header($forum_name, $topic_title, $topic_starter,$fid, $tid) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<html>
|
||||
<head>
|
||||
<title>{$ibforums->vars['board_name']} [Powered by IB Forums]</title>
|
||||
<title>{$ibforums->vars['board_name']} [Powered by IB Forums]</title>
|
||||
</head>
|
||||
<body bgcolor='#FFFFFF' alink='#000000' vlink='#000000' link='#000000'>
|
||||
<table width='90%' border='0' align='center'>
|
||||
<tr>
|
||||
<td>
|
||||
<font face='arial' size='3' color='#000000'>
|
||||
<b>{$ibforums->lang['title']}</b>
|
||||
<br><br>
|
||||
-{$ibforums->vars['board_name']}<br>
|
||||
+--{$ibforums->lang['forum']}: $forum_name<br>
|
||||
+---{$ibforums->lang['topic']}: $topic_title {$ibforums->lang['start']} $topic_starter
|
||||
<hr noshade size='1' color='#000000'>
|
||||
<br>
|
||||
<br>
|
||||
<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>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><font face='arial' size='2' color='#000000'><b>{$ibforums->vars['board_name']} > $forum_name > <font color='red'>$topic_title</font></b></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,38 +18,38 @@ EOF;
|
||||
function show_profile($info) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='<{tbl_width}>' align='center'>
|
||||
<tr>
|
||||
<td><span id='pagetitle'>{$info['name']}</span></td>
|
||||
<td><span class='pagetitle'>{$info['name']}</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='left'><a href='{$info['base_url']}&act=Search&CODE=01&cat_forum=cat&cats=all&useridsearch={$info['mid']}'>{$ibforums->lang['find_posts']}</a> |
|
||||
<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-->
|
||||
</table>
|
||||
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='<{tbl_width}>' align='center'>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='100%' bgcolor='{$ibforums->skin['tbl_border']}'>
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='100%' bgcolor='<{tbl_border}>'>
|
||||
<tr>
|
||||
<td width='50%' valign='top' id='row1'>
|
||||
<table cellpadding='6' cellspacing='1' border='0' width='100%' id='row1'>
|
||||
<td width='50%' valign='top' class='row1'>
|
||||
<table cellpadding='6' cellspacing='1' border='0' width='100%' class='row1'>
|
||||
<tr>
|
||||
<td align='center' colspan='2' id='titlemedium'>{$ibforums->lang['active_stats']}</td>
|
||||
<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' id='bottomborder'><b>{$info['posts']}</b><br>( {$info['total_pct']}% {$ibforums->lang['total_percent']} )</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' id='bottomborder'><b>{$info['posts_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' id='bottomborder'><b>{$info['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>
|
||||
@@ -64,30 +64,30 @@ return <<<EOF
|
||||
|
||||
<!-- Communication -->
|
||||
|
||||
<td width='50%' valign='top' id='row1'>
|
||||
<table cellpadding='6' cellspacing='1' border='0' width='100%' id='row1'>
|
||||
<td width='50%' valign='top' class='row1'>
|
||||
<table cellpadding='6' cellspacing='1' border='0' width='100%' class='row1'>
|
||||
<tr>
|
||||
<td align='center' colspan='2' id='titlemedium'>{$ibforums->lang['communicate']}</td>
|
||||
<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' id='bottomborder'>{$info['email']}</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' id='bottomborder'>{$info['aim_name']}</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' id='bottomborder'>{$info['icq_number']}</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' id='bottomborder'>{$info['yahoo']}</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' id='bottomborder'>{$info['msn_name']}</td>
|
||||
<td align='left' class='bottomborder'>{$info['msn_name']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='left' valign='top'><b>{$ibforums->lang['pm']}</b></td>
|
||||
@@ -101,48 +101,49 @@ return <<<EOF
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='50%' valign='top' id='row1'>
|
||||
<table cellpadding='6' cellspacing='1' border='0' width='100%' id='row1'>
|
||||
<td width='50%' valign='top' class='row1'>
|
||||
<table cellpadding='6' cellspacing='1' border='0' width='100%' class='row1'>
|
||||
<tr>
|
||||
<td align='center' colspan='2' id='titlemedium'>{$ibforums->lang['info']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='left' width='30%' valign='top'><b>{$ibforums->lang['mgroup']}</b></td>
|
||||
<td align='left' id='bottomborder'>{$info['group_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='left' valign='top'><b>{$ibforums->lang['mtitle']}</b></td>
|
||||
<td align='left' id='bottomborder'>{$info['member_title']}</td>
|
||||
<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' id='bottomborder'>{$info['homepage']}</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' id='bottomborder'>{$info['birthday']}</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' id='bottomborder'>{$info['location']}</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' id='row1'>
|
||||
<table cellpadding='6' cellspacing='1' border='0' width='100%' id='row1'>
|
||||
<td width='50%' valign='top' class='row1'>
|
||||
<table cellpadding='6' cellspacing='1' border='0' width='100%' class='row1'>
|
||||
<tr>
|
||||
<td align='center' colspan='2' id='titlemedium'>{$ibforums->lang['post_detail']}</td>
|
||||
<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' id='bottomborder'>{$info['avatar']}</td>
|
||||
<td align='left' class='bottomborder'>{$info['avatar']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='left' valign='top'><b>{$ibforums->lang['siggie']}</b></td>
|
||||
@@ -152,7 +153,7 @@ return <<<EOF
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' id='row2' align='center' style='height:24px'><( <a href='javascript:history.go(-1)'>{$ibforums->lang['back']}</a> )</td>
|
||||
<td colspan='2' class='row2' align='center' style='height:24px'><( <a href='javascript:history.go(-1)'>{$ibforums->lang['back']}</a> )</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -161,6 +162,15 @@ return <<<EOF
|
||||
EOF;
|
||||
}
|
||||
|
||||
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>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
@@ -3,6 +3,153 @@
|
||||
class skin_register {
|
||||
|
||||
|
||||
function coppa_form() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<html>
|
||||
<head>
|
||||
<title>{$ibforums->lang['cpf_title']}</title>
|
||||
<!--<link rel='stylesheet' href='style_sheets/stylesheet_<{css_id}>.css' type='text/css'>-->
|
||||
</head>
|
||||
<body bgcolor='white'>
|
||||
<table cellpadding='0' cellspacing='4' border='0' width='95%' align='center'>
|
||||
<tr>
|
||||
<td valign='middle' align='left'>
|
||||
<span class='pagetitle'>{$ibforums->vars['board_name']}: {$ibforums->lang['cpf_title']}</span>
|
||||
<br><br>
|
||||
<b><span style='font-size:12px'>{$ibforums->lang['cpf_perm_parent']}</span></b>
|
||||
<br><br>
|
||||
{$ibforums->lang['cpf_fax']} {$ibforums->vars['coppa_fax']}
|
||||
<br><br>
|
||||
{$ibforums->lang['cpf_address']}
|
||||
<br>
|
||||
{$ibforums->vars['coppa_address']}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table cellpadding='4' cellspacing='2' border='1' width='95%' align='center'>
|
||||
<tr>
|
||||
<td width='40%'>{$ibforums->lang['user_name']}</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%'>{$ibforums->lang['pass_word']}</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%'>{$ibforums->lang['email_address']}</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table cellpadding='0' cellspacing='4' border='0' width='95%' align='center'>
|
||||
<tr>
|
||||
<td valign='middle' align='left'>
|
||||
<b><span style='font-size:12px'>{$ibforums->lang['cpf_sign']}</span></b>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table cellpadding='10' cellspacing='2' border='1' width='95%' align='center'>
|
||||
<tr>
|
||||
<td width='40%'>{$ibforums->lang['cpf_name']}</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%'>{$ibforums->lang['cpf_relation']}</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%'>{$ibforums->lang['cpf_signature']}</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%'>{$ibforums->lang['cpf_email']}</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%'>{$ibforums->lang['cpf_phone']}</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%'>{$ibforums->lang['cpf_date']}</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
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'>
|
||||
<< <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> >>
|
||||
</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>
|
||||
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>
|
||||
< <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> >
|
||||
<br><br>
|
||||
</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>
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function lost_pass_form() {
|
||||
global $ibforums;
|
||||
@@ -11,25 +158,25 @@ return <<<EOF
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post">
|
||||
<input type='hidden' name='act' value='Reg'>
|
||||
<input type='hidden' name='CODE' value='11'>
|
||||
<table cellpadding='0' cellspacing='4' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
|
||||
<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='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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' id='titlemedium'>{$ibforums->lang['complete_form']}</td>
|
||||
<td valign='left' colspan='2' class='titlemedium'>{$ibforums->lang['complete_form']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' width='40%'>{$ibforums->lang['lp_user_name']}</td>
|
||||
<td id='row1'><input type='text' size='32' maxlength='32' name='member_name' class='forminput'></td>
|
||||
<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 id='row2' align='center' colspan='2'>
|
||||
<td class='row2' align='center' colspan='2'>
|
||||
<input type="submit" value="{$ibforums->lang['lp_send']}" class='forminput'>
|
||||
</td></tr></table>
|
||||
</td></tr></table>
|
||||
@@ -40,15 +187,15 @@ EOF;
|
||||
function show_authorise($member) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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' id='titlemedium'>{$ibforums->lang['registration_process']}</td>
|
||||
<td valign='left' class='titlemedium'>{$ibforums->lang['registration_process']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1'>{$ibforums->lang['thank_you']} {$member['name']}. {$ibforums->lang['auth_text']} {$member['email']}</td>
|
||||
<td class='row1'>{$ibforums->lang['thank_you']} {$member['name']}. {$ibforums->lang['auth_text']} {$member['email']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -60,15 +207,15 @@ EOF;
|
||||
function show_preview($member) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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' id='titlemedium'>{$ibforums->lang['registration_process']}</td>
|
||||
<td valign='left' class='titlemedium'>{$ibforums->lang['registration_process']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1'>{$ibforums->lang['thank_you']} {$member['name']}. {$ibforums->lang['preview_reg_text']}</td>
|
||||
<td class='row1'>{$ibforums->lang['thank_you']} {$member['name']}. {$ibforums->lang['preview_reg_text']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -97,29 +244,29 @@ return <<<EOF
|
||||
<input type='hidden' name='act' value='Reg'>
|
||||
<input type='hidden' name='CODE' value='03'>
|
||||
<input type='hidden' name='type' value='$type'>
|
||||
<table cellpadding='0' cellspacing='4' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
|
||||
<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='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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' id='titlemedium'>{$ibforums->lang['complete_form']}</td>
|
||||
<td valign='left' colspan='2' class='titlemedium'>{$ibforums->lang['complete_form']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' width='40%'>{$ibforums->lang['user_id']}</td>
|
||||
<td id='row1'><input type='text' size='32' maxlength='32' name='uid' class='forminput'></td>
|
||||
<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 id='row2' width='40%'>{$ibforums->lang['val_key']}</td>
|
||||
<td id='row2'><input type='text' size='32' maxlength='50' name='aid' class='forminput'></td>
|
||||
<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 id='row2' align='center' colspan='2'>
|
||||
<td class='row2' align='center' colspan='2'>
|
||||
<input type="submit" value="{$ibforums->lang['dumb_submit']}" class='forminput'>
|
||||
</td></tr></table>
|
||||
</td></tr></table>
|
||||
@@ -154,59 +301,63 @@ return <<<EOF
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='REG' onSubmit='return Validate()'>
|
||||
<input type='hidden' name='act' value='Reg'>
|
||||
<input type='hidden' name='CODE' value='02'>
|
||||
<table cellpadding='0' cellspacing='4' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
|
||||
<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='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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' id='titlemedium'>{$ibforums->lang['complete_form']}</td>
|
||||
<td valign='left' colspan='2' class='titlemedium'>{$ibforums->lang['complete_form']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' width='40%'>{$ibforums->lang['user_name']}</td>
|
||||
<td id='row1'><input type='text' size='32' maxlength='64' name='UserName' class='forminput'></td>
|
||||
<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 id='row2' width='40%'>{$ibforums->lang['pass_word']}</td>
|
||||
<td id='row2'><input type='password' size='32' maxlength='32' name='PassWord' class='forminput'></td>
|
||||
<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 id='row2' width='40%'>{$ibforums->lang['re_enter_pass']}</td>
|
||||
<td id='row2'><input type='password' size='32' maxlength='32' name='PassWord_Check' class='forminput'></td>
|
||||
<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 id='row1' width='40%'>{$ibforums->lang['email_address']}</td>
|
||||
<td id='row1'><input type='text' size='32' maxlength='50' name='EmailAddress' class='forminput'></td>
|
||||
<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 id='row1' width='40%'>{$ibforums->lang['email_address_two']}</td>
|
||||
<td id='row1'><input type='text' size='32' maxlength='50' name='EmailAddress_two' class='forminput'></td>
|
||||
<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='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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' id='titlemedium'>{$ibforums->lang['terms_service']}</td>
|
||||
<td valign='left' class='titlemedium'>{$ibforums->lang['terms_service']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' align='center'>{$ibforums->lang['terms_service_text']}<br>
|
||||
<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> <input type='checkbox' name='agree' value='1'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row2' align='center'>
|
||||
<td class='row2' align='center'>
|
||||
<input type="submit" value="{$ibforums->lang['submit_form']}" class='forminput'>
|
||||
</td></tr></table>
|
||||
</td></tr></table>
|
||||
@@ -214,6 +365,99 @@ return <<<EOF
|
||||
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>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function reg_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'>
|
||||
<img src='{$ibforums->base_url}&act=Reg&CODE=image&rc={$regid}&p=2' border='0' alt='Code Bit'>
|
||||
<img src='{$ibforums->base_url}&act=Reg&CODE=image&rc={$regid}&p=3' border='0' alt='Code Bit'>
|
||||
<img src='{$ibforums->base_url}&act=Reg&CODE=image&rc={$regid}&p=4' border='0' alt='Code Bit'>
|
||||
<img src='{$ibforums->base_url}&act=Reg&CODE=image&rc={$regid}&p=5' border='0' alt='Code Bit'>
|
||||
<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>
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function optional_title() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td valign='left' colspan='2' class='titlemedium'>{$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>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function field_textinput($name, $value="") {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<input type='text' size='50' name='$name' value='$value' class='forminput'>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function field_dropdown($name, $options) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<select name='$name' class='forminput'>$options</select>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function field_textarea($name, $value) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<textarea cols='60' rows='5' wrap='soft' name='$name' class='forminput'>$value</textarea>
|
||||
EOF;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
+396
-291
@@ -1,292 +1,397 @@
|
||||
<?php
|
||||
|
||||
class skin_search {
|
||||
|
||||
|
||||
//
|
||||
function RenderRow($Data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<!-- Begin Topic Entry {$Data['tid']} -->
|
||||
<tr>
|
||||
<td align='center' id='forum2'>{$Data['folder_img']}</td>
|
||||
<td align='center' width='3%' id='forum1'>{$Data['topic_icon']}</td>
|
||||
<td id='forum2'>
|
||||
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
|
||||
<tr>
|
||||
<td valign='middle'>{$Data['go_new_post']}</td>
|
||||
<td width='100%'><span id='linkthru'>{$Data['prefix']} <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?act=ST&f={$Data['forum_id']}&t={$Data['tid']}&hl={$Data['keywords']}&s={$ibforums->session_id}' id='linkthru'>{$Data['title']}</a></span> {$Data[PAGES]}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<span id='desc'>{$Data['description']}</span></td>
|
||||
<td id='forum2' width='20%' align='center'><span id="linkthru"><a href="{$ibforums->base_url}&act=SF&f={$Data['forum_id']}">{$Data['forum_name']}</a></span></td>
|
||||
<td align='center' id='forum1'>{$Data['starter']}</td>
|
||||
<td align='center' id='forum2'>{$Data['posts']}</td>
|
||||
<td align='center' id='forum1'>{$Data['views']}</td>
|
||||
<td id='forum1'>{$Data['last_post']}<br><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$Data['forum_id']}&t={$Data['tid']}&view=getlastpost'>{$Data['last_text']}</a> <b>{$Data['last_poster']}</b></td>
|
||||
</tr>
|
||||
<!-- End Topic Entry {$Data['tid']} -->
|
||||
EOF;
|
||||
}
|
||||
|
||||
function end($Data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr><td colspan='8' id='titlemedium'> </td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding='0 'cellspacing='4' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
|
||||
<tr>
|
||||
<td valign='middle' width='50%' nowrap align='left'>{$Data[SHOW_PAGES]}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding='0' cellspacing='4' border='0' width='50%' align='center'>
|
||||
<tr>
|
||||
<td valign='middle' nowrap>{$ibforums->skin['B_NEW']} {$ibforums->lang['pm_open_new']}</td>
|
||||
<td valign='middle' nowrap>{$ibforums->skin['B_HOT']} {$ibforums->lang['pm_hot_new']}</td>
|
||||
<td valign='middle' nowrap>{$ibforums->skin['B_POLL']} {$ibforums->lang['pm_poll']}</td>
|
||||
<td valign='middle' nowrap>{$ibforums->skin['B_LOCKED']} {$ibforums->lang['pm_locked']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='middle' nowrap>{$ibforums->skin['B_NORM']} {$ibforums->lang['pm_open_no']}</td>
|
||||
<td valign='middle' nowrap>{$ibforums->skin['B_HOT_NN']} {$ibforums->lang['pm_hot_no']}</td>
|
||||
<td valign='middle' nowrap>{$ibforums->skin['B_POLL_NN']} {$ibforums->lang['pm_poll_no']}</td>
|
||||
<td valign='middle' nowrap>{$ibforums->skin['B_MOVED']} {$ibforums->lang['pm_moved']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function Form($forums, $cats) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<!-- Search Form -->
|
||||
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='sForm'>
|
||||
<input type='hidden' name='act' value='Search'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
<input type='hidden' name='CODE' value='01'>
|
||||
$hidden_fields
|
||||
<br>
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
|
||||
<tr>
|
||||
<td colspan='2' id="titlemedium" background='{$ibforums->vars['img_url']}/tile_sub.gif' align='center'>{$ibforums->lang['keywords_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='title' width='50%'><b>{$ibforums->lang['key_search']}</b></td>
|
||||
<td id='title' width='50%'><b>{$ibforums->lang['mem_search']}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' valign='top'><input type='text' maxlength='100' size='40' name='keywords' class='forminput'> <select name='smethod' class='forminput'><option value='simple'>{$ibforums->lang['se_simple']}</option><option value='advanced'>{$ibforums->lang['se_advanced']}</option></select><br><br>{$ibforums->lang['keysearch_text']}</td>
|
||||
<td id='row1' valign='top'><input type='text' maxlength='100' size='50' name='namesearch' class='forminput'><br><br><input name='exactname' type='radio' value='1' checked> {$ibforums->lang['match_name_ex']}<br><input name='exactname' type='radio' value='1'> {$ibforums->lang['match_name_pa']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
|
||||
|
||||
<tr>
|
||||
<td colspan='2' id="titlemedium" background='{$ibforums->vars['img_url']}/tile_sub.gif' align='center'>{$ibforums->lang['search_options']}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td id='title' width='50%' valign='top'><b>{$ibforums->lang['search_where']}</b></td>
|
||||
<td id='title' width='50%' valign='top'><b>{$ibforums->lang['search_refine']}</b></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td id='row1' valign='middle'>
|
||||
<table cellspacing='4' cellpadding='0' width='100%' align='center' border='0'>
|
||||
<tr>
|
||||
<td valign='top' width='40%' nowrap><input type='radio' name='cat_forum' value='cat'> <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> <b>{$ibforums->lang['search_forums']}</b></td>
|
||||
<td valign='top'>$forums</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type='radio' name='search_in' value='posts' checked> {$ibforums->lang['in_posts']}</td>
|
||||
<td><input type='radio' name='search_in' value='titles'> {$ibforums->lang['in_topics']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td id='row1' valign='top'>
|
||||
<table cellspacing='4' cellpadding='0' width='100%' align='center' border='0'>
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<b>{$ibforums->lang['search_from']}</b>
|
||||
<br>
|
||||
<select name='prune' class='forminput'>
|
||||
<option value='1'>{$ibforums->lang['today']}
|
||||
<option value='7'>{$ibforums->lang['this_week']}
|
||||
<option value='30' selected>{$ibforums->lang['this_month']}
|
||||
<option value='365'>{$ibforums->lang['this_year']}
|
||||
<option value='0'>{$ibforums->lang['ever']}
|
||||
</select>
|
||||
<br>{$ibforums->lang['and']} <input type='radio' name='prune_type' value='older' class='forminput' style='background-color:{$ibforums->skin['MISCBACK_ONE']}'> {$ibforums->lang['older']} <input type='radio' name='prune_type' value='newer' class='forminput' style='background-color:{$ibforums->skin['MISCBACK_ONE']}' checked> {$ibforums->lang['newer']}
|
||||
</td>
|
||||
<td valign='top'>
|
||||
<b>{$ibforums->lang['sort_results']}</b><br>
|
||||
<select name='sort_key' class='forminput'>
|
||||
<option value='last_post'>{$ibforums->lang['last_date']}</option>
|
||||
<option value='posts'>{$ibforums->lang['number_topics']}</option>
|
||||
<option value='starter_name'>{$ibforums->lang['poster_name']}</option>
|
||||
<option value='forum_id'>{$ibforums->lang['forum_name']}</option>
|
||||
</select>
|
||||
<br><input type='radio' name='sort_order' value='desc' checked>{$ibforums->lang['descending']}
|
||||
<br><input type='radio' name='sort_order' value='asc''>{$ibforums->lang['ascending']}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='row1' colspan='2' align='center'><input type='submit' value='{$ibforums->lang['do_search']}' class='forminput'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<SCRIPT LANGUAGE="JavaScript1.1">
|
||||
function chooseForum() {
|
||||
document.sForm.cat_forum[1].checked = true;
|
||||
}
|
||||
function chooseCat() {
|
||||
document.sForm.cat_forum[0].checked = true;
|
||||
}
|
||||
</SCRIPT>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function active_start($Data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<script language='Javascript'>
|
||||
<!--
|
||||
function checkvalues() {
|
||||
f = document.dateline;
|
||||
if (f.st_day.value < f.end_day.value) {
|
||||
alert("{$ibforums->lang['active_js_error']}");
|
||||
return false;
|
||||
}
|
||||
if (f.st_day.value == f.end_day.value) {
|
||||
alert("{$ibforums->lang['active_js_error']}");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
<br>
|
||||
<table cellpadding='0 'cellspacing='4' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
|
||||
<tr>
|
||||
<td valign='middle' nowrap align='left'><span id='pagetitle'>{$ibforums->lang['active_topics']}</span><br>{$Data[SHOW_PAGES]}</td>
|
||||
<td valign='middle' align='right'>
|
||||
<form action='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}' method='POST' name='dateline' onSubmit='return checkvalues();'>
|
||||
<input type='hidden' name='act' value='Search'>
|
||||
<input type='hidden' name='CODE' value='getactive'>
|
||||
<input type='hidden' name='s' value='{$ibforums->session_id}'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding='2' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<tr>
|
||||
<td id='maintitle' background='{$ibforums->vars['img_url']}/tile_back.gif' align='center'>
|
||||
{$ibforums->lang['active_st_text']}
|
||||
<select name='st_day' class='forminput'>
|
||||
<option value='s1'>{$ibforums->lang['active_yesterday']}</option>
|
||||
<option value='s2'>2 {$ibforums->lang['active_days']}</option>
|
||||
<option value='s3'>3 {$ibforums->lang['active_days']}</option>
|
||||
<option value='s4'>4 {$ibforums->lang['active_days']}</option>
|
||||
<option value='s5'>5 {$ibforums->lang['active_days']}</option>
|
||||
<option value='s6'>6 {$ibforums->lang['active_days']}</option>
|
||||
<option value='s7'>{$ibforums->lang['active_week']}</option>
|
||||
<option value='s30'>{$ibforums->lang['active_month']}</option>
|
||||
</select>
|
||||
{$ibforums->lang['active_end_text']}
|
||||
<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>
|
||||
<input type='submit' value='>>' class='forminput'></form>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%' align='center'>
|
||||
<tr>
|
||||
<td id='mainbg'>
|
||||
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
|
||||
<tr>
|
||||
<td id='titlemedium' colspan='2' background='{$ibforums->vars['img_url']}/tile_sub.gif'> </td>
|
||||
<td align='left' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_topic_title']}</td>
|
||||
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_forum_name']}</td>
|
||||
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_topic_starter']}</td>
|
||||
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_replies']}</td>
|
||||
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_hits']}</td>
|
||||
<td id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_last_action']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function start($Data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<!-- Cgi-bot Start Forum page unique top -->
|
||||
<table cellpadding='0 'cellspacing='4' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
|
||||
<tr>
|
||||
<td valign='middle' width='50%' nowrap align='left'>{$Data[SHOW_PAGES]}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding='1' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%' align='center'>
|
||||
<tr>
|
||||
<td id='mainbg'>
|
||||
<table cellpadding='2' cellspacing='1' border='0' width='100%'>
|
||||
<tr>
|
||||
<td id='titlemedium' colspan='2' background='{$ibforums->vars['img_url']}/tile_sub.gif'> </td>
|
||||
<td align='left' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_topic_title']}</td>
|
||||
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_forum_name']}</td>
|
||||
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_topic_starter']}</td>
|
||||
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_replies']}</td>
|
||||
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_hits']}</td>
|
||||
<td id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_last_action']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function active_none() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr><td colspan='8' id='row1' align='center'><b>{$ibforums->lang['active_no_topics']}</b></td></tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
<?php
|
||||
|
||||
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'>
|
||||
<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>
|
||||
</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>
|
||||
</tr>
|
||||
<!-- End Topic Entry {$Data['tid']} -->
|
||||
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> {$ibforums->lang['rp_postedon']} {$Data['post_date']} {$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']} -->
|
||||
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>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function end_as_post($Data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr><td colspan='2' class='titlemedium'> </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}> {$ibforums->lang['pm_open_new']}</td>
|
||||
<td valign='middle' nowrap><{B_HOT}> {$ibforums->lang['pm_hot_new']}</td>
|
||||
<td valign='middle' nowrap><{B_POLL}> {$ibforums->lang['pm_poll']}</td>
|
||||
<td valign='middle' nowrap><{B_LOCKED}> {$ibforums->lang['pm_locked']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='middle' nowrap><{B_NORM}> {$ibforums->lang['pm_open_no']}</td>
|
||||
<td valign='middle' nowrap><{B_HOT_NN}> {$ibforums->lang['pm_hot_no']}</td>
|
||||
<td valign='middle' nowrap><{B_POLL_NN}> {$ibforums->lang['pm_poll_no']}</td>
|
||||
<td valign='middle' nowrap><{B_MOVED}> {$ibforums->lang['pm_moved']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
function end($Data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr><td colspan='8' class='titlemedium'> </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}> {$ibforums->lang['pm_open_new']}</td>
|
||||
<td valign='middle' nowrap><{B_HOT}> {$ibforums->lang['pm_hot_new']}</td>
|
||||
<td valign='middle' nowrap><{B_POLL}> {$ibforums->lang['pm_poll']}</td>
|
||||
<td valign='middle' nowrap><{B_LOCKED}> {$ibforums->lang['pm_locked']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='middle' nowrap><{B_NORM}> {$ibforums->lang['pm_open_no']}</td>
|
||||
<td valign='middle' nowrap><{B_HOT_NN}> {$ibforums->lang['pm_hot_no']}</td>
|
||||
<td valign='middle' nowrap><{B_POLL_NN}> {$ibforums->lang['pm_poll_no']}</td>
|
||||
<td valign='middle' nowrap><{B_MOVED}> {$ibforums->lang['pm_moved']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function Form($forums, $cats) {
|
||||
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> {$ibforums->lang['match_name_ex']}
|
||||
<br><input name='exactname' type='radio' value='0'> {$ibforums->lang['match_name_pa']}
|
||||
</td>
|
||||
<td width='60%'>
|
||||
<input name='joinname' type='radio' value='1' checked> {$ibforums->lang['joinname_true']}
|
||||
<br><input name='joinname' type='radio' value='0'> {$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'> <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> <b>{$ibforums->lang['search_forums']}</b></td>
|
||||
<td valign='top'>$forums</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type='radio' name='search_in' value='posts' checked> {$ibforums->lang['in_posts']}<br><input type='radio' name='search_in' value='titles'> {$ibforums->lang['in_topics']}</td>
|
||||
<td><input type='radio' name='result_type' value='topics' checked> {$ibforums->lang['results_topics']}<br><input type='radio' name='result_type' value='posts'> {$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']} <input type='radio' name='prune_type' value='older' class='forminput' style='background-color:<{MISCBACK_ONE}>'> {$ibforums->lang['older']} <input type='radio' name='prune_type' value='newer' class='forminput' style='background-color:<{MISCBACK_ONE}>' checked> {$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>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
function active_start($Data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<script language='Javascript'>
|
||||
<!--
|
||||
function checkvalues() {
|
||||
f = document.dateline;
|
||||
if (f.st_day.value < f.end_day.value) {
|
||||
alert("{$ibforums->lang['active_js_error']}");
|
||||
return false;
|
||||
}
|
||||
if (f.st_day.value == f.end_day.value) {
|
||||
alert("{$ibforums->lang['active_js_error']}");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
<br>
|
||||
<table cellpadding='0 'cellspacing='4' border='0' width='<{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>
|
||||
{$ibforums->lang['active_end_text']}
|
||||
<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>
|
||||
<input type='submit' value='>>' 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' > </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 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' > </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>
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
@@ -3,13 +3,77 @@
|
||||
class skin_stats {
|
||||
|
||||
|
||||
function who_header($fid, $tid, $title) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
|
||||
<script language='javascript'>
|
||||
<!--
|
||||
function bog_off()
|
||||
{
|
||||
var tid = '$tid';
|
||||
var fid = '$fid';
|
||||
|
||||
opener.location= '$ibforums->base_url' + '&act=ST&f=' + fid + '&t=' + 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>
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
function who_row($row) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td align='left' class='row1' valign='middle'>{$row['author_name']}</td>
|
||||
<td align='center' class='row1' valign='middle'>{$row['pcount']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
function who_name_link($id, $name) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<a href='{$ibforums->base_url}&act=Profile&MID=$id' target='_blank'>$name</a>
|
||||
|
||||
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>
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function page_title($title) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' align='center'>
|
||||
<tr>
|
||||
<td valign='middle' align='left'><span id='pagetitle'>{$title}</td>
|
||||
<td valign='middle' align='left'><span class='pagetitle'>{$title}</td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
@@ -18,18 +82,18 @@ EOF;
|
||||
function group_strip( $group ) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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' id='titlemedium' align='center' background='{$ibforums->vars['img_url']}/tile_sub.gif'>$group</td>
|
||||
<td colspan='4' class='titlemedium' align='center' >$group</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='30%' align='left' id='category' valign='middle'>{$ibforums->lang['leader_name']}</td>
|
||||
<td width='40%' align='center' id='category' valign='middle'>{$ibforums->lang['leader_forums']}</td>
|
||||
<td align='center' width='25%' id='category' valign='middle'>{$ibforums->lang['leader_location']}</td>
|
||||
<td align='center' width='5%' id='category' valign='middle'> </td>
|
||||
<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'> </td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
@@ -38,10 +102,10 @@ function leader_row($info, $forums) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td align='left' id='row1' valign='middle'><a href='{$ibforums->base_url}&act=Profile&MID={$info['id']}'>{$info['name']}</a></td>
|
||||
<td align='center' id='row1' valign='middle'>$forums</td>
|
||||
<td align='center' id='row1' valign='middle'>{$info['location']}</td>
|
||||
<td align='center' id='row2' valign='middle'>{$info['msg_icon']}</td>
|
||||
<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>
|
||||
EOF;
|
||||
}
|
||||
@@ -60,16 +124,16 @@ EOF;
|
||||
function top_poster_header() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<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' background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium' valign='middle'>{$ibforums->lang['member']}</td>
|
||||
<td width='20%' align='center' background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium' valign='middle'>{$ibforums->lang['member_joined']}</td>
|
||||
<td align='center' width='15%' background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium' valign='middle'>{$ibforums->lang['member_posts']}</td>
|
||||
<td align='center' width='15%' background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium' valign='middle'>{$ibforums->lang['member_today']}</td>
|
||||
<td align='center' width='20%' background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium' valign='middle'>{$ibforums->lang['member_percent']}</td>
|
||||
<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>
|
||||
EOF;
|
||||
}
|
||||
@@ -78,11 +142,11 @@ function top_poster_row($info) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td align='left' id='row1' valign='middle'><a href='{$ibforums->base_url}&act=Profile&MID={$info['id']}'>{$info['name']}</a></td>
|
||||
<td align='center' id='row1' valign='middle'>{$info['joined']}</td>
|
||||
<td align='center' id='row1' valign='middle'>{$info['posts']}</td>
|
||||
<td align='center' id='row2' valign='middle'>{$info['tpost']}</td>
|
||||
<td align='center' id='row2' valign='middle'>{$info['today_pct']}%</td>
|
||||
<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>
|
||||
EOF;
|
||||
}
|
||||
@@ -91,7 +155,7 @@ function top_poster_footer($info) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td colspan='5' align='center' id='titlemedium' valign='middle'>{$ibforums->lang['total_today']} $info</td>
|
||||
<td colspan='5' align='center' class='titlemedium' valign='middle'>{$ibforums->lang['total_today']} $info</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -104,7 +168,7 @@ function top_poster_no_info() {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<tr>
|
||||
<td colspan='5' align='center' id='row1' valign='middle'>{$ibforums->lang['no_info']}</td>
|
||||
<td colspan='5' align='center' class='row1' valign='middle'>{$ibforums->lang['no_info']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
|
||||
@@ -3,25 +3,17 @@
|
||||
class skin_topic {
|
||||
|
||||
|
||||
|
||||
function mod_cp_link($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
( <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f=$data'>{$ibforums->lang['mod_cp']}</a> )
|
||||
EOF;
|
||||
}
|
||||
|
||||
function report_link($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Report&f={$data[FORUM_ID]}&t={$data[TOPIC_ID]}&p={$data[POST_ID]}'>{$ibforums->lang['snitch_geezer_to_a_copper']}</a>
|
||||
<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
|
||||
{$ibforums->lang['ip']}: $data
|
||||
<span class='desc'>{$ibforums->lang['ip']}: $data</span>
|
||||
EOF;
|
||||
}
|
||||
|
||||
@@ -32,28 +24,25 @@ return <<<EOF
|
||||
EOF;
|
||||
}
|
||||
|
||||
function Mod_Panel($data, $fid, $tid, $modcp=" ") {
|
||||
function Mod_Panel($data, $fid, $tid) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<br>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' align='center'>
|
||||
<!--<table cellpadding='0' cellspacing='0' width='100%' border='0' align='right'>
|
||||
<tr>
|
||||
<td align='left'>$modcp</td>
|
||||
<td align='right'>
|
||||
<form method='POST' name='modform' action='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}'>
|
||||
<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'>
|
||||
<option value='-1'>{$ibforums->lang['moderation_ops']}</option>
|
||||
<select name='CODE' class='forminput' style="font-weight:bold;color:red">
|
||||
<option value='-1' style='color:black'>{$ibforums->lang['moderation_ops']}</option>
|
||||
$data
|
||||
</select> <input type='submit' value='{$ibforums->lang['jmp_go']}' class='forminput'>
|
||||
</form>
|
||||
</td>
|
||||
</select> <input type='submit' value='{$ibforums->lang['jmp_go']}' class='forminput' /></form>
|
||||
<!--</td>
|
||||
</tr>
|
||||
</table>
|
||||
</table>-->
|
||||
EOF;
|
||||
}
|
||||
|
||||
@@ -70,16 +59,17 @@ return <<<EOF
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='mainbg'>
|
||||
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
|
||||
<td class='mainbg'>
|
||||
<!--IBF.TOPIC_ACTIVE-->
|
||||
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
|
||||
<tr>
|
||||
<td id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif' width='100%'>
|
||||
<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->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Track&f={$data['FORUM']['id']}&t={$data['TOPIC']['tid']}'>{$ibforums->lang['track_topic']}</a> |
|
||||
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Forward&f={$data['FORUM']['id']}&t={$data['TOPIC']['tid']}'>{$ibforums->lang['forward']}</a> |
|
||||
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Print&f={$data['FORUM']['id']}&t={$data['TOPIC']['tid']}'>{$ibforums->lang['print']}</a></b></td>
|
||||
<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>
|
||||
@@ -88,65 +78,90 @@ return <<<EOF
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width='{$ibforums->skin['tbl_width']}' align='center' border='0' cellspacing='0' cellpadding='4'>
|
||||
<table width='<{tbl_width}>' align='center' border='0' cellspacing='0' cellpadding='4'>
|
||||
<tr>
|
||||
<td width='100%'>{$data[TOPIC][SHOW_PAGES]}<br><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=SF&f={$data['FORUM']['id']}'>Back to {$data['FORUM']['name']}</a></td>
|
||||
<td align='right' nowrap>{$data[TOPIC][REPLY_BUTTON]}<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Post&CODE=00&f={$data[FORUM]['id']}' title='{$ibforums->lang['start_new_topic']}'>{$ibforums->skin['A_POST']}</a>{$data[TOPIC][POLL_BUTTON]}</td>
|
||||
<td width='100%'>{$data[TOPIC][SHOW_PAGES]}
|
||||
<br><< <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=SF&f={$data['FORUM']['id']}'>Back to {$data['FORUM']['name']}</a></td>
|
||||
<td align='right' nowrap>{$data[TOPIC][REPLY_BUTTON]}<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Post&CODE=00&f={$data[FORUM]['id']}' title='{$ibforums->lang['start_new_topic']}'><{A_POST}></a>{$data[TOPIC][POLL_BUTTON]}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table width='{$ibforums->skin['tbl_width']}' align='center' border='0' cellspacing='0' cellpadding='3'>
|
||||
<tr>
|
||||
<td width='100%' align='right'>{$data[FORUM]['JUMP']}</td>
|
||||
<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' id='posthead'><a name='entry{$data[POST]['pid']}'></a><span id='{$data[POST]['name_css']}'>{$data[POSTER]['name']}</span></td>
|
||||
<td id='posthead' valign='top'>
|
||||
<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 id='posthead'>{$data[POST]['post_icon']}<b>{$ibforums->lang['posted_on']}</b> {$data[POST]['post_date']}</td>
|
||||
<td id='posthead' align='right'>{$data[POST]['delete_button']}{$data[POST]['edit_button']}<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Post&CODE=06&f={$ibforums->input[f]}&t={$ibforums->input[t]}&p={$data[POST]['pid']}'>{$ibforums->skin['P_QUOTE']}</a></td>
|
||||
<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' id='post1'>
|
||||
{$data[POSTER]['avatar']}<br><br>
|
||||
<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>
|
||||
{$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' id='post1'><span id='postcolor'>{$data[POST]['post']} {$data[POST]['attachment']} {$data[POST]['signature']}</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 id='postfoot' align='left'> </td>
|
||||
<td id='postfoot' nowrap align='left'>
|
||||
<td class='postfoot' align='left'>{$data[POST]['ip_address']} </td>
|
||||
<td class='postfoot' nowrap align='left'>
|
||||
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
|
||||
<tr>
|
||||
<td id='postfoot' align='left' valign='middle' nowrap>{$data[POSTER]['message_icon']}{$data[POSTER]['email_icon']}{$data[POSTER]['website_icon']}{$data[POSTER]['icq_icon']}{$data[POSTER]['aol_icon']}{$data[POSTER]['yahoo_icon']}{$data[POSTER]['msn_icon']}</td>
|
||||
<td id='postfoot' valign='middle' align='right'>{$data[POST]['ip_address']}{$data[POST]['report_link']}</td>
|
||||
<td id='postfoot' valign='middle' align='right' width='2%'><a href='javascript:scroll(0,0);'><img src='{$ibforums->vars['img_url']}/p_up.gif' alt='Top' border='0'></a></td>
|
||||
<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']} </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 id='postsep' colspan='2'><img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='1' height='1'></td>
|
||||
<td class='postsep' colspan='2'><img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='1' height='1'></td>
|
||||
</tr>
|
||||
<!-- end Message -->
|
||||
EOF;
|
||||
@@ -185,35 +200,36 @@ return <<<EOF
|
||||
</script>
|
||||
<a name='top'></a>
|
||||
<!-- Cgi-bot Start Forum page unique top -->
|
||||
<table width='{$ibforums->skin['tbl_width']}' border='0' cellspacing='0' cellpadding='4' align='center'>
|
||||
<table width='<{tbl_width}>' border='0' cellspacing='0' cellpadding='4' align='center'>
|
||||
<tr>
|
||||
<td width='100%'>{$data['TOPIC']['SHOW_PAGES']} {$data['TOPIC']['go_new']}</td>
|
||||
<td align='right' nowrap>{$data[TOPIC][REPLY_BUTTON]}<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Post&CODE=00&f={$data[FORUM]['id']}' title='{$ibforums->lang['start_new_topic']}'>{$ibforums->skin['A_POST']}</a>{$data[TOPIC][POLL_BUTTON]}</td>
|
||||
<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='{$ibforums->skin['tbl_width']}' border='0' cellspacing='1' cellpadding='0' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
|
||||
<table width='<{tbl_width}>' border='0' cellspacing='1' cellpadding='0' bgcolor='<{tbl_border}>' align='center'>
|
||||
<tr>
|
||||
<td background='{$ibforums->vars['img_url']}/tile_back.gif' id='maintitleback'>
|
||||
<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%' id='maintitle'><b>{$data['TOPIC']['title']}</b>{$data['TOPIC']['description']}</td>
|
||||
<td width='100%' class='maintitle'><b>{$data['TOPIC']['title']}</b>{$data['TOPIC']['description']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id='mainbg'>
|
||||
<td class='mainbg'>
|
||||
<!--{IBF.POLL}-->
|
||||
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
|
||||
<tr>
|
||||
<td width='100%' id='titlemedium' nowrap background='{$ibforums->vars['img_url']}/tile_sub.gif' colspan="2">
|
||||
<td width='100%' class='titlemedium' nowrap colspan="2">
|
||||
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
|
||||
<tr>
|
||||
<td align='left'><b>« <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> »</b></td>
|
||||
<td align='right'><b>
|
||||
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Track&f={$data['FORUM']['id']}&t={$data['TOPIC']['tid']}'>{$ibforums->lang['track_topic']}</a> |
|
||||
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Forward&f={$data['FORUM']['id']}&t={$data['TOPIC']['tid']}'>{$ibforums->lang['forward']}</a> |
|
||||
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Print&f={$data['FORUM']['id']}&t={$data['TOPIC']['tid']}'>{$ibforums->lang['print']}</a></b></td>
|
||||
<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>
|
||||
@@ -223,11 +239,28 @@ return <<<EOF
|
||||
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' id='fancyborder'>
|
||||
<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>
|
||||
@@ -240,7 +273,7 @@ function Show_attachments($data) {
|
||||
global $ibforums;
|
||||
return <<<EOF
|
||||
<br><br>
|
||||
<table cellpadding='4' cellspacing='0' border='0' width='50%' align='center' id='fancyborder'>
|
||||
<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>
|
||||
|
||||
+1097
-918
File diff suppressed because it is too large.
Load diff
+633
-614
File diff suppressed because it is too large.
Load diff
@@ -1 +1 @@
|
||||
bbtags = new Array();␍␍//--------------------------------------------␍// Get stack size␍//--------------------------------------------␍␍function stacksize(thearray)␍{␍ for (i = 0 ; i < thearray.length; i++ )␍ {␍ if ( (thearray[i] == "") || (thearray[i] == null) || (thearray == 'undefined') )␍ {␍ return i;␍ }␍ }␍ ␍ return thearray.length;␍}␍␍//--------------------------------------------␍// Push stack␍//--------------------------------------------␍␍function pushstack(thearray, newval)␍{␍ arraysize = stacksize(thearray);␍ thearray[arraysize] = newval;␍}␍␍//--------------------------------------------␍// Pop stack␍//--------------------------------------------␍␍function popstack(thearray)␍{␍ arraysize = stacksize(thearray);␍ theval = thearray[arraysize - 1];␍ delete thearray[arraysize - 1];␍ return theval;␍}␍␍//--------------------------------------------␍// Close current open tag␍//--------------------------------------------␍␍function closelast()␍{␍␍ if (bbtags[0])␍ {␍ document.REPLIER.Post.value += "[/" + popstack(bbtags) + "]";␍ }␍ ␍ document.REPLIER.Post.focus();␍ ␍}␍␍//--------------------------------------------␍// Close all tags␍//--------------------------------------------␍␍function closeall()␍{␍ if (bbtags[0])␍ {␍ while (bbtags[0])␍ {␍ document.REPLIER.Post.value += "[/" + popstack(bbtags) + "]";␍ }␍ ␍ document.REPLIER.Post.value += " ";␍ }␍ ␍ document.REPLIER.Post.focus();␍}␍␍//--------------------------------------------␍// EMOTICONS␍//--------------------------------------------␍␍function emoticon(theSmilie)␍ {␍ if (document.REPLIER.Post.caretPos && document.REPLIER.Post.createTextRange)␍ {␍ var caretPos = document.REPLIER.Post.caretPos;␍ caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? theSmilie + ' ' : theSmilie;␍ }␍ else␍ {␍ document.REPLIER.Post.value += ' ' + theSmilie + ' ';␍ }␍ ␍ document.REPLIER.Post.focus();␍}␍␍//--------------------------------------------␍// ADD CODE␍//--------------------------------------------␍␍function add_code(NewCode)␍{␍ document.REPLIER.Post.value += NewCode;␍ document.REPLIER.Post.focus();␍ return;␍}␍␍//--------------------------------------------␍// ALTER FONT␍//--------------------------------------------␍␍function alterfont(theval, thetag)␍{␍ if (theval == 0)␍ {␍ return;␍ }␍ else␍ {␍ document.REPLIER.Post.value += "[" + thetag + "=" + theval + "]";␍ pushstack(bbtags, thetag);␍ }␍ ␍ document.REPLIER.ffont.selectedIndex = 0;␍ document.REPLIER.fsize.selectedIndex = 0;␍ document.REPLIER.fcolor.selectedIndex = 0;␍ ␍ document.REPLIER.Post.focus();␍}␍␍␍//--------------------------------------------␍// SIMPLE TAGS (such as B, I U, etc)␍//--------------------------------------------␍␍function simpletag(thetag)␍{␍ document.REPLIER.Post.value += "[" + thetag + "]";␍ ␍ pushstack(bbtags, thetag);␍ ␍ document.REPLIER.Post.focus();␍}␍␍function tag_url()␍{␍ var FoundErrors = '';␍ var enterURL = prompt(text_enter_url, "http://");␍ var enterTITLE = prompt(text_enter_url_name, "My Webpage");␍ if (!enterURL)␍ {␍ FoundErrors += " " + error_no_url;␍ }␍ if (!enterTITLE)␍ {␍ FoundErrors += " " + error_no_title;␍ }␍ if (FoundErrors)␍ {␍ alert("Error!"+FoundErrors);␍ return;␍ }␍ var ToAdd = "[URL="+enterURL+"]"+enterTITLE+"[/URL]";␍ document.REPLIER.Post.value+=ToAdd;␍ document.REPLIER.Post.focus();␍}␍␍function tag_image()␍{␍ var FoundErrors = '';␍ var enterURL = prompt(text_enter_image, "http://");␍ if (!enterURL) {␍ FoundErrors += " " + error_no_url;␍ }␍ if (FoundErrors) {␍ alert("Error!"+FoundErrors);␍ return;␍ }␍ var ToAdd = "[IMG]"+enterURL+"[/IMG]";␍ document.REPLIER.Post.value+=ToAdd;␍ document.REPLIER.Post.focus();␍}␍␍function tag_email()␍{␍ var emailAddress = prompt(text_enter_email,"");␍ if (!emailAddress) { alert(error_no_email); return; }␍ var ToAdd = "[EMAIL]"+emailAddress+"[/EMAIL]";␍ document.REPLIER.Post.value+=ToAdd;␍ document.REPLIER.Post.focus();␍}
|
||||
//--------------------------------------------
// 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
|
||||
Vendored
BIN
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 65 B |
Binary file not shown.
|
After Width: | Height: | Size: 69 B |
Binary file not shown.
|
After Width: | Height: | Size: 69 B |
@@ -1 +1 @@
|
||||
<html>
<head>
<title>CSS Generator</title>
<style type="text/css">
TABLE, TR, TD { font: 10px Verdana; color:#000000 }
BODY { font: 10px Verdana; color:#000000 }
INPUT, SUBMIT {
font-family: Courier, Courier New, Monaco;
font-size: 10pt;
font-family: verdana, helvetica, sans-serif;
vertical-align:middle;
background-color: #CCCCCC;
}
</style>
<script language='Javascript'>
// It's crappy, it's by Matt!
function do_css() {
var theForm = document.css_form;
var theName = theForm.NAME.value;
var theFont = theForm.FONT.value;
var theSize = theForm.SIZE.value;
var theSizeT = theForm.SIZE_TYPE.value;
var theWeight = theForm.WEIGHT.value;
var theColor = theForm.COLOUR.value;
var theBG = theForm.BGCOLOUR.value;
var theBW = theForm.BWEIGHT.value;
var theBC = theForm.BCOLOUR.value;
var theSpace = theForm.SPACE.value;
var theSpaceT = theForm.SPACING.value;
var theLSpace = theForm.LSPACE.value;
//defaults
var tmp_style = "solid";
var tmp_col = "black";
var tmp_thick = "1px";
// Check for empties
var msg = "";
if (theName == "") { msg = "You must enter a CSS definition name"; }
// more here eventually?
if (msg != "") {
alert(msg);
return;
}
var thecss = "#" + theName + " {\n";
// start the build the css
if (theFont != "") {
thecss += "\t font-family: " + theFont + ";\n";
}
if (theSize != "") {
thecss += "\t font-size: " + theSize + theSizeT + ";\n";
}
if (theWeight != "normal") {
thecss += "\t font-weight: " + theWeight + ";\n";
}
if (theColor != "") {
thecss += "\t color: " + theColor + ";\n";
}
if (theBG != "") {
thecss += "\t background-color: " + theBG + ";\n";
}
if (theBW != "") {
tmp_thick = theBW + "px";
}
if (theBC != "") {
tmp_col = theBC;
}
if (theBW != "" && theBC != "") {
thecss += "\t border: " + tmp_style + " " + tmp_col + " " + tmp_thick + ";\n";
}
if (theSpace != "") {
thecss += "\t line-height: " + theSpace + theSpaceT + ";\n";
}
if (theLSpace != "") {
thecss += "\t letter-spacing: " + theLSpace + "px;\n";
}
thecss += "}";
theForm.CSS.value = thecss;
return;
}
function preview() {
var theCSS = document.css_form.CSS.value;
var theID = document.css_form.NAME.value;
var Template = "<html><head><title>testing CSS</title><style type=\"text/css\">"+theCSS+"</style></head>\n<body bgcolor='#FFFFFF'>\n";
Template += "<span id='"+theID+"'>Cozy lummox gives smart squid who asks for job pen<br>Apparently....</span>";
Template += "\n</body></html>";
var newWin = window.open( '', 'PREVIEW', 'width=500,height=200,top=0,left=0,resizable=1,scrollbars=1,location=no,directories=no,status=no,menubar=no,toolbar=no');
newWin.document.write(Template);
}
<!--
//-->
</script>
</head>
<body bgcolor='#FFFFFF'>
<b><span style='font-size:12px'>Simple CSS Generator</span></b>
<br><br>
This is designed to generate a simple CSS definition. It does not contain
all the CSS attributes, just the most commonly used ones.
<br><br>
<form name='css_form'>
<table width='95%' align='center' border='0' bgcolor='#000000' cellspacing='1' cellpadding='0'>
<tr>
<td>
<table width='100%' align='center' border='0' bgcolor='#EFEFEF' cellspacing='0' cellpadding='4'>
<tr>
<td width='40%'><b>CSS ID Definition name?</b></td>
<td width='60%'><input type='text' name='NAME'></td>
</tr>
<tr>
<td width='40%'><b>Font name (seperate many with a comma)</b></td>
<td width='60%'><input type='text' name='FONT'></td>
</tr>
<tr>
<td width='40%'><b>Font size</b></td>
<td width='60%'><input type='text' name='SIZE' size='5'> <select name='SIZE_TYPE'><option value='px'>Pixels<option value='pt'>Points<option value='em'>em</select></td>
</tr>
<tr>
<td width='40%'><b>Font Weight</b></td>
<td width='60%'><select name='WEIGHT'><option value='normal'>normal<option value='bold'>Bold<option value='bolder'>Bolder</select></td>
</tr>
<tr>
<td width='40%'><b>Font Colour</b></td>
<td width='60%'><input type='text' name='COLOUR'></td>
</tr>
<tr>
<td width='40%'><b>Background Colour</b></td>
<td width='60%'><input type='text' name='BGCOLOUR'></td>
</tr>
<tr>
<td width='40%'><b>Border...</b></td>
<td width='60%'>Weight (in pixels or leave blank)<input type='text' name='BWEIGHT' size='5'> Colour<input type='text' name='BCOLOUR' size='15'></td>
</tr>
<tr>
<td width='40%'><b>Line Spacing</b></td>
<td width='60%'><input type='text' name='SPACE' size='5'> <select name='SPACING'><option value='px'>Pixels<option value='pt'>Points<option valuLine truncated
|
||||
<html>
<head>
<title>CSS Generator</title>
<style type="text/css">
TABLE, TR, TD { font: 10px Verdana; color:#000000 }
BODY { font: 10px Verdana; color:#000000 }
INPUT, SUBMIT {
font-family: Courier, Courier New, Monaco;
font-size: 10pt;
font-family: verdana, helvetica, sans-serif;
vertical-align:middle;
background-color: #FFFFFF;
}
</style>
<script language='Javascript'>
// It's crappy, it's by Matt!
function do_css() {
var theForm = document.css_form;
var theName = theForm.NAME.value;
var theFont = theForm.FONT.value;
var theSize = theForm.SIZE.value;
var theSizeT = theForm.SIZE_TYPE.value;
var theWeight = theForm.WEIGHT.value;
var theColor = theForm.COLOUR.value;
var theBG = theForm.BGCOLOUR.value;
var theBW = theForm.BWEIGHT.value;
var theBC = theForm.BCOLOUR.value;
var theSpace = theForm.SPACE.value;
var theSpaceT = theForm.SPACING.value;
var theLSpace = theForm.LSPACE.value;
//defaults
var tmp_style = "solid";
var tmp_col = "black";
var tmp_thick = "1px";
// Check for empties
var msg = "";
if (theName == "") { msg = "You must enter a CSS definition name"; }
// more here eventually?
if (msg != "") {
alert(msg);
return;
}
var thecss = "#" + theName + " {\n";
// start the build the css
if (theFont != "") {
thecss += "\t font-family: " + theFont + ";\n";
}
if (theSize != "") {
thecss += "\t font-size: " + theSize + theSizeT + ";\n";
}
if (theWeight != "normal") {
thecss += "\t font-weight: " + theWeight + ";\n";
}
if (theColor != "") {
thecss += "\t color: " + theColor + ";\n";
}
if (theBG != "") {
thecss += "\t background-color: " + theBG + ";\n";
}
if (theBW != "") {
tmp_thick = theBW + "px";
}
if (theBC != "") {
tmp_col = theBC;
}
if (theBW != "" && theBC != "") {
thecss += "\t border: " + tmp_style + " " + tmp_col + " " + tmp_thick + ";\n";
}
if (theSpace != "") {
thecss += "\t line-height: " + theSpace + theSpaceT + ";\n";
}
if (theLSpace != "") {
thecss += "\t letter-spacing: " + theLSpace + "px;\n";
}
thecss += "}";
theForm.CSS.value = thecss;
return;
}
function preview() {
var theCSS = document.css_form.CSS.value;
var theID = document.css_form.NAME.value;
var Template = "<html><head><title>testing CSS</title><style type=\"text/css\">"+theCSS+"</style></head>\n<body bgcolor='#FFFFFF'>\n";
Template += "<span id='"+theID+"'>Cozy lummox gives smart squid who asks for job pen<br>Apparently....</span>";
Template += "\n</body></html>";
var newWin = window.open( '', 'PREVIEW', 'width=500,height=200,top=0,left=0,resizable=1,scrollbars=1,location=no,directories=no,status=no,menubar=no,toolbar=no');
newWin.document.write(Template);
newWin.document.close();
}
<!--
//-->
</script>
</head>
<body bgcolor='#FFFFFF'>
<table width='95%' align='center' border='0' cellspacing='1' cellpadding='0'>
<tr>
<td>
<b><span style='font-family: verdana, arial; font-size:20px; color:#4C77B6; font-weight:bold; letter-spacing:-1px'>Simple CSS Generator</span></b>
<br><br>
This is designed to generate a simple CSS definition. It does not contain
all the CSS attributes, just the most commonly used ones.
<br><br>
</td>
</tr>
</table>
<form name='css_form'>
<table width='95%' border='0' align='center'>
<tr>
<td width='60%'>
<table width='100%' align='center' border='0' bgcolor='#000000' cellspacing='1' cellpadding='0'>
<tr>
<td>
<table width='100%' align='center' border='0' bgcolor='#EEF2F7' cellspacing='0' cellpadding='4'>
<tr>
<td width='40%'><b>CSS ID Definition name?</b></td>
<td width='60%'><input type='text' name='NAME'></td>
</tr>
<tr>
<td width='40%'><b>Font name (separate many with a comma)</b></td>
<td width='60%'><input type='text' name='FONT'></td>
</tr>
<tr>
<td width='40%'><b>Font size</b></td>
<td width='60%'><input type='text' name='SIZE' size='5'> <select name='SIZE_TYPE'><option value='px'>Pixels<option value='pt'>Points<option value='em'>em</select></td>
</tr>
<tr>
<td width='40%'><b>Font Weight</b></td>
<td width='60%'><select name='WEIGHT'><option value='normal'>normal<option value='bold'>Bold<option value='bolder'>Bolder</select></td>
</tr>
<tr>
<td width='40%'><b>Font Colour</b></td>
<td width='60%'><input type='text' name='COLOUR'></td>
</tr>
<tr>
<td width='40%'><b>Background Colour</b></td>
<td width='60%'><input type='text' name='BGCOLOUR'></td>
</tr>
<tr>
<td width='40%'><b>Border...</b></td>
<td width='60%'>Weight (in pixels or leave blank) <input type='textLine truncated
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
+301
-285
@@ -1,285 +1,301 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IBFORUMS v1
|
||||
| ========================================
|
||||
| by Matthew Mecham and David Baxter
|
||||
| (c) 2001,2002 IBForums
|
||||
| http://www.ibforums.com
|
||||
| ========================================
|
||||
| Web: http://www.ibforums.com
|
||||
| Email: phpboards@ibforums.com
|
||||
| Licence Info: phpib-licence@ibforums.com
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > 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);
|
||||
|
||||
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.1";
|
||||
var $lastclick = "";
|
||||
var $location = "";
|
||||
|
||||
function info() {
|
||||
global $sess, $std, $DB, $root_path, $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';
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// 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'];
|
||||
|
||||
// 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();
|
||||
$ibforums->member = $sess->authorise();
|
||||
$ibforums->skin = $std->load_skin();
|
||||
$ibforums->lastclick = $sess->last_click;
|
||||
$ibforums->location = $sess->location;
|
||||
$ibforums->session_id = $sess->session_id;
|
||||
|
||||
if ($ibforums->member['id'] and ( $std->my_getcookie('hide_sess') ) )
|
||||
{
|
||||
$ibforums->session_id = "";
|
||||
}
|
||||
|
||||
$ibforums->base_url = $ibforums->vars['board_url'].'/index.'.$ibforums->vars['php_ext'].'?s='.$ibforums->session_id;
|
||||
|
||||
$ibforums->skin_rid = $ibforums->skin['set_id'];
|
||||
$ibforums->skin_id = 's'.$ibforums->skin['set_id'];
|
||||
|
||||
$ibforums->vars['img_url'] = 'style_images/' . $ibforums->skin['img_id'];
|
||||
|
||||
//--------------------------------
|
||||
// Set up our language choice
|
||||
//--------------------------------
|
||||
|
||||
$ibforums->lang_id = $ibforums->member['language'] ? $ibforums->member['language'] : 'en';
|
||||
|
||||
if ( ($ibforums->lang_id != 'en') and (! is_dir( $root_path."lang/".$ibforums->lang_id ) ) )
|
||||
{
|
||||
$ibforums->lang_id = 'en';
|
||||
}
|
||||
|
||||
require $root_path."lang/".$ibforums->lang_id."/lang_global.php";
|
||||
|
||||
$ibforums->lang = $lang;
|
||||
|
||||
unset($lang);
|
||||
|
||||
//--------------------------------
|
||||
|
||||
require $root_path."Skin/".$ibforums->skin_id."/skin_global.php";
|
||||
|
||||
$skin_universal = new skin_global();
|
||||
|
||||
//--------------------------------
|
||||
|
||||
if ($ibforums->input['act'] != 'Login' and $ibforums->input['act'] != 'Reg' and $ibforums->input['act'] != 'Attach')
|
||||
{
|
||||
|
||||
//--------------------------------
|
||||
// Do we have permission to view
|
||||
// the board?
|
||||
//--------------------------------
|
||||
|
||||
if ($ibforums->member['g_view_board'] != 1)
|
||||
{
|
||||
$std->Error( array( 'LEVEL' => 1, 'MSG' => 'no_view_board') );
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// Is the board offline?
|
||||
//--------------------------------
|
||||
|
||||
if ($ibforums->vars['board_offline'] == 1)
|
||||
{
|
||||
if ($ibforums->member['g_access_offline'] != 1)
|
||||
{
|
||||
$std->board_offline();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// Is log in enforced?
|
||||
//--------------------------------
|
||||
|
||||
if ( (! $ibforums->member['id']) and ($ibforums->vars['force_login'] == 1) )
|
||||
{
|
||||
require $root_path."sources/Login.php";
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// Decide what to do
|
||||
//--------------------------------
|
||||
|
||||
$choice = array(
|
||||
"idx" => "Boards",
|
||||
"SF" => "Forums",
|
||||
"SR" => "Forums",
|
||||
"ST" => "Topics",
|
||||
"Login" => "Login",
|
||||
"Post" => "Post",
|
||||
"Poll" => "lib/add_poll",
|
||||
"Reg" => "Register",
|
||||
"Online" => "Online",
|
||||
"Members" => "Memberlist",
|
||||
"Help" => "Help",
|
||||
"Search" => "Search",
|
||||
"Mod" => "Moderate",
|
||||
"Print" => "misc/print_page",
|
||||
"Forward" => "misc/forward_page",
|
||||
"Mail" => "misc/contact_member",
|
||||
"Invite" => "misc/contact_member",
|
||||
"ICQ" => "misc/contact_member",
|
||||
"AOL" => "misc/contact_member",
|
||||
"Msg" => "Messenger",
|
||||
"UserCP" => "Usercp",
|
||||
"Profile" => "Profile",
|
||||
"Track" => "misc/tracker",
|
||||
"Stats" => "misc/stats",
|
||||
"Attach" => "misc/attach",
|
||||
'ib3' => 'misc/ib3',
|
||||
'legends' => 'misc/legends',
|
||||
'ModCP' => 'mod_cp',
|
||||
);
|
||||
|
||||
|
||||
/***************************************************/
|
||||
|
||||
$ibforums->input['act'] = $ibforums->input['act'] == '' ? "idx" : $ibforums->input['act'];
|
||||
|
||||
// Check to make sure the array key exits..
|
||||
|
||||
if (! isset($choice[ $ibforums->input['act'] ]) )
|
||||
{
|
||||
$ibforums->input['act'] = 'idx';
|
||||
}
|
||||
|
||||
// Require and run
|
||||
|
||||
require $root_path."sources/".$choice[ $ibforums->input['act'] ].".php";
|
||||
|
||||
|
||||
|
||||
//+-------------------------------------------------
|
||||
// GLOBAL ROUTINES
|
||||
//+-------------------------------------------------
|
||||
|
||||
function fatal_error($message="", $help="") {
|
||||
echo("$message<br><br>$help");
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Board v1.1
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001,2002 Invision Power Services
|
||||
| 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);
|
||||
|
||||
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.1 BETA 1";
|
||||
var $lastclick = "";
|
||||
var $location = "";
|
||||
var $debug_html = "";
|
||||
|
||||
function info() {
|
||||
global $sess, $std, $DB, $root_path, $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';
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// 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();
|
||||
$ibforums->member = $sess->authorise();
|
||||
$ibforums->skin = $std->load_skin();
|
||||
$ibforums->lastclick = $sess->last_click;
|
||||
$ibforums->location = $sess->location;
|
||||
$ibforums->session_id = $sess->session_id;
|
||||
|
||||
list($ppu,$tpu) = explode( "&", $ibforums->member['view_prefs'] );
|
||||
|
||||
$ibforums->vars['display_max_topics'] = ($tpu > 0) ? $tpu : $ibforums->vars['display_max_topics'];
|
||||
$ibforums->vars['display_max_posts'] = ($ppu > 0) ? $ppu : $ibforums->vars['display_max_posts'];
|
||||
|
||||
if ($ibforums->member['id'] and ( $std->my_getcookie('hide_sess') ) )
|
||||
{
|
||||
$ibforums->session_id = "";
|
||||
}
|
||||
|
||||
$ibforums->base_url = $ibforums->vars['board_url'].'/index.'.$ibforums->vars['php_ext'].'?s='.$ibforums->session_id;
|
||||
|
||||
$ibforums->skin_rid = $ibforums->skin['set_id'];
|
||||
$ibforums->skin_id = 's'.$ibforums->skin['set_id'];
|
||||
|
||||
$ibforums->vars['img_url'] = 'style_images/' . $ibforums->skin['img_dir'];
|
||||
|
||||
//--------------------------------
|
||||
// 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'];
|
||||
}
|
||||
|
||||
require $root_path."lang/".$ibforums->lang_id."/lang_global.php";
|
||||
|
||||
$ibforums->lang = $lang;
|
||||
|
||||
unset($lang);
|
||||
|
||||
//--------------------------------
|
||||
|
||||
$skin_universal = $std->load_template('skin_global');
|
||||
|
||||
//--------------------------------
|
||||
|
||||
if ($ibforums->input['act'] != 'Login' and $ibforums->input['act'] != 'Reg' and $ibforums->input['act'] != 'Attach')
|
||||
{
|
||||
|
||||
//--------------------------------
|
||||
// Do we have permission to view
|
||||
// the board?
|
||||
//--------------------------------
|
||||
|
||||
if ($ibforums->member['g_view_board'] != 1)
|
||||
{
|
||||
$std->Error( array( 'LEVEL' => 1, 'MSG' => 'no_view_board') );
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// Is the board offline?
|
||||
//--------------------------------
|
||||
|
||||
if ($ibforums->vars['board_offline'] == 1)
|
||||
{
|
||||
if ($ibforums->member['g_access_offline'] != 1)
|
||||
{
|
||||
$std->board_offline();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// Is log in enforced?
|
||||
//--------------------------------
|
||||
|
||||
if ( (! $ibforums->member['id']) and ($ibforums->vars['force_login'] == 1) )
|
||||
{
|
||||
require $root_path."sources/Login.php";
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// Decide what to do
|
||||
//--------------------------------
|
||||
|
||||
$choice = array(
|
||||
"idx" => "Boards",
|
||||
"SF" => "Forums",
|
||||
"SR" => "Forums",
|
||||
"ST" => "Topics",
|
||||
"Login" => "Login",
|
||||
"Post" => "Post",
|
||||
"Poll" => "lib/add_poll",
|
||||
"Reg" => "Register",
|
||||
"Online" => "Online",
|
||||
"Members" => "Memberlist",
|
||||
"Help" => "Help",
|
||||
"Search" => "Search",
|
||||
"Mod" => "Moderate",
|
||||
"Print" => "misc/print_page",
|
||||
"Forward" => "misc/forward_page",
|
||||
"Mail" => "misc/contact_member",
|
||||
"Invite" => "misc/contact_member",
|
||||
"ICQ" => "misc/contact_member",
|
||||
"AOL" => "misc/contact_member",
|
||||
"YAHOO" => "misc/contact_member",
|
||||
"MSN" => "misc/contact_member",
|
||||
"report" => "misc/contact_member",
|
||||
"Msg" => "Messenger",
|
||||
"UserCP" => "Usercp",
|
||||
"Profile" => "Profile",
|
||||
"Track" => "misc/tracker",
|
||||
"Stats" => "misc/stats",
|
||||
"Attach" => "misc/attach",
|
||||
'ib3' => 'misc/ib3',
|
||||
'legends' => 'misc/legends',
|
||||
'modcp' => 'mod_cp',
|
||||
'calendar' => "calendar",
|
||||
'buddy' => "browsebuddy",
|
||||
);
|
||||
|
||||
|
||||
/***************************************************/
|
||||
|
||||
$ibforums->input['act'] = $ibforums->input['act'] == '' ? "idx" : $ibforums->input['act'];
|
||||
|
||||
// Check to make sure the array key exits..
|
||||
|
||||
if (! isset($choice[ $ibforums->input['act'] ]) )
|
||||
{
|
||||
$ibforums->input['act'] = 'idx';
|
||||
}
|
||||
|
||||
// Require and run
|
||||
|
||||
require $root_path."sources/".$choice[ $ibforums->input['act'] ].".php";
|
||||
|
||||
|
||||
|
||||
//+-------------------------------------------------
|
||||
// GLOBAL ROUTINES
|
||||
//+-------------------------------------------------
|
||||
|
||||
function fatal_error($message="", $help="") {
|
||||
echo("$message<br><br>$help");
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1 @@
|
||||
(1, 'skin_boards', '\n<!-- Board Stats -->\n <!--IBF.QUICK_LOG_IN-->\n <br>\n <table width="<{tbl_width}>" align="center" border="0" cellspacing="4" cellpadding="0">\n <tr> \n <td align=\'center\'><a href=\'{$ibforums->base_url}&act=Stats&CODE=leaders\'>{$ibforums->lang[\'sm_forum_leaders\']}</a> |\n <a href=\'{$ibforums->base_url}&act=Search&CODE=getactive\'>{$ibforums->lang[\'sm_todays_posts\']}</a> |\n <a href=\'{$ibforums->base_url}&act=Stats\'>{$ibforums->lang[\'sm_today_posters\']}</a> |\n <a href=\'{$ibforums->base_url}&act=Members&max_results=10&sort_key=posts&sort_order=desc\'>{$ibforums->lang[\'sm_all_posters\']}</a></td>\n </tr>\n </table>\n <br>\n <table cellpadding=\'2\' width=\'<{tbl_width}>\' align=\'center\' class=\'solidborder\'>\n <tr>\n <td>\n \n <table cellpadding=\'0\' cellspacing=\'0\' border=\'0\' width=\'100%\' bgcolor=\'<{tbl_border}>\' align=\'center\'>\n <tr>\n <td>\n <table cellpadding=\'4\' cellspacing=\'1\' border=\'0\' width=\'100%\'>\n <tr>\n <td class=\'titlemedium\' colspan=\'2\'>{$ibforums->lang[\'board_stats\']}</td>\n </tr>\n', 'stats_header', '', 1035406235, 0);||~&~||(1, 'skin_boards', '\n <tr>\n <td class=\'category\' colspan=\'2\'>$active[TOTAL] {$ibforums->lang[\'active_users\']}</td>\n </tr>\n <tr>\n <td width="5%" class=\'forum1\'><{F_ACTIVE}></td>\n <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>\n </tr>\n', 'ActiveUsers', '$active', 1035406235, 0);||~&~||(1, 'skin_boards', '\n <tr>\n <td class=\'category\' colspan=\'2\'>{$ibforums->lang[\'board_stats\']}</td>\n </tr>\n <tr>\n <td class=\'forum1\' width=\'5%\' valign=\'middle\'><{F_STATS}></td>\n <td class=\'forum2\' width="95%" align=\'left\'>$text<br>{$ibforums->lang[\'most_online\']}</td>\n </tr>\n', 'ShowStats', '$text', 1035406235, 0);||~&~||(1, 'skin_boards', '\n <tr>\n <td class=\'category\' colspan=\'2\'>{$ibforums->lang[\'birthday_header\']}</td>\n </tr>\n <tr>\n <td class=\'forum1\' width=\'5%\' valign=\'middle\'><{F_ACTIVE}></td>\n <td class=\'forum2\' width=\'95%\'><b>$total</b> $birth_lang<br>$birthusers</td>\n </tr>\n', 'birthdays', '$birthusers="", $total="", $birth_lang=""', 1035406235, 0);||~&~||(1, 'skin_boards', '\n <tr>\n <td class=\'category\' colspan=\'2\'>{$ibforums->lang[\'calender_f_title\']}</td>\n </tr>\n <tr>\n <td class=\'forum1\' width=\'5%\' valign=\'middle\'><{F_ACTIVE}></td>\n <td class=\'forum2\' width=\'95%\'>$events</td>\n </tr>\n', 'calendar_events', '$events = ""', 1035406235, 0);||~&~||(1, 'skin_boards', '\n </table>\n </td>\n </tr>\n </table>\n \n </td>\n </tr>\n </table>\n <!-- Board Stats -->\n', 'stats_footer', '', 1035406235, 0);||~&~||(1, 'skin_boards', '\n <br>\n <table cellspacing=\'4\' cellpadding=\'0\' width=\'70%\' border=\'0\' align=\'center\'>\n <tr>\n <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>\n </tr>\n </table>\n', 'BoardInformation', '', 1035406235, 0);||~&~||(1, 'skin_boards', '\n<table width="<{tbl_width}>" align="center" border="0" cellspacing="1" cellpadding="0" bgcolor="<{tbl_border}>">\n <tr> \n <td> \n <table width="100%" border="0" cellspacing="0" cellpadding="3" class=\'maintitle\'>\n <tr> \n <td class="maintitle"><{CAT_IMG}></td>\n <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>\n </tr>\n </table>\n </td>\n </tr>\n <tr> \n <td class=\'mainbg\'> \n <table width="100%" border="0" cellspacing="1" cellpadding="4">\n <tr> \n <td align="center" nowrap class=\'titlemedium\'><img src="{$ibforums->vars[\'img_url\']}/spacer.gif" alt="" width="28" height="1"></td>\n <td width="59%" nowrap class=\'titlemedium\'>{$ibforums->lang[\'cat_name\']}</td>\n <td align="center" width="7%" nowrap class=\'titlemedium\'>{$ibforums->lang[\'topics\']}</td>\n <td align="center" width="7%" nowrap class=\'titlemedium\'>{$ibforums->lang[\'replies\']}</td>\n <td width="27%" nowrap class=\'titlemedium\'>{$ibforums->lang[\'last_post_info\']}</td>\n </tr>\n', 'CatHeader_Expanded', '$Data', 1035406235, 0);||~&~||(1, 'sLine truncated
|
||||
@@ -1,17 +0,0 @@
|
||||
<?php
|
||||
|
||||
$lang = array (
|
||||
|
||||
send => "Send report now",
|
||||
message => "Your message",
|
||||
title => "Report a post to a moderator",
|
||||
redirect => "Report sent, returning you to the topic you came from",
|
||||
in_topic => "Topic Title",
|
||||
subject => "Mailer from Invision Board: Reporting post",
|
||||
in_forum => "Reported in forum",
|
||||
ibauto => "Invision Board Bot",
|
||||
warn => "This form is for reporting abusive behaviour (spamming, rude posts, etc) ONLY.<br>DO NOT use this form just to contact a moderator - these messages will be ignored!",
|
||||
email => "Your email",
|
||||
name => "Your name",
|
||||
);
|
||||
?>
|
||||
+356
-282
@@ -1,283 +1,357 @@
|
||||
<?php
|
||||
|
||||
$EMAIL['send_text'] = <<<EOF
|
||||
I thought you might be interested in reading this web page: <#THE LINK#>
|
||||
|
||||
From,
|
||||
|
||||
<#USER NAME#>
|
||||
|
||||
EOF;
|
||||
|
||||
$EMAIL['pm_archive'] = <<<EOF
|
||||
|
||||
<#NAME#>,
|
||||
This email has been sent from <#BOARD_ADDRESS#>.
|
||||
|
||||
Your archived messages have been compiled into a single
|
||||
file and has been attached to this message.
|
||||
|
||||
EOF;
|
||||
|
||||
$EMAIL['reg_validate'] = <<<EOF
|
||||
|
||||
<#NAME#>,
|
||||
This email has been sent from <#BOARD_ADDRESS#>.
|
||||
|
||||
You have received this email because this email address
|
||||
was used during registration for our forums.
|
||||
If you did not register at our forums, please disregard this
|
||||
email. You do not need to unsubscribe or take any further action.
|
||||
|
||||
------------------------------------------------
|
||||
ACTIVATION INSTRUCTIONS BELOW
|
||||
------------------------------------------------
|
||||
|
||||
Thank you for registering.
|
||||
We require that you "validate" your registration to ensure that
|
||||
the email address you entered was correct. This protects against
|
||||
unwanted spam and malicious abuse.
|
||||
|
||||
To activate your account, simply click on the following link:
|
||||
|
||||
<#THE_LINK#>
|
||||
|
||||
(AOL Email users may need to cut and paste the link into your web
|
||||
browser).
|
||||
|
||||
------------------------------------------------
|
||||
HELP, I GOT AN ERROR!
|
||||
------------------------------------------------
|
||||
|
||||
If you could not validate your registration by clicking on the link, please
|
||||
visit this page:
|
||||
|
||||
<#MAN_LINK#>
|
||||
|
||||
It will ask you for a user id number, and your validation key. These are shown
|
||||
below:
|
||||
|
||||
User ID: <#ID#>
|
||||
|
||||
Validation Key: <#CODE#>
|
||||
|
||||
Please cut and paste, or type those numbers into the corresponding fields in the form.
|
||||
|
||||
If you still cannot validate your account, it's possible that the account has been removed.
|
||||
If this is the case, please contact an administrator to rectify the problem.
|
||||
|
||||
Thank you for registering and enjoy your stay!
|
||||
|
||||
EOF;
|
||||
|
||||
$EMAIL['admin_newuser'] = <<<EOF
|
||||
|
||||
Hello Mr. Admin Sir!
|
||||
|
||||
You have received this email because a new user has registered!
|
||||
|
||||
<#MEMBER_NAME#> completed their registraton on <#DATE#>
|
||||
|
||||
You can turn off user notification in the Admin Control Panel
|
||||
|
||||
Have a super day!
|
||||
|
||||
EOF;
|
||||
|
||||
$EMAIL['lost_pass'] = <<<EOF
|
||||
|
||||
<#NAME#>,
|
||||
This email has been sent from <#BOARD_ADDRESS#>.
|
||||
|
||||
You have received this email because a password recovery
|
||||
was instigated.
|
||||
|
||||
IMPORTANT! IF YOU DID NOT REQUEST A PASSWORD RECOVERY DO
|
||||
NOT GO ANY FURTHER AND DELETE THIS EMAIL!
|
||||
|
||||
ONLY FOLLOW THE INSTRUCTIONS BELOW IF
|
||||
YOU WISH FOR YOUR PASSWORD TO BE RESET!
|
||||
|
||||
------------------------------------------------
|
||||
ACTIVATION INSTRUCTIONS BELOW
|
||||
------------------------------------------------
|
||||
|
||||
We require that you "validate" your password recovery to ensure that
|
||||
you instigated this action. This protects against
|
||||
unwanted spam and malicious abuse.
|
||||
|
||||
If you do not have the form show in your browser window, simply click on the following link:
|
||||
|
||||
<#MAN_LINK#>
|
||||
|
||||
(AOL Email users may need to cut and paste the link into your web
|
||||
browser).
|
||||
|
||||
It will ask you for a user id number, and your validation key. These are shown
|
||||
below:
|
||||
|
||||
User ID: <#ID#>
|
||||
|
||||
Validation Key: <#CODE#>
|
||||
|
||||
Please cut and paste, or type those numbers into the corresponding fields in the form.
|
||||
|
||||
Once the activation is complete, you will be able to log in using your new password (shown below). You can
|
||||
change this password at any time from your personal control panel.
|
||||
|
||||
------------------------------------------------
|
||||
YOUR NEW PASSWORD
|
||||
------------------------------------------------
|
||||
|
||||
Your new password is: <#PASSWORD#>
|
||||
|
||||
Keep this password safe. Remember, you will need to re-activate your account
|
||||
before you can use this password.
|
||||
|
||||
------------------------------------------------
|
||||
HELP, I GOT AN ERROR!
|
||||
------------------------------------------------
|
||||
|
||||
If you cannot re-activate your account, it's possible that the account has been removed or you
|
||||
are in the process of another activation, such as registering or changing your registered email address.
|
||||
If this is the case, then please complete the previous activation.
|
||||
If the error persists, please contact an administrator to rectify the problem.
|
||||
|
||||
|
||||
EOF;
|
||||
|
||||
$EMAIL['newemail'] = <<<EOF
|
||||
|
||||
<#NAME#>,
|
||||
This email has been sent from <#BOARD_ADDRESS#>.
|
||||
|
||||
You have received this email because you requested an
|
||||
email address change.
|
||||
|
||||
------------------------------------------------
|
||||
ACTIVATION INSTRUCTIONS BELOW
|
||||
------------------------------------------------
|
||||
|
||||
We require that you "validate" your email address change to ensure that
|
||||
you instigated this action. This protects against
|
||||
unwanted spam and malicious abuse.
|
||||
|
||||
If you do not have the form show in your browser window, simply click on the following link:
|
||||
|
||||
<#MAN_LINK#>
|
||||
|
||||
(AOL Email users may need to cut and paste the link into your web
|
||||
browser).
|
||||
|
||||
It will ask you for a user id number, and your validation key. These are shown
|
||||
below:
|
||||
|
||||
User ID: <#ID#>
|
||||
|
||||
Validation Key: <#CODE#>
|
||||
|
||||
Please cut and paste, or type those numbers into the corresponding fields in the form.
|
||||
|
||||
Once the activation is complete, you will need to log back in to update your member group
|
||||
permissions.
|
||||
|
||||
------------------------------------------------
|
||||
HELP, I GOT AN ERROR!
|
||||
------------------------------------------------
|
||||
|
||||
If you cannot re-activate your account, it's possible that the account has been removed or you
|
||||
are in the process of another activation, such as registering or changing your registered email address.
|
||||
If this is the case, then please complete the previous activation.
|
||||
If the error persists, please contact an administrator to rectify the problem.
|
||||
|
||||
|
||||
EOF;
|
||||
|
||||
$EMAIL['forward_page'] = <<<EOF
|
||||
|
||||
<#TO_NAME#>
|
||||
|
||||
|
||||
<#THE_MESSAGE#>
|
||||
|
||||
---------------------------------------------------
|
||||
Please note that IBForums has no control over the
|
||||
contents of this message.
|
||||
---------------------------------------------------
|
||||
|
||||
EOF;
|
||||
|
||||
|
||||
|
||||
$EMAIL['subs_with_post'] = <<<EOF
|
||||
<#NAME#>,
|
||||
|
||||
<#POSTER#> has just posted a reply to a topic that you have subscribed to titled "<#TITLE#>".
|
||||
|
||||
----------------------------------------------------------------------
|
||||
<#POST#>
|
||||
----------------------------------------------------------------------
|
||||
|
||||
The topic can be found here:
|
||||
<#BOARD_ADDRESS#>?act=ST&f=<#FORUM_ID#>&t=<#TOPIC_ID#>
|
||||
|
||||
|
||||
|
||||
There may be more replies to this topic, but only 1 email is sent per day for each subscribed topic. This is
|
||||
to limit the amount of mail that is sent to your inbox.
|
||||
|
||||
Unsubscribing:
|
||||
--------------
|
||||
|
||||
You can unsubscribe at any time by logging into your control panel and clicking on the "View Subscriptions" link.
|
||||
|
||||
EOF;
|
||||
|
||||
|
||||
$EMAIL['subs_no_post'] = <<<EOF
|
||||
<#NAME#>,
|
||||
|
||||
<#POSTER#> has just posted a reply to a topic that you have subscribed to titled "<#TITLE#>".
|
||||
|
||||
The topic can be found here:
|
||||
<#BOARD_ADDRESS#>?act=ST&f=<#FORUM_ID#>&t=<#TOPIC_ID#>
|
||||
|
||||
There may be more replies to this topic, but only 1 email is sent per day for each subscribed topic. This is
|
||||
to limit the amount of mail that is sent to your inbox.
|
||||
|
||||
Unsubscribing:
|
||||
--------------
|
||||
|
||||
You can unsubscribe at any time by logging into your control panel and clicking on the "View Subscriptions" link.
|
||||
|
||||
EOF;
|
||||
|
||||
|
||||
|
||||
$EMAIL['email_member'] = <<<EOF
|
||||
<#MEMBER_NAME#>,
|
||||
|
||||
<#FROM_NAME#> has sent you this email from <#BOARD_ADDRESS#>.
|
||||
|
||||
|
||||
<#MESSAGE#>
|
||||
|
||||
---------------------------------------------------
|
||||
Please note that IBForums has no control over the
|
||||
contents of this message.
|
||||
---------------------------------------------------
|
||||
|
||||
|
||||
EOF;
|
||||
|
||||
$EMAIL['complete_reg'] = <<<EOF
|
||||
|
||||
Success!
|
||||
|
||||
An administrator has accepted your registration request or email address change at <#BOARD_NAME#>. You may now log in with
|
||||
your chosen details and access your full user account at <#BOARD_ADDRESS#>
|
||||
|
||||
EOF;
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
//----- SET UP CUSTOM HEADERS AND FOOTERS HERE --//
|
||||
|
||||
$EMAIL['header'] = "";
|
||||
|
||||
$EMAIL['footer'] = <<<EOF
|
||||
|
||||
Regards,
|
||||
|
||||
The <#BOARD_NAME#> team.
|
||||
<#BOARD_ADDRESS#>
|
||||
|
||||
EOF;
|
||||
|
||||
|
||||
$EMAIL['pm_notify'] = <<<EOF
|
||||
<#NAME#>,
|
||||
|
||||
<#POSTER#> has sent you a new private message entitled "<#TITLE#>".
|
||||
|
||||
You can read this private message by following the link below:
|
||||
|
||||
<#BOARD_ADDRESS#><#LINK#>
|
||||
|
||||
|
||||
EOF;
|
||||
|
||||
|
||||
|
||||
$EMAIL['send_text'] = <<<EOF
|
||||
I thought you might be interested in reading this web page: <#THE LINK#>
|
||||
|
||||
From,
|
||||
|
||||
<#USER NAME#>
|
||||
|
||||
EOF;
|
||||
|
||||
|
||||
$EMAIL['report_post'] = <<<EOF
|
||||
|
||||
<#MOD_NAME#>,
|
||||
|
||||
You have been sent this email from <#USERNAME#> via the "Report this post to a moderator" link.
|
||||
|
||||
------------------------------------------------
|
||||
Topic: <#TOPIC#>
|
||||
------------------------------------------------
|
||||
Link to post: <#LINK_TO_POST#>
|
||||
------------------------------------------------
|
||||
Report:
|
||||
|
||||
<#REPORT#>
|
||||
|
||||
------------------------------------------------
|
||||
|
||||
EOF;
|
||||
|
||||
|
||||
|
||||
$EMAIL['pm_archive'] = <<<EOF
|
||||
|
||||
<#NAME#>,
|
||||
This email has been sent from <#BOARD_ADDRESS#>.
|
||||
|
||||
Your archived messages have been compiled into a single
|
||||
file and has been attached to this message.
|
||||
|
||||
EOF;
|
||||
|
||||
$EMAIL['reg_validate'] = <<<EOF
|
||||
|
||||
<#NAME#>,
|
||||
This email has been sent from <#BOARD_ADDRESS#>.
|
||||
|
||||
You have received this email because this email address
|
||||
was used during registration for our forums.
|
||||
If you did not register at our forums, please disregard this
|
||||
email. You do not need to unsubscribe or take any further action.
|
||||
|
||||
------------------------------------------------
|
||||
Activation Instructions
|
||||
------------------------------------------------
|
||||
|
||||
Thank you for registering.
|
||||
We require that you "validate" your registration to ensure that
|
||||
the email address you entered was correct. This protects against
|
||||
unwanted spam and malicious abuse.
|
||||
|
||||
To activate your account, simply click on the following link:
|
||||
|
||||
<#THE_LINK#>
|
||||
|
||||
(AOL Email users may need to cut and paste the link into your web
|
||||
browser).
|
||||
|
||||
------------------------------------------------
|
||||
Not working?
|
||||
------------------------------------------------
|
||||
|
||||
If you could not validate your registration by clicking on the link, please
|
||||
visit this page:
|
||||
|
||||
<#MAN_LINK#>
|
||||
|
||||
It will ask you for a user id number, and your validation key. These are shown
|
||||
below:
|
||||
|
||||
User ID: <#ID#>
|
||||
|
||||
Validation Key: <#CODE#>
|
||||
|
||||
Please cut and paste, or type those numbers into the corresponding fields in the form.
|
||||
|
||||
If you still cannot validate your account, it's possible that the account has been removed.
|
||||
If this is the case, please contact an administrator to rectify the problem.
|
||||
|
||||
Thank you for registering and enjoy your stay!
|
||||
|
||||
EOF;
|
||||
|
||||
$EMAIL['admin_newuser'] = <<<EOF
|
||||
|
||||
Hello Mr. Admin Sir!
|
||||
|
||||
You have received this email because a new user has registered!
|
||||
|
||||
<#MEMBER_NAME#> completed their registraton on <#DATE#>
|
||||
|
||||
You can turn off user notification in the Admin Control Panel
|
||||
|
||||
Have a super day!
|
||||
|
||||
EOF;
|
||||
|
||||
$EMAIL['lost_pass'] = <<<EOF
|
||||
|
||||
<#NAME#>,
|
||||
This email has been sent from <#BOARD_ADDRESS#>.
|
||||
|
||||
You have received this email because a user account password recovery
|
||||
was instigated by you on <#BOARD_NAME#>.
|
||||
|
||||
------------------------------------------------
|
||||
IMPORTANT!
|
||||
------------------------------------------------
|
||||
|
||||
If you did not request this password change, please IGNORE and DELETE this
|
||||
email immediately. Only continue if you wish your password to be reset!
|
||||
|
||||
------------------------------------------------
|
||||
Activation Instructions Below
|
||||
------------------------------------------------
|
||||
|
||||
We require that you "validate" your password recovery to ensure that
|
||||
you instigated this action. This protects against
|
||||
unwanted spam and malicious abuse.
|
||||
|
||||
If you do not have the form show in your browser window, simply click on the following link:
|
||||
|
||||
<#MAN_LINK#>
|
||||
|
||||
(AOL Email users may need to cut and paste the link into your web
|
||||
browser).
|
||||
|
||||
It will ask you for a user id number, and your validation key. These are shown
|
||||
below:
|
||||
|
||||
User ID: <#ID#>
|
||||
|
||||
Validation Key: <#CODE#>
|
||||
|
||||
Please cut and paste, or type those numbers into the corresponding fields in the form.
|
||||
|
||||
Once the activation is complete, you will be able to log in using your new password (shown below). You can
|
||||
change this password at any time from your personal control panel.
|
||||
|
||||
------------------------------------------------
|
||||
Your New Password
|
||||
------------------------------------------------
|
||||
|
||||
Your new password is: <#PASSWORD#>
|
||||
|
||||
Keep this password safe. Remember, you will need to re-activate your account
|
||||
before you can use this password.
|
||||
|
||||
------------------------------------------------
|
||||
Is this not working?
|
||||
------------------------------------------------
|
||||
|
||||
If you cannot re-activate your account, it's possible that the account has been removed or you
|
||||
are in the process of another activation, such as registering or changing your registered email address.
|
||||
If this is the case, then please complete the previous activation.
|
||||
If the error persists, please contact an administrator to rectify the problem.
|
||||
|
||||
IP address of sender: <#IP_ADDRESS#>
|
||||
|
||||
|
||||
EOF;
|
||||
|
||||
$EMAIL['newemail'] = <<<EOF
|
||||
|
||||
<#NAME#>,
|
||||
This email has been sent from <#BOARD_ADDRESS#>.
|
||||
|
||||
You have received this email because you requested an
|
||||
email address change.
|
||||
|
||||
------------------------------------------------
|
||||
ACTIVATION INSTRUCTIONS BELOW
|
||||
------------------------------------------------
|
||||
|
||||
We require that you "validate" your email address change to ensure that
|
||||
you instigated this action. This protects against
|
||||
unwanted spam and malicious abuse.
|
||||
|
||||
If you do not have the form show in your browser window, simply click on the following link:
|
||||
|
||||
<#MAN_LINK#>
|
||||
|
||||
(AOL Email users may need to cut and paste the link into your web
|
||||
browser).
|
||||
|
||||
It will ask you for a user id number, and your validation key. These are shown
|
||||
below:
|
||||
|
||||
User ID: <#ID#>
|
||||
|
||||
Validation Key: <#CODE#>
|
||||
|
||||
Please cut and paste, or type those numbers into the corresponding fields in the form.
|
||||
|
||||
Once the activation is complete, you will need to log back in to update your member group
|
||||
permissions.
|
||||
|
||||
------------------------------------------------
|
||||
HELP, I GOT AN ERROR!
|
||||
------------------------------------------------
|
||||
|
||||
If you cannot re-activate your account, it's possible that the account has been removed or you
|
||||
are in the process of another activation, such as registering or changing your registered email address.
|
||||
If this is the case, then please complete the previous activation.
|
||||
If the error persists, please contact an administrator to rectify the problem.
|
||||
|
||||
|
||||
EOF;
|
||||
|
||||
$EMAIL['forward_page'] = <<<EOF
|
||||
|
||||
<#TO_NAME#>
|
||||
|
||||
|
||||
<#THE_MESSAGE#>
|
||||
|
||||
---------------------------------------------------
|
||||
Please note that IBForums has no control over the
|
||||
contents of this message.
|
||||
---------------------------------------------------
|
||||
|
||||
EOF;
|
||||
|
||||
|
||||
|
||||
$EMAIL['subs_with_post'] = <<<EOF
|
||||
<#NAME#>,
|
||||
|
||||
<#POSTER#> has just posted a reply to a topic that you have subscribed to titled "<#TITLE#>".
|
||||
|
||||
----------------------------------------------------------------------
|
||||
<#POST#>
|
||||
----------------------------------------------------------------------
|
||||
|
||||
The topic can be found here:
|
||||
<#BOARD_ADDRESS#>?act=ST&f=<#FORUM_ID#>&t=<#TOPIC_ID#>
|
||||
|
||||
|
||||
|
||||
There may be more replies to this topic, but only 1 email is sent per board visit for each subscribed topic. This is
|
||||
to limit the amount of mail that is sent to your inbox.
|
||||
|
||||
Unsubscribing:
|
||||
--------------
|
||||
|
||||
You can unsubscribe at any time by logging into your control panel and clicking on the "View Subscriptions" link.
|
||||
|
||||
EOF;
|
||||
|
||||
|
||||
$EMAIL['subs_new_topic'] = <<<EOF
|
||||
<#NAME#>,
|
||||
|
||||
<#POSTER#> has just posted a new topic entitled "<#TITLE#>" in forum "<#FORUM#>".
|
||||
|
||||
The topic can be found here:
|
||||
<#BOARD_ADDRESS#>?act=ST&f=<#FORUM_ID#>&t=<#TOPIC_ID#>
|
||||
|
||||
Please note that if you wish to get email notification of any replies to this topic, you will have to click on the
|
||||
"Track this Topic" link shown on the topic page, or by visiting the link below:
|
||||
<#BOARD_ADDRESS#>?act=Track&f=<#FORUM_ID#>&t=<#TOPIC_ID#>
|
||||
|
||||
|
||||
Unsubscribing:
|
||||
--------------
|
||||
|
||||
You can unsubscribe at any time by logging into your control panel and clicking on the "View Subscriptions" link.
|
||||
|
||||
EOF;
|
||||
|
||||
|
||||
$EMAIL['subs_no_post'] = <<<EOF
|
||||
<#NAME#>,
|
||||
|
||||
<#POSTER#> has just posted a reply to a topic that you have subscribed to titled "<#TITLE#>".
|
||||
|
||||
The topic can be found here:
|
||||
<#BOARD_ADDRESS#>?act=ST&f=<#FORUM_ID#>&t=<#TOPIC_ID#>
|
||||
|
||||
There may be more replies to this topic, but only 1 email is sent per board visit for each subscribed topic. This is
|
||||
to limit the amount of mail that is sent to your inbox.
|
||||
|
||||
Unsubscribing:
|
||||
--------------
|
||||
|
||||
You can unsubscribe at any time by logging into your control panel and clicking on the "View Subscriptions" link.
|
||||
|
||||
EOF;
|
||||
|
||||
|
||||
|
||||
$EMAIL['email_member'] = <<<EOF
|
||||
<#MEMBER_NAME#>,
|
||||
|
||||
<#FROM_NAME#> has sent you this email from <#BOARD_ADDRESS#>.
|
||||
|
||||
|
||||
<#MESSAGE#>
|
||||
|
||||
---------------------------------------------------
|
||||
Please note that IBForums has no control over the
|
||||
contents of this message.
|
||||
---------------------------------------------------
|
||||
|
||||
|
||||
EOF;
|
||||
|
||||
$EMAIL['complete_reg'] = <<<EOF
|
||||
|
||||
Success!
|
||||
|
||||
An administrator has accepted your registration request or email address change at <#BOARD_NAME#>. You may now log in with
|
||||
your chosen details and access your full user account at <#BOARD_ADDRESS#>
|
||||
|
||||
EOF;
|
||||
|
||||
|
||||
?>
|
||||
@@ -2,11 +2,19 @@
|
||||
|
||||
$lang = array (
|
||||
|
||||
'qli_title' => "Quick Log In",
|
||||
'qli_name' => "User Name",
|
||||
'qli_go' => "Go",
|
||||
|
||||
by => "By",
|
||||
|
||||
'calender_f_title' => "Forthcoming Calendar Events within the next %s days",
|
||||
|
||||
'no_calendar_events' => "There are no forthcoming calendar events",
|
||||
|
||||
'newslink' => "latest news: ",
|
||||
|
||||
'welcome_back_text' => "Welcome back, your last visit was on",
|
||||
'welcome_back_text' => "Welcome back; your last visit was on",
|
||||
|
||||
'sm_today_posters' => "Today's top 10 posters",
|
||||
'sm_all_posters' => "Overall top 10 posters",
|
||||
@@ -19,7 +27,7 @@ total_forums => "Total Forums:",
|
||||
public_forums => "Public Forums",
|
||||
public_members => "members",
|
||||
|
||||
'total_word_string' => "Our members have made a total of <b><#posts#></b> posts<br>We have <b><#reg#></b> registered members<br>The newest member is <b><#mem#></b>",
|
||||
'total_word_string' => "Our members have made a total of <b><#posts#></b> posts<br>We have <b><#reg#></b> registered members<br>The newest member is <b><a href='<#link#>'><#mem#></a></b>",
|
||||
|
||||
|
||||
'birthday_header' => "Today's Birthdays",
|
||||
@@ -57,7 +65,7 @@ forum_icons => "Forum Icons",
|
||||
|
||||
|
||||
info => "Information",
|
||||
active_users => "user(s) active in the past 15 minutes",
|
||||
active_users => "user(s) active in the past %s minutes",
|
||||
|
||||
f_none => "----",
|
||||
most_online => "Most users ever online was <b><#NUM#></b> on <b><#DATE#></b>",
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
$lang = array (
|
||||
|
||||
'page_title' => "My Assistant",
|
||||
'log_in_needed' => "Log in required",
|
||||
'no_guests' => "This feature is for registered members only.<br><br>If you are a registered member, please log in.",
|
||||
'log_in' => "Log In",
|
||||
'lin_name' => "Username",
|
||||
'lin_pass' => "PassWord",
|
||||
|
||||
'reg_text' => "If you are not a registered member you will need to register an account before you can use this feature.",
|
||||
|
||||
|
||||
'reg_link' => "Register a new account",
|
||||
|
||||
'close_win' => "Close Window",
|
||||
'refresh' => "Refresh",
|
||||
|
||||
'show_me' => "Show me...",
|
||||
|
||||
'sm_today_posters' => "Today's top 10 posters",
|
||||
'sm_all_posters' => "Overall top 10 posters",
|
||||
'sm_forum_leaders' => "The moderating team",
|
||||
'sm_todays_posts' => "Today's active topics",
|
||||
'sm_my_last_posts' => "My last 10 posts",
|
||||
|
||||
'while_away' => "Since your last visit...",
|
||||
'no_new_posts' => "There have been no new posts",
|
||||
|
||||
'new_posts' => "There are %s new posts.",
|
||||
'view_link' => "View",
|
||||
'my_replies' => "%s of these posts are replies to topics you started.",
|
||||
'none' => "none",
|
||||
'search_forums' => "Search posts for...",
|
||||
'search_help' => "Search help for...",
|
||||
'go' => "Go!",
|
||||
|
||||
|
||||
|
||||
);
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
$lang = array (
|
||||
|
||||
'page_title' => 'Calendar',
|
||||
'table_title' => 'Forums Event Calendar',
|
||||
|
||||
'form_submit_show' => "Show",
|
||||
|
||||
'entry_birthdays' => "%s Birthday(s)",
|
||||
|
||||
'post_new_event' => "Post New Event",
|
||||
|
||||
'new_event_redirect' => "your calendar event has been posted",
|
||||
|
||||
'cal_title_events' => "Calendar Events",
|
||||
|
||||
'cal_birthdays' => "Birthdays",
|
||||
|
||||
'back' => "Back",
|
||||
|
||||
'private_event' => "Private Event",
|
||||
'public_event' => "Public Event",
|
||||
'restricted_event' => "Restricted Event",
|
||||
|
||||
'joined' => "Joined:",
|
||||
'posts' => "Posts:",
|
||||
'group' => "Group:",
|
||||
|
||||
'edit_event' => "Edit Event:",
|
||||
|
||||
'edit_event_redirect' => "the calendar event has been edited",
|
||||
'delete_event_redirect' => "the calendar event has been <b>deleted</b>",
|
||||
|
||||
'event_date' => "Event Date:",
|
||||
|
||||
);
|
||||
?>
|
||||
@@ -2,6 +2,26 @@
|
||||
|
||||
$lang = array (
|
||||
|
||||
'msn_send_msg' => "Send this member an MSN Message",
|
||||
'msn_add_contact' => "Add this member to your MSN buddy list",
|
||||
|
||||
'msn_name' => "Members MSN Name",
|
||||
|
||||
|
||||
'yahoo_send_msg' => "Send this member a Yahoo! Message",
|
||||
'yahoo_view_profile' => "View this members Yahoo! Profile",
|
||||
'yahoo_status' => "Yahoo! Online Status",
|
||||
'yahoo_name' => "Members Yahoo! Name",
|
||||
|
||||
'report_title' => "Report this post to a moderator",
|
||||
'report_submit' => "Submit Report",
|
||||
'report_message' => "<b>Enter your report</b><br><br>Please note: The moderator will be made aware of the link to the post and the topic title.<br><br>This form is to be used ONLY for reporting objectional content, etc and is not to be used as a method of communicating with moderators for other reasons.",
|
||||
'report_topic' => "Topic Title",
|
||||
|
||||
|
||||
'report_subject' => "Reported Post from",
|
||||
|
||||
'report_redirect' => "the report has been submitted, returning you to the topic",
|
||||
|
||||
|
||||
message => "Message",
|
||||
|
||||
@@ -2,6 +2,37 @@
|
||||
|
||||
$lang = array (
|
||||
|
||||
|
||||
'me_no_forum' => "You don't appear to have any forums to moderate.",
|
||||
|
||||
|
||||
'search_word_short' => "One or all of your search keywords were below <#EXTRA#> characters, please go back and increase the length of these search keywords.",
|
||||
|
||||
'no_name_search_results' => "The member name you chose to filter by cannot be found, please go back and try again.",
|
||||
|
||||
|
||||
'split_not_enough' => "You must choose at least one post to split!",
|
||||
|
||||
'mt_no_topic' => "We could not find a topic in the database that matches the URL you entered, please try again and double check the information entered",
|
||||
'mt_same_topic' => "You cannot merge the same topic, that's just silly",
|
||||
|
||||
'forum_no_post_allowed' => "You cannot move topics into this forum as it does not allow posts to be made",
|
||||
|
||||
|
||||
'no_msn' => "This member does not have a valid MSN Messenger Name.",
|
||||
'no_yahoo' => "This member does not have a valid Yahoo! Messenger Name",
|
||||
|
||||
'cf_to_long' => "You entered too much data for the field '<#EXTRA#>', please go back and check the input",
|
||||
|
||||
|
||||
'search_flood' => "Sorry, the board administrator has enabled search flood control. Please wait at least <#EXTRA#> seconds before trying again.",
|
||||
|
||||
'cal_no_events' => "There are no birthdays or events for that date, please go back and try again.",
|
||||
'cal_date_oor' => "The date you have chosen for that event is not a legal date (You may have chosen 30th February for example). Please go back and check your input and try again.",
|
||||
|
||||
'cal_title_none' => "You must enter an event title that is longer than 2 characters",
|
||||
'cal_title_long' => "The event title you entered was too long, please limit it to under 64 characters",
|
||||
|
||||
'search_off' => "Sorry, the administrator has taken the search engine offline for the moment. Please try again later",
|
||||
'reg_off' => "The board administrator is no longer accepting any new registrations at the moment.",
|
||||
|
||||
@@ -116,7 +147,7 @@ log_in_now => "Log in Now!",
|
||||
no_subject => "You did not enter a subject for the email",
|
||||
pass_too_long => "The password entered was too long",
|
||||
username_short => "The username you entered was too short",
|
||||
already_sub => "You are already subscribed to this topic",
|
||||
already_sub => "You are already subscribed to this topic or forum.",
|
||||
forgot_pass => "Forgotten your password?",
|
||||
no_older => "There are no topics older than this one",
|
||||
stf_no_name => "You must enter the name of the person you are sending this page to",
|
||||
@@ -180,7 +211,7 @@ user_agent_no_match => "You are using a different computer than the one you
|
||||
poll_add_vote => "Vote!",
|
||||
you_are_banned => "Sorry, you are not permitted to use this board",
|
||||
incorrect_use => "Incorrect use of one of the IBForums files",
|
||||
no_search_results => "Sorry, but we did not find any matches",
|
||||
no_search_results => "Sorry, but we did not find any matches. Try again and broaden your search criteria.",
|
||||
request_error => "An error occured, not all of the required fields were sent from the validation link. Please ensure that they whole link was entered, it's possible that your email clients auto-wrapper cut the link in half. Please try again.",
|
||||
not_yahoo_name => "That is not a valid YAHOO name",
|
||||
stf_invalid_email => "The email address you entered was of an incorrect format",
|
||||
|
||||
@@ -2,6 +2,16 @@
|
||||
|
||||
$lang = array (
|
||||
|
||||
'pinned_start' => "Important Topics",
|
||||
'regular_topics' => "Forum Topics",
|
||||
|
||||
'ft_title' => "Subscribe to this forum",
|
||||
|
||||
'active_users_detail' => "%s Guests and %s Anonymous Users",
|
||||
'active_users_title' => "%s User(s) are browsing this forum",
|
||||
'active_users_members' => "%s Members:",
|
||||
|
||||
|
||||
'enter_keywords' => "Enter Keywords",
|
||||
'search_forum' => "Search this forum:",
|
||||
'search_go' => "Go",
|
||||
@@ -20,7 +30,7 @@ pm_hot_new => "Hot Topic (new replies)",
|
||||
show_25_days => "the last 25 days",
|
||||
mark_as_read => "Mark this forum as read",
|
||||
show_20_days => "the last 20 days",
|
||||
mod_cp => "Moderators Control Panel",
|
||||
|
||||
sort_by_date => "last post date",
|
||||
sort_by_last_poster => "last poster",
|
||||
pm_open_no => "Open Topic (no new replies)",
|
||||
|
||||
@@ -2,10 +2,29 @@
|
||||
|
||||
$lang = array (
|
||||
|
||||
|
||||
'mod_cp' => "Mod CP",
|
||||
|
||||
'tb_help' => "Help",
|
||||
'tb_search' => "Search",
|
||||
'tb_mlist' => "Members",
|
||||
'tb_calendar' => "Calendar",
|
||||
|
||||
'gzip_on' => "GZIP Enabled",
|
||||
'gzip_off' => "GZIP Disabled",
|
||||
|
||||
'l_qb' => 'My Assistant',
|
||||
'view_new_posts' => "View New Posts",
|
||||
|
||||
'your_cp' => "My Controls",
|
||||
|
||||
|
||||
'bb_tool_tip' => "View posts since your last visit, moderator lists and more...",
|
||||
'cp_tool_tip' => "Edit my settings, such as signature, avatar and more...",
|
||||
|
||||
|
||||
'find_user_names' => "Search for user names",
|
||||
'opens_new_window' => "( opens in new window )",
|
||||
|
||||
|
||||
'warn_offline' => "(OFFLINE)",
|
||||
@@ -54,33 +73,38 @@ offline_title => "IBForums Offline Mode",
|
||||
you_last_visit => "You last visited on:",
|
||||
code_sample => "Code Sample",
|
||||
transfer_you => "Please wait while we transfer you...",
|
||||
M_1 => "Jan.",
|
||||
M_2 => "Feb.",
|
||||
admin_login => "Administrators Log in",
|
||||
M_3 => "Mar.",
|
||||
D_0 => "Sun",
|
||||
new_posts => "New Posts",
|
||||
M_4 => "April",
|
||||
D_1 => "Mon",
|
||||
M_5 => "May",
|
||||
D_2 => "Tue",
|
||||
M_6 => "June",
|
||||
admin_login => "Administrators Log in",
|
||||
you_running_time => "Your last action was on:",
|
||||
D_3 => "Wed",
|
||||
M_7 => "July",
|
||||
admin_cp => "Admin CP",
|
||||
D_4 => "Thur",
|
||||
M_8 => "Aug.",
|
||||
D_5 => "Fri",
|
||||
M_9 => "Sep.",
|
||||
your_cp => "Your Control Panel",
|
||||
D_6 => "Sat",
|
||||
|
||||
M_1 => "January",
|
||||
M_2 => "February",
|
||||
M_3 => "March",
|
||||
M_4 => "April",
|
||||
M_5 => "May",
|
||||
M_6 => "June",
|
||||
M_7 => "July",
|
||||
M_8 => "August",
|
||||
M_9 => "September",
|
||||
M_10 => "October",
|
||||
M_11 => "November",
|
||||
M_12 => "December",
|
||||
|
||||
D_0 => "Sunday",
|
||||
D_1 => "Monday",
|
||||
D_2 => "Tuesday",
|
||||
D_3 => "Wednesday",
|
||||
D_4 => "Thursday",
|
||||
D_5 => "Friday",
|
||||
D_6 => "Saturday",
|
||||
|
||||
|
||||
|
||||
name => "Name",
|
||||
register => "Register",
|
||||
'logged_in_as' => "Logged in as: ",
|
||||
M_10 => "Oct.",
|
||||
M_11 => "Nov.",
|
||||
M_12 => "Dec.",
|
||||
|
||||
msg_new => "%s new messages",
|
||||
offline => "Sorry, the boards are offline at the moment",
|
||||
log_out => "Log Out",
|
||||
|
||||
@@ -6,5 +6,20 @@ $lang = array (
|
||||
'emo_type' => "Code",
|
||||
'emo_img' => "Image",
|
||||
|
||||
'fu_title' => "Find User Names",
|
||||
'fu_close_win' => "Close Window",
|
||||
'fu_enter_name' => "Enter part or all of the name",
|
||||
'fu_search_but' => "Search",
|
||||
|
||||
'fu_error' => "Error",
|
||||
|
||||
'fu_no_data' => "You must enter all or part of a name to search by",
|
||||
'fu_no_match' => "We found no matches using your search criteria",
|
||||
'fu_kc_loads' => "We found over 100 matches, please try and enter more of the username",
|
||||
'fu_back' => "Back",
|
||||
'fu_add_mem' => "Insert member into form",
|
||||
'fu_add_desc' => "Please select a name from the drop down box and click on the button to add the name into the form that opened this window",
|
||||
|
||||
|
||||
);
|
||||
?>
|
||||
@@ -2,6 +2,11 @@
|
||||
|
||||
$lang = array (
|
||||
|
||||
'logged_in' => "You are logged in, returning you to the board index",
|
||||
'reg_log_in' => "You are now registered and logged in, returning you to the board index",
|
||||
'not_logged_in' => "You are not logged in, taking you to the log in form",
|
||||
'reg_not_log_in' => "You are now registered, taking you to the log in form",
|
||||
|
||||
|
||||
login_text => "You must already have registered for an account before you can log in.<br>If you do not have an account, you may register by clicking the 'register' link near the top of the screen",
|
||||
|
||||
|
||||
@@ -2,6 +2,11 @@
|
||||
|
||||
$lang = array (
|
||||
|
||||
'ch_begins' => "Name begins with",
|
||||
'ch_contains' => "Name contains",
|
||||
'ch_all' => "Search All Available",
|
||||
'qs_go' => "Go!",
|
||||
|
||||
member_group => "Group",
|
||||
member_aol => "AOL",
|
||||
sort_by_name => "Member Name",
|
||||
|
||||
@@ -2,6 +2,48 @@
|
||||
|
||||
$lang = array (
|
||||
|
||||
'st_top' => "Split Topic",
|
||||
'st_explain' => "Splitting a topic allows you to select posts to be moved into a new topic. Please specify the title and description for the new topic and its destination forum before continuing.<br><b>Note</b> Long posts are reverted back to code tags and shortened to prevent long pages",
|
||||
'st_forum' => "Forum for new topic",
|
||||
'st_submit' => "Split the selected posts",
|
||||
'st_post' => "Post Review",
|
||||
'st_split' => "Move this post",
|
||||
'st_top_bit' => "Posted by <b>%s</b> on <b>%s</b>",
|
||||
'st_redirect' => "The topic has been split, returning you to the original forum",
|
||||
|
||||
'th_title' => "Topic History Report",
|
||||
'th_topic' => "Topic Title",
|
||||
'th_desc' => "Topic Description",
|
||||
'th_start_date' => "Topic Started on",
|
||||
'th_start_name' => "Topic Started by",
|
||||
'th_last_date' => "Last Post on",
|
||||
'th_last_name' => "Last Post by",
|
||||
'th_avg_post' => "Average Posts per day",
|
||||
|
||||
'ml_title' => "Moderator Log Entries",
|
||||
'ml_name' => "Member Name",
|
||||
'ml_desc' => "Description",
|
||||
'ml_date' => "Date",
|
||||
'ml_none' => "There are no entries for this topic",
|
||||
|
||||
|
||||
|
||||
'mt_top' => "Merge Topic",
|
||||
'mt_explain' => "Merging topics allows you to 'move' all the posts from another topic into this one. The new topic will be sorted in chronological order, ensure this is the desired effect before continuing. Polls and poll voter information will not be merged.",
|
||||
'mt_new_title' => "Topic Title",
|
||||
'mt_new_desc' => "Topic Description",
|
||||
'mt_tid' => "<b>Enter in the URL of the topic that you wish to merge with this one.</b><br>(Tip: You can simply copy the URL from your browser address bar when viewing the topic and paste it here)",
|
||||
'mt_submit' => "Merge Topics",
|
||||
'mt_redirect' => "The topics have been merged, returning you to the newly merged topic",
|
||||
|
||||
|
||||
|
||||
'ts_title' => 'Topic Subscriptions',
|
||||
'ts_count' => 'There are %s members subscribed to this topic, do you wish to unsubscribe them all?',
|
||||
'ts_submit' => "Unsubscribe all members",
|
||||
'ts_none' => "There are no members subscribed to this topic. You can still unsubscribe all members, but it won't make any difference",
|
||||
'ts_redirect' => "all members have been unsubscribed from this topic",
|
||||
|
||||
'cp_redirect_mod_topics' => "Topics/Posts have been approved or deleted - redirecting back to check for more...",
|
||||
|
||||
'cp_prune' => "Manage Topics in forum: ",
|
||||
|
||||
@@ -0,0 +1,181 @@
|
||||
<?php
|
||||
|
||||
$lang = array (
|
||||
|
||||
'cp_error_move' => "Please ensure that the source and destination forums exist, are able to accept topics (not sub forums only), you have permission to move them into that forum and that the source forum isn't the same as the destination forum",
|
||||
|
||||
'cp_tmove_start' => "Moving topics from forum:",
|
||||
'cp_tmove_to' => "Select a destination forum",
|
||||
'cp_tmove_end' => "Move selected topics",
|
||||
|
||||
'cp_js_delete' => "Are you sure you wish to delete these topics?",
|
||||
|
||||
'cp_redirect_topics' => "Topics updated, returning to the topic list",
|
||||
|
||||
'cp_err_no_topics' => "Please ensure that you check at least one box before continuing",
|
||||
|
||||
'new_show_forum' => "Show normal forum view in new window",
|
||||
|
||||
'fv_no_topics' => "There are no topics to display or this forum is unable to receive new topics",
|
||||
|
||||
'cp_redirect_mod_topics' => "Topics/Posts have been approved or deleted - redirecting back to check for more...",
|
||||
|
||||
'cp_prune' => "Manage Topics in forum: ",
|
||||
'cp_prune_days' => "<b>(Re)move topics with no new posts over [x] days.</b><br>(x = value entered)",
|
||||
'cp_prune_type' => "<b>(Re)move which type of topic?</b>",
|
||||
'cp_pday_open' => "Open Topics only",
|
||||
'cp_pday_closed' => "Locked Topics only",
|
||||
'cp_pday_link' => "Move linked Topics only",
|
||||
'cp_pday_all' => "Any type of topic",
|
||||
'cp_prune_replies' => "<b>..with less than [x] replies</b><br>(Leave this blank to remove topics regardless of replies)",
|
||||
'cp_prune_member' => "<b>...started by member</b><br>(Leave blank to (re)move regardless of topic starter)",
|
||||
'cp_prune_sub1' => "Check Form Submission",
|
||||
'cp_prune_sub2' => "Prune this forum!",
|
||||
'cp_action' => "<b>Prune Action</b>",
|
||||
'cp_ac_prune' => "PRUNE ONLY, DON'T MOVE",
|
||||
'cp_prune_text' => "You may remove topics or move topics to another forum based on your criteria. To move topics, choose a destination forum from the drop down menu. To simply remove the topics, choose 'PRUNE ONLY' from the forums drop down menu. Moving topics will not leave moved links in the source forum",
|
||||
'cp_pages' => "Page: ",
|
||||
'cp_error_no_mem' => "We could not locate a member by that name, please try again",
|
||||
'cp_error_no_topics' => "There are no topics left in the moderation queue in this forum.",
|
||||
'cp_total_topics' => "Total topics in this forum",
|
||||
'cp_total_match' => "Total topics to (re)move",
|
||||
'cp_check_result' => "Form Check Results",
|
||||
'cp_check_text' => "Continue only if satisfied with the results, clicking the link below WILL carry out the action. If you need to make any changes, please adjust the form below and re-check the submission.",
|
||||
'cp_mod_topics_title2' => "Moderating New Topics in: ",
|
||||
'cp_mod_posts_title2' => "Moderating New Posts in: ",
|
||||
'cp_prune_domove' => "Move the topics!",
|
||||
'cp_prune_dorem' => "Remove the topics!",
|
||||
'cp_same_forum' => "You cannot move into the same forum",
|
||||
'cp_no_forum' => "That is not a valid destination forum",
|
||||
'cp_3_title' => "Topic Title",
|
||||
'cp_3_replies' => "Queued Replies",
|
||||
'cp_3_approveall' => "Approve All",
|
||||
'cp_3_viewall' => "Manage Queued",
|
||||
'cp_3_postno' => "Post #",
|
||||
|
||||
'cp_err_no_f' => "No forum was chosen or the forum chosen does not exist, please go back and try again",
|
||||
'cp_err_no_p' => "You do not have permission to view the topics in this forum",
|
||||
|
||||
'cp_error_no_subforum' => "You cannot choose a sub category as a destination forum",
|
||||
|
||||
'cp_1_approve' => "Approve",
|
||||
'cp_1_remove' => "Delete",
|
||||
'cp_1_leave' => "Leave",
|
||||
'cp_1_selected' => "selected posts",
|
||||
'cp_1_go' => "Manage these posts",
|
||||
|
||||
'cp_results' => "Result",
|
||||
'cp_result_move' => "Number of topics moved: ",
|
||||
'cp_result_del' => "Number of topics deleted: ",
|
||||
|
||||
'cp_edit_user' => "Edit a users profile",
|
||||
'cp_find_user' => "Enter part, or all of the username you wish to edit",
|
||||
'cp_find_submit' => "Find user",
|
||||
'cp_find_2_user' => "Please select a member from the matches",
|
||||
'cp_find_2_submit' => "Edit users profile",
|
||||
'cp_no_matches' => "There was no data returned from your search input, please try again",
|
||||
'cp_admin_user' => "You cannot edit an administrators profile from this control panel",
|
||||
'cp_no_perms' => "You do not have permission for this action.",
|
||||
|
||||
'cp_remove_av' => "Remove users avatar?",
|
||||
'cp_edit_website' => "Website",
|
||||
'cp_edit_location' => "Location",
|
||||
'cp_edit_signature' => "Signature",
|
||||
'cp_edit_interests' => "Interests",
|
||||
|
||||
|
||||
|
||||
'cp_mod_in' => "Current Forum",
|
||||
'cp_topics_wait' => "Topics Pending Moderation",
|
||||
'cp_posts_wait' => "Posts Pending Moderation",
|
||||
|
||||
'cp_modcp_ptitle' => "Moderators Control Panel",
|
||||
|
||||
'cp_modcp_home' => "Moderators CP Home",
|
||||
|
||||
'cp_error' => "Control Panel Message",
|
||||
'cp_welcome' => "Welcome!",
|
||||
'cp_welcome_text' => "Welcome to your moderators control panel.<br>From here you will be able to process moderated topics and posts, mass move topics and prune posts. Simply choose an option from the left menu bar to proceed.",
|
||||
|
||||
|
||||
'cp_mod_topics' => "Moderate New Topic Queue",
|
||||
'cp_mod_posts' => "Moderate New Post Queue",
|
||||
|
||||
'cpt_close' => "Close Topics",
|
||||
'cpt_open' => "Open Topics",
|
||||
'cpt_pin' => "Pin Topics",
|
||||
'cpt_unpin' => "Unpin Topics",
|
||||
'cpt_move' => "Move Topics",
|
||||
'cpt_delete' => "Delete Topics",
|
||||
|
||||
|
||||
'cp_prune_posts' => "Mass Move /Prune Topics",
|
||||
|
||||
|
||||
'cp_user_edit' => "Edit Users Profile",
|
||||
|
||||
'title_manage_forums' => "Manage Your Forums",
|
||||
|
||||
'f_q_posts' => "Queued Posts",
|
||||
'f_q_topics' => "Queued Topics",
|
||||
'f_select' => "Select",
|
||||
|
||||
'f_w_selected' => "With selected forum:",
|
||||
't_w_selected' => "With selected topics:",
|
||||
'f_go' => "Go!",
|
||||
|
||||
'menu_forums' => "Manage Your Forums",
|
||||
'menu_users' => "Manage Members",
|
||||
'menu_ip' => "IP Address Tools",
|
||||
|
||||
'mod_opts' => "Moderation Options",
|
||||
|
||||
'ip_desc_text' => "<b>The following options are available to you</b><br><br><b><u>Resolve</u> IP Address</b>: This option will allow you to look up an IP address for more information (note, you must enter all 4 parts of the IP address to use this tool)<br><b><u>Find Posts</u> with this IP</b>: This option will run a search for all posts associated with this IP address<br><b><u>Find members</u> who registered with this IP</b>: This tool will run a seach for all members who registered with the entered IP address",
|
||||
'ip_warn_text' => "<b>Please Note</b>: You may enter a wildcard '*' (without quotes) as the last part of the IP address.<br>For example, 127.*.*.* will match all IP address that start with 127.<br>127.1.0.* will match all IP addresses that start with 127.1.0.<br>An error will occur if you attempt to use a wildcard in the middle of the IP address. For example, 127.*.0.1 will return an error.",
|
||||
'ip_enter' => "<b>Enter the IP address</b><br>(Hint, hitting tab in most browsers will take you to the next box)",
|
||||
'ip_submit' => "Run Tool",
|
||||
|
||||
'ip_resolve' => "Resolve",
|
||||
'ip_posts' => "Find Posts",
|
||||
'ip_members' => "Find Members",
|
||||
|
||||
'cp_error_ip' => "Please ensure that at least the first two IP address fields are completed and that the wildcard '*' is not in the middle of the IP address",
|
||||
'cp_error_resolveip' => "You must enter the complete IP address to use this tool",
|
||||
'ip_resolve_result' => "The host name for %s is <b>%s</b><br><br>Try visiting <a href='http://www.nic.com/cgi-bin/whois.cgi' target='_blank'>nic.com</a> to get more information by running this match via WHOIS.",
|
||||
|
||||
'cp_safe_fail' => "This operation failed or no data was returned. If you are running PHP in safe mode, you may not be able to use all the tools provided",
|
||||
|
||||
'cp_no_matches' => "No matching results were found, please go back and review the search criteria",
|
||||
|
||||
'ipm_title' => "IP Address Member Search Results",
|
||||
'ipm_name' => "Name",
|
||||
'ipm_ip' => "IP Address",
|
||||
'ipm_posts' => "Posts",
|
||||
'ipm_reg' => "Date Registered",
|
||||
'ipm_options' => "Options",
|
||||
|
||||
'ipm_edit' => "Edit Member",
|
||||
'ipm_view' => "View Profile",
|
||||
|
||||
'ipp_found' => "Your search returned the following number of matching posts:",
|
||||
'ipp_click' => "Click here to view the results in a new window",
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
'leave_link' => "Leave a link to the new topic in the source forum?",
|
||||
|
||||
'yes' => "Yes",
|
||||
'no' => "No",
|
||||
|
||||
'move_exp' => "Please select the destination forum and method of moving",
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
);
|
||||
?>
|
||||
@@ -2,12 +2,63 @@
|
||||
|
||||
$lang = array (
|
||||
|
||||
'pm_email_subject' => "New Private Message",
|
||||
|
||||
'tk_read_messages' => "Read Messages",
|
||||
'tk_read_desc' => "The messages shown here have been read by the person they were sent to.",
|
||||
'tk_read_date' => "Date Read",
|
||||
'tk_unread_date' => "Date Sent",
|
||||
'tk_untrack_button' => "End tracking with",
|
||||
|
||||
'tk_unread_messages' => "Unread Messages",
|
||||
'tk_unread_desc' => "The messages shown here have not been read by the person they were sent to. You may delete them before they are read.",
|
||||
|
||||
'add_to_book' => "Add to Buddies",
|
||||
'vm_delete_pm' => "Delete PM",
|
||||
'vm_forward_pm' => "Forward PM",
|
||||
'vm_track_msg' => "Track this message?",
|
||||
|
||||
'vm_forward_text' => "Message Forwarded From %s",
|
||||
|
||||
'inbox_no_msg' => "No messages found",
|
||||
|
||||
'pm_reply_link' => "Reply",
|
||||
|
||||
|
||||
'pmpc_full_string' => "Your folders are <#PERCENT#>% full",
|
||||
'pmpc_info_string' => "You have %s messages out of %s maximum storable messages",
|
||||
'pmpc_unlimited' => "an unlimited amount of",
|
||||
|
||||
'pmpc_mark_read' => "Select read messages",
|
||||
'pmpc_unmark_all' => "Unselect all",
|
||||
|
||||
'pme_title' => "ERROR",
|
||||
'pme_none_sent' => "This private message has not been sent",
|
||||
'pms_send_later' => "Save (Send later)",
|
||||
'pms_redirect' => "this message has been stored for later completion and has not been sent",
|
||||
|
||||
'pms_saved_title' => "Saved Unsent Messages",
|
||||
'pms_message_to' => "Message For",
|
||||
'pms_cc_users' => "CC Users?",
|
||||
'pms_saved_date' => "Saved Date",
|
||||
|
||||
'pme_no_cc_user' => "We could not find any matches for the member names you entered into the carbon copy box, please check the input before resubmitting",
|
||||
'pme_too_many' => "You are not permitted to carbon copy this message to that many people, please reduce the list and try again",
|
||||
|
||||
'pme_failed_nopm' => "Private Message to %s will fail because %s is not allowed to use the messanger",
|
||||
'pme_failed_maxed' => "Private Message to %s will fail because %s has reached the maximum allowed stored messages",
|
||||
'pme_failed_nomem' => "Private Message to %s will fail because %s does not exist!",
|
||||
'pme_failed_block' => "Private Message to %s will fail because %s has blocked incoming messages",
|
||||
|
||||
|
||||
'pm_preview' => "Preview",
|
||||
|
||||
'pm_pre_button' => "Preview Message",
|
||||
|
||||
'pmp_title' => "You have a new private message!",
|
||||
|
||||
'pmp_get_last' => "Read this message in this window",
|
||||
|
||||
'pmp_string' => "Your newest message is from <b><#NAME#></b>, entitled <b>'<#TITLE#>'</b><br>This was sent on <b><#DATE#></b>",
|
||||
|
||||
'pmp_go_inbox' => "Take me to my inbox",
|
||||
@@ -16,6 +67,9 @@ $lang = array (
|
||||
|
||||
'pmp_thiswindow' => "Open in this window",
|
||||
|
||||
'carbon_copy_title' => "Carbon copy to other members",
|
||||
'carbon_copy_desc' => "<b>You may enter up to %s names in the carbon copy box</b>.<br><br>One line per name.",
|
||||
|
||||
|
||||
'forum_jump' => "Forum Jump",
|
||||
|
||||
@@ -58,7 +112,7 @@ message_date => "Date",
|
||||
enter_a_name => "Members name",
|
||||
to_whom => "Recipients Name",
|
||||
prefs => "Preferences",
|
||||
read_rec_notify => "Get notified when this message is read",
|
||||
|
||||
prefs_help => "You may set up your messenger preferences from here.",
|
||||
auto_sent_add => "Add a copy of this message to my sent items folder",
|
||||
sort_by => "Sort Messages by",
|
||||
@@ -74,7 +128,7 @@ member_name => "Member Name",
|
||||
viewing_message => "Viewing Message:",
|
||||
submit_send => "Send Message",
|
||||
delete => "Delete",
|
||||
add_to_book => "Add to contacts",
|
||||
|
||||
send_header => " you can choose from the list of stored names from your address book, or enter the name of the member you wish to message",
|
||||
yes => "Yes",
|
||||
goto_folder => "Jump to folder",
|
||||
@@ -101,13 +155,12 @@ address_title => "Your Address Book",
|
||||
no_msg_chosen => "You did not select any messages. You select them by clicking on the checkbox on the far right of each entry",
|
||||
from_name => "Member",
|
||||
new_message => "New Message Status",
|
||||
inbox_no_msg => "This folder is currently empty",
|
||||
|
||||
address_current => "Members already in your list",
|
||||
your_options => "Your Options",
|
||||
send_title => "Send a new message",
|
||||
posted => "Posted",
|
||||
msg_title => "<b>Message Title</b>",
|
||||
quick_help => "A brief overview of you messenger",
|
||||
submit_address => "Add this member to my address book",
|
||||
icon_read => "Read messages",
|
||||
cannot_remove => "Cannot Remove",
|
||||
@@ -130,13 +183,11 @@ edit => "Edit",
|
||||
enter_block => "Options",
|
||||
prefs_text_b => "You may add extra directories. You do not have to use all the input boxes.",
|
||||
icon_unread => "Unread messages",
|
||||
sort_submit => "Sort Messages!",
|
||||
splash => "Summary",
|
||||
current_sort => "Messages are currently sorted by: ",
|
||||
member_edit => "You may edit this address book entry.",
|
||||
contact => "Address Book",
|
||||
message_options => "Options",
|
||||
send_help => "This is where you can send private messages to other members from.",
|
||||
no_reply => "You haven't replied to this message",
|
||||
c_msg_total => "You have <#NUM#> total messages in all your folders.",
|
||||
read_rec_text => "Original message sent on:",
|
||||
|
||||
@@ -4,7 +4,7 @@ $lang = array (
|
||||
|
||||
WHERE_SF => "Viewing Forum:",
|
||||
WHERE_SR => "Viewing Forum Rules:",
|
||||
WHERE_ST => "Viewing a topic in:",
|
||||
WHERE_ST => "Viewing Topic:",
|
||||
WHERE_Login => "Logging in...",
|
||||
WHERE_Post => "Posting in forum:",
|
||||
WHERE_Reg => "Registering...",
|
||||
|
||||
@@ -2,15 +2,65 @@
|
||||
|
||||
$lang = array (
|
||||
|
||||
ibf_code_txt => "Roll your mouse over the button for more information.<br>Hitting 'ALT' and 'c' closes current tag",
|
||||
|
||||
'poll_question' => "Poll Question",
|
||||
'poll_tag_allowed' => "[URL] and [IMG] tags allowed",
|
||||
|
||||
'eu_keep' => "Keep current attachment",
|
||||
'eu_delete' => "Remove attachment",
|
||||
'eu_new' => "Replace with a new attachment",
|
||||
|
||||
'append_edit' => "<b>Add</b> the 'Edit by' line in this post?",
|
||||
'edit_ops' => "Edit Options",
|
||||
|
||||
'js_close_all_tags' => "Close all Tags",
|
||||
'js_tag_list' => "Enter a list item. Click 'cancel' or leave blank to end the list",
|
||||
|
||||
'bbcode_guided' => "Guided Mode",
|
||||
'bbcode_normal' => "Normal Mode",
|
||||
|
||||
'hb_start' => "Hint: Use Guided Mode for helpful prompts",
|
||||
|
||||
'hb_bold' => "Insert Bold Text (alt + b)",
|
||||
'hb_italic' => "Insert Italic Text (alt + i)",
|
||||
'hb_under' => "Insert Underlined Text (alt + u)",
|
||||
'hb_font' => "Insert Font Face tags",
|
||||
'hb_size' => "Insert Font Size tags",
|
||||
'hb_color' => "Insert Font Color tags",
|
||||
'hb_close' => "Close all open tags",
|
||||
'hb_url' => "Insert Hyperlink (alt+ h)",
|
||||
'hb_img' => "Image (alt + g) [img]http://www.dom.com/img.gif[/img]",
|
||||
'hb_email' => "Insert Email Address (alt + e)",
|
||||
'hb_quote' => "Insert Quoted Text (alt + q)",
|
||||
'hb_code' => "Insert Monotype Text (alt + p)",
|
||||
'hb_list' => "Create a list (alt + l)",
|
||||
'hb_click_close' => "Click button again to close",
|
||||
|
||||
'hb_open_tags' => "Open Tags",
|
||||
|
||||
|
||||
'js_text_to_format' => "Enter the text to be formatted",
|
||||
|
||||
'calendar_title' => "Event Title",
|
||||
'calendar_event_date' => "Date for Event",
|
||||
'calendar_event_type' => "Type of Event",
|
||||
'calendar_type_private' => "Personal Event (Viewable by you only)",
|
||||
'calendar_type_public' => "Public Event (Viewable by all)",
|
||||
'calendar_submit' => "Add Calendar Event",
|
||||
'calendar_group_filter' => "<b>Admin Option</b> (only applies to public events)<br>Click on which groups can see this event (Admin group always selected), or leave alone so all groups can see this event.<br>Multiple group selection allowed",
|
||||
|
||||
'calendar_edit_submit' => "Edit Event",
|
||||
|
||||
'calendar_delete_box' => "<b>Delete Event?</b> Check this box and submit the form to delete this event.",
|
||||
|
||||
'unreg_namestuff' => "Unregistered User Info",
|
||||
|
||||
mod_options => "After posting...",
|
||||
|
||||
mod_close => "Close this topic",
|
||||
'mod_move' => "Move this topic",
|
||||
mod_pin => "Pin this topic",
|
||||
mod_nowt => "Don't pin or close",
|
||||
mod_nowt => "( Do Nothing )",
|
||||
|
||||
'msg_no_title' => "You must enter a message title",
|
||||
|
||||
@@ -19,6 +69,7 @@ mod_nowt => "Don't pin or close",
|
||||
'tt_poll_settings' => "Poll Settings",
|
||||
|
||||
'tt_subject' => "Topic Subscription Reply Notification",
|
||||
'ft_subject' => "Forum Subscription New Topic Notification",
|
||||
|
||||
'upload_failed' => "The requested file upload failed. This is either because it was not in the correct format, or the file size was larger than that allowed. Please check the file you wish to upload and try again.",
|
||||
|
||||
|
||||
@@ -2,12 +2,21 @@
|
||||
|
||||
$lang = array (
|
||||
|
||||
end => "end",
|
||||
forum => "Forum",
|
||||
on => "on",
|
||||
title => "Printable Version of Topic",
|
||||
by => "Posted by",
|
||||
start => "started by",
|
||||
topic => "Topic",
|
||||
'end' => "end",
|
||||
'forum' => "Forum",
|
||||
'on ' => "on",
|
||||
'title' => "Printable Version of Topic",
|
||||
'by' => "Posted by",
|
||||
'start' => "started by",
|
||||
'topic' => "Topic",
|
||||
'tvo_title' => "Topic View Options for:",
|
||||
'o_print_title' => "Printer Friendly Version",
|
||||
'o_print_desc' => "This will display the topic in a simple, printer friendly format on this page, no download is required.",
|
||||
'o_html_title' => "Download HTML Version",
|
||||
'o_html_desc' => "This will enable you to download a HTML version of this topic to your hard drive. This will open your browser's download dialogue box",
|
||||
'o_word_title' => "Download Microsoft Word Version",
|
||||
'o_word_desc' => "This will enable you to download a version of this topic in an editable Word format. This will open your browser's download dialogue box",
|
||||
'back_topic' => "Back to the topic",
|
||||
'topic_here' => "Click here to view this topic in its original format",
|
||||
);
|
||||
?>
|
||||
@@ -2,6 +2,58 @@
|
||||
|
||||
$lang = array (
|
||||
|
||||
'errors_found' => "The Following Errors Were Found",
|
||||
'err_email_address_match' => "The email addresses entered did not match",
|
||||
'err_no_username' => "You must enter a valid username between 3 and 32 characters",
|
||||
'err_no_password' => "You must enter a valid password between 3 and 32 characters",
|
||||
'err_pass_match' => "The entered passwords did not match each other, please check the entered values",
|
||||
'err_invalid_email' => "The email address entered was not a valid email address",
|
||||
'err_user_exists' => "An account is already registered with that username, please choose another",
|
||||
'err_email_exists' => "An account is already registered with that email address, please choose another",
|
||||
'err_reg_code' => "The registration code did not match the one displayed, a new code has been generated, please try again",
|
||||
|
||||
|
||||
|
||||
'ras_title' => "Registration Anti SPAM Confirmation",
|
||||
'ras_numbers' => "<b>Your unique registration code</b><br>If you do not see any numbers, or see broken images, please contact a board administrator to rectify the problem.",
|
||||
'ras_text' => "<b>Confirm registration code</b><br>To prevent mass registration programs from registering accounts, please enter the 6 digit code shown above in image format.<br>Note: Only numbers are allowed, a '0' is a numerical zero, not the alphabetical 'O'.",
|
||||
|
||||
|
||||
|
||||
|
||||
'coppa_title' => "COPPA Registration",
|
||||
'coppa_info' => "COPPA Information",
|
||||
'coppa_form' => "COPPA Form",
|
||||
|
||||
'coppa_link' => "Please click the link that corresponds with your birth date",
|
||||
'coppa_date_before' => "On or before",
|
||||
'coppa_date_after' => "After",
|
||||
'coppa_form_text' => "A parent or guardian must complete and mail or fax a signed <#FORM_LINK#> to the administratior of the board before a child under the age of 13 can complete the registration process.<br><br>For further information, please contact:",
|
||||
'coppa_link_form' => "permission form",
|
||||
|
||||
'cp2_text' => " All users under the age of 13 must seek permission from a parent of guardian before you may participate on these forums.<br><br>If you would like to start the registration process prior to us receiving a permission form, please click the continue link below. However, please note that you will not be able to complete your registration until we have the signed form.",
|
||||
'cp2_continue' => "Continue",
|
||||
'cp2_title' => "Our COPPA registration policy",
|
||||
'cp2_cancel' => "Cancel",
|
||||
|
||||
'cp_success' => "your registration was successful! Redirecting you to the consent form",
|
||||
|
||||
'cpf_title' => "COPPA Permission Form",
|
||||
'cpf_perm_parent' => "Instructions for a parent or guardian<br><br>Please print this form out, complete it and fax it to the number specified (if present) or mail to the mailing address below.",
|
||||
'cpf_fax' => "<b>Fax Number:</b>",
|
||||
'cpf_address' => "<b>Mailing Address:</b>",
|
||||
|
||||
'cpf_sign' => "Please sign the form below and send to us.<br><br>I understand that the information that the child has supplied is correct. I understand that the profile information may be changed by entering a password and I understand that I may ask for this registration profile to be removed.",
|
||||
|
||||
'cpf_name' => "Parent / Legal Guardian FULL name",
|
||||
'cpf_relation' => "Relation to child",
|
||||
'cpf_signature' => "Signature",
|
||||
'cpf_email' => "Email Address",
|
||||
'cpf_phone' => "Phone Number",
|
||||
'cpf_date' => "Date",
|
||||
|
||||
'cf_optional' => "Optional Information",
|
||||
|
||||
'lost_pass_form' => "Lost Password Form",
|
||||
'lp_header' => "How to reset your password",
|
||||
|
||||
|
||||
@@ -2,14 +2,31 @@
|
||||
|
||||
$lang = array (
|
||||
|
||||
'rp_topic' => "Topic:",
|
||||
'rp_post' => "Post Preview:",
|
||||
'rp_forum' => "Forum:",
|
||||
'rp_author' => "Author",
|
||||
'rp_replies' => "Replies:",
|
||||
'rp_hits' => "Views:",
|
||||
'rp_message' => "Message",
|
||||
'rp_postedon' => "Posted on:",
|
||||
|
||||
'joinname_true' => "Search With Keywords and Username",
|
||||
'joinname_false' => "Search With Username alone",
|
||||
|
||||
'nav_since_lv' => "Posts since your last visit",
|
||||
'nav_lt' => "Your last ten posts",
|
||||
|
||||
'results_post' => "Show results as posts",
|
||||
'results_topics' => "Show results as topics",
|
||||
|
||||
'search_redirect' => "your search has been completed, please stand by as we take you to the search results.",
|
||||
|
||||
'search_pages' => "Pages:",
|
||||
'search_title' => "Search Engine",
|
||||
'key_search' => "Search by Keywords",
|
||||
'mem_search' => "Search by Member Name",
|
||||
'keysearch_text' => "<b>Simple Search:</b> Enter a keyword or phrase to search by<br><b>Advanced Search:</b> Join keywords with AND, OR to help define the search.<br>Asterisks '*' act as wildcards. (*bar* matches <i>foobarbaz</i>, etc).",
|
||||
'mem_search' => "Filter by Member Name (optional)",
|
||||
'keysearch_text' => "<b>Simple Search:</b> Enter a keyword or phrase to search by<br><b>Advanced Search:</b> Join keywords with AND, OR to help define the search.",
|
||||
'match_name_ex' => "Match Exact Name",
|
||||
'match_name_pa' => "Match Partial Name",
|
||||
'keywords_title' => "Search Keywords",
|
||||
|
||||
@@ -2,6 +2,12 @@
|
||||
|
||||
$lang = array (
|
||||
|
||||
'who_farted' => "Who posted in:",
|
||||
|
||||
'who_poster' => "Poster",
|
||||
'who_posts' => "Posts",
|
||||
'who_go' => "Close window & open topic",
|
||||
|
||||
'todays_posters' => "Todays Top 10 Posters",
|
||||
'member' => "Member",
|
||||
'member_posts' => "Total Member Posts",
|
||||
|
||||
@@ -2,24 +2,40 @@
|
||||
|
||||
$lang = array (
|
||||
|
||||
'SPLIT_TOPIC' => "Split Topic",
|
||||
'MERGE_TOPIC' => "Merge Topic",
|
||||
'TOPIC_HISTORY' => "View Topic History (Admin Option)",
|
||||
|
||||
'tt_title' => "Track this topic",
|
||||
'tt_desc' => "Receive email notification when a reply has been made to this topic and you are not active on the board.",
|
||||
|
||||
'ft_title' => "Subscribe to this forum",
|
||||
'ft_desc' => "Receive email notification when a new topic is posted in this forum and you are not active on the board.",
|
||||
|
||||
'av_title' => "Download / Print this Topic",
|
||||
'av_desc' => "Download this topic in different formats or view a printer friendly version.",
|
||||
|
||||
'active_users_detail' => "%s Guests and %s Anonymous Users",
|
||||
'active_users_title' => "%s User(s) are reading this topic",
|
||||
'active_users_members' => "%s Members:",
|
||||
|
||||
'go_new_post' => "Go to first unread post",
|
||||
'edited_by' => "Edited by",
|
||||
|
||||
'edited_by' => "This post has been edited by <b>%s</b> on %s",
|
||||
|
||||
'UNSUBBIT' => "Unsubscribe all from topic",
|
||||
|
||||
EDIT_TOPIC => "Edit this Topic",
|
||||
forum_jump => "Forum Jump",
|
||||
UNPIN_TOPIC => "Unpin this Topic",
|
||||
OPEN_TOPIC => "Open this topic",
|
||||
adjust_level => "Adjust Warn Level",
|
||||
attach_hits => "Number of downloads",
|
||||
DELETE_TOPIC => "Delete this topic",
|
||||
topic_moved => "This topic has moved, taking you to the correct forum",
|
||||
pic_attach => "Attached Image",
|
||||
m_posts => "Posts:",
|
||||
mod_cp => "Moderators Control Panel",
|
||||
|
||||
multi_page_topic => "Pages:",
|
||||
snitch_geezer_to_a_copper => "Report this post to a moderator",
|
||||
snitch_geezer_to_a_copper => "Report this post",
|
||||
MOVE_TOPIC => "Move this topic",
|
||||
CLOSE_TOPIC => "Close this topic",
|
||||
topic_page_h => "Topic",
|
||||
@@ -31,7 +47,7 @@ js_del_1 => "Are you sure you want to delete this message?",
|
||||
please_log_in => "You are not logged into this forum.",
|
||||
js_del_2 => "Ok, no action has been taken",
|
||||
start_new_topic => "Start a new topic",
|
||||
moderation_ops => "Topic Options",
|
||||
moderation_ops => "Moderation Options",
|
||||
RECOUNT => "Rebuild Topic",
|
||||
ip => "IP",
|
||||
reply_to_topic => "Reply to this topic",
|
||||
|
||||
+51
-14
@@ -2,7 +2,43 @@
|
||||
|
||||
$lang = array (
|
||||
|
||||
'dst_box' => "<b>Is daylight savings time in effect?</b><br>(If you have selected the correct time zone and the clock appears an hour out, check or uncheck box to suit)",
|
||||
'forum_subs_header' => "Your Forum Subscriptions",
|
||||
|
||||
'forum_subs_none' => "You are not subscribed to any forums at present",
|
||||
'f_none' => "--",
|
||||
'in' => "In:",
|
||||
'by' => "By:",
|
||||
|
||||
'ft_forum' => "Forum",
|
||||
'ft_posts' => "Replies",
|
||||
'ft_topics' => "Topics",
|
||||
'ft_unsub' => "Unsubscribe",
|
||||
'ft_newpost' => "Start New Topic",
|
||||
'ft_last_post' => "Last Post",
|
||||
|
||||
'ft_unsub_all' => "Unsubscribe from all forums",
|
||||
|
||||
'subs_today' => "Last day",
|
||||
'subs_day' => "Last %s days",
|
||||
'subs_all' => "the beginning",
|
||||
|
||||
'show_topics_from' => "Show topics from:",
|
||||
|
||||
'subs_none' => "There are no subscriptions to show, try selecting a less restrictive date range",
|
||||
|
||||
'auto_prune' => "Note: Subscriptions are pruned if there is no reply to the topic after %s days",
|
||||
'no_auto_prune' => "Subscription auto pruning is switched off at present",
|
||||
|
||||
'auto_track' => "<b>Enable 'Email Notification' by default?</b><br>Enabling this option will automatically subscribe you to any topic you start or reply to.",
|
||||
|
||||
'cf_required' => "Required Information, this section must be completed",
|
||||
|
||||
'pp_number_posts' => "Number of posts to show for each topic page",
|
||||
'pp_number_topics' => "Number of topics to show for each forum page",
|
||||
'pp_use_default' => "Use forum default",
|
||||
|
||||
'mess_saved' => "Saved (Unsent) PM's",
|
||||
'dst_box' => "<b>Is daylight savings time in effect?</b><br>(If you have selected the correct time zone and the clock appears<br>an hour out, check or uncheck box to suit)",
|
||||
|
||||
|
||||
|
||||
@@ -20,14 +56,17 @@ $lang = array (
|
||||
'av_tt_one' => "I don't wish to use an avatar (remove all current)",
|
||||
'av_tt_two' => "Selecting this option will remove all current avatars if you have any selected/uploaded or entered in the URL field",
|
||||
|
||||
'mess_new' => "Send New PM",
|
||||
'mess_new' => "Compose New Message",
|
||||
|
||||
'mess_contact' => "Contact List",
|
||||
'mess_folders' => "Edit Folders",
|
||||
'mess_contact' => "PM Buddies/Block List",
|
||||
'mess_folders' => "Edit Storage Folders",
|
||||
|
||||
'mess_inbox' => "Go to Inbox",
|
||||
|
||||
'mess_archive' => "Archive Messages",
|
||||
'mess_tracker' => "Message Tracker",
|
||||
|
||||
|
||||
|
||||
|
||||
'forum_jump' => "Forum Jump",
|
||||
@@ -46,8 +85,9 @@ $lang = array (
|
||||
'm_email_change' => "Change Email Address",
|
||||
'm_passy_opt' => "Change Password",
|
||||
|
||||
'm_tracker' => "Topic Tracker",
|
||||
'm_view_subs' => "View subscriptions",
|
||||
'm_tracker' => "Subscriptions",
|
||||
'm_view_subs' => "View Topics",
|
||||
'm_view_forum' => "View Forums",
|
||||
|
||||
'm_links' => "Personal Links",
|
||||
'm_edit_links' => "Edit Links",
|
||||
@@ -212,7 +252,7 @@ month10 => "October",
|
||||
month11 => "November",
|
||||
account => "Modify Account",
|
||||
month12 => "December",
|
||||
hide_email => "<b>Hide my email address from other members</b>",
|
||||
hide_email => "<b>Hide my email address from other members</b><br>Enabling this option will deny other members sending you an email via the board.",
|
||||
account_email_txt => "Your Email Address",
|
||||
settings_skin => "Board 'Skin'",
|
||||
account_pass_new2 => "Please confirm your NEW password",
|
||||
@@ -230,7 +270,7 @@ t_title => "Your control panel",
|
||||
|
||||
av_none_selected => "[ No Avatar Selected ]",
|
||||
subs_header => "Current Subscriptions",
|
||||
profile_title => "Your personal profile",
|
||||
profile_title => "Your personal profile, this section is optional",
|
||||
board_prefs => "Board Preferences",
|
||||
subs_left => "Days Left",
|
||||
subs_topic => "Topic",
|
||||
@@ -253,7 +293,7 @@ avatar_click => "Click on one of the avatars in this list to add it into the
|
||||
location => "<b>Your Location</b>",
|
||||
avatar_url_ext => "The following file types are allowed: ",
|
||||
email_address => "Your registered email address",
|
||||
pm_reminder => "<b>Send a confirmation email when I receive a new private message</b>",
|
||||
pm_reminder => "<b>Send a confirmation email when I receive a new private message</b><br>Enabling this option will send an email confirmation of any new private messages sent to you.",
|
||||
subs_last_post => "Last Post",
|
||||
email => "Email Settings",
|
||||
account_email_submit => "Change my Email Address",
|
||||
@@ -264,7 +304,7 @@ email_help => "This is where you can change your email settings",
|
||||
settings_dopopup => "Do you wish to get a pop up notification when you get a new private message?",
|
||||
settings_display => "Board Display Settings",
|
||||
settings_skin_txt => "You may choose a 'skin' to use.<br>This will change the way the board looks",
|
||||
send_full_msg => "<b>Include a copy of the post when emailing me from a subscribed topic</b>",
|
||||
send_full_msg => "<b>Include a copy of the post when emailing me from a subscribed topic</b><br>Enabling this option will send a plain text version of the post in the subscription email.",
|
||||
member_title => "Custom member title",
|
||||
yes => "Yes",
|
||||
account_pass_new => "Enter your NEW password",
|
||||
@@ -273,20 +313,17 @@ js_interests => "Interests",
|
||||
av_preset => "You are currently using a pre-installed avatar",
|
||||
aol => "<b>Your AOL identity</b>",
|
||||
settings_lang => "Board Interface Language",
|
||||
end_subs => "<b>Number of days a topic subscription lasts</b><br>(This is useful to automatically unsubscribe from a subscription after the number of days entered have passed)",
|
||||
pixels => "pixels",
|
||||
t_welcome => "Welcome to your control panel",
|
||||
personal => "Personal Info",
|
||||
daily_average => "Average number of posts per day",
|
||||
avatar_ops => "Avatar Options",
|
||||
account_pass_submit => "Change my Password",
|
||||
profile_header => ", you may create and/or amend your personal profile. This will be viewable by everyone. All of this information is optional",
|
||||
stats_header => "Your account summary",
|
||||
settings_time => "Time Zone",
|
||||
subs_title => "Your Topic Subscriptions",
|
||||
no_posts => "You've yet to post",
|
||||
subs => "Topic Tracker",
|
||||
subs_none => "You are not subscribed to any topics",
|
||||
current_avatar => "Avatar Preview",
|
||||
subs_deleted => "The subscription has been deleted",
|
||||
avatar_pre_submit => "Add this avatar to my profile",
|
||||
@@ -302,7 +339,7 @@ account_email_req => "You will receive an email asking you to verify this ch
|
||||
email_title => "Your email settings",
|
||||
av_current => "Your Current Avatar",
|
||||
check_length => "Check Length",
|
||||
admin_send => "<b>Send me any updates sent by the board administrator</b>",
|
||||
admin_send => "<b>Send me any updates sent by the board administrator</b><br>Enabling this option will add your email address to the administrators mail list and you will receive any updates sent.",
|
||||
);
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
<?php
|
||||
phpinfo();
|
||||
?>
|
||||
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|
||||
Script Name: show.php
|
||||
Script Author: Matt Mecham
|
||||
Package: Invision Board
|
||||
Date: 16th September 2002
|
||||
-------------------------
|
||||
What is this?
|
||||
-------------------------
|
||||
It's a little "add-on" that simply allows for a neater / easier to read
|
||||
URL to an invision board URL.
|
||||
Example: http://www.domain.com/forums/show.php/act/ST/f/3/t/45
|
||||
Resolves to: http://www.domain.com/forums/index.php?act=ST&f=3&t=45
|
||||
|
||||
It's not used in Invision Board itself, but might come in handy in your
|
||||
own projects (such as a search engine friendly menu, etc).
|
||||
|
||||
Probably only works with PHP 4.1+
|
||||
|
||||
*/
|
||||
|
||||
$base_url = 'http://localhost/invboard/index.php'; //Edit this to suit
|
||||
|
||||
$redirect = "";
|
||||
|
||||
if ( $_SERVER['PATH_INFO'] != "" )
|
||||
{
|
||||
$c = 0;
|
||||
|
||||
foreach( explode( "/", $_SERVER['PATH_INFO'] ) as $bit)
|
||||
{
|
||||
if ($bit != "")
|
||||
{
|
||||
if ($c == 0)
|
||||
{
|
||||
$c++;
|
||||
$redirect .= $bit.'=';
|
||||
}
|
||||
else
|
||||
{
|
||||
$c = 0;
|
||||
$redirect .= $bit.'&';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
header("Location: $base_url?".$redirect);
|
||||
|
||||
exit();
|
||||
|
||||
?>
|
||||
|
||||
+1772
-1513
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,290 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Board v1.1
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001,2002 Invision Power Services
|
||||
| http://www.ibforums.com
|
||||
| ========================================
|
||||
| Web: http://www.ibforums.com
|
||||
| Email: phpboards@ibforums.com
|
||||
| Licence Info: phpib-licence@ibforums.com
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Admin Logs Stuff
|
||||
| > Module written by Matt Mecham
|
||||
| > Date started: 11nd September 2002
|
||||
|
|
||||
| > Module Version Number: 1.0.0
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
// Ensure we've not accessed this script directly:
|
||||
|
||||
|
||||
|
||||
$idx = new ad_adlogs();
|
||||
|
||||
|
||||
class ad_adlogs {
|
||||
|
||||
var $base_url;
|
||||
var $colours = array();
|
||||
|
||||
function ad_adlogs() {
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
// Make sure we're a root admin, or else!
|
||||
|
||||
if ($MEMBER['mgroup'] != $INFO['admin_group'])
|
||||
{
|
||||
$ADMIN->error("Sorry, these functions are for the root admin group only");
|
||||
}
|
||||
|
||||
|
||||
$this->colours = array(
|
||||
"cat" => "green",
|
||||
"forum" => "darkgreen",
|
||||
"mem" => "red",
|
||||
'group' => "purple",
|
||||
'mod' => 'orange',
|
||||
'op' => 'darkred',
|
||||
'help' => 'darkorange',
|
||||
'modlog' => 'steelblue',
|
||||
);
|
||||
|
||||
|
||||
switch($IN['code'])
|
||||
{
|
||||
|
||||
case 'view':
|
||||
$this->view();
|
||||
break;
|
||||
|
||||
case 'remove':
|
||||
$this->remove();
|
||||
break;
|
||||
|
||||
|
||||
//-------------------------
|
||||
default:
|
||||
$this->list_current();
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//---------------------------------------------
|
||||
// Remove archived files
|
||||
//---------------------------------------------
|
||||
|
||||
function view()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$start = $IN['st'] ? $IN['st'] : 0;
|
||||
|
||||
$ADMIN->page_detail = "Viewing all actions by a administrator";
|
||||
$ADMIN->page_title = "Administration Logs Manager";
|
||||
|
||||
if ($IN['search_string'] == "")
|
||||
{
|
||||
$DB->query("SELECT COUNT(id) as count FROM ibf_admin_logs WHERE member_id='".$IN['mid']."'");
|
||||
$row = $DB->fetch_row();
|
||||
|
||||
$row_count = $row['count'];
|
||||
|
||||
$query = "&act=adminlog&mid={$IN['mid']}&code=view";
|
||||
|
||||
$DB->query("SELECT m.*, mem.id, mem.name FROM ibf_admin_logs m, ibf_members mem
|
||||
WHERE m.member_id='".$IN['mid']."' AND m.member_id=mem.id ORDER BY m.ctime DESC LIMIT $start, 20");
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$IN['search_string'] = urldecode($IN['search_string']);
|
||||
|
||||
$dbq = "m.".$IN['search_type']." LIKE '%".$IN['search_string']."%'";
|
||||
|
||||
$DB->query("SELECT COUNT(m.id) as count FROM ibf_admin_logs m WHERE $dbq");
|
||||
$row = $DB->fetch_row();
|
||||
|
||||
$row_count = $row['count'];
|
||||
|
||||
$query = "&act=modlog&code=view&search_type={$IN['search_type']}&search_string=".urlencode($IN['search_string']);
|
||||
|
||||
$DB->query("SELECT m.*, mem.id, mem.name FROM ibf_admin_logs m, ibf_members mem
|
||||
WHERE m.member_id='".$IN['mid']."' AND m.member_id=mem.id AND $dbq ORDER BY m.ctime DESC LIMIT $start, 20");
|
||||
|
||||
|
||||
}
|
||||
|
||||
$links = $std->build_pagelinks( array( 'TOTAL_POSS' => $row_count,
|
||||
'PER_PAGE' => 20,
|
||||
'CUR_ST_VAL' => $start,
|
||||
'L_SINGLE' => "Single Page",
|
||||
'L_MULTI' => "Pages: ",
|
||||
'BASE_URL' => $ADMIN->base_url.$query,
|
||||
)
|
||||
);
|
||||
|
||||
$ADMIN->page_detail = "You may view and remove actions performed by your administrators";
|
||||
$ADMIN->page_title = "Administrator Logs Manager";
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$SKIN->td_header[] = array( "Member Name" , "20%" );
|
||||
$SKIN->td_header[] = array( "Action Perfomed" , "40%" );
|
||||
$SKIN->td_header[] = array( "Time of action" , "20%" );
|
||||
$SKIN->td_header[] = array( "IP address" , "20%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Saved Admin Logs" );
|
||||
$ADMIN->html .= $SKIN->add_td_basic($links, 'center', 'catrow');
|
||||
|
||||
if ( $DB->get_num_rows() )
|
||||
{
|
||||
while ( $row = $DB->fetch_row() )
|
||||
{
|
||||
|
||||
$row['ctime'] = $std->get_date( $row['ctime'], 'LONG' );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>{$row['name']}</b>",
|
||||
"<span style='color:{$this->colours[$row['act']]}'>{$row['note']}</span>",
|
||||
"{$row['ctime']}",
|
||||
"{$row['ip_address']}",
|
||||
) );
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$ADMIN->html .= $SKIN->add_td_basic("<center>No results</center>");
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_basic($links, 'center', 'tdtop');
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
|
||||
//+-------------------------------
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
}
|
||||
|
||||
//---------------------------------------------
|
||||
// Remove archived files
|
||||
//---------------------------------------------
|
||||
|
||||
function remove()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
if ($IN['mid'] == "")
|
||||
{
|
||||
$ADMIN->error("You did not select a member ID to remove by!");
|
||||
}
|
||||
|
||||
$DB->query("DELETE FROM ibf_admin_logs WHERE member_id='".$IN['mid']."'");
|
||||
|
||||
$std->boink_it($ADMIN->base_url."&act=adminlog");
|
||||
exit();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// SHOW ALL LANGUAGE PACKS
|
||||
//-------------------------------------------------------------
|
||||
|
||||
function list_current()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$form_array = array();
|
||||
|
||||
$ADMIN->page_detail = "You may view and remove actions performed by your administrators in mission critical areas of the administration CP (such as forum control, member control, group control, help files and moderator log management).";
|
||||
$ADMIN->page_title = "Administration Logs Manager";
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$SKIN->td_header[] = array( "Member Name" , "30%" );
|
||||
$SKIN->td_header[] = array( "Actions Perfomed" , "20%" );
|
||||
$SKIN->td_header[] = array( "View all by member" , "20%" );
|
||||
$SKIN->td_header[] = array( "Remove all by member" , "30%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Saved Admininstration Logs" );
|
||||
|
||||
$DB->query("SELECT m.*, mem.name, count(m.id) as act_count FROM ibf_admin_logs m, ibf_members mem WHERE m.member_id=mem.id GROUP BY m.member_id ORDER BY act_count DESC");
|
||||
|
||||
while ( $r = $DB->fetch_row() )
|
||||
{
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>{$r['name']}</b>",
|
||||
"<center>{$r['act_count']}</center>",
|
||||
"<center><a href='".$SKIN->base_url."&act=adminlog&code=view&mid={$r['member_id']}'>View</a></center>",
|
||||
"<center><a href='".$SKIN->base_url."&act=adminlog&code=remove&mid={$r['member_id']}'>Remove</a></center>",
|
||||
) );
|
||||
}
|
||||
|
||||
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
|
||||
//+-------------------------------
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'view' ),
|
||||
2 => array( 'act' , 'adminlog' ),
|
||||
) );
|
||||
|
||||
$SKIN->td_header[] = array( " " , "40%" );
|
||||
$SKIN->td_header[] = array( " " , "60%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Search Admin Logs" );
|
||||
|
||||
$form_array = array(
|
||||
0 => array( 'note' , 'Action Performed' ),
|
||||
1 => array( 'ip_address', 'IP Address' ),
|
||||
2 => array( 'member_id' , 'Member ID' ),
|
||||
3 => array( 'act' , 'ACT Setting' ),
|
||||
4 => array( 'code' , 'CODE Setting' ),
|
||||
);
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Search for...</b>" ,
|
||||
$SKIN->form_input( "search_string")
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Search in...</b>" ,
|
||||
$SKIN->form_dropdown( "search_type", $form_array)
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_form("Search");
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
//+-------------------------------
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
File diff suppressed because it is too large.
Load diff
+2324
-1959
File diff suppressed because it is too large.
Load diff
+1269
-1081
File diff suppressed because it is too large.
Load diff
+278
-272
@@ -1,273 +1,279 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IBFORUMS v1
|
||||
| ========================================
|
||||
| by Matthew Mecham and David Baxter
|
||||
| (c) 2001,2002 IBForums
|
||||
| http://www.ibforums.com
|
||||
| ========================================
|
||||
| Web: http://www.ibforums.com
|
||||
| Email: phpboards@ibforums.com
|
||||
| Licence Info: phpib-licence@ibforums.com
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Help Control functions
|
||||
| > Module written by Matt Mecham
|
||||
| > Date started: 2nd April 2002
|
||||
|
|
||||
| > Module Version Number: 1.0.0
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
$idx = new ad_settings();
|
||||
|
||||
|
||||
class ad_settings {
|
||||
|
||||
var $base_url;
|
||||
|
||||
function ad_settings() {
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
switch($IN['code'])
|
||||
{
|
||||
case 'edit':
|
||||
$this->show_form('edit');
|
||||
break;
|
||||
case 'new':
|
||||
$this->show_form('new');
|
||||
break;
|
||||
|
||||
case 'doedit':
|
||||
$this->doedit();
|
||||
break;
|
||||
|
||||
case 'donew':
|
||||
$this->doadd();
|
||||
break;
|
||||
|
||||
case 'remove':
|
||||
$this->remove();
|
||||
break;
|
||||
|
||||
//-------------------------
|
||||
default:
|
||||
$this->list_files();
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// HELP FILE FUNCTIONS
|
||||
//-------------------------------------------------------------
|
||||
|
||||
function doedit()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_POST_VARS;
|
||||
|
||||
if ($IN['id'] == "")
|
||||
{
|
||||
$ADMIN->error("You must pass a valid emoticon id, silly!");
|
||||
}
|
||||
|
||||
$text = preg_replace( "/\n/", "<br>", stripslashes($HTTP_POST_VARS['text'] ) );
|
||||
$title = preg_replace( "/\n/", "<br>", stripslashes($HTTP_POST_VARS['title'] ) );
|
||||
$desc = preg_replace( "/\n/", "<br>", stripslashes($HTTP_POST_VARS['description'] ) );
|
||||
|
||||
$db_string = $DB->compile_db_update_string( array( 'title' => $title,
|
||||
'text' => $text,
|
||||
'description' => $desc,
|
||||
) );
|
||||
|
||||
$DB->query("UPDATE ibf_faq SET $db_string WHERE id='".$IN['id']."'");
|
||||
|
||||
$std->boink_it($SKIN->base_url."&act=help");
|
||||
exit();
|
||||
|
||||
|
||||
}
|
||||
|
||||
//=====================================================
|
||||
|
||||
|
||||
function show_form($type='new')
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$ADMIN->page_detail = "You may add/edit and remove help files below.";
|
||||
$ADMIN->page_title = "Help File Management";
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
if ($type != 'new')
|
||||
{
|
||||
|
||||
if ($IN['id'] == "")
|
||||
{
|
||||
$ADMIN->error("You must pass a valid help file id, silly!");
|
||||
}
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$DB->query("SELECT * FROM ibf_faq WHERE id='".$IN['id']."'");
|
||||
|
||||
if ( ! $r = $DB->fetch_row() )
|
||||
{
|
||||
$ADMIN->error("We could not find that help file in the database");
|
||||
}
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$button = 'Edit this Help File';
|
||||
$code = 'doedit';
|
||||
}
|
||||
else
|
||||
{
|
||||
$r = array();
|
||||
$button = 'Add this Help File';
|
||||
$code = 'donew';
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , $code ),
|
||||
2 => array( 'act' , 'help' ),
|
||||
3 => array( 'id' , $IN['id'] ),
|
||||
) );
|
||||
|
||||
|
||||
|
||||
$SKIN->td_header[] = array( " " , "20%" );
|
||||
$SKIN->td_header[] = array( " " , "80%" );
|
||||
|
||||
$r['text'] = preg_replace( "/<br>/i", "\n", stripslashes($r['text']) );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( $button );
|
||||
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "Help File Title",
|
||||
$SKIN->form_input('title' , stripslashes($r['title']) ),
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "Help File Description",
|
||||
$SKIN->form_textarea('description', stripslashes($r['description']) ),
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "Help File Text",
|
||||
$SKIN->form_textarea('text', $r['text'], "60", "10" ),
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_form($button);
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
}
|
||||
|
||||
//=====================================================
|
||||
|
||||
function remove()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
if ($IN['id'] == "")
|
||||
{
|
||||
$ADMIN->error("You must pass a valid help file id, silly!");
|
||||
}
|
||||
|
||||
$DB->query("DELETE FROM ibf_faq WHERE id='".$IN['id']."'");
|
||||
|
||||
$std->boink_it($SKIN->base_url."&act=help");
|
||||
exit();
|
||||
|
||||
|
||||
}
|
||||
|
||||
//=====================================================
|
||||
|
||||
function doadd()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_POST_VARS;
|
||||
|
||||
if ($IN['title'] == "")
|
||||
{
|
||||
$ADMIN->error("You must enter a title, silly!");
|
||||
}
|
||||
|
||||
|
||||
|
||||
$text = preg_replace( "/\n/", "<br>", stripslashes($HTTP_POST_VARS['text'] ) );
|
||||
$title = preg_replace( "/\n/", "<br>", stripslashes($HTTP_POST_VARS['title'] ) );
|
||||
$desc = preg_replace( "/\n/", "<br>", stripslashes($HTTP_POST_VARS['description'] ) );
|
||||
|
||||
$db_string = $DB->compile_db_insert_string( array( 'title' => $title,
|
||||
'text' => $text,
|
||||
'description' => $desc,
|
||||
) );
|
||||
|
||||
$DB->query("INSERT INTO ibf_faq (".$db_string['FIELD_NAMES'].") VALUES(".$db_string['FIELD_VALUES'].")");
|
||||
|
||||
$std->boink_it($SKIN->base_url."&act=help");
|
||||
exit();
|
||||
|
||||
|
||||
}
|
||||
|
||||
//=====================================================
|
||||
|
||||
function list_files()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$ADMIN->page_detail = "You may add/edit and remove help files below.";
|
||||
$ADMIN->page_title = "Help File Management";
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$SKIN->td_header[] = array( "Title" , "50%" );
|
||||
$SKIN->td_header[] = array( "Edit" , "30%" );
|
||||
$SKIN->td_header[] = array( "Remove" , "20%" );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Current Help Files" );
|
||||
|
||||
$DB->query("SELECT * from ibf_faq ORDER BY id ASC");
|
||||
|
||||
if ( $DB->get_num_rows() )
|
||||
{
|
||||
while ( $r = $DB->fetch_row() )
|
||||
{
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>".stripslashes($r['title'])."</b><br>".stripslashes($r['description']),
|
||||
"<center><a href='".$SKIN->base_url."&act=help&code=edit&id={$r['id']}'>Edit</a></center>",
|
||||
"<center><a href='".$SKIN->base_url."&act=help&code=remove&id={$r['id']}'>Remove</a></center>",
|
||||
) );
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_basic("<a href='".$SKIN->base_url."&act=help&code=new'>Add New Help File</a>", "center", "title" );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Board v1.1
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001,2002 Invision Power Services
|
||||
| http://www.ibforums.com
|
||||
| ========================================
|
||||
| Web: http://www.ibforums.com
|
||||
| Email: phpboards@ibforums.com
|
||||
| Licence Info: phpib-licence@ibforums.com
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Help Control functions
|
||||
| > Module written by Matt Mecham
|
||||
| > Date started: 2nd April 2002
|
||||
|
|
||||
| > Module Version Number: 1.0.0
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
$idx = new ad_settings();
|
||||
|
||||
|
||||
class ad_settings {
|
||||
|
||||
var $base_url;
|
||||
|
||||
function ad_settings() {
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
switch($IN['code'])
|
||||
{
|
||||
case 'edit':
|
||||
$this->show_form('edit');
|
||||
break;
|
||||
case 'new':
|
||||
$this->show_form('new');
|
||||
break;
|
||||
|
||||
case 'doedit':
|
||||
$this->doedit();
|
||||
break;
|
||||
|
||||
case 'donew':
|
||||
$this->doadd();
|
||||
break;
|
||||
|
||||
case 'remove':
|
||||
$this->remove();
|
||||
break;
|
||||
|
||||
//-------------------------
|
||||
default:
|
||||
$this->list_files();
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// HELP FILE FUNCTIONS
|
||||
//-------------------------------------------------------------
|
||||
|
||||
function doedit()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_POST_VARS;
|
||||
|
||||
if ($IN['id'] == "")
|
||||
{
|
||||
$ADMIN->error("You must pass a valid emoticon id, silly!");
|
||||
}
|
||||
|
||||
$text = preg_replace( "/\n/", "<br>", stripslashes($HTTP_POST_VARS['text'] ) );
|
||||
$title = preg_replace( "/\n/", "<br>", stripslashes($HTTP_POST_VARS['title'] ) );
|
||||
$desc = preg_replace( "/\n/", "<br>", stripslashes($HTTP_POST_VARS['description'] ) );
|
||||
|
||||
$db_string = $DB->compile_db_update_string( array( 'title' => $title,
|
||||
'text' => $text,
|
||||
'description' => $desc,
|
||||
) );
|
||||
|
||||
$DB->query("UPDATE ibf_faq SET $db_string WHERE id='".$IN['id']."'");
|
||||
|
||||
$ADMIN->save_log("Edited help files");
|
||||
|
||||
$std->boink_it($SKIN->base_url."&act=help");
|
||||
exit();
|
||||
|
||||
|
||||
}
|
||||
|
||||
//=====================================================
|
||||
|
||||
|
||||
function show_form($type='new')
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$ADMIN->page_detail = "You may add/edit and remove help files below.";
|
||||
$ADMIN->page_title = "Help File Management";
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
if ($type != 'new')
|
||||
{
|
||||
|
||||
if ($IN['id'] == "")
|
||||
{
|
||||
$ADMIN->error("You must pass a valid help file id, silly!");
|
||||
}
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$DB->query("SELECT * FROM ibf_faq WHERE id='".$IN['id']."'");
|
||||
|
||||
if ( ! $r = $DB->fetch_row() )
|
||||
{
|
||||
$ADMIN->error("We could not find that help file in the database");
|
||||
}
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$button = 'Edit this Help File';
|
||||
$code = 'doedit';
|
||||
}
|
||||
else
|
||||
{
|
||||
$r = array();
|
||||
$button = 'Add this Help File';
|
||||
$code = 'donew';
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , $code ),
|
||||
2 => array( 'act' , 'help' ),
|
||||
3 => array( 'id' , $IN['id'] ),
|
||||
) );
|
||||
|
||||
|
||||
|
||||
$SKIN->td_header[] = array( " " , "20%" );
|
||||
$SKIN->td_header[] = array( " " , "80%" );
|
||||
|
||||
$r['text'] = preg_replace( "/<br>/i", "\n", stripslashes($r['text']) );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( $button );
|
||||
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "Help File Title",
|
||||
$SKIN->form_input('title' , stripslashes($r['title']) ),
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "Help File Description",
|
||||
$SKIN->form_textarea('description', stripslashes($r['description']) ),
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "Help File Text",
|
||||
$SKIN->form_textarea('text', $r['text'], "60", "10" ),
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_form($button);
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
}
|
||||
|
||||
//=====================================================
|
||||
|
||||
function remove()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
if ($IN['id'] == "")
|
||||
{
|
||||
$ADMIN->error("You must pass a valid help file id, silly!");
|
||||
}
|
||||
|
||||
$DB->query("DELETE FROM ibf_faq WHERE id='".$IN['id']."'");
|
||||
|
||||
$ADMIN->save_log("Removed a help file");
|
||||
|
||||
$std->boink_it($SKIN->base_url."&act=help");
|
||||
exit();
|
||||
|
||||
|
||||
}
|
||||
|
||||
//=====================================================
|
||||
|
||||
function doadd()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_POST_VARS;
|
||||
|
||||
if ($IN['title'] == "")
|
||||
{
|
||||
$ADMIN->error("You must enter a title, silly!");
|
||||
}
|
||||
|
||||
|
||||
|
||||
$text = preg_replace( "/\n/", "<br>", stripslashes($HTTP_POST_VARS['text'] ) );
|
||||
$title = preg_replace( "/\n/", "<br>", stripslashes($HTTP_POST_VARS['title'] ) );
|
||||
$desc = preg_replace( "/\n/", "<br>", stripslashes($HTTP_POST_VARS['description'] ) );
|
||||
|
||||
$db_string = $DB->compile_db_insert_string( array( 'title' => $title,
|
||||
'text' => $text,
|
||||
'description' => $desc,
|
||||
) );
|
||||
|
||||
$DB->query("INSERT INTO ibf_faq (".$db_string['FIELD_NAMES'].") VALUES(".$db_string['FIELD_VALUES'].")");
|
||||
|
||||
$ADMIN->save_log("Added a help file");
|
||||
|
||||
$std->boink_it($SKIN->base_url."&act=help");
|
||||
exit();
|
||||
|
||||
|
||||
}
|
||||
|
||||
//=====================================================
|
||||
|
||||
function list_files()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$ADMIN->page_detail = "You may add/edit and remove help files below.";
|
||||
$ADMIN->page_title = "Help File Management";
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$SKIN->td_header[] = array( "Title" , "50%" );
|
||||
$SKIN->td_header[] = array( "Edit" , "30%" );
|
||||
$SKIN->td_header[] = array( "Remove" , "20%" );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Current Help Files" );
|
||||
|
||||
$DB->query("SELECT * from ibf_faq ORDER BY id ASC");
|
||||
|
||||
if ( $DB->get_num_rows() )
|
||||
{
|
||||
while ( $r = $DB->fetch_row() )
|
||||
{
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>".stripslashes($r['title'])."</b><br>".stripslashes($r['description']),
|
||||
"<center><a href='".$SKIN->base_url."&act=help&code=edit&id={$r['id']}'>Edit</a></center>",
|
||||
"<center><a href='".$SKIN->base_url."&act=help&code=remove&id={$r['id']}'>Remove</a></center>",
|
||||
) );
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_basic("<a href='".$SKIN->base_url."&act=help&code=new'>Add New Help File</a>", "center", "title" );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
File diff suppressed because it is too large.
Load diff
+208
-203
@@ -1,204 +1,209 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IBFORUMS v1
|
||||
| ========================================
|
||||
| by Matthew Mecham and David Baxter
|
||||
| (c) 2001,2002 IBForums
|
||||
| http://www.ibforums.com
|
||||
| ========================================
|
||||
| Web: http://www.ibforums.com
|
||||
| Email: phpboards@ibforums.com
|
||||
| Licence Info: phpib-licence@ibforums.com
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Admin "welcome" screen functions
|
||||
| > Module written by Matt Mecham
|
||||
| > Date started: 1st march 2002
|
||||
|
|
||||
| > Module Version Number: 1.0.0
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
$idx = new index_page();
|
||||
|
||||
|
||||
class index_page {
|
||||
|
||||
|
||||
function index_page() {
|
||||
global $DB, $IN, $INFO, $ADMIN, $SKIN, $std;
|
||||
|
||||
$DB->query("SELECT * FROM ibf_stats");
|
||||
|
||||
$row = $DB->fetch_row();
|
||||
|
||||
if ($row['TOTAL_REPLIES'] < 0) $row['TOTAL_REPLIES'] = 0;
|
||||
if ($row['TOTAL_TOPICS'] < 0) $row['TOTAL_TOPICS'] = 0;
|
||||
if ($row['MEM_COUNT'] < 0) $row['MEM_COUNT'] = 0;
|
||||
|
||||
$DB->query("SELECT COUNT(*) as reg FROM ibf_members WHERE mgroup='".$INFO['auth_group']."' AND (new_pass='' or new_pass IS NULL)");
|
||||
$reg = $DB->fetch_row();
|
||||
|
||||
if ($reg['reg'] < 1 ) $reg['reg'] = 0;
|
||||
|
||||
//-------------------------------------------------
|
||||
// Make sure the uploads path is correct
|
||||
//-------------------------------------------------
|
||||
|
||||
$uploads_size = 0;
|
||||
|
||||
if ($dh = opendir( $INFO['upload_dir'] ))
|
||||
{
|
||||
while ( $file = readdir( $dh ) )
|
||||
{
|
||||
if ( !preg_match( "/^..?$|^index/i", $file ) )
|
||||
{
|
||||
$uploads_size += @filesize( $INFO['upload_dir'] . "/" . $file );
|
||||
}
|
||||
}
|
||||
closedir( $dh );
|
||||
}
|
||||
|
||||
// This piece of code from Jesse's (jesse@jess.on.ca) contribution
|
||||
// to the PHP manual @ php.net
|
||||
|
||||
if ($uploads_size >= 1048576)
|
||||
{
|
||||
$uploads_size = round($uploads_size / 1048576 * 100 ) / 100 . " mb";
|
||||
}
|
||||
else if ($uploads_size >= 1024)
|
||||
{
|
||||
$uploads_size = round($uploads_size / 1024 * 100 ) / 100 . " k";
|
||||
}
|
||||
else
|
||||
{
|
||||
$uploads_size = $uploads_size . " bytes";
|
||||
}
|
||||
|
||||
//+-----------------------------------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Administrators using the CP" );
|
||||
|
||||
$t_time = time() - 60*10;
|
||||
|
||||
$DB->query("SELECT DISTINCT(MEMBER_NAME) FROM ibf_admin_sessions WHERE RUNNING_TIME > $t_time");
|
||||
|
||||
$mem_array = array();
|
||||
|
||||
while ( $r = $DB->fetch_row() )
|
||||
{
|
||||
$mem_array[] = $r['MEMBER_NAME'];
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_basic( implode(", ", $mem_array ) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
//+-----------------------------------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_spacer();
|
||||
|
||||
//+-----------------------------------------------------------
|
||||
|
||||
$SKIN->td_header[] = array( "Definition", "25%" );
|
||||
$SKIN->td_header[] = array( "Value" , "25%" );
|
||||
$SKIN->td_header[] = array( "Definition", "25%" );
|
||||
$SKIN->td_header[] = array( "Value" , "25%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "System Overview" );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "Total Unique Topics" , $row['TOTAL_TOPICS'],
|
||||
"Total Replies to topics" , $row['TOTAL_REPLIES']
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "Total Members" , $row['MEM_COUNT'], "Public Upload Folder Size", $uploads_size ) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<a href='{$SKIN->base_url}&act=mem&code=mod'>Users awaiting validation</a>" , $reg['reg'],
|
||||
" ", " ",
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
//+-----------------------------------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_spacer();
|
||||
|
||||
//+-----------------------------------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_form();
|
||||
|
||||
$SKIN->td_header[] = array( " " , "40%" );
|
||||
$SKIN->td_header[] = array( " " , "30%" );
|
||||
$SKIN->td_header[] = array( " " , "30%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Quick Clicks" );
|
||||
|
||||
$ADMIN->html .= "
|
||||
|
||||
<script language='javascript'>
|
||||
<!--
|
||||
function edit_member() {
|
||||
|
||||
if (document.forms[0].username.value == \"\") {
|
||||
alert(\"You must enter a username!\");
|
||||
} else {
|
||||
window.parent.body.location = '{$SKIN->base_url}' + '&act=mem&code=stepone&USER_NAME=' + escape(document.forms[0].username.value);
|
||||
}
|
||||
}
|
||||
|
||||
function new_cat() {
|
||||
|
||||
if (document.forms[0].cat_name.value == \"\") {
|
||||
alert(\"You must enter a category name!\");
|
||||
} else {
|
||||
window.parent.body.location = '{$SKIN->base_url}' + '&act=cat&code=new&name=' + escape(document.forms[0].cat_name.value);
|
||||
}
|
||||
}
|
||||
|
||||
function new_forum() {
|
||||
|
||||
if (document.forms[0].forum_name.value == \"\") {
|
||||
alert(\"You must enter a forum name!\");
|
||||
} else {
|
||||
window.parent.body.location = '{$SKIN->base_url}' + '&act=forum&code=new&name=' + escape(document.forms[0].forum_name.value);
|
||||
}
|
||||
}
|
||||
//-->
|
||||
|
||||
</script>
|
||||
<form name='DOIT' action=''>
|
||||
|
||||
";
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "Edit Member:",
|
||||
"<input type='text' style='width:100%' id='textinput' name='username' value='Enter name here' onfocus='this.value=\"\"'>",
|
||||
"<input type='button' value='Find Member' id='button' onClick='edit_member()'>"
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "Add New Category:",
|
||||
"<input type='text' style='width:100%' name='cat_name' id='textinput' value='Category title here' onfocus='this.value=\"\"'>",
|
||||
"<input type='button' value='Add Category' id='button' onClick='new_cat()'>"
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "Add New Forum:",
|
||||
"<input type='text' style='width:100%' name='forum_name' id='textinput' value='Forum title here' onfocus='this.value=\"\"'>",
|
||||
"<input type='button' value='Add Forum' id='button' onClick='new_forum()'>"
|
||||
) );
|
||||
|
||||
$ADMIN->html .= "</form>";
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Board v1.1
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001,2002 Invision Power Services
|
||||
| http://www.ibforums.com
|
||||
| ========================================
|
||||
| Web: http://www.ibforums.com
|
||||
| Email: phpboards@ibforums.com
|
||||
| Licence Info: phpib-licence@ibforums.com
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Admin "welcome" screen functions
|
||||
| > Module written by Matt Mecham
|
||||
| > Date started: 1st march 2002
|
||||
|
|
||||
| > Module Version Number: 1.0.0
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
$idx = new index_page();
|
||||
|
||||
|
||||
class index_page {
|
||||
|
||||
|
||||
function index_page() {
|
||||
global $DB, $IN, $INFO, $ADMIN, $SKIN, $std;
|
||||
|
||||
$DB->query("SELECT * FROM ibf_stats");
|
||||
|
||||
$row = $DB->fetch_row();
|
||||
|
||||
if ($row['TOTAL_REPLIES'] < 0) $row['TOTAL_REPLIES'] = 0;
|
||||
if ($row['TOTAL_TOPICS'] < 0) $row['TOTAL_TOPICS'] = 0;
|
||||
if ($row['MEM_COUNT'] < 0) $row['MEM_COUNT'] = 0;
|
||||
|
||||
$DB->query("SELECT COUNT(*) as reg FROM ibf_members WHERE mgroup='".$INFO['auth_group']."' AND (new_pass='' or new_pass IS NULL)");
|
||||
$reg = $DB->fetch_row();
|
||||
|
||||
if ($reg['reg'] < 1 ) $reg['reg'] = 0;
|
||||
|
||||
$DB->query("SELECT COUNT(*) as coppa FROM ibf_members WHERE mgroup='".$INFO['auth_group']."' AND coppa_user=1");
|
||||
$coppa = $DB->fetch_row();
|
||||
|
||||
if ($coppa['coppa'] < 1 ) $coppa['coppa'] = 0;
|
||||
|
||||
//-------------------------------------------------
|
||||
// Make sure the uploads path is correct
|
||||
//-------------------------------------------------
|
||||
|
||||
$uploads_size = 0;
|
||||
|
||||
if ($dh = opendir( $INFO['upload_dir'] ))
|
||||
{
|
||||
while ( $file = readdir( $dh ) )
|
||||
{
|
||||
if ( !preg_match( "/^..?$|^index/i", $file ) )
|
||||
{
|
||||
$uploads_size += @filesize( $INFO['upload_dir'] . "/" . $file );
|
||||
}
|
||||
}
|
||||
closedir( $dh );
|
||||
}
|
||||
|
||||
// This piece of code from Jesse's (jesse@jess.on.ca) contribution
|
||||
// to the PHP manual @ php.net
|
||||
|
||||
if ($uploads_size >= 1048576)
|
||||
{
|
||||
$uploads_size = round($uploads_size / 1048576 * 100 ) / 100 . " mb";
|
||||
}
|
||||
else if ($uploads_size >= 1024)
|
||||
{
|
||||
$uploads_size = round($uploads_size / 1024 * 100 ) / 100 . " k";
|
||||
}
|
||||
else
|
||||
{
|
||||
$uploads_size = $uploads_size . " bytes";
|
||||
}
|
||||
|
||||
//+-----------------------------------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Administrators using the CP" );
|
||||
|
||||
$t_time = time() - 60*10;
|
||||
|
||||
$DB->query("SELECT DISTINCT(MEMBER_NAME) FROM ibf_admin_sessions WHERE RUNNING_TIME > $t_time");
|
||||
|
||||
$mem_array = array();
|
||||
|
||||
while ( $r = $DB->fetch_row() )
|
||||
{
|
||||
$mem_array[] = $r['MEMBER_NAME'];
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_basic( implode(", ", $mem_array ) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
//+-----------------------------------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_spacer();
|
||||
|
||||
//+-----------------------------------------------------------
|
||||
|
||||
$SKIN->td_header[] = array( "Definition", "25%" );
|
||||
$SKIN->td_header[] = array( "Value" , "25%" );
|
||||
$SKIN->td_header[] = array( "Definition", "25%" );
|
||||
$SKIN->td_header[] = array( "Value" , "25%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "System Overview" );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "Total Unique Topics" , $row['TOTAL_TOPICS'],
|
||||
"Total Replies to topics" , $row['TOTAL_REPLIES']
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "Total Members" , $row['MEM_COUNT'], "Public Upload Folder Size", $uploads_size ) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<a href='{$SKIN->base_url}&act=mem&code=mod'>Users awaiting validation</a>" , $reg['reg'],
|
||||
"<a href='{$SKIN->base_url}&act=mem&code=mod'>COPPA Requests</a> from 'Users awaiting validation' total", $coppa['coppa'],
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
//+-----------------------------------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_spacer();
|
||||
|
||||
//+-----------------------------------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_form();
|
||||
|
||||
$SKIN->td_header[] = array( " " , "40%" );
|
||||
$SKIN->td_header[] = array( " " , "30%" );
|
||||
$SKIN->td_header[] = array( " " , "30%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Quick Clicks" );
|
||||
|
||||
$ADMIN->html .= "
|
||||
|
||||
<script language='javascript'>
|
||||
<!--
|
||||
function edit_member() {
|
||||
|
||||
if (document.forms[0].username.value == \"\") {
|
||||
alert(\"You must enter a username!\");
|
||||
} else {
|
||||
window.parent.body.location = '{$SKIN->base_url}' + '&act=mem&code=stepone&USER_NAME=' + escape(document.forms[0].username.value);
|
||||
}
|
||||
}
|
||||
|
||||
function new_cat() {
|
||||
|
||||
if (document.forms[0].cat_name.value == \"\") {
|
||||
alert(\"You must enter a category name!\");
|
||||
} else {
|
||||
window.parent.body.location = '{$SKIN->base_url}' + '&act=cat&code=new&name=' + escape(document.forms[0].cat_name.value);
|
||||
}
|
||||
}
|
||||
|
||||
function new_forum() {
|
||||
|
||||
if (document.forms[0].forum_name.value == \"\") {
|
||||
alert(\"You must enter a forum name!\");
|
||||
} else {
|
||||
window.parent.body.location = '{$SKIN->base_url}' + '&act=forum&code=new&name=' + escape(document.forms[0].forum_name.value);
|
||||
}
|
||||
}
|
||||
//-->
|
||||
|
||||
</script>
|
||||
<form name='DOIT' action=''>
|
||||
|
||||
";
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "Edit Member:",
|
||||
"<input type='text' style='width:100%' id='textinput' name='username' value='Enter name here' onfocus='this.value=\"\"'>",
|
||||
"<input type='button' value='Find Member' id='button' onClick='edit_member()'>"
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "Add New Category:",
|
||||
"<input type='text' style='width:100%' name='cat_name' id='textinput' value='Category title here' onfocus='this.value=\"\"'>",
|
||||
"<input type='button' value='Add Category' id='button' onClick='new_cat()'>"
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "Add New Forum:",
|
||||
"<input type='text' style='width:100%' name='forum_name' id='textinput' value='Forum title here' onfocus='this.value=\"\"'>",
|
||||
"<input type='button' value='Add Forum' id='button' onClick='new_forum()'>"
|
||||
) );
|
||||
|
||||
$ADMIN->html .= "</form>";
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,143 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Board v1.1
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001,2002 Invision Power Services
|
||||
| http://www.ibforums.com
|
||||
| ========================================
|
||||
| Web: http://www.ibforums.com
|
||||
| Email: phpboards@ibforums.com
|
||||
| Licence Info: phpib-licence@ibforums.com
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPS Remote Call thingy
|
||||
| > Module written by Matt Mecham
|
||||
| > Date started: 17th October 2002
|
||||
|
|
||||
| > Module Version Number: 1.0.0
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
// Ensure we've not accessed this script directly:
|
||||
|
||||
|
||||
|
||||
$idx = new ad_ips();
|
||||
|
||||
|
||||
class ad_ips {
|
||||
|
||||
var $base_url;
|
||||
|
||||
var $colours = array();
|
||||
|
||||
var $url = "http://www.invisionboard.com/acp/";
|
||||
|
||||
var $version = "1.1";
|
||||
|
||||
function ad_ips() {
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
switch($IN['code'])
|
||||
{
|
||||
|
||||
case 'news':
|
||||
$this->news();
|
||||
break;
|
||||
|
||||
case 'updates':
|
||||
$this->updates();
|
||||
break;
|
||||
|
||||
case 'docs':
|
||||
$this->docs();
|
||||
break;
|
||||
|
||||
case 'support':
|
||||
$this->support();
|
||||
break;
|
||||
|
||||
case 'host':
|
||||
$this->host();
|
||||
break;
|
||||
|
||||
case 'purchase':
|
||||
$this->purchase();
|
||||
break;
|
||||
|
||||
//-------------------------
|
||||
default:
|
||||
exit();
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function news()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
@header("Location: ".$this->url."?news");
|
||||
exit();
|
||||
}
|
||||
|
||||
function updates()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
//@header("Location: ".$this->url."?updates&version=".$this->version);
|
||||
@header("Location: ".$this->url."?updates");
|
||||
exit();
|
||||
}
|
||||
|
||||
function docs()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
@header("Location: ".$this->url."?docs");
|
||||
exit();
|
||||
}
|
||||
|
||||
function support()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
@header("Location: ".$this->url."?support");
|
||||
exit();
|
||||
}
|
||||
|
||||
function host()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
@header("Location: ".$this->url."?host");
|
||||
exit();
|
||||
}
|
||||
|
||||
function purchase()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
@header("Location: ".$this->url."?purchase");
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
+1071
-1002
File diff suppressed because it is too large.
Load diff
+2422
-1582
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
+283
-281
@@ -1,282 +1,284 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IBFORUMS v1
|
||||
| ========================================
|
||||
| by Matthew Mecham and David Baxter
|
||||
| (c) 2001,2002 IBForums
|
||||
| http://www.ibforums.com
|
||||
| ========================================
|
||||
| Web: http://www.ibforums.com
|
||||
| Email: phpboards@ibforums.com
|
||||
| Licence Info: phpib-licence@ibforums.com
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Import functions
|
||||
| > Module written by Matt Mecham
|
||||
| > Date started: 22nd April 2002
|
||||
|
|
||||
| > Module Version Number: 1.0.0
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
// Ensure we've not accessed this script directly:
|
||||
|
||||
|
||||
|
||||
$idx = new ad_modlogs();
|
||||
|
||||
|
||||
class ad_modlogs {
|
||||
|
||||
var $base_url;
|
||||
|
||||
function ad_modlogs() {
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
switch($IN['code'])
|
||||
{
|
||||
|
||||
case 'view':
|
||||
$this->view();
|
||||
break;
|
||||
|
||||
case 'remove':
|
||||
$this->remove();
|
||||
break;
|
||||
|
||||
|
||||
//-------------------------
|
||||
default:
|
||||
$this->list_current();
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//---------------------------------------------
|
||||
// Remove archived files
|
||||
//---------------------------------------------
|
||||
|
||||
function view()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$start = $IN['st'] ? $IN['st'] : 0;
|
||||
|
||||
$ADMIN->page_detail = "Viewing all actions by a moderator";
|
||||
$ADMIN->page_title = "Moderator Logs Manager";
|
||||
|
||||
if ($IN['search_string'] == "")
|
||||
{
|
||||
$DB->query("SELECT COUNT(id) as count FROM ibf_moderator_logs WHERE member_id='".$IN['mid']."'");
|
||||
$row = $DB->fetch_row();
|
||||
|
||||
$row_count = $row['count'];
|
||||
|
||||
$query = "&act=modlog&mid={$IN['mid']}&code=view";
|
||||
|
||||
$DB->query("SELECT m.*, f.id as forum_id, f.name FROM ibf_moderator_logs m, ibf_forums f WHERE m.member_id='".$IN['mid']."' AND f.id=m.forum_id ORDER BY m.ctime DESC LIMIT $start, 20");
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$IN['search_string'] = urldecode($IN['search_string']);
|
||||
|
||||
if ( ($IN['search_type'] == 'topic_id') or ($IN['search_type'] == 'forum_id') )
|
||||
{
|
||||
$dbq = "m.".$IN['search_type']."='".$IN['search_string']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$dbq = "m.".$IN['search_type']." LIKE '%".$IN['search_string']."%'";
|
||||
}
|
||||
|
||||
$DB->query("SELECT COUNT(m.id) as count FROM ibf_moderator_logs m WHERE $dbq");
|
||||
$row = $DB->fetch_row();
|
||||
|
||||
$row_count = $row['count'];
|
||||
|
||||
$query = "&act=modlog&code=view&search_type={$IN['search_type']}&search_string=".urlencode($IN['search_string']);
|
||||
|
||||
$DB->query("SELECT m.*, f.id as forum_id, f.name FROM ibf_moderator_logs m, ibf_forums f WHERE $dbq AND f.id=m.forum_id ORDER BY m.ctime DESC LIMIT $start, 20");
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
$links = $std->build_pagelinks( array( 'TOTAL_POSS' => $row_count,
|
||||
'PER_PAGE' => 20,
|
||||
'CUR_ST_VAL' => $start,
|
||||
'L_SINGLE' => "Single Page",
|
||||
'L_MULTI' => "Pages: ",
|
||||
'BASE_URL' => $ADMIN->base_url.$query,
|
||||
)
|
||||
);
|
||||
|
||||
$ADMIN->page_detail = "You may view and remove actions performed by your moderators";
|
||||
$ADMIN->page_title = "Moderator Logs Manager";
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$SKIN->td_header[] = array( "Member Name" , "15%" );
|
||||
$SKIN->td_header[] = array( "Action Perfomed" , "15%" );
|
||||
$SKIN->td_header[] = array( "Forum" , "15%" );
|
||||
$SKIN->td_header[] = array( "Topic Title" , "25%" );
|
||||
$SKIN->td_header[] = array( "Time of action" , "20%" );
|
||||
$SKIN->td_header[] = array( "IP address" , "10%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Saved Moderator Logs" );
|
||||
$ADMIN->html .= $SKIN->add_td_basic($links, 'center', 'catrow');
|
||||
|
||||
if ( $DB->get_num_rows() )
|
||||
{
|
||||
while ( $row = $DB->fetch_row() )
|
||||
{
|
||||
|
||||
$row['ctime'] = $std->get_date( $row['ctime'], 'LONG' );
|
||||
|
||||
$sess_id = preg_replace( "/^.+?s=(\w{32}).+?$/" , "\\1", $row['http_referer'] );
|
||||
$row['http_referer'] = preg_replace( "/s=(\w){32}/" , "" , $row['http_referer'] );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>{$row['member_name']}</b>",
|
||||
"<span style='font-weight:bold;color:red'><a href='#' onClick=\"alert('HTTP REFERRER OF ACTION:\\n{$row['http_referer']}\\nSESSION ID OF ACTION:\\n$sess_id')\">{$row['action']}</a></span>",
|
||||
"<b>{$row['name']}</b>",
|
||||
"{$row['topic_title']}",
|
||||
"{$row['ctime']}",
|
||||
"{$row['ip_address']}",
|
||||
) );
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$ADMIN->html .= $SKIN->add_td_basic("<center>No results</center>");
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_basic($links, 'center', 'tdtop');
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
|
||||
//+-------------------------------
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
}
|
||||
|
||||
//---------------------------------------------
|
||||
// Remove archived files
|
||||
//---------------------------------------------
|
||||
|
||||
function remove()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
if ($IN['mid'] == "")
|
||||
{
|
||||
$ADMIN->error("You did not select a member ID to remove by!");
|
||||
}
|
||||
|
||||
$DB->query("DELETE FROM ibf_moderator_logs WHERE member_id='".$IN['mid']."'");
|
||||
|
||||
$std->boink_it($ADMIN->base_url."&act=modlog");
|
||||
exit();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// SHOW ALL LANGUAGE PACKS
|
||||
//-------------------------------------------------------------
|
||||
|
||||
function list_current()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$form_array = array();
|
||||
|
||||
$ADMIN->page_detail = "You may view and remove actions performed by your moderators";
|
||||
$ADMIN->page_title = "Moderator Logs Manager";
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$SKIN->td_header[] = array( "Member Name" , "30%" );
|
||||
$SKIN->td_header[] = array( "Actions Perfomed" , "20%" );
|
||||
$SKIN->td_header[] = array( "View all by member" , "20%" );
|
||||
$SKIN->td_header[] = array( "Remove all by member" , "30%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Saved Moderator Logs" );
|
||||
|
||||
$DB->query("SELECT m.*, count(m.id) as act_count from ibf_moderator_logs m GROUP BY m.member_id ORDER BY act_count DESC");
|
||||
|
||||
while ( $r = $DB->fetch_row() )
|
||||
{
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>{$r['member_name']}</b>",
|
||||
"<center>{$r['act_count']}</center>",
|
||||
"<center><a href='".$SKIN->base_url."&act=modlog&code=view&mid={$r['member_id']}'>View</a></center>",
|
||||
"<center><a href='".$SKIN->base_url."&act=modlog&code=remove&mid={$r['member_id']}'>Remove</a></center>",
|
||||
) );
|
||||
}
|
||||
|
||||
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
|
||||
//+-------------------------------
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'view' ),
|
||||
2 => array( 'act' , 'modlog' ),
|
||||
) );
|
||||
|
||||
$SKIN->td_header[] = array( " " , "40%" );
|
||||
$SKIN->td_header[] = array( " " , "60%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Search Moderator Logs" );
|
||||
|
||||
$form_array = array(
|
||||
0 => array( 'topic_title', 'Topic Title' ),
|
||||
1 => array( 'ip_address', 'IP Address' ),
|
||||
2 => array( 'member_name', 'Member Name' ),
|
||||
3 => array( 'topic_id' , 'Topic ID' ),
|
||||
4 => array( 'forum_id' , 'Forum ID' )
|
||||
);
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Search for...</b>" ,
|
||||
$SKIN->form_input( "search_string")
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Search in...</b>" ,
|
||||
$SKIN->form_dropdown( "search_type", $form_array)
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_form("Search");
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
//+-------------------------------
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Board v1.1
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001,2002 Invision Power Services
|
||||
| http://www.ibforums.com
|
||||
| ========================================
|
||||
| Web: http://www.ibforums.com
|
||||
| Email: phpboards@ibforums.com
|
||||
| Licence Info: phpib-licence@ibforums.com
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Import functions
|
||||
| > Module written by Matt Mecham
|
||||
| > Date started: 22nd April 2002
|
||||
|
|
||||
| > Module Version Number: 1.0.0
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
// Ensure we've not accessed this script directly:
|
||||
|
||||
|
||||
|
||||
$idx = new ad_modlogs();
|
||||
|
||||
|
||||
class ad_modlogs {
|
||||
|
||||
var $base_url;
|
||||
|
||||
function ad_modlogs() {
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
switch($IN['code'])
|
||||
{
|
||||
|
||||
case 'view':
|
||||
$this->view();
|
||||
break;
|
||||
|
||||
case 'remove':
|
||||
$this->remove();
|
||||
break;
|
||||
|
||||
|
||||
//-------------------------
|
||||
default:
|
||||
$this->list_current();
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//---------------------------------------------
|
||||
// Remove archived files
|
||||
//---------------------------------------------
|
||||
|
||||
function view()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$start = $IN['st'] ? $IN['st'] : 0;
|
||||
|
||||
$ADMIN->page_detail = "Viewing all actions by a moderator";
|
||||
$ADMIN->page_title = "Moderator Logs Manager";
|
||||
|
||||
if ($IN['search_string'] == "")
|
||||
{
|
||||
$DB->query("SELECT COUNT(id) as count FROM ibf_moderator_logs WHERE member_id='".$IN['mid']."'");
|
||||
$row = $DB->fetch_row();
|
||||
|
||||
$row_count = $row['count'];
|
||||
|
||||
$query = "&act=modlog&mid={$IN['mid']}&code=view";
|
||||
|
||||
$DB->query("SELECT m.*, f.id as forum_id, f.name FROM ibf_moderator_logs m, ibf_forums f WHERE m.member_id='".$IN['mid']."' AND f.id=m.forum_id ORDER BY m.ctime DESC LIMIT $start, 20");
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$IN['search_string'] = urldecode($IN['search_string']);
|
||||
|
||||
if ( ($IN['search_type'] == 'topic_id') or ($IN['search_type'] == 'forum_id') )
|
||||
{
|
||||
$dbq = "m.".$IN['search_type']."='".$IN['search_string']."'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$dbq = "m.".$IN['search_type']." LIKE '%".$IN['search_string']."%'";
|
||||
}
|
||||
|
||||
$DB->query("SELECT COUNT(m.id) as count FROM ibf_moderator_logs m WHERE $dbq");
|
||||
$row = $DB->fetch_row();
|
||||
|
||||
$row_count = $row['count'];
|
||||
|
||||
$query = "&act=modlog&code=view&search_type={$IN['search_type']}&search_string=".urlencode($IN['search_string']);
|
||||
|
||||
$DB->query("SELECT m.*, f.id as forum_id, f.name FROM ibf_moderator_logs m, ibf_forums f WHERE $dbq AND f.id=m.forum_id ORDER BY m.ctime DESC LIMIT $start, 20");
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
$links = $std->build_pagelinks( array( 'TOTAL_POSS' => $row_count,
|
||||
'PER_PAGE' => 20,
|
||||
'CUR_ST_VAL' => $start,
|
||||
'L_SINGLE' => "Single Page",
|
||||
'L_MULTI' => "Pages: ",
|
||||
'BASE_URL' => $ADMIN->base_url.$query,
|
||||
)
|
||||
);
|
||||
|
||||
$ADMIN->page_detail = "You may view and remove actions performed by your moderators";
|
||||
$ADMIN->page_title = "Moderator Logs Manager";
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$SKIN->td_header[] = array( "Member Name" , "15%" );
|
||||
$SKIN->td_header[] = array( "Action Perfomed" , "15%" );
|
||||
$SKIN->td_header[] = array( "Forum" , "15%" );
|
||||
$SKIN->td_header[] = array( "Topic Title" , "25%" );
|
||||
$SKIN->td_header[] = array( "Time of action" , "20%" );
|
||||
$SKIN->td_header[] = array( "IP address" , "10%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Saved Moderator Logs" );
|
||||
$ADMIN->html .= $SKIN->add_td_basic($links, 'center', 'catrow');
|
||||
|
||||
if ( $DB->get_num_rows() )
|
||||
{
|
||||
while ( $row = $DB->fetch_row() )
|
||||
{
|
||||
|
||||
$row['ctime'] = $std->get_date( $row['ctime'], 'LONG' );
|
||||
|
||||
$sess_id = preg_replace( "/^.+?s=(\w{32}).+?$/" , "\\1", $row['http_referer'] );
|
||||
$row['http_referer'] = preg_replace( "/s=(\w){32}/" , "" , $row['http_referer'] );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>{$row['member_name']}</b>",
|
||||
"<span style='font-weight:bold;color:red'><a href='#' onClick=\"alert('HTTP REFERRER OF ACTION:\\n{$row['http_referer']}\\nSESSION ID OF ACTION:\\n$sess_id')\">{$row['action']}</a></span>",
|
||||
"<b>{$row['name']}</b>",
|
||||
"{$row['topic_title']}",
|
||||
"{$row['ctime']}",
|
||||
"{$row['ip_address']}",
|
||||
) );
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$ADMIN->html .= $SKIN->add_td_basic("<center>No results</center>");
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_basic($links, 'center', 'tdtop');
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
|
||||
//+-------------------------------
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
}
|
||||
|
||||
//---------------------------------------------
|
||||
// Remove archived files
|
||||
//---------------------------------------------
|
||||
|
||||
function remove()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
if ($IN['mid'] == "")
|
||||
{
|
||||
$ADMIN->error("You did not select a member ID to remove by!");
|
||||
}
|
||||
|
||||
$DB->query("DELETE FROM ibf_moderator_logs WHERE member_id='".$IN['mid']."'");
|
||||
|
||||
$ADMIN->save_log("Removed Moderator Logs");
|
||||
|
||||
$std->boink_it($ADMIN->base_url."&act=modlog");
|
||||
exit();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// SHOW ALL LANGUAGE PACKS
|
||||
//-------------------------------------------------------------
|
||||
|
||||
function list_current()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$form_array = array();
|
||||
|
||||
$ADMIN->page_detail = "You may view and remove actions performed by your moderators";
|
||||
$ADMIN->page_title = "Moderator Logs Manager";
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$SKIN->td_header[] = array( "Member Name" , "30%" );
|
||||
$SKIN->td_header[] = array( "Actions Perfomed" , "20%" );
|
||||
$SKIN->td_header[] = array( "View all by member" , "20%" );
|
||||
$SKIN->td_header[] = array( "Remove all by member" , "30%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Saved Moderator Logs" );
|
||||
|
||||
$DB->query("SELECT m.*, count(m.id) as act_count from ibf_moderator_logs m GROUP BY m.member_id ORDER BY act_count DESC");
|
||||
|
||||
while ( $r = $DB->fetch_row() )
|
||||
{
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>{$r['member_name']}</b>",
|
||||
"<center>{$r['act_count']}</center>",
|
||||
"<center><a href='".$SKIN->base_url."&act=modlog&code=view&mid={$r['member_id']}'>View</a></center>",
|
||||
"<center><a href='".$SKIN->base_url."&act=modlog&code=remove&mid={$r['member_id']}'>Remove</a></center>",
|
||||
) );
|
||||
}
|
||||
|
||||
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
|
||||
//+-------------------------------
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'view' ),
|
||||
2 => array( 'act' , 'modlog' ),
|
||||
) );
|
||||
|
||||
$SKIN->td_header[] = array( " " , "40%" );
|
||||
$SKIN->td_header[] = array( " " , "60%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Search Moderator Logs" );
|
||||
|
||||
$form_array = array(
|
||||
0 => array( 'topic_title', 'Topic Title' ),
|
||||
1 => array( 'ip_address', 'IP Address' ),
|
||||
2 => array( 'member_name', 'Member Name' ),
|
||||
3 => array( 'topic_id' , 'Topic ID' ),
|
||||
4 => array( 'forum_id' , 'Forum ID' )
|
||||
);
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Search for...</b>" ,
|
||||
$SKIN->form_input( "search_string")
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Search in...</b>" ,
|
||||
$SKIN->form_dropdown( "search_type", $form_array)
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_form("Search");
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
//+-------------------------------
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,985 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Board v1.1
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001,2002 Invision Power Services
|
||||
| http://www.ibforums.com
|
||||
| ========================================
|
||||
| Web: http://www.ibforums.com
|
||||
| Email: phpboards@ibforums.com
|
||||
| Licence Info: phpib-licence@ibforums.com
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > mySQL Admin Stuff
|
||||
| > Module written by Matt Mecham
|
||||
| > Date started: 21st October 2002
|
||||
|
|
||||
| > Module Version Number: 1.0.0
|
||||
| > Music listen to when coding this: Martin Grech - Open Heart Zoo
|
||||
| > Talk about useless information!
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
// Ensure we've not accessed this script directly:
|
||||
|
||||
@set_time_limit(1200);
|
||||
|
||||
$idx = new ad_mysql();
|
||||
|
||||
|
||||
class ad_mysql {
|
||||
|
||||
var $base_url;
|
||||
var $mysql_version = "";
|
||||
var $true_version = "";
|
||||
var $str_gzip_header = "\x1f\x8b\x08\x00\x00\x00\x00\x00";
|
||||
|
||||
function ad_mysql() {
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_POST_VARS, $HTTP_GET_VARS;
|
||||
|
||||
// Make sure we're a root admin, or else!
|
||||
|
||||
if ($MEMBER['mgroup'] != $INFO['admin_group'])
|
||||
{
|
||||
$ADMIN->error("Sorry, these functions are for the root admin group only");
|
||||
}
|
||||
|
||||
//---------------------------------------
|
||||
// Get the mySQL version.
|
||||
// Adapted from phpMyAdmin
|
||||
//---------------------------------------
|
||||
|
||||
$DB->query("SELECT VERSION() AS version");
|
||||
|
||||
if ( ! $row = $DB->fetch_row() )
|
||||
{
|
||||
$DB->query("SHOW VARIABLES LIKE 'version'");
|
||||
$row = $DB->fetch_row();
|
||||
}
|
||||
|
||||
$this->true_version = $row['version'];
|
||||
|
||||
$no_array = explode( '.', preg_replace( "/^(.+?)[-_]?/", "\\1", $row['version']) );
|
||||
|
||||
$one = (!isset($no_array) || !isset($no_array[0])) ? 3 : $no_array[0];
|
||||
$two = (!isset($no_array[1])) ? 21 : $no_array[1];
|
||||
$three = (!isset($no_array[2])) ? 0 : $no_array[2];
|
||||
|
||||
$this->mysql_version = (int)sprintf('%d%02d%02d', $one, $two, intval($three));
|
||||
|
||||
switch($IN['code'])
|
||||
{
|
||||
|
||||
case 'dotool':
|
||||
$this->run_tool();
|
||||
break;
|
||||
|
||||
case 'runtime':
|
||||
$this->view_sql("SHOW STATUS");
|
||||
break;
|
||||
|
||||
case 'system':
|
||||
$this->view_sql("SHOW VARIABLES");
|
||||
break;
|
||||
|
||||
case 'processes':
|
||||
$this->view_sql("SHOW PROCESSLIST");
|
||||
break;
|
||||
|
||||
case 'runsql':
|
||||
$q = $HTTP_POST_VARS['query'] == "" ? $HTTP_GET_VARS['query'] : $HTTP_POST_VARS['query'];
|
||||
$this->view_sql(trim(urldecode(stripslashes($q))));
|
||||
break;
|
||||
|
||||
case 'backup':
|
||||
$this->show_backup_form();
|
||||
break;
|
||||
|
||||
case 'safebackup':
|
||||
$this->sbup_splash();
|
||||
break;
|
||||
|
||||
case 'dosafebackup':
|
||||
$this->do_safe_backup();
|
||||
break;
|
||||
|
||||
case 'export_tbl':
|
||||
$this->do_safe_backup(trim(urldecode(stripslashes($HTTP_GET_VARS['tbl']))));
|
||||
break;
|
||||
|
||||
//-------------------------
|
||||
default:
|
||||
$this->list_index();
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//-----------------------------------------------
|
||||
// Back up baby, back up
|
||||
//-----------------------------------------------
|
||||
|
||||
function do_safe_backup($tbl_name="")
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
if ($tbl_name == "")
|
||||
{
|
||||
// Auto all tables
|
||||
$skip = intval($IN['skip']);
|
||||
$create_tbl = intval($IN['create_tbl']);
|
||||
$enable_gzip = intval($IN['enable_gzip']);
|
||||
$filename = 'ibf_dbbackup';
|
||||
}
|
||||
else
|
||||
{
|
||||
// Man. click export
|
||||
|
||||
$skip = 0;
|
||||
$create_tbl = 0;
|
||||
$enable_gzip = 1;
|
||||
$filename = $tbl_name;
|
||||
}
|
||||
|
||||
$output = "";
|
||||
|
||||
@header("Pragma: no-cache");
|
||||
|
||||
$do_gzip = 0;
|
||||
|
||||
if( $enable_gzip )
|
||||
{
|
||||
$phpver = phpversion();
|
||||
|
||||
if($phpver >= "4.0")
|
||||
{
|
||||
if(extension_loaded("zlib"))
|
||||
{
|
||||
$do_gzip = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if( $do_gzip != 0 )
|
||||
{
|
||||
@ob_start();
|
||||
@ob_implicit_flush(0);
|
||||
header("Content-Type: text/x-delimtext; name=\"$filename.sql.gz\"");
|
||||
header("Content-disposition: attachment; filename=$filename.sql.gz");
|
||||
}
|
||||
else
|
||||
{
|
||||
header("Content-Type: text/x-delimtext; name=\"$filename.sql\"");
|
||||
header("Content-disposition: attachment; filename=$filename.sql");
|
||||
}
|
||||
|
||||
//-----------------------------
|
||||
// Get tables to work on
|
||||
//-----------------------------
|
||||
|
||||
if ($tbl_name == "")
|
||||
{
|
||||
$tmp_tbl = $DB->get_table_names();
|
||||
|
||||
foreach($tmp_tbl as $tbl)
|
||||
{
|
||||
// Ensure that we're only peeking at IBF tables
|
||||
|
||||
if ( preg_match( "/^".$INFO['sql_tbl_prefix']."/", $tbl ) )
|
||||
{
|
||||
// We've started our headers, so print as we go to stop
|
||||
// poss memory problems
|
||||
|
||||
$this->get_table_sql($tbl, $create_tbl, $skip);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->get_table_sql($tbl_name, $create_tbl, $skip);
|
||||
}
|
||||
|
||||
//-----------------------------
|
||||
// GZIP?
|
||||
//-----------------------------
|
||||
|
||||
if($do_gzip)
|
||||
{
|
||||
$size = ob_get_length();
|
||||
$crc = crc32(ob_get_contents());
|
||||
$contents = gzcompress(ob_get_contents());
|
||||
ob_end_clean();
|
||||
echo $this->str_gzip_header
|
||||
.substr($contents, 0, strlen($contents) - 4)
|
||||
.$this->gzip_four_chars($crc)
|
||||
.$this->gzip_four_chars($size);
|
||||
}
|
||||
|
||||
exit();
|
||||
|
||||
}
|
||||
|
||||
//-----------------------------------------------
|
||||
// Internal handler to return content from table
|
||||
//-----------------------------------------------
|
||||
|
||||
function get_table_sql($tbl, $create_tbl, $skip=0)
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
if ($create_tbl)
|
||||
{
|
||||
// Generate table structure
|
||||
|
||||
$DB->query("SHOW CREATE TABLE ".$INFO['sql_database'].".".$tbl);
|
||||
|
||||
$ctable = $DB->fetch_row();
|
||||
|
||||
echo $this->sql_strip_ticks($ctable['Create Table']).";\n";
|
||||
}
|
||||
|
||||
// Are we skipping? Woohoo, where's me rope?!
|
||||
|
||||
if ($skip == 1)
|
||||
{
|
||||
if ($tbl == $INFO['sql_database'].'admin_sessions'
|
||||
OR $tbl == $INFO['sql_database'].'sessions'
|
||||
OR $tbl == $INFO['sql_database'].'reg_anti_spam'
|
||||
OR $tbl == $INFO['sql_database'].'search_results'
|
||||
)
|
||||
{
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
|
||||
// Get the data
|
||||
|
||||
$DB->query("SELECT * FROM $tbl");
|
||||
|
||||
// Check to make sure rows are in this
|
||||
// table, if not return.
|
||||
|
||||
$row_count = $DB->get_num_rows();
|
||||
|
||||
if ($row_count < 1)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
//---------------------------
|
||||
// Get col names
|
||||
//---------------------------
|
||||
|
||||
$f_list = "";
|
||||
|
||||
$fields = $DB->get_result_fields();
|
||||
|
||||
$cnt = count($fields);
|
||||
|
||||
for( $i = 0; $i < $cnt; $i++ )
|
||||
{
|
||||
$f_list .= $fields[$i]->name . ", ";
|
||||
}
|
||||
|
||||
$f_list = preg_replace( "/, $/", "", $f_list );
|
||||
|
||||
while ( $row = $DB->fetch_row() )
|
||||
{
|
||||
//---------------------------
|
||||
// Get col data
|
||||
//---------------------------
|
||||
|
||||
$d_list = "";
|
||||
|
||||
for( $i = 0; $i < $cnt; $i++ )
|
||||
{
|
||||
if ( ! isset($row[ $fields[$i]->name ]) )
|
||||
{
|
||||
$d_list .= "NULL,";
|
||||
}
|
||||
elseif ( $row[ $fields[$i]->name ] != '' )
|
||||
{
|
||||
$d_list .= "'".$this->sql_add_slashes($row[ $fields[$i]->name ]). "',";
|
||||
}
|
||||
else
|
||||
{
|
||||
$d_list .= "'',";
|
||||
}
|
||||
}
|
||||
|
||||
$d_list = preg_replace( "/,$/", "", $d_list );
|
||||
|
||||
echo "INSERT INTO $tbl ($f_list) VALUES($d_list);\n";
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
}
|
||||
|
||||
//-----------------------------------------------
|
||||
// sql_strip_ticks from field names
|
||||
//-----------------------------------------------
|
||||
|
||||
function sql_strip_ticks($data)
|
||||
{
|
||||
return str_replace( "`", "", $data );
|
||||
}
|
||||
|
||||
//-----------------------------------------------
|
||||
// Add slashes to single quotes to stop sql breaks
|
||||
//-----------------------------------------------
|
||||
|
||||
function sql_add_slashes($data)
|
||||
{
|
||||
$data = str_replace('\\', '\\\\', $data);
|
||||
$data = str_replace('\'', '\\\'', $data);
|
||||
$data = str_replace("\r", '\r' , $data);
|
||||
$data = str_replace("\n", '\n' , $data);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
//-----------------------------------------------
|
||||
// Almost there!
|
||||
//-----------------------------------------------
|
||||
|
||||
function sbup_splash()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$ADMIN->page_detail = "This section allows you to backup your database.";
|
||||
|
||||
$ADMIN->page_title = "mySQL ".$this->true_version." Back Up";
|
||||
|
||||
// Check for mySQL version..
|
||||
// Might change at some point..
|
||||
|
||||
if ( $this->mysql_version < 32321 )
|
||||
{
|
||||
$ADMIN->error("Sorry, mySQL version of less than 3.23.21 are not support by this backup utility");
|
||||
}
|
||||
|
||||
$SKIN->td_header[] = array( " " , "100%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Simple Back Up" );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array(
|
||||
"<b>Back Up mySQL Database</b><br><br>Once you have clicked the link below, please wait
|
||||
until your browser prompts you with a dialogue box. This may take some time depending on
|
||||
the size of the database you are backing up.
|
||||
<br><br>
|
||||
<b><a href='{$ADMIN->base_url}&act=mysql&code=dosafebackup&create_tbl={$IN['create_tbl']}&skip={$IN['skip']}&enable_gzip={$IN['enable_gzip']}'>Click here to start the backup</a></b>"
|
||||
) );
|
||||
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
function show_backup_form()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$ADMIN->page_detail = "This section allows you to backup your database.
|
||||
<br><br><b>Simple Backup</b>
|
||||
<br>This function compiles a single back up file and prompts a browser dialogue box for you to save
|
||||
the file. This is beneficial for PHP safe mode enabled hosts, but can only be used on small databases.
|
||||
<!--<br><br>
|
||||
<b>Advanced Backup</b>
|
||||
<br>This function allows you to split the backup into smaller sections and saves the backup to disk.
|
||||
<br>Note, this can only be used if you do not have PHP safe mode enabled.-->";
|
||||
|
||||
$ADMIN->page_title = "mySQL ".$this->true_version." Back Up";
|
||||
|
||||
// Check for mySQL version..
|
||||
// Might change at some point..
|
||||
|
||||
if ( $this->mysql_version < 32321 )
|
||||
{
|
||||
$ADMIN->error("Sorry, mySQL version of less than 3.23.21 are not support by this backup utility");
|
||||
}
|
||||
|
||||
$SKIN->td_header[] = array( " " , "60%" );
|
||||
$SKIN->td_header[] = array( " " , "40%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'act' , 'mysql' ),
|
||||
2 => array( 'code' , 'safebackup'),
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Simple Back Up" );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array(
|
||||
"<b>Add 'CREATE TABLE' statements?</b>",
|
||||
$SKIN->form_yes_no( 'create_tbl', 1),
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array(
|
||||
"<b>Skip non essential data?</b><br>Will not produce insert rows for ibf_sessions, ibf_admin_sessions, ibf_search_results, ibf_reg_anti_spam.",
|
||||
$SKIN->form_yes_no( 'skip', 1),
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array(
|
||||
"<b>GZIP Content?</b><br>Will produce a smaller file if GZIP is enabled.",
|
||||
$SKIN->form_yes_no( 'enable_gzip', 1),
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_form("Start Back Up");
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//-------------------------
|
||||
// Run mySQL queries
|
||||
//-------------------------
|
||||
|
||||
|
||||
function view_sql($sql)
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$limit = 50;
|
||||
$start = intval($IN['st']) == "" ? 0 : intval($IN['st']);
|
||||
$pages = "";
|
||||
|
||||
$ADMIN->page_detail = "This section allows you to administrate your mySQL database.$extra";
|
||||
$ADMIN->page_title = "mySQL ".$this->true_version." Tool Box";
|
||||
|
||||
$map = array( 'processes' => "SQL Processes",
|
||||
'runtime' => "SQL Runtime Information",
|
||||
'system' => "SQL System Variables",
|
||||
);
|
||||
|
||||
if ($map[ $IN['code'] ] != "")
|
||||
{
|
||||
$tbl_title = $map[ $IN['code'] ];
|
||||
$man_query = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$tbl_title = "Manual Query";
|
||||
$man_query = 1;
|
||||
}
|
||||
|
||||
//------------------------------------------------
|
||||
|
||||
if ($man_query == 1)
|
||||
{
|
||||
$SKIN->td_header[] = array( " " , "100%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'act' , 'mysql' ),
|
||||
2 => array( 'code' , 'runsql'),
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Run Query" );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<center>".$SKIN->form_textarea("query", $sql )."</center>" ) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_form("Run a New Query");
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
|
||||
// Check for drop, create and flush
|
||||
|
||||
if ( preg_match( "/^DROP|CREATE|FLUSH/i", trim($sql) ) )
|
||||
{
|
||||
$ADMIN->error = "Sorry, those queries are not allowed for your safety";
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------
|
||||
|
||||
$DB->return_die = 1;
|
||||
|
||||
$DB->query($sql);
|
||||
|
||||
// Check for errors..
|
||||
|
||||
if ( $DB->error != "")
|
||||
{
|
||||
$SKIN->td_header[] = array( " " , "100%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "SQL Error" );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array($DB->error) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
$ADMIN->output(); // End output and script
|
||||
|
||||
}
|
||||
|
||||
if ( preg_match( "/^INSERT|UPDATE|DELETE|ALTER/i", trim($sql) ) )
|
||||
{
|
||||
// We can't show any info, and if we're here, there isn't
|
||||
// an error, so we're good to go.
|
||||
|
||||
$SKIN->td_header[] = array( " " , "100%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "SQL Query Completed" );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array("Query: $sql<br>Executed Successfully") );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
$ADMIN->output(); // End output and script
|
||||
|
||||
}
|
||||
else if ( preg_match( "/^SELECT/i", $sql ) )
|
||||
{
|
||||
// Sort out the pages and stuff
|
||||
// auto limit if need be
|
||||
|
||||
if ( ! preg_match( "/LIMIT[ 0-9,]+$/i", $sql ) )
|
||||
{
|
||||
$rows_returned = $DB->get_num_rows();
|
||||
|
||||
if ($rows_returned > $limit)
|
||||
{
|
||||
// Get tbl name
|
||||
|
||||
//$tbl_name = preg_replace( "/(".$INFO['sql_tbl_prefix']."\S+?)([\s\.,]|$)/i", "\\1", $sql );
|
||||
|
||||
// Set up pages.
|
||||
|
||||
$links = $std->build_pagelinks( array( 'TOTAL_POSS' => $rows_returned,
|
||||
'PER_PAGE' => $limit,
|
||||
'CUR_ST_VAL' => $start,
|
||||
'L_SINGLE' => "Single Page",
|
||||
'L_MULTI' => "Pages: ",
|
||||
'BASE_URL' => $ADMIN->base_url."&act=mysql&code=runsql&query=".urlencode($sql),
|
||||
)
|
||||
);
|
||||
|
||||
$sql .= " LIMIT $start, $limit";
|
||||
|
||||
// Re-run with limit
|
||||
|
||||
$DB->query($sql);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$fields = $DB->get_result_fields();
|
||||
|
||||
$cnt = count($fields);
|
||||
|
||||
// Print the headers - we don't what or how many so...
|
||||
|
||||
for( $i = 0; $i < $cnt; $i++ )
|
||||
{
|
||||
$SKIN->td_header[] = array( $fields[$i]->name , "*" );
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Result: ".$tbl_title );
|
||||
|
||||
if ($links != "")
|
||||
{
|
||||
$pages = $SKIN->add_td_basic( $links, 'left', 'tdrow2' );
|
||||
|
||||
$ADMIN->html .= $pages;
|
||||
}
|
||||
|
||||
while( $r = $DB->fetch_row() )
|
||||
{
|
||||
|
||||
// Grab the rows - we don't what or how many so...
|
||||
|
||||
$rows = array();
|
||||
|
||||
for( $i = 0; $i < $cnt; $i++ )
|
||||
{
|
||||
if ($man_query == 1)
|
||||
{
|
||||
// Limit output
|
||||
if ( strlen($r[ $fields[$i]->name ]) > 200 )
|
||||
{
|
||||
$r[ $fields[$i]->name ] = substr($r[ $fields[$i]->name ], 0, 200) .'...';
|
||||
}
|
||||
}
|
||||
|
||||
$rows[] = wordwrap( htmlspecialchars(nl2br($r[ $fields[$i]->name ])) , 50, "<br>", 1 );
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( $rows );
|
||||
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// I'm A TOOL!
|
||||
//-------------------------------------------------------------
|
||||
|
||||
function run_tool()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$ADMIN->page_detail = "This section allows you to administrate your mySQL database.$extra";
|
||||
$ADMIN->page_title = "mySQL ".$this->true_version." Tool Box";
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// have we got some there tables me laddo?
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$tables = array();
|
||||
|
||||
foreach ($IN as $key => $value)
|
||||
{
|
||||
if ( preg_match( "/^tbl_(\S+)$/", $key, $match ) )
|
||||
{
|
||||
if ($IN[$match[0]])
|
||||
{
|
||||
$tables[] = $match[1];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( count($tables) < 1 )
|
||||
{
|
||||
$ADMIN->error("You must choose some tables to run this tool on or it's just plain outright silly");
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// What tool is one running?
|
||||
// optimize analyze check repair
|
||||
//-------------------------------------------------------------
|
||||
|
||||
if (strtoupper($IN['tool']) == 'DROP' || strtoupper($IN['tool']) == 'CREATE' || strtoupper($IN['tool']) == 'FLUSH')
|
||||
{
|
||||
$ADMIN->error("You can't do that, sorry");
|
||||
}
|
||||
|
||||
foreach($tables as $table)
|
||||
{
|
||||
$DB->query(strtoupper($IN['tool'])." TABLE $table");
|
||||
|
||||
$fields = $DB->get_result_fields();
|
||||
|
||||
$data = $DB->fetch_row();
|
||||
|
||||
$cnt = count($fields);
|
||||
|
||||
// Print the headers - we don't what or how many so...
|
||||
|
||||
for( $i = 0; $i < $cnt; $i++ )
|
||||
{
|
||||
$SKIN->td_header[] = array( $fields[$i]->name , "*" );
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Result: ".$IN['tool']." ".$table );
|
||||
|
||||
// Grab the rows - we don't what or how many so...
|
||||
|
||||
$rows = array();
|
||||
|
||||
for( $i = 0; $i < $cnt; $i++ )
|
||||
{
|
||||
$rows[] = $data[ $fields[$i]->name ];
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( $rows );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
}
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// SHOW ALL TABLES AND STUFF!
|
||||
// 5 hours ago this seemed like a damned good idea.
|
||||
// Now it's late and I want to replace all of this code with
|
||||
// header("Location: http://yoursite/phpmyadmin");
|
||||
//-------------------------------------------------------------
|
||||
|
||||
function list_index()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$form_array = array();
|
||||
|
||||
if ( $this->mysql_version < 32322 )
|
||||
{
|
||||
$extra = "<br><b>Note: your version of mySQL has a limited feature set and some tools have been removed</b>";
|
||||
}
|
||||
|
||||
$ADMIN->page_detail = "This section allows you to administrate your mySQL database.$extra";
|
||||
$ADMIN->page_title = "mySQL ".$this->true_version." Tool Box";
|
||||
|
||||
//+-------------------------------
|
||||
// Show advanced stuff for mySQL > 3.23.03
|
||||
//+-------------------------------
|
||||
|
||||
$idx_size = 0;
|
||||
$tbl_size = 0;
|
||||
|
||||
|
||||
$ADMIN->html .= "
|
||||
<script language='Javascript'>
|
||||
<!--
|
||||
function CheckAll(cb) {
|
||||
var fmobj = document.theForm;
|
||||
for (var i=0;i<fmobj.elements.length;i++) {
|
||||
var e = fmobj.elements[i];
|
||||
if ((e.name != 'allbox') && (e.type=='checkbox') && (!e.disabled)) {
|
||||
e.checked = fmobj.allbox.checked;
|
||||
}
|
||||
}
|
||||
}
|
||||
function CheckCheckAll(cb) {
|
||||
var fmobj = document.theForm;
|
||||
var TotalBoxes = 0;
|
||||
var TotalOn = 0;
|
||||
for (var i=0;i<fmobj.elements.length;i++) {
|
||||
var e = fmobj.elements[i];
|
||||
if ((e.name != 'allbox') && (e.type=='checkbox')) {
|
||||
TotalBoxes++;
|
||||
if (e.checked) {
|
||||
TotalOn++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (TotalBoxes==TotalOn) {fmobj.allbox.checked=true;}
|
||||
else {fmobj.allbox.checked=false;}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
";
|
||||
|
||||
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'act' , 'mysql' ),
|
||||
2 => array( 'code' , 'dotool'),
|
||||
) , "theForm" );
|
||||
|
||||
if ( $this->mysql_version >= 32303 )
|
||||
{
|
||||
|
||||
$SKIN->td_header[] = array( "Table" , "20%" );
|
||||
$SKIN->td_header[] = array( "Rows" , "10%" );
|
||||
$SKIN->td_header[] = array( "TBL Size" , "20%" );
|
||||
$SKIN->td_header[] = array( "Index Size" , "20%" );
|
||||
$SKIN->td_header[] = array( "Export" , "10%" );
|
||||
$SKIN->td_header[] = array( '<input name="allbox" type="checkbox" value="Check All" onClick="CheckAll();">' , "10%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Invision Board Tables" );
|
||||
|
||||
$DB->query("SHOW TABLE STATUS FROM ".$INFO['sql_database']);
|
||||
|
||||
while ( $r = $DB->fetch_row() )
|
||||
{
|
||||
// Check to ensure it's a table for this install...
|
||||
|
||||
if ( ! preg_match( "/^".$INFO['sql_tbl_prefix']."/", $r['Name'] ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$idx_size += $r['Index_length'];
|
||||
$tbl_size += $r['Data_length'];
|
||||
|
||||
$iBit = ($r['Index_length'] > 0) ? 1 : 0;
|
||||
$tBit = ($r['Data_length'] > 0) ? 1 : 0;
|
||||
|
||||
$idx = $this->gen_size( $r['Index_length'], 3, $iBit );
|
||||
$tbl = $this->gen_size( $r['Data_length'] , 3, $tBit );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b><span style='font-size:12px'><a href='{$SKIN->base_url}&act=mysql&code=runsql&query=".urlencode("SELECT * FROM {$r['Name']}")."'>{$r['Name']}</a></span></b>",
|
||||
"<center>{$r['Rows']}</center>",
|
||||
"<div align='right'><span style='color:blue;font-size:12px'>{$tbl[0]} {$tbl[1]}</span></div>",
|
||||
"<div align='right'>{$idx[0]} {$idx[1]}</div>",
|
||||
"<center><a href='{$SKIN->base_url}&act=mysql&code=export_tbl&tbl={$r['Name']}'>Export</a></center></b>",
|
||||
"<center><input name=\"tbl_{$r['Name']}\" value=1 type='checkbox' onClick=\"CheckCheckAll();\"></center>",
|
||||
) );
|
||||
}
|
||||
|
||||
$total = $idx_size + $tbl_size;
|
||||
|
||||
$iBit = ($idx_size > 0) ? 1 : 0;
|
||||
$tBit = ($tbl_size > 0) ? 1 : 0;
|
||||
$oBit = ($total > 0) ? 1 : 0;
|
||||
|
||||
$idx = $this->gen_size( $idx_size , 3, $iBit );
|
||||
$tbl = $this->gen_size( $tbl_size , 3, $tBit );
|
||||
$tot = $this->gen_size( $total , 3, $oBit );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array (" ",
|
||||
"<div align='right'>Totals (<b>{$tot[0]} {$tot[1]}</b>)</div>",
|
||||
"<div align='right'><b>{$tbl[0]} {$tbl[1]}</b></div>",
|
||||
"<div align='right'><b>{$idx[0]} {$idx[1]}</b></div>",
|
||||
" ",
|
||||
) );
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
// display a basic information table
|
||||
|
||||
$SKIN->td_header[] = array( "Table" , "60%" );
|
||||
$SKIN->td_header[] = array( "Rows" , "30%" );
|
||||
$SKIN->td_header[] = array( '<input name="allbox" type="checkbox" value="Check All" onClick="CheckAll();">' , "10%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Invision Board Tables" );
|
||||
|
||||
$tables = $DB->get_table_names();
|
||||
|
||||
foreach($tables as $tbl)
|
||||
{
|
||||
// Ensure that we're only peeking at IBF tables
|
||||
|
||||
if ( ! preg_match( "/^".$INFO['sql_tbl_prefix']."/", $tbl ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$DB->query("SELECT COUNT(*) AS Rows FROM $tbl");
|
||||
|
||||
$cnt = $DB->fetch_row();
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b><span style='font-size:12px'>$tbl</span></b>",
|
||||
"<center>{$cnt['Rows']}</center>",
|
||||
"<center><input name='tbl_$tbl' type='checkbox' onClick=\"CheckCheckAll(this);\"></center>",
|
||||
) );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//----------------------------
|
||||
// Add in the bottom stuff
|
||||
//----------------------------
|
||||
|
||||
if ( $this->mysql_version < 32322 )
|
||||
{
|
||||
$ADMIN->html .= $SKIN->add_td_basic( "<select id='button' name='tool'>
|
||||
<option value='optimize'>Optimize Selected Tables</option>
|
||||
</select>
|
||||
<input type='submit' value='Go!' id='button'></form>", "center", "tdrow2" );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_basic( "<select id='button' name='tool'>
|
||||
<option value='optimize'>Optimize Selected Tables</option>
|
||||
<option value='repair'>Repair Selected Tables</option>
|
||||
<option value='check'>Check Selected Tables</option>
|
||||
<option value='analyze'>Analyze Selected Tables</option>
|
||||
</select>
|
||||
<input type='submit' value='Go!' id='button'></form>", "center", "tdrow2" );
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
|
||||
//----------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'act' , 'mysql' ),
|
||||
2 => array( 'code' , 'runsql'),
|
||||
) );
|
||||
|
||||
$SKIN->td_header[] = array( "Table" , "30%" );
|
||||
$SKIN->td_header[] = array( "Rows" , "70%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Run a Query" );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Manual Query</b><br>Advanced Users Only",
|
||||
$SKIN->form_textarea("query", "" ),
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_form("Run Query");
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// Convert chars into byte sizes
|
||||
// (Based on a similar function in phpmyadmin)
|
||||
// "Based on?" my ass!
|
||||
// Ok, so I pretty much cut n' pasted it - but it's late and I
|
||||
// have to get this done.
|
||||
// I did make it pretty though - does that count?
|
||||
// Oh CMON! A zillion lines of new code and you can't get over
|
||||
// a few lines "borrowed" from another script?
|
||||
//-------------------------------------------------------------
|
||||
|
||||
function gen_size($val, $li, $sepa )
|
||||
{
|
||||
$sep = pow(10, $sepa);
|
||||
$li = pow(10, $li);
|
||||
$retval = $val;
|
||||
$unit = 'Bytes';
|
||||
|
||||
if ($val >= $li * 1000000)
|
||||
{
|
||||
$val = round( $val / (1073741824/$sep) ) / $sep;
|
||||
$unit = 'GB';
|
||||
}
|
||||
else if ($val >= $li*1000)
|
||||
{
|
||||
$val = round( $val / (1048576/$sep) ) / $sep;
|
||||
$unit = 'MB';
|
||||
}
|
||||
else if ($val >= $li)
|
||||
{
|
||||
$val = round( $val / (1024/$sep) ) / $sep;
|
||||
$unit = 'KB';
|
||||
}
|
||||
if ($unit != 'Bytes')
|
||||
{
|
||||
$retval = number_format($val, $sepa, '.', ',');
|
||||
}
|
||||
else
|
||||
{
|
||||
$retval = number_format($val, 0, '.', ',');
|
||||
}
|
||||
|
||||
return array($retval, $unit);
|
||||
}
|
||||
|
||||
function gzip_four_chars($val)
|
||||
{
|
||||
for ($i = 0; $i < 4; $i ++)
|
||||
{
|
||||
$return .= chr($val % 256);
|
||||
$val = floor($val / 256);
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,442 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Board v1.1
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001,2002 Invision Power Services
|
||||
| http://www.ibforums.com
|
||||
| ========================================
|
||||
| Web: http://www.ibforums.com
|
||||
| Email: phpboards@ibforums.com
|
||||
| Licence Info: phpib-licence@ibforums.com
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Custom profile field functions
|
||||
| > Module written by Matt Mecham
|
||||
| > Date started: 24th June 2002
|
||||
|
|
||||
| > Module Version Number: 1.0.0
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
$idx = new ad_fields();
|
||||
|
||||
|
||||
class ad_fields {
|
||||
|
||||
var $base_url;
|
||||
|
||||
function ad_fields() {
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
switch($IN['code'])
|
||||
{
|
||||
case 'add':
|
||||
$this->main_form('add');
|
||||
break;
|
||||
|
||||
case 'doadd':
|
||||
$this->main_save('add');
|
||||
break;
|
||||
|
||||
case 'edit':
|
||||
$this->main_form('edit');
|
||||
break;
|
||||
|
||||
case 'doedit':
|
||||
$this->main_save('edit');
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
$this->delete_form();
|
||||
break;
|
||||
|
||||
case 'dodelete':
|
||||
$this->do_delete();
|
||||
break;
|
||||
|
||||
default:
|
||||
$this->main_screen();
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//+---------------------------------------------------------------------------------
|
||||
//
|
||||
// Delete a group
|
||||
//
|
||||
//+---------------------------------------------------------------------------------
|
||||
|
||||
function delete_form()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
if ($IN['id'] == "")
|
||||
{
|
||||
$ADMIN->error("Could not resolve the group ID, please try again");
|
||||
}
|
||||
|
||||
$ADMIN->page_title = "Deleting a Custom Profile Field";
|
||||
|
||||
$ADMIN->page_detail = "Please check to ensure that you are attempting to remove the correct custom profile field as <b>all data will be lost!</b>.";
|
||||
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$DB->query("SELECT ftitle, fid FROM ibf_pfields_data WHERE fid='".$IN['id']."'");
|
||||
|
||||
if ( ! $field = $DB->fetch_row() )
|
||||
{
|
||||
$ADMIN->error("Could not fetch the row from the database");
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'dodelete' ),
|
||||
2 => array( 'act' , 'field' ),
|
||||
3 => array( 'id' , $IN['id'] ),
|
||||
) );
|
||||
|
||||
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$SKIN->td_header[] = array( " " , "40%" );
|
||||
$SKIN->td_header[] = array( " " , "60%" );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Removal Confirmation" );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Custom Profile field to remove</b>" ,
|
||||
"<b>".$field['ftitle']."</b>",
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_form("Delete this custom field");
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
|
||||
}
|
||||
|
||||
function do_delete()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
if ($IN['id'] == "")
|
||||
{
|
||||
$ADMIN->error("Could not resolve the field ID, please try again");
|
||||
}
|
||||
|
||||
|
||||
// Check to make sure that the relevant groups exist.
|
||||
|
||||
$DB->query("SELECT ftitle, fid FROM ibf_pfields_data WHERE fid='".$IN['id']."'");
|
||||
|
||||
if ( ! $row = $DB->fetch_row() )
|
||||
{
|
||||
$ADMIN->error("Could not resolve the ID's passed to deletion");
|
||||
}
|
||||
|
||||
$DB->query("ALTER TABLE ibf_pfields_content DROP field_{$row['fid']}");
|
||||
|
||||
$DB->query("DELETE FROM ibf_pfields_data WHERE fid='".$IN['id']."'");
|
||||
|
||||
$ADMIN->done_screen("Profile Field Removed", "Custom Profile Field Control", "act=field" );
|
||||
|
||||
}
|
||||
|
||||
|
||||
//+---------------------------------------------------------------------------------
|
||||
//
|
||||
// Save changes to DB
|
||||
//
|
||||
//+---------------------------------------------------------------------------------
|
||||
|
||||
function main_save($type='edit')
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_POST_VARS;
|
||||
|
||||
if ($IN['ftitle'] == "")
|
||||
{
|
||||
$ADMIN->error("You must enter a field title.");
|
||||
}
|
||||
|
||||
if ($type == 'edit')
|
||||
{
|
||||
if ($IN['id'] == "")
|
||||
{
|
||||
$ADMIN->error("Could not resolve the field id");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$content = "";
|
||||
|
||||
if ($HTTP_POST_VARS['fcontent'] != "")
|
||||
{
|
||||
$content = str_replace( "\n", '|', str_replace( "\n\n", "\n", trim($HTTP_POST_VARS['fcontent']) ) );
|
||||
}
|
||||
|
||||
$db_string = array( 'ftitle' => $IN['ftitle'],
|
||||
'fdesc' => $IN['fdesc'],
|
||||
'fcontent' => stripslashes($content),
|
||||
'ftype' => $IN['ftype'],
|
||||
'freq' => $IN['freq'],
|
||||
'fhide' => $IN['fhide'],
|
||||
'fmaxinput' => $IN['fmaxinput'],
|
||||
'fedit' => $IN['fedit'],
|
||||
'forder' => $IN['forder'],
|
||||
'fshowreg' => $IN['fshowreg'],
|
||||
);
|
||||
|
||||
|
||||
if ($type == 'edit')
|
||||
{
|
||||
$rstring = $DB->compile_db_update_string( $db_string );
|
||||
|
||||
$DB->query("UPDATE ibf_pfields_data SET $rstring WHERE fid='".$IN['id']."'");
|
||||
|
||||
$ADMIN->done_screen("Profile Field Edited", "Custom Profile Field Control", "act=field" );
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$rstring = $DB->compile_db_insert_string( $db_string );
|
||||
|
||||
$DB->query("INSERT INTO ibf_pfields_data (" .$rstring['FIELD_NAMES']. ") VALUES (". $rstring['FIELD_VALUES'] .")");
|
||||
|
||||
$new_id = $DB->get_insert_id();
|
||||
|
||||
$DB->query("ALTER TABLE ibf_pfields_content ADD field_$new_id text default ''");
|
||||
|
||||
$DB->query("OPTIMIZE TABLE ibf_pfields_content");
|
||||
|
||||
$ADMIN->done_screen("Profile Field Added", "Custom Profile Field Control", "act=field" );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//+---------------------------------------------------------------------------------
|
||||
//
|
||||
// Add / edit group
|
||||
//
|
||||
//+---------------------------------------------------------------------------------
|
||||
|
||||
function main_form($type='edit')
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
if ($type == 'edit')
|
||||
{
|
||||
if ($IN['id'] == "")
|
||||
{
|
||||
$ADMIN->error("No group id to select from the database, please try again.");
|
||||
}
|
||||
|
||||
$form_code = 'doedit';
|
||||
$button = 'Complete Edit';
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$form_code = 'doadd';
|
||||
$button = 'Add Field';
|
||||
}
|
||||
|
||||
if ($IN['id'] != "")
|
||||
{
|
||||
$DB->query("SELECT * FROM ibf_pfields_data WHERE fid='".$IN['id']."'");
|
||||
$fields = $DB->fetch_row();
|
||||
}
|
||||
else
|
||||
{
|
||||
$fields = array();
|
||||
}
|
||||
|
||||
if ($type == 'edit')
|
||||
{
|
||||
$ADMIN->page_title = "Editing Profile Field ".$fields['ftitle'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$ADMIN->page_title = 'Adding a new profile field';
|
||||
$fields['ftitle'] = '';
|
||||
}
|
||||
|
||||
$ADMIN->page_detail = "Please double check the information before submitting the form.";
|
||||
|
||||
|
||||
|
||||
|
||||
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , $form_code ),
|
||||
2 => array( 'act' , 'field' ),
|
||||
3 => array( 'id' , $IN['id'] ),
|
||||
) );
|
||||
|
||||
$fields['fcontent'] = str_replace( '|', "\n", $fields['fcontent'] );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$SKIN->td_header[] = array( " " , "40%" );
|
||||
$SKIN->td_header[] = array( " " , "60%" );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Field Settings" );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Field Title</b><br>Max characters: 200" ,
|
||||
$SKIN->form_input("ftitle", $fields['ftitle'] )
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Description</b><br>Max Characters: 250<br>Can be used to note hidden/required status" ,
|
||||
$SKIN->form_input("fdesc", $fields['fdesc'] )
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Field Type</b>" ,
|
||||
$SKIN->form_dropdown("ftype",
|
||||
array(
|
||||
0 => array( 'text' , 'Text Input' ),
|
||||
1 => array( 'drop' , 'Drop Down Box' ),
|
||||
2 => array( 'area' , 'Text Area' ),
|
||||
),
|
||||
$fields['ftype'] )
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Max Input (for text input and text areas) in characters</b>" ,
|
||||
$SKIN->form_input("fmaxinput", $fields['fmaxinput'] )
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Display order (when editing and displaying) numeric 1 lowest." ,
|
||||
$SKIN->form_input("forder", $fields['forder'] )
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Option Content (for drop downs)</b><br>In sets, one set per line<br>Example for 'Gender' field:<br>m=Male<br>f=Female<br>u=Not Telling<br>Will produce:<br><select name='pants'><option value='m'>Male</option><option value='f'>Female</option><option value='u'>Not Telling</option></select><br>m,f or u stored in database. When showing field in profile, will use value from pair (f=Female, shows 'Female')" ,
|
||||
$SKIN->form_textarea("fcontent", $fields['fcontent'] )
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Show on registration page also?</b>" ,
|
||||
$SKIN->form_yes_no("fshowreg", $fields["fshowreg"] )
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Field cannot be left blank?</b><br>(Will not apply if you choose to hide below)" ,
|
||||
$SKIN->form_yes_no("freq", $fields['freq'] )
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Hidden to profile viewers?</b><br>If yes, only admins and super mods can see it, user can still edit." ,
|
||||
$SKIN->form_yes_no("fhide", $fields['fhide'] )
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Editable by user?</b><br>If no, user cannot edit information, field can only be seen by admins and super mods. Admins can edit information via ACP" ,
|
||||
$SKIN->form_yes_no("fedit", $fields['fedit'] )
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_form($button);
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
|
||||
}
|
||||
|
||||
//+---------------------------------------------------------------------------------
|
||||
//
|
||||
// Show "Management Screen
|
||||
//
|
||||
//+---------------------------------------------------------------------------------
|
||||
|
||||
function main_screen()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$ADMIN->page_title = "Custom Profile Fields";
|
||||
|
||||
$ADMIN->page_detail = "Custom Profile fields can be used to add optional or required fields to be completed when registering or editing a profile. This is useful if you wish to record data from your members that is not already present in the base board.";
|
||||
|
||||
$SKIN->td_header[] = array( "Field Title" , "30%" );
|
||||
$SKIN->td_header[] = array( "Type" , "20%" );
|
||||
$SKIN->td_header[] = array( "REQUIRED" , "10%" );
|
||||
$SKIN->td_header[] = array( "HIDDEN" , "10%" );
|
||||
$SKIN->td_header[] = array( "SHOW REG" , "10%" );
|
||||
$SKIN->td_header[] = array( "Edit" , "10%" );
|
||||
$SKIN->td_header[] = array( "Delete" , "10%" );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Custom Profile Field Management" );
|
||||
|
||||
$real_types = array( 'drop' => 'Drop Down Box',
|
||||
'area' => 'Text Area',
|
||||
'text' => 'Text Input',
|
||||
);
|
||||
|
||||
$DB->query("SELECT * FROM ibf_pfields_data");
|
||||
|
||||
if ( $DB->get_num_rows() )
|
||||
{
|
||||
while ( $r = $DB->fetch_row() )
|
||||
{
|
||||
|
||||
$hide = ' ';
|
||||
$req = ' ';
|
||||
$regi = ' ';
|
||||
|
||||
"<center><a href='{$ADMIN->base_url}&act=group&code=delete&id=".$r['g_id']."'>Delete</a></center>";
|
||||
|
||||
//-----------------------------------
|
||||
if ($r['fhide'] == 1)
|
||||
{
|
||||
$hide = '<center><span style="color:red">Y</span></center>';
|
||||
}
|
||||
//-----------------------------------
|
||||
if ($r['freq'] == 1)
|
||||
{
|
||||
$req = '<center><span style="color:red">Y</span></center>';
|
||||
}
|
||||
|
||||
if ($r['fshowreg'] == 1)
|
||||
{
|
||||
$regi = '<center><span style="color:red">Y</span></center>';
|
||||
}
|
||||
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>{$r['ftitle']}</b>" ,
|
||||
"<center>{$real_types[$r['ftype']]}</center>",
|
||||
$req,
|
||||
$hide,
|
||||
$regi,
|
||||
"<center><a href='{$ADMIN->base_url}&act=field&code=edit&id=".$r['fid']."'>Edit</a></center>",
|
||||
"<center><a href='{$ADMIN->base_url}&act=field&code=delete&id=".$r['fid']."'>Delete</a></center>",
|
||||
) );
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$ADMIN->html .= $SKIN->add_td_basic("None found", "center", "tdrow2");
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_basic("<a href='{$ADMIN->base_url}&act=field&code=add'>ADD NEW FIELD</a></center>", "center", "title");
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,110 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Board v1.1
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001,2002 Invision Power Services
|
||||
| http://www.ibforums.com
|
||||
| ========================================
|
||||
| Web: http://www.ibforums.com
|
||||
| Email: phpboards@ibforums.com
|
||||
| Licence Info: phpib-licence@ibforums.com
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Admin Quick Help System
|
||||
| > Module written by Matt Mecham
|
||||
| > Date started: 1st march 2002
|
||||
|
|
||||
| > Module Version Number: 1.0.0
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
$idx = new quick_help();
|
||||
|
||||
|
||||
class quick_help {
|
||||
|
||||
var $help_text = array();
|
||||
|
||||
function init_help_array()
|
||||
{
|
||||
|
||||
return array(
|
||||
'mg_promote' => array( 'title' => "Group Promotion",
|
||||
'body' => "If enabled (by choosing a member group to promote your members to and by entering a number of posts to achieve this)
|
||||
when your members meet or exceed the number of posts set they will be 'promoted' to the specified group.
|
||||
<br><br>
|
||||
Many administrators use this feature to set up a 'Senior Members' group with more functionality (such as a longer edit time, larger post uploads) and even
|
||||
allow access to otherwise hidden forums - when your members have made enough posts, they are promoted to this group allowing you to intice more posting and
|
||||
allow for a more restrictive set of permissions for newcomers.
|
||||
<br><br><b>Warning!</b><br>Use this feature carefully and always check the information before proceeding.<br>It is possible to advance to an Admin group - you have been warned.
|
||||
",
|
||||
),
|
||||
's_reg_antispam' => array ( 'title' => "Registration AntiSpam",
|
||||
'body' => "To prevent robots from registering (such as a malicious denial of service attack registering thousands of new accounts and forcing thousands of emails to be sent from your server)
|
||||
you can enable this option.
|
||||
<br><br>When enabled, a random 6 digit numerical string is generated and shown in a graphical format (to prevent advanced bots from reading the source page). The user must enter
|
||||
this string exactly when registering or the account will not be created.",
|
||||
),
|
||||
|
||||
'm_bulkemail' => array ( 'title' => "Bulk Emailing",
|
||||
'body' => "<b>Overview</b><br>Bulk emailing allows you to target a specific section of your community or email all your registered members.
|
||||
<br><br><b>Settings</b><br>You can choose which user groups will receive the email and elect to override the user set 'Allow Admin Emails' function. It is NOT recommended that you do override this
|
||||
however.<hr>
|
||||
<b>Allowed Tags</b><br>Although the email system sends the mail via BCC to preserve system resources, you can add in dynamic content with the following tags.
|
||||
<br>{board_name} will return the name of your board
|
||||
<br>{reg_total} will return the total number of registered members
|
||||
<br>{total_posts} will return the total number of posts
|
||||
<br>{busy_count} will return the most number of online users
|
||||
<br>{busy_time} will return the date of the most online users
|
||||
<br>{board_url} will return the URL to the board
|
||||
<br><br>As the email is sent via BCC, it is not possible to include the members username, password or other user profile data.",
|
||||
),
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
function quick_help() {
|
||||
global $DB, $IN, $INFO, $ADMIN, $SKIN, $std;
|
||||
|
||||
$id = $IN['id'];
|
||||
|
||||
$this->help_text = $this->init_help_array();
|
||||
|
||||
if ($this->help_text[$id]['title'] == "")
|
||||
{
|
||||
$ADMIN->error("No help information is available for this function at present");
|
||||
}
|
||||
|
||||
print "<html>
|
||||
<head>
|
||||
<title>Quick Help</title>
|
||||
</head>
|
||||
<body leftmargin='0' topmargin='0' bgcolor='#F5F9FD'>
|
||||
<table width='95%' align='center' border='0' cellpadding='6'>
|
||||
<tr>
|
||||
<td style='font-family:verdana, arial, tahoma;color:#4C77B6;font-size:16px;letter-spacing:-1px;font-weight:bold'>{$this->help_text[$id]['title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='font-family:verdana, arial, tahoma;color:black;font-size:9pt'>{$this->help_text[$id]['body']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>";
|
||||
|
||||
|
||||
exit();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,853 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Board v1.1
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001,2002 Invision Power Services
|
||||
| http://www.ibforums.com
|
||||
| ========================================
|
||||
| Web: http://www.ibforums.com
|
||||
| Email: phpboards@ibforums.com
|
||||
| Licence Info: phpib-licence@ibforums.com
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Skin -> Templates pop up functions
|
||||
| > Module written by Matt Mecham
|
||||
| > Date started: 9th July 2002
|
||||
|
|
||||
| > Module Version Number: 1.0.0
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
$idx = new ad_settings();
|
||||
|
||||
|
||||
class ad_settings {
|
||||
|
||||
var $base_url;
|
||||
|
||||
function ad_settings() {
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
switch($IN['code'])
|
||||
{
|
||||
case 'preview':
|
||||
$this->do_preview();
|
||||
break;
|
||||
|
||||
case 'edit_bit':
|
||||
$this->edit_bit();
|
||||
break;
|
||||
|
||||
case 'macro_one':
|
||||
$this->macro_one();
|
||||
break;
|
||||
|
||||
case 'macro_two':
|
||||
$this->macro_two();
|
||||
break;
|
||||
|
||||
case 'compare':
|
||||
$this->compare_frames();
|
||||
break;
|
||||
|
||||
case 'dotop':
|
||||
$this->print_compare_top();
|
||||
break;
|
||||
|
||||
case 'donew':
|
||||
$this->print_compare_new();
|
||||
break;
|
||||
|
||||
//-----------------------------
|
||||
|
||||
case 'search':
|
||||
$this->search_frames();
|
||||
break;
|
||||
|
||||
case 'searchbox':
|
||||
$this->print_search_box();
|
||||
break;
|
||||
|
||||
case 'searchlinks':
|
||||
$this->print_searchlinks();
|
||||
break;
|
||||
|
||||
//-----------------------------
|
||||
|
||||
case 'css_search':
|
||||
$this->css_search_frames();
|
||||
break;
|
||||
|
||||
case 'csssearchlinks':
|
||||
$this->print_css_searchlinks();
|
||||
break;
|
||||
|
||||
case 'previewstate':
|
||||
$this->do_message("Preview Window");
|
||||
break;
|
||||
|
||||
//-------------------------
|
||||
|
||||
case 'css_preview':
|
||||
$this->css_preview();
|
||||
break;
|
||||
|
||||
default:
|
||||
exit();
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//+---------------------------------------
|
||||
|
||||
function css_search_frames()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_GET_VARS;
|
||||
|
||||
print "<html>
|
||||
<head><title>Search</title></head>
|
||||
<frameset cols='200, *' frameborder='no' border='1' framespacing='0'>
|
||||
<frame name='links' scrolling='auto' src='{$SKIN->base_url}&act=rtempl&code=csssearchlinks&id={$IN['id']}&element={$HTTP_GET_VARS['element']}'>
|
||||
<frame name='preview' scrolling='auto' src='{$SKIN->base_url}&act=rtempl&code=previewstate'>
|
||||
</frameset>
|
||||
</html>";
|
||||
|
||||
exit();
|
||||
}
|
||||
|
||||
//+---------------------------------------
|
||||
|
||||
function css_preview()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_GET_VARS;
|
||||
|
||||
//+---------------------------------------
|
||||
// GET THE TEMPLATES THAT THIS CSS USES
|
||||
//+---------------------------------------
|
||||
|
||||
$DB->query("SELECT css_text, css_name FROM ibf_css WHERE cssid='".$IN['id']."'");
|
||||
|
||||
if ( ! $set = $DB->fetch_row() )
|
||||
{
|
||||
$ADMIN->error("Cannot query the database using that information");
|
||||
}
|
||||
|
||||
$DB->query("SELECT img_dir FROM ibf_skins WHERE css_id='".$IN['id']."'");
|
||||
|
||||
$skin = $DB->fetch_row();
|
||||
|
||||
$element = trim(stripslashes($HTTP_GET_VARS['element']));
|
||||
|
||||
|
||||
list($type, $name) = explode( "|", $element );
|
||||
|
||||
$like = "class='{$name}'";
|
||||
$first = '.';
|
||||
|
||||
if ($type == 'id')
|
||||
{
|
||||
$like = "id='{$name}'";
|
||||
$first = '#';
|
||||
}
|
||||
|
||||
preg_match( "/($first"."$name)\s{0,}\{(.+?)\}/s", $set['css_text'], $match );
|
||||
|
||||
//$definition = nl2br( str_replace( "\n\n", "\n", str_replace( "\r\n", "\n", $match[2]) ) );
|
||||
|
||||
//preg_match_all( "/(\S+?):(.+?);?/s", trim($match[2]), $defs );
|
||||
|
||||
$defs = explode( ";", str_replace( "\n\n", "\n", str_replace( "\r\n", "\n", trim($match[2]) ) ) );
|
||||
|
||||
$def_output = "";
|
||||
|
||||
foreach($defs as $bit)
|
||||
{
|
||||
list($type, $value) = explode( ":", trim($bit) );
|
||||
|
||||
$type = trim($type);
|
||||
|
||||
$value = trim($value);
|
||||
|
||||
if ($type != "" and $value != "")
|
||||
{
|
||||
$extra = "";
|
||||
|
||||
if ($type == 'color' or $type == 'background-color')
|
||||
{
|
||||
$extra = " <input type='text' size='6' style='background-color:$value' readonly>";
|
||||
}
|
||||
|
||||
$def_output .= "<tr><td width='40%'><b>$type</b></td><td width='60%'>$value $extra</td></tr>\n";
|
||||
}
|
||||
}
|
||||
|
||||
$css = "\n<style>\n<!--\n".str_replace( "<#IMG_DIR#>", $skin['img_dir'], $set['css_text'] )."\n//-->\n</style>";
|
||||
|
||||
$html = "<html>
|
||||
<head>
|
||||
<title>CSS Preview</title>
|
||||
$css
|
||||
</head>
|
||||
<body topmargin='0' leftmargin='0' rightmargin='0' marginwidth='0' marginheight='0' alink='#000000' vlink='#000000'>
|
||||
<table border='1' width='95%' cellspacing='0' cellpadding='4' align='center'>
|
||||
<tr>
|
||||
<td bgcolor='#EEEEEE' style='font-size:14px'><b>Preview CSS Element '$name'<br>From style sheet '{$set['css_name']}'</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table border='1' width='95%' cellspacing='0' cellpadding='4' align='center'>
|
||||
<tr>
|
||||
<td><b>Preview</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td $like>Cozy Lummux Gives Smart Squid Who Asks For Job Pen ([Indeed!])</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table border='1' width='95%' cellspacing='0' cellpadding='4' align='center'>
|
||||
<tr>
|
||||
<td colspan='2'><b>Formatted CSS Definition</b></td>
|
||||
</tr>
|
||||
$def_output
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
";
|
||||
|
||||
print $html;
|
||||
|
||||
exit();
|
||||
|
||||
}
|
||||
|
||||
//+---------------------------------------
|
||||
//+---------------------------------------
|
||||
|
||||
function print_css_searchlinks()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_GET_VARS;
|
||||
|
||||
//+---------------------------------------
|
||||
// GET THE TEMPLATES THAT THIS CSS USES
|
||||
//+---------------------------------------
|
||||
|
||||
$DB->query("SELECT tmpl_id FROM ibf_skins WHERE css_id='".$IN['id']."'");
|
||||
|
||||
if ( ! $set = $DB->fetch_row() )
|
||||
{
|
||||
$ADMIN->error("Cannot query the database using that information");
|
||||
}
|
||||
|
||||
$element = trim(stripslashes($HTTP_GET_VARS['element']));
|
||||
|
||||
|
||||
list($type, $name) = explode( "|", $element );
|
||||
|
||||
$like = "class=_{$name}";
|
||||
|
||||
if ($type == 'id')
|
||||
{
|
||||
$like = "id=_{$name}";
|
||||
}
|
||||
|
||||
require './sources/Admin/skin_info.php';
|
||||
|
||||
//die("SELECT suid, set_id, group_name, func_name FROM ibf_skin_templates WHERE set_id='".$set['tmpl_id']."' AND section_content LIKE '%".$like."%' ORDER BY group_name");
|
||||
|
||||
$DB->query("SELECT suid, set_id, group_name, func_name FROM ibf_skin_templates WHERE set_id='".$set['tmpl_id']."' AND section_content LIKE '%".$like."%' ORDER BY group_name");
|
||||
|
||||
if (! $DB->get_num_rows() )
|
||||
{
|
||||
$this->do_message("No matches for that string");
|
||||
}
|
||||
|
||||
$results = array();
|
||||
|
||||
while ( $r = $DB->fetch_row() )
|
||||
{
|
||||
if ( ! isset($result[ $r['group_name'] ]) )
|
||||
{
|
||||
$result[ $r['group_name'] ] = array();
|
||||
}
|
||||
|
||||
$result[ $r['group_name'] ][] = array( 'suid' => $r['suid'], 'func_name' => $r['func_name'] );
|
||||
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table();
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Search Results</b>" ) , 'title' );
|
||||
|
||||
foreach( $result as $group_name => $sub_array )
|
||||
{
|
||||
if ( isset($skin_names[ $group_name ]) )
|
||||
{
|
||||
$group_name = $skin_names[ $group_name ][0];
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>$group_name</b>" ) , 'catrow' );
|
||||
|
||||
if (is_array($sub_array) and count($sub_array) > 0 )
|
||||
{
|
||||
foreach( $sub_array as $idx => $data )
|
||||
{
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "+ <a href='{$SKIN->base_url}&act=rtempl&code=preview&suid={$data['suid']}&type=text&hl=".urlencode($name)."' target='preview'>{$data['func_name']}</a>" ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
$ADMIN->print_popup();
|
||||
|
||||
}
|
||||
|
||||
//+---------------------------------------
|
||||
//+---------------------------------------
|
||||
|
||||
function print_searchlinks()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_POST_VARS;
|
||||
|
||||
if ($IN['bypass'] == 1)
|
||||
{
|
||||
$this->do_message("No Search Results");
|
||||
}
|
||||
|
||||
$search_text = trim($this->unconvert_tags(stripslashes($HTTP_POST_VARS['search'])));
|
||||
|
||||
$search_text = str_replace( "\$", "\\$", $search_text);
|
||||
$search_text = str_replace( "'" , "\\'", $search_text);
|
||||
|
||||
if ($search_text == "")
|
||||
{
|
||||
$this->do_message("Please enter a string to search");
|
||||
}
|
||||
|
||||
require './sources/Admin/skin_info.php';
|
||||
|
||||
$DB->query("SELECT set_id FROM ibf_skin_templates WHERE suid='".$IN['suid']."'");
|
||||
|
||||
$set = $DB->fetch_row();
|
||||
|
||||
$DB->query("SELECT suid, set_id, group_name, func_name FROM ibf_skin_templates WHERE set_id='".$set['set_id']."' AND section_content LIKE '%$search_text%' ORDER BY group_name");
|
||||
|
||||
if (! $DB->get_num_rows() )
|
||||
{
|
||||
$this->do_message("No matches for that string");
|
||||
}
|
||||
|
||||
$results = array();
|
||||
|
||||
while ( $r = $DB->fetch_row() )
|
||||
{
|
||||
if ( ! isset($result[ $r['group_name'] ]) )
|
||||
{
|
||||
$result[ $r['group_name'] ] = array();
|
||||
}
|
||||
|
||||
$result[ $r['group_name'] ][] = array( 'suid' => $r['suid'], 'func_name' => $r['func_name'] );
|
||||
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table();
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Search Results</b>" ) , 'title' );
|
||||
|
||||
foreach( $result as $group_name => $sub_array )
|
||||
{
|
||||
if ( isset($skin_names[ $group_name ]) )
|
||||
{
|
||||
$group_name = $skin_names[ $group_name ][0];
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>$group_name</b>" ) , 'catrow' );
|
||||
|
||||
if (is_array($sub_array) and count($sub_array) > 0 )
|
||||
{
|
||||
foreach( $sub_array as $idx => $data )
|
||||
{
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "+ <a href='{$SKIN->base_url}&act=rtempl&code=preview&suid={$data['suid']}&type=text&hl=".urlencode(stripslashes($HTTP_POST_VARS['search']))."' target='preview'>{$data['func_name']}</a>" ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
$ADMIN->print_popup();
|
||||
|
||||
}
|
||||
|
||||
//+---------------------------------------
|
||||
|
||||
function do_message($message="")
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$ADMIN->html = "<tr><td id='tdrow1' height='100%' align='center' valign='middle'><br><br><b>$message</b><br><br> </td></tr>";
|
||||
|
||||
$ADMIN->print_popup();
|
||||
|
||||
}
|
||||
|
||||
//+---------------------------------------
|
||||
|
||||
function print_search_box()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'searchlinks' ),
|
||||
2 => array( 'act' , 'rtempl' ),
|
||||
3 => array( 'suid' , $IN['suid'] )
|
||||
) ,'theform', 'target="links"' );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Enter text to search for</b><br>".
|
||||
$SKIN->form_input( 'search' )
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_form("Search!");
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
$ADMIN->print_popup();
|
||||
|
||||
}
|
||||
|
||||
//+---------------------------------------
|
||||
|
||||
function search_frames()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
print "<html>
|
||||
<head><title>Search</title></head>
|
||||
<frameset cols='200, *' frameborder='no' border='1' framespacing='0'>
|
||||
<frameset rows='*, 100' frameborder='no' border='1' framespacing='0'>
|
||||
<frame name='links' scrolling='auto' src='{$SKIN->base_url}&act=rtempl&code=searchlinks&suid={$IN['suid']}&bypass=1'>
|
||||
<frame name='searchbox' scrolling='no' src='{$SKIN->base_url}&act=rtempl&code=searchbox&suid={$IN['suid']}'>
|
||||
</frameset>
|
||||
<frame name='preview' scrolling='auto' src='{$SKIN->base_url}&act=rtempl&code=previewstate'>
|
||||
</frameset>
|
||||
</html>";
|
||||
|
||||
exit();
|
||||
}
|
||||
|
||||
//+---------------------------------------
|
||||
|
||||
function compare_frames()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
print "<html>
|
||||
<head>
|
||||
<title>Compare</title>
|
||||
</head>
|
||||
<frameset cols='50%, 50%' frameborder='yes' border='1' framespacing='0'>
|
||||
<frameset rows='30, *' frameborder='yes' border='1' framespacing='0'>
|
||||
<frame name='origtop' scrolling='auto' src='{$SKIN->base_url}&act=rtempl&code=dotop&content=orig'>
|
||||
<frame name='origbot' scrolling='auto' src='{$SKIN->base_url}&act=rtempl&code=preview&suid={$IN['suid']}&type=css'>
|
||||
</frameset>
|
||||
<frameset rows='30, *' frameborder='yes' border='1' framespacing='0'>
|
||||
<frame name='newtop' scrolling='auto' src='{$SKIN->base_url}&act=rtempl&code=dotop&content=new'>
|
||||
<frame name='newbot' scrolling='auto' src='{$SKIN->base_url}&act=rtempl&code=donew&suid={$IN['suid']}'>
|
||||
</frameset>
|
||||
</frameset>
|
||||
</html>";
|
||||
|
||||
exit();
|
||||
}
|
||||
|
||||
//+---------------------------------------
|
||||
|
||||
function print_compare_top()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$content = $IN['content'] == 'orig' ? 'Original Template' : 'Current Template';
|
||||
|
||||
print "<html>
|
||||
<body marginheight='0' marginwidth='0' leftmargin='0' topmargin='0' bgcolor='#000055'>
|
||||
<center><font face='verdana' size='2' color='white'><b>$content</b></font></center>
|
||||
</body></html>";
|
||||
|
||||
exit();
|
||||
}
|
||||
|
||||
//+---------------------------------------
|
||||
|
||||
function print_compare_new()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$DB->query("SELECT * FROM ibf_skin_templates WHERE suid='".$IN['suid']."'");
|
||||
|
||||
if ( ! $template = $DB->fetch_row() )
|
||||
{
|
||||
$ADMIN->error("You must specify an existing template set ID, go back and try again");
|
||||
}
|
||||
|
||||
$DB->query("SELECT css_id, img_dir FROM ibf_skins WHERE set_id='".$template['set_id']."'");
|
||||
$r = $DB->fetch_row();
|
||||
|
||||
$DB->query("SELECT css_text FROM ibf_css WHERE cssid='".$r['css_id']."'");
|
||||
|
||||
$css = $DB->fetch_row();
|
||||
|
||||
$css_text = "\n<style>\n<!--\n".str_replace( "<#IMG_DIR#>", "style_images/".$r['img_dir'], $css['css_text'] )."\n//-->\n</style>";
|
||||
|
||||
print "<html><head>
|
||||
$css_text
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<script language='Javascript'>
|
||||
|
||||
templatedata = window.parent.opener.document.theform.template.value;
|
||||
|
||||
document.write( templatedata);
|
||||
document.close();
|
||||
|
||||
</script>
|
||||
</body></html>
|
||||
";
|
||||
|
||||
exit();
|
||||
|
||||
|
||||
}
|
||||
|
||||
//+---------------------------------------
|
||||
|
||||
function macro_one()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'macro_two' ),
|
||||
2 => array( 'act' , 'rtempl' ),
|
||||
3 => array( 'suid' , $IN['suid'] )
|
||||
) );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$SKIN->td_header[] = array( " " , "60%" );
|
||||
$SKIN->td_header[] = array( " " , "40%" );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Macro Look-up" );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Enter the Macro to look up</b><br>(EG: {ibf.skin.tbl_width})",
|
||||
$SKIN->form_input( 'lookup' )
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_form("Look-up");
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
$ADMIN->print_popup();
|
||||
|
||||
}
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
function macro_two()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
if ($IN['lookup'] == "")
|
||||
{
|
||||
$ADMIN->error("You must enter a macro to look up", 1);
|
||||
}
|
||||
|
||||
$is_valid = 0;
|
||||
$macro = "";
|
||||
$extra = "";
|
||||
|
||||
if ( preg_match( "/<\{(\S+)\}>/", $IN['lookup'], $match ) )
|
||||
{
|
||||
$is_valid = 1;
|
||||
$macro = $match[1];
|
||||
}
|
||||
|
||||
else if ( preg_match( "/{ibf\.(skin|lang|vars|member)\.(\w+)}$/", $IN['lookup'], $match ) )
|
||||
{
|
||||
$is_valid = 1;
|
||||
$macro = $match[2];
|
||||
$extra = $match[1];
|
||||
}
|
||||
else
|
||||
{
|
||||
$is_valid = 0;
|
||||
}
|
||||
|
||||
if ($is_valid != 1)
|
||||
{
|
||||
$ADMIN->error("The entered macro was in the wrong format, please try again", 1);
|
||||
}
|
||||
|
||||
if ($extra != "")
|
||||
{
|
||||
if ($extra == 'member')
|
||||
{
|
||||
if (isset($MEMBER[$macro]))
|
||||
{
|
||||
if ($MEMBER[$macro] == "")
|
||||
{
|
||||
$answer = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
$answer = $MEMBER[$macro];
|
||||
}
|
||||
}
|
||||
else if (isset($GROUP[$macro]))
|
||||
{
|
||||
if ($GROUP[$macro] == "")
|
||||
{
|
||||
$answer = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
$answer = $GROUP[$macro]." (This is member group information)";
|
||||
}
|
||||
}
|
||||
|
||||
$result = "Loaded Member Information";
|
||||
}
|
||||
else if ($extra == 'vars')
|
||||
{
|
||||
|
||||
// Filter out sensitive stuff
|
||||
|
||||
$safe_INFO['board_name'] = $INFO['board_name'];
|
||||
$safe_INFO['board_url'] = $INFO['board_url'];
|
||||
|
||||
$answer = $safe_INFO[$macro];
|
||||
|
||||
$result = "Config Variable Information (May be protected)";
|
||||
}
|
||||
else if ($extra == 'lang')
|
||||
{
|
||||
$result = "Language Text";
|
||||
|
||||
$DB->query("SELECT group_name FROM ibf_skin_templates WHERE suid='{$IN['suid']}'");
|
||||
|
||||
if ( $r = $DB->fetch_row() )
|
||||
{
|
||||
$filename = preg_replace( "/^skin_/", "lang_", $r['group_name'] );
|
||||
|
||||
if ( @file_exists( "./lang/en/$filename".".php" ) )
|
||||
{
|
||||
require "./lang/en/$filename".".php";
|
||||
|
||||
$answer = $lang[$macro];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Is macro
|
||||
|
||||
$DB->query("SELECT set_id FROM ibf_skin_templates WHERE suid='{$IN['suid']}'");
|
||||
|
||||
$template = $DB->fetch_row();
|
||||
|
||||
$DB->query("SELECT macro_id FROM ibf_skins WHERE set_id='".$template['set_id']."'");
|
||||
|
||||
$macrod = $DB->fetch_row();
|
||||
|
||||
$DB->query("SELECT macro_value, macro_replace FROM ibf_macro WHERE macro_set='".$macrod['macro_id']."' AND macro_value='$macro'");
|
||||
|
||||
if ($val = $DB->fetch_row())
|
||||
{
|
||||
$answer = $val['macro_replace'];
|
||||
$result = "From Macro Set";
|
||||
}
|
||||
else
|
||||
{
|
||||
$answer = "Macro not found";
|
||||
}
|
||||
}
|
||||
|
||||
$SKIN->td_header[] = array( " " , "40%" );
|
||||
$SKIN->td_header[] = array( " " , "60%" );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Macro Look-up Result <a href='{$SKIN->base_url}&act=rtempl&code=macro_one&suid={$IN['suid']}'>Go Again</a>" );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Entered Macro</b>", $IN['lookup'] ) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Macro Type</b>", $result ) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Result</b><br>May be blank if no info", $answer ) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
$ADMIN->print_popup();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
//+-------------------------------
|
||||
//+-------------------------------
|
||||
|
||||
function do_preview()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_GET_VARS;
|
||||
|
||||
|
||||
if ($IN['suid'] == "")
|
||||
{
|
||||
$ADMIN->error("You must specify an existing template set ID, go back and try again");
|
||||
}
|
||||
|
||||
$DB->query("SELECT * FROM ibf_skin_templates WHERE suid='".$IN['suid']."'");
|
||||
|
||||
if ( ! $template = $DB->fetch_row() )
|
||||
{
|
||||
$ADMIN->error("You must specify an existing template set ID, go back and try again");
|
||||
}
|
||||
|
||||
$table = "<table width='100%' bgcolor='black' cellpadding='4' style='font-family:verdana, arial;font-size:11px;color:white'>
|
||||
<tr>
|
||||
<td align='center' style='font-family:verdana, arial;font-size:11px;color:white'>Template Group: {$template['group_name']} : Template bit: {$template['func_name']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='center' style='font-family:verdana, arial;font-size:11px;color:white'>View as [ <a href='{$ADMIN->base_url}&act=rtempl&code=preview&suid={$IN['suid']}&type=text' style='font-family:verdana, arial;font-size:11px;color:white'>Text</a> | <a href='{$ADMIN->base_url}&act=rtempl&code=preview&suid={$IN['suid']}&type=html' style='font-family:verdana, arial;font-size:11px;color:white'>HTML</a> | <a href='{$ADMIN->base_url}&act=rtempl&code=preview&suid={$IN['suid']}&type=css' style='font-family:verdana, arial;font-size:11px;color:white'>HTML with CSS</a> ]</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br><br>
|
||||
";
|
||||
|
||||
if ($IN['type'] == 'text')
|
||||
{
|
||||
@header("Content-type: text/html");
|
||||
print $table;
|
||||
$html = $this->convert_tags($template['section_content']);
|
||||
|
||||
$html = str_replace( "<" , "<" , $html);
|
||||
$html = str_replace( ">" , ">" , $html);
|
||||
$html = str_replace( "\"", """, $html);
|
||||
|
||||
if ($HTTP_GET_VARS['hl'] != "")
|
||||
{
|
||||
$hl = urldecode(stripslashes($HTTP_GET_VARS['hl']));
|
||||
|
||||
$hl = str_replace( "<" , "<" , $hl);
|
||||
$hl = str_replace( ">" , ">" , $hl);
|
||||
$hl = str_replace( "\"", """, $hl);
|
||||
|
||||
$html = str_replace( $hl, "<span style='color:red;font-weight:bold;background-color:yellow'>$hl</span>", $html );
|
||||
}
|
||||
|
||||
$html = preg_replace( "!<\!--(.+?)(//)?-->!s" , "<!<span style='color:red'>--\\1--\\2</span>>", $html );
|
||||
$html = preg_replace( "#<([^&<>]+)>#s" , "<<span style='color:blue'>\\1</span>>" , $html ); //Matches <tag>
|
||||
$html = preg_replace( "#<([^&<>]+)=#s" , "<<span style='color:blue'>\\1</span>=" , $html ); //Matches <tag
|
||||
$html = preg_replace( "#</([^&]+)>#s" , "</<span style='color:blue'>\\1</span>>" , $html ); //Matches </tag>
|
||||
$html = preg_replace( "!=("|')([^<>])("|')(\s|>)!s" , "=\\1<span style='color:purple'>\\2</span>\\3\\4" , $html ); //Matches ='this'
|
||||
|
||||
$html = str_replace( "\n", "<br>", str_replace("\r\n", "\n", $html ) );
|
||||
|
||||
print "<pre>".$html."</pre>";
|
||||
exit();
|
||||
|
||||
}
|
||||
else if ($IN['type'] == 'html')
|
||||
{
|
||||
@header("Content-type: text/html");
|
||||
print $table;
|
||||
print $this->convert_tags($template['section_content']);
|
||||
|
||||
exit();
|
||||
}
|
||||
else if($IN['type'] == 'css')
|
||||
{
|
||||
$DB->query("SELECT css_id, img_dir FROM ibf_skins WHERE set_id='".$template['set_id']."'");
|
||||
$r = $DB->fetch_row();
|
||||
|
||||
$DB->query("SELECT css_text FROM ibf_css WHERE cssid='".$r['css_id']."'");
|
||||
|
||||
$css = $DB->fetch_row();
|
||||
|
||||
$css_text = "\n<style>\n<!--\n".str_replace( "<#IMG_DIR#>", "style_images/".$r['img_dir'], $css['css_text'] )."\n//-->\n</style>";
|
||||
|
||||
@header("Content-type: text/html");
|
||||
print "<html><head><title>Preview</title>$css_text</head><body>$table \n";
|
||||
print $this->convert_tags($template['section_content']);
|
||||
|
||||
exit();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
//------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
function convert_tags($t="")
|
||||
{
|
||||
if ($t == "")
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
$t = preg_replace( "/{?\\\$ibforums->base_url}?/" , "{ibf.script_url}" , $t );
|
||||
$t = preg_replace( "/{?\\\$ibforums->session_id}?/" , "{ibf.session_id}" , $t );
|
||||
$t = preg_replace( "/{?\\\$ibforums->skin\['?(\w+)'?\]}?/" , "{ibf.skin.\\1}" , $t );
|
||||
$t = preg_replace( "/{?\\\$ibforums->lang\['?(\w+)'?\]}?/" , "{ibf.lang.\\1}" , $t );
|
||||
$t = preg_replace( "/{?\\\$ibforums->vars\['?(\w+)'?\]}?/" , "{ibf.vars.\\1}" , $t );
|
||||
$t = preg_replace( "/{?\\\$ibforums->member\['?(\w+)'?\]}?/" , "{ibf.member.\\1}" , $t );
|
||||
|
||||
return $t;
|
||||
|
||||
}
|
||||
|
||||
function unconvert_tags($t="")
|
||||
{
|
||||
if ($t == "")
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
$t = preg_replace( "/{ibf\.script_url}/i" , '{$ibforums->base_url}' , $t);
|
||||
$t = preg_replace( "/{ibf\.session_id}/i" , '{$ibforums->session_id}' , $t);
|
||||
$t = preg_replace( "/{ibf\.skin\.(\w+)}/" , '{$ibforums->skin[\''."\\1".'\']}' , $t);
|
||||
$t = preg_replace( "/{ibf\.lang\.(\w+)}/" , '{$ibforums->lang[\''."\\1".'\']}' , $t);
|
||||
$t = preg_replace( "/{ibf\.vars\.(\w+)}/" , '{$ibforums->vars[\''."\\1".'\']}' , $t);
|
||||
$t = preg_replace( "/{ibf\.member\.(\w+)}/" , '{$ibforums->member[\''."\\1".'\']}' , $t);
|
||||
|
||||
return $t;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
+1678
-1439
File diff suppressed because it is too large.
Load diff
+1042
-1160
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,533 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Board v1.1
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001,2002 Invision Power Services
|
||||
| http://www.ibforums.com
|
||||
| ========================================
|
||||
| Web: http://www.ibforums.com
|
||||
| Email: phpboards@ibforums.com
|
||||
| Licence Info: phpib-licence@ibforums.com
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Statistical functions
|
||||
| > Module written by Matt Mecham
|
||||
| > Date started: 4th July 2002
|
||||
|
|
||||
| > Module Version Number: 1.0.0
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
$idx = new ad_stats();
|
||||
|
||||
|
||||
class ad_stats {
|
||||
|
||||
var $base_url;
|
||||
var $month_names = array();
|
||||
|
||||
function ad_stats()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$this->month_names = array( 1 => 'January', 'February', 'March' , 'April' , 'May' , 'June',
|
||||
'July' , 'August' , 'September' , 'October', 'November', 'December'
|
||||
);
|
||||
|
||||
switch($IN['code'])
|
||||
{
|
||||
case 'show_reg':
|
||||
$this->result_screen('reg');
|
||||
break;
|
||||
|
||||
case 'show_topic':
|
||||
$this->result_screen('topic');
|
||||
break;
|
||||
|
||||
case 'topic':
|
||||
$this->main_screen('topic');
|
||||
break;
|
||||
|
||||
//-----------------------
|
||||
|
||||
case 'show_post':
|
||||
$this->result_screen('post');
|
||||
break;
|
||||
|
||||
case 'post':
|
||||
$this->main_screen('post');
|
||||
break;
|
||||
|
||||
//-----------------------
|
||||
|
||||
case 'show_msg':
|
||||
$this->result_screen('msg');
|
||||
break;
|
||||
|
||||
case 'msg':
|
||||
$this->main_screen('msg');
|
||||
break;
|
||||
|
||||
//-----------------------
|
||||
|
||||
case 'show_views':
|
||||
$this->show_views();
|
||||
break;
|
||||
|
||||
case 'views':
|
||||
$this->main_screen('views');
|
||||
break;
|
||||
|
||||
//-----------------------
|
||||
|
||||
default:
|
||||
$this->main_screen('reg');
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//select forum_id, SUM(views)from ibf_topics group by forum_id order by forum_id
|
||||
|
||||
//+---------------------------------------------------------------------------------
|
||||
//| Results screen
|
||||
//+---------------------------------------------------------------------------------
|
||||
|
||||
function show_views()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$ADMIN->page_title = "Statistic Center Results";
|
||||
|
||||
$ADMIN->page_detail = "Showing topic view statistics";
|
||||
|
||||
//+---------------------
|
||||
|
||||
if ( ! checkdate($IN['to_month'] ,$IN['to_day'] ,$IN['to_year']) )
|
||||
{
|
||||
$ADMIN->error("The 'Date To:' time is incorrect, please check the input and try again");
|
||||
}
|
||||
|
||||
if ( ! checkdate($IN['from_month'] ,$IN['from_day'] ,$IN['from_year']) )
|
||||
{
|
||||
$ADMIN->error("The 'Date From:' time is incorrect, please check the input and try again");
|
||||
}
|
||||
|
||||
//+---------------------
|
||||
|
||||
$to_time = mktime(12 ,0 ,0 ,$IN['to_month'] ,$IN['to_day'] ,$IN['to_year'] );
|
||||
$from_time = mktime(12 ,0 ,0 ,$IN['from_month'] ,$IN['from_day'] ,$IN['from_year']);
|
||||
|
||||
|
||||
$human_to_date = getdate($to_time);
|
||||
$human_from_date = getdate($from_time);
|
||||
|
||||
$DB->query("SELECT SUM(t.views) as result_count, t.forum_id, f.name as result_name
|
||||
FROM ibf_topics t, ibf_forums f
|
||||
WHERE t.start_date > '$from_time'
|
||||
AND t.start_date < '$to_time'
|
||||
AND t.forum_id=f.id
|
||||
GROUP BY t.forum_id
|
||||
ORDER BY result_count {$IN['sortby']}");
|
||||
|
||||
$running_total = 0;
|
||||
$max_result = 0;
|
||||
|
||||
$results = array();
|
||||
|
||||
$SKIN->td_header[] = array( "Forum" , "40%" );
|
||||
$SKIN->td_header[] = array( "Result" , "50%" );
|
||||
$SKIN->td_header[] = array( "Views" , "10%" );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Topic Views"
|
||||
." ({$human_from_date['mday']} {$this->month_names[$human_from_date['mon']]} {$human_from_date['year']} to"
|
||||
." {$human_to_date['mday']} {$this->month_names[$human_to_date['mon']]} {$human_to_date['year']})"
|
||||
);
|
||||
|
||||
if ( $DB->get_num_rows() )
|
||||
{
|
||||
|
||||
while ($row = $DB->fetch_row() )
|
||||
{
|
||||
|
||||
if ( $row['result_count'] > $max_result )
|
||||
{
|
||||
$max_result = $row['result_count'];
|
||||
}
|
||||
|
||||
$running_total += $row['result_count'];
|
||||
|
||||
$results[] = array(
|
||||
'result_name' => $row['result_name'],
|
||||
'result_count' => $row['result_count'],
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
foreach( $results as $pOOp => $data )
|
||||
{
|
||||
|
||||
$img_width = intval( ($data['result_count'] / $max_result) * 100 - 8) . "%";
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( $data['result_name'],
|
||||
"<img src='{$SKIN->img_url}/bar_left.gif' border='0' width='4' height='11' align='middle' alt=''><img src='{$SKIN->img_url}/bar.gif' border='0' width='$img_width' height='11' align='middle' alt=''><img src='{$SKIN->img_url}/bar_right.gif' border='0' width='4' height='11' align='middle' alt=''>",
|
||||
"<center>".$data['result_count']."</center>",
|
||||
) );
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( ' ',
|
||||
"<div align='right'><b>Total</b></div>",
|
||||
"<center><b>".$running_total."</b></center>",
|
||||
) );
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$ADMIN->html .= $SKIN->add_td_basic( "No results found", "center" );
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
}
|
||||
|
||||
//+---------------------------------------------------------------------------------
|
||||
//| Results screen
|
||||
//+---------------------------------------------------------------------------------
|
||||
|
||||
function result_screen($mode='reg')
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$ADMIN->page_title = "Statistic Center Results";
|
||||
|
||||
$ADMIN->page_detail = " ";
|
||||
|
||||
//+---------------------
|
||||
|
||||
if ( ! checkdate($IN['to_month'] ,$IN['to_day'] ,$IN['to_year']) )
|
||||
{
|
||||
$ADMIN->error("The 'Date To:' time is incorrect, please check the input and try again");
|
||||
}
|
||||
|
||||
if ( ! checkdate($IN['from_month'] ,$IN['from_day'] ,$IN['from_year']) )
|
||||
{
|
||||
$ADMIN->error("The 'Date From:' time is incorrect, please check the input and try again");
|
||||
}
|
||||
|
||||
//+---------------------
|
||||
|
||||
$to_time = mktime(12 ,0 ,0 ,$IN['to_month'] ,$IN['to_day'] ,$IN['to_year'] );
|
||||
$from_time = mktime(12 ,0 ,0 ,$IN['from_month'] ,$IN['from_day'] ,$IN['from_year']);
|
||||
|
||||
|
||||
$human_to_date = getdate($to_time);
|
||||
$human_from_date = getdate($from_time);
|
||||
|
||||
//+---------------------
|
||||
|
||||
if ($mode == 'reg')
|
||||
{
|
||||
$table = 'Registration Statistics';
|
||||
|
||||
$sql_table = 'ibf_members';
|
||||
$sql_field = 'joined';
|
||||
|
||||
$ADMIN->page_detail = "Showing the number of users registered. (Note: All times based on GMT)";
|
||||
}
|
||||
else if ($mode == 'topic')
|
||||
{
|
||||
$table = 'New Topic Statistics';
|
||||
|
||||
$sql_table = 'ibf_topics';
|
||||
$sql_field = 'start_date';
|
||||
|
||||
$ADMIN->page_detail = "Showing the number of topics started. (Note: All times based on GMT)";
|
||||
}
|
||||
else if ($mode == 'post')
|
||||
{
|
||||
$table = 'Post Statistics';
|
||||
|
||||
$sql_table = 'ibf_posts';
|
||||
$sql_field = 'post_date';
|
||||
|
||||
$ADMIN->page_detail = "Showing the number of posts. (Note: All times based on GMT)";
|
||||
}
|
||||
else if ($mode == 'msg')
|
||||
{
|
||||
$table = 'PM Sent Statistics';
|
||||
|
||||
$sql_table = 'ibf_messages';
|
||||
$sql_field = 'msg_date';
|
||||
|
||||
$ADMIN->page_detail = "Showing the number of sent messages. (Note: All times based on GMT)";
|
||||
}
|
||||
|
||||
|
||||
switch ($IN['timescale'])
|
||||
{
|
||||
case 'daily':
|
||||
$sql_date = "%w %U %m %Y";
|
||||
$php_date = "F jS - Y";
|
||||
break;
|
||||
|
||||
case 'monthly':
|
||||
$sql_date = "%m %Y";
|
||||
$php_date = "F Y";
|
||||
break;
|
||||
|
||||
default:
|
||||
// weekly
|
||||
$sql_date = "%U %Y";
|
||||
$php_date = " [F Y]";
|
||||
break;
|
||||
}
|
||||
|
||||
$DB->query("SELECT MAX($sql_field) as result_maxdate,
|
||||
COUNT(*) as result_count,
|
||||
DATE_FORMAT(from_unixtime($sql_field),'$sql_date') AS result_time
|
||||
FROM $sql_table
|
||||
WHERE $sql_field > '$from_time'
|
||||
AND $sql_field < '$to_time'
|
||||
GROUP BY result_time
|
||||
ORDER BY $sql_field {$IN['sortby']}");
|
||||
|
||||
$running_total = 0;
|
||||
$max_result = 0;
|
||||
|
||||
$results = array();
|
||||
|
||||
$SKIN->td_header[] = array( "Date" , "20%" );
|
||||
$SKIN->td_header[] = array( "Result" , "70%" );
|
||||
$SKIN->td_header[] = array( "Count" , "10%" );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( ucfirst($IN['timescale'])
|
||||
." ".$table
|
||||
." ({$human_from_date['mday']} {$this->month_names[$human_from_date['mon']]} {$human_from_date['year']} to"
|
||||
." {$human_to_date['mday']} {$this->month_names[$human_to_date['mon']]} {$human_to_date['year']})"
|
||||
);
|
||||
|
||||
if ( $DB->get_num_rows() )
|
||||
{
|
||||
|
||||
while ($row = $DB->fetch_row() )
|
||||
{
|
||||
|
||||
if ( $row['result_count'] > $max_result )
|
||||
{
|
||||
$max_result = $row['result_count'];
|
||||
}
|
||||
|
||||
$running_total += $row['result_count'];
|
||||
|
||||
$results[] = array(
|
||||
'result_maxdate' => $row['result_maxdate'],
|
||||
'result_count' => $row['result_count'],
|
||||
'result_time' => $row['result_time'],
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
foreach( $results as $pOOp => $data )
|
||||
{
|
||||
|
||||
$img_width = intval( ($data['result_count'] / $max_result) * 100 - 8) . "%";
|
||||
|
||||
if ($IN['timescale'] == 'weekly')
|
||||
{
|
||||
$date = "Week #".strftime("%W", $data['result_maxdate']) . date( $php_date, $data['result_maxdate'] );
|
||||
}
|
||||
else
|
||||
{
|
||||
$date = date( $php_date, $data['result_maxdate'] );
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( $date,
|
||||
"<img src='{$SKIN->img_url}/bar_left.gif' border='0' width='4' height='11' align='middle' alt=''><img src='{$SKIN->img_url}/bar.gif' border='0' width='$img_width' height='11' align='middle' alt=''><img src='{$SKIN->img_url}/bar_right.gif' border='0' width='4' height='11' align='middle' alt=''>",
|
||||
"<center>".$data['result_count']."</center>",
|
||||
) );
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( ' ',
|
||||
"<div align='right'><b>Total</b></div>",
|
||||
"<center><b>".$running_total."</b></center>",
|
||||
) );
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$ADMIN->html .= $SKIN->add_td_basic( "No results found", "center" );
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
}
|
||||
|
||||
//+---------------------------------------------------------------------------------
|
||||
//| Date selection screen
|
||||
//+---------------------------------------------------------------------------------
|
||||
|
||||
function main_screen($mode='reg')
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$ADMIN->page_title = "Statistic Center";
|
||||
|
||||
$ADMIN->page_detail = "Please define the date ranges and other options below.<br>Note: The statistics generated are based on the information currently held in the database, they do not take into account pruned forums or delete posts, etc.";
|
||||
|
||||
if ($mode == 'reg')
|
||||
{
|
||||
$form_code = 'show_reg';
|
||||
|
||||
$table = 'Registration Statistics';
|
||||
}
|
||||
else if ($mode == 'topic')
|
||||
{
|
||||
$form_code = 'show_topic';
|
||||
|
||||
$table = 'New Topic Statistics';
|
||||
}
|
||||
else if ($mode == 'post')
|
||||
{
|
||||
$form_code = 'show_post';
|
||||
|
||||
$table = 'Post Statistics';
|
||||
}
|
||||
else if ($mode == 'msg')
|
||||
{
|
||||
$form_code = 'show_msg';
|
||||
|
||||
$table = 'PM Statistics';
|
||||
}
|
||||
else if ($mode == 'views')
|
||||
{
|
||||
$form_code = 'show_views';
|
||||
|
||||
$table = 'Topic View Statistics';
|
||||
}
|
||||
|
||||
|
||||
$old_date = getdate(time() - (3600 * 24 * 90));
|
||||
$new_date = getdate(time() + (3600 * 24));
|
||||
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , $form_code ),
|
||||
2 => array( 'act' , 'stats' ),
|
||||
) );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$SKIN->td_header[] = array( " " , "40%" );
|
||||
$SKIN->td_header[] = array( " " , "60%" );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( $table );
|
||||
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Date From</b>" ,
|
||||
$SKIN->form_dropdown( "from_month" , $this->make_month(), $old_date['mon'] ).' '.
|
||||
$SKIN->form_dropdown( "from_day" , $this->make_day() , $old_date['mday'] ).' '.
|
||||
$SKIN->form_dropdown( "from_year" , $this->make_year() , $old_date['year'] )
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Date To</b>" ,
|
||||
$SKIN->form_dropdown( "to_month" , $this->make_month(), $new_date['mon'] ).' '.
|
||||
$SKIN->form_dropdown( "to_day" , $this->make_day() , $new_date['mday'] ).' '.
|
||||
$SKIN->form_dropdown( "to_year" , $this->make_year() , $new_date['year'] )
|
||||
) );
|
||||
|
||||
if ($mode != 'views')
|
||||
{
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Time scale</b>" ,
|
||||
$SKIN->form_dropdown( "timescale" , array( 0 => array( 'daily', 'Daily'), 1 => array( 'weekly', 'Weekly' ), 2 => array( 'monthly', 'Monthly' ) ) )
|
||||
) );
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Result Sorting</b>" ,
|
||||
$SKIN->form_dropdown( "sortby" , array( 0 => array( 'asc', 'Ascending - Oldest dates first'), 1 => array( 'desc', 'Descending - Newest dates first' ) ), 'desc' )
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_form("Show");
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
|
||||
}
|
||||
|
||||
//+---------------------------------------------------------------------------------
|
||||
|
||||
function make_year()
|
||||
{
|
||||
$time_now = getdate();
|
||||
|
||||
$return = array();
|
||||
|
||||
$start_year = 2002;
|
||||
|
||||
$latest_year = intval($time_now['year']);
|
||||
|
||||
if ($latest_year == $start_year)
|
||||
{
|
||||
$start_year -= 1;
|
||||
}
|
||||
|
||||
for ( $y = $start_year; $y <= $latest_year; $y++ )
|
||||
{
|
||||
$return[] = array( $y, $y);
|
||||
}
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
//+----------------------------------------
|
||||
|
||||
function make_month()
|
||||
{
|
||||
$return = array();
|
||||
|
||||
for ( $m = 1 ; $m <= 12; $m++ )
|
||||
{
|
||||
$return[] = array( $m, $this->month_names[$m] );
|
||||
}
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
//+----------------------------------------
|
||||
|
||||
function make_day()
|
||||
{
|
||||
$return = array();
|
||||
|
||||
for ( $d = 1 ; $d <= 31; $d++ )
|
||||
{
|
||||
$return[] = array( $d, $d );
|
||||
}
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
+1923
-1557
File diff suppressed because it is too large.
Load diff
@@ -1,436 +1,516 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IBFORUMS v1
|
||||
| ========================================
|
||||
| by Matthew Mecham and David Baxter
|
||||
| (c) 2001,2002 IBForums
|
||||
| http://www.ibforums.com
|
||||
| ========================================
|
||||
| Web: http://www.ibforums.com
|
||||
| Email: phpboards@ibforums.com
|
||||
| Licence Info: phpib-licence@ibforums.com
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Help Control functions
|
||||
| > Module written by Matt Mecham
|
||||
| > Date started: 2nd April 2002
|
||||
|
|
||||
| > Module Version Number: 1.0.0
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
$idx = new ad_settings();
|
||||
|
||||
|
||||
class ad_settings {
|
||||
|
||||
var $base_url;
|
||||
|
||||
function ad_settings() {
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
switch($IN['code'])
|
||||
{
|
||||
case 'wrapper':
|
||||
$this->list_wrappers();
|
||||
break;
|
||||
|
||||
case 'add':
|
||||
$this->do_form('add');
|
||||
break;
|
||||
|
||||
case 'edit':
|
||||
$this->do_form('edit');
|
||||
break;
|
||||
|
||||
case 'doadd':
|
||||
$this->save_wrapper('add');
|
||||
break;
|
||||
|
||||
case 'doedit':
|
||||
$this->save_wrapper('edit');
|
||||
break;
|
||||
|
||||
case 'remove':
|
||||
$this->remove();
|
||||
break;
|
||||
|
||||
case 'export':
|
||||
$this->export();
|
||||
|
||||
//-------------------------
|
||||
default:
|
||||
$this->list_wrappers();
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function export()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
if ($IN['id'] == "")
|
||||
{
|
||||
$ADMIN->error("You must specify an existing wrapper ID, go back and try again");
|
||||
}
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$DB->query("SELECT * from ibf_templates WHERE tmid='".$IN['id']."'");
|
||||
|
||||
if ( ! $row = $DB->fetch_row() )
|
||||
{
|
||||
$ADMIN->error("Could not query the information from the database");
|
||||
}
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$archive_dir = $INFO['base_dir']."/archive_out";
|
||||
|
||||
require $root_dir."sources/lib/tar.php";
|
||||
|
||||
if (!is_dir($archive_dir))
|
||||
{
|
||||
$ADMIN->error("Could not locate $archive_dir, is the directory there?");
|
||||
}
|
||||
|
||||
if (!is_writeable($archive_dir))
|
||||
{
|
||||
$ADMIN->error("Cannot write in $archive_dir, CHMOD via FTP to 0755 or 0777 to enable this script to write into it. IBF cannot do this for you");
|
||||
}
|
||||
|
||||
//+-------------------------------
|
||||
// Attempt to copy the files to the
|
||||
// working directory...
|
||||
//+-------------------------------
|
||||
|
||||
$l_name = preg_replace( "/\s{1,}/", "_", $row['name'] );
|
||||
|
||||
$file_name = "wrap-".$l_name.".html";
|
||||
|
||||
$row['template'] = preg_replace("/\r/", "\n", $row['template'] );
|
||||
|
||||
$FH = fopen($archive_dir."/".$file_name, 'w');
|
||||
fwrite($FH, $row['template'], strlen($row['template']));
|
||||
fclose($FH);
|
||||
|
||||
$ADMIN->done_screen("Wrapper Export Created<br><br>You can download the html resource <a href='archive_out/$file_name' target='_blank'>here</a>", "Manage Board Wrappers", "act=wrap" );
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// REMOVE WRAPPERS
|
||||
//-------------------------------------------------------------
|
||||
|
||||
function remove()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_POST_VARS;
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
|
||||
if ($IN['id'] == "")
|
||||
{
|
||||
$ADMIN->error("You must specify an existing wrapper ID, go back and try again");
|
||||
}
|
||||
|
||||
$DB->query("DELETE FROM ibf_templates WHERE tmid='".$IN['id']."'");
|
||||
|
||||
$std->boink_it($SKIN->base_url."&act=wrap");
|
||||
|
||||
exit();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// ADD / EDIT WRAPPERS
|
||||
//-------------------------------------------------------------
|
||||
|
||||
function save_wrapper( $type='add' )
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_POST_VARS;
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
if ($type == 'edit')
|
||||
{
|
||||
if ($IN['id'] == "")
|
||||
{
|
||||
$ADMIN->error("You must specify an existing wrapper ID, go back and try again");
|
||||
}
|
||||
}
|
||||
|
||||
if ($IN['name'] == "")
|
||||
{
|
||||
$ADMIN->error("You must specify a name for this wrapper");
|
||||
}
|
||||
|
||||
if ($IN['template'] == "")
|
||||
{
|
||||
$ADMIN->error("You can't have an empty template, can you?");
|
||||
}
|
||||
|
||||
$tmpl = preg_replace( "!</textarea>!", "/textarea>", stripslashes($HTTP_POST_VARS['template']) );
|
||||
|
||||
if ( ! preg_match( "/<% BOARD %>/", $tmpl ) )
|
||||
{
|
||||
$ADMIN->error("You cannot remove the <% BOARD %> tag silly!");
|
||||
}
|
||||
|
||||
if ( ! preg_match( "/<% COPYRIGHT %>/", $tmpl ) )
|
||||
{
|
||||
$ADMIN->error("You cannot remove the <% COPYRIGHT %> tag silly!");
|
||||
}
|
||||
|
||||
$barney = array( 'name' => stripslashes($HTTP_POST_VARS['name']),
|
||||
'template' => $tmpl
|
||||
);
|
||||
|
||||
if ($type == 'add')
|
||||
{
|
||||
$db_string = $DB->compile_db_insert_string( $barney );
|
||||
|
||||
$DB->query("INSERT INTO ibf_templates (".$db_string['FIELD_NAMES'].") VALUES(".$db_string['FIELD_VALUES'].")");
|
||||
|
||||
$std->boink_it($SKIN->base_url."&act=wrap");
|
||||
|
||||
exit();
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$db_string = $DB->compile_db_update_string( $barney );
|
||||
|
||||
$DB->query("UPDATE ibf_templates SET $db_string WHERE tmid='".$IN['id']."'");
|
||||
|
||||
$ADMIN->done_screen("Wrapper updated", "Manage Board Wrappers", "act=wrap" );
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// ADD / EDIT WRAPPERS
|
||||
//-------------------------------------------------------------
|
||||
|
||||
function do_form( $type='add' )
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
if ($IN['id'] == "")
|
||||
{
|
||||
$ADMIN->error("You must specify an existing wrapper ID, go back and try again");
|
||||
}
|
||||
|
||||
$DB->query("SELECT * from ibf_templates WHERE tmid='".$IN['id']."'");
|
||||
|
||||
if ( ! $row = $DB->fetch_row() )
|
||||
{
|
||||
$ADMIN->error("Could not query the information from the database");
|
||||
}
|
||||
|
||||
if ($type == 'add')
|
||||
{
|
||||
$code = 'doadd';
|
||||
$button = 'Create Wrapper';
|
||||
$row['name'] = $row['name'].".2";
|
||||
}
|
||||
else
|
||||
{
|
||||
$code = 'doedit';
|
||||
$button = 'Edit Wrapper';
|
||||
}
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->page_detail = "You may use HTML fully when adding or editing wrappers.";
|
||||
$ADMIN->page_title = "Manage Board Wrappers";
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->js_no_specialchars();
|
||||
|
||||
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , $code ),
|
||||
2 => array( 'act' , 'wrap' ),
|
||||
3 => array( 'id' , $IN['id'] ),
|
||||
), "theAdminForm", "onSubmit=\"return no_specialchars('wrapper')\"" );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$SKIN->td_header[] = array( " " , "20%" );
|
||||
$SKIN->td_header[] = array( " " , "80%" );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$row['template'] = preg_replace( "/\/textarea>/", "</textarea>", $row['template'] ); // Stop html killing the text area
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( $button );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array(
|
||||
"Wrapper Title",
|
||||
$SKIN->form_input('name', $row['name']),
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array(
|
||||
"Content",
|
||||
$SKIN->form_textarea('template', $row['template'], "60", "15"),
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_form($button);
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
//+-------------------------------
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// SHOW WRAPPERS
|
||||
//-------------------------------------------------------------
|
||||
|
||||
function list_wrappers()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$form_array = array();
|
||||
|
||||
$ADMIN->page_detail = "You may add/edit and remove the board wrapper templates.<br><br>Board wrapper refers to the main board template which allows additional HTML to be added to the header and footer of the board";
|
||||
$ADMIN->page_title = "Manage Board Wrappers";
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$SKIN->td_header[] = array( "Title" , "40%" );
|
||||
$SKIN->td_header[] = array( "Allocation" , "30%" );
|
||||
$SKIN->td_header[] = array( "Export" , "10%" );
|
||||
$SKIN->td_header[] = array( "Edit" , "10%" );
|
||||
$SKIN->td_header[] = array( "Remove" , "10%" );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$DB->query("SELECT DISTINCT(w.tmid), w.name, s.sname from ibf_templates w, ibf_skins s WHERE s.tmpl_id=w.tmid ORDER BY w.name ASC");
|
||||
|
||||
$used_ids = array();
|
||||
$show_array = array();
|
||||
|
||||
if ( $DB->get_num_rows() )
|
||||
{
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Current Wrappers In Use" );
|
||||
|
||||
while ( $r = $DB->fetch_row() )
|
||||
{
|
||||
|
||||
$show_array[ $r['tmid'] ] .= stripslashes($r['sname'])."<br>";
|
||||
|
||||
if ( in_array( $r['tmid'], $used_ids ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>".stripslashes($r['name'])."</b>",
|
||||
"<#X-{$r['tmid']}#>",
|
||||
"<center><a href='".$SKIN->base_url."&act=wrap&code=export&id={$r['tmid']}'>Export</a></center>",
|
||||
"<center><a href='".$SKIN->base_url."&act=wrap&code=edit&id={$r['tmid']}'>Edit</a></center>",
|
||||
"<i>Deallocate before removing</i>",
|
||||
) );
|
||||
|
||||
$used_ids[] = $r['tmid'];
|
||||
|
||||
$form_array[] = array( $r['tmid'], $r['name'] );
|
||||
|
||||
}
|
||||
|
||||
foreach( $show_array as $idx => $string )
|
||||
{
|
||||
$string = preg_replace( "/<br>$/", "", $string );
|
||||
|
||||
$ADMIN->html = preg_replace( "/<#X-$idx#>/", "$string", $ADMIN->html );
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
}
|
||||
|
||||
if ( count($used_ids) > 0 )
|
||||
{
|
||||
|
||||
$DB->query("SELECT tmid, name FROM ibf_templates WHERE tmid NOT IN(".implode(",",$used_ids).")");
|
||||
|
||||
if ( $DB->get_num_rows() )
|
||||
{
|
||||
|
||||
$SKIN->td_header[] = array( "Title" , "70%" );
|
||||
$SKIN->td_header[] = array( "Export" , "10%" );
|
||||
$SKIN->td_header[] = array( "Edit" , "10%" );
|
||||
$SKIN->td_header[] = array( "Remove" , "10%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Current Unallocated Wrappers" );
|
||||
|
||||
$ADMIN->html .= $SKIN->js_checkdelete();
|
||||
|
||||
|
||||
while ( $r = $DB->fetch_row() )
|
||||
{
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>".stripslashes($r['name'])."</b>",
|
||||
"<center><a href='".$SKIN->base_url."&act=wrap&code=export&id={$r['tmid']}'>Export</a></center>",
|
||||
"<center><a href='".$SKIN->base_url."&act=wrap&code=edit&id={$r['tmid']}'>Edit</a></center>",
|
||||
"<center><a href='javascript:checkdelete(\"act=wrap&code=remove&id={$r['tmid']}\")'>Remove</a></center>",
|
||||
) );
|
||||
|
||||
$form_array[] = array( $r['tmid'], $r['name'] );
|
||||
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
}
|
||||
}
|
||||
|
||||
//+-------------------------------
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'add' ),
|
||||
2 => array( 'act' , 'wrap' ),
|
||||
) );
|
||||
|
||||
$SKIN->td_header[] = array( " " , "40%" );
|
||||
$SKIN->td_header[] = array( " " , "60%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Create New Wrapper" );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Base new wrapper on...</b>" ,
|
||||
$SKIN->form_dropdown( "id", $form_array)
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_form("Create new wrapper");
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
//+-------------------------------
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Board v1.1
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001,2002 Invision Power Services
|
||||
| http://www.ibforums.com
|
||||
| ========================================
|
||||
| Web: http://www.ibforums.com
|
||||
| Email: phpboards@ibforums.com
|
||||
| Licence Info: phpib-licence@ibforums.com
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Help Control functions
|
||||
| > Module written by Matt Mecham
|
||||
| > Date started: 2nd April 2002
|
||||
|
|
||||
| > Module Version Number: 1.0.0
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
$idx = new ad_settings();
|
||||
|
||||
|
||||
class ad_settings {
|
||||
|
||||
var $base_url;
|
||||
|
||||
function ad_settings() {
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
switch($IN['code'])
|
||||
{
|
||||
case 'wrapper':
|
||||
$this->list_wrappers();
|
||||
break;
|
||||
|
||||
case 'add':
|
||||
$this->add_splash();
|
||||
break;
|
||||
|
||||
case 'edit':
|
||||
$this->do_form('edit');
|
||||
break;
|
||||
|
||||
case 'doadd':
|
||||
$this->save_wrapper('add');
|
||||
break;
|
||||
|
||||
case 'doedit':
|
||||
$this->save_wrapper('edit');
|
||||
break;
|
||||
|
||||
case 'remove':
|
||||
$this->remove();
|
||||
break;
|
||||
|
||||
case 'export':
|
||||
$this->export();
|
||||
|
||||
//-------------------------
|
||||
default:
|
||||
$this->list_wrappers();
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
|
||||
function add_splash()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_POST_FILES;
|
||||
|
||||
$FILE_NAME = $HTTP_POST_FILES['FILE_UPLOAD']['name'];
|
||||
$FILE_SIZE = $HTTP_POST_FILES['FILE_UPLOAD']['size'];
|
||||
$FILE_TYPE = $HTTP_POST_FILES['FILE_UPLOAD']['type'];
|
||||
|
||||
// Naughty Opera adds the filename on the end of the
|
||||
// mime type - we don't want this.
|
||||
|
||||
$FILE_TYPE = preg_replace( "/^(.+?);.*$/", "\\1", $FILE_TYPE );
|
||||
|
||||
// Naughty Mozilla likes to use "none" to indicate an empty upload field.
|
||||
// I love universal languages that aren't universal.
|
||||
|
||||
if ($HTTP_POST_FILES['FILE_UPLOAD']['name'] == "" or !$HTTP_POST_FILES['FILE_UPLOAD']['name'] or ($HTTP_POST_FILES['FILE_UPLOAD']['name'] == "none") )
|
||||
{
|
||||
// We're adding new templates based on another set
|
||||
|
||||
$this->do_form('add');
|
||||
exit();
|
||||
}
|
||||
|
||||
if (! is_dir($INFO['upload_dir']) )
|
||||
{
|
||||
$ADMIN->error("Could not locate the uploads directory - make sure the 'uploads' path is set correctly");
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
// Copy the upload to the uploads directory
|
||||
//-------------------------------------------------
|
||||
|
||||
if (! @move_uploaded_file( $HTTP_POST_FILES['FILE_UPLOAD']['tmp_name'], $INFO['upload_dir']."/".$FILE_NAME) )
|
||||
{
|
||||
$ADMIN->error("The upload failed");
|
||||
}
|
||||
else
|
||||
{
|
||||
@chmod( $INFO['upload_dir']."/".$FILE_NAME, 0777 );
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
// Attempt to open the file..
|
||||
//-------------------------------------------------
|
||||
|
||||
$filename = $INFO['upload_dir']."/".$FILE_NAME;
|
||||
|
||||
if ( $FH = @fopen( $filename, 'r' ) )
|
||||
{
|
||||
$data = @fread( $FH, filesize($filename) );
|
||||
@fclose($FH);
|
||||
|
||||
@unlink($filename);
|
||||
}
|
||||
else
|
||||
{
|
||||
$ADMIN->error("Could not open the uploaded file for reading!");
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
// If we're here, we'll assume that we've read the
|
||||
// file and the contents are in $data
|
||||
// So, lets make sure its the correct template file..
|
||||
//-------------------------------------------------
|
||||
|
||||
if ( ! preg_match( "/<% COPYRIGHT %>/", $data ) )
|
||||
{
|
||||
$ADMIN->error("This file does not appear to be a valid Invision Board Wrapper file");
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// Insert wrapper into DB
|
||||
//----------------------------------
|
||||
|
||||
$wrap_name .= "New Wrapper (Upload ID: ".substr( time(), -6 ).")";
|
||||
|
||||
$str = $DB->compile_db_insert_string( array ( 'name' => $wrap_name,
|
||||
'template' => $data,
|
||||
) );
|
||||
|
||||
$DB->query("INSERT INTO ibf_templates ({$str['FIELD_NAMES']}) VALUES({$str['FIELD_VALUES']})");
|
||||
|
||||
$ADMIN->done_screen("Board Wrapper import complete", "Manage Board Wrappers", "act=wrap" );
|
||||
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
|
||||
function export()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
if ($IN['id'] == "")
|
||||
{
|
||||
$ADMIN->error("You must specify an existing wrapper ID, go back and try again");
|
||||
}
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$DB->query("SELECT * from ibf_templates WHERE tmid='".$IN['id']."'");
|
||||
|
||||
if ( ! $row = $DB->fetch_row() )
|
||||
{
|
||||
$ADMIN->error("Could not query the information from the database");
|
||||
}
|
||||
|
||||
//+-------------------------------
|
||||
// Pass file as an attachment, yeah!
|
||||
//+-------------------------------
|
||||
|
||||
$l_name = preg_replace( "/\s{1,}/", "_", $row['name'] );
|
||||
|
||||
$file_name = "wrap-".substr($l_name, 0, 8).".html";
|
||||
|
||||
$row['template'] = preg_replace("/\r\n/", "\n", $row['template'] );
|
||||
|
||||
@header("Content-type: unknown/unknown");
|
||||
@header("Content-Disposition: attachment; filename=$file_name");
|
||||
|
||||
print $row['template']."\n";
|
||||
|
||||
exit();
|
||||
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// REMOVE WRAPPERS
|
||||
//-------------------------------------------------------------
|
||||
|
||||
function remove()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_POST_VARS;
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
|
||||
if ($IN['id'] == "")
|
||||
{
|
||||
$ADMIN->error("You must specify an existing wrapper ID, go back and try again");
|
||||
}
|
||||
|
||||
$DB->query("DELETE FROM ibf_templates WHERE tmid='".$IN['id']."'");
|
||||
|
||||
$std->boink_it($SKIN->base_url."&act=wrap");
|
||||
|
||||
exit();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// ADD / EDIT WRAPPERS
|
||||
//-------------------------------------------------------------
|
||||
|
||||
function save_wrapper( $type='add' )
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_POST_VARS;
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
if ($type == 'edit')
|
||||
{
|
||||
if ($IN['id'] == "")
|
||||
{
|
||||
$ADMIN->error("You must specify an existing wrapper ID, go back and try again");
|
||||
}
|
||||
}
|
||||
|
||||
if ($IN['name'] == "")
|
||||
{
|
||||
$ADMIN->error("You must specify a name for this wrapper");
|
||||
}
|
||||
|
||||
if ($IN['template'] == "")
|
||||
{
|
||||
$ADMIN->error("You can't have an empty template, can you?");
|
||||
}
|
||||
|
||||
$tmpl = preg_replace( "!</textarea>!", "/textarea>", stripslashes($HTTP_POST_VARS['template']) );
|
||||
|
||||
if ( ! preg_match( "/<% BOARD %>/", $tmpl ) )
|
||||
{
|
||||
$ADMIN->error("You cannot remove the <% BOARD %> tag silly!");
|
||||
}
|
||||
|
||||
if ( ! preg_match( "/<% COPYRIGHT %>/", $tmpl ) )
|
||||
{
|
||||
$ADMIN->error("You cannot remove the <% COPYRIGHT %> tag silly!");
|
||||
}
|
||||
|
||||
$barney = array( 'name' => stripslashes($HTTP_POST_VARS['name']),
|
||||
'template' => $tmpl
|
||||
);
|
||||
|
||||
if ($type == 'add')
|
||||
{
|
||||
$db_string = $DB->compile_db_insert_string( $barney );
|
||||
|
||||
$DB->query("INSERT INTO ibf_templates (".$db_string['FIELD_NAMES'].") VALUES(".$db_string['FIELD_VALUES'].")");
|
||||
|
||||
$std->boink_it($SKIN->base_url."&act=wrap");
|
||||
|
||||
exit();
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$db_string = $DB->compile_db_update_string( $barney );
|
||||
|
||||
$DB->query("UPDATE ibf_templates SET $db_string WHERE tmid='".$IN['id']."'");
|
||||
|
||||
$ADMIN->done_screen("Wrapper updated", "Manage Board Wrappers", "act=wrap" );
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// ADD / EDIT WRAPPERS
|
||||
//-------------------------------------------------------------
|
||||
|
||||
function do_form( $type='add' )
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
if ($IN['id'] == "")
|
||||
{
|
||||
$ADMIN->error("You must specify an existing wrapper ID, go back and try again");
|
||||
}
|
||||
|
||||
$DB->query("SELECT * from ibf_templates WHERE tmid='".$IN['id']."'");
|
||||
|
||||
if ( ! $row = $DB->fetch_row() )
|
||||
{
|
||||
$ADMIN->error("Could not query the information from the database");
|
||||
}
|
||||
|
||||
if ($type == 'add')
|
||||
{
|
||||
$code = 'doadd';
|
||||
$button = 'Create Wrapper';
|
||||
$row['name'] = $row['name'].".2";
|
||||
}
|
||||
else
|
||||
{
|
||||
$code = 'doedit';
|
||||
$button = 'Edit Wrapper';
|
||||
}
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->page_detail = "You may use HTML fully when adding or editing wrappers.";
|
||||
$ADMIN->page_title = "Manage Board Wrappers";
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->js_no_specialchars();
|
||||
|
||||
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , $code ),
|
||||
2 => array( 'act' , 'wrap' ),
|
||||
3 => array( 'id' , $IN['id'] ),
|
||||
), "theAdminForm", "onSubmit=\"return no_specialchars('wrapper')\"" );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$SKIN->td_header[] = array( " " , "20%" );
|
||||
$SKIN->td_header[] = array( " " , "80%" );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$row['template'] = preg_replace( "/\/textarea>/", "</textarea>", $row['template'] ); // Stop html killing the text area
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( $button );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array(
|
||||
"Wrapper Title",
|
||||
$SKIN->form_input('name', $row['name']),
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array(
|
||||
"Content",
|
||||
$SKIN->form_textarea('template', $row['template'], "60", "15"),
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_form($button);
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
//+-------------------------------
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// SHOW WRAPPERS
|
||||
//-------------------------------------------------------------
|
||||
|
||||
function list_wrappers()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$form_array = array();
|
||||
|
||||
$ADMIN->page_detail = "You may add/edit and remove the board wrapper templates.<br><br>Board wrapper refers to the main board template which allows additional HTML to be added to the header and footer of the board";
|
||||
$ADMIN->page_title = "Manage Board Wrappers";
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$SKIN->td_header[] = array( "Title" , "40%" );
|
||||
$SKIN->td_header[] = array( "Allocation" , "30%" );
|
||||
$SKIN->td_header[] = array( "Export" , "10%" );
|
||||
$SKIN->td_header[] = array( "Edit" , "10%" );
|
||||
$SKIN->td_header[] = array( "Remove" , "10%" );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$DB->query("SELECT DISTINCT(w.tmid), w.name, s.sname from ibf_templates w, ibf_skins s WHERE s.tmpl_id=w.tmid ORDER BY w.name ASC");
|
||||
|
||||
$used_ids = array();
|
||||
$show_array = array();
|
||||
|
||||
if ( $DB->get_num_rows() )
|
||||
{
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Current Wrappers In Use" );
|
||||
|
||||
while ( $r = $DB->fetch_row() )
|
||||
{
|
||||
|
||||
$show_array[ $r['tmid'] ] .= stripslashes($r['sname'])."<br>";
|
||||
|
||||
if ( in_array( $r['tmid'], $used_ids ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>".stripslashes($r['name'])."</b>",
|
||||
"<#X-{$r['tmid']}#>",
|
||||
"<center><a href='".$SKIN->base_url."&act=wrap&code=export&id={$r['tmid']}'>Export</a></center>",
|
||||
"<center><a href='".$SKIN->base_url."&act=wrap&code=edit&id={$r['tmid']}'>Edit</a></center>",
|
||||
"<i>Deallocate before removing</i>",
|
||||
) );
|
||||
|
||||
$used_ids[] = $r['tmid'];
|
||||
|
||||
$form_array[] = array( $r['tmid'], $r['name'] );
|
||||
|
||||
}
|
||||
|
||||
foreach( $show_array as $idx => $string )
|
||||
{
|
||||
$string = preg_replace( "/<br>$/", "", $string );
|
||||
|
||||
$ADMIN->html = preg_replace( "/<#X-$idx#>/", "$string", $ADMIN->html );
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
}
|
||||
|
||||
if ( count($used_ids) > 0 )
|
||||
{
|
||||
|
||||
$DB->query("SELECT tmid, name FROM ibf_templates WHERE tmid NOT IN(".implode(",",$used_ids).")");
|
||||
|
||||
if ( $DB->get_num_rows() )
|
||||
{
|
||||
|
||||
$SKIN->td_header[] = array( "Title" , "70%" );
|
||||
$SKIN->td_header[] = array( "Export" , "10%" );
|
||||
$SKIN->td_header[] = array( "Edit" , "10%" );
|
||||
$SKIN->td_header[] = array( "Remove" , "10%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Current Unallocated Wrappers" );
|
||||
|
||||
$ADMIN->html .= $SKIN->js_checkdelete();
|
||||
|
||||
|
||||
while ( $r = $DB->fetch_row() )
|
||||
{
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>".stripslashes($r['name'])."</b>",
|
||||
"<center><a href='".$SKIN->base_url."&act=wrap&code=export&id={$r['tmid']}'>Export</a></center>",
|
||||
"<center><a href='".$SKIN->base_url."&act=wrap&code=edit&id={$r['tmid']}'>Edit</a></center>",
|
||||
"<center><a href='javascript:checkdelete(\"act=wrap&code=remove&id={$r['tmid']}\")'>Remove</a></center>",
|
||||
) );
|
||||
|
||||
$form_array[] = array( $r['tmid'], $r['name'] );
|
||||
|
||||
}
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
}
|
||||
}
|
||||
|
||||
//+-------------------------------
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'add' ),
|
||||
2 => array( 'act' , 'wrap' ),
|
||||
3 => array( 'MAX_FILE_SIZE', '10000000000' ),
|
||||
) , "uploadform", " enctype='multipart/form-data'" );
|
||||
|
||||
$SKIN->td_header[] = array( " " , "40%" );
|
||||
$SKIN->td_header[] = array( " " , "60%" );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( "Create New Wrapper" );
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Base new wrapper on...</b>" ,
|
||||
$SKIN->form_dropdown( "id", $form_array)
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array( "<b><u>OR</u> Choose a wrapper file from your computer to import</b><br>Note: This must be in the correct format.",
|
||||
$SKIN->form_upload(),
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_form("Create new wrapper");
|
||||
|
||||
$ADMIN->html .= $SKIN->end_table();
|
||||
|
||||
//+-------------------------------
|
||||
//+-------------------------------
|
||||
|
||||
$ADMIN->output();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,95 +1,132 @@
|
||||
<?php
|
||||
|
||||
// Simple library that holds all the links for the admin cp
|
||||
|
||||
// CAT_ID => array( PAGE_ID => (PAGE_NAME, URL ) )
|
||||
|
||||
// $PAGES[ $cat_id ][$page_id][0] = Page name
|
||||
// $PAGES[ $cat_id ][$page_id][1] = Url
|
||||
|
||||
|
||||
$PAGES = array(
|
||||
|
||||
0 => array (
|
||||
1 => array( 'Basic Config', 'act=op&code=url' ),
|
||||
2 => array( 'Security & Privacy' , 'act=op&code=secure' ),
|
||||
3 => array( 'Topics & Posts', 'act=op&code=post' ),
|
||||
4 => array( 'User Profiles' , 'act=op&code=avatars' ),
|
||||
5 => array( 'Date Formats' , 'act=op&code=dates' ),
|
||||
6 => array( 'CPU Saving' , 'act=op&code=cpu' ),
|
||||
7 => array( 'Cookies' , 'act=op&code=cookie' ),
|
||||
8 => array( 'PM Set up' , 'act=op&code=pm' ),
|
||||
9 => array( 'Board on/off' , 'act=op&code=board' ),
|
||||
10 =>array( 'News Set-up' , 'act=op&code=news' ),
|
||||
|
||||
|
||||
),
|
||||
|
||||
1 => array (
|
||||
1 => array( 'New Category' , 'act=cat&code=new' ),
|
||||
2 => array( 'New Forum' , 'act=forum&code=newsp' ),
|
||||
3 => array( 'Manage' , 'act=cat&code=edit' ),
|
||||
4 => array( 'Re-Order Categories' , 'act=cat&code=reorder'),
|
||||
5 => array( 'Re-Order Forums', 'act=forum&code=reorder'),
|
||||
6 => array( 'Moderators' , 'act=mod' ),
|
||||
),
|
||||
|
||||
|
||||
3 => array (
|
||||
1 => array ( 'Pre-Register' , 'act=mem&code=add' ),
|
||||
2 => array ( 'Edit User' , 'act=mem&code=edit' ),
|
||||
3 => array ( 'Delete User(s)' , 'act=mem&code=del' ),
|
||||
4 => array ( 'Ban Settings' , 'act=mem&code=ban' ),
|
||||
5 => array ( 'User Title/Ranks' , 'act=mem&code=title'),
|
||||
6 => array ( 'Manage User Groups' , 'act=group' ),
|
||||
7 => array ( 'Manage Registrations', 'act=mem&code=mod' ),
|
||||
),
|
||||
|
||||
4 => array (
|
||||
1 => array( 'Manage Word Filters', 'act=op&code=bw' ),
|
||||
2 => array( 'Manage Emoticons', 'act=op&code=emo' ),
|
||||
3 => array( 'Manage Help Files', 'act=help' ),
|
||||
4 => array( 'Recount Statistics', 'act=op&code=count' ),
|
||||
5 => array( 'View Moderator Logs', 'act=modlog' ),
|
||||
),
|
||||
|
||||
5 => array (
|
||||
1 => array( 'Manage Board Wrappers' , 'act=wrap' ),
|
||||
2 => array( 'Manage Skin Templates' , 'act=templ' ),
|
||||
3 => array( 'Manage Style Sheets' , 'act=style' ),
|
||||
4 => array( 'Manage Image&Macros' , 'act=image' ),
|
||||
5 => array( '<b>Manage Skin Sets</b>' , 'act=sets' ),
|
||||
6 => array( 'Import Skin files' , 'act=import' ),
|
||||
|
||||
),
|
||||
|
||||
6 => array (
|
||||
1 => array( 'Manage Languages' , 'act=lang' ),
|
||||
2 => array( 'Import a Language', 'act=lang&code=import' ),
|
||||
),
|
||||
|
||||
|
||||
|
||||
);
|
||||
|
||||
|
||||
$CATS = array (
|
||||
0 => "Board Settings",
|
||||
1 => 'Forum Control',
|
||||
3 => 'Users and Groups',
|
||||
4 => 'Administration',
|
||||
5 => 'Skins & Templates',
|
||||
6 => 'Languages',
|
||||
);
|
||||
|
||||
$DESC = array (
|
||||
0 => "Edit forum settings such as cookie paths, security features, posting abilities, etc",
|
||||
1 => "Create, edit, remove and re-order categories, forums and moderators",
|
||||
3 => "Edit, register, remove and ban members. Set up member titles and ranks. Manage User Groups and moderated registrations",
|
||||
4 => "Manage Help Files, Bad Word Filters and Emoticons",
|
||||
5 => "Manage templates, skins, colours and images.",
|
||||
6 => "Manage language sets",
|
||||
);
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
// Simple library that holds all the links for the admin cp
|
||||
|
||||
// CAT_ID => array( PAGE_ID => (PAGE_NAME, URL ) )
|
||||
|
||||
// $PAGES[ $cat_id ][$page_id][0] = Page name
|
||||
// $PAGES[ $cat_id ][$page_id][1] = Url
|
||||
|
||||
|
||||
$PAGES = array(
|
||||
|
||||
0 => array (
|
||||
1 => array( 'IPS Latest News' , 'act=ips&code=news' ),
|
||||
2 => array( 'Check for updates' , 'act=ips&code=updates' ),
|
||||
3 => array( 'Documentation' , 'act=ips&code=docs' ),
|
||||
4 => array( 'Get Support' , 'act=ips&code=support' ),
|
||||
5 => array( 'IPS Hosting' , 'act=ips&code=host' ),
|
||||
6 => array( 'Purchase Services' , 'act=ips&code=purchase' ),
|
||||
|
||||
),
|
||||
|
||||
1 => array (
|
||||
1 => array( 'Basic Config', 'act=op&code=url' ),
|
||||
2 => array( 'Security & Privacy' , 'act=op&code=secure' ),
|
||||
3 => array( 'Topics, Posts & Polls', 'act=op&code=post' ),
|
||||
4 => array( 'User Profiles' , 'act=op&code=avatars' ),
|
||||
5 => array( 'Date Formats' , 'act=op&code=dates' ),
|
||||
6 => array( 'CPU Saving' , 'act=op&code=cpu' ),
|
||||
7 => array( 'Cookies' , 'act=op&code=cookie' ),
|
||||
8 => array( 'PM Set up' , 'act=op&code=pm' ),
|
||||
9 => array( 'Board on/off' , 'act=op&code=board' ),
|
||||
10 =>array( 'News Set-up' , 'act=op&code=news' ),
|
||||
11 =>array( 'Calendar Set-up' , 'act=op&code=calendar' ),
|
||||
12 =>array( 'COPPA Set-up' , 'act=op&code=coppa' ),
|
||||
|
||||
|
||||
),
|
||||
|
||||
2 => array (
|
||||
1 => array( 'New Category' , 'act=cat&code=new' ),
|
||||
2 => array( 'New Forum' , 'act=forum&code=newsp' ),
|
||||
3 => array( 'Manage' , 'act=cat&code=edit' ),
|
||||
4 => array( 'Re-Order Categories' , 'act=cat&code=reorder'),
|
||||
5 => array( 'Re-Order Forums', 'act=forum&code=reorder'),
|
||||
6 => array( 'Moderators' , 'act=mod' ),
|
||||
),
|
||||
|
||||
|
||||
3 => array (
|
||||
1 => array ( 'Pre-Register' , 'act=mem&code=add' ),
|
||||
2 => array ( 'Find/Edit User' , 'act=mem&code=edit' ),
|
||||
3 => array ( 'Delete User(s)' , 'act=mem&code=del' ),
|
||||
4 => array ( 'Ban Settings' , 'act=mem&code=ban' ),
|
||||
5 => array ( 'User Title/Ranks' , 'act=mem&code=title'),
|
||||
6 => array ( 'Manage User Groups' , 'act=group' ),
|
||||
7 => array ( 'Manage Registrations', 'act=mem&code=mod' ),
|
||||
8 => array ( 'Custom Profile Fields', 'act=field' ),
|
||||
9 => array ( 'Bulk Email Members' , 'act=mem&code=mail' ),
|
||||
),
|
||||
|
||||
4 => array (
|
||||
1 => array( 'Manage Word Filters', 'act=op&code=bw' ),
|
||||
2 => array( 'Manage Emoticons', 'act=op&code=emo' ),
|
||||
3 => array( 'Manage Help Files', 'act=help' ),
|
||||
4 => array( 'Recount Statistics', 'act=op&code=count' ),
|
||||
5 => array( 'View Moderator Logs', 'act=modlog' ),
|
||||
6 => array( 'View Admin Logs' , 'act=adminlog' ),
|
||||
),
|
||||
|
||||
5 => array (
|
||||
1 => array( 'Manage Board Wrappers' , 'act=wrap' ),
|
||||
2 => array( 'Manage Skin Templates' , 'act=templ' ),
|
||||
3 => array( 'Manage Style Sheets' , 'act=style' ),
|
||||
4 => array( 'Manage Macros' , 'act=image' ),
|
||||
5 => array( '<b>Manage Skin Sets</b>' , 'act=sets' ),
|
||||
6 => array( 'Import Skin files' , 'act=import' ),
|
||||
|
||||
),
|
||||
|
||||
6 => array (
|
||||
1 => array( 'Manage Languages' , 'act=lang' ),
|
||||
2 => array( 'Import a Language', 'act=lang&code=import' ),
|
||||
),
|
||||
|
||||
7 => array (
|
||||
1 => array( 'Registration Stats' , 'act=stats&code=reg' ),
|
||||
2 => array( 'New Topic Stats' , 'act=stats&code=topic' ),
|
||||
3 => array( 'Post Stats' , 'act=stats&code=post' ),
|
||||
4 => array( 'Private Message' , 'act=stats&code=msg' ),
|
||||
5 => array( 'Topic Views' , 'act=stats&code=views' ),
|
||||
),
|
||||
|
||||
8 => array (
|
||||
1 => array( 'mySQL Toolbox' , 'act=mysql' ),
|
||||
2 => array( 'mySQL Back Up' , 'act=mysql&code=backup' ),
|
||||
3 => array( 'SQL Runtime Info', 'act=mysql&code=runtime' ),
|
||||
4 => array( 'SQL System Vars' , 'act=mysql&code=system' ),
|
||||
5 => array( 'SQL Processes' , 'act=mysql&code=processes' ),
|
||||
),
|
||||
|
||||
|
||||
|
||||
);
|
||||
|
||||
|
||||
$CATS = array (
|
||||
0 => "IPS Services",
|
||||
1 => "Board Settings",
|
||||
2 => 'Forum Control',
|
||||
3 => 'Users and Groups',
|
||||
4 => 'Administration',
|
||||
5 => 'Skins & Templates',
|
||||
6 => 'Languages',
|
||||
7 => 'Statistic Center',
|
||||
8 => 'SQL Management',
|
||||
);
|
||||
|
||||
$DESC = array (
|
||||
0 => "Get IPS latest news, documentation, request support, purchase extra services and more...",
|
||||
1 => "Edit forum settings such as cookie paths, security features, posting abilities, etc",
|
||||
2 => "Create, edit, remove and re-order categories, forums and moderators",
|
||||
3 => "Edit, register, remove and ban members. Set up member titles and ranks. Manage User Groups and moderated registrations",
|
||||
4 => "Manage Help Files, Bad Word Filters and Emoticons",
|
||||
5 => "Manage templates, skins, colours and images.",
|
||||
6 => "Manage language sets",
|
||||
7 => "Get registration and posting statistics",
|
||||
8 => "Manage your SQL database; repair, optimize and export data",
|
||||
);
|
||||
|
||||
|
||||
?>
|
||||
+1073
-919
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,109 @@
|
||||
<?php
|
||||
|
||||
|
||||
$skin_names = array(
|
||||
|
||||
'skin_boards' => array(
|
||||
'Board Index Sections',
|
||||
'Elements for the board index listing (shows you all the forums and is the first page you see when visiting the board) such as
|
||||
forum link HTML, active user overview HTML, board statistics overview HTML, today\'s birthdays overview HTML',
|
||||
),
|
||||
|
||||
'skin_buddy' => array(
|
||||
'Browse Buddy Sections',
|
||||
'Elements for the browse buddy feature, including links and search boxes',
|
||||
),
|
||||
'skin_calendar'=> array(
|
||||
'Calendar Sections',
|
||||
'Elements for the calendar, including calendar view, view events',
|
||||
),
|
||||
'skin_emails' => array(
|
||||
'Member Contact Sections',
|
||||
'Elements from various contact methods, such as ICQ, AIM pager, email form and report post to moderator form',
|
||||
),
|
||||
'skin_forum' => array(
|
||||
'Forum Index Sections',
|
||||
'Elements for forum view (list all topics in forum). Includes forum log in window, forum rules',
|
||||
),
|
||||
'skin_global' => array(
|
||||
'Global HTML elements',
|
||||
'Various HTML elements such as board header, redirect page, error page',
|
||||
),
|
||||
'skin_help' => array(
|
||||
'Help Sections',
|
||||
'Elements for the help screen, including search boxes and view help files',
|
||||
),
|
||||
'skin_legends' => array(
|
||||
'Board Legends Sections',
|
||||
'Elements for the "view all emoticons" windows, and the "Find User" sections',
|
||||
),
|
||||
'skin_login' => array(
|
||||
'Log In Sections',
|
||||
'Elements for the log in form',
|
||||
),
|
||||
'skin_mlist' => array(
|
||||
'Member List Sections',
|
||||
'Elements for the member list views',
|
||||
),
|
||||
'skin_mod' => array(
|
||||
'Moderator Function Sections',
|
||||
'Elements for the moderator tools such as delete topic, edit topic and the moderator CP sections',
|
||||
),
|
||||
'skin_msg' => array(
|
||||
'Messenger Sections',
|
||||
'Elements for the messenger, such as view inbox, view message, archive messages, etc',
|
||||
),
|
||||
'skin_online' => array (
|
||||
'Online List Sections',
|
||||
'Elements for the "Show all online users" link',
|
||||
),
|
||||
'skin_poll' => array (
|
||||
'View Poll Sections',
|
||||
'Elements for the poll view, includes vote form and vote results',
|
||||
),
|
||||
'skin_post' => array(
|
||||
'Post Screen Sections',
|
||||
'Elements for the post screens such as new topic, reply to topic, quote post, edit post, some messenger new PM sections, some calender new event sections',
|
||||
),
|
||||
'skin_printpage'=> array(
|
||||
'Printable Topic Sections',
|
||||
'Elements for displaying the "printable topic" page',
|
||||
),
|
||||
'skin_profile' => array(
|
||||
'Profile View Sections',
|
||||
'Elements for viewing a members profile',
|
||||
),
|
||||
'skin_register' => array(
|
||||
'Register Sections',
|
||||
'Elements for the register form, validate account form and COPPA forms',
|
||||
),
|
||||
'skin_search' => array(
|
||||
'Search Sections',
|
||||
'Elements for the search forum and the results view',
|
||||
),
|
||||
'skin_stats' => array(
|
||||
'Statistics Section',
|
||||
'Elements for various functions such as "View Moderating Team", "View todays top 10 posts", "View Active Topics"',
|
||||
),
|
||||
'skin_topic' => array(
|
||||
'Topic View Section',
|
||||
'Elements for the topic view screen, such as post view, inline attachment view, etc.',
|
||||
),
|
||||
|
||||
'skin_modcp' => array(
|
||||
'Mod CP Section',
|
||||
'Elements for the moderators control panel sections.',
|
||||
),
|
||||
|
||||
|
||||
'skin_ucp' => array(
|
||||
'User Control Panel Section',
|
||||
'Elements for the user control panel, such as the menu (also used in Messenger Views), edit profile, edit signature, edit avatar, etc.',
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
+775
-708
File diff suppressed because it is too large.
Load diff
Loaded 100 of 179 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user