Version 1.1.1

This commit is contained in:
Neo committed 2025-12-19 00:16:25 -08:00
1 parent aabfdc1f57
commit 7ef3d1712a
179 files changed
+24467 -11982

No files matched your search

BIN
View File
Binary file not shown.
-28
View File
@@ -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)
+7 -7
View File
@@ -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
+13 -29
View File
@@ -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
+3 -3
View File
@@ -44,7 +44,7 @@
"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>
- 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>
@@ -61,7 +61,7 @@
<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.
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>
@@ -89,4 +89,4 @@
<!-- End content -->
</body>
</html>
</h
File renamed without changes.
-1
View File
@@ -1 +0,0 @@
INSERT INTO ibf_categories (id, position, state, name, description, image, url) VALUES (-1, NULL, NULL, '-', NULL, NULL, NULL); INSERT INTO ibf_css (cssid, css_name, css_text) VALUES (1, 'Invision Style Sheet', NULL); INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (1, ':)', 'smile.gif', 1); INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (2, ':(', 'sad.gif', 1); INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (3, ':D', 'biggrin.gif', 1); INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (5, ':o', 'ohno.gif', 1); INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (6, ':crazy:', 'crazy.gif', 1); INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (7, ':laugh:', 'laugh.gif', 1); INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (8, ':hmmm:', 'hmmm.gif', 1); INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (9, ':rolleyes:', 'rolleyes.gif', 1); INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (10, ';)', 'wink.gif', 1); INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (11, ':p', 'tongue.gif', 1); INSERT INTO ibf_faq (id, title, text, description) VALUES (1, 'Registration benefits', 'To be able to use all the features on this board, the administrator will probably require that you register for a member account. Registration is free and only takes a moment to complete.\r<br>\r<br>During registration, the adminstrator requires that you supply a valid email address. This is important as the administrator may require that you validate your registration via an email. If this is the case, you will be notified when registering.\r<br>In some cases, the administrator will need to approve your regsitration before you can use your member account fully. If this is the case you will be notified during registration.\r<br>\r<br>Once you have registered and logged in, you will have access to your private messenger and your control panel.\r<br>\r<br>For more information on these items, please see the relevant sections in this documentation.', 'How to register and the added benefits of being a registered member.'); INSERT INTO ibf_faq (id, title, text, description) VALUES (2, 'Cookies and cookie usage', 'Using cookies is optional, but strongly recommended. Cookies are used to track topics, showing you which topics have new replies since your last visit and to automatically log you in when you return.\r<br>\r<br>This board will also allow you to remove the long session id\'s found in the URL\'s. You can do this by entering your control panel (click the link at the top of the board) and entering the \'Board Settings\' section. It is recommended that you enable this feature because you may experience problems if your internet connection shares a proxy and you share a link with another user. If in doubt, choose to hide the session id.\r<br>\r<br><b>Clearing Cookies</b>\r<br>\r<br>You can clear the cookies at any time by clicking on the link found at the bottom of the main board page (the first page you see when returning to the board). If this does not work for you, you may need to remove the cookies manually.\r<br>\r<br><u>Removing Cookies in Internet Explorer for Windows</u>\r<br>\r<br><ul>\r<br><li> Close all open Internet Explorer Windows\r<br><li> Click on the \'start\' button\r<br><li> Move up to \'Find\' and click on \'Files and Folders\'\r<br><li> When the new window appears, type in the domain name of the board you are using into the \'containing text\' field. (If the boards address was \'http://www.invisionboard.com/forums/index.php\' you would enter \'invisionboard.com\' without the quotes)\r<br><li> In the \'look in\' box, type in <b>C:&#92;Windows&#92;Cookies</b> and press \'Find Now\'\r<br><li> After it has finished searching, highlight all files (click on a file then press CTRL+A) and delete them.\r<br></ul>\r<br>\r<br><u>Removing Cookies in Internet Explorer for Macintosh</u>\r<br>\r<br><ul>\r<br><li> With Internet Explorer active, choose \'Edit\' and then \'Preferences\' from the Macintosh menu bar at the top of the screen\r<br><li> When the preferences panel opens, choose \'Cookies\' found in the \'Receiving Files\' section.\r<br><li> When the cookie pane loads, look for the domain name of the board (If the boards address was \'http://www.invisionboard.com/forums/index.php\' look for \'invisionboard.com\' or \'www.invisionboard.com\'\r<br><li> For each cookie, click on the entry and press the delete button.\r<br></ul>\r<br>\r<br>Your cookies should now be removed. In some cases you may need to restart your computer for the changes to take effect.', 'The benefits of using cookies and how to remove cookies set by this board.'); INSERT INTO ibf_faq (id, title, text, description) VALUES (3, 'Recovering lost or forgotten passwords', 'Security is a big feature on this board, and to that end, all passwords are encrypted when you register.\r<br>This means that we cannot email your passwoLine truncated
+1
View File
@@ -0,0 +1 @@
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
View File
@@ -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
+177
View File
@@ -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
-664
View File
@@ -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']}&nbsp;<b>{$data[TOPICS_NOT_APPROVED]}</b></td>
<td bgcolor="{$ibforums->skin['FORUM_COL_ONE']}" align='center' valign='middle'>{$data[FORUM_TOPICS]}</td>
<td bgcolor="{$ibforums->skin['FORUM_COL_ONE']}" align='center' valign='middle' id='highlight'>{$data[FORUM_POSTS]}</td>
<td bgcolor="{$ibforums->skin['FORUM_COL_ONE']}" align="left" valign='middle'><span id='highlight'>{$data[FORUM_LAST_POST]}</span>
</tr>
EOF;
}
function render_newtopic($data) {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='2'>{$ibforums->lang['ss_topic_title']} <b>{$data[TOPIC]}->{'TOPIC_TITLE'}</b></td>
</tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='middle'><input type='hidden' name='R_POST_{$data[TOPIC]}->{'TOPIC_ID'}' value='{$data[POST]}->{'POST_ID'}'><input type='hidden' name='POST_{$data[TOPIC]}->{'TOPIC_ID'}' value='{$data[POST]}->{'ID'}'><select name='CHOICE_{$data[TOPIC]}->{'TOPIC_ID'}' class='forminput'><option value='APPROVE' selected>{$ibforums->lang['c_approve']}</option>{$data[TOPIC]}->{'DELETE'}<option value='LEAVE' selected>{$ibforums->lang['c_leave']}</option></select></td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='top'>
<table cellspacing='1' cellpadding='4' border='0' width='100%' align='center'>
<tr>
<td valign='top' width='15%'><a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Profile&CODE=03&MID={$data[TOPIC]}->{'TOPIC_STARTER'}" target='_blank'><b>{$data[TOPIC]}->{'TOPIC_STARTER_N'}</b></a></td>
<td valign='top' width='85%'><b>{$ibforums->lang['ss_posted_on']}</b> {$data[TOPIC]}->{'TOPIC_START_DATE'}<hr noshade size=1 color='{$ibforums->skin['TABLE_BORDER_COL']}'>{$data[POST]}->{'POST'} ( <a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Profile&CODE=03&MID={$data[TOPIC]}->{'{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ModCP&f=$iB::IN{'f'}&CODE=readpost&ID={$data[POST]}->{'ID'}','ViewPost','400','200','0','1','1','1')">{$ibforums->lang['ss_read_more']}</a> )</td>
</tr>
</table>
</td>
</tr>
EOF;
}
function topic_form() {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' colspan='2'>
<i>{$ibforums->lang['define_search']}</i>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='theForm'>
<input type='hidden' name='act' value='ModCP'>
<input type='hidden' name='CODE' value='topic_search'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='f' value='$iB::IN{'f'}'>
</td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_topics_cutoff']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='DAYS' size='5' maxlength='10' class='forminput'></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_sort']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><select name='ORDER' class='forminput'><option value='asc'>{$ibforums->lang['s_topics_asc']}</option><option value='desc' selected>{$ibforums->lang['s_topics_desc']}</option></select></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_limit']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='LIMIT' size='5' maxlength='10' class='forminput'></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='2' align='center'><input type='submit' name='TOPICS' class='forminput' value='{$ibforums->lang['submit_topics']}'></form></td>
</tr>
EOF;
}
function render_opentopic($data) {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='middle'>{$data[SELECT]}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><span id="linkthru"><a href="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$data[FORUM_ID]}&t={$data[TOPIC_ID]}" target='_blank'>{$data[TOPIC_TITLE]}</a></span><br>{$data[TOPIC_DESC]}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' align='center' valign='middle'>{$data[TOPIC_POSTS]}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><span id='highlight'>{$data[TOPIC_LAST_DATE]}</span><br>{$ibforums->lang['st_by']} {$data[LAST_POSTER]}</td>
</tr>
EOF;
}
function post_form() {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}' colspan='2'>
<i>{$ibforums->lang['define_search']}</i>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='theForm'>
<input type='hidden' name='act' value='ModCP'>
<input type='hidden' name='CODE' value='post_search'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='f' value='$iB::IN{'f'}'>
</td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_posts_cutoff']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='DAYS' size='5' maxlength='10' class='forminput'></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_sort']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><select name='ORDER' class='forminput'><option value='asc'>{$ibforums->lang['s_topics_asc']}</option><option value='desc' selected>{$ibforums->lang['s_topics_desc']}</option></select></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>{$ibforums->lang['s_limit']}</td>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><input type='text' name='LIMIT' size='5' maxlength='10' class='forminput'></td>
</tr>
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='2' align='center'><input type='submit' name='POSTS' value='{$ibforums->lang['submit_posts']}' class='forminput'></form></td>
</tr>
EOF;
}
function startcp() {
global $ibforums;
return <<<EOF
<script langauge="javascript">
<!--
function check_prune() {
var message = "{$ibforums->lang['prune_confirm']} "+document.theForm.DAYS.value+"\\n{$ibforums->lang['prune_confirm_b']}";
if ( confirm( message ) ) {
document.theForm.submit();
} else {
return false;
}
}
function PopUp(url, name, width,height,center,resize,scroll,posleft,postop) {
if (posleft != 0) { x = posleft }
if (postop != 0) { y = postop }
if (!scroll) { scroll = 1 }
if (!resize) { resize = 1 }
if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {
X = (screen.width - width ) / 2;
Y = (screen.height - height) / 2;
}
if (scroll != 0) { scroll = 1 }
var Win = window.open( url, name, 'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no');
}
//-->
</script>
<table cellpadding='0' cellspacing='1' border='0' width='{$ibforums->skin['TABLE_WIDTH']}' bgcolor='{$ibforums->skin['TABLE_BORDER_COL']}' align='center'>
<tr>
<td width='20%' bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='top'>
<table cellspacing='0' cellpadding='4' border='0' width='100%' align='center'>
<tr>
<td bgcolor='{$ibforums->skin['TITLEBACK']}' valign='left' id='titlelarge'>{$ibforums->lang['menu']}</td>
</tr>
<!--menu goes here-->
</table>
</td>
<td width='80%' bgcolor='{$ibforums->skin['MISCBACK_ONE']}' valign='top'>
<table cellspacing='0' cellpadding='4' border='0' width='100%' align='center'>
<tr>
<td bgcolor='{$ibforums->skin['TITLEBACK']}' valign='left' id='titlelarge'>{$ibforums->lang['display']}</td>
</tr>
<!--main content-->
EOF;
}
function show_delete_results($data) {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'>
<b>{$ibforums->lang['a_topic_results']}</b><hr noshade size=1 color='{$ibforums->skin['TABLE_BORDER_COL']}'>
{$ibforums->lang['a_topic_d_delete']} {$data[delete]}<br><br>
</td>
</tr>
EOF;
}
function search_footer() {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_TWO']}' colspan='2' align='center'><input type='submit' value='{$ibforums->lang['process_records']}' class='forminput'></td>
</tr>
</table>
</td>
</tr>
</table>
EOF;
}
function topic_form_header($count) {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['TITLEBACK']}' id='titlemedium' colspan='2'>{$ibforums->lang['q_topics']} $count</td>
</tr>
EOF;
}
function offline_menu() {
global $ibforums;
return <<<EOF
<tr>
<td bgcolor='{$ibforums->skin['MISCBACK_ONE']}'><b>{$ibforums->lang['menu_off']}</b></td>
</tr>
EOF;
}
function end_main_splash() {
global $ibforums;
return <<<EOF
</table>
</td>
</tr>
</table>
EOF;
}
}
?>
-101
View File
@@ -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;
}
}
?>
+82 -46
View File
@@ -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">&nbsp;</td>
<td class='mainfoot' colspan="5">&nbsp;</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'>&nbsp;</td>
</tr>
</table>
EOF;
}
function quick_log_in() {
global $ibforums;
return <<<EOF
<form style='display:inline' action="{$ibforums->base_url}&act=Login&CODE=01&CookieDate=1" method="post">
<table cellpadding='3' cellspacing='0' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td align='right' valign='middle' width='100%'><b>{$ibforums->lang['qli_title']}</b></td>
<td align='right' valign='middle' nowrap>
<input type='text' class='forminput' size='10' name='UserName' onFocus='this.value=""' value='{$ibforums->lang['qli_name']}'>
<input type='password' class='forminput' size='10' name='PassWord' onFocus='this.value=""' value='ibfrules'>
<input type='submit' class='forminput' value='{$ibforums->lang['qli_go']}'>
</td>
</tr>
</table>
</form>
EOF;
}
@@ -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;
+222
View File
@@ -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']}&nbsp;&nbsp;&nbsp;[ <a href='javascript:shrink()' style='text-decoration:none'>-</a>&nbsp;&nbsp;<a href='javascript:expand()' style='text-decoration:none'>+</a> ]</td>
</tr>
<tr>
<td class='category' valign='middle' align='center'>{$ibforums->lang['while_away']}</td>
</tr>
<tr>
<td align='left' class='row1'>$away_text</td>
</tr>
<tr>
<td class='category' valign='middle' align='center'>{$ibforums->lang['show_me']}</td>
</tr>
<tr>
<td align='left' class='row1'>
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
<tr>
<td align='left' width='1%'><img src='{$ibforums->vars['img_url']}/nav_m_dark.gif' border='0'></td>
<td align='left' width='99%'><a href='javascript:redirect_to("&act=Stats&CODE=leaders",0)'>{$ibforums->lang['sm_forum_leaders']}</a></td>
</tr>
<tr>
<td align='left' width='1%'><img src='{$ibforums->vars['img_url']}/nav_m_dark.gif' border='0'></td>
<td align='left' class='row1'><a href='javascript:redirect_to("&act=Search&CODE=getactive",0)'>{$ibforums->lang['sm_todays_posts']}</a></td>
</tr>
<tr>
<td align='left' width='1%'><img src='{$ibforums->vars['img_url']}/nav_m_dark.gif' border='0'></td>
<td align='left' class='row1'><a href='javascript:redirect_to("&act=Stats",0)'>{$ibforums->lang['sm_today_posters']}</a></td>
</tr>
<tr>
<td align='left' width='1%'><img src='{$ibforums->vars['img_url']}/nav_m_dark.gif' border='0'></td>
<td align='left' class='row1'><a href='javascript:redirect_to("&act=Members&max_results=10&sort_key=posts&sort_order=desc",0)'>{$ibforums->lang['sm_all_posters']}</a></td>
</tr>
<tr>
<td align='left' width='1%'><img src='{$ibforums->vars['img_url']}/nav_m_dark.gif' border='0'></td>
<td align='left' class='row1'><a href='javascript:redirect_to("&act=Search&CODE=lastten",0)'>{$ibforums->lang['sm_my_last_posts']}</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='category' valign='middle' align='center'>{$ibforums->lang['search_forums']}</td>
</tr>
<tr>
<td align='center' class='row1' valign='middle'><form action="{$ibforums->base_url}&act=Search&CODE=01&smethod=simple&forums=all&cat_forum=forum&search_in=posts&result_type=topics" method="post" name='theForm' onSubmit='return check_form();'><input type='text' size='17' name='keywords' class='forminput'>&nbsp;<input type='submit' value='{$ibforums->lang['go']}'></form></td>
</tr>
<tr>
<td class='category' valign='middle' align='center'>{$ibforums->lang['search_help']}</td>
</tr>
<tr>
<td align='center' class='row1' valign='middle'><form action="{$ibforums->base_url}&act=Help&CODE=02" method="post" name='theForm2' onSubmit='return check_form(1);'><input type='text' size='17' name='search_q' class='forminput'>&nbsp;<input type='submit' value='{$ibforums->lang['go']}'></form></td>
</tr>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<!--CLOSE.LINK-->
</td>
</tr>
</table>
EOF;
}
function login() {
global $ibforums;
return <<<EOF
<form action="{$ibforums->base_url}&act=Login&CODE=01&CookieDate=1&buddy=1" method="post" name='theForm' onSubmit='return check_form();'>
<table cellpadding='0' cellspacing='0' border='0' width='100%' height='100%' class='row1' align='center'>
<tr>
<td valign='top'>
<table cellpadding='0' cellspacing='0' border='0' width='100%' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='5' cellspacing='1' border='0' width='100%' height='100%'>
<tr>
<td class='titlemedium' align='center'>{$ibforums->lang['page_title']}</td>
</tr>
<tr>
<td class='category' valign='middle' align='center'>{$ibforums->lang['log_in_needed']}</td>
</tr>
<tr>
<td align='left' class='row1'>
{$ibforums->lang['no_guests']}
<br><br>
<center>
<b>{$ibforums->lang['log_in']}</b>
<br><br>
{$ibforums->lang['lin_name']}<br><input type='text' name='UserName' class='forminput'>
<br>
{$ibforums->lang['lin_pass']}<br><input type='password' name='PassWord' class='forminput'>
<br>
<input type='submit' value='{$ibforums->lang['log_in']}' class='forminput'>
</center>
<br><br>
{$ibforums->lang['reg_text']}
<br><br>
<center><a href='javascript:redirect_to("&act=Reg", 1);'>{$ibforums->lang['reg_link']}</a></center>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<!--CLOSE.LINK-->
</td>
</tr>
</table>
</form>
EOF;
}
function closelink() {
global $ibforums;
return <<<EOF
<table cellpadding='4' cellspacing='0' border='0' width='100%' class='row1' align='center'>
<tr>
<td class='category' valign='middle' align='center'>[ <a href="javascript:window.location=window.location;">{$ibforums->lang['refresh']}</a> ] | [ <a href='javascript:self.close();'>{$ibforums->lang['close_win']}</a> ]</td>
</tr>
</table>
EOF;
}
}
?>
+274
View File
@@ -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'>&nbsp;&nbsp;<b>{$ibforums->lang['event_date']} {$event['mday']} {$event['month_text']} {$event['year']}</b>&nbsp;&nbsp;[ <b>{$event['title']}</b> ] ($event_type)</td>
</tr>
<tr>
<td class='mainbg'>
<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td valign='top' class='row1' width='25%'><span class='normalname'><a href='{$ibforums->base_url}&act=Profile&MID={$member['id']}'>{$member['name']}</a></span><br><br>{$member['avatar']}<span class='postdetails'><br>{$ibforums->lang['group']} {$member['g_title']}<br>{$ibforums->lang['posts']} {$member['posts']}<br>{$ibforums->lang['joined']} {$member['joined']}</span></td>
<td valign='top' height='100%' class='row1' width='75%'>
$edit_button
<span class='postcolor'>
{$event['event_text']}
</span>
</td>
</tr>
<tr>
<td class='titlefoot' width='100%' align='center' colspan='2'>
<table border='0' cellspacing='0' cellpadding='0' width='100%' align='center'>
<tr>
<td align='center' valign='middle'>
&lt;&lt; <a href='{$ibforums->base_url}&act=calendar&d={$event['mday']}&m={$event['month']}&y={$event['year']}'>{$ibforums->lang['back']}</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
HTML;
}
function cal_page_events_start() {
global $ibforums;
return <<<HTML
<br>
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td valign='middle' align='left'><span class='pagetitle'>{$ibforums->lang['cal_title_events']}</td>
</tr>
</table>
HTML;
}
function cal_birthday_start() {
global $ibforums;
return <<<HTML
<table width="<{tbl_width}>" align='center' border="0" cellspacing="1" cellpadding="0" bgcolor="<{tbl_border}>">
<tr>
<td class='maintitle' style='height:30px'>
<table width='100%' cellpadding='4' cellspacing='1'>
<tr>
<td align='left' class='maintitle'><b>{$ibforums->lang['cal_birthdays']}</b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='mainbg'>
<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<br>
<ul>
HTML;
}
function cal_birthday_entry($uid, $uname, $age="") {
global $ibforums;
return <<<HTML
<li><a href='{$ibforums->base_url}&act=Profile&MID=$uid'>$uname</a> ($age)</li>
HTML;
}
function cal_birthday_end() {
global $ibforums;
return <<<HTML
</tr>
<tr>
<td class='titlefoot' width='100%' align='center' colspan='7'>
<table border='0' cellspacing='0' cellpadding='0' width='100%' align='center'>
<tr>
<td align='center' valign='middle'>
&lt;&lt; <a href='{$ibforums->base_url}&act=calendar&d={$ibforums->input['d']}&m={$ibforums->input['m']}&y={$ibforums->input['y']}'>{$ibforums->lang['back']}</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
HTML;
}
function cal_main_content($month, $year, $prev, $next) {
global $ibforums;
return <<<HTML
<br>
<form action='{$ibforums->base_url}&act=calendar' method='POST'>
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td valign='middle' align='left'><span class='pagetitle'>$month $year</td>
</tr>
</table>
<table width="<{tbl_width}>" align='center' border="0" cellspacing="1" cellpadding="0" bgcolor="<{tbl_border}>">
<tr>
<td class='maintitle' style='height:30px'>
<table width='100%' cellpadding='4' cellspacing='1'>
<tr>
<td align='left' class='maintitle'>{$ibforums->lang['table_title']}</td>
<td align='right' class='maintitle' style='font-weight:bold'>
&lt; <a href='{$ibforums->base_url}&act=calendar&m={$prev['month_id']}&y={$prev['year_id']}'>{$prev['month_name']} {$prev['year_id']}</a>
&nbsp;&nbsp; <a href='{$ibforums->base_url}&act=calendar&m={$next['month_id']}&y={$next['year_id']}'>{$next['month_name']} {$next['year_id']}</a> &gt;
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='mainbg'>
<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<!--IBF.DAYS_TITLE_ROW-->
<!--IBF.DAYS_CONTENT-->
</tr>
<tr>
<td class='titlefoot' width='100%' align='center' colspan='7'>
<table border='0' cellspacing='0' cellpadding='0' width='100%' align='center'>
<tr>
<td align='left' valign='middle'>
<select name='m' class='forminput'><!--IBF.MONTH_BOX--></select>&nbsp;<select name='y' class='forminput'><!--IBF.YEAR_BOX--></select>&nbsp;&nbsp;<input type='submit' value='{$ibforums->lang['form_submit_show']}' class='forminput'>
</td>
<td align='center' valign='middle'><a href='{$ibforums->base_url}&act=calendar&code=newevent'>{$ibforums->lang['post_new_event']}</a></td>
<td align='right' style='font-weight:bold'>
&lt; <a href='{$ibforums->base_url}&act=calendar&m={$prev['month_id']}&y={$prev['year_id']}'>{$prev['month_name']} {$prev['year_id']}</a>
&nbsp;&nbsp; <a href='{$ibforums->base_url}&act=calendar&m={$next['month_id']}&y={$next['year_id']}'>{$next['month_name']} {$next['year_id']}</a> &gt;
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
HTML;
}
function cal_day_bit($day) {
global $ibforums;
return <<<HTML
<td width='14%' class='titlemedium'><b>$day</b></td>
HTML;
}
function cal_new_row() {
global $ibforums;
return <<<HTML
</tr>
<!-- NEW ROW-->
<tr>
HTML;
}
function cal_blank_cell() {
global $ibforums;
return <<<HTML
<td style='height:80px' class='row2'><br></td>
HTML;
}
function cal_date_cell($month_day, $events="") {
global $ibforums;
return <<<HTML
<td style='height:80px' valign='top' class='row1' align='left'>$month_day $events</td>
HTML;
}
function cal_date_cell_today($month_day, $events="") {
global $ibforums;
return <<<HTML
<td style='height:80px;border:2px;border-style:outset' valign='top' class='row1' align='left'><span class='highlight'><b>$month_day</b></span>$events</td>
HTML;
}
function cal_events_start() {
global $ibforums;
return <<<HTML
<!--<ul>-->
<br>
HTML;
}
function cal_events_wrap($link, $text) {
global $ibforums;
return <<<HTML
<li type='square'><a href='{$ibforums->base_url}&act=calendar&$link'>$text</a>
HTML;
}
function cal_events_end() {
global $ibforums;
return <<<HTML
<!--</ul>-->
HTML;
}
}
?>
+116 -39
View File
@@ -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'>&nbsp;</td>
<td class='category' colspan='2'>&nbsp;</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'>&gt;&gt;<b><a href="mailto:{$data[ADDRESS]}" class='misc'>{$ibforums->lang['send_email_to']} {$data[NAME]}</a></b></td>
<td class='row1'>&gt;&gt;<b><a href="mailto:{$data[ADDRESS]}" class='misc'>{$ibforums->lang['send_email_to']} {$data[NAME]}</a></b></td>
</tr>
</table>
</td>
@@ -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
View File
@@ -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>&gt;&gt;<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=SR&f={$rules['fid']}'>{$rules['title']}</a></b></td>
</tr>
@@ -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']}&nbsp;</td>
<td>{$ibforums->skin['B_POLL']}</td>
<td><{B_POLL}></td>
<td nowrap>{$ibforums->lang['pm_poll']}&nbsp;</td>
<td width='100%' rowspan='4' align='right'>
<table border='0' cellspacing='0' cellpadding='0'>
@@ -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']}&nbsp;</td>
<td>{$ibforums->skin['B_POLL_NN']}</td>
<td><{B_POLL_NN}></td>
<td nowrap>{$ibforums->lang['pm_poll_no']}&nbsp;</td>
</tr>
<tr>
<td>{$ibforums->skin['B_HOT']}</td>
<td><{B_HOT}></td>
<td nowrap>{$ibforums->lang['pm_hot_new']}&nbsp;</td>
<td>{$ibforums->skin['B_LOCKED']}</td>
<td><{B_LOCKED}></td>
<td nowrap>{$ibforums->lang['pm_locked']}&nbsp;</td>
</tr>
<tr>
<td>{$ibforums->skin['B_HOT_NN']}</td>
<td><{B_HOT_NN}></td>
<td nowrap>{$ibforums->lang['pm_hot_no']}&nbsp;</td>
<td>{$ibforums->skin['B_MOVED']}</td>
<td><{B_MOVED}></td>
<td nowrap>{$ibforums->lang['pm_moved']}&nbsp;</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'>&gt;&gt;<a href='{$ibforums->base_url}&act=SF&f={$rules['fid']}'>{$ibforums->lang['back_to_forum']}</td>
<td class='titlemedium' align='center'>&gt;&gt;<a href='{$ibforums->base_url}&act=SF&f={$rules['fid']}'>{$ibforums->lang['back_to_forum']}</td>
</tr>
</table>
</td>
@@ -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']}&nbsp;( <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Login&CODE=04&f={$info['id']}'>{$ibforums->lang['mark_as_read']}</a> )</td>
<td width='14%' align='center' nowrap background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium'>{$ibforums->lang['h_topic_starter']}</td>
<td width='7%' align='center' nowrap background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium'>{$ibforums->lang['h_replies']}</td>
<td width='7%' align='center' nowrap background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium'>{$ibforums->lang['h_hits']}</td>
<td width='27%' nowrap background='{$ibforums->vars['img_url']}/tile_sub.gif' id='titlemedium'>{$ibforums->lang['h_last_action']}</td>
<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'>&nbsp;</td>
<td align='center' class='category'>&nbsp;</td>
<td align='left' class='category' colspan='5'>{$ibforums->lang['pinned_start']}</td>
</tr>
EOF;
}
function render_pinned_end() {
global $ibforums;
return <<<EOF
<!-- END PINNED -->
<tr>
<td align='center' class='category'>&nbsp;</td>
<td align='center' class='category'>&nbsp;</td>
<td align='left' class='category' colspan='5'>{$ibforums->lang['regular_topics']}</td>
</tr>
EOF;
}
function render_pinned_row($Data) {
global $ibforums;
return <<<EOF
<!-- Begin Pinned Topic Entry {$Data['tid']} -->
<tr>
<td align='center' class='forum2'>{$Data['folder_img']}</td>
<td align='center' class='forum1'>{$Data['topic_icon']}</td>
<td class='forum2'>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td valign='middle'>{$Data['go_new_post']}</td>
<td width='100%'><span class='linkthru' style='font-weight:bold'>{$Data['prefix']} <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?act=ST&f={$Data['forum_id']}&t={$Data['tid']}&s={$ibforums->session_id}' class='linkthru' title='{$ibforums->lang['topic_started_on']} {$Data['start_date']}'>{$Data['title']}</a></span> {$Data[PAGES]}</td>
</tr>
</table>
<span class='desc'>{$Data['description']}</span></td>
<td align='center' class='forum2'>{$Data['starter']}</td>
<td align='center' class='forum2'>{$Data['posts']}</td>
<td align='center' class='forum2'>{$Data['views']}</td>
<td class='forum2'><span class='desc'>{$Data['last_post']}<br><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$Data['forum_id']}&t={$Data['tid']}&view=getlastpost'>{$Data['last_text']}</a> <b>{$Data['last_poster']}</b></span></td>
</tr>
<!-- End Pinned Topic Entry {$Data['tid']} -->
EOF;
}
}
?>
+99 -50
View File
@@ -4,10 +4,25 @@ class skin_global {
function Member_bar($msg) {
function Member_bar($msg, $ad_link, $mod_link) {
global $ibforums;
return <<<EOF
&nbsp;{$ibforums->lang['logged_in_as']} <b>{$ibforums->member['name']}</b> ( <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=UserCP&CODE=00'>{$ibforums->lang['your_cp']}</a> | <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Login&CODE=03'>{$ibforums->lang['log_out']}</a> | <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Msg&CODE=01'>{$msg[TEXT]}</a> )
<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;
}
@@ -15,18 +30,32 @@ 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']}'>
<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 background='{$ibforums->vars['img_url']}/header_tile.gif'><img src='{$ibforums->vars['img_url']}/logo.jpg' alt='Powered by IBForums' border='0'></td>
<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 id='alt1'>
<table width='100%' border='0' cellspacing='0' cellpadding='2'>
<td class='row1'>
<table width='100%' border='0' cellspacing='0' cellpadding='8'>
<tr>
<td width='100%'>
<% MEMBER BAR %>
<td width='100%' valign='middle' align='center'> <% 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>
@@ -37,45 +66,58 @@ return <<<EOF
EOF;
}
function start_nav() {
global $ibforums;
return <<<EOF
<table width='{$ibforums->skin['tbl_width']}' align='center' border="0" cellspacing="0" cellpadding="1">
<table width='<{tbl_width}>' align='center' border="0" cellspacing="0" cellpadding="2">
<tr>
<td>{$ibforums->skin['F_NAV']}</td>
<td width="100%" id="nav">
<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>
<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) {
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'>
<link type='text/css' href='style_sheets/stylesheet_{$ibforums->skin['css_id']}.css' rel='stylesheet'>
$css
</head>
<body id='mainbg'>
<table width='{$ibforums->skin['tbl_width']}' height='85%' align='center'>
<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="{$ibforums->skin['tbl_border']}">
<table align='center' border="0" cellspacing="1" cellpadding="0" bgcolor="#000000">
<tr>
<td id='mainbg'>
<td class='mainbg'>
<table width="100%" border="0" cellspacing="1" cellpadding="12">
<tr>
<td width="100%" align="center" id='alt1'>
<td width="100%" align="center" class='row1'>
{$ibforums->lang['thanks']},
$Text<br><br>
{$ibforums->lang['transfer_you']}<br><br>
@@ -98,7 +140,7 @@ 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');
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;
@@ -107,14 +149,21 @@ EOF;
function Guest_bar() {
global $ibforums;
return <<<EOF
&nbsp;{$ibforums->lang['guest_stuff']} ( <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Login&CODE=00'>{$ibforums->lang['log_in']}</a> | <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Reg&CODE=00'>{$ibforums->lang['register']}</a> )
&nbsp;{$ibforums->lang['guest_stuff']} ( <a href='{$ibforums->base_url}&act=Login&CODE=00'>{$ibforums->lang['log_in']}</a> | <a href='{$ibforums->base_url}&act=Reg&CODE=00'>{$ibforums->lang['register']}</a> )
EOF;
}
function admin_link() {
global $ibforums;
return <<<EOF
( <b><a href='{$ibforums->vars['board_url']}/admin.{$ibforums->vars['php_ext']}' target='_blank'>{$ibforums->lang['admin_cp']}</a></b> )
&nbsp;| <b><a href='{$ibforums->vars['board_url']}/admin.{$ibforums->vars['php_ext']}' target='_blank'>{$ibforums->lang['admin_cp']}</a></b>
EOF;
}
function mod_link() {
global $ibforums;
return <<<EOF
&nbsp;| <b><a href='{$ibforums->base_url}&act=modcp'>{$ibforums->lang['mod_cp']}</a></b>
EOF;
}
@@ -127,23 +176,23 @@ return <<<EOF
<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'>
<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' id='titlemedium'>{$ibforums->lang['er_log_in_title']}</td>
<td align='left' colspan='2' class='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>
<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 id='row1' width='40%'>{$ibforums->lang['erl_enter_pass']}</td>
<td id='row1'><input type='password' size='20' name='PassWord' class='forminput'></td>
<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 id='row2' align='center' colspan='2'>
<td class='row2' align='center' colspan='2'>
<input type='submit' name='submit' value='{$ibforums->lang['erl_log_in_submit']}' class='forminput'>
</td>
</table>
@@ -157,25 +206,25 @@ 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']}'>
<table width='<{tbl_width}>' border='0' align='center' cellpadding='0' cellspacing='1' bgcolor='<{tbl_border}>'>
<tr>
<td background='{$ibforums->vars['img_url']}/tile_back.gif'>
<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%' id='titlemedium'>{$ibforums->lang['offline_title']}</td>
<td width='100%' class='titlemedium'>{$ibforums->lang['offline_title']}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td id='mainbg'>
<td class='mainbg'>
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
<tr>
<td colspan='2' valign='top' id='post1'> <p>$message</p></td>
<td colspan='2' valign='top' class='post1'> <p>$message</p></td>
</tr>
<tr>
<td colspan='2' valign='top' id='posthead'>{$ibforums->lang['offline_login']}</td>
<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'>
@@ -184,15 +233,15 @@ return <<<EOF
<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>
<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 id='alt1'>{$ibforums->lang['erl_enter_pass']}</td>
<td width='100%' id='alt1'><input type='password' size='20' name='PassWord' class='forminput'></td>
<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' id='titlefoot'><input type='submit' name='submit' value='{$ibforums->lang['erl_log_in_submit']}' class='forminput'></td>
<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>
@@ -220,26 +269,26 @@ return <<<EOF
//-->
</script>
<table width='{$ibforums->skin['tbl_width']}' border='0' cellspacing='1' align='center' cellpadding='0' bgcolor='{$ibforums->skin['tbl_border']}'>
<table width='<{tbl_width}>' border='0' cellspacing='1' align='center' cellpadding='0' bgcolor='<{tbl_border}>'>
<tr>
<td id='maintitleback' background='{$ibforums->vars['img_url']}/tile_back.gif'>
<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>{$ibforums->lang['error_title']}</b></td>
<td width='100%' class='maintitle'><b>{$ibforums->lang['error_title']}</b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td id='mainbg'>
<td class='mainbg'>
<table width='100%' border='0' cellspacing='1' cellpadding='4'>
<tr>
<td id='alt1' valign='top'>
<td class='row1' valign='top'>
{$ibforums->lang['exp_text']}<br><br>
<b>{$ibforums->lang['msg_head']}</b>
<br><br>
<span id='alert'>$message</span>
<span class='highlight'>$message</span>
<br><br>
<!-- IBF.LOG_IN_TABLE -->
<br><br>
@@ -252,7 +301,7 @@ return <<<EOF
</td>
</tr>
<tr>
<td id='titlefoot' align='center'>&lt; <a href='javascript:history.go(-1)'>{$ibforums->lang['error_back']}</a></td>
<td class='titlefoot' align='center'>&lt; <a href='javascript:history.go(-1)'>{$ibforums->lang['error_back']}</a></td>
</tr>
</table>
</td>
@@ -264,7 +313,7 @@ EOF;
function Member_no_usepm_bar() {
global $ibforums;
return <<<EOF
&nbsp;{$ibforums->lang['logged_in_as']} <b>{$ibforums->member['name']}</b> ( <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=UserCP&CODE=00'>{$ibforums->lang['your_cp']}</a> | <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Login&CODE=03'>{$ibforums->lang['log_out']}</a> )
&nbsp;{$ibforums->lang['logged_in_as']} <b>{$ibforums->member['name']}</b> ( <a href='{$ibforums->base_url}&act=UserCP&CODE=00'>{$ibforums->lang['your_cp']}</a> | <a href='{$ibforums->base_url}&act=Login&CODE=03'>{$ibforums->lang['log_out']}</a> )
EOF;
}
+9 -9
View File
@@ -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;
}
+143 -6
View File
@@ -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>
+23 -26
View File
@@ -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>
+28 -22
View File
@@ -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' >
&nbsp;
</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']}&nbsp;<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>&nbsp;&nbsp;<input class='forminput' type='text' size='25' name='name' value='{$ibforums->input['name']}'><br>
{$ibforums->lang['sorting_text']}&nbsp;<input type='submit' value='{$ibforums->lang['sort_submit']}' class='forminput'></td>
</tr>
</form>
@@ -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;
+215 -120
View File
@@ -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>&nbsp;&nbsp;{$ibforums->lang['cp_1_selected']}&nbsp;&nbsp;<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>&nbsp;&nbsp;{$ibforums->lang['cp_1_selected']}&nbsp;&nbsp;<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'>&nbsp;&nbsp; $title</td>
<td valign='middle' class='titlemedium' align='left' colspan='2'><input type='checkbox' name='TID_$topic_id' value='1'>&nbsp;&nbsp; $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'>&nbsp;&nbsp;{$ibforums->lang['cp_3_postno']}&nbsp;$pid</td>
<td align='left' colspan='2' class='category'><input type='checkbox' name='PID_$pid' value='1'>&nbsp;&nbsp;{$ibforums->lang['cp_3_postno']}&nbsp;$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'>&nbsp;</td>
<td width='80%' id='titlemedium'>&nbsp;</td>
</tr>
<td id='row1' valign='top'>
<!-- Moderate Topics -->
<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>
<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 -->
EOF;
}
<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 -->
function split_row($row) {
global $ibforums;
return <<<EOF
<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>&nbsp;&nbsp;<input type='checkbox' name='post_{$row['pid']}' value='1'></div>
</td>
</tr>
EOF;
}
function CP_end() {
function split_end_form($action) {
global $ibforums;
return <<<EOF
<!-- end main CP area -->
</table>
</td>
</tr>
</table></td></tr></table>
</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 mod_error($msg="") {
function merge_body($title="", $desc="") {
global $ibforums;
return <<<EOF
<tr>
<td id='pagetitle'>{$ibforums->lang['cp_error']}</td>
</tr>
<tr>
<td>$msg</td>
</tr>
<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;
}
+880
View File
@@ -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>&nbsp;&nbsp; $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>&nbsp;&nbsp;{$ibforums->lang['cp_3_postno']}&nbsp;$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'>&nbsp;
<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%'>&nbsp;</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>&nbsp;<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>
&nbsp;<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']}&nbsp;&nbsp;<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;
}
}
?>
+547 -111
View File
@@ -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>&nbsp;&nbsp;{$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>&nbsp;&nbsp;{$ibforums->lang['arc_days']}</td>
</tr>
<tr>
<td id='row1'><b>{$ibforums->lang['arc_max']}</b></td>
<td id='row1' valign='middle'><select name='number' class='forminput'><option value='5'>5</option><option value='10'>10</option><option value='20' selected>20</option><option value='30'>30</option><option value='40'>40</option><option value='50'>50</option></select></td>
<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> &nbsp; &nbsp;[ {$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> &nbsp; &nbsp;[ {$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> ]
&nbsp;&nbsp;( {$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
<script language='javascript'>
<!--
function PopUp(url, name, width,height,center,resize,scroll,posleft,postop) {
if (posleft != 0) { x = posleft }
if (postop != 0) { y = postop }
<td id='row1 align='left'><span id='pagetitle'>{$data['msg']['title']}</span><br>{$data['msg']['msg_date']}</td>
<td id='row1 align='right'>
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&CODE=04&act=Msg&MID={$data['member']['id']}&MSID={$data['msg']['msg_id']}'>{$ibforums->skin[M_REPLY]}</a>
&nbsp;
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&CODE=02&act=Msg&MID={$data['member']['id']}'>{$ibforums->skin[M_ADDMEM]}</a>
&nbsp;
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&CODE=05&act=Msg&MSID={$data['msg']['msg_id']}&VID={$data['member']['VID']}'>{$ibforums->skin[M_DELETE]}</a>
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'>&nbsp;</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'>&nbsp;</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'>&nbsp;</td>
<td align='left' width='40%' id='titlemedium'><b>{$ibforums->lang['message_title']}</b></td>
<td align='left' width='30%' id='titlemedium'><b>{$ibforums->lang['message_from']}</b></td>
<td align='left' width='20%' id='titlemedium'><b>{$ibforums->lang['message_date']}</b></td>
<td align='left' width='5%' id='titlemedium'><input name="allbox" type="checkbox" value="Check All" onClick="CheckAll();"></td>
<td align='left' width='5%' class='titlemedium'>&nbsp;</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>&nbsp; $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'>&nbsp;</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']}&nbsp;{$ibforums->lang['icon_read']}
&nbsp;{$ibforums->skin['M_UNREAD']}&nbsp;{$ibforums->lang['icon_unread']}
</td>
<td id='row1 align='right' valign='middle'>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id};CODE=01;act=Msg" name='jump' method="post">
<input type='hidden' name='act' value='Msg'>
<input type='hidden' name='CODE' value='01'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<b>{$ibforums->lang['goto_folder']}: </b>&nbsp; $vdi_html
<input type='submit' name='submit' value='{$ibforums->lang['goto_submit']}' class='forminput'>
</form>
</td>
</tr>
<tr>
<td class='row1 align='left' valign='middle' width='100%'>
<{M_READ}>&nbsp;{$ibforums->lang['icon_read']}
&nbsp;<{M_UNREAD}>&nbsp;{$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%'>&nbsp;</td>
<td id='row1' align='left' width='60%'>
<td class='row1' align='left' width='40%'>&nbsp;</td>
<td class='row1' align='left' width='60%'>
<input type='checkbox' name='add_sent' value='yes' checked>&nbsp;<b>{$ibforums->lang['auto_sent_add']}</b>
<br><input type='checkbox' name='add_tracking' value='1'>&nbsp;<b>{$ibforums->lang['read_rec_notify']}</b>
<br><input type='checkbox' name='add_tracking' value='1'>&nbsp;<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'>&nbsp;</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>
<td colspan='2' class='category'><b>{$ibforums->lang['enter_message']}</b></td>
</tr>
<tr>
<td id='row1' align='left' width='40%'>{$ibforums->lang['enter_name']}</td>
<td id='row1' align='left' width='60%' valign='top'><input type='text' name='entered_name' value='{$data[N_ENTER]}' class='forminput'></td>
</tr>
<tr>
<td colspan='2' id='category'><b>{$ibforums->lang['enter_message']}</b></td>
</tr>
<tr>
<td id='row1' align='left' width='40%'>{$ibforums->lang['msg_title']}</td>
<td id='row1' align='left' width='60%' valign='top'><input type='text' name='msg_title' size='40' maxlength='40' value='{$data[O_TITLE]}' class='forminput'></td>
<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'>
+13 -13
View File
@@ -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'>&nbsp;</td>
<td colspan='4' class='category'>&nbsp;</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'>&nbsp;</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'>&nbsp;</td>
</tr>
EOF;
}
+42 -19
View File
@@ -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">&nbsp;<b>$answer</b></td>
<td class='row1' colspan='3'><INPUT type="radio" name="poll_vote" value="$id">&nbsp;<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 &nbsp; $delete</td>
<td align='right' colspan='3' width='99%' class='titlemedium'><form action="{$ibforums->base_url}&act=Poll&t=$tid" method="post"> $edit &nbsp; $delete</td>
</tr>
<tr>
<td 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 &nbsp; $delete</td>
</tr>
<tr>
<td class='row1'>
<table cellpadding='4' cellspacing='1' border='0' align='center'>
<tr>
<td colspan='3' align='center'><b>$poll_q</b></td>
</tr>
EOF;
}
function ShowPoll_footer($vote_button) {
global $ibforums;
return <<<EOF
</table>
</td>
<tr>
<td 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=''>&nbsp;[$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=''>&nbsp;[$percentage%]</td>
</tr>
EOF;
}
+410 -68
View File
@@ -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'>&nbsp;{$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'>
&nbsp;
</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'>&nbsp;{$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>&nbsp;&nbsp;<select name='e_month' class='forminput'>$months</select>&nbsp;&nbsp;<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'>&nbsp;
<td class='mainfoot' align="center" colspan="2"><input type="submit" name="submit" value="$data" tabindex='4' class='forminput' accesskey='s'>&nbsp;
<input type="submit" name="preview" value="{$ibforums->lang['button_preview']}" tabindex='5' class='forminput'></td>
</tr>
</table>
@@ -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">&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon1.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="2" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon2.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="3" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon3.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="4" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon4.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="5" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon5.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="6" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon6.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="7" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon7.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<br>
<INPUT type="radio" name="iconid" value="8">&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon8.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="9" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon9.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="10" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon10.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="11" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon11.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="12" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon12.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="13" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon13.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="14" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon14.gif" HEIGHT='15' WIDTH='15' ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;
<td valign="top" class='row1'>{$ibforums->lang['post_icon']}</td>
<td valign="top" width="100%" class='row1'>
<INPUT type="radio" name="iconid" value="1">&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon1.gif" ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="2" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon2.gif" ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="3" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon3.gif" ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="4" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon4.gif" ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="5" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon5.gif" ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="6" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon6.gif" ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="7" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon7.gif" ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<br>
<INPUT type="radio" name="iconid" value="8">&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon8.gif" ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="9" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon9.gif" ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="10" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon10.gif" ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="11" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon11.gif" ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="12" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon12.gif" ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="13" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon13.gif" ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="iconid" value="14" >&nbsp;&nbsp;<IMG SRC="{$ibforums->vars['img_url']}/icon14.gif" ALIGN='center' alt=''>&nbsp;&nbsp;&nbsp;
<BR>
<INPUT type="radio" name="iconid" value="0" CHECKED>&nbsp;&nbsp;[ 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)'>&nbsp;<b>{$ibforums->lang['bbcode_guided']}</b><br>
<input type='radio' name='bbmode' value='normal' onClick='setmode(this.value)' checked>&nbsp;<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>
&nbsp; <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']}:&nbsp;<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">
&nbsp;<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)'>&nbsp;<b>{$ibforums->lang['bbcode_guided']}</b><br>
<input type='radio' name='bbmode' value='normal' onClick='setmode(this.value)' checked>&nbsp;<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>
&nbsp; <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']}:&nbsp;<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">
&nbsp;<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>
+60 -22
View File
@@ -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']}&nbsp;$title</td>
</tr>
<tr>
<td class='row1'>
<b><a href='{$ibforums->base_url}&act=Print&client=printer&f=$fid&t=$tid'>{$ibforums->lang['o_print_title']}</a></b>
<br>
{$ibforums->lang['o_print_desc']}
<br><br>
<b><a href='{$ibforums->base_url}&act=Print&client=html&f=$fid&t=$tid'>{$ibforums->lang['o_html_title']}</a></b>
<br>
{$ibforums->lang['o_html_desc']}
<br><br>
<b><a href='{$ibforums->base_url}&act=Print&client=wordr&f=$fid&t=$tid'>{$ibforums->lang['o_word_title']}</a></b>
<br>
{$ibforums->lang['o_word_desc']}
<br><br><br><br>
&lt;&lt;<a href='{$ibforums->base_url}&act=ST&f=$fid&t=$tid'>{$ibforums->lang['back_topic']}</a></b>
</td>
</tr>
</table>
</td>
</tr>
</table>
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 />&copy; 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']} &gt; $forum_name &gt; <font color='red'>$topic_title</font></b></font></td>
</tr>
</table>
<br />
<br />
EOF;
}
+48 -38
View File
@@ -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'>&lt;( <a href='javascript:history.go(-1)'>{$ibforums->lang['back']}</a> )</td>
<td colspan='2' class='row2' align='center' style='height:24px'>&lt;( <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;
}
}
?>
+281 -37
View File
@@ -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>&nbsp;</td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['pass_word']}</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['email_address']}</td>
<td>&nbsp;</td>
</tr>
</table>
<br>
<table cellpadding='0' cellspacing='4' border='0' width='95%' align='center'>
<tr>
<td valign='middle' align='left'>
<b><span style='font-size:12px'>{$ibforums->lang['cpf_sign']}</span></b>
</td>
</tr>
</table>
<br>
<table cellpadding='10' cellspacing='2' border='1' width='95%' align='center'>
<tr>
<td width='40%'>{$ibforums->lang['cpf_name']}</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['cpf_relation']}</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['cpf_signature']}</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['cpf_email']}</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['cpf_phone']}</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width='40%'>{$ibforums->lang['cpf_date']}</td>
<td>&nbsp;</td>
</tr>
</table>
</body>
</html>
EOF;
}
function coppa_two() {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' class='titlemedium'>{$ibforums->lang['cp2_title']}</td>
</tr>
<tr>
<td class='row1' align='left'>
{$ibforums->lang['cp2_text']}
<br><br>
<center><span style='font-weight:bold;font-size:12px'>
&lt;&lt; <a href='{$ibforums->base_url}'>{$ibforums->lang['cp2_cancel']}</a>
- <a href='{$ibforums->base_url}&act=Reg&coppa_pass=1&coppa_user=1'>{$ibforums->lang['cp2_continue']}</a> &gt;&gt;
</span></center>
</td>
</tr>
<tr>
<td valign='left' class='titlemedium'>{$ibforums->lang['coppa_form']}</td>
</tr>
<tr>
<td class='row1' align='left'>{$ibforums->lang['coppa_form_text']} <a href='mailto:{$ibforums->vars['email_in']}'>{$ibforums->vars['email_in']}</a></td>
</tr>
</table>
</td>
</tr>
</table>
EOF;
}
function coppa_start($coppadate) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td>
<table cellpadding='3' cellspacing='1' border='0' width='100%'>
<tr>
<td valign='left' class='titlemedium'>{$ibforums->lang['coppa_info']}</td>
</tr>
<tr>
<td class='row1' align='center' style='font-weight:bold;font-size:12px'>
<br><br>
{$ibforums->lang['coppa_link']}
<br><br>
&lt; <a href='{$ibforums->base_url}&act=Reg&coppa_pass=1'>{$ibforums->lang['coppa_date_before']} $coppadate</a>
- <a href='{$ibforums->base_url}&act=Reg&CODE=coppa_two'>{$ibforums->lang['coppa_date_after']} $coppadate</a> &gt;
<br><br>&nbsp;
</td>
</tr>
<tr>
<td valign='left' class='titlemedium'>{$ibforums->lang['coppa_form']}</td>
</tr>
<tr>
<td class='row1' align='left'>{$ibforums->lang['coppa_form_text']} <a href='mailto:{$ibforums->vars['email_in']}'>{$ibforums->vars['email_in']}</a></td>
</tr>
</table>
</td>
</tr>
</table>
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>&nbsp;<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'>
&nbsp;<img src='{$ibforums->base_url}&act=Reg&CODE=image&rc={$regid}&p=2' border='0' alt='Code Bit'>
&nbsp;<img src='{$ibforums->base_url}&act=Reg&CODE=image&rc={$regid}&p=3' border='0' alt='Code Bit'>
&nbsp;<img src='{$ibforums->base_url}&act=Reg&CODE=image&rc={$regid}&p=4' border='0' alt='Code Bit'>
&nbsp;<img src='{$ibforums->base_url}&act=Reg&CODE=image&rc={$regid}&p=5' border='0' alt='Code Bit'>
&nbsp;<img src='{$ibforums->base_url}&act=Reg&CODE=image&rc={$regid}&p=6' border='0' alt='Code Bit'>
</td>
</tr>
<tr>
<td class='row2' width='40%'>{$ibforums->lang['ras_text']}</td>
<td class='row2'><input type='text' size='32' maxlength='32' name='reg_code' class='forminput'></td>
</tr>
</table>
</td>
</tr>
</table>
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;
}
}
?>
+181 -76
View File
@@ -9,30 +9,88 @@ 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'>
<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 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>
<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 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>
<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 end($Data) {
function RenderPostRow($Data) {
global $ibforums;
return <<<EOF
<tr><td colspan='8' id='titlemedium'>&nbsp;</td></tr>
<!-- Begin Topic Entry {$Data['tid']} -->
<tr>
<td align='center' class='titlemedium' colspan='2'>
<table cellpadding='5' cellspacing='0' width='100%' border='0'>
<tr>
<td align='left'>{$Data['folder_img']}</td>
<td align='left' width='100%'><b>{$ibforums->lang['rp_topic']} <span class='linkthru'>{$Data['prefix']} <a href='{$ibforums->base_url}&act=ST&f={$Data['forum_id']}&t={$Data['tid']}&hl={$Data['keywords']}' class='linkthru'>{$Data['title']}</a></span></b> {$Data[PAGES]}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width='150' align='left' class='posthead'><span class='normalname'>{$Data['author_name']}</span></td>
<td class='posthead'>
{$ibforums->lang['rp_forum']} <span class="linkthru"><a href="{$ibforums->base_url}&act=SF&f={$Data['forum_id']}">{$Data['forum_name']}</a></span>&nbsp;&nbsp;&nbsp;&nbsp;{$ibforums->lang['rp_postedon']} {$Data['post_date']}&nbsp;&nbsp;&nbsp;&nbsp;{$ibforums->lang['rp_post']} <a href='{$ibforums->base_url}&act=ST&f={$Data['forum_id']}&t={$Data['tid']}&hl={$Data['keywords']}&#entry{$Data['pid']}' class='linkthru'>#{$Data['pid']}</a>
</td>
</tr>
<tr>
<td class='post1' align='left'>
<img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='150' height='15'>
<br>
<span class='postdetails'>{$ibforums->lang['rp_replies']} <b>{$Data['posts']}</b><br>{$ibforums->lang['rp_hits']} <b>{$Data['views']}</b></span>
</td>
<td class='post1' align='left'>{$Data['post']}</td>
</tr>
<tr>
<td class='postsep' colspan='2'><img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='1' height='1'></td>
</tr>
<!-- End Topic Entry {$Data['tid']} -->
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'>&nbsp;</td></tr>
</table>
</td>
</tr>
@@ -40,23 +98,57 @@ return <<<EOF
</td>
</tr>
</table>
<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' width='50%' nowrap align='left'>{$Data[SHOW_PAGES]}</td>
</tr>
</table>
<table cellpadding='0' cellspacing='4' border='0' width='50%' align='center'>
<tr>
<td valign='middle' nowrap>{$ibforums->skin['B_NEW']}&nbsp;{$ibforums->lang['pm_open_new']}</td>
<td valign='middle' nowrap>{$ibforums->skin['B_HOT']}&nbsp;{$ibforums->lang['pm_hot_new']}</td>
<td valign='middle' nowrap>{$ibforums->skin['B_POLL']}&nbsp;{$ibforums->lang['pm_poll']}</td>
<td valign='middle' nowrap>{$ibforums->skin['B_LOCKED']}&nbsp;{$ibforums->lang['pm_locked']}</td>
<td valign='middle' nowrap><{B_NEW}>&nbsp;{$ibforums->lang['pm_open_new']}</td>
<td valign='middle' nowrap><{B_HOT}>&nbsp;{$ibforums->lang['pm_hot_new']}</td>
<td valign='middle' nowrap><{B_POLL}>&nbsp;{$ibforums->lang['pm_poll']}</td>
<td valign='middle' nowrap><{B_LOCKED}>&nbsp;{$ibforums->lang['pm_locked']}</td>
</tr>
<tr>
<td valign='middle' nowrap>{$ibforums->skin['B_NORM']}&nbsp;{$ibforums->lang['pm_open_no']}</td>
<td valign='middle' nowrap>{$ibforums->skin['B_HOT_NN']}&nbsp;{$ibforums->lang['pm_hot_no']}</td>
<td valign='middle' nowrap>{$ibforums->skin['B_POLL_NN']}&nbsp;{$ibforums->lang['pm_poll_no']}</td>
<td valign='middle' nowrap>{$ibforums->skin['B_MOVED']}&nbsp;{$ibforums->lang['pm_moved']}</td>
<td valign='middle' nowrap><{B_NORM}>&nbsp;{$ibforums->lang['pm_open_no']}</td>
<td valign='middle' nowrap><{B_HOT_NN}>&nbsp;{$ibforums->lang['pm_hot_no']}</td>
<td valign='middle' nowrap><{B_POLL_NN}>&nbsp;{$ibforums->lang['pm_poll_no']}</td>
<td valign='middle' nowrap><{B_MOVED}>&nbsp;{$ibforums->lang['pm_moved']}</td>
</tr>
</table>
EOF;
}
function end($Data) {
global $ibforums;
return <<<EOF
<tr><td colspan='8' class='titlemedium'>&nbsp;</td></tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellpadding='0 'cellspacing='4' border='0' width='<{tbl_width}>' align='center'>
<tr>
<td valign='middle' width='50%' nowrap align='left'>{$Data[SHOW_PAGES]}</td>
</tr>
</table>
<table cellpadding='0' cellspacing='4' border='0' width='50%' align='center'>
<tr>
<td valign='middle' nowrap><{B_NEW}>&nbsp;{$ibforums->lang['pm_open_new']}</td>
<td valign='middle' nowrap><{B_HOT}>&nbsp;{$ibforums->lang['pm_hot_new']}</td>
<td valign='middle' nowrap><{B_POLL}>&nbsp;{$ibforums->lang['pm_poll']}</td>
<td valign='middle' nowrap><{B_LOCKED}>&nbsp;{$ibforums->lang['pm_locked']}</td>
</tr>
<tr>
<td valign='middle' nowrap><{B_NORM}>&nbsp;{$ibforums->lang['pm_open_no']}</td>
<td valign='middle' nowrap><{B_HOT_NN}>&nbsp;{$ibforums->lang['pm_hot_no']}</td>
<td valign='middle' nowrap><{B_POLL_NN}>&nbsp;{$ibforums->lang['pm_poll_no']}</td>
<td valign='middle' nowrap><{B_MOVED}>&nbsp;{$ibforums->lang['pm_moved']}</td>
</tr>
</table>
EOF;
@@ -66,26 +158,49 @@ 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'>
<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='{$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' align='center'>{$ibforums->lang['keywords_title']}</td>
<td colspan='2' class="maintitle" 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>
<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 id='row1' valign='top'><input type='text' maxlength='100' size='40' name='keywords' class='forminput'>&nbsp;<select name='smethod' class='forminput'><option value='simple'>{$ibforums->lang['se_simple']}</option><option value='advanced'>{$ibforums->lang['se_advanced']}</option></select><br><br>{$ibforums->lang['keysearch_text']}</td>
<td id='row1' valign='top'><input type='text' maxlength='100' size='50' name='namesearch' class='forminput'><br><br><input name='exactname' type='radio' value='1' checked>&nbsp;{$ibforums->lang['match_name_ex']}<br><input name='exactname' type='radio' value='1'>&nbsp;{$ibforums->lang['match_name_pa']}</td>
<td class='row1' valign='top'><input type='text' maxlength='100' size='40' name='keywords' class='forminput'><br><br>{$ibforums->lang['keysearch_text']}</td>
<td class='row1' valign='top'>
<table width='100%' cellpadding='4' cellspacing='0' border='0' align='center'>
<tr>
<td colspan='2'><input type='text' maxlength='100' size='50' name='namesearch' class='forminput'></td>
</tr>
<td width='40%'>
<input name='exactname' type='radio' value='1' checked>&nbsp;{$ibforums->lang['match_name_ex']}
<br><input name='exactname' type='radio' value='0'>&nbsp;{$ibforums->lang['match_name_pa']}
</td>
<td width='60%'>
<input name='joinname' type='radio' value='1' checked>&nbsp;{$ibforums->lang['joinname_true']}
<br><input name='joinname' type='radio' value='0'>&nbsp;{$ibforums->lang['joinname_false']}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
@@ -96,22 +211,22 @@ return <<<EOF
<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' align='center'>{$ibforums->lang['search_options']}</td>
<td colspan='2' class="maintitle" 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>
<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 id='row1' valign='middle'>
<td class='row1' valign='middle'>
<table cellspacing='4' cellpadding='0' width='100%' align='center' border='0'>
<tr>
<td valign='top' width='40%' nowrap><input type='radio' name='cat_forum' value='cat'>&nbsp;<b>{$ibforums->lang['search_cats']}</b></td>
@@ -122,12 +237,12 @@ return <<<EOF
<td valign='top'>$forums</td>
</tr>
<tr>
<td><input type='radio' name='search_in' value='posts' checked>&nbsp;{$ibforums->lang['in_posts']}</td>
<td><input type='radio' name='search_in' value='titles'>&nbsp;{$ibforums->lang['in_topics']}</td>
<td><input type='radio' name='search_in' value='posts' checked>&nbsp;{$ibforums->lang['in_posts']}<br><input type='radio' name='search_in' value='titles'>&nbsp;{$ibforums->lang['in_topics']}</td>
<td><input type='radio' name='result_type' value='topics' checked>&nbsp;{$ibforums->lang['results_topics']}<br><input type='radio' name='result_type' value='posts'>&nbsp;{$ibforums->lang['results_post']}</td>
</tr>
</table>
</td>
<td id='row1' valign='top'>
<td class='row1' valign='top'>
<table cellspacing='4' cellpadding='0' width='100%' align='center' border='0'>
<tr>
<td valign='top'>
@@ -140,7 +255,7 @@ return <<<EOF
<option value='365'>{$ibforums->lang['this_year']}
<option value='0'>{$ibforums->lang['ever']}
</select>
<br>{$ibforums->lang['and']}&nbsp;<input type='radio' name='prune_type' value='older' class='forminput' style='background-color:{$ibforums->skin['MISCBACK_ONE']}'>&nbsp;{$ibforums->lang['older']}&nbsp;<input type='radio' name='prune_type' value='newer' class='forminput' style='background-color:{$ibforums->skin['MISCBACK_ONE']}' checked>&nbsp;{$ibforums->lang['newer']}
<br>{$ibforums->lang['and']}&nbsp;<input type='radio' name='prune_type' value='older' class='forminput' style='background-color:<{MISCBACK_ONE}>'>&nbsp;{$ibforums->lang['older']}&nbsp;<input type='radio' name='prune_type' value='newer' class='forminput' style='background-color:<{MISCBACK_ONE}>' checked>&nbsp;{$ibforums->lang['newer']}
</td>
<td valign='top'>
<b>{$ibforums->lang['sort_results']}</b><br>
@@ -158,21 +273,14 @@ return <<<EOF
</td>
</tr>
<tr>
<td id='row1' colspan='2' align='center'><input type='submit' value='{$ibforums->lang['do_search']}' class='forminput'></td>
<td class='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;
}
@@ -195,20 +303,17 @@ return <<<EOF
-->
</script>
<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' nowrap align='left'><span id='pagetitle'>{$ibforums->lang['active_topics']}</span><br>{$Data[SHOW_PAGES]}</td>
<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->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}'>
<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='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<table cellpadding='2' cellspacing='0' border='0' width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center'>
<tr>
<td id='maintitle' background='{$ibforums->vars['img_url']}/tile_back.gif' align='center'>
<td class='maintitle' align='center'>
{$ibforums->lang['active_st_text']}
<select name='st_day' class='forminput'>
<option value='s1'>{$ibforums->lang['active_yesterday']}</option>
@@ -238,16 +343,16 @@ return <<<EOF
<td>
<table cellpadding='0' cellspacing='0' border='0' width='100%' align='center'>
<tr>
<td id='mainbg'>
<td class='mainbg'>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td id='titlemedium' colspan='2' background='{$ibforums->vars['img_url']}/tile_sub.gif'>&nbsp;</td>
<td align='left' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_topic_title']}</td>
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_forum_name']}</td>
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_topic_starter']}</td>
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_replies']}</td>
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_hits']}</td>
<td id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_last_action']}</td>
<td class='titlemedium' colspan='2' >&nbsp;</td>
<td align='left' class='titlemedium'>{$ibforums->lang['h_topic_title']}</td>
<td align='center' class='titlemedium'>{$ibforums->lang['h_forum_name']}</td>
<td align='center' class='titlemedium'>{$ibforums->lang['h_topic_starter']}</td>
<td align='center' class='titlemedium'>{$ibforums->lang['h_replies']}</td>
<td align='center' class='titlemedium'>{$ibforums->lang['h_hits']}</td>
<td class='titlemedium'>{$ibforums->lang['h_last_action']}</td>
</tr>
EOF;
}
@@ -256,26 +361,26 @@ 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'>
<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='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<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 id='mainbg'>
<td class='mainbg'>
<table cellpadding='2' cellspacing='1' border='0' width='100%'>
<tr>
<td id='titlemedium' colspan='2' background='{$ibforums->vars['img_url']}/tile_sub.gif'>&nbsp;</td>
<td align='left' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_topic_title']}</td>
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_forum_name']}</td>
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_topic_starter']}</td>
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_replies']}</td>
<td align='center' id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_hits']}</td>
<td id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>{$ibforums->lang['h_last_action']}</td>
<td class='titlemedium' colspan='2' >&nbsp;</td>
<td align='left' class='titlemedium'>{$ibforums->lang['h_topic_title']}</td>
<td align='center' class='titlemedium'>{$ibforums->lang['h_forum_name']}</td>
<td align='center' class='titlemedium'>{$ibforums->lang['h_topic_starter']}</td>
<td align='center' class='titlemedium'>{$ibforums->lang['h_replies']}</td>
<td align='center' class='titlemedium'>{$ibforums->lang['h_hits']}</td>
<td class='titlemedium'>{$ibforums->lang['h_last_action']}</td>
</tr>
EOF;
}
@@ -283,7 +388,7 @@ 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>
<tr><td colspan='8' class='row1' align='center'><b>{$ibforums->lang['active_no_topics']}</b></td></tr>
EOF;
}
+89 -25
View File
@@ -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'>&nbsp;</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'>&nbsp;</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;
}
+90 -57
View File
@@ -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
&nbsp;&nbsp;<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Report&f={$data[FORUM_ID]}&t={$data[TOPIC_ID]}&p={$data[POST_ID]}'>{$ibforums->lang['snitch_geezer_to_a_copper']}</a>
<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="&nbsp;") {
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>&nbsp;<input type='submit' value='{$ibforums->lang['jmp_go']}' class='forminput'>
</form>
</td>
</select>&nbsp;<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>&lt;&lt; <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=SF&f={$data['FORUM']['id']}'>Back to {$data['FORUM']['name']}</a></td>
<td align='right' nowrap>{$data[TOPIC][REPLY_BUTTON]}<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Post&CODE=00&f={$data[FORUM]['id']}' title='{$ibforums->lang['start_new_topic']}'><{A_POST}></a>{$data[TOPIC][POLL_BUTTON]}</td>
</tr>
</table>
<br>
<table width='{$ibforums->skin['tbl_width']}' align='center' border='0' cellspacing='0' cellpadding='3'>
<table width='<{tbl_width}>' align='center' border='0' cellspacing='0' cellpadding='3'>
<tr>
<td width='100%' align='right'>{$data[FORUM]['JUMP']}</td>
<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'>&nbsp;</td>
<td id='postfoot' nowrap align='left'>
<td class='postfoot' align='left'>{$data[POST]['ip_address']}&nbsp;</td>
<td class='postfoot' nowrap align='left'>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td 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']}&nbsp;</td>
<td class='postfoot' valign='middle' align='right' width='2%'><a href='javascript:scroll(0,0);'><img src='{$ibforums->vars['img_url']}/p_up.gif' alt='Top' border='0'></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td 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']}&nbsp;{$data['TOPIC']['go_new']}</td>
<td align='right' nowrap>{$data[TOPIC][REPLY_BUTTON]}<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Post&CODE=00&f={$data[FORUM]['id']}' title='{$ibforums->lang['start_new_topic']}'>{$ibforums->skin['A_POST']}</a>{$data[TOPIC][POLL_BUTTON]}</td>
<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>&laquo; <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$data[FORUM]['id']}&t={$data[TOPIC]['tid']}&view=old'>{$ibforums->lang['t_old']}</a> | <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$data[FORUM]['id']}&t={$data[TOPIC]['tid']}&view=new'>{$ibforums->lang['t_new']}</a> &raquo;</b></td>
<td align='right'><b>
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Track&f={$data['FORUM']['id']}&t={$data['TOPIC']['tid']}'>{$ibforums->lang['track_topic']}</a> |
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Forward&f={$data['FORUM']['id']}&t={$data['TOPIC']['tid']}'>{$ibforums->lang['forward']}</a> |
<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Print&f={$data['FORUM']['id']}&t={$data['TOPIC']['tid']}'>{$ibforums->lang['print']}</a></b></td>
<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>
+374 -195
View File
@@ -8,8 +8,8 @@ function birthday($day,$month,$year) {
global $ibforums;
return <<<EOF
<tr>
<td id='row2' width='40%'><b>{$ibforums->lang['birthday']}</b></td>
<td id='row2'>
<td class='row2' width='40%'><b>{$ibforums->lang['birthday']}</b></td>
<td class='row2'>
<select name='day' class='forminput'>{$day}</select>
<select name='month' class='forminput'>{$month}</select>
<select name='year' class='forminput'>{$year}</select>
@@ -21,7 +21,7 @@ EOF;
function email_change($txt="") {
global $ibforums;
return <<<EOF
<td colspan='2' id='category'><b>{$ibforums->lang['change_email_title']}</b></td>
<td colspan='2' class='category'><b>{$ibforums->lang['change_email_title']}</b></td>
</tr>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post" name='form1'>
@@ -29,18 +29,18 @@ return <<<EOF
<input type='hidden' name='CODE' value='09'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<tr>
<td id='row1' colspan='2'>$txt</td>
<td class='row1' colspan='2'>$txt</td>
</tr>
<tr>
<td id='row1' nowrap><b>{$ibforums->lang['ce_new_email']}</b></td>
<td id='row1' width='70%' align='left'><input type='text' name='in_email_1' value='' class='forminput'></td>
<td class='row1' nowrap><b>{$ibforums->lang['ce_new_email']}</b></td>
<td class='row1' width='70%' align='left'><input type='text' name='in_email_1' value='' class='forminput'></td>
</tr>
<tr>
<td id='row1' nowrap><b>{$ibforums->lang['ce_new_email2']}</b></td>
<td id='row1' width='70%' align='left'><input type='text' name='in_email_2' value='' class='forminput'></td>
<td class='row1' nowrap><b>{$ibforums->lang['ce_new_email2']}</b></td>
<td class='row1' width='70%' align='left'><input type='text' name='in_email_2' value='' class='forminput'></td>
</tr>
<tr>
<td id='row2' align='center' colspan='2'><input type="submit" name='change_email' value="{$ibforums->lang['account_email_submit']}" class='forminput'></td>
<td class='row2' align='center' colspan='2'><input type="submit" name='change_email' value="{$ibforums->lang['account_email_submit']}" class='forminput'></td>
</tr>
</form>
EOF;
@@ -54,25 +54,25 @@ return <<<EOF
<input type='hidden' name='CODE' value='29'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<td colspan='2' id='category'><b>{$ibforums->lang['account_pass_title']}</b></td>
<td colspan='2' class='category'><b>{$ibforums->lang['account_pass_title']}</b></td>
</tr>
<tr>
<td id='row1' colspan='2'>{$ibforums->lang['pass_change_text']}</td>
<td class='row1' colspan='2'>{$ibforums->lang['pass_change_text']}</td>
</tr>
<tr>
<td id='row2' nowrap><b>{$ibforums->lang['account_pass_old']}</b></td>
<td id='row2' align='left'><input type='password' name='current_pass' value='' class='forminput'></td>
<td class='row2' nowrap><b>{$ibforums->lang['account_pass_old']}</b></td>
<td class='row2' align='left'><input type='password' name='current_pass' value='' class='forminput'></td>
</tr>
<tr>
<td id='row1' nowrap><b>{$ibforums->lang['account_pass_new']}</b></td>
<td id='row1' align='left'><input type='password' name='new_pass_1' value='' class='forminput'></td>
<td class='row1' nowrap><b>{$ibforums->lang['account_pass_new']}</b></td>
<td class='row1' align='left'><input type='password' name='new_pass_1' value='' class='forminput'></td>
</tr>
<tr>
<td id='row1' nowrap><b>{$ibforums->lang['account_pass_new2']}</b></td>
<td id='row1' align='left'><input type='password' name='new_pass_2' value='' class='forminput'></td>
<td class='row1' nowrap><b>{$ibforums->lang['account_pass_new2']}</b></td>
<td class='row1' align='left'><input type='password' name='new_pass_2' value='' class='forminput'></td>
</tr>
<tr>
<td id='row2' align='center' colspan='2'><input type="submit" name='s_pass' value="{$ibforums->lang['account_pass_submit']}" class='forminput'></td>
<td class='row2' align='center' colspan='2'><input type="submit" name='s_pass' value="{$ibforums->lang['account_pass_submit']}" class='forminput'></td>
</tr>
</form>
EOF;
@@ -81,13 +81,13 @@ EOF;
function personal_splash() {
global $ibforums;
return <<<EOF
<td colspan='2' id='category'>{$ibforums->lang['personal_ops']}</td>
<td colspan='2' class='category'>{$ibforums->lang['personal_ops']}</td>
</tr>
<tr>
<td id='row1' colspan='2'><b>{$ibforums->member['name']}</b>, {$ibforums->lang['personal_ops_txt']}</td>
<td class='row1' colspan='2'><b>{$ibforums->member['name']}</b>, {$ibforums->lang['personal_ops_txt']}</td>
</tr>
<tr>
<td id='row2' colspan='2'><span id='usermenu'><u><b><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=UserCP&CODE=01&MODE=2'>{$ibforums->lang['edit_profile']}</a></b></u></span><br><br>{$ibforums->lang['edit_profile_txt']}</td>
<td class='row2' colspan='2'><span class='usermenu'><u><b><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=UserCP&CODE=01&MODE=2'>{$ibforums->lang['edit_profile']}</a></b></u></span><br><br>{$ibforums->lang['edit_profile_txt']}</td>
</tr>
EOF;
}
@@ -96,8 +96,8 @@ function member_title($title) {
global $ibforums;
return <<<EOF
<tr>
<td id='row1' width='40%'>{$ibforums->lang['member_title']}</td>
<td id='row1'><input type='text' size='40' maxlength='120' name='member_title' value='$title' class='forminput'></td>
<td class='row1' width='40%'>{$ibforums->lang['member_title']}</td>
<td class='row1'><input type='text' size='40' maxlength='120' name='member_title' value='$title' class='forminput'></td>
</tr>
EOF;
}
@@ -151,17 +151,17 @@ return <<<EOF
<input type='hidden' name='s' value='{$ibforums->session_id}'>
$hidden_field
<td align='left' colspan='2' id='category'><b>{$ibforums->lang['av_current']}</b></td>
<td align='left' colspan='2' class='category'><b>{$ibforums->lang['av_current']}</b></td>
</tr>
<tr>
<td id='row2' width='40%' valign='middle'>{$ibforums->lang['this_avatar']}</td>
<td id='row2' width='60%' valign='middle'>{$data[CUR_AV]}</td>
<td class='row2' width='40%' valign='middle'>{$ibforums->lang['this_avatar']}</td>
<td class='row2' width='60%' valign='middle'>{$data[CUR_AV]}</td>
<tr>
<td valign='left' colspan='2' id='category'><input type='radio' name='choice' value='gallery' onclick='return true;'><b>{$ibforums->lang['avatar_pre_title']}</b></td>
<td valign='left' colspan='2' class='category'><input type='radio' name='choice' value='gallery' onclick='return true;'><b>{$ibforums->lang['avatar_pre_title']}</b></td>
</tr>
<tr>
<td id='row1' width='40%' valign='top'>{$ibforums->lang['avatar_pre_txt']}</td>
<td id='row1' valign='top'>{$data[AVATARS]} &nbsp; &nbsp; {$data[SHOW_AVS]}</td>
<td class='row1' width='40%' valign='top'>{$ibforums->lang['avatar_pre_txt']}</td>
<td class='row1' valign='top'>{$data[AVATARS]} &nbsp; &nbsp; {$data[SHOW_AVS]}</td>
</tr>
EOF;
}
@@ -170,8 +170,8 @@ function avatar_upload_field($text="") {
global $ibforums;
return <<<EOF
<tr>
<td id='row1' width='40%' valign='top'><b>{$ibforums->lang['upload_avatar']}</b></td>
<td id='row1'><input type='file' size='30' name='FILE_UPLOAD' class='forminput' onfocus='select_upload()' onclick='select_upload()'><br>$text</td>
<td class='row1' width='40%' valign='top'><b>{$ibforums->lang['upload_avatar']}</b></td>
<td class='row1'><input type='file' size='30' name='FILE_UPLOAD' class='forminput' onfocus='select_upload()' onclick='select_upload()'><br>$text</td>
</tr>
EOF;
}
@@ -180,16 +180,16 @@ function personal_avatar_URL($Profile, $avatar, $allowed_ext) {
global $ibforums;
return <<<EOF
<tr>
<td valign='left' colspan='2' id='category'><input type='radio' name='choice' value='url' checked onclick='return true;'><b>{$ibforums->lang['avatar_url_title']}</b></td>
<td valign='left' colspan='2' class='category'><input type='radio' name='choice' value='url' checked onclick='return true;'><b>{$ibforums->lang['avatar_url_title']}</b></td>
</tr>
<tr>
<td id='row1' width='40%' valign='top'>{$ibforums->lang['avatar']}<br>{$ibforums->lang['avatar_url_ext']}<br><b>$allowed_ext</b></td>
<td id='row1'><input type='text' size='55' maxlength='80' name='url_avatar' value='$avatar' class='forminput' onfocus='select_url()'></td>
<td class='row1' width='40%' valign='top'>{$ibforums->lang['avatar']}<br>{$ibforums->lang['avatar_url_ext']}<br><b>$allowed_ext</b></td>
<td class='row1'><input type='text' size='55' maxlength='80' name='url_avatar' value='$avatar' class='forminput' onfocus='select_url()'></td>
</tr>
<!-- IBF.UPLOAD_AVATAR -->
<tr>
<td id='row1' width='40%' valign='top'>{$ibforums->lang['avatar_dims']}<br>{$ibforums->lang['maximum']} {$ibforums->lang['width']} = {$ibforums->vars['av_width']} {$ibforums->lang['pixels']}<br>{$ibforums->lang['maximum']} {$ibforums->lang['height']} = {$ibforums->vars['av_height']} {$ibforums->lang['pixels']})</td>
<td id='row1'>{$ibforums->lang['width']} &nbsp; <input type='text' size='3' maxlength='3' name='Avatar_width' value='{$Profile[AVATAR_WIDTH]}' class='forminput' onfocus='select_url()'>&nbsp; x &nbsp; {$ibforums->lang['height']} &nbsp; <input type='text' size='3' maxlength='3' name='Avatar_height' value='{$Profile[AVATAR_HEIGHT]}' onfocus='select_url()' class='forminput'></td>
<td class='row1' width='40%' valign='top'>{$ibforums->lang['avatar_dims']}<br>{$ibforums->lang['maximum']} {$ibforums->lang['width']} = {$ibforums->vars['av_width']} {$ibforums->lang['pixels']}<br>{$ibforums->lang['maximum']} {$ibforums->lang['height']} = {$ibforums->vars['av_height']} {$ibforums->lang['pixels']})</td>
<td class='row1'>{$ibforums->lang['width']} &nbsp; <input type='text' size='3' maxlength='3' name='Avatar_width' value='{$Profile[AVATAR_WIDTH]}' class='forminput' onfocus='select_url()'>&nbsp; x &nbsp; {$ibforums->lang['height']} &nbsp; <input type='text' size='3' maxlength='3' name='Avatar_height' value='{$Profile[AVATAR_HEIGHT]}' onfocus='select_url()' class='forminput'></td>
</tr>
EOF;
}
@@ -198,13 +198,13 @@ function personal_avatar_end() {
global $ibforums;
return <<<EOF
<tr>
<td valign='left' colspan='2' id='category'><input type='radio' name='choice' value='none' onclick='return true;'><b>{$ibforums->lang['av_tt_one']}</b></td>
<td valign='left' colspan='2' class='category'><input type='radio' name='choice' value='none' onclick='return true;'><b>{$ibforums->lang['av_tt_one']}</b></td>
</tr>
<tr>
<td id='row1' align='center' colspan='2'>{$ibforums->lang['av_tt_two']}</td>
<td class='row1' align='center' colspan='2'>{$ibforums->lang['av_tt_two']}</td>
</tr>
<tr>
<td id='row2' align='center' colspan='2'><input type="submit" value="{$ibforums->lang['avatar_pre_submit']}" class='forminput'></td>
<td class='row2' align='center' colspan='2'><input type="submit" value="{$ibforums->lang['avatar_pre_submit']}" class='forminput'></td>
</tr>
</form>
EOF;
@@ -214,7 +214,7 @@ function personal_splash_av() {
global $ibforums;
return <<<EOF
<tr>
<td id='row2' colspan='2'><span id='usermenu'><b><u><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=UserCP&CODE=01&MODE=1'>{$ibforums->lang['avatar_ops']}</a></u></b></span><br><br>{$ibforums->lang['avatar_ops_txt']}</td>
<td class='row2' colspan='2'><span class='usermenu'><b><u><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=UserCP&CODE=01&MODE=1'>{$ibforums->lang['avatar_ops']}</a></u></b></span><br><br>{$ibforums->lang['avatar_ops_txt']}</td>
</tr>
EOF;
}
@@ -261,50 +261,72 @@ function ValidateForm() {
// 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 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>
<script language='Javascript' src='html/ibfcode.js'></script>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="POST" name='REPLIER'>
<input type='hidden' name='act' value='UserCP'>
<input type='hidden' name='CODE' value='23'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<td id='title'><b>{$ibforums->lang['cp_current_sig']}</b></td>
</tr>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="POST" name='REPLIER'>
<input type='hidden' name='act' value='UserCP'>
<input type='hidden' name='CODE' value='23'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<td class='title' colspan='2'><b>{$ibforums->lang['cp_current_sig']}</b></td>
</tr>
<tr>
<td class='row1' align='center' colspan='2'>
<table cellpadding='2' cellspacing='0' width='75%' align='center'>
<tr>
<td id='row1' align='center'>
<table cellpadding='2' cellspacing='0' width='75%' align='center'>
<tr>
<td id='signature'>$sig</td>
</tr>
</table>
</td>
<td class='signature'>$sig</td>
</tr>
<tr>
<td id='title'><b>{$ibforums->lang['cp_edit_sig']}</b></td>
</tr>
<tr>
<td id='row1' align='center'>
<table cellpadding='2' cellspacing='2' width='100%'>
</table>
</td>
</tr>
<tr>
<td class='title' colspan='2'><b>{$ibforums->lang['cp_edit_sig']}</b></td>
</tr>
<tr>
<td class='row1' width='20%' nowrap>
<input type='radio' name='bbmode' value='ezmode' onClick='setmode(this.value)'>&nbsp;<b>{$ibforums->lang['bbcode_guided']}</b><br>
<input type='radio' name='bbmode' value='normal' onClick='setmode(this.value)' checked>&nbsp;<b>{$ibforums->lang['bbcode_normal']}</b>
</td>
<script language='Javascript' src='html/ibfcode.js'></script>
<td class='row1' width="80%" 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>
@@ -312,46 +334,52 @@ var error_no_height = "{$ibforums->lang['jscode_error_no_height']}";
<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='7'>{$ibforums->lang['ct_sml']}</option>
<option value='14'>{$ibforums->lang['ct_lrg']}</option>
<option value='18'>{$ibforums->lang['ct_lest']}</option>
</select><select name='fcolor' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'COLOR')">
<option value='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:orange'>{$ibforums->lang['ct_grey']}</option>
<option value='gray' style='color:gray'>{$ibforums->lang['ct_grey']}</option>
<option value='green' style='color:green'>{$ibforums->lang['ct_green']}</option>
</select>
&nbsp; <a href='javascript:closeall();' onMouseOver="hstat('close')">{$ibforums->lang['js_close_all_tags']}</a>
</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'>
<input type='text' name='helpbox' size='50' maxlength='120' style='width:450px;font-size:10px;font-family:verdana,arial;border:0px;font-weight:bold;' readonly class='row1' value="{$ibforums->lang['hb_start']}">
<br>
<b>{$ibforums->lang['hb_open_tags']}:</b>&nbsp;<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">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td id='row1' align='center'><textarea cols='60' rows='12' wrap='soft' name='Post' tabindex='3' class='textinput'>$t_sig</textarea><br>(<a href='javascript:CheckLength()'>{$ibforums->lang['check_length']}</a>)</td>
<td class='row1' align='center' colspan='2'><textarea cols='60' rows='12' wrap='soft' name='Post' tabindex='3' class='textinput'>$t_sig</textarea><br>(<a href='javascript:CheckLength()'>{$ibforums->lang['check_length']}</a>)</td>
</tr>
<tr>
<td id='row1' align='center'><input type='submit' value='{$ibforums->lang['cp_submit_sig']}'></td>
<td class='row1' align='center' colspan='2'><input type='submit' value='{$ibforums->lang['cp_submit_sig']}'></td>
</tr>
</form>
EOF;
@@ -421,85 +449,137 @@ function ValidateProfile() {
<input type='hidden' name='act' value='UserCP'>
<input type='hidden' name='CODE' value='21'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<td valign='left' colspan='2' id='category'>{$ibforums->lang['profile_title']}</td>
<!--{REQUIRED.FIELDS}-->
<td valign='left' colspan='2' class='category'>{$ibforums->lang['profile_title']}</td>
</tr>
<!--{MEMBERTITLE}-->
<!--{BIRTHDAY}-->
<!-- for v1.1<tr>
<td id='row1' width='40%'>{$ibforums->lang['photo']}</td>
<td id='row1'><input type='text' size='40' maxlength='120' name='Photo' value='{$Profile['photo']}' class='forminput'></td>
<td class='row1' width='40%'>{$ibforums->lang['photo']}</td>
<td class='row1'><input type='text' size='40' maxlength='120' name='Photo' value='{$Profile['photo']}' class='forminput'></td>
</tr> -->
<tr>
<td id='row2' width='40%'>{$ibforums->lang['website']}</td>
<td id='row2'><input type='text' size='40' maxlength='1200' name='WebSite' value='{$Profile['website']}' class='forminput'></td>
<td class='row2' width='40%'>{$ibforums->lang['website']}</td>
<td class='row2'><input type='text' size='40' maxlength='1200' name='WebSite' value='{$Profile['website']}' class='forminput'></td>
</tr>
<tr>
<td id='row1' width='40%'>{$ibforums->lang['icq']}</td>
<td id='row1'><input type='text' size='40' maxlength='20' name='ICQNumber' value='{$Profile['icq_number']}' class='forminput'></td>
<td class='row1' width='40%'>{$ibforums->lang['icq']}</td>
<td class='row1'><input type='text' size='40' maxlength='20' name='ICQNumber' value='{$Profile['icq_number']}' class='forminput'></td>
</tr>
<tr>
<td id='row2' width='40%'>{$ibforums->lang['aol']}</td>
<td id='row2'><input type='text' size='40' maxlength='30' name='AOLName' value='{$Profile['aim_name']}' class='forminput'></td>
<td class='row2' width='40%'>{$ibforums->lang['aol']}</td>
<td class='row2'><input type='text' size='40' maxlength='30' name='AOLName' value='{$Profile['aim_name']}' class='forminput'></td>
</tr>
<tr>
<td id='row1' width='40%'>{$ibforums->lang['yahoo']}</td>
<td id='row1'><input type='text' size='40' maxlength='30' name='YahooName' value='{$Profile['yahoo']}' class='forminput'></td>
<td class='row1' width='40%'>{$ibforums->lang['yahoo']}</td>
<td class='row1'><input type='text' size='40' maxlength='30' name='YahooName' value='{$Profile['yahoo']}' class='forminput'></td>
</tr>
<tr>
<td id='row2' width='40%'>{$ibforums->lang['msn']}</td>
<td id='row2'><input type='text' size='40' maxlength='30' name='MSNName' value='{$Profile['msnname']}' class='forminput'></td>
<td class='row2' width='40%'>{$ibforums->lang['msn']}</td>
<td class='row2'><input type='text' size='40' maxlength='30' name='MSNName' value='{$Profile['msnname']}' class='forminput'></td>
</tr>
<tr>
<td id='row1' width='40%'>{$ibforums->lang['location']}<br>(<a href='javascript:CheckLength("location");'>{$ibforums->lang['check_length']}</a>)</td>
<td id='row1'><input type='text' size='40' name='Location' value='{$Profile['location']}' class='forminput'></td>
<td class='row1' width='40%'>{$ibforums->lang['location']}<br>(<a href='javascript:CheckLength("location");'>{$ibforums->lang['check_length']}</a>)</td>
<td class='row1'><input type='text' size='40' name='Location' value='{$Profile['location']}' class='forminput'></td>
</tr>
<tr>
<td id='row2' width='40%' valign='top'>{$ibforums->lang['interests']}<br>(<a href='javascript:CheckLength("interest");'>{$ibforums->lang['check_length']}</a>)</td>
<td id='row2'><textarea cols='60' rows='10' wrap='soft' name='Interests' class='forminput'>{$Profile['interests']}</textarea></td>
<td class='row2' width='40%' valign='top'>{$ibforums->lang['interests']}<br>(<a href='javascript:CheckLength("interest");'>{$ibforums->lang['check_length']}</a>)</td>
<td class='row2'><textarea cols='60' rows='10' wrap='soft' name='Interests' class='forminput'>{$Profile['interests']}</textarea></td>
</tr>
<!--{OPTIONAL.FIELDS}-->
<tr>
<td id='row2' align='center' colspan='2'>
<td class='row2' align='center' colspan='2'>
<input type="submit" value="{$ibforums->lang['submit_profile']}" class='forminput'>
</td></tr>
</form>
EOF;
}
function required_title() {
global $ibforums;
return <<<EOF
<td valign='left' colspan='2' class='category'>{$ibforums->lang['cf_required']}</td>
</tr>
<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;
}
function Menu_bar($base_url) {
global $ibforums;
return <<<EOF
<br>
<table width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center' border="0" cellspacing="1" cellpadding="0">
<table width='<{tbl_width}>' bgcolor='<{tbl_border}>' align='center' border="0" cellspacing="1" cellpadding="0">
<tr>
<td id='maintitleback' background='{$ibforums->vars['img_url']}/tile_back.gif'>
<td class='maintitle' >
&nbsp;
</td>
</tr>
<tr>
<td>
<table id='mainbg' width="100%" border="0" cellspacing="1" cellpadding="4">
<table class='mainbg' width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>&nbsp;</td>
<td width="100%" nowrap id='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif'>&nbsp;</td>
<td nowrap class='titlemedium'>&nbsp;</td>
<td width="100%" nowrap class='titlemedium'>&nbsp;</td>
</tr>
<tr>
<td id='alt1' valign="top">
<td class='row1' valign="top">
<table cellpadding='0' cellspacing='0' width='100%' align='left' border='0'>
<tr>
<td>
<td style='line-height:150%' nowrap>
<!-- Messenger -->
<b>{$ibforums->lang['m_messenger']}</b><br>
<!-- Messenger -->
<b>{$ibforums->lang['m_messenger']}</b><br>
<img src="{$ibforums->vars['img_url']}/dark_line.gif" alt="" width="155" height="7"><br>
&#149; <a href='{$base_url}&act=Msg&CODE=04'>{$ibforums->lang['mess_new']}</a><br>
&#149; <a href='{$base_url}&act=Msg&CODE=01'><b>{$ibforums->lang['mess_inbox']}</b></a><br>
&#149; <a href='{$base_url}&act=Msg&CODE=04'><b>{$ibforums->lang['mess_new']}</b></a><br>
&#149; <a href='{$base_url}&act=Msg&CODE=02'>{$ibforums->lang['mess_contact']}</a><br>
&#149; <a href='{$base_url}&act=Msg&CODE=07'>{$ibforums->lang['mess_folders']}</a><br>
&#149; <a href='{$base_url}&act=Msg&CODE=01'>{$ibforums->lang['mess_inbox']}</a><br>
&#149; <a href='{$base_url}&act=Msg&CODE=14'>{$ibforums->lang['mess_archive']}</a><br>
&#149; <a href='{$base_url}&act=Msg&CODE=20'>{$ibforums->lang['mess_saved']}</a><br>
&#149; <a href='{$base_url}&act=Msg&CODE=30'>{$ibforums->lang['mess_tracker']}</a><br>
<br>
<!-- Profile -->
<!-- Topic Tracker -->
<b>{$ibforums->lang['m_tracker']}</b><br>
<img src="{$ibforums->vars['img_url']}/dark_line.gif" alt="" width="155" height="7"><br>
&#149; <a href='{$base_url}&act=UserCP&CODE=26'>{$ibforums->lang['m_view_subs']}</a><br>
&#149; <a href='{$base_url}&act=UserCP&CODE=50'>{$ibforums->lang['m_view_forum']}</a><br>
<br>
<!-- Profile -->
<b>{$ibforums->lang['m_personal']}</b><br>
<img src="{$ibforums->vars['img_url']}/dark_line.gif" alt="" width="155" height="7"><br>
&#149; <a href='{$base_url}&act=UserCP&CODE=01'>{$ibforums->lang['m_contact_info']}</a><br>
@@ -508,7 +588,7 @@ return <<<EOF
&#149; <a href='{$base_url}&act=UserCP&CODE=24'>{$ibforums->lang['m_avatar_info']}</a><br>
<!-- &#149; <a href='#'>{$ibforums->lang['m_edit_links']}</a><br> -->
<!-- Options -->
<!-- Options -->
<br>
<b>{$ibforums->lang['m_options']}</b><br>
<img src="{$ibforums->vars['img_url']}/dark_line.gif" alt="" width="155" height="7"><br>
@@ -518,17 +598,13 @@ return <<<EOF
&#149; <a href='{$base_url}&act=UserCP&CODE=08'>{$ibforums->lang['m_email_change']}</a><br>
&#149; <a href='{$base_url}&act=UserCP&CODE=28'>{$ibforums->lang['m_passy_opt']}</a><br>
<!-- Topic Tracker -->
<br>
<b>{$ibforums->lang['m_tracker']}</b><br>
<img src="{$ibforums->vars['img_url']}/dark_line.gif" alt="" width="155" height="7"><br>
&#149; <a href='{$base_url}&act=UserCP&CODE=26'>{$ibforums->lang['m_view_subs']}</a>
</td>
</tr>
</table>
</td>
<td valign='top' id='alt1'>
<table cellpadding='4' cellspacing='0' width='100%' align='left' border='0'>
<td valign='top' class='row1'>
<table cellpadding='4' cellspacing='3' width='100%' align='left' border='0'>
<tr>
<!-- Start main CP area -->
@@ -553,10 +629,10 @@ EOF;
function splash($member) {
global $ibforums;
return <<<EOF
<td id='subtitle' width="100%">{$ibforums->lang['stats_header']}</td>
<td class='titlemedium' width="100%">{$ibforums->lang['stats_header']}</td>
</tr>
<tr>
<td id='alt1' valign="top" width="100%">
<td class='row1' valign="top" width="100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="40%">{$ibforums->lang['email_address']}</td>
@@ -578,10 +654,10 @@ return <<<EOF
</td>
</tr>
<tr>
<td id='subtitle' width="100%">{$ibforums->lang['messenger_summary']}</td>
<td class='titlemedium' width="100%">{$ibforums->lang['messenger_summary']}</td>
</tr>
<tr>
<td id='alt1' valign="top" width="100%">
<td class='row1' valign="top" width="100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="40%">{$ibforums->lang['total_messages']}</td>
@@ -595,10 +671,10 @@ return <<<EOF
</td>
</tr>
<tr>
<td id='subtitle' width="100%">{$ibforums->lang['note_pad']}</td>
<td class='titlemedium' width="100%">{$ibforums->lang['note_pad']}</td>
</tr>
<tr>
<td id='alt1' valign="top" width="100%">
<td class='row1' valign="top" width="100%">
<form name='notepad' action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" method="post">
<input type='hidden' name='act' value='UserCP'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
@@ -637,17 +713,17 @@ return <<<EOF
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<td colspan='2' id='category'><b>{$ibforums->lang['settings_time']}</b></td>
<td colspan='2' class='category'><b>{$ibforums->lang['settings_time']}</b></td>
</tr>
<tr>
<td id='row1' colspan='2'><b>{$ibforums->lang['settings_time_txt']}</b><br><span id='highlight'>$time</span></td>
<td class='row1' colspan='2'><b>{$ibforums->lang['settings_time_txt']}</b><br><span class='highlight'>$time</span></td>
</tr>
<tr>
<td id='row1' colspan='2' align='left'>$time_select</td>
<td class='row1' colspan='2' align='left'>$time_select</td>
</tr>
<tr>
<td id='row1' nowrap>{$ibforums->lang['dst_box']}</td>
<td id='row1' width='70%' align='left'><input type='checkbox' class='forminput' name='DST' value='1' $dst_check></td>
<td class='row1' nowrap>{$ibforums->lang['dst_box']}</td>
<td class='row1' width='70%' align='left'><input type='checkbox' class='forminput' name='DST' value='1' $dst_check></td>
</tr>
EOF;
}
@@ -678,11 +754,11 @@ return <<<EOF
<input type='hidden' name='CODE' value='07'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<td colspan='2' id='category'><b>{$ibforums->lang['settings_title']}</b></td>
<td colspan='2' class='category'><b>{$ibforums->lang['settings_title']}</b></td>
</tr>
<tr>
<td id='row1' nowrap><b>{$ibforums->lang['settings_lang_txt']}</b></td>
<td id='row1' align='left'>$lang_select</td>
<td class='row1' nowrap><b>{$ibforums->lang['settings_lang_txt']}</b></td>
<td class='row1' align='left'>$lang_select</td>
</tr>
EOF;
}
@@ -691,11 +767,11 @@ function settings_skin($skin) {
global $ibforums;
return <<<EOF
</tr>
<td colspan='2' id='category'><b>{$ibforums->lang['settings_skin']}</b></td>
<td colspan='2' class='category'><b>{$ibforums->lang['settings_skin']}</b></td>
</tr>
<tr>
<td id='row1' nowrap><b>{$ibforums->lang['settings_skin_txt']}</b></td>
<td id='row1' align='left'>$skin &nbsp;&nbsp; <input type='button' value='{$ibforums->lang['cp_skin_preview']}' class='forminput' onClick='do_preview()'></td>
<td class='row1' nowrap><b>{$ibforums->lang['settings_skin_txt']}</b></td>
<td class='row1' align='left'>$skin &nbsp;&nbsp; <input type='button' value='{$ibforums->lang['cp_skin_preview']}' class='forminput' onClick='do_preview()'></td>
</tr>
EOF;
}
@@ -704,7 +780,7 @@ function skin_lang_end() {
global $ibforums;
return <<<EOF
<tr>
<td id='row2' colspan='2' align='center'><input type='submit' name='submit' value='{$ibforums->lang['settings_submit']}' class='forminput'></form></td>
<td class='row2' colspan='2' align='center'><input type='submit' name='submit' value='{$ibforums->lang['settings_submit']}' class='forminput'></form></td>
</tr>
EOF;
}
@@ -713,30 +789,38 @@ function settings_end($data) {
global $ibforums;
return <<<EOF
<tr>
<td colspan='2' id='category'><b>{$ibforums->lang['settings_display']}</b></td>
<td colspan='2' class='category'><b>{$ibforums->lang['settings_display']}</b></td>
</tr>
<tr>
<td id='row1' nowrap><b>{$ibforums->lang['settings_viewsig']}</b></td>
<td id='row1' width='70%' align='left'>{$data[SIG]}</td>
<td class='row1' nowrap><b>{$ibforums->lang['settings_viewsig']}</b></td>
<td class='row1' width='70%' align='left'>{$data[SIG]}</td>
</tr>
<tr>
<td id='row1' nowrap><b>{$ibforums->lang['settings_viewimg']}</b></td>
<td id='row1' width='70%' align='left'>{$data[IMG]}</td>
<td class='row1' nowrap><b>{$ibforums->lang['settings_viewimg']}</b></td>
<td class='row1' width='70%' align='left'>{$data[IMG]}</td>
</tr>
<tr>
<td id='row1' nowrap><b>{$ibforums->lang['settings_viewava']}</b></td>
<td id='row1' width='70%' align='left'>{$data[AVA]}</td>
<td class='row1' nowrap><b>{$ibforums->lang['settings_viewava']}</b></td>
<td class='row1' width='70%' align='left'>{$data[AVA]}</td>
</tr>
<tr>
<td id='row1' nowrap><b>{$ibforums->lang['settings_dopopup']}</b></td>
<td id='row1' width='70%' align='left'>{$data[POP]}</td>
<td class='row1' nowrap><b>{$ibforums->lang['settings_dopopup']}</b></td>
<td class='row1' width='70%' align='left'>{$data[POP]}</td>
</tr>
<tr>
<td id='row1' nowrap>{$ibforums->lang['hide_session_txt']}</td>
<td id='row1' width='70%' align='left'>{$data[SESS]}</td>
<td class='row1' nowrap>{$ibforums->lang['hide_session_txt']}</td>
<td class='row1' width='70%' align='left'>{$data[SESS]}</td>
</tr>
<tr>
<td id='row2' colspan='2' align='center'><input type='submit' name='submit' value='{$ibforums->lang['settings_submit']}' class='forminput'></form></td>
<td class='row1' nowrap><b>{$ibforums->lang['pp_number_posts']}</b></td>
<td class='row1' width='70%' align='left'><select name='postpage' class='forminput'>{$data['PPS']}</select></td>
</tr>
<tr>
<td class='row1' nowrap><b>{$ibforums->lang['pp_number_topics']}</b></td>
<td class='row1' width='70%' align='left'><select name='topicpage' class='forminput'>{$data['TPS']}</select></td>
</tr>
<tr>
<td class='row2' colspan='2' align='center'><input type='submit' name='submit' value='{$ibforums->lang['settings_submit']}' class='forminput'></form></td>
</tr>
EOF;
}
@@ -748,35 +832,96 @@ return <<<EOF
<input type='hidden' name='act' value='UserCP'>
<input type='hidden' name='CODE' value='03'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<td valign='left' colspan='2' id='category'><b>{$ibforums->lang['privacy_settings']}</b></td>
<td valign='left' colspan='2' class='category'><b>{$ibforums->lang['privacy_settings']}</b></td>
</tr>
<tr>
<td id='row1' align='right' valign='top'><input type='checkbox' name='hide_email' value='1' {$Profile['hide_email']}></td>
<td id='row1' align='left' width='100%'>{$ibforums->lang['hide_email']}</td>
<td class='row1' align='right' valign='top'><input type='checkbox' name='hide_email' value='1' {$Profile['hide_email']}></td>
<td class='row1' align='left' width='100%'>{$ibforums->lang['hide_email']}</td>
</tr>
<tr>
<td id='row1' align='right' valign='top'><input type='checkbox' name='admin_send' value='1' {$Profile['allow_admin_mails']}></td>
<td id='row1' align='left' width='100%'>{$ibforums->lang['admin_send']}</td>
<td class='row1' align='right' valign='top'><input type='checkbox' name='admin_send' value='1' {$Profile['allow_admin_mails']}></td>
<td class='row1' align='left' width='100%'>{$ibforums->lang['admin_send']}</td>
</tr>
<tr>
<td valign='left' colspan='2' id='category'><b>{$ibforums->lang['board_prefs']}</b></td>
<td valign='left' colspan='2' class='category'><b>{$ibforums->lang['board_prefs']}</b></td>
</tr>
<tr>
<td id='row1' align='right' valign='top'><input type='checkbox' name='send_full_msg' value='1' {$Profile['email_full']}></td>
<td id='row1' align='left' width='100%'>{$ibforums->lang['send_full_msg']}</td>
<td class='row1' align='right' valign='top'><input type='checkbox' name='send_full_msg' value='1' {$Profile['email_full']}></td>
<td class='row1' align='left' width='100%'>{$ibforums->lang['send_full_msg']}</td>
</tr>
<!--<tr>
<td id='row1' align='right' valign='top'><input type='checkbox' name='pm_reminder' value='1' {$Profile['email_pm']}></td>
<td id='row1' align='left' width='100%'>{$ibforums->lang['pm_reminder']}</td>
</tr>-->
<tr>
<td id='row2' align='center' colspan='2'>
<td class='row1' align='right' valign='top'><input type='checkbox' name='pm_reminder' value='1' {$Profile['email_pm']}></td>
<td class='row1' align='left' width='100%'>{$ibforums->lang['pm_reminder']}</td>
</tr>
<tr>
<td class='row1' align='right' valign='top'><input type='checkbox' name='auto_track' value='1' {$Profile['auto_track']}></td>
<td class='row1' align='left' width='100%'>{$ibforums->lang['auto_track']}</td>
</tr>
<tr>
<td class='row2' align='center' colspan='2'>
<input type="submit" value="{$ibforums->lang['submit_email']}" class='forminput'>
</td></tr>
</form>
EOF;
}
function forum_subs_header() {
global $ibforums;
return <<<EOF
<td align='left' colspan='2' class='pagetitle'>{$ibforums->lang['forum_subs_header']}</td>
</tr>
<tr>
<td valign='top' colspan='2' >
<table cellpadding='4' cellspacing='1' align='center' width='100%' bgcolor='<{tbl_border}>'>
<tr>
<td class='titlemedium' align='left' width='5%'>&nbsp;</td>
<td class='titlemedium' align='left' width='50%'>{$ibforums->lang['ft_forum']}</td>
<td class='titlemedium' align='center' width='5%'>{$ibforums->lang['ft_topics']}</td>
<td class='titlemedium' align='center' width='5%'>{$ibforums->lang['ft_posts']}</td>
<td class='titlemedium' align='center' width='35%'>{$ibforums->lang['ft_last_post']}</td>
</tr>
EOF;
}
function forum_subs_row($data) {
global $ibforums;
return <<<EOF
<tr>
<td class='row1' align='center' width='5%'>{$data['folder_icon']}</td>
<td class='row1' align='left'>
<span class='linkthru'><b><a href='{$ibforums->base_url}&act=SF&f={$data['id']}'>{$data['name']}</a></b>
<br><span class='desc'>{$data['description']}</span>
<br><br><b>[ <a href='{$ibforums->base_url}&act=UserCP&CODE=51&f={$data['id']}'>{$ibforums->lang['ft_unsub']}</a> ]</b>
</td>
<td class='row1' align='center'>{$data['topics']}</td>
<td class='row1' align='center'>{$data['posts']}</td>
<td class='row1' align='left'>{$data['last_post']}<br>{$ibforums->lang['in']} {$data['last_topic']}<br>{$ibforums->lang['by']} {$data['last_poster']}</td>
</tr>
EOF;
}
function forum_subs_none() {
global $ibforums;
return <<<EOF
<tr>
<td class='row1' align='center' colspan='5'>{$ibforums->lang['forum_subs_none']}</td>
</tr>
EOF;
}
function forum_subs_end() {
global $ibforums;
return <<<EOF
<tr>
<td align='right' class='titlemedium' valign='middle' colspan='5'><a href='{$ibforums->base_url}&act=UserCP&CODE=51&f=all'>{$ibforums->lang['ft_unsub_all']}</a></td>
</tr>
</table>
</td>
</tr>
EOF;
}
function subs_header() {
global $ibforums;
return <<<EOF
@@ -811,7 +956,7 @@ return <<<EOF
//-->
</script>
<td align='left' nowrap id='pagetitle'>{$ibforums->lang['subs_header']}</td>
<td align='left' nowrap class='pagetitle'>{$ibforums->lang['subs_header']}</td>
<td>
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}" name='mutliact' method="post">
<input type='hidden' name='act' value='UserCP'>
@@ -821,14 +966,14 @@ return <<<EOF
</tr>
<tr>
<td valign='top' colspan='2' >
<table cellpadding='4' cellspacing='1' align='center' width='100%' bgcolor='{$ibforums->skin['tbl_border']}'>
<table cellpadding='4' cellspacing='1' align='center' width='100%' bgcolor='<{tbl_border}>'>
<tr>
<td id='titlemedium' align='left' width='5%'>&nbsp;</td>
<td id='titlemedium' align='left' width='*'>{$ibforums->lang['subs_topic']}</td>
<td id='titlemedium' align='center' width='5%'>{$ibforums->lang['subs_replies']}</td>
<td id='titlemedium' align='center' width='5%'>{$ibforums->lang['subs_view']}</td>
<td id='titlemedium' align='left' width='20%'>{$ibforums->lang['subs_last_post']}</td>
<td align='center' width='5%' id='titlemedium'><input name="allbox" type="checkbox" value="Check All" onClick="CheckAll();"></td>
<td class='titlemedium' align='left' width='5%'>&nbsp;</td>
<td class='titlemedium' align='left' width='*'>{$ibforums->lang['subs_topic']}</td>
<td class='titlemedium' align='center' width='5%'>{$ibforums->lang['subs_replies']}</td>
<td class='titlemedium' align='center' width='5%'>{$ibforums->lang['subs_view']}</td>
<td class='titlemedium' align='left' width='20%'>{$ibforums->lang['subs_last_post']}</td>
<td align='center' width='5%' class='titlemedium'><input name="allbox" type="checkbox" value="Check All" onClick="CheckAll();"></td>
</tr>
EOF;
}
@@ -837,24 +982,58 @@ function subs_row($data) {
global $ibforums;
return <<<EOF
<tr>
<td id='row1' align='center' width='5%'>{$data['folder_icon']}</td>
<td id='row1' align='left'><span id='linkthru'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$data['forum_id']}&t={$data['tid']}'>{$data['title']}</a> ( <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$data['forum_id']}&t={$data['tid']}' target='_blank'>{$ibforums->lang['new_window']}</a> )</span><br><span id='desc'>{$data['description']}{$ibforums->lang['subs_start']} {$data['start_date']}</span></td>
<td id='row1' align='center'>{$data['posts']}</td>
<td id='row1' align='center'>{$data['views']}</td>
<td id='row1' align='left'>{$data['last_post_date']}<br>{$ibforums->lang['subs_by']} {$data['last_poster']}</td>
<td id='row2' align='center'><input type='checkbox' name='id-{$data['trid']}' value='yes' class='forminput'></td>
<td class='row1' align='center' width='5%'>{$data['folder_icon']}</td>
<td class='row1' align='left'><span class='linkthru'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$data['forum_id']}&t={$data['tid']}'>{$data['title']}</a> ( <a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$data['forum_id']}&t={$data['tid']}' target='_blank'>{$ibforums->lang['new_window']}</a> )</span><br><span class='desc'>{$data['description']}{$ibforums->lang['subs_start']} {$data['start_date']}</span></td>
<td class='row1' align='center'>{$data['posts']}</td>
<td class='row1' align='center'>{$data['views']}</td>
<td class='row1' align='left'>{$data['last_post_date']}<br>{$ibforums->lang['subs_by']} {$data['last_poster']}</td>
<td class='row2' align='center'><input type='checkbox' name='id-{$data['trid']}' value='yes' class='forminput'></td>
</tr>
EOF;
}
function subs_end() {
function subs_none() {
global $ibforums;
return <<<EOF
<tr>
<td class='row1' align='center' colspan='6'>{$ibforums->lang['subs_none']}</td>
</tr>
EOF;
}
function subs_forum_row($fid, $fname) {
global $ibforums;
return <<<EOF
<tr>
<td colspan='6' class='titlemedium' align='left'><a href='{$ibforums->base_url}&act=SF&f=$fid'>$fname</a></td>
</tr>
EOF;
}
function subs_end($text="", $days="") {
global $ibforums;
return <<<EOF
<tr>
<td align='center' id='titlemedium' valign='middle' colspan='6'><input type='submit' class='forminput' value='{$ibforums->lang['subs_delete']}'>&nbsp;&nbsp;{$ibforums->lang['with_selected']}</td>
<td align='center' class='titlemedium' valign='middle' colspan='6'><input type='submit' class='forminput' value='{$ibforums->lang['subs_delete']}'>&nbsp;&nbsp;{$ibforums->lang['with_selected']}</td>
</tr>
</form>
</table></td></tr>
</table>
<br>
<table width='<{tbl_width}>' cellpadding='2' cellspacing='0' align='center'>
<tr>
<td align='right' nowrap><i>$text</i></td>
</tr>
<tr>
<td align='right' valign='middle' width='100%'>
<form action='{$ibforums->base_url}&act=UserCP&CODE=26' method='post'>
{$ibforums->lang['show_topics_from']} <select class='forminput' name='datecut'>$days</select>
<input type='submit' class='forminput' value='{$ibforums->lang['jmp_go']}'>
</form>
</td>
</tr>
</table>
</td></tr>
EOF;
}
@@ -888,7 +1067,7 @@ return <<<EOF
-->
</script>
<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='left'>
<form name='jumpForm'>
+23 -4
View File
@@ -24,6 +24,11 @@
USER CONFIGURABLE ELEMENTS
------------------------------------------------*/
// Are we running this on a lycos / tripod server?
// If so, change the following to a 1.
$is_on_tripod = 0;
// Root path
$root_path = "./";
@@ -47,9 +52,16 @@ $use_gzip = 1;
error_reporting (E_ERROR | E_WARNING | E_PARSE);
set_magic_quotes_runtime(0);
if (function_exists('ini_get'))
if ( $is_on_tripod != 1 )
{
$safe_switch = ini_get("safe_mode") ? 1 : 0;
if (function_exists('ini_get'))
{
$safe_switch = @ini_get("safe_mode") ? 1 : 0;
}
else
{
$safe_switch = 1;
}
}
else
{
@@ -413,11 +425,11 @@ else
$ADMIN->page_title = "Log in successful";
$ADMIN->page_detail = "You may now proceed to the administrative control panel";
$ADMIN->page_detail = "Taking you to the administrative control panel";
$ADMIN->html .= $SKIN->start_table("Proceed");
$ADMIN->html .= "<tr><td id='tdrow1'><a href='".$INFO['board_url']."/admin.".$INFO['php_ext']."?adsess=".$IN['AD_SESS']."'>Take me to administrative control panel</a></td></tr>";
$ADMIN->html .= "<tr><td id='tdrow1'><meta http-equiv='refresh' content='2; url=".$INFO['board_url']."/admin.".$INFO['php_ext']."?adsess=".$IN['AD_SESS']."'><a href='".$INFO['board_url']."/admin.".$INFO['php_ext']."?adsess=".$IN['AD_SESS']."'>( Click here if you do not wish to wait )</a></td></tr>";
$ADMIN->html .= $SKIN->end_table();
@@ -568,9 +580,16 @@ function do_admin_stuff() {
'image' => 'imagemacros',
'sets' => 'stylesets',
'templ' => 'templates',
'rtempl' => 'remote_template',
'lang' => 'languages',
'import' => 'skin_import',
'modlog' => 'modlogs',
'field' => 'profilefields',
'stats' => "statistics",
'quickhelp' => "quickhelp",
'adminlog' => "adminlogs",
'ips' => 'ips',
'mysql' => 'mysql',
);
+1 -1
View File
@@ -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
BIN
View File
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
View File
@@ -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'>&nbsp;<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'>&nbsp;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'>&nbsp;<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'>&nbsp;<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)&nbsp;<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

+29 -13
View File
@@ -2,10 +2,10 @@
/*
+--------------------------------------------------------------------------
| IBFORUMS v1
| Invision Board v1.1
| ========================================
| by Matthew Mecham and David Baxter
| (c) 2001,2002 IBForums
| by Matthew Mecham
| (c) 2001,2002 Invision Power Services
| http://www.ibforums.com
| ========================================
| Web: http://www.ibforums.com
@@ -67,9 +67,10 @@ class info {
var $skin = "";
var $lang = "";
var $server_load = 0;
var $version = "v1.0.1";
var $version = "v1.1 BETA 1";
var $lastclick = "";
var $location = "";
var $debug_html = "";
function info() {
global $sess, $std, $DB, $root_path, $INFO;
@@ -124,6 +125,8 @@ $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();
@@ -146,6 +149,11 @@ $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 = "";
@@ -156,17 +164,22 @@ $ibforums->base_url = $ibforums->vars['board_url'].'/index.'.$ibforums->vars['
$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'];
$ibforums->vars['img_url'] = 'style_images/' . $ibforums->skin['img_dir'];
//--------------------------------
// 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 ) ) )
if ($ibforums->vars['default_language'] == "")
{
$ibforums->lang_id = 'en';
$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";
@@ -177,9 +190,7 @@ unset($lang);
//--------------------------------
require $root_path."Skin/".$ibforums->skin_id."/skin_global.php";
$skin_universal = new skin_global();
$skin_universal = $std->load_template('skin_global');
//--------------------------------
@@ -245,6 +256,9 @@ $choice = array(
"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",
@@ -253,7 +267,9 @@ $choice = array(
"Attach" => "misc/attach",
'ib3' => 'misc/ib3',
'legends' => 'misc/legends',
'ModCP' => 'mod_cp',
'modcp' => 'mod_cp',
'calendar' => "calendar",
'buddy' => "browsebuddy",
);
+1
View File
@@ -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
-17
View File
@@ -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",
);
?>
+89 -15
View File
@@ -1,5 +1,33 @@
<?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#>
@@ -9,6 +37,28 @@ From,
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#>,
@@ -30,7 +80,7 @@ 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
Activation Instructions
------------------------------------------------
Thank you for registering.
@@ -46,7 +96,7 @@ To activate your account, simply click on the following link:
browser).
------------------------------------------------
HELP, I GOT AN ERROR!
Not working?
------------------------------------------------
If you could not validate your registration by clicking on the link, please
@@ -89,17 +139,18 @@ $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!
You have received this email because a user account password recovery
was instigated by you on <#BOARD_NAME#>.
------------------------------------------------
ACTIVATION INSTRUCTIONS BELOW
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
@@ -126,7 +177,7 @@ Once the activation is complete, you will be able to log in using your new passw
change this password at any time from your personal control panel.
------------------------------------------------
YOUR NEW PASSWORD
Your New Password
------------------------------------------------
Your new password is: <#PASSWORD#>
@@ -135,7 +186,7 @@ Keep this password safe. Remember, you will need to re-activate your account
before you can use this password.
------------------------------------------------
HELP, I GOT AN ERROR!
Is this not working?
------------------------------------------------
If you cannot re-activate your account, it's possible that the account has been removed or you
@@ -143,6 +194,8 @@ are in the process of another activation, such as registering or changing your r
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;
@@ -223,7 +276,7 @@ The topic can be found here:
There may be more replies to this topic, but only 1 email is sent per day for each subscribed topic. This is
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:
@@ -234,6 +287,27 @@ You can unsubscribe at any time by logging into your control panel and clicking
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#>,
@@ -242,7 +316,7 @@ $EMAIL['subs_no_post'] = <<<EOF
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
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:
+11 -3
View File
@@ -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>",
+43
View File
@@ -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!",
);
?>
+38
View File
@@ -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:",
);
?>
+20
View File
@@ -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",
+33 -2
View File
@@ -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",
+11 -1
View File
@@ -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)",
+45 -21
View File
@@ -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",
+15
View File
@@ -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",
);
?>
+5
View File
@@ -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",
+5
View File
@@ -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",
+42
View File
@@ -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: ",
+181
View File
@@ -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",
);
?>
+57 -6
View File
@@ -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:",
+1 -1
View File
@@ -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...",
+53 -2
View File
@@ -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.",
+16 -7
View File
@@ -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",
);
?>
+52
View File
@@ -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",
+19 -2
View File
@@ -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",
+6
View File
@@ -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",
+22 -6
View File
@@ -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
View File
@@ -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.",
);
-3
View File
@@ -1,3 +0,0 @@
<?php
phpinfo();
?>
+55
View File
@@ -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();
?>
+451 -192
View File
@@ -3,7 +3,7 @@
/*
+--------------------------------------------------------------------------
| IBFORUMS SAFE MODE INSTALL SCRIPT v0.1
| IBFORUMS SAFE MODE INSTALL SCRIPT v1.1
| ========================================
| by Matthew Mecham and David Baxter
| (c) 2001, 2002 IBForums
@@ -16,6 +16,7 @@
|
| > Script written by Matthew Mecham
| > Date started: 30th March 2002
| > Update started: 17th October 2002
|
+--------------------------------------------------------------------------
*/
@@ -74,6 +75,10 @@ switch($VARS['a'])
do_install();
break;
case 'templates':
do_templates();
break;
case '3':
do_finish();
break;
@@ -89,10 +94,10 @@ function do_finish()
// Attempt to lock the install..
if ($FH = fopen( $root.'install.lock', 'w' ) )
if ($FH = @fopen( $root.'install.lock', 'w' ) )
{
fwrite( $FH, 'bleh', 4 );
fclose($FH);
@fwrite( $FH, 'bleh', 4 );
@fclose($FH);
@chmod( $root.'install.lock', 0666 );
@@ -166,6 +171,147 @@ function do_finish()
}
//+---------------------------------------
// Install the template files, woohoo and stuff
//+---------------------------------------
function do_templates()
{
global $std, $template, $root, $VARS, $HTTP_POST_VARS;
//-----------------------------------
// IMPORT $INFO!
//-----------------------------------
if ($root == './')
{
$root = str_replace( '\\', '/', getcwd() ) . '/';
}
$require = $root."conf_global.php";
if ( ! file_exists($require) )
{
install_error("Could not locate '$require'. You may need to enter a value for the root path in this installer script, to do this, simply open up this script in a text editor and enter a value in \$root - remember to add a trailing slash. NT users will need to use double backslashes");
}
include($require);
//-----------------------------------
// Attempt a DB connection..
//-----------------------------------
if ( ! $connect_id = mysql_connect( $INFO['sql_host'],$INFO['sql_user'],$INFO['sql_pass'] ) )
{
install_error("Could not create a mySQL connection, please check that the file 'conf_global.php' exists in the same directory as this file and that the installer has updated the file properly.");
}
if ( ! mysql_select_db($INFO['sql_database'], $connect_id) )
{
install_error("mySQL could not locate a database called '{$VARS['sql_database']}'. Please contact our technical support if a re-install does not solve this problem");
}
//-----------------------------------
// Lets open the style file
//-----------------------------------
$style_file = $root.'install_templates.txt';
if ( ! file_exists($style_file) )
{
install_error("Could not locate '$style_file'. <br><br>Check to ensure that this file exists in the same location as this script.<br><br>You may need to enter a value for the root path in this installer script, to do this, simply open up this script in a text editor and enter a value in \$root - remember to add a trailing slash. NT users will need to use double backslashes");
}
if ( $fh = fopen( $style_file, 'r' ) )
{
$data = fread($fh, filesize($style_file) );
fclose($fh);
}
else
{
install_error("Could open '$style_file'");
}
if (strlen($data) < 100)
{
install_error("Err 1:'$style_file' is incomplete, please re-upload a fresh copy over the existing copy on the server'");
}
// Chop up the data file.
$template_rows = explode( "||~&~||", $data );
$crows = count($template_rows);
if ( $crows < 100 )
{
install_error("Err2: (Found $crows rows) '$style_file' is incomplete, please re-upload a fresh copy over the existing copy on the server'");
}
//-----------------------------------
// Lets populate the database!
//-----------------------------------
foreach( $template_rows as $q )
{
$q = trim($q);
if (strlen($q) < 5)
{
continue;
}
$query = "INSERT INTO ".$INFO['sql_tbl_prefix']."skin_templates (set_id, group_name, section_content, func_name, func_data, updated, can_remove) VALUES $q";
if ( ! mysql_query($query, $connect_id) )
{
install_error("mySQL Error: ".mysql_error());
}
}
// ARE WE DONE? REALLY? COOL!!
$template->print_top('Success!');
$template->contents .= "<tr>
<td id='subtitle'>&#149;&nbsp;Success!</td>
<tr>
<td>
<table cellpadding='8' cellspacing='0' width='100%' align='center' border='0' id='tablewrap'>
<tr>
<td>
<table width='100%' cellspacing='1' cellpadding='0' align='center' border='0' id='table1'>
<tr>
<td>
<table width='100%' cellspacing='2' cellpadding='3' align='center' border='0'>
<tr>
<td>
<b>Template files installed!</b>
<br><br>
The installation process is now complete.
<br>
Click the link below to clean up the installer and related files
<br><br>
<center><b><a href='sm_install.php?a=3'>CLICK HERE TO FINISH</a></center>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>";
$template->output();
}
//+---------------------------------------
@@ -335,6 +481,8 @@ function do_install()
$q = preg_replace("/ibf_(\S+?)([\s\.,]|$)/", $VARS['sql_tbl_prefix']."\\1\\2", $q);
}
$q = str_replace( "<%time%>", time(), $q );
if ( preg_match("/CREATE TABLE (\S+) \(/", $q, $match) )
{
if ($match[1])
@@ -386,9 +534,11 @@ function do_install()
<td>
<b>Your board has now been installed!</b>
<br><br>
The installation process is almost complete..
The installation process is almost complete.
<br>
The next and final step will install the template files into your database
<br><br>
<center><b><a href='sm_install.php?a=3'>CLICK HERE TO COMPLETE THE INSTALL</a></center>
<center><b><a href='sm_install.php?a=templates'>CLICK HERE TO CONTINUE</a></center>
</td>
</tr>
</table>
@@ -620,8 +770,15 @@ function do_intro()
$file = $root."conf_global.php";
$style_file = $root."install_templates.txt";
$warnings = array();
if ( ! file_exists($style_file) )
{
$warnings[] = "Cannot locate the file 'install_templates.txt'. This should be uploaded into the same directory as this script!";
}
if ( ! file_exists($file) )
{
$warnings[] = "Cannot locate the file 'conf_global.php'. This should be uploaded into the same directory as this script!";
@@ -909,6 +1066,17 @@ function get_sql()
$SQL = array();
$SQL[] = "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)
);";
$SQL[] = "CREATE TABLE ibf_admin_sessions (
ID varchar(32) NOT NULL default '',
IP_ADDRESS varchar(32) NOT NULL default '',
@@ -919,16 +1087,14 @@ $SQL[] = "CREATE TABLE ibf_admin_sessions (
LOG_IN_TIME int(10) NOT NULL default '0',
RUNNING_TIME int(10) NOT NULL default '0',
PRIMARY KEY (ID)
)";
);";
$SQL[] = "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)
)";
);";
$SQL[] = "CREATE TABLE ibf_badwords (
wid int(3) NOT NULL auto_increment,
@@ -936,21 +1102,37 @@ $SQL[] = "CREATE TABLE ibf_badwords (
swop varchar(250) default NULL,
m_exact tinyint(1) default '0',
PRIMARY KEY (wid)
)";
);";
$SQL[] = "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)
);";
$SQL[] = "CREATE TABLE ibf_categories (
id tinyint(3) NOT NULL default '0',
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)
)";
PRIMARY KEY (id),
KEY id (id)
);";
$SQL[] = "CREATE TABLE ibf_contacts (
id bigint(20) NOT NULL auto_increment,
@@ -960,18 +1142,15 @@ $SQL[] = "CREATE TABLE ibf_contacts (
allow_msg tinyint(1) default NULL,
contact_desc varchar(50) default NULL,
PRIMARY KEY (id)
)";
);";
$SQL[] = "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)
)";
);";
$SQL[] = "CREATE TABLE ibf_emoticons (
id smallint(3) NOT NULL auto_increment,
@@ -979,9 +1158,7 @@ $SQL[] = "CREATE TABLE ibf_emoticons (
image varchar(128) NOT NULL default '',
clickable smallint(2) NOT NULL default '1',
PRIMARY KEY (id)
)";
);";
$SQL[] = "CREATE TABLE ibf_faq (
id bigint(20) NOT NULL auto_increment,
@@ -989,16 +1166,23 @@ $SQL[] = "CREATE TABLE ibf_faq (
text text,
description text NOT NULL,
PRIMARY KEY (id)
)";
);";
$SQL[] = "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)
);";
$SQL[] = "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_id int(10) default NULL,
last_poster_name varchar(32) default NULL,
name varchar(128) NOT NULL default '',
description text,
@@ -1006,18 +1190,18 @@ $SQL[] = "CREATE TABLE ibf_forums (
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,
start_perms varchar(255) default NULL,
reply_perms varchar(255) default NULL,
read_perms varchar(255) 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,
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,
use_attach 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',
@@ -1025,11 +1209,11 @@ $SQL[] = "CREATE TABLE ibf_forums (
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 category (category),
KEY id (id)
);";
$SQL[] = "CREATE TABLE ibf_groups (
g_id int(3) unsigned NOT NULL auto_increment,
@@ -1064,69 +1248,40 @@ $SQL[] = "CREATE TABLE ibf_groups (
g_calendar_post tinyint(1) default '0',
prefix varchar(250) default NULL,
suffix varchar(250) default NULL,
g_max_messages int(5) default '50',
g_max_mass_pm int(5) default '0',
g_search_flood mediumint(6) default '20',
g_edit_cutoff int(10) default '0',
g_promotion varchar(10) default '-1&-1',
g_hide_from_list tinyint(1) default '0',
g_post_closed tinyint(1) default '0',
PRIMARY KEY (g_id)
)";
);";
$SQL[] = "CREATE TABLE ibf_languages (
lid bigint(20) NOT NULL auto_increment,
ldir varchar(64) NOT NULL default '',
lname varchar(250) NOT NULL default '',
lauthor varchar(250) default NULL,
lemail varchar(250) default NULL,
PRIMARY KEY (lid)
);";
$SQL[] = "CREATE TABLE ibf_macro (
macro_id smallint(3) NOT NULL auto_increment,
macro_value varchar(200) default NULL,
macro_replace text,
can_remove tinyint(1) default '0',
macro_set smallint(3) default NULL,
PRIMARY KEY (macro_id),
KEY macro_set (macro_set)
);";
$SQL[] = "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 NULL,
B_HOT_NN varchar(250) default NULL,
B_LOCKED varchar(250) default NULL,
B_MOVED varchar(250) default NULL,
B_NEW varchar(250) default NULL,
B_NORM varchar(250) default NULL,
B_PIN varchar(250) default NULL,
B_POLL varchar(250) default NULL,
B_POLL_NN varchar(250) default NULL,
C_LOCKED varchar(250) default NULL,
C_OFF varchar(250) default NULL,
C_OFF_CAT varchar(250) default NULL,
C_OFF_RES varchar(250) default NULL,
C_ON varchar(250) default NULL,
C_ON_CAT varchar(250) default NULL,
C_ON_RES varchar(250) default NULL,
F_ACTIVE varchar(250) default NULL,
F_NAV_SEP varchar(250) default NULL,
F_NAV varchar(250) default NULL,
F_STATS varchar(250) default NULL,
GO_LAST_ON varchar(250) default NULL,
GO_LAST_OFF varchar(250) default NULL,
M_ADDMEM varchar(250) default NULL,
M_DELETE varchar(250) default NULL,
M_READ varchar(250) default NULL,
M_REPLY varchar(250) default NULL,
M_UNREAD varchar(250) default NULL,
P_AOL varchar(250) default NULL,
P_DELETE varchar(250) default NULL,
P_EDIT varchar(250) default NULL,
P_EMAIL varchar(250) default NULL,
P_ICQ varchar(250) default NULL,
P_MSG varchar(250) default NULL,
P_PROFILE varchar(250) default NULL,
P_QUOTE varchar(250) default NULL,
P_WEBSITE varchar(250) default NULL,
CAT_IMG varchar(250) default NULL,
B_HOT_DOT varchar(250) default NULL,
B_NEW_DOT varchar(250) default NULL,
B_HOT_NN_DOT varchar(250) default NULL,
B_NORM_DOT varchar(250) default NULL,
B_POLL_DOT varchar(250) default NULL,
B_POLL_NN_DOT varchar(250) default NULL,
NEW_POST varchar(250) default NULL,
PRIMARY KEY (imid)
)";
$SQL[] = "CREATE TABLE ibf_macro_name (
set_id smallint(3) NOT NULL default '0',
set_name varchar(200) default NULL,
PRIMARY KEY (set_id)
);";
$SQL[] = "CREATE TABLE ibf_member_extra (
id bigint(20) NOT NULL default '0',
@@ -1135,9 +1290,7 @@ $SQL[] = "CREATE TABLE ibf_member_extra (
bio text,
ta_size char(3) default NULL,
PRIMARY KEY (id)
)";
);";
$SQL[] = "CREATE TABLE ibf_members (
id bigint(10) NOT NULL default '0',
@@ -1150,7 +1303,6 @@ $SQL[] = "CREATE TABLE ibf_members (
avatar varchar(128) default NULL,
avatar_size varchar(9) default NULL,
posts mediumint(7) default '0',
photo varchar(70) default NULL,
aim_name varchar(40) default NULL,
icq_number varchar(40) default NULL,
location varchar(128) default NULL,
@@ -1189,12 +1341,17 @@ $SQL[] = "CREATE TABLE ibf_members (
misc varchar(128) default NULL,
last_visit int(10) default '0',
last_activity int(10) default '0',
dst_in_use TINYINT (1) DEFAULT '0',
dst_in_use tinyint(1) default '0',
view_prefs varchar(64) default '-1&-1',
coppa_user tinyint(1) default '0',
mod_posts tinyint(1) default '0',
auto_track tinyint(1) default '0',
PRIMARY KEY (id),
KEY name (name),
KEY mgroup (mgroup)
)";
KEY mgroup (mgroup),
KEY bday_day (bday_day),
KEY bday_month (bday_month)
);";
$SQL[] = "CREATE TABLE ibf_messages (
msg_id bigint(20) NOT NULL auto_increment,
@@ -1208,11 +1365,13 @@ $SQL[] = "CREATE TABLE ibf_messages (
recipient_id varchar(32) default NULL,
attach_type tinyint(128) default NULL,
attach_file tinyint(128) default NULL,
cc_users text,
tracking tinyint(1) default '0',
read_date int(10) default NULL,
PRIMARY KEY (msg_id),
KEY member_id (member_id)
)";
KEY member_id (member_id),
KEY vid (vid)
);";
$SQL[] = "CREATE TABLE ibf_moderator_logs (
id bigint(20) NOT NULL auto_increment,
@@ -1228,8 +1387,7 @@ $SQL[] = "CREATE TABLE ibf_moderator_logs (
action varchar(128) default NULL,
query_string varchar(128) default NULL,
PRIMARY KEY (id)
)";
);";
$SQL[] = "CREATE TABLE ibf_moderators (
mid bigint(20) NOT NULL auto_increment,
@@ -1252,9 +1410,36 @@ $SQL[] = "CREATE TABLE ibf_moderators (
topic_q tinyint(1) default NULL,
allow_warn tinyint(1) default NULL,
edit_user tinyint(1) NOT NULL default '0',
PRIMARY KEY (mid)
)";
is_group tinyint(1) default '0',
group_id smallint(3) default NULL,
group_name varchar(200) default NULL,
split_merge tinyint(1) default '0',
PRIMARY KEY (mid),
KEY forum_id (forum_id),
KEY group_id (group_id),
KEY member_id (member_id)
);";
$SQL[] = "CREATE TABLE ibf_pfields_content (
member_id bigint(20) NOT NULL default '0',
updated int(10) default '0',
PRIMARY KEY (member_id)
);";
$SQL[] = "CREATE TABLE ibf_pfields_data (
fid smallint(5) NOT NULL auto_increment,
ftitle varchar(200) NOT NULL default '',
fdesc varchar(250) default '',
fcontent text,
ftype varchar(250) default 'text',
freq tinyint(1) default '0',
fhide tinyint(1) default '0',
fmaxinput smallint(6) default '250',
fedit tinyint(1) default '1',
forder smallint(6) default '1',
fshowreg tinyint(1) default '0',
PRIMARY KEY (fid)
);";
$SQL[] = "CREATE TABLE ibf_polls (
@@ -1265,12 +1450,14 @@ $SQL[] = "CREATE TABLE ibf_polls (
starter_id varchar(32) default NULL,
votes bigint(20) default NULL,
forum_id bigint(20) default NULL,
poll_question varchar(255) default NULL,
PRIMARY KEY (pid)
)";
);";
$SQL[] = "CREATE TABLE ibf_posts (
append_edit tinyint(1) default '0',
edit_time int(10) default NULL,
pid bigint(20) NOT NULL auto_increment,
author_id int(10) NOT NULL default '0',
author_name varchar(32) default NULL,
@@ -1281,21 +1468,28 @@ $SQL[] = "CREATE TABLE ibf_posts (
icon_id smallint(3) default NULL,
post text,
queued tinyint(1) default NULL,
topic_id bigint(20) NOT NULL,
forum_id int(10) NOT NULL,
topic_id bigint(20) NOT NULL default '0',
forum_id int(10) NOT NULL default '0',
attach_id varchar(64) default NULL,
attach_hits int(10) default NULL,
attach_type varchar(128) default NULL,
attach_file varchar(255) default NULL,
post_title varchar(255) default NULL,
new_topic tinyint(1) default '0',
edit_name varchar(255) default NULL,
PRIMARY KEY (pid),
KEY forum_id (forum_id),
KEY topic_id (topic_id,author_id),
KEY author_id (author_id)
)";
KEY author_id (author_id),
KEY forum_id (forum_id,post_date)
);";
$SQL[] = "CREATE TABLE ibf_reg_antispam (
regid varchar(32) NOT NULL default '',
regcode varchar(8) NOT NULL default '',
ip_address varchar(32) default NULL,
ctime int(10) default NULL,
PRIMARY KEY (regid)
);";
$SQL[] = "CREATE TABLE ibf_rules (
fid mediumint(6) NOT NULL default '0',
@@ -1304,34 +1498,49 @@ $SQL[] = "CREATE TABLE ibf_rules (
updated int(10) default NULL,
show_all tinyint(1) default NULL,
PRIMARY KEY (fid)
)";
);";
$SQL[] = "CREATE TABLE ibf_search_results (
id varchar(32) NOT NULL default '',
topics text NOT NULL,
topic_id text NOT NULL,
search_date int(12) NOT NULL default '0',
max_hits int(3) NOT NULL default '0',
topic_max int(3) NOT NULL default '0',
sort_key varchar(32) NOT NULL default 'last_post',
sort_order varchar(4) NOT NULL default 'desc'
)";
sort_order varchar(4) NOT NULL default 'desc',
member_id mediumint(10) default '0',
ip_address varchar(64) default NULL,
post_id text,
post_max int(10) NOT NULL default '0'
);";
$SQL[] = "CREATE TABLE ibf_sessions (
id varchar(32) NOT NULL default '0',
member_name varchar(64) default NULL,
member_pass varchar(32) default NULL,
member_id varchar(32) default NULL,
ip_address varchar(16) default NULL,
start_session int(10) default NULL,
browser varchar(64) default NULL,
running_time int(10) default NULL,
login_type tinyint(1) default NULL,
location varchar(40) default NULL,
member_group smallint(3) default NULL,
PRIMARY KEY (id)
)";
in_forum int(10) default NULL,
in_topic int(10) default NULL,
PRIMARY KEY (id),
KEY in_topic (in_topic),
KEY in_forum (in_forum)
);";
$SQL[] = "CREATE TABLE ibf_skin_templates (
suid int(10) NOT NULL auto_increment,
set_id int(10) NOT NULL default '0',
group_name varchar(255) NOT NULL default '',
section_content mediumtext,
func_name varchar(255) default NULL,
func_data text,
updated int(10) default NULL,
can_remove tinyint(4) default '0',
PRIMARY KEY (suid)
);";
$SQL[] = "CREATE TABLE ibf_skins (
uid int(10) NOT NULL auto_increment,
@@ -1339,15 +1548,17 @@ $SQL[] = "CREATE TABLE ibf_skins (
sid int(10) NOT NULL default '0',
set_id int(5) NOT NULL default '0',
tmpl_id int(10) NOT NULL default '0',
img_id int(10) NOT NULL default '1',
macro_id int(10) NOT NULL default '1',
css_id int(10) NOT NULL default '1',
img_dir varchar(200) default '1',
tbl_width varchar(250) default NULL,
tbl_border varchar(250) default NULL,
hidden tinyint(1) NOT NULL default '0',
default_set tinyint(1) NOT NULL default '0',
PRIMARY KEY (uid)
)";
PRIMARY KEY (uid),
KEY tmpl_id (tmpl_id),
KEY css_id (css_id)
);";
$SQL[] = "CREATE TABLE ibf_stats (
@@ -1358,17 +1569,14 @@ $SQL[] = "CREATE TABLE ibf_stats (
MOST_DATE int(10) default NULL,
MOST_COUNT int(10) default '0',
MEM_COUNT bigint(20) default '0'
)";
);";
$SQL[] = "CREATE TABLE ibf_templates (
tmid int(10) NOT NULL auto_increment,
template mediumtext,
name varchar(128) default NULL,
PRIMARY KEY (tmid)
)";
);";
$SQL[] = "CREATE TABLE ibf_titles (
id smallint(5) NOT NULL auto_increment,
@@ -1376,8 +1584,7 @@ $SQL[] = "CREATE TABLE ibf_titles (
title varchar(128) default NULL,
pips varchar(128) default NULL,
PRIMARY KEY (id)
)";
);";
$SQL[] = "CREATE TABLE ibf_tmpl_names (
skid int(10) NOT NULL auto_increment,
@@ -1386,8 +1593,7 @@ $SQL[] = "CREATE TABLE ibf_tmpl_names (
email varchar(250) default '',
url varchar(250) default '',
PRIMARY KEY (skid)
)";
);";
$SQL[] = "CREATE TABLE ibf_topics (
@@ -1406,7 +1612,7 @@ $SQL[] = "CREATE TABLE ibf_topics (
poll_state varchar(8) default NULL,
last_vote int(10) default NULL,
views smallint(5) default NULL,
forum_id smallint(5) NOT NULL,
forum_id smallint(5) NOT NULL default '0',
approved tinyint(1) default NULL,
author_mode tinyint(1) default NULL,
pinned tinyint(1) default NULL,
@@ -1414,9 +1620,8 @@ $SQL[] = "CREATE TABLE ibf_topics (
rating text,
total_votes int(5) NOT NULL default '0',
PRIMARY KEY (tid),
KEY forum_id (forum_id)
)";
KEY forum_id (forum_id,approved,pinned,last_post)
);";
$SQL[] = "CREATE TABLE ibf_tracker (
trid bigint(20) NOT NULL auto_increment,
@@ -1425,9 +1630,7 @@ $SQL[] = "CREATE TABLE ibf_tracker (
start_date int(10) default NULL,
last_sent int(10) NOT NULL default '0',
PRIMARY KEY (trid)
)";
);";
$SQL[] = "CREATE TABLE ibf_voters (
vid bigint(20) NOT NULL auto_increment,
@@ -1437,42 +1640,33 @@ $SQL[] = "CREATE TABLE ibf_voters (
member_id varchar(32) default NULL,
forum_id bigint(20) default NULL,
PRIMARY KEY (vid)
)";
$SQL[] = "CREATE TABLE ibf_languages (
lid bigint(20) NOT NULL auto_increment,
ldir varchar(64) NOT NULL,
lname varchar(250) NOT NULL,
lauthor varchar(250) default NULL,
lemail varchar(250) default NULL,
PRIMARY KEY (lid)
)";
);";
$SQL[] = "INSERT INTO ibf_categories (id, position, state, name, description, image, url) VALUES (-1, NULL, NULL, '-', NULL, NULL, NULL)";
$SQL[] = "INSERT INTO ibf_categories (id, position, state, name, description, image, url) VALUES (1, 1, '1', 'A Test Category', '', '', '')";
$SQL[] = "INSERT INTO ibf_css (cssid, css_name, css_text) VALUES (1, 'Invision Style Sheet', NULL)";
$SQL[] = "INSERT INTO ibf_css (cssid, css_name, css_text, css_comments) VALUES (1, 'Invision Style Sheet', 'form { display:inline }\r\nTABLE, TR, TD { font-family: Verdana, Tahoma, Arial; font-size: 8.5pt; color: #000000 }\r\na:link, a:visited, a:active { text-decoration: underline; color: #000000 }\r\na:hover { color: #465584 }\r\n.hlight { background-color: #DFE6EF }\r\n.dlight { background-color: #EEF2F7 }\r\n.mainbg { background-color: #FFFFFF }\r\n.mainfoot { background-color: #BCD0ED }\r\n.forum1 { background-color: #DFE6EF }\r\n.forum2 { background-color: #E4EAF2 }\r\n.post1 { background-color: #F5F9FD }\r\n.post2 { background-color: #EEF2F7 }\r\n.posthead { background-color: #E4EAF2 }\r\n\r\n.postbak { background-color: #D2D2D0 }\r\n.title { background-color: #C4DCF7 }\r\n.row1 { background-color: #EEF2F7 }\r\n.row2 { background-color: #F5F9FD }\r\n.postsep { background-color: #C7D2E0; height: 1px }\r\n\r\n.signature { font-size: 7.5pt; color: #333399 }\r\n.postdetails { font-size: 7.5pt }\r\n.postcolor, #postcolor { font-size: 9pt; line-height: 160% }\r\n.membertitle { font-size: 10px; line-height: 150%; color: #000000 }\r\n.normalname { font-size: 12px; font-weight: bold; color: #000033; padding-bottom: 2px }\r\n.normalname a:link, .normalname a:visited, .normalname a:active { text-decoration: underline; color: #000033; padding-bottom: 2px }\r\n.unreg { font-size: 11px; font-weight: bold; color: #990000 }\r\n.highlight { color: #FF0000 }\r\n.highlight a:link, .highlight a:visited, .highlight a:active { text-decoration: underline; color: #FF0000 }\r\n.highlight a:hover { text-decoration: underline }\r\n.desc { font-size: 8.0pt; color: #434951 }\r\n.copyright { font-family: Verdana, Tahoma, Arial; font-size: 7.5pt; line-height: 12px }\r\n.category { font-weight: bold; line-height: 150%; color: #4C77B6; background-color: #C2CFDF }\r\n.category a:link, #category a:visited, #category a:active { text-decoration: none; color: #4C77B6 }\r\n.postfoot {\r\n\r\n font-weight:bold;\r\n\r\n color:#3A4F6C;\r\n\r\n height: 24px;\r\n\r\n background-color: #D1DCEB;\r\n\r\n}\r\n.titlefoot { font-weight: bold; color: #3A4F6C; height: 24px; background-color: #BCD0ED }\r\n.titlemedium {\r\n\r\n font-weight:bold;\r\n color:#3A4F6C;\r\n\r\n height: 30px;\r\n\r\n background-color: #9FBCE3;\r\n \r\n background-image: url(style_images/<#IMG_DIR#>/tile_sub.gif);\r\n\r\n}\r\n.titlemedium a:link, .titlefoot a:link, .titlemedium a:visited, .titlefoot a:visited, .titlemedium a:active, .titlefoot a:active { text-decoration: underline; color: #3A4F6C }\r\n.titlemedium a:hover, .subtitle a:hover, .titlefoot a:hover { text-decoration: underline; color: #000000 }\r\n.maintitle {\r\n\r\n color:#FFFFFF;\r\n\r\n font-size: 9.5pt;\r\n \r\n height: 26px;\r\n \r\n background-image: url(style_images/<#IMG_DIR#>/tile_back.gif);\r\n\r\n}\r\n.edit { font-size: 9px }\r\n.fancyborder { border: 1px dashed #999999 }\r\n.solidborder { border: 1px solid #999999 }\r\n.maintitle a:link, .maintitle a:visited, .maintitle a:active { text-decoration: none; color: #FFFFFF }\r\n.maintitle a:hover { text-decoration: underline }\r\n.nav { font-weight: bold; color: #000000; font-size: 8.5pt }\r\n.pagetitle { color: #4C77B6; font-size: 18px; font-weight: bold; letter-spacing: -1px; line-height: 120% }\r\n.useroptions { background-color: #598CC3; height: 25px; font-weight: bold; color: #FFFFFF }\r\n.useroptions a:link, .useroptions a:visited,.useroptions a:active { text-decoration: none; color: #FFFFFF }\r\n.bottomborder { border-bottom: 1px dashed #D2D2D0 }\r\n.linkthru { color: #000000; font-size:8.5pt }\r\n.linkthru a:link, .linkthru a:active { text-decoration: underline; color: #000000 }\r\n.linkthru a:visited { text-decoration: underline; color: #000000 }\r\n.linkthru a:hover { text-decoration: underline; color: #465584 }\r\n#QUOTE { font-family: Verdana, Arial; font-size: 8pt; color: #333333; background-color: #FAFCFE; border: 1px solid Black; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px }\r\n#CODE { font-family: Verdana, Arial; font-size: 8pt; color: #333333; background-color: #FAFCFE; border: 1px solid Black; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px }\r\n.codebuttons { font-size: 8.5pt; font-family: verdana, helvetica, sans-serif; vertical-align: middle }\r\n.forminput { font-size: 9pt; font-family: verdana, helvetica, sans-serif; vertical-align: middle }\r\n.textinput { font-size: 9pt; font-family: verdana, helvetica, sans-serif; vertical-align: middle }\r\n.input { font-size: 9pt; font-family: verdana, helvetica, sans-serif; vertical-align: middle }\r\n', NULL)";
$SQL[] = "INSERT INTO ibf_emoticons VALUES (1, ':mellow:', 'mellow.gif', 0)";
$SQL[] = "INSERT INTO ibf_emoticons VALUES (2, ':huh:', 'huh.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons VALUES (3, '^_^', 'happy.gif', 0)";
$SQL[] = "INSERT INTO ibf_emoticons VALUES (4, ':o', 'ohmy.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons VALUES (5, ';)', 'wink.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons VALUES (6, ':P', 'tongue.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons VALUES (7, ':D', 'biggrin.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons VALUES (8, ':lol:', 'laugh.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons VALUES (9, 'B)', 'cool.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons VALUES (10, ':rolleyes:', 'rolleyes.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons VALUES (11, '-_-', 'sleep.gif', 0)";
$SQL[] = "INSERT INTO ibf_emoticons VALUES (12, '&lt;_&lt;', 'dry.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons VALUES (13, ':)', 'smile.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons VALUES (14, ':wub:', 'wub.gif', 0)";
$SQL[] = "INSERT INTO ibf_emoticons VALUES (15, ':angry:', 'mad.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons VALUES (16, ':(', 'sad.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons VALUES (17, ':unsure:', 'unsure.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons VALUES (18, ':wacko:', 'wacko.gif', 0)";
$SQL[] = "INSERT INTO ibf_emoticons VALUES (19, ':blink:', 'blink.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons VALUES (20, ':ph34r:', 'ph34r.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (1, ':mellow:', 'mellow.gif', 0)";
$SQL[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (2, ':huh:', 'huh.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (3, '^_^', 'happy.gif', 0)";
$SQL[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (4, ':o', 'ohmy.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (5, ';)', 'wink.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (6, ':P', 'tongue.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (7, ':D', 'biggrin.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (8, ':lol:', 'laugh.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (9, 'B)', 'cool.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (10, ':rolleyes:', 'rolleyes.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (11, '-_-', 'sleep.gif', 0)";
$SQL[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (12, '&lt;_&lt;', 'dry.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (13, ':)', 'smile.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (14, ':wub:', 'wub.gif', 0)";
$SQL[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (15, ':angry:', 'mad.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (16, ':(', 'sad.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (17, ':unsure:', 'unsure.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (18, ':wacko:', 'wacko.gif', 0)";
$SQL[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (19, ':blink:', 'blink.gif', 1)";
$SQL[] = "INSERT INTO ibf_emoticons (id, typed, image, clickable) VALUES (20, ':ph34r:', 'ph34r.gif', 1)";
$SQL[] = "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.')";
$SQL[] = "INSERT INTO ibf_faq (id, title, text, description) VALUES (2, 'Cookies and cookie usage', 'Using cookies is optional, but strongly recommended. Cookies are used to track topics, showing you which topics have new replies since your last visit and to automatically log you in when you return.\r<br>\r<br>This board will also allow you to remove the long session id\'s found in the URL\'s. You can do this by entering your control panel (click the link at the top of the board) and entering the \'Board Settings\' section. It is recommended that you enable this feature because you may experience problems if your internet connection shares a proxy and you share a link with another user. If in doubt, choose to hide the session id.\r<br>\r<br><b>Clearing Cookies</b>\r<br>\r<br>You can clear the cookies at any time by clicking on the link found at the bottom of the main board page (the first page you see when returning to the board). If this does not work for you, you may need to remove the cookies manually.\r<br>\r<br><u>Removing Cookies in Internet Explorer for Windows</u>\r<br>\r<br><ul>\r<br><li> Close all open Internet Explorer Windows\r<br><li> Click on the \'start\' button\r<br><li> Move up to \'Find\' and click on \'Files and Folders\'\r<br><li> When the new window appears, type in the domain name of the board you are using into the \'containing text\' field. (If the boards address was \'http://www.invisionboard.com/forums/index.php\' you would enter \'invisionboard.com\' without the quotes)\r<br><li> In the \'look in\' box, type in <b>C:&#92;Windows&#92;Cookies</b> and press \'Find Now\'\r<br><li> After it has finished searching, highlight all files (click on a file then press CTRL+A) and delete them.\r<br></ul>\r<br>\r<br><u>Removing Cookies in Internet Explorer for Macintosh</u>\r<br>\r<br><ul>\r<br><li> With Internet Explorer active, choose \'Edit\' and then \'Preferences\' from the Macintosh menu bar at the top of the screen\r<br><li> When the preferences panel opens, choose \'Cookies\' found in the \'Receiving Files\' section.\r<br><li> When the cookie pane loads, look for the domain name of the board (If the boards address was \'http://www.invisionboard.com/forums/index.php\' look for \'invisionboard.com\' or \'www.invisionboard.com\'\r<br><li> For each cookie, click on the entry and press the delete button.\r<br></ul>\r<br>\r<br>Your cookies should now be removed. In some cases you may need to restart your computer for the changes to take effect.', 'The benefits of using cookies and how to remove cookies set by this board.')";
@@ -1486,17 +1680,82 @@ $SQL[] = "INSERT INTO ibf_faq (id, title, text, description) VALUES (9, 'Viewing
$SQL[] = "INSERT INTO ibf_faq (id, title, text, description) VALUES (10, 'Searching Topics and Posts', 'The search feature is designed to allow you to quickly find topics and posts that contain the keywords you enter.\r<br>\r<br>The \'Simple Search\' option from the drop down box allows you to enter a single keyword or phrase to search by - the advanced option allows you to join keywords with \'AND\', \'OR\' to fine tune the search. Using this option will make the search slightly slower.\r<br>\r<br>The bottom section of the form allows you to further fine tune the search. You can choose a category to search in, or a forum - or choose all forums to search in.\r<br>\r<br>If you enter a name into the \'Search by member name\' section, all posts started or replied in by this member are returned.', 'How to use the search feature.')";
$SQL[] = "INSERT INTO ibf_faq (id, title, text, description) VALUES (11, 'Logging in and out', 'If you have chosen not to remember your log in details in cookies, or you are accessing the board on another computer, you will need to log into the board to access your member profile and post with your registered name.\r<br>\r<br>When you log in, you have the choice to save cookies that will log you in automatically when you return. Do not use this option on a shared computer for security.\r<br>\r<br>You can also choose to hide - this will keep your name from appearing in the active users list.\r<br>\r<br>Logging out is simply a matter of clicking on the \'Log Out\' link that is displayed when you are logged in. If you find that you are not logged out, you may need to manually remove your cookies. See the \'Cookies\' help file for more information.', 'How to log in and out from the board and how to remain anonymous and not be shown on the active users list.')";
$SQL[] = "INSERT INTO ibf_groups (g_id, g_view_board, g_mem_info, g_other_topics, g_use_search, g_email_friend, g_invite_friend, g_edit_profile, g_post_new_topics, g_reply_own_topics, g_reply_other_topics, g_edit_posts, g_delete_own_posts, g_open_close_posts, g_delete_own_topics, g_post_polls, g_vote_polls, g_use_pm, g_is_supmod, g_access_cp, g_title, g_can_remove, g_append_edit, g_access_offline, g_avoid_q, g_avoid_flood, g_icon, g_attach_max, g_avatar_upload, g_calendar_post, prefix, suffix) VALUES (4, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 'Admin', 0, 1, 1, 1, 1, '', 5000, 1, 1, '<span style=\'color:red\'>', '</span>')";
$SQL[] = "INSERT INTO ibf_groups (g_id, g_view_board, g_mem_info, g_other_topics, g_use_search, g_email_friend, g_invite_friend, g_edit_profile, g_post_new_topics, g_reply_own_topics, g_reply_other_topics, g_edit_posts, g_delete_own_posts, g_open_close_posts, g_delete_own_topics, g_post_polls, g_vote_polls, g_use_pm, g_is_supmod, g_access_cp, g_title, g_can_remove, g_append_edit, g_access_offline, g_avoid_q, g_avoid_flood, g_icon, g_attach_max, g_avatar_upload, g_calendar_post, prefix, suffix) VALUES (2, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, 'Guests', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL)";
$SQL[] = "INSERT INTO ibf_groups (g_id, g_view_board, g_mem_info, g_other_topics, g_use_search, g_email_friend, g_invite_friend, g_edit_profile, g_post_new_topics, g_reply_own_topics, g_reply_other_topics, g_edit_posts, g_delete_own_posts, g_open_close_posts, g_delete_own_topics, g_post_polls, g_vote_polls, g_use_pm, g_is_supmod, g_access_cp, g_title, g_can_remove, g_append_edit, g_access_offline, g_avoid_q, g_avoid_flood, g_icon, g_attach_max, g_avatar_upload, g_calendar_post, prefix, suffix) VALUES (3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL, NULL, NULL, 1, 1, 1, 0, 0, 'Members', 0, 1, 0, 0, 0, NULL, NULL, 1, 0, NULL, NULL)";
$SQL[] = "INSERT INTO ibf_groups (g_id, g_view_board, g_mem_info, g_other_topics, g_use_search, g_email_friend, g_invite_friend, g_edit_profile, g_post_new_topics, g_reply_own_topics, g_reply_other_topics, g_edit_posts, g_delete_own_posts, g_open_close_posts, g_delete_own_topics, g_post_polls, g_vote_polls, g_use_pm, g_is_supmod, g_access_cp, g_title, g_can_remove, g_append_edit, g_access_offline, g_avoid_q, g_avoid_flood, g_icon, g_attach_max, g_avatar_upload, g_calendar_post, prefix, suffix) VALUES (1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Validating', 0, 1, 0, 0, 0, NULL, 0, 0, 0, NULL, NULL)";
$SQL[] = "INSERT INTO ibf_forums (id, topics, posts, last_post, last_poster_id, last_poster_name, name, description, position, use_ibc, use_html, status, start_perms, reply_perms, read_perms, password, category, last_title, last_id, sort_key, sort_order, prune, show_rules, upload_perms, preview_posts, allow_poll, allow_pollbump, inc_postcount, skin_id, parent_id, subwrap, sub_can_post) VALUES (1, 1, 1, <%time%>, 1, 'Invision Board Team', 'A Test Forum', 'A test forum that may be removed at any time', 1, 1, 0, '1', '*', '*', '*', '', 1, 'Welcome', 1, 'last_post', 'Z-A', 30, 0, '', 0, 0, 1, 1, NULL, -1, 0, 1)";
$SQL[] = "INSERT INTO ibf_images (imid, setname, A_LOCKED_B, A_MOVED_B, A_POLL, A_POLLONLY_B, A_POST, A_REPLY, A_STAR, B_HOT, B_HOT_NN, B_LOCKED, B_MOVED, B_NEW, B_NORM, B_PIN, B_POLL, B_POLL_NN, C_LOCKED, C_OFF, C_OFF_CAT, C_OFF_RES, C_ON, C_ON_CAT, C_ON_RES, F_ACTIVE, F_NAV_SEP, F_NAV, F_STATS, GO_LAST_ON, GO_LAST_OFF, M_ADDMEM, M_DELETE, M_READ, M_REPLY, M_UNREAD, P_AOL, P_DELETE, P_EDIT, P_EMAIL, P_ICQ, P_MSG, P_PROFILE, P_QUOTE, P_WEBSITE, CAT_IMG, B_HOT_DOT, B_NEW_DOT, B_HOT_NN_DOT, B_NORM_DOT, B_POLL_DOT, B_POLL_NN_DOT, NEW_POST) VALUES (1, 'Invision Board Image Set', '<img src=\'style_images/1/t_closed.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/t_moved.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/t_poll.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/t_closed.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/t_new.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/t_reply.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/pip.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/f_hot.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/f_hot_no.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/f_closed.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/f_moved.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/f_norm.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/f_norm_no.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/f_pinned.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/f_poll.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/f_poll_no.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/bf_readonly.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/bf_nonew.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/bc_nonew.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/br_nonew.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/bf_new.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/bc_new.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/br_new.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/user.gif\' border=\'0\' alt=\'\'>', ' ->', '<img src=\'style_images/1/nav.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/stats.gif\' border=\'0\' alt=\'\'>', '', '', '<img src=\'style_images/1/msg_l_addmem.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/msg_l_delete.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/f_norm_no.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/msg_l_reply.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/f_norm.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/p_aim.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/p_delete.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/p_edit.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/p_email.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/p_icq.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/p_pm.gif\' border=\'0\' alt=\'\'>', '[ Profile ]', '<img src=\'style_images/1/p_quote.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/p_www.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/nav_m.gif\' border=\'0\' alt=\'\' width=\'8\' height=\'8\'>', '<img src=\'style_images/1/f_hot_dot.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/f_norm_dot.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/f_hot_no_dot.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/f_norm_no_dot.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/f_poll_dot.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/f_poll_no_dot.gif\' border=\'0\' alt=\'\'>', '<img src=\'style_images/1/newpost.gif\' border=\'0\' alt=\'Goto last unread\' title=\'Goto last unread\' hspace=2>')";
$SQL[] = "INSERT INTO ibf_members (id, name, mgroup, password, email, joined, ip_address, avatar, avatar_size, posts, photo, aim_name, icq_number, location, signature, website, yahoo, title, allow_admin_mails, time_offset, interests, hide_email, email_pm, email_full, skin, warn_level, language, msnname, last_post, allow_post, view_sigs, view_img, view_avs, view_pop, bday_day, bday_month, bday_year, new_msg, msg_from_id, msg_msg_id, msg_total, vdirs, show_popup, validate_key, prev_group, new_pass, misc, last_visit, last_activity) VALUES (0, 'Guest', 2, '', 'guest@ibforums.com', 0, '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0)";
$SQL[] = "INSERT INTO ibf_groups (g_id, g_view_board, g_mem_info, g_other_topics, g_use_search, g_email_friend, g_invite_friend, g_edit_profile, g_post_new_topics, g_reply_own_topics, g_reply_other_topics, g_edit_posts, g_delete_own_posts, g_open_close_posts, g_delete_own_topics, g_post_polls, g_vote_polls, g_use_pm, g_is_supmod, g_access_cp, g_title, g_can_remove, g_append_edit, g_access_offline, g_avoid_q, g_avoid_flood, g_icon, g_attach_max, g_avatar_upload, g_calendar_post, prefix, suffix, g_max_messages, g_max_mass_pm, g_search_flood, g_edit_cutoff, g_promotion, g_hide_from_list, g_post_closed) VALUES (4, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 'Admin', 0, 1, 1, 1, 1, '', 50000, 1, 1, '', '', 50, 6, 0, 5, '-1&-1', 0, 1)";
$SQL[] = "INSERT INTO ibf_groups (g_id, g_view_board, g_mem_info, g_other_topics, g_use_search, g_email_friend, g_invite_friend, g_edit_profile, g_post_new_topics, g_reply_own_topics, g_reply_other_topics, g_edit_posts, g_delete_own_posts, g_open_close_posts, g_delete_own_topics, g_post_polls, g_vote_polls, g_use_pm, g_is_supmod, g_access_cp, g_title, g_can_remove, g_append_edit, g_access_offline, g_avoid_q, g_avoid_flood, g_icon, g_attach_max, g_avatar_upload, g_calendar_post, prefix, suffix, g_max_messages, g_max_mass_pm, g_search_flood, g_edit_cutoff, g_promotion, g_hide_from_list) VALUES (2, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, 'Guests', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, 50, 0, 20, 0, '-1&-1', 0)";
$SQL[] = "INSERT INTO ibf_groups (g_id, g_view_board, g_mem_info, g_other_topics, g_use_search, g_email_friend, g_invite_friend, g_edit_profile, g_post_new_topics, g_reply_own_topics, g_reply_other_topics, g_edit_posts, g_delete_own_posts, g_open_close_posts, g_delete_own_topics, g_post_polls, g_vote_polls, g_use_pm, g_is_supmod, g_access_cp, g_title, g_can_remove, g_append_edit, g_access_offline, g_avoid_q, g_avoid_flood, g_icon, g_attach_max, g_avatar_upload, g_calendar_post, prefix, suffix, g_max_messages, g_max_mass_pm, g_search_flood, g_edit_cutoff, g_promotion, g_hide_from_list) VALUES (3, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 'Members', 0, 1, 0, 0, 0, '', 0, 1, 0, '', '', 50, 0, 20, 0, '-1&-1', 0)";
$SQL[] = "INSERT INTO ibf_groups (g_id, g_view_board, g_mem_info, g_other_topics, g_use_search, g_email_friend, g_invite_friend, g_edit_profile, g_post_new_topics, g_reply_own_topics, g_reply_other_topics, g_edit_posts, g_delete_own_posts, g_open_close_posts, g_delete_own_topics, g_post_polls, g_vote_polls, g_use_pm, g_is_supmod, g_access_cp, g_title, g_can_remove, g_append_edit, g_access_offline, g_avoid_q, g_avoid_flood, g_icon, g_attach_max, g_avatar_upload, g_calendar_post, prefix, suffix, g_max_messages, g_max_mass_pm, g_search_flood, g_edit_cutoff, g_promotion, g_hide_from_list) VALUES (1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Validating', 0, 1, 0, 0, 0, NULL, 0, 0, 0, NULL, NULL, 50, 0, 20, 0, '-1&-1', 0)";
$SQL[] = "INSERT INTO ibf_groups (g_id, g_view_board, g_mem_info, g_other_topics, g_use_search, g_email_friend, g_invite_friend, g_edit_profile, g_post_new_topics, g_reply_own_topics, g_reply_other_topics, g_edit_posts, g_delete_own_posts, g_open_close_posts, g_delete_own_topics, g_post_polls, g_vote_polls, g_use_pm, g_is_supmod, g_access_cp, g_title, g_can_remove, g_append_edit, g_access_offline, g_avoid_q, g_avoid_flood, g_icon, g_attach_max, g_avatar_upload, g_calendar_post, prefix, suffix, g_max_messages, g_max_mass_pm, g_search_flood, g_edit_cutoff, g_promotion, g_hide_from_list) VALUES (5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Banned', 0, 0, 0, 0, 0, NULL, NULL, 0, 0, NULL, NULL, 50, 0, 20, 0, '-1&-1', 1)";
$SQL[] = "INSERT INTO ibf_skins (uid, sname, sid, set_id, tmpl_id, img_id, css_id, tbl_width, tbl_border, hidden, default_set) VALUES (1, 'Invision Board', 0, 1, 1, 1, 1, '95%', '#999999', 0, 1)";
$SQL[] = "INSERT INTO ibf_languages (lid, ldir, lname, lauthor, lemail) VALUES (1, 'en', 'English', 'Invision Board', 'languages@invisionboard.com')";
$SQL[] = "INSERT INTO ibf_stats (TOTAL_REPLIES, TOTAL_TOPICS, LAST_MEM_NAME, LAST_MEM_ID, MOST_DATE, MOST_COUNT, MEM_COUNT) VALUES (0, 0, NULL, '0', '0', '0', '0' )";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (1, 'A_LOCKED_B', '<img src=\'style_images/<#IMG_DIR#>/t_closed.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (2, 'A_MOVED_B', '<img src=\'style_images/<#IMG_DIR#>/t_moved.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (3, 'A_POLL', '<img src=\'style_images/<#IMG_DIR#>/t_poll.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (4, 'A_POLLONLY_B', '<img src=\'style_images/<#IMG_DIR#>/t_closed.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (5, 'A_POST', '<img src=\'style_images/<#IMG_DIR#>/t_new.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (6, 'A_REPLY', '<img src=\'style_images/<#IMG_DIR#>/t_reply.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (7, 'A_STAR', '<img src=\'style_images/<#IMG_DIR#>/pip.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (8, 'B_HOT', '<img src=\'style_images/<#IMG_DIR#>/f_hot.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (9, 'B_HOT_NN', '<img src=\'style_images/<#IMG_DIR#>/f_hot_no.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (10, 'B_LOCKED', '<img src=\'style_images/<#IMG_DIR#>/f_closed.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (11, 'B_MOVED', '<img src=\'style_images/<#IMG_DIR#>/f_moved.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (12, 'B_NEW', '<img src=\'style_images/<#IMG_DIR#>/f_norm.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (13, 'B_NORM', '<img src=\'style_images/<#IMG_DIR#>/f_norm_no.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (14, 'B_PIN', '<img src=\'style_images/<#IMG_DIR#>/f_pinned.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (15, 'B_POLL', '<img src=\'style_images/<#IMG_DIR#>/f_poll.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (16, 'B_POLL_NN', '<img src=\'style_images/<#IMG_DIR#>/f_poll_no.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (17, 'C_LOCKED', '<img src=\'style_images/<#IMG_DIR#>/bf_readonly.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (18, 'C_OFF', '<img src=\'style_images/<#IMG_DIR#>/bf_nonew.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (19, 'C_OFF_CAT', '<img src=\'style_images/<#IMG_DIR#>/bc_nonew.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (20, 'C_OFF_RES', '<img src=\'style_images/<#IMG_DIR#>/br_nonew.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (21, 'C_ON', '<img src=\'style_images/<#IMG_DIR#>/bf_new.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (22, 'C_ON_CAT', '<img src=\'style_images/<#IMG_DIR#>/bc_new.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (23, 'C_ON_RES', '<img src=\'style_images/<#IMG_DIR#>/br_new.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (24, 'F_ACTIVE', '<img src=\'style_images/<#IMG_DIR#>/user.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (25, 'F_NAV_SEP', ' ->', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (26, 'F_NAV', '<img src=\'style_images/<#IMG_DIR#>/nav.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (27, 'F_STATS', '<img src=\'style_images/<#IMG_DIR#>/stats.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (28, 'GO_LAST_ON', '', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (29, 'GO_LAST_OFF', '', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (30, 'M_ADDMEM', '<img src=\'style_images/<#IMG_DIR#>/msg_l_addmem.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (31, 'M_DELETE', '<img src=\'style_images/<#IMG_DIR#>/msg_l_delete.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (32, 'M_READ', '<img src=\'style_images/<#IMG_DIR#>/f_norm_no.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (33, 'M_REPLY', '<img src=\'style_images/<#IMG_DIR#>/msg_l_reply.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (34, 'M_UNREAD', '<img src=\'style_images/<#IMG_DIR#>/f_norm.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (35, 'P_AOL', '<img src=\'style_images/<#IMG_DIR#>/p_aim.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (36, 'P_DELETE', '<img src=\'style_images/<#IMG_DIR#>/p_delete.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (37, 'P_EDIT', '<img src=\'style_images/<#IMG_DIR#>/p_edit.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (38, 'P_EMAIL', '<img src=\'style_images/<#IMG_DIR#>/p_email.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (39, 'P_ICQ', '<img src=\'style_images/<#IMG_DIR#>/p_icq.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (40, 'P_MSG', '<img src=\'style_images/<#IMG_DIR#>/p_pm.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (41, 'P_PROFILE', '[ Profile ]', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (42, 'P_QUOTE', '<img src=\'style_images/<#IMG_DIR#>/p_quote.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (43, 'P_WEBSITE', '<img src=\'style_images/<#IMG_DIR#>/p_www.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (44, 'CAT_IMG', '<img src=\'style_images/<#IMG_DIR#>/nav_m.gif\' border=\'0\' alt=\'\' width=\'8\' height=\'8\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (45, 'B_HOT_DOT', '<img src=\'style_images/<#IMG_DIR#>/f_hot_dot.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (46, 'B_NEW_DOT', '<img src=\'style_images/<#IMG_DIR#>/f_norm_dot.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (47, 'B_HOT_NN_DOT', '<img src=\'style_images/<#IMG_DIR#>/f_hot_no_dot.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (48, 'B_NORM_DOT', '<img src=\'style_images/<#IMG_DIR#>/f_norm_no_dot.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (49, 'B_POLL_DOT', '<img src=\'style_images/<#IMG_DIR#>/f_poll_dot.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (50, 'B_POLL_NN_DOT', '<img src=\'style_images/<#IMG_DIR#>/f_poll_no_dot.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (51, 'NEW_POST', '<img src=\'style_images/<#IMG_DIR#>/newpost.gif\' border=\'0\' alt=\'Goto last unread\' title=\'Goto last unread\' hspace=2>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (52, 'tbl_width', '95%', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (53, 'tbl_border', '#345487', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (55, 'P_YIM', '<img src=\'style_images/<#IMG_DIR#>/p_yim.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro (macro_id, macro_value, macro_replace, can_remove, macro_set) VALUES (56, 'P_MSN', '<img src=\'style_images/<#IMG_DIR#>/p_msn.gif\' border=\'0\' alt=\'\'>', 0, 1)";
$SQL[] = "INSERT INTO ibf_macro_name (set_id, set_name) VALUES (1, 'IBF Default Macro Set')";
$SQL[] = "INSERT INTO ibf_members (id, name, mgroup, password, email, joined, ip_address, avatar, avatar_size, posts, aim_name, icq_number, location, signature, website, yahoo, title, allow_admin_mails, time_offset, interests, hide_email, email_pm, email_full, skin, warn_level, language, msnname, last_post, allow_post, view_sigs, view_img, view_avs, view_pop, bday_day, bday_month, bday_year, new_msg, msg_from_id, msg_msg_id, msg_total, vdirs, show_popup, validate_key, prev_group, new_pass, misc, last_visit, last_activity, dst_in_use, view_prefs, coppa_user, mod_posts, auto_track) VALUES (0, 'Guest', 2, '', 'guest@ibforums.com', 0, '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '0', 0, 0, 0, '-1&-1', 0, 0, 0)";
$SQL[] = "INSERT INTO ibf_posts (append_edit, edit_time, pid, author_id, author_name, use_sig, use_emo, ip_address, post_date, icon_id, post, queued, topic_id, forum_id, attach_id, attach_hits, attach_type, attach_file, post_title, new_topic, edit_name) VALUES (0, NULL, 1, 1, 'Invision Board Team', '0', '1', '127.0.0.1', <%time%>, 0, 'Welcome to your new Invision Board!<br>This is simply a test message confirming that the installation was successful.<br>You can remove this message, topic, forum or even category at any time.', 0, 1, 1, '', 0, '', '', NULL, 1, NULL)";
$SQL[] = "INSERT INTO ibf_skins (uid, sname, sid, set_id, tmpl_id, macro_id, css_id, img_dir, tbl_width, tbl_border, hidden, default_set) VALUES (1, 'Invision Board', 0, 1, 1, 1, 1, '1', '95%', '#999999', 0, 1)";
$SQL[] = "INSERT INTO ibf_stats (TOTAL_REPLIES, TOTAL_TOPICS, LAST_MEM_NAME, LAST_MEM_ID, MOST_DATE, MOST_COUNT, MEM_COUNT) VALUES (0, 1, '', '1', <%time%>, 1, 1)";
$SQL[] = "INSERT INTO ibf_templates (tmid, template, name) VALUES (1, '<html> <head> <title> <% TITLE %> </title> <% GENERATOR %> <% CSS %> <% JAVASCRIPT %> </head><body bgcolor=\'#FFFFFF\' leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" alink=\'#000000\' vlink=\'#000000\'><% BOARD HEADER %><% NAVIGATION %><% BOARD %><% STATS %><% COPYRIGHT %></body></html>', 'Invision Board Standard')";
@@ -1506,7 +1765,7 @@ $SQL[] = "INSERT INTO ibf_titles (id, posts, title, pips) VALUES (4, 30, 'Advanc
$SQL[] = "INSERT INTO ibf_tmpl_names (skid, skname, author, email, url) VALUES (1, 'Invision Board Template Set', 'Invision Board', 'skins@invisionboard.com', 'http://www.invisionboard.com')";
$SQL[] = "INSERT INTO ibf_languages (ldir, lname, lauthor, lemail) VALUES ('en', 'English', 'Invision Board', 'languages@invisionboard.com')";
$SQL[] = "INSERT INTO ibf_topics (tid, title, description, state, posts, starter_id, start_date, last_poster_id, last_post, icon_id, starter_name, last_poster_name, poll_state, last_vote, views, forum_id, approved, author_mode, pinned, moved_to, rating, total_votes) VALUES (1, 'Welcome', '', 'open', 0, '-1', <%time%>, '0', <%time%>, 0, 'Invision Board Team', 'Invision Board Team', '0', 0, 0, 1, 1, 0, 0, NULL, NULL, 0)";
return $SQL;
}
+290
View File
@@ -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( "&nbsp;" , "40%" );
$SKIN->td_header[] = array( "&nbsp;" , "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();
}
}
?>
+46 -16
View File
@@ -2,10 +2,10 @@
/*
+--------------------------------------------------------------------------
| IBFORUMS v1
| Invision Board v1.1
| ========================================
| by Matthew Mecham and David Baxter
| (c) 2001,2002 IBForums
| by Matthew Mecham
| (c) 2001,2002 Invision Power Services
| http://www.ibforums.com
| ========================================
| Web: http://www.ibforums.com
@@ -173,6 +173,8 @@ class ad_cat {
$order_query = $DB->query("UPDATE ibf_categories SET position='".$IN[ 'POS_' . $r['id'] ]."' WHERE id='".$r['id']."'");
}
$ADMIN->save_log("Re-ordered categories");
$ADMIN->done_screen("Category Ordering Adjusted", "Category Control", "act=cat" );
}
@@ -234,6 +236,7 @@ class ad_cat {
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'doremove'),
2 => array( 'act' , 'cat' ),
3 => array( 'c' , $IN['c'] ),
4 => array( 'name' , $cat['name'] ),
) );
//+-------------------------------
@@ -280,6 +283,8 @@ class ad_cat {
$DB->query("DELETE FROM ibf_categories WHERE id='".$IN['c']."'");
$ADMIN->save_log("Removed category '{$IN['name']}'");
$ADMIN->done_screen("Category Removed", "Category Control", "act=cat" );
}
@@ -346,7 +351,7 @@ class ad_cat {
)
) );
$ADMIN->html .= $SKIN->end_table();
/*$ADMIN->html .= $SKIN->end_table();
//+-------------------------------
@@ -361,7 +366,7 @@ class ad_cat {
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Category Sponsor Link</b><br>(Example: http://www.domain.com/)" ,
$SKIN->form_input("URL", $cat['url'])
) );
) );*/
$ADMIN->html .= $SKIN->end_form("Amend this category");
@@ -399,6 +404,8 @@ class ad_cat {
$DB->query("UPDATE ibf_categories SET $db_string WHERE id='".$IN['c']."'");
$ADMIN->save_log("Edited Category '{$IN['CAT_NAME']}'");
$ADMIN->done_screen("Category '{$IN['CAT_NAME']}' Edited", "Category Control", "act=cat" );
}
@@ -503,15 +510,36 @@ class ad_cat {
if ($r['subwrap'] == 1)
{
$ADMIN->html .= $SKIN->add_td_row( array(
"&nbsp;&gt;",
"<b>".$r['name']."</b>$skin_stuff",
"-",
"-",
"<a href='{$ADMIN->base_url}&act=forum&code=subedit&f={$r['id']}'>Edit</a>",
"<a href='{$ADMIN->base_url}&act=forum&code=skinedit&f={$r['id']}'>Skin Options</a>",
"<a href='{$ADMIN->base_url}&act=forum&code=subdelete&f={$r['id']}'>Delete</a>",
) , 'catrow2' );
if ($r['sub_can_post'])
{
$ADMIN->html .= $SKIN->add_td_row( array(
"&nbsp;&gt;",
"<b>".$r['name']."</b>$skin_stuff<br>".$r['description'],
$r['posts'],
$r['topics'],
"<a href='{$ADMIN->base_url}&act=forum&code=subedit&f={$r['id']}'>Edit Settings</a><br><br>".
"<a href='{$ADMIN->base_url}&act=forum&code=pedit&f={$r['id']}'>Edit Permissions</a>",
"<center><a href='{$ADMIN->base_url}&act=forum&code=frules&f={$r['id']}'><img src='{$SKIN->img_url}/acp_rules.gif' border='0' title='Forum Rules'></a>&nbsp;&nbsp;".
"<a href='{$ADMIN->base_url}&act=forum&code=skinedit&f={$r['id']}'><img src='{$SKIN->img_url}/acp_edit.gif' border='0' title='Skin Options'></a>&nbsp;&nbsp;".
"<a href='{$ADMIN->base_url}&act=forum&code=recount&f={$r['id']}'><img src='{$SKIN->img_url}/acp_resync.gif' border='0' title='Resynchronise'></a></center>",
"<a href='{$ADMIN->base_url}&act=forum&code=subdelete&f={$r['id']}'>Delete</a><br><br>".
"<a href='{$ADMIN->base_url}&act=forum&code=empty&f={$r['id']}'>Empty Forum</a>",
) , 'catrow2' );
}
else
{
$ADMIN->html .= $SKIN->add_td_row( array(
"&nbsp;&gt;",
"<b>".$r['name']."</b>$skin_stuff",
"-",
"-",
"<a href='{$ADMIN->base_url}&act=forum&code=subedit&f={$r['id']}'>Edit</a>",
"<a href='{$ADMIN->base_url}&act=forum&code=skinedit&f={$r['id']}'>Skin Options</a>",
"<a href='{$ADMIN->base_url}&act=forum&code=subdelete&f={$r['id']}'>Delete</a>",
) , 'catrow2' );
}
}
else
{
@@ -621,7 +649,7 @@ class ad_cat {
)
) );
$ADMIN->html .= $SKIN->end_table();
/*$ADMIN->html .= $SKIN->end_table();
//+-------------------------------
@@ -636,7 +664,7 @@ class ad_cat {
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Category Sponsor Link</b><br>(Example: http://www.domain.com/)" ,
$SKIN->form_input("URL")
) );
) );*/
$ADMIN->html .= $SKIN->end_form("Create this category");
@@ -682,6 +710,8 @@ class ad_cat {
$DB->query("INSERT INTO ibf_categories (".$db_string['FIELD_NAMES'].") VALUES (".$db_string['FIELD_VALUES'].")");
$ADMIN->save_log("Added Category '{$IN['CAT_NAME']}'");
$ADMIN->done_screen("Category {$IN['CAT_NAME']} created", "Category Control", "act=cat" );
+432 -67
View File
@@ -2,10 +2,10 @@
/*
+--------------------------------------------------------------------------
| IBFORUMS v1
| Invision Board v1.1
| ========================================
| by Matthew Mecham and David Baxter
| (c) 2001,2002 IBForums
| by Matthew Mecham
| (c) 2001,2002 Invision Power Services
| http://www.ibforums.com
| ========================================
| Web: http://www.ibforums.com
@@ -91,7 +91,7 @@ class ad_forums {
break;
//+-------------------------
case 'newsp':
$this->new_splash();
$this->new_form();
break;
case 'donewsplash':
$this->donew_splash();
@@ -211,6 +211,8 @@ class ad_forums {
$DB->query("SELECT id, name, skin_id FROM ibf_forums WHERE id='".$IN['f']."'");
$forum = $DB->fetch_row();
//+-------------------------------
// Make sure we have a legal forum
//+-------------------------------
@@ -231,7 +233,7 @@ class ad_forums {
$ADMIN->rebuild_config( array( 'forum_skin_'.$IN['f'] => $IN['fsid'] ) );
}
$ADMIN->save_log("Edited a skin setting for forum '{$forum['name']}'");
$std->boink_it($ADMIN->base_url."&act=cat" );
exit();
@@ -317,6 +319,7 @@ class ad_forums {
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'dosubdelete'),
2 => array( 'act' , 'forum' ),
3 => array( 'f' , $IN['f'] ),
4 => array( 'name' , $name ),
) );
//+-------------------------------
@@ -375,6 +378,8 @@ class ad_forums {
$DB->query("DELETE FROM ibf_forums WHERE id='".$IN['f']."'");
$ADMIN->save_log("Removed sub-forum '{$IN['name']}'");
$ADMIN->done_screen("Forum Removed", "Forum Control", "act=cat" );
}
@@ -408,6 +413,10 @@ class ad_forums {
$ADMIN->error("Could not find that sub category forum in the database");
}
if ($forum['password'] == '-1')
{
$forum['password'] = "";
}
$ADMIN->page_title = "Editing a Sub Category Forum";
@@ -450,8 +459,117 @@ class ad_forums {
$SKIN->form_textarea("desc", $forum['description'])
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Forum State</b>" ,
$SKIN->form_dropdown( "FORUM_STATUS",
array(
0 => array( 1, 'Active' ),
1 => array( 0, 'Read Only Archive' ),
),
$forum['status']
)
) );
//+-------------------------------
$ADMIN->html .= $SKIN->end_table();
//+-------------------------------
$SKIN->td_header[] = array( "&nbsp;" , "40%" );
$SKIN->td_header[] = array( "&nbsp;" , "60%" );
$ADMIN->html .= $SKIN->start_table( "Allow posting in this forum?" );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow new topics and posts in this sub-forum?</b><br>If yes, the forums in this sub-forum will be displayed above the normal topic list. <b>If 'no' you can skip the rest of this form as the settings will have no effect</b>" ,
$SKIN->form_yes_no("sub_can_post", $forum['sub_can_post'])
) );
$ADMIN->html .= $SKIN->end_table();
//+-------------------------------
$SKIN->td_header[] = array( "&nbsp;" , "40%" );
$SKIN->td_header[] = array( "&nbsp;" , "60%" );
$ADMIN->html .= $SKIN->start_table( "Postable Forum Settings" );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow HTML to be posted?</b>" ,
$SKIN->form_yes_no("FORUM_HTML", $forum['use_html'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow IBF CODE to be posted?</b>" ,
$SKIN->form_yes_no("FORUM_IBC", $forum['use_ibc'] )
) );
//-----------
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow Polls in this forum (when allowed)?</b>" ,
$SKIN->form_yes_no("allow_poll", $forum['allow_poll'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow votes to bump a topic?</b>" ,
$SKIN->form_yes_no("allow_pollbump", $forum['allow_pollbump'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Posts in this forum increase member post count?</b>" ,
$SKIN->form_yes_no("inc_postcount", $forum['inc_postcount'] )
) );
//-----------
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Preview all posts?</b><br>(Requires a moderator to manually add posts to the forum)" ,
$SKIN->form_yes_no("MODERATE", $forum['preview_posts'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Require password access?<br>Enter the password here</b><br>(Leave this box empty if you do not require this)" ,
$SKIN->form_input("FORUM_PROTECT", $forum['password'])
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Default date cut off for topic display</b>" ,
$SKIN->form_dropdown( "PRUNE_DAYS",
array(
0 => array( 1, 'Today' ),
1 => array( 5, 'Last 5 days' ),
2 => array( 7, 'Last 7 days' ),
3 => array( 10, 'Last 10 days' ),
4 => array( 15, 'Last 15 days' ),
5 => array( 20, 'Last 20 days' ),
6 => array( 25, 'Last 25 days' ),
7 => array( 30, 'Last 30 days' ),
8 => array( 60, 'Last 60 days' ),
9 => array( 90, 'Last 90 days' ),
10=> array( 100,'Show All' ),
),
$forum['prune']
)
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Default sort key</b>" ,
$SKIN->form_dropdown( "SORT_KEY",
array(
0 => array( 'last_post', 'Date of the last post' ),
1 => array( 'title' , 'Topic Title' ),
2 => array( 'starter_name', 'Topic Starters Name' ),
3 => array( 'posts' , 'Topic Posts' ),
4 => array( 'views' , 'Topic Views' ),
5 => array( 'start_date', 'Date topic started' ),
6 => array( 'last_poster_name' , 'Name of the last poster' ),
),
$forum['sort_key']
)
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Default sort order</b>" ,
$SKIN->form_dropdown( "SORT_ORDER",
array(
0 => array( 'Z-A', 'Descending (Z - A, 0 - 10)' ),
1 => array( 'A-Z', 'Ascending (A - Z, 10 - 0)' ),
),
$forum['sort_order']
)
) );
$ADMIN->html .= $SKIN->end_form("Edit this forum");
$ADMIN->html .= $SKIN->end_table();
@@ -484,11 +602,25 @@ class ad_forums {
'description' => str_replace( "\n", "<br>", stripslashes($HTTP_POST_VARS['desc']) ),
'category' => $IN['CATEGORY'],
'subwrap' => 1,
'sub_can_post' => $IN['sub_can_post'],
'use_ibc' => $IN['FORUM_IBC'],
'use_html' => $IN['FORUM_HTML'],
'status' => $IN['FORUM_STATUS'],
'password' => $IN['FORUM_PROTECT'],
'sort_key' => $IN['SORT_KEY'],
'sort_order' => $IN['SORT_ORDER'],
'prune' => $IN['PRUNE_DAYS'],
'preview_posts' => $IN['MODERATE'],
'allow_poll' => $IN['allow_poll'],
'allow_pollbump' => $IN['allow_pollbump'],
'inc_postcount' => $IN['inc_postcount'],
) );
$DB->query("UPDATE ibf_forums SET $db_string WHERE id='".$IN['f']."'");
$ADMIN->save_log("Edited Sub Forum '{$IN['FORUM_NAME']}'");
$ADMIN->done_screen("Forum Edited", "Forum Control", "act=cat" );
}
@@ -613,6 +745,8 @@ class ad_forums {
}
$ADMIN->save_log("Updated forum rules");
$ADMIN->done_screen("Forum Rules Updated", "Forum Control", "act=cat" );
}
@@ -623,9 +757,19 @@ class ad_forums {
//
//+---------------------------------------------------------------------------------
function recount() {
function recount($f_override="") {
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
if ($f_override != "")
{
// Internal call, remap
$IN['f'] = $f_override;
}
$DB->query("SELECT name FROM ibf_forums WHERE id='".$IN['f']."'");
$forum = $DB->fetch_row();
if ($IN['f'] == "")
{
$ADMIN->error("Could not determine the forum ID to resync.");
@@ -667,6 +811,14 @@ class ad_forums {
$DB->query("UPDATE ibf_forums SET $db_string WHERE id='".$IN['f']."'");
// Override? then return..
if ($f_override != "")
{
return TRUE;
}
$ADMIN->save_log("Recounted posts in forum '{$forum['name']}'");
$ADMIN->done_screen("Forum Resynchronised", "Forum Control", "act=cat" );
@@ -712,6 +864,7 @@ class ad_forums {
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'doempty'),
2 => array( 'act' , 'forum' ),
3 => array( 'f' , $IN['f'] ),
4 => array( 'name' , $forum['name'] ),
) );
//+-------------------------------
@@ -775,6 +928,8 @@ class ad_forums {
$DB->query("UPDATE ibf_stats SET TOTAL_TOPICS=TOTAL_TOPICS-".$forum['topics'].", TOTAL_REPLIES=TOTAL_REPLIES-".$forum['posts']);
$ADMIN->save_log("Emptied forum '{$IN['name']}' of all posts");
$ADMIN->done_screen("Forum Emptied", "Forum Control", "act=cat" );
}
@@ -930,6 +1085,8 @@ class ad_forums {
$order_query = $DB->query("UPDATE ibf_forums SET position='".$IN[ 'POS_' . $r['id'] ]."' WHERE id='".$r['id']."'");
}
$ADMIN->save_log("Reordered Forums");
$ADMIN->done_screen("Forum Ordering Adjusted", "Forum Control", "act=cat" );
}
@@ -1016,6 +1173,9 @@ class ad_forums {
function do_delete() {
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
$DB->query("SELECT name FROM ibf_forums WHERE id='".$IN['f']."'");
$forum = $DB->fetch_row();
if ($IN['f'] == "")
{
$ADMIN->error("Could not determine the source forum ID.");
@@ -1050,6 +1210,10 @@ class ad_forums {
$DB->query("DELETE FROM ibf_rules WHERE fid='".$IN['f']."'");
$this->recount($IN['MOVE_ID']);
$ADMIN->save_log("Removed forum '{$forum['name']}'");
$ADMIN->done_screen("Forum Removed", "Forum Control", "act=cat" );
}
@@ -1187,6 +1351,127 @@ class ad_forums {
$SKIN->form_textarea("desc")
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Forum State</b>" ,
$SKIN->form_dropdown( "FORUM_STATUS",
array(
0 => array( 1, 'Active' ),
1 => array( 0, 'Read Only Archive' ),
),
"1"
)
) );
$ADMIN->html .= $SKIN->end_table();
//+-------------------------------
$SKIN->td_header[] = array( "&nbsp;" , "40%" );
$SKIN->td_header[] = array( "&nbsp;" , "60%" );
$ADMIN->html .= $SKIN->start_table( "Allow posting in this forum?" );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow new topics and posts in this sub-forum?</b><br>If yes, the forums in this sub-forum will be displayed above the normal topic list. <b>If 'no' you can skip the rest of this form as the settings will have no effect</b>" ,
$SKIN->form_yes_no("sub_can_post")
) );
$ADMIN->html .= $SKIN->end_table();
//+-------------------------------
$SKIN->td_header[] = array( "&nbsp;" , "40%" );
$SKIN->td_header[] = array( "&nbsp;" , "60%" );
$ADMIN->html .= $SKIN->start_table( "Postable Forum Settings" );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow HTML to be posted?</b>" ,
$SKIN->form_yes_no("FORUM_HTML", 0 )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow IBF CODE to be posted?</b>" ,
$SKIN->form_yes_no("FORUM_IBC", 1 )
) );
//-----------
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow Polls in this forum (when allowed)?</b>" ,
$SKIN->form_yes_no("allow_poll", 1 )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow votes to bump a topic?</b>" ,
$SKIN->form_yes_no("allow_pollbump", 0 )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Posts in this forum increase member post count?</b>" ,
$SKIN->form_yes_no("inc_postcount", 1 )
) );
//-----------
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Preview all posts?</b><br>(Requires a moderator to manually add posts to the forum)" ,
$SKIN->form_yes_no("MODERATE", 0 )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Require password access?<br>Enter the password here</b><br>(Leave this box empty if you do not require this)" ,
$SKIN->form_input("FORUM_PROTECT")
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Default date cut off for topic display</b>" ,
$SKIN->form_dropdown( "PRUNE_DAYS",
array(
0 => array( 1, 'Today' ),
1 => array( 5, 'Last 5 days' ),
2 => array( 7, 'Last 7 days' ),
3 => array( 10, 'Last 10 days' ),
4 => array( 15, 'Last 15 days' ),
5 => array( 20, 'Last 20 days' ),
6 => array( 25, 'Last 25 days' ),
7 => array( 30, 'Last 30 days' ),
8 => array( 60, 'Last 60 days' ),
9 => array( 90, 'Last 90 days' ),
10=> array( 100,'Show All' ),
),
"30"
)
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Default sort key</b>" ,
$SKIN->form_dropdown( "SORT_KEY",
array(
0 => array( 'last_post', 'Date of the last post' ),
1 => array( 'title' , 'Topic Title' ),
2 => array( 'starter_name', 'Topic Starters Name' ),
3 => array( 'posts' , 'Topic Posts' ),
4 => array( 'views' , 'Topic Views' ),
5 => array( 'start_date', 'Date topic started' ),
6 => array( 'last_poster_name' , 'Name of the last poster' ),
),
"last_post"
)
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Default sort order</b>" ,
$SKIN->form_dropdown( "SORT_ORDER",
array(
0 => array( 'Z-A', 'Descending (Z - A, 0 - 10)' ),
1 => array( 'A-Z', 'Ascending (A - Z, 10 - 0)' ),
),
"Z-A"
)
) );
$ADMIN->html .= $SKIN->end_table();
//+-------------------------------
$SKIN->td_header[] = array( "&nbsp;" , "40%" );
$SKIN->td_header[] = array( "&nbsp;" , "60%" );
$ADMIN->html .= $SKIN->start_table( "Forum Access Permissions" );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Forum access permissions</b><br>(Check box for access, uncheck to not allow access)<br>If you deny read access for a member group, they will not see the forum" ,
$SKIN->build_group_perms()
) );
//+-------------------------------
$ADMIN->html .= $SKIN->end_form("Create this forum");
@@ -1224,7 +1509,7 @@ class ad_forums {
while ( $r = $DB->fetch_row() )
{
if ($seen[$r['id']] == 1 and $r['subwrap'] != 1)
if ($r['parent_id'] > 0)
{
continue;
}
@@ -1236,23 +1521,14 @@ class ad_forums {
$seen[$r['id']] = 1;
$last_cat_id = $r['id'];
}
if ($r['parent_id'] > 0)
{
continue;
}
if ($r['subwrap'] != 1)
{
continue;
}
if ($r['category'] == $r['id'])
{
$cats[] = array( "f_".$r['forum_id'], "Sub Category Forum: ".$r['forum_name'] );
if ($r['forum_id'] != $IN['f'])
{
$cats[] = array( "f_".$r['forum_id'], "Forum: ".$r['forum_name'] );
}
}
}
@@ -1323,6 +1599,30 @@ class ad_forums {
$SKIN->form_textarea("FORUM_DESC")
) );
//+-------------------------------
$ADMIN->html .= $SKIN->end_table();
//+-------------------------------
$SKIN->td_header[] = array( "&nbsp;" , "40%" );
$SKIN->td_header[] = array( "&nbsp;" , "60%" );
$ADMIN->html .= $SKIN->start_table( "Root Forum Option: allow posting in this forum?" );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow new topics and posts in this forum?</b><br>If yes, any sub-forums will be displayed above the normal topic list, if there are no sub-forums to show, it will display the topic list as normal<br><b>If 'no' you can skip the rest of this form as the settings will have no effect and this forum will act like a category.</b>" ,
$SKIN->form_yes_no("sub_can_post", 1)."<br><b>NOTE</b> This option will have no effect if you use another forum as a parent for this new forum",
) );
$ADMIN->html .= $SKIN->end_table();
$SKIN->td_header[] = array( "&nbsp;" , "40%" );
$SKIN->td_header[] = array( "&nbsp;" , "60%" );
$ADMIN->html .= $SKIN->start_table( "Postable Forum Options" );
//+-------------------------------
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow HTML to be posted?</b>" ,
$SKIN->form_yes_no("FORUM_HTML", 0 )
) );
@@ -1347,10 +1647,6 @@ class ad_forums {
//-----------
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow post uploads?</b>" ,
$SKIN->form_yes_no("ALLOW_ATTACH", 0 )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Preview all posts?</b><br>(Requires a moderator to manually add posts to the forum)" ,
$SKIN->form_yes_no("MODERATE", 0 )
) );
@@ -1488,6 +1784,7 @@ class ad_forums {
'start_perms' => $perms['START'],
'reply_perms' => $perms['REPLY'],
'read_perms' => $perms['READ'],
'upload_perms' => $perms['UPLOAD'],
'password' => $IN['FORUM_PROTECT'],
'category' => $cat,
'last_id' => "",
@@ -1496,18 +1793,25 @@ class ad_forums {
'sort_order' => $IN['SORT_ORDER'],
'prune' => $IN['PRUNE_DAYS'],
'show_rules' => 0,
'use_attach' => $IN['ALLOW_ATTACH'],
'preview_posts' => $IN['MODERATE'],
'allow_poll' => $IN['allow_poll'],
'allow_pollbump' => $IN['allow_pollbump'],
'inc_postcount' => $IN['inc_postcount'],
'parent_id' => $parent
'parent_id' => $parent,
'sub_can_post' => $IN['sub_can_post'],
) );
$DB->query("INSERT INTO ibf_forums (".$db_string['FIELD_NAMES'].") VALUES (".$db_string['FIELD_VALUES'].")");
$ADMIN->done_screen("Forum {$IN['CAT_NAME']} created", "Forum Control", "act=cat" );
if ($parent != -1)
{
$DB->query("UPDATE ibf_forums SET subwrap=1 WHERE id='$parent'");
}
$ADMIN->save_log("Forum '{$IN['FORUM_NAME']}' created");
$ADMIN->done_screen("Forum {$IN['FORUM_NAME']} created", "Forum Control", "act=cat" );
@@ -1536,6 +1840,8 @@ class ad_forums {
$row['top_forum']++;
$perms = $ADMIN->compile_forum_perms();
$db_string = $DB->compile_db_insert_string( array (
'id' => $row['top_forum'],
'position' => $row['top_forum'],
@@ -1546,33 +1852,36 @@ class ad_forums {
'last_poster_name' => "",
'name' => $IN['FORUM_NAME'],
'description' => str_replace( "\n", "<br>", stripslashes($HTTP_POST_VARS['desc']) ),
'use_ibc' => -1,
'use_html' => -1,
'status' => 1,
'start_perms' => -1,
'reply_perms' => -1,
'read_perms' => -1,
'password' => -1,
'use_ibc' => $IN['FORUM_IBC'],
'use_html' => $IN['FORUM_HTML'],
'status' => $IN['FORUM_STATUS'],
'start_perms' => $perms['START'],
'reply_perms' => $perms['REPLY'],
'read_perms' => $perms['READ'],
'upload_perms' => $perms['UPLOAD'],
'password' => $IN['FORUM_PROTECT'],
'category' => $IN['CATEGORY'],
'last_id' => "",
'last_title' => "",
'sort_key' => -1,
'sort_order' => -1,
'prune' => -1,
'sort_key' => $IN['SORT_KEY'],
'sort_order' => $IN['SORT_ORDER'],
'prune' => $IN['PRUNE_DAYS'],
'show_rules' => 0,
'use_attach' => -1,
'preview_posts' => -1,
'allow_poll' => -1,
'allow_pollbump' => -1,
'preview_posts' => $IN['MODERATE'],
'allow_poll' => $IN['allow_poll'],
'allow_pollbump' => $IN['allow_pollbump'],
'inc_postcount' => -1,
'parent_id' => -1,
'sub_can_post' => $IN['sub_can_post'],
'subwrap' => 1,
) );
$DB->query("INSERT INTO ibf_forums (".$db_string['FIELD_NAMES'].") VALUES (".$db_string['FIELD_VALUES'].")");
$ADMIN->done_screen("Forum {$IN['CAT_NAME']} created", "Forum Control", "act=cat" );
$ADMIN->save_log("Forum '{$IN['FORUM_NAME']}' created");
$ADMIN->done_screen("Forum {$IN['FORUM_NAME']} created", "Forum Control", "act=cat" );
@@ -1604,7 +1913,7 @@ class ad_forums {
while ( $r = $DB->fetch_row() )
{
if ($seen[$r['id']] == 1 and $r['subwrap'] != 1)
if ($r['parent_id'] > 0)
{
continue;
}
@@ -1616,23 +1925,14 @@ class ad_forums {
$seen[$r['id']] = 1;
$last_cat_id = $r['id'];
}
if ($r['parent_id'] > 0)
{
continue;
}
if ($r['subwrap'] != 1)
{
continue;
}
if ($r['category'] == $r['id'])
{
$cats[] = array( "f_".$r['forum_id'], "Sub Category Forum: ".$r['forum_name'] );
if ($r['forum_id'] != $IN['f'])
{
$cats[] = array( "f_".$r['forum_id'], "Forum: ".$r['forum_name'] );
}
}
}
@@ -1649,7 +1949,7 @@ class ad_forums {
$real_parent = "";
if ($forum['category'] > 0)
if ($forum['parent_id'] < 1)
{
$real_parent = 'c_'.$forum['category'];
}
@@ -1670,6 +1970,7 @@ class ad_forums {
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'doedit' ),
2 => array( 'act' , 'forum' ),
3 => array( 'f' , $IN['f'] ),
4 => array( 'name' , $forum['name'] ),
) );
//+-------------------------------
@@ -1712,6 +2013,41 @@ class ad_forums {
$SKIN->form_textarea("FORUM_DESC", str_replace("<br>", "\n", $forum['description']) )
) );
//+-------------------------------
$ADMIN->html .= $SKIN->end_table();
if ($forum['parent_id'] > 0)
{
$st = "<span style='color:#AAAAAA'>";
$end = "</span>";
$extra = "<span id='normal' style='color:red'><br><b>NOTE</b>: This forum is <b>not</b> a root forum, this option will have no effect unless you change the parent to a category</span>";
}
//+-------------------------------
$SKIN->td_header[] = array( "&nbsp;" , "40%" );
$SKIN->td_header[] = array( "&nbsp;" , "60%" );
$ADMIN->html .= $SKIN->start_table( $st."Root Forum Option: Allow posting in this forum?".$end );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow new topics and posts in this forum?</b><br>If yes, any sub-forums will be displayed above the normal topic list, if there are no sub-forums to show, it will display the topic list as normal<br><b>If 'no' you can skip the rest of this form as the settings will have no effect and this forum will act like a category.</b>" ,
$SKIN->form_yes_no("sub_can_post", $forum['sub_can_post']) .$extra
) );
$ADMIN->html .= $SKIN->end_table();
//+-------------------------------
$SKIN->td_header[] = array( "&nbsp;" , "40%" );
$SKIN->td_header[] = array( "&nbsp;" , "60%" );
$ADMIN->html .= $SKIN->start_table( "Postable Forum Settings" );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow HTML to be posted?</b>" ,
$SKIN->form_yes_no("FORUM_HTML", $forum['use_html'] )
) );
@@ -1736,10 +2072,6 @@ class ad_forums {
//-----------
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow post uploads?</b>" ,
$SKIN->form_yes_no("ALLOW_ATTACH", $forum['use_attach'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Preview all posts?</b><br>(Requires a moderator to manually add posts to the forum)" ,
$SKIN->form_yes_no("MODERATE", $forum['preview_posts'] )
) );
@@ -1815,6 +2147,10 @@ class ad_forums {
$ADMIN->error("You must enter a forum title");
}
$DB->query("SELECT * from ibf_forums WHERE id='".$IN['f']."'");
$old_details = $DB->fetch_row();
$cat = -1;
$parent = -1;
@@ -1846,17 +2182,42 @@ class ad_forums {
'sort_key' => $IN['SORT_KEY'],
'sort_order' => $IN['SORT_ORDER'],
'prune' => $IN['PRUNE_DAYS'],
'use_attach' => $IN['ALLOW_ATTACH'],
'preview_posts' => $IN['MODERATE'],
'allow_poll' => $IN['allow_poll'],
'allow_pollbump' => $IN['allow_pollbump'],
'inc_postcount' => $IN['inc_postcount'],
'parent_id' => $parent
'parent_id' => $parent,
'sub_can_post' => $IN['sub_can_post'],
) );
$DB->query("UPDATE ibf_forums SET $db_string WHERE id='".$IN['f']."'");
// Update the parent if need be
if ($parent != -1)
{
$DB->query("UPDATE ibf_forums SET subwrap=1 WHERE id='$parent'");
}
// Have we moved this forum from a sub cat forum?
// If so, are there any forums left in this sub cat forum?
if (($old_details['parent_id'] > 0) and ($old_details['parent_id'] != $parent))
{
$DB->query("SELECT id FROM ibf_forums WHERE parent_id='{$old_details['parent_id']}'");
if ( ! $DB->get_num_rows() )
{
// No, there are no more forums that have a parent id the same as the one we've just moved it from
// So, make that forum a normal forum then!
$DB->query("UPDATE ibf_forums SET subwrap=0 WHERE id='{$old_details['parent_id']}'");
}
}
$ADMIN->save_log("Forum '{$IN['name']}' edited");
$ADMIN->done_screen("Forum {$IN['CAT_NAME']} Edited", "Forum Control", "act=cat" );
@@ -1909,15 +2270,16 @@ class ad_forums {
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'pdoedit' ),
2 => array( 'act' , 'forum' ),
3 => array( 'f' , $IN['f'] ),
4 => array( 'name' , $forum['name'] ),
) );
$SKIN->td_header[] = array( "&nbsp;" , "40%" );
$SKIN->td_header[] = array( "&nbsp;" , "60%" );
$SKIN->td_header[] = array( "&nbsp;" , "20%" );
$SKIN->td_header[] = array( "&nbsp;" , "80%" );
$ADMIN->html .= $SKIN->start_table( "Forum Access Permissions" );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Forum access permissions</b><br>(Check box for access, uncheck to not allow access)<br>If you deny read access for a member group, they will not see the forum" ,
$SKIN->build_group_perms($forum['read_perms'], $forum['start_perms'], $forum['reply_perms'])
$SKIN->build_group_perms($forum['read_perms'], $forum['start_perms'], $forum['reply_perms'], $forum['upload_perms'])
) );
@@ -1942,11 +2304,14 @@ class ad_forums {
'start_perms' => $perms['START'],
'reply_perms' => $perms['REPLY'],
'read_perms' => $perms['READ'],
'upload_perms' => $perms['UPLOAD'],
) );
$DB->query("UPDATE ibf_forums SET $db_string WHERE id='".$IN['f']."'");
$ADMIN->save_log("Forum access permission edited in '{$IN['name']}'");
$ADMIN->done_screen("Forum Access Permissions Edited", "Forum Control", "act=cat" );
+200 -12
View File
@@ -2,10 +2,10 @@
/*
+--------------------------------------------------------------------------
| IBFORUMS v1
| Invision Board v1.1
| ========================================
| by Matthew Mecham and David Baxter
| (c) 2001,2002 IBForums
| by Matthew Mecham
| (c) 2001,2002 Invision Power Services
| http://www.ibforums.com
| ========================================
| Web: http://www.ibforums.com
@@ -138,12 +138,13 @@ class ad_groups {
3 => array( 'id' , $gid ),
) );
$SKIN->td_header[] = array( "Forum Name" , "35%" );
$SKIN->td_header[] = array( "Forum Name" , "20%" );
$SKIN->td_header[] = array( "Posts" , "10%" );
$SKIN->td_header[] = array( "Topics" , "10%" );
$SKIN->td_header[] = array( "Start" , "15%" );
$SKIN->td_header[] = array( "Reply" , "15%" );
$SKIN->td_header[] = array( "Read" , "15%" );
$SKIN->td_header[] = array( "Upload" , "15%" );
$ADMIN->html .= $SKIN->start_table( "Forum Access for ".$group['g_title'] );
@@ -166,6 +167,7 @@ class ad_groups {
$read = "";
$start = "";
$reply = "";
$upload = "";
$global = '<center><i>Global</i></center>';
if ($r['read_perms'] == '*')
@@ -213,6 +215,21 @@ class ad_groups {
//---------------------------
if ($r['upload_perms'] == '*')
{
$upload = $global;
}
else if ( preg_match( "/(^|,)".$gid."(,|$)/", $r['upload_perms'] ) )
{
$upload = "<center><input type='checkbox' name='upload_".$r['id']."' value='1' checked></center>";
}
else
{
$upload = "<center><input type='checkbox' name='upload_".$r['id']."' value='1'></center>";
}
//---------------------------
if ($r['subwrap'] == 1)
{
$ADMIN->html .= $SKIN->add_td_basic( "&gt; ".$r['name'], 'left', 'catrow2' );
@@ -225,7 +242,8 @@ class ad_groups {
"<center>".$r['topics']."</center>",
$start,
$reply,
$read
$read,
$upload
) );
}
@@ -236,6 +254,7 @@ class ad_groups {
$read = "";
$start = "";
$reply = "";
$upload = "";
$global = '<center><i>Global</i></center>';
if ($rd['read_perms'] == '*')
@@ -283,13 +302,29 @@ class ad_groups {
//---------------------------
if ($rd['upload_perms'] == '*')
{
$upload = $global;
}
else if ( preg_match( "/(^|,)".$gid."(,|$)/", $rd['upload_perms'] ) )
{
$upload = "<center><input type='checkbox' name='upload_".$rd['id']."' value='1' checked></center>";
}
else
{
$upload = "<center><input type='checkbox' name='upload_".$rd['id']."' value='1'></center>";
}
//---------------------------
$ADMIN->html .= $SKIN->add_td_row( array(
"<b>".$rd['name']."</b><br>".$rd['description'],
"<center>".$rd['posts']."</center>",
"<center>".$rd['topics']."</center>",
$start,
$reply,
$read
$read,
$upload
) , 'subforum' );
}
}
@@ -322,9 +357,9 @@ class ad_groups {
//---------------------------
$DB->query("SELECT g_id FROM ibf_groups WHERE g_id='".$IN['id']."'");
$DB->query("SELECT g_id, g_title FROM ibf_groups WHERE g_id='".$IN['id']."'");
if ( ! $DB->get_num_rows() )
if ( ! $gr = $DB->fetch_row() )
{
$ADMIN->error("Not a valid group ID");
}
@@ -333,7 +368,7 @@ class ad_groups {
// Pull the forum data..
//---------------------------
$forum_q = $DB->query("SELECT id, read_perms, start_perms, reply_perms FROM ibf_forums ORDER BY position ASC");
$forum_q = $DB->query("SELECT id, read_perms, start_perms, reply_perms, upload_perms FROM ibf_forums ORDER BY position ASC");
while ( $row = $DB->fetch_row( $forum_q ) )
{
@@ -341,6 +376,7 @@ class ad_groups {
$read = "";
$reply = "";
$start = "";
$upload = "";
//---------------------------
// Is this global?
//---------------------------
@@ -470,17 +506,57 @@ class ad_groups {
$start = preg_replace( "/^,/", "", $start );
}
//---------------------------
// Upload topics..
//---------------------------
if ($row['upload_perms'] == '*')
{
$upload = '*';
}
else
{
$upload_ids = explode( ",", $row['upload_perms'] );
if ( is_array($upload_ids) )
{
foreach ($upload_ids as $i)
{
if ($gid == $i)
{
continue;
}
else
{
$upload .= $i.",";
}
}
}
if ($IN[ 'upload_'.$row['id'] ] == 1)
{
$upload .= $gid.",";
}
$upload = preg_replace( "/,$/", "", $upload );
$upload = preg_replace( "/^,/", "", $upload );
}
//---------------------------
// Update the DB...
//---------------------------
if (! $new_q = $DB->query("UPDATE ibf_forums SET read_perms='$read', reply_perms='$reply', start_perms='$start' WHERE id='".$row['id']."'") )
if (! $new_q = $DB->query("UPDATE ibf_forums SET read_perms='$read', reply_perms='$reply', start_perms='$start', upload_perms='$upload' WHERE id='".$row['id']."'") )
{
die ("Update query failed on Forum ID ".$row['id']);
}
}
$ADMIN->save_log("Forum Access Permissions Edited for group '{$gr['g_title']}'");
$ADMIN->done_screen("Forum Access Permissions Updated", "Group Control", "act=group" );
}
@@ -539,6 +615,7 @@ class ad_groups {
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'dodelete' ),
2 => array( 'act' , 'group' ),
3 => array( 'id' , $IN['id'] ),
4 => array( 'name' , $group['g_title'] ),
) );
@@ -596,6 +673,17 @@ class ad_groups {
$DB->query("DELETE FROM ibf_groups WHERE g_id='".$IN['id']."'");
// Look for promotions in case we have members to be promoted to this group...
$prq = $DB->query("SELECT g_id FROM ibf_groups WHERE g_promotion LIKE '{$IN['id']}&%'");
while ( $row = $DB->fetch_row($prq) )
{
$nq = $DB->query("UPDATE ibf_groups SET g_promotion='-1&-1' WHERE g_id='".$row['g_id']."'");
}
$ADMIN->save_log("Member Group '{$IN['name']}' removed");
$ADMIN->done_screen("Group Removed", "Group Control", "act=group" );
}
@@ -636,6 +724,16 @@ class ad_groups {
$suffix = preg_replace( "/&#39;/", "'" , stripslashes($HTTP_POST_VARS['suffix']) );
$suffix = preg_replace( "/&lt;/" , "<" , $suffix );
$promotion_a = '-1'; //id
$promotion_b = '-1'; // posts
if ($IN['g_promotion_id'] > 0)
{
$promotion_a = $IN['g_promotion_id'];
$promotion_b = $IN['g_promotion_posts'];
}
$db_string = array(
'g_view_board' => $IN['g_view_board'],
'g_mem_info' => $IN['g_mem_info'],
@@ -648,6 +746,7 @@ class ad_groups {
'g_reply_own_topics' => $IN['g_reply_own_topics'],
'g_reply_other_topics' => $IN['g_reply_other_topics'],
'g_edit_posts' => $IN['g_edit_posts'],
'g_edit_cutoff' => $IN['g_edit_cutoff'],
'g_delete_own_posts' => $IN['g_delete_own_posts'],
'g_open_close_posts' => $IN['g_open_close_posts'],
'g_delete_own_topics' => $IN['g_delete_own_topics'],
@@ -666,8 +765,14 @@ class ad_groups {
'g_attach_max' => $IN['g_attach_max'],
'g_avatar_upload' => $IN['g_avatar_upload'],
'g_calendar_post' => $IN['g_calendar_post'],
'g_max_messages' => $IN['g_max_messages'],
'g_max_mass_pm' => $IN['g_max_mass_pm'],
'g_search_flood' => $IN['g_search_flood'],
'prefix' => $prefix,
'suffix' => $suffix
'suffix' => $suffix,
'g_promotion' => $promotion_a.'&'.$promotion_b,
'g_hide_from_list' => $IN['g_hide_from_list'],
'g_post_closed' => $IN['g_post_closed'],
);
@@ -677,6 +782,12 @@ class ad_groups {
$DB->query("UPDATE ibf_groups SET $rstring WHERE g_id='".$IN['id']."'");
// Update the title of the group held in the mod table incase it changed.
$DB->query("UPDATE ibf_moderators SET group_name='".trim($IN['g_title'])."' WHERE group_id='".$IN['id']."'");
$ADMIN->save_log("Edited Group '{$IN['g_title']}'");
$ADMIN->done_screen("Group Edited", "Group Control", "act=group" );
}
@@ -686,6 +797,8 @@ class ad_groups {
$DB->query("INSERT INTO ibf_groups (" .$rstring['FIELD_NAMES']. ") VALUES (". $rstring['FIELD_VALUES'] .")");
$ADMIN->save_log("Added Group '{$IN['g_title']}'");
$ADMIN->done_screen("Group Added", "Group Control", "act=group" );
}
}
@@ -701,6 +814,8 @@ class ad_groups {
{
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
$all_groups = array( 0 => array ('none', 'Don\'t Promote') );
if ($type == 'edit')
{
if ($IN['id'] == "")
@@ -722,12 +837,36 @@ class ad_groups {
{
$DB->query("SELECT * FROM ibf_groups WHERE g_id='".$IN['id']."'");
$group = $DB->fetch_row();
$query = "SELECT g_id, g_title FROM ibf_groups WHERE g_id <> {$IN['id']} ORDER BY g_title";
}
else
{
$group = array();
$query = "SELECT g_id, g_title FROM ibf_groups ORDER BY g_title";
}
//-------------------------------------------
// sort out the promotion stuff
//-------------------------------------------
list($group['g_promotion_id'], $group['g_promotion_posts']) = explode( '&', $group['g_promotion'] );
if ($group['g_promotion_posts'] < 1)
{
$group['g_promotion_posts'] = '';
}
$DB->query($query);
while ( $r = $DB->fetch_row() )
{
$all_groups[] = array( $r['g_id'], $r['g_title'] );
}
//-------------------------------------------
if ($type == 'edit')
{
$ADMIN->page_title = "Editing User Group ".$group['g_title'];
@@ -829,6 +968,10 @@ class ad_groups {
$SKIN->form_input("suffix", $suffix )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Hide this group from the member list?</b>" ,
$SKIN->form_yes_no("g_hide_from_list", $group['g_hide_from_list'] )
) );
$ADMIN->html .= $SKIN->end_table();
//+-------------------------------
@@ -860,6 +1003,10 @@ class ad_groups {
$SKIN->form_yes_no("g_use_search", $group['g_use_search'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Number of seconds for search flood control</b><br>Stops search abuse, enter 0 or leave blank for no flood control" ,
$SKIN->form_input("g_search_flood", $group['g_search_flood'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Can mail members from the board?</b>" ,
$SKIN->form_yes_no("g_email_friend", $group['g_email_friend'] )
) );
@@ -872,6 +1019,14 @@ class ad_groups {
$SKIN->form_yes_no("g_use_pm", $group['g_use_pm'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Max. Number users allowed to mass PM?$guest_legend<br>(Enter 0 or leave blank to disable mass PM)" ,
$SKIN->form_input("g_max_mass_pm", $group['g_max_mass_pm'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Max. Number of storable messages?$guest_legend" ,
$SKIN->form_input("g_max_messages", $group['g_max_messages'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Can Upload avatars?$guest_legend" ,
$SKIN->form_yes_no("g_avatar_upload", $group['g_avatar_upload'] )
) );
@@ -903,7 +1058,11 @@ class ad_groups {
$SKIN->form_yes_no("g_edit_posts", $group['g_edit_posts'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Append 'Edited by' legend?</b>" ,
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Edit time restriction (in minutes)?$guest_legend<br>Denies user edit after the time set has passed. Leave blank or enter 0 for no restriction" ,
$SKIN->form_input("g_edit_cutoff", $group['g_edit_cutoff'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow user to remove 'Edited by' legend?</b>" ,
$SKIN->form_yes_no("g_append_edit", $group['g_append_edit'] )
) );
@@ -958,6 +1117,35 @@ class ad_groups {
$SKIN->form_yes_no("g_access_cp", $group['g_access_cp'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow user group to post in 'closed' topics?" ,
$SKIN->form_yes_no("g_post_closed", $group['g_post_closed'] )
) );
$ADMIN->html .= $SKIN->end_table();
//+-------------------------------
$SKIN->td_header[] = array( "&nbsp;" , "40%" );
$SKIN->td_header[] = array( "&nbsp;" , "60%" );
//+-------------------------------
$ADMIN->html .= $SKIN->start_table( "Group Promotion" );
if ($group['g_id'] == $INFO['admin_group'])
{
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Choose 'Don't Promote' to disable promotions</b><br>".$SKIN->js_help_link('mg_promote') ,
"Feature disable for the root admin group, after all - if you're at the top where can you be promoted to?"
) );
}
else
{
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Choose 'Don't Promote' to disable promotions</b><br>".$SKIN->js_help_link('mg_promote') ,
'Promote members of this group to: '.$SKIN->form_dropdown("g_promotion_id", $all_groups, $group['g_promotion_id'] )
.'<br>when they reach '.$SKIN->form_simple_input('g_promotion_posts', $group['g_promotion_posts'] ).' posts'
) );
}
$ADMIN->html .= $SKIN->end_form($button);
$ADMIN->html .= $SKIN->end_table();
+9 -3
View File
@@ -2,10 +2,10 @@
/*
+--------------------------------------------------------------------------
| IBFORUMS v1
| Invision Board v1.1
| ========================================
| by Matthew Mecham and David Baxter
| (c) 2001,2002 IBForums
| by Matthew Mecham
| (c) 2001,2002 Invision Power Services
| http://www.ibforums.com
| ========================================
| Web: http://www.ibforums.com
@@ -87,6 +87,8 @@ class ad_settings {
$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();
@@ -184,6 +186,8 @@ class ad_settings {
$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();
@@ -214,6 +218,8 @@ class ad_settings {
$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();
File diff suppressed because it is too large. Load diff
+9 -4
View File
@@ -2,10 +2,10 @@
/*
+--------------------------------------------------------------------------
| IBFORUMS v1
| Invision Board v1.1
| ========================================
| by Matthew Mecham and David Baxter
| (c) 2001,2002 IBForums
| by Matthew Mecham
| (c) 2001,2002 Invision Power Services
| http://www.ibforums.com
| ========================================
| Web: http://www.ibforums.com
@@ -46,6 +46,11 @@ class index_page {
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
//-------------------------------------------------
@@ -119,7 +124,7 @@ class index_page {
$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'],
"&nbsp;", "&nbsp;",
"<a href='{$SKIN->base_url}&act=mem&code=mod'>COPPA Requests</a> from 'Users awaiting validation' total", $coppa['coppa'],
) );
$ADMIN->html .= $SKIN->end_table();
+143
View File
@@ -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();
}
}
?>
+76 -7
View File
@@ -2,10 +2,10 @@
/*
+--------------------------------------------------------------------------
| IBFORUMS v1
| Invision Board v1.1
| ========================================
| by Matthew Mecham and David Baxter
| (c) 2001,2002 IBForums
| by Matthew Mecham
| (c) 2001,2002 Invision Power Services
| http://www.ibforums.com
| ========================================
| Web: http://www.ibforums.com
@@ -75,6 +75,10 @@ class ad_langs {
$this->doimport();
break;
case 'makedefault':
$this->make_default();
break;
//-------------------------
default:
$this->list_current();
@@ -83,6 +87,36 @@ class ad_langs {
}
//--------------------------------------------
function make_default()
{
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_GET_VARS;
$new_dir = stripslashes(urldecode(trim($HTTP_GET_VARS['id'])));
if ($new_dir == "")
{
$ADMIN->error("Could not resolve the new ID for the default lang pack stuff thingy thanks");
}
// Update conf file
$ADMIN->rebuild_config( array( 'default_language' => $new_dir ) );
// Bring it all back to yoooo!
$std->boink_it($SKIN->base_url."&act=lang");
}
//--------------------------------------------
function doimport()
{
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
@@ -94,11 +128,11 @@ class ad_langs {
require $root_dir."sources/lib/tar.php";
$to_dir = $INFO['base_dir']."/lang";
$to_dir = $INFO['base_dir']."lang";
$tarname = $IN['tarball'];
$from_dir = $INFO['base_dir']."/archive_in";
$from_dir = $INFO['base_dir']."archive_in";
$tar = new tar();
@@ -599,6 +633,18 @@ class ad_langs {
$ADMIN->error("Could not query the language information from the database");
}
// Is it default??????????????? ok enuff
if ($INFO['default_language'] == "")
{
$INFO['default_language'] = 'en';
}
if ($row['ldir'] == $INFO['default_language'])
{
$ADMIN->error("You cannot remove this language pack while it is the default language directory. Please select another pack to be the default and try again");
}
if ( $ADMIN->rm_dir( $INFO['base_dir']."lang/".$row['ldir'] ) )
{
@@ -882,6 +928,11 @@ class ad_langs {
{
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
if ($INFO['default_language'] == "")
{
$INFO['default_language'] = 'en';
}
$form_array = array();
$ADMIN->page_detail = "You can edit, remove and create new language packs from this section";
@@ -909,6 +960,15 @@ class ad_langs {
while ( $r = $DB->fetch_row() )
{
if ($INFO['default_language'] == $r['ldir'])
{
$root = "<span style='color:red;font-weight:bold'> (Default Language)</span>";
}
else
{
$root = " ( <a href='{$SKIN->base_url}&act=lang&code=makedefault&id=".urlencode($r['ldir'])."'>Make Default Language</a> )";
}
$show_array[ $r['lid'] ] .= stripslashes($r['lname'])."<br>";
if ( in_array( $r['lid'], $used_ids ) )
@@ -916,7 +976,7 @@ class ad_langs {
continue;
}
$ADMIN->html .= $SKIN->add_td_row( array( "<b>".stripslashes($r['lname'])."</b>",
$ADMIN->html .= $SKIN->add_td_row( array( "<b>".stripslashes($r['lname'])."</b> $root",
"<center>{$r['mcount']}</center>",
"<center><a href='".$SKIN->base_url."&act=lang&code=export&id={$r['lid']}'>Export</a></center>",
"<center><a href='".$SKIN->base_url."&act=lang&code=edit&id={$r['lid']}'>Edit</a></center>",
@@ -953,7 +1013,16 @@ class ad_langs {
while ( $r = $DB->fetch_row() )
{
$ADMIN->html .= $SKIN->add_td_row( array( "<b>".stripslashes($r['lname'])."</b>",
if ($INFO['default_language'] == $r['ldir'])
{
$root = "<span style='color:red;font-weight:bold'> (Default Language)</span>";
}
else
{
$root = " ( <a href='{$SKIN->base_url}&act=lang&code=makedefault&id=".urlencode($r['ldir'])."'>Make Default Language</a> )";
}
$ADMIN->html .= $SKIN->add_td_row( array( "<b>".stripslashes($r['lname'])."</b> $root",
"<center><a href='".$SKIN->base_url."&act=lang&code=export&id={$r['lid']}'>Export</a></center>",
"<center><a href='".$SKIN->base_url."&act=lang&code=edit&id={$r['lid']}'>Edit</a></center>",
"<center><a href='javascript:checkdelete(\"act=lang&code=remove&id={$r['lid']}\")'>Remove</a></center>",
File diff suppressed because it is too large. Load diff
+203 -59
View File
@@ -2,10 +2,10 @@
/*
+--------------------------------------------------------------------------
| IBFORUMS v1
| Invision Board v1.1
| ========================================
| by Matthew Mecham and David Baxter
| (c) 2001,2002 IBForums
| by Matthew Mecham
| (c) 2001,2002 Invision Power Services
| http://www.ibforums.com
| ========================================
| Web: http://www.ibforums.com
@@ -82,8 +82,13 @@ class ad_mod {
$ADMIN->error("You did not choose a valid moderator ID");
}
$DB->query("SELECT member_name FROM ibf_moderators WHERE mid='".$IN['mid']."'");
$mod = $DB->fetch_row();
$DB->query("DELETE FROM ibf_moderators WHERE mid='".$IN['mid']."'");
$ADMIN->save_log("Removed Moderator '{$mod['member_name']}'");
$ADMIN->done_screen("Moderator Removed", "Moderator Control", "act=mod" );
}
@@ -104,6 +109,9 @@ class ad_mod {
$ADMIN->error("You did not choose a valid moderator ID");
}
$DB->query("SELECT member_name FROM ibf_moderators WHERE mid='".$IN['mid']."'");
$mod = $DB->fetch_row();
//--------------------------------------
// Build Mr Hash
//--------------------------------------
@@ -125,6 +133,7 @@ class ad_mod {
'post_q' => $IN['post_q'],
'topic_q' => $IN['topic_q'],
'allow_warn' => $IN['allow_warn'],
'split_merge' => $IN['split_merge'],
'edit_user' => $IN['edit_user']
);
@@ -134,6 +143,8 @@ class ad_mod {
$DB->query("UPDATE ibf_moderators SET $db_string WHERE mid='".$IN['mid']."'");
$ADMIN->save_log("Edited Moderator '{$mod['member_name']}'");
$ADMIN->done_screen("Moderator Edited", "Moderator Control", "act=mod" );
}
@@ -153,16 +164,75 @@ class ad_mod {
$ADMIN->error("You did not choose any forums to add this member to");
}
if ($IN['mem'] == "")
//--------------------------------------
// Build Mr Hash
//--------------------------------------
$mr_hash = array(
'edit_post' => $IN['edit_post'],
'edit_topic' => $IN['edit_topic'],
'delete_post' => $IN['delete_post'],
'delete_topic' => $IN['delete_topic'],
'view_ip' => $IN['view_ip'],
'open_topic' => $IN['open_topic'],
'close_topic' => $IN['close_topic'],
'mass_move' => $IN['mass_move'],
'mass_prune' => $IN['mass_prune'],
'move_topic' => $IN['move_topic'],
'pin_topic' => $IN['pin_topic'],
'unpin_topic' => $IN['unpin_topic'],
'post_q' => $IN['post_q'],
'topic_q' => $IN['topic_q'],
'allow_warn' => $IN['allow_warn'],
'split_merge' => $IN['split_merge'],
'edit_user' => $IN['edit_user']
);
if ($IN['mod_type'] == 'group')
{
$ADMIN->error("You did not choose a member to add as a moderator");
if ($IN['gid'] == "")
{
$ADMIN->error("We could not match that group ID");
}
$DB->query("SELECT g_id, g_title FROM ibf_groups WHERE g_id='".$IN['gid']."'");
if ( ! $group = $DB->fetch_row() )
{
$ADMIN->error("We could not match that group ID");
}
$mr_hash['member_name'] = '-1';
$mr_hash['member_id'] = '-1';
$mr_hash['group_id'] = $group['g_id'];
$mr_hash['group_name'] = $group['g_title'];
$mr_hash['is_group'] = 1;
$ad_log = "Added Group '{$group['g_title']}' as a moderator";
}
$DB->query("SELECT id, name from ibf_members WHERE id='".$IN['mem']."'");
if ( ! $mem = $DB->fetch_row() )
else
{
$ADMIN->error("Could not match that member name so there.");
if ($IN['mem'] == "")
{
$ADMIN->error("You did not choose a member to add as a moderator");
}
$DB->query("SELECT id, name from ibf_members WHERE id='".$IN['mem']."'");
if ( ! $mem = $DB->fetch_row() )
{
$ADMIN->error("Could not match that member name so there.");
}
$mr_hash['member_name'] = $mem['name'];
$mr_hash['member_id'] = $mem['id'];
$mr_hash['is_group'] = 0;
$ad_log = "Added Member '{$mem['name']}' as a moderator";
}
//--------------------------------------
@@ -183,30 +253,7 @@ class ad_mod {
$ADMIN->error("We could not match any forums with those IDS");
}
//--------------------------------------
// Build Mr Hash
//--------------------------------------
$mr_hash = array(
'member_name' => $mem['name'],
'member_id' => $mem['id'],
'edit_post' => $IN['edit_post'],
'edit_topic' => $IN['edit_topic'],
'delete_post' => $IN['delete_post'],
'delete_topic' => $IN['delete_topic'],
'view_ip' => $IN['view_ip'],
'open_topic' => $IN['open_topic'],
'close_topic' => $IN['close_topic'],
'mass_move' => $IN['mass_move'],
'mass_prune' => $IN['mass_prune'],
'move_topic' => $IN['move_topic'],
'pin_topic' => $IN['pin_topic'],
'unpin_topic' => $IN['unpin_topic'],
'post_q' => $IN['post_q'],
'topic_q' => $IN['topic_q'],
'allow_warn' => $IN['allow_warn'],
'edit_user' => $IN['edit_user']
);
//--------------------------------------
// Loopy loopy
@@ -221,6 +268,8 @@ class ad_mod {
$DB->query("INSERT INTO ibf_moderators (" .$kenny['FIELD_NAMES']. ") VALUES (". $kenny['FIELD_VALUES'] .")");
}
$ADMIN->save_log($ad_log);
$ADMIN->done_screen("Moderator Added", "Moderator Control", "act=mod" );
}
@@ -234,6 +283,8 @@ class ad_mod {
function mod_form( $type='add' ) {
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
$group = array();
if ($type == 'add')
{
if ($IN['fid'] == "")
@@ -261,25 +312,42 @@ class ad_mod {
$form_code = 'doadd';
if ($IN['MEMBER_ID'] == "")
if ($IN['mod_type'] == 'group')
{
$ADMIN->error("Could not resolve the member id bucko");
$DB->query("SELECT g_id, g_title FROM ibf_groups WHERE g_id='".$IN['mod_group']."'");
if (! $group = $DB->fetch_row() )
{
$ADMIN->error("Could not find that group to add as a moderator");
}
$ADMIN->page_detail = "Adding <b>group: {$group['g_title']}</b> as a moderator to: $thenames";
$ADMIN->page_title = "Add a moderator group";
}
else
{
$DB->query("SELECT name, id FROM ibf_members WHERE id='".$IN['MEMBER_ID']."'");
if ( ! $mem = $DB->fetch_row() )
if ($IN['MEMBER_ID'] == "")
{
$ADMIN->error("That member ID does not resolve");
$ADMIN->error("Could not resolve the member id bucko");
}
else
{
$DB->query("SELECT name, id FROM ibf_members WHERE id='".$IN['MEMBER_ID']."'");
if ( ! $mem = $DB->fetch_row() )
{
$ADMIN->error("That member ID does not resolve");
}
$member_id = $mem['id'];
$member_name = $mem['name'];
}
$member_id = $mem['id'];
$member_name = $mem['name'];
}
$ADMIN->page_detail = "Adding a $member_name as a moderator to: $thenames";
$ADMIN->page_title = "Add a moderator";
$ADMIN->page_detail = "Adding a $member_name as a moderator to: $thenames";
$ADMIN->page_title = "Add a moderator";
}
}
else
@@ -310,11 +378,14 @@ class ad_mod {
//+-------------------------------
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , $form_code ),
2 => array( 'act' , 'mod' ),
3 => array( 'mid' , $mod['mid']),
4 => array( 'fid' , $IN['fid'] ),
5 => array( 'mem' , $member_id ),
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , $form_code ),
2 => array( 'act' , 'mod' ),
3 => array( 'mid' , $mod['mid']),
4 => array( 'fid' , $IN['fid'] ),
5 => array( 'mem' , $member_id ),
6 => array( 'mod_type' , $IN['mod_type'] ),
7 => array( 'gid' , $group['g_id'] ),
8 => array( 'gname' , $group['g_name'] ),
) );
//+-------------------------------
@@ -386,6 +457,10 @@ class ad_mod {
$SKIN->form_yes_no("unpin_topic", $mod['unpin_topic'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Can split / merge topics?</b>" ,
$SKIN->form_yes_no("split_merge", $mod['split_merge'] )
) );
$ADMIN->html .= $SKIN->end_table();
//+-------------------------------
@@ -484,13 +559,14 @@ class ad_mod {
$ADMIN->page_title = "Add a moderator";
$ADMIN->page_detail = "Please find a member to moderate the forums you previously selected.";
$ADMIN->page_detail = "Please find a member or group to moderate the forums you previously selected.";
//+-------------------------------
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'add_two' ),
2 => array( 'act' , 'mod' ),
3 => array( 'fid' , $fid ),
4 => array( 'mod_type' , $IN['mod_type'] ),
) );
//+-------------------------------
@@ -500,16 +576,45 @@ class ad_mod {
//+-------------------------------
$ADMIN->html .= $SKIN->start_table( "Search for a member" );
if ($IN['mod_type'] == 'member')
{
$ADMIN->html .= $SKIN->start_table( "Search for a member" );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Enter part or all of the usersname</b>" ,
$SKIN->form_input( "USER_NAME" )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Enter part or all of the usersname</b>" ,
$SKIN->form_input( "USER_NAME" )
) );
$ADMIN->html .= $SKIN->end_form("Find Member");
$ADMIN->html .= $SKIN->end_form("Find Member");
$ADMIN->html .= $SKIN->end_table();
$ADMIN->html .= $SKIN->end_table();
}
else
{
// Get the group ID's and names
$mem_group = array();
$DB->query("SELECT g_id, g_title FROM ibf_groups ORDER BY g_title");
while ( $r = $DB->fetch_row() )
{
$mem_group[] = array( $r['g_id'] , $r['g_title'] );
}
$ADMIN->html .= $SKIN->start_table( "Choose a group as a moderator" );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Select a group</b>" ,
$SKIN->form_dropdown( "mod_group", $mem_group )
) );
$ADMIN->html .= $SKIN->end_form("Add this group");
$ADMIN->html .= $SKIN->end_table();
}
$ADMIN->output();
@@ -525,6 +630,16 @@ class ad_mod {
function add_two() {
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
// Are we adding a group as a mod? If so, bounce straight to the mod perms form
if ($IN['mod_type'] == 'group')
{
$this->mod_form();
exit();
}
// Else continue as normal.
if ($IN['USER_NAME'] == "")
{
$ADMIN->error("You didn't choose a member name to look for!");
@@ -668,11 +783,22 @@ class ad_mod {
{
if ($data['forum_id'] == $r['id'])
{
$mod_string .= "<tr>
<td width='60%'>{$data['member_name']}</td>
if ($data['is_group'] == 1)
{
$mod_string .= "<tr>
<td width='60%'>Group: {$data['group_name']}</td>
<td width='20%'><a href='{$ADMIN->base_url}&act=mod&code=remove&mid={$data['mid']}'>Remove</a></td>
<td width='20%'><a href='{$ADMIN->base_url}&act=mod&code=edit&mid={$data['mid']}'>Edit</a></td>
</tr>";
}
else
{
$mod_string .= "<tr>
<td width='60%'>{$data['member_name']}</td>
<td width='20%'><a href='{$ADMIN->base_url}&act=mod&code=remove&mid={$data['mid']}'>Remove</a></td>
<td width='20%'><a href='{$ADMIN->base_url}&act=mod&code=edit&mid={$data['mid']}'>Edit</a></td>
</tr>";
}
}
}
@@ -718,11 +844,22 @@ class ad_mod {
{
if ($data['forum_id'] == $rd['id'])
{
$mod_string .= "<tr>
<td width='60%'>{$data['member_name']}</td>
if ($data['is_group'] == 1)
{
$mod_string .= "<tr>
<td width='60%'>Group: {$data['group_name']}</td>
<td width='20%'><a href='{$ADMIN->base_url}&act=mod&code=remove&mid={$data['mid']}'>Remove</a></td>
<td width='20%'><a href='{$ADMIN->base_url}&act=mod&code=edit&mid={$data['mid']}'>Edit</a></td>
</tr>";
}
else
{
$mod_string .= "<tr>
<td width='60%'>{$data['member_name']}</td>
<td width='20%'><a href='{$ADMIN->base_url}&act=mod&code=remove&mid={$data['mid']}'>Remove</a></td>
<td width='20%'><a href='{$ADMIN->base_url}&act=mod&code=edit&mid={$data['mid']}'>Edit</a></td>
</tr>";
}
}
}
@@ -748,6 +885,13 @@ class ad_mod {
}
}
$ADMIN->html .= $SKIN->add_td_basic( "<b>Type of moderator to add:</b> &nbsp;" . $SKIN->form_dropdown( "mod_type",
array(
0 => array( 'member', 'Single Member' ),
1 => array( 'group', 'Member Group' )
)
) , "center" );
$ADMIN->html .= $SKIN->end_form("Add a moderator to the selected forums");
$ADMIN->html .= $SKIN->end_table();
+5 -3
View File
@@ -2,10 +2,10 @@
/*
+--------------------------------------------------------------------------
| IBFORUMS v1
| Invision Board v1.1
| ========================================
| by Matthew Mecham and David Baxter
| (c) 2001,2002 IBForums
| by Matthew Mecham
| (c) 2001,2002 Invision Power Services
| http://www.ibforums.com
| ========================================
| Web: http://www.ibforums.com
@@ -184,6 +184,8 @@ class ad_modlogs {
$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();
+985
View File
@@ -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( "&nbsp;" , "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( "&nbsp;" , "60%" );
$SKIN->td_header[] = array( "&nbsp;" , "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( "&nbsp;" , "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( "&nbsp;" , "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( "&nbsp;" , "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 ("&nbsp;",
"<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>",
"&nbsp;",
) );
}
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;
}
}
?>
+442
View File
@@ -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( "&nbsp;" , "40%" );
$SKIN->td_header[] = array( "&nbsp;" , "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( "&nbsp;" , "40%" );
$SKIN->td_header[] = array( "&nbsp;" , "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 = '&nbsp;';
$req = '&nbsp;';
$regi = '&nbsp;';
"<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();
}
}
?>
+110
View File
@@ -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();
}
}
?>
+853
View File
@@ -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 = "&nbsp;&nbsp;&nbsp;<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>&nbsp;</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( "&nbsp;" , "60%" );
$SKIN->td_header[] = array( "&nbsp;" , "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( "/&lt;\{(\S+)\}&gt;/", $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( "&nbsp;" , "40%" );
$SKIN->td_header[] = array( "&nbsp;" , "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( "<" , "&lt;" , $html);
$html = str_replace( ">" , "&gt;" , $html);
$html = str_replace( "\"", "&quot;", $html);
if ($HTTP_GET_VARS['hl'] != "")
{
$hl = urldecode(stripslashes($HTTP_GET_VARS['hl']));
$hl = str_replace( "<" , "&lt;" , $hl);
$hl = str_replace( ">" , "&gt;" , $hl);
$hl = str_replace( "\"", "&quot;", $hl);
$html = str_replace( $hl, "<span style='color:red;font-weight:bold;background-color:yellow'>$hl</span>", $html );
}
$html = preg_replace( "!&lt;\!--(.+?)(//)?--&gt;!s" , "&#60;&#33;<span style='color:red'>--\\1--\\2</span>&#62;", $html );
$html = preg_replace( "#&lt;([^&<>]+)&gt;#s" , "&lt;<span style='color:blue'>\\1</span>&gt;" , $html ); //Matches <tag>
$html = preg_replace( "#&lt;([^&<>]+)=#s" , "&lt;<span style='color:blue'>\\1</span>=" , $html ); //Matches <tag
$html = preg_replace( "#&lt;/([^&]+)&gt;#s" , "&lt;/<span style='color:blue'>\\1</span>&gt;" , $html ); //Matches </tag>
$html = preg_replace( "!=(&quot;|')([^<>])(&quot;|')(\s|&gt;)!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;
}
}
?>
+253 -14
View File
@@ -2,10 +2,10 @@
/*
+--------------------------------------------------------------------------
| IBFORUMS v1
| Invision Board v1.1
| ========================================
| by Matthew Mecham and David Baxter
| (c) 2001,2002 IBForums
| by Matthew Mecham
| (c) 2001,2002 Invision Power Services
| http://www.ibforums.com
| ========================================
| Web: http://www.ibforums.com
@@ -45,7 +45,7 @@ class ad_settings {
$this->secure();
break;
case 'dosecure':
$this->save_config( array ( 'allow_dynamic_img','session_expiration','match_browser','allow_dup_email','allow_images', 'force_login', 'no_reg',
$this->save_config( array ( 'reg_antispam', 'disable_admin_anon', 'disable_online_ip', 'disable_reportpost', 'allow_dynamic_img','session_expiration','match_browser','allow_dup_email','allow_images', 'force_login', 'no_reg',
'allow_flash','new_reg_notify','use_mail_form','flood_control', 'allow_online_list', 'reg_auth_type' ) );
break;
//-------------------------
@@ -53,15 +53,15 @@ class ad_settings {
$this->post();
break;
case 'dopost':
$this->save_config( array ( 'guest_name_pre', 'guest_name_suf', 'max_w_flash', 'max_h_flash', 'hot_topic', 'display_max_topics','display_max_posts','max_emos','max_images','emo_per_row', 'etfilter_punct', 'etfilter_shout',
'max_post_length','show_img_upload','pre_polls','pre_moved','pre_pinned','img_ext' ) );
$this->save_config( array ( 'poll_tags', 'guest_name_pre', 'guest_name_suf', 'max_w_flash', 'max_h_flash', 'hot_topic', 'display_max_topics','display_max_posts','max_emos','max_images','emo_per_row', 'etfilter_punct', 'etfilter_shout',
'strip_quotes', 'max_post_length','show_img_upload','pre_polls','pre_moved','pre_pinned','img_ext' ) );
break;
//-------------------------
case 'avatars':
$this->avatars();
break;
case 'doavatars':
$this->save_config( array ( 'allow_skins', 'max_sig_length', 'sig_allow_ibc', 'sig_allow_html','avatar_ext','avatar_url','avup_size_max','avatars_on','avatar_dims','avatar_def', 'max_location_length', 'max_interest_length', 'post_titlechange', 'guests_ava', 'guests_img', 'guests_sig' ) );
$this->save_config( array ( 'subs_autoprune', 'topicpage_contents', 'postpage_contents', 'allow_skins', 'max_sig_length', 'sig_allow_ibc', 'sig_allow_html','avatar_ext','avatar_url','avup_size_max','avatars_on','avatar_dims','avatar_def', 'max_location_length', 'max_interest_length', 'post_titlechange', 'guests_ava', 'guests_img', 'guests_sig' ) );
break;
//-------------------------
case 'dates':
@@ -71,26 +71,35 @@ class ad_settings {
$this->save_config( array ( 'time_offset','clock_short','clock_joined','clock_long', 'time_adjust' ) );
break;
//-------------------------
case 'calendar':
$this->calendar();
break;
case 'docalendar':
$this->save_config( array ( 'show_calendar','calendar_limit', 'year_limit', 'start_year' ) );
break;
//-------------------------
case 'cpu':
$this->cpu();
break;
case 'docpu':
$this->save_config( array ( 'load_limit','show_active','show_birthdays','show_totals','allow_search', 'show_user_posted', 'nocache' ) );
$this->save_config( array ( 'no_au_forum', 'no_au_topic', 'au_cutoff', 'load_limit','show_active','show_birthdays','show_totals','allow_search', 'search_post_cut', 'show_user_posted', 'nocache' ) );
break;
//-------------------------
case 'url':
$this->url();
break;
case 'dourl':
$this->save_config( array ( 'email_in','email_out','board_name','board_url','home_name','home_url', 'disable_gzip',
'html_url','upload_url', 'upload_dir', 'print_headers', 'header_redirect', 'debug_level' ) );
$this->save_config( array ( 'safe_mode_skins', 'email_in','email_out','board_name','board_url','home_name','home_url', 'disable_gzip',
'html_url','upload_url', 'upload_dir', 'print_headers', 'header_redirect', 'debug_level', 'sql_debug' ) );
break;
//-------------------------
case 'pm':
$this->pm();
break;
case 'dopm':
$this->save_config( array ( 'max_messages', 'msg_allow_code', 'msg_allow_html' ) );
$this->save_config( array ( 'msg_allow_code', 'msg_allow_html' ) );
break;
//-------------------------
case 'news':
@@ -100,6 +109,13 @@ class ad_settings {
$this->save_config( array ( 'news_forum_id', 'index_news_link' ) );
break;
//-------------------------
case 'coppa':
$this->coppa();
break;
case 'docoppa':
$this->save_config( array ( 'use_coppa', 'coppa_fax', 'coppa_address' ) );
break;
//-------------------------
case 'board':
$this->board();
break;
@@ -138,6 +154,8 @@ class ad_settings {
case 'emo_doedit':
$this->doedit_emoticons();
break;
case 'emo_upload':
$this->upload_emoticon();
//-------------------------
case 'count':
$this->countstats();
@@ -154,6 +172,37 @@ class ad_settings {
//=====================================================
//-------------------------------------------------------------
// NEWS
//--------------------------------------------------------------
function coppa()
{
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
$this->common_header('docoppa', 'COPPA Set-Up', 'You may change the configuration below. Note, enabling <a href="http://www.ftc.gov/opa/1999/9910/childfinal.htm" target="_blank">COPPA</a> on your board will require children under the age of 13 to get parental consent via a faxed or mailed form.');
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Use COPPA registration system?</b>" ,
$SKIN->form_yes_no( "use_coppa", $INFO['use_coppa'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Fax number to receive COPPA forms</b>" ,
$SKIN->form_input( "coppa_fax", $form_array, $INFO['coppa_fax'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Mail address to receive COPPA forms</b>" ,
$SKIN->form_textarea( "coppa_address", $INFO['coppa_address'] )
) );
$this->common_footer();
}
//=====================================================
function docount()
{
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
@@ -264,6 +313,41 @@ class ad_settings {
}
//-------------------------------------------------------------
// CALENDAR
//--------------------------------------------------------------
function calendar()
{
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
$this->common_header('docalendar', 'Calendar Set Up', 'You may change the configuration below');
$INFO['start_year'] = (isset($INFO['start_year'])) ? $INFO['start_year'] : 2001;
$INFO['year_limit'] = (isset($INFO['year_limit'])) ? $INFO['year_limit'] : 5;
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Show forthcoming events?</b><br>This will show calendar events on the board index page in the stats section." ,
$SKIN->form_yes_no( "show_calendar", $INFO['show_calendar'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Show forthcoming events from today to [x] days ahead</b><br>This applies to the above option." ,
$SKIN->form_input( "calendar_limit", $INFO['calendar_limit'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Starting year for calendar 'Year' drop down box</b><br>This applies to view calendar / post event." ,
$SKIN->form_input( "start_year", $INFO['start_year'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Year end limit for 'Year' drop down box</b><br>This applies to view calendar / post event.<br>Example: current year is 2002, you enter 5 - last choosable year = 2007" ,
$SKIN->form_input( "year_limit", $INFO['year_limit'] )
) );
$this->common_footer();
}
//-------------------------------------------------------------
// URLs and ADDRESSES
//--------------------------------------------------------------
@@ -477,6 +561,51 @@ class ad_settings {
//=====================================================
function upload_emoticon()
{
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 );
if (! is_dir($INFO['html_dir'].'emoticons') )
{
$ADMIN->error("Could not locate the emoticons directory - make sure the 'html_dir' path is set correctly");
}
// 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") )
{
$ADMIN->error("No file was chosen to upload!");
}
//-------------------------------------------------
// Copy the upload to the uploads directory
//-------------------------------------------------
if (! @move_uploaded_file( $HTTP_POST_FILES['FILE_UPLOAD']['tmp_name'], $INFO['html_dir'].'emoticons'."/".$FILE_NAME) )
{
$ADMIN->error("The upload failed");
}
else
{
@chmod( $INFO['html_dir'].'emoticons'."/".$FILE_NAME, 0777 );
}
$std->boink_it($SKIN->base_url."&act=op&code=emo");
exit();
}
function emoticons()
{
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
@@ -598,6 +727,29 @@ class ad_settings {
$ADMIN->html .= $SKIN->end_table();
//+-------------------------------
//+-------------------------------
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'emo_upload' ),
2 => array( 'act' , 'op' ),
3 => array( 'MAX_FILE_SIZE', '10000000000' ),
) , "uploadform", " enctype='multipart/form-data'" );
$SKIN->td_header[] = array( "&nbsp;" , "40%" );
$SKIN->td_header[] = array( "&nbsp;" , "60%" );
$ADMIN->html .= $SKIN->start_table( "Upload an Emoticon to the emoticons directory" );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Choose a file from your computer to upload</b><br>After uploading, the emoticon will be selectable from the form above.",
$SKIN->form_upload(),
) );
$ADMIN->html .= $SKIN->end_form('Upload Emoticon');
$ADMIN->html .= $SKIN->end_table();
$ADMIN->output();
}
@@ -863,9 +1015,6 @@ class ad_settings {
$this->common_header('dopm', 'Messenger Set up', 'You may change the configuration below');
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Max. No. of storable messages?</b><br>Leave blank to not impose a limit" ,
$SKIN->form_input( "max_messages", $INFO['max_messages'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow IBF Code in messages?</b>" ,
$SKIN->form_yes_no( "msg_allow_code", $INFO['msg_allow_code'] )
@@ -936,11 +1085,16 @@ class ad_settings {
$SKIN->form_yes_no( "disable_gzip", $INFO['disable_gzip'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b><i>ENABLE</I> SQL Debug Mode?</b><br>(If yes, add '&debug=1' to any page to view mySQL debug info)" ,
$SKIN->form_yes_no( "sql_debug", $INFO['sql_debug'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Type of auto-redirect?</b><br>(This is for quick no page redirects)" ,
$SKIN->form_dropdown( 'header_redirect',
array(
0 => array( 'location', 'Location type (*nix savvy)' ),
1 => array( 'refresh' , 'Refresh (Windows savvy)' ),
2 => array( 'html' , 'HTML META redirect (If all else fails...)' ),
),
$INFO['header_redirect'] )
) );
@@ -956,6 +1110,15 @@ class ad_settings {
$INFO['debug_level'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Use safe mode skins?</b><br>(Note: You may need to resynchronise your template sets after changing this if you have custom/edited skins)" ,
$SKIN->form_dropdown( 'safe_mode_skins',
array(
0 => array( '0', 'No' ),
1 => array( '1' , 'Yes' ),
),
$INFO['safe_mode_skins'] )
) );
$this->common_footer();
@@ -975,6 +1138,11 @@ class ad_settings {
$this->common_header('docpu', 'CPU Saving', 'You can opt to turn some features off to minimize the resource footprint');
if ($INFO['au_cutoff'] == "")
{
$INFO['au_cutoff'] = 15;
}
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Server Load Limit</b><br>Will display 'busy' message when limit hit<br>Can be left blank for no limit" ,
$SKIN->form_input( "load_limit", $INFO['load_limit'] )
) );
@@ -983,6 +1151,10 @@ class ad_settings {
$SKIN->form_yes_no( "show_active", $INFO['show_active'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Cut off for active user display in minutes</b>" ,
$SKIN->form_input( "au_cutoff", $INFO['au_cutoff'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Show Birthdays?</b>" ,
$SKIN->form_yes_no( "show_birthdays", $INFO['show_birthdays'] )
) );
@@ -995,6 +1167,10 @@ class ad_settings {
$SKIN->form_yes_no( "allow_search", $INFO['allow_search'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Cut search post to [x] characters</b><br>Refers to when returning search results as posts" ,
$SKIN->form_input( "search_post_cut", $INFO['search_post_cut'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Mark topics a user has posted when displaying a forum?</b>" ,
$SKIN->form_yes_no( "show_user_posted", $INFO['show_user_posted'] )
) );
@@ -1003,6 +1179,14 @@ class ad_settings {
$SKIN->form_yes_no( "nocache", $INFO['nocache'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Remove 'Users Browsing this <u>forum</u>' feature?</b><br>(This save 1 query per forum view)" ,
$SKIN->form_yes_no( "no_au_forum", $INFO['no_au_forum'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Remove 'Users Browsing this <u>topic</u>' feature?</b><br>(This save 1 query per topic view)" ,
$SKIN->form_yes_no( "no_au_topic", $INFO['no_au_topic'] )
) );
$this->common_footer();
@@ -1135,6 +1319,31 @@ class ad_settings {
$SKIN->form_yes_no( "guests_ava", $INFO['guests_ava'] )
) );
//--------
if ($INFO['postpage_contents'] == "")
{
$INFO['postpage_contents'] = '5,10,15,20,25,30,35,40';
}
if ($INFO['topicpage_contents'] == "")
{
$INFO['topicpage_contents'] = '5,10,15,20,25,30,35,40';
}
$ADMIN->html .= $SKIN->add_td_row( array( "<b>User selectable posts per page dropdown contents</b><br>Separate with a comma, 'Use forum default' added automatically<br>Example: 5,15,20,25,30" ,
$SKIN->form_input( "postpage_contents", $INFO['postpage_contents'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>User selectable topics per forum page dropdown contents</b><br>Separate with a comma, 'Use forum default' added automatically<br>Example: 5,15,20,25,30" ,
$SKIN->form_input( "topicpage_contents", $INFO['topicpage_contents'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Auto prune all topic subscriptions if the topic has no replies over [x] days</b><br>Leave blank for no auto prune limit" ,
$SKIN->form_input( "subs_autoprune", $INFO['subs_autoprune'] )
) );
$this->common_footer();
@@ -1214,6 +1423,10 @@ class ad_settings {
$SKIN->form_input( "pre_polls", $INFO['pre_polls'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow [IMG] and [URL] tags in polls?</b>" ,
$SKIN->form_yes_no( "poll_tags", $INFO['poll_tags'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Stop shouting in topic titles?</b><br>(Will turn: CLICK HERE into Click Here)" ,
$SKIN->form_yes_no( "etfilter_shout", $INFO['etfilter_shout'] )
) );
@@ -1222,6 +1435,10 @@ class ad_settings {
$SKIN->form_yes_no( "etfilter_punct", $INFO['etfilter_punct'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Stop Quote Embedding?</b><br>This will remove any quoted text when quoting a post that contains quotes<br><a href='#' title='and if that made any sense, then you have a larger IQ than me.'>..</a>" ,
$SKIN->form_yes_no( "strip_quotes", $INFO['strip_quotes'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Guest names <i>prefix</i></b><br>(This is for when a guest posts with a members name, it allows for a visual difference to prevent confusion)" ,
$SKIN->form_input( "guest_name_pre", $INFO['guest_name_pre'] )
) );
@@ -1290,6 +1507,10 @@ class ad_settings {
)
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Enable Registration Bot Flood Control?</b><br>Forces users to input a random code to prevent bot's from spamming the registration.".$SKIN->js_help_link('s_reg_antispam') ,
$SKIN->form_yes_no( "reg_antispam", $INFO['reg_antispam'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Use secure mail form for member to member mails?</b><br>Hides users email addresses" ,
$SKIN->form_yes_no( "use_mail_form", $INFO['use_mail_form'] )
) );
@@ -1302,6 +1523,14 @@ class ad_settings {
$SKIN->form_yes_no( "allow_online_list", $INFO['allow_online_list'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Disable root admin group viewing anonymous online users?</b><br>Anonymous users have an asterisk after their name" ,
$SKIN->form_yes_no( "disable_admin_anon", $INFO['disable_admin_anon'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Disable root admin group viewing online users IP address in online user list?</b>" ,
$SKIN->form_yes_no( "disable_online_ip", $INFO['disable_online_ip'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Force guests to log in before allowing access to the board?</b>" ,
$SKIN->form_yes_no( "force_login", $INFO['force_login'] )
) );
@@ -1310,6 +1539,10 @@ class ad_settings {
$SKIN->form_yes_no( "no_reg", $INFO['no_reg'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Disable 'Report this post to a moderator' link?</b>" ,
$SKIN->form_yes_no( "disable_reportpost", $INFO['disable_reportpost'] )
) ); //
$this->common_footer();
@@ -1368,6 +1601,10 @@ class ad_settings {
$HTTP_POST_VARS[ $field ] = preg_replace( "/[\.\s]/", "" , $HTTP_POST_VARS[ $field ] );
$HTTP_POST_VARS[ $field ] = preg_replace( "/,/" , '|', $HTTP_POST_VARS[ $field ] );
}
else if ($field == 'coppa_address')
{
$HTTP_POST_VARS[ $field ] = nl2br( $HTTP_POST_VARS[ $field ] );
}
$HTTP_POST_VARS[ $field ] = preg_replace( "/'/", "&#39;", stripslashes($HTTP_POST_VARS[ $field ]) );
@@ -1378,6 +1615,8 @@ class ad_settings {
}
}
$ADMIN->save_log("Board Settings Updated, Back Up Written");
$ADMIN->done_screen("Forum Configurations updated", "Administration CP Home", "act=index" );
+321 -439
View File
@@ -2,10 +2,10 @@
/*
+--------------------------------------------------------------------------
| IBFORUMS v1
| Invision Board v1.1
| ========================================
| by Matthew Mecham and David Baxter
| (c) 2001,2002 IBForums
| by Matthew Mecham
| (c) 2001,2002 Invision Power Services
| http://www.ibforums.com
| ========================================
| Web: http://www.ibforums.com
@@ -150,9 +150,7 @@ class ad_langs {
{
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
$templates_dir = $INFO['base_dir']."style_templates";
$images_dir = $INFO['base_dir']."style_images";
$css_dir = $INFO['base_dir']."style_sheets";
$skins_dir = $INFO['base_dir']."Skin";
if (! is_writeable($images_dir) )
@@ -160,21 +158,6 @@ class ad_langs {
$ADMIN->error("Cannot write to the $images_dir directory, please set sufficient CHMOD permissions to allow this. IBF cannot do this for you.");
}
if (! is_writeable($css_dir) )
{
$ADMIN->error("Cannot write to the $css_dir directory, please set sufficient CHMOD permissions to allow this. IBF cannot do this for you.");
}
if (! is_dir($templates_dir) )
{
$ADMIN->error("Cannot write to the $templates_dir directory, It is not there.");
}
if (! is_writeable($templates_dir) )
{
$ADMIN->error("Cannot write to the $templates_dir directory, please set sufficient CHMOD permissions to allow this. IBF cannot do this for you.");
}
if (! is_dir($skins_dir) )
{
$ADMIN->error("Cannot write to the $skins_dir directory, It is not there.");
@@ -217,7 +200,7 @@ class ad_langs {
@chmod($this->work_path."/".$new_dir, 0777);
$next_id = array( 'css' => 0, 'wrap' => 0, 'templates' => 0, 'images' => 0 );
$next_id = array( 'css' => 0, 'wrap' => 0, 'templates' => 0, 'macro' => 0 );
//------------------------------------------------------
// Add a dummy entries into the DB to get the next insert ID
@@ -239,24 +222,21 @@ class ad_langs {
$next_id['wrap'] = $DB->get_insert_id();
//------------------------------------------------------
// Get the new macro set_id
//------------------------------------------------------
$DB->query("INSERT INTO ibf_images SET setname=\"".$this->name_translated." (Set Import)\"");
$DB->query("SELECT MAX(set_id) as max FROM ibf_macro_name");
$next_id['images'] = $DB->get_insert_id();
$max = $DB->fetch_row();
$next_id['macro'] = $max['max'] + 1;
//------------------------------------------------------
// Attempt to create the new directories
//------------------------------------------------------
if (! mkdir($templates_dir."/".$next_id['templates'], 0777) )
{
$this->import_error("Could not create a new directory in style_templates", $next_id);
}
@chmod($templates_dir."/".$next_id['templates'], 0777);
//-----------------------------------------------------
$next_id['images'] = str_replace( " ", "_", substr($this->name_translated,0,8) ) . '-'. substr( time(), 7,10);
if (! mkdir($images_dir."/".$next_id['images'], 0777) )
{
@@ -283,28 +263,6 @@ class ad_langs {
$this->import_error($this->tar->error, $next_id);
}
//------------------------------------------------------
// Make sure config file is present and correct and stuff
//------------------------------------------------------
if ( ! file_exists($this->work_path."/".$new_dir."/templates/config.php") )
{
$this->import_error("Master template set configuration file 'config.php' is missing from this archive, terminating import", $next_id);
}
//------------------------------------------------------
if ( ! file_exists($this->work_path."/".$new_dir."/img_conf.inc") )
{
$this->import_error("Image and macro set configuration file 'img_conf.inc' is missing from this archive, terminating import", $next_id);
}
require $this->work_path."/".$new_dir."/img_conf.inc";
$image_config = $config;
unset($config);
//------------------------------------------------------
if ( file_exists($this->work_path."/".$new_dir."/templates_conf.inc") )
@@ -316,11 +274,6 @@ class ad_langs {
'url' => stripslashes($config['url']),
);
$skin_set_config = array(
'tbl_width' => stripslashes($config['tbl_width']),
'tbl_border' => stripslashes($config['tbl_border']),
);
$db_string = $DB->compile_db_update_string( $template_config );
$DB->query("UPDATE ibf_tmpl_names SET $db_string WHERE skid='{$next_id['templates']}'");
@@ -348,17 +301,6 @@ class ad_langs {
$DB->query("UPDATE ibf_css SET $css_string WHERE cssid='{$next_id['css']}'");
if ( $FHD = fopen( $INFO['base_dir']."style_sheets/stylesheet_".$next_id['css'].".css", 'w') )
{
fwrite($FHD, $css, strlen($css) );
fclose($FHD);
}
else
{
$this->import_error("Could not write new style sheet to 'style_sheets' directory, please check the permission and re-try", $next_id);
}
}
else
{
@@ -403,44 +345,96 @@ class ad_langs {
}
//------------------------------------------------------
// Fix up the images db table
// Import the Macro's
//------------------------------------------------------
$new_array = array();
foreach($image_config as $k => $v)
if ($FH = fopen( $this->work_path."/".$new_dir."/macro.txt", 'r' ) )
{
if ( ($k == 'imid') or ($k == 'setname') )
$data = fread($FH, filesize($this->work_path."/".$new_dir."/macro.txt") );
fclose($FH);
$init_array = array();
$final_keys = array();
$init_array = explode("\n", $data);
foreach( $init_array as $l )
{
continue;
if (preg_match( "~=~", $l ) )
{
// is valid line
list($k, $v) = explode( "~=~", $l );
$k = trim($k);
$v = trim($v);
$final_keys[$k] = $v;
}
}
$v = stripslashes($v);
foreach( $final_keys as $k => $v)
{
if ($v == '*UNASSIGNED*')
{
$v = "";
}
$v = preg_replace( "#/%img_dir%/#", "/".$next_id['images']."/", $v );
$str = $DB->compile_db_insert_string( array (
'macro_value' => stripslashes($k),
'macro_replace' => stripslashes($v),
'macro_set' => $next_id['macro'],
'can_remove' => 1,
) );
$DB->query("INSERT INTO ibf_macro ({$str['FIELD_NAMES']}) VALUES({$str['FIELD_VALUES']})");
}
// Add the macro name
$DB->query("INSERT INTO ibf_macro_name SET set_id='".$next_id['macro']."', set_name='".$this->name_translated."'");
$new_array[ $k ] = $v;
}
$db_string = $DB->compile_db_update_string( $new_array );
$DB->query("UPDATE ibf_images SET $db_string WHERE imid='{$next_id['images']}'");
unset($db_string);
//------------------------------------------------------
// Attempt to copy over the template files
//------------------------------------------------------
if (! $ADMIN->copy_dir($this->work_path."/".$new_dir."/templates", $templates_dir."/".$next_id['templates']) )
else
{
$this->import_error("Could not import templates, terminating the import", $next_id);
$this->import_error("Could not read the macro.txt file contained in the skin you're importing.", $next_id);
}
$tmpl_string = $DB->compile_db_update_string( $template_config );
$DB->query("UPDATE ibf_tmpl_names SET $tmpl_string WHERE skid='{$next_id['templates']}'");
//------------------------------------------------------
// Import the TEMPLATES - wohoo, this'll make the server burn
//------------------------------------------------------
if ($FH = fopen( $this->work_path."/".$new_dir."/templates.html", 'r' ) )
{
$data = fread($FH, filesize($this->work_path."/".$new_dir."/templates.html") );
fclose($FH);
//-------------------------------------------------
// Divide the file up into different sections
//-------------------------------------------------
preg_match_all( "/<!--IBF_GROUP_START:(\S+?)-->(.+?)<!--IBF_GROUP_END:\S+?-->/s", $data, $match );
for ($i=0; $i < count($match[0]); $i++)
{
$match[1][$i] = trim($match[1][$i]);
$match[2][$i] = trim($match[2][$i]);
// Pass it on to our handler..
$this->process_template_group($match[2][$i], $next_id['templates'], $match[1][$i], 1 );
}
}
else
{
$this->import_error("Could not read the templates.html file contained in the skin you're importing.", $next_id);
}
//------------------------------------------------------
// Add a new row to the skins table.
//------------------------------------------------------
@@ -457,186 +451,256 @@ class ad_langs {
'sid' => $set['new_id'],
'set_id' => $next_id['templates'],
'tmpl_id' => $next_id['wrap'],
'img_id' => $next_id['images'],
'img_dir' => $next_id['images'],
'css_id' => $next_id['css'],
'tbl_width' => $skin_set_config['tbl_width'],
'tbl_border' => $skin_set_config['tbl_border'],
'macro_id' => $next_id['macro'],
'hidden' => 0,
'default_set' => 0
) );
$DB->query("INSERT INTO ibf_skins (".$skin_string['FIELD_NAMES'].") VALUES(".$skin_string['FIELD_VALUES'].")");
//------------------------------------------------------
// Resynchronise the PHP files wid' da' HTML templates
//------------------------------------------------------
$ADMIN->rm_dir($this->work_path."/".$new_dir);
$templates_dir .= "/" .$next_id['templates'];
$skins_dir .= "/s".$next_id['templates'];
$errors = array();
$errors = $this->rebuild_phpskin( $templates_dir, $skins_dir );
if ( is_array($errors) )
{
if (count($errors > 0))
{
$ADMIN->html .= $SKIN->start_table("Errors and warnings");
$ADMIN->html .= $SKIN->add_td_basic( implode("<br>", $errors) );
$ADMIN->html .= $SKIN->end_table();
}
}
$ADMIN->done_screen("Skin set Imported", "Manage Skin sets", "act=sets" );
}
//------------------------------------------------------
//process the template group
//------------------------------------------------------
function process_template_group($raw, $setid, $group, $isnew=0)
{
global $IN, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
$root_path = $INFO['base_dir'];
$skin_dir = $root_path."Skin/s".$setid;
//-------------------------------------------
// If we are not using safe mode skins, lets
// test to make sure we can write to that dir
//-------------------------------------------
if ($INFO['safe_mode_skins'] != 1)
{
if (SAFE_MODE_ON == 1)
{
if ($isnew == 1)
{
$DB->query("DELETE FROM ibf_tmpl_names WHERE skid='$setid'");
}
$ADMIN->error("Safe mode detected, you will need to change the board configuration to switch 'Safe Mode Skins' on. To do this, click on the 'Board Settings' menu and choose 'Basic Config' when the sub menu appears.");
}
// Are we creating a new template set?
// if so, lets create the directory
if ($isnew == 1)
{
if ( ! is_writeable($root_path.'Skin') )
{
$DB->query("DELETE FROM ibf_tmpl_names WHERE skid='$setid'");
$ADMIN->error("The directory 'Skin' is not writeable by this script. Please check the permissions on that directory. CHMOD to 0777 if in doubt and try again");
}
/*if ( ! file_exists($skin_dir) )
{
// Directory does not exist, lets create it
if ( ! @mkdir($skin_dir, 0777) )
{
$DB->query("DELETE FROM ibf_tmpl_names WHERE skid='$setid'");
$ADMIN->error("Could not create directory '$skin_dir' please check the CHMOD permissions and re-try");
}
else
{
@chmod($skin_dir, 0777);
}
}*/
}
else
{
if ( ! is_writeable($skin_dir) )
{
$ADMIN->error("Cannot write into '$skin_dir', please check the CHMOD value, and if needed, CHMOD to 0777 via FTP. IBF cannot do this for you.");
}
}
}
//--------------------------------
// Remove everything up until the
// first <!--START tag...
//--------------------------------
$raw = preg_replace( "/^.*?(<!--IBF_START_FUNC)/s", "\\1", trim($raw));
$raw = str_replace( "\r\n", "\n", $raw);
//+-------------------------------
// Convert the tags back to php native
//+-------------------------------
$raw = $this->unconvert_tags($raw);
//+-------------------------------
// Grab our vars and stuff
//+-------------------------------
$master = array();
$flag = 0;
$eachline = explode( "\n", $raw );
foreach ($eachline as $line)
{
if ($flag == 0)
{
// We're not gathering HTML, lets see if we have a new
// function start..
if ( preg_match( "/\s*<!--IBF_START_FUNC\|(\S+?)\|(.*?)-->\s*/", $line, $matches) )
{
$func = trim($matches[1]);
$data = trim($matches[2]);
if ($func != "")
{
$flag = $func;
$master[$func] = array( 'func_name' => $func,
'func_data' => $data,
'content' => ""
);
}
continue;
}
}
if ( preg_match("/\s*?<!--IBF_END_FUNC\|$flag-->\s*?/", $line) )
{
// We have found the end of the subbie..
// Reset the flag and feed the next line.
$flag = 0;
continue;
}
else
{
// Carry on feeding the HTML...
if ( isset($master[$flag]['content']) )
{
$master[$flag]['content'] .= $line."\n";
continue;
}
}
}
//+-------------------------------
// Start parsing the php skin file
//+-------------------------------
if ($INFO['safe_mode_skins'] != 1)
{
if (SAFE_MODE_ON == 1)
{
$ADMIN->error("Safe mode detected, you will need to change the board configuration to switch 'Safe Mode Skins' on. To do this, click on the 'Board Settings' menu and choose 'Basic Config' when the sub menu appears.");
}
$final = "<"."?php\n\n".
"class $group {\n\n";
foreach( $master as $func_name => $data )
{
$final .= "\n\nfunction ".trim($data['func_name'])."(".trim($data['func_data']).") {\n".
"global \$ibforums;\n".
"return <<<EOF\n";
$final .= trim($data['content']);
$final .= "\nEOF;\n}\n";
}
$final .= "\n\n}\n?".">";
if ($fh = fopen( $skin_dir."/".$group.".php", 'w' ) )
{
fwrite($fh, $final, strlen($final) );
fclose($fh);
@chmod( $skin_dir."/".$group.".php", 0777 );
}
else
{
if ($isnew == 1)
{
$DB->query("DELETE FROM ibf_tmpl_names WHERE skid='$setid'");
}
$errors[] = "Could not save information to $phpskin, please ensure that the CHMOD permissions are correct.";
}
}
//+-------------------------------
// Update the DB
//+-------------------------------
foreach( $master as $func_name => $data )
{
if ($isnew == 0)
{
$str = $DB->compile_db_update_string( array(
'section_content' => stripslashes(trim($data['content'])),
'func_data' => stripslashes(trim($data['func_data']))
) );
$DB->query("UPDATE ibf_skin_templates SET $str WHERE set_id='$setid' AND group_name='$group' AND func_name='".trim($data['func_name'])."'");
}
else
{
$str = $DB->compile_db_insert_string( array(
'section_content' => stripslashes(trim($data['content'])),
'func_data' => stripslashes(trim($data['func_data'])),
'set_id' => $setid,
'group_name' => $group,
'func_name' => trim($data['func_name']),
'can_remove' => 0,
) );
$DB->query("INSERT INTO ibf_skin_templates ({$str['FIELD_NAMES']}) VALUES({$str['FIELD_VALUES']})");
}
}
return TRUE;
}
//-------------------------------------------------------------------
//-------------------------------------------------------------------
function template_import()
{
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
$templates_dir = $INFO['base_dir']."style_templates";
$skins_dir = $INFO['base_dir']."Skin";
if (! is_dir($templates_dir) )
{
$ADMIN->error("Cannot write to the $images_dir directory, It is not there.");
}
if (! is_writeable($templates_dir) )
{
$ADMIN->error("Cannot write to the $images_dir directory, please set sufficient CHMOD permissions to allow this. IBF cannot do this for you.");
}
if (! is_dir($skins_dir) )
{
$ADMIN->error("Cannot write to the $skins_dir directory, It is not there.");
}
if (! is_writeable($skins_dir) )
{
$ADMIN->error("Cannot write to the $skins_dir directory, please set sufficient CHMOD permissions to allow this. IBF cannot do this for you.");
}
//------------------------------------------------------
$this->tar->new_tar( $this->work_path, $this->tar_file );
$files = $this->tar->list_files();
if (! $this->check_archive($files) )
{
$ADMIN->error("That is not a valid tar-achive, please re-upload in binary and try again");
}
//------------------------------------------------------
// Add a dummy entry into the DB to get the next insert ID
//------------------------------------------------------
$DB->query("SELECT COUNT(*) as count FROM ibf_tmpl_names");
$count = $DB->fetch_row();
$DB->query("INSERT INTO ibf_tmpl_names SET skname=\"".$this->name_translated." (Import).{$count['count']}\"");
$new_id = $DB->get_insert_id();
if ($new_id == "")
{
$ADMIN->error("Could not write to the database");
}
//------------------------------------------------------
// Attempt a mkdir
//------------------------------------------------------
if (! mkdir($templates_dir."/".$new_id, 0777) )
{
$DB->query("DELETE FROM ibf_tmpl_names WHERE skid='$new_id'");
$ADMIN->error("Could not create a new directory in style_templates");
}
@chmod($templates_dir."/".$new_id, 0777);
//-----------------------------------------------------
if (! mkdir($skins_dir."/s".$new_id, 0777) )
{
$DB->query("DELETE FROM ibf_tmpl_names WHERE skid='$new_id'");
$ADMIN->error("Could not create a new directory in Skin");
}
@chmod($skins_dir."/s".$new_id, 0777);
//------------------------------------------------------
$this->tar->extract_files($templates_dir."/".$new_id);
if ($this->tar->error != "")
{
$DB->query("DELETE FROM ibf_tmpl_names WHERE skid='$new_id'");
$ADMIN->error( $this->tar->error );
}
//------------------------------------------------------
// Make sure config file is present and correct and stuff
//------------------------------------------------------
if ( ! file_exists($templates_dir."/".$new_id."/config.php") )
{
$DB->query("DELETE FROM ibf_tmpl_names WHERE skid='$new_id'");
$ADMIN->error( "Master template set configuration file 'config.php' is missing from this archive, terminating import" );
}
//------------------------------------------------------
if ( file_exists($templates_dir."/".$new_id."/conf.inc") )
{
require $templates_dir."/".$new_id."/conf.inc";
$string = array( 'author' => stripslashes($config['author']),
'email' => stripslashes($config['email']),
'url' => stripslashes($config['url']),
);
$db_string = $DB->compile_db_update_string( $string );
$DB->query("UPDATE ibf_tmpl_names SET $db_string WHERE skid='$new_id'");
}
//------------------------------------------------------
// Resynchronise the PHP files wid' da' HTML templates
$templates_dir .= "/".$new_id;
$skins_dir .= "/s".$new_id;
$errors = $this->rebuild_phpskin( $templates_dir, $skins_dir );
if (count($errors > 0))
{
$ADMIN->html .= $SKIN->start_table("Errors and warnings");
$ADMIN->html .= $SKIN->add_td_basic( implode("<br>", $errors) );
$ADMIN->html .= $SKIN->end_table();
}
$ADMIN->done_screen("Template set Imported", "Manage Template sets", "act=templ" );
// Depreciated
}
@@ -645,108 +709,7 @@ class ad_langs {
function image_import()
{
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
$images_dir = $INFO['base_dir']."style_images";
if (! is_dir($images_dir) )
{
$ADMIN->error("Cannot write to the $images_dir directory, It is not there.");
}
if (! is_writeable($images_dir) )
{
$ADMIN->error("Cannot write to the $images_dir directory, please set sufficient CHMOD permissions to allow this. IBF cannot do this for you.");
}
//------------------------------------------------------
$this->tar->new_tar( $this->work_path, $this->tar_file );
$files = $this->tar->list_files();
if (! $this->check_archive($files) )
{
$ADMIN->error("That is not a valid tar-achive, please re-upload in binary and try again");
}
//------------------------------------------------------
// Add a dummy entry into the DB to get the next insert ID
//------------------------------------------------------
$DB->query("INSERT INTO ibf_images SET setname=\"".$this->name_translated." (Import)\"");
$new_id = $DB->get_insert_id();
if ($new_id == "")
{
$ADMIN->error("Could not write to the database");
}
//------------------------------------------------------
// Attempt a mkdir
//------------------------------------------------------
if (! mkdir($images_dir."/".$new_id, 0777) )
{
$DB->query("DELETE FROM ibf_images WHERE imid='$new_id'");
$ADMIN->error("Could not create a new directory in style_images");
}
@chmod($images_dir."/".$new_id, 0777);
//------------------------------------------------------
$this->tar->extract_files($images_dir."/".$new_id);
if ($this->tar->error != "")
{
$DB->query("DELETE FROM ibf_images WHERE imid='$new_id'");
$ADMIN->error( $this->tar->error );
}
//------------------------------------------------------
if ( ! file_exists($images_dir."/".$new_id."/conf.inc") )
{
$DB->query("DELETE FROM ibf_images WHERE imid='$new_id'");
$ADMIN->error("Could not locate the configuration file!");
}
//------------------------------------------------------
require $images_dir."/".$new_id."/conf.inc";
$new_array = array();
foreach($config as $k => $v)
{
if ( ($k == 'imid') or ($k == 'setname') )
{
continue;
}
$v = stripslashes($v);
$v = preg_replace( "#/%img_dir%/#", "/$new_id/", $v );
$new_array[ $k ] = $v;
}
//------------------------------------------------------
// Update the DB
$db_string = $DB->compile_db_update_string( $new_array );
$DB->query("UPDATE ibf_images SET $db_string WHERE imid='$new_id'");
@unlink($images_dir."/".$new_id."/conf.inc");
$ADMIN->done_screen("Image & Macro Imported", "Manage Image & Macro sets", "act=image" );
// Depreciated
}
@@ -758,33 +721,7 @@ class ad_langs {
{
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
// Attempt to open the template file...
if ($FH = fopen( $this->tar_with_path, 'r' ) )
{
$text = fread($FH, filesize($this->tar_with_path) );
fclose($FH);
//-------------------------
// Swop Binary to Ascii
//-------------------------
$text = preg_replace( "/\r/", "\n", stripslashes($text) );
$string = $DB->compile_db_insert_string( array(
'name' => stripslashes( $this->name_translated )." (Import)",
'template' => $text,
) );
$DB->query("INSERT INTO ibf_templates (".$string['FIELD_NAMES'].") VALUES(".$string['FIELD_VALUES'].")");
}
else
{
$ADMIN->error("Could not read the uploaded board wrapper archive file, please check the permissions on that file and try again");
}
$ADMIN->done_screen("Board Wrapper Imported", "Manage Board Wrappers", "act=wrap" );
// Depreciated
}
@@ -793,63 +730,7 @@ class ad_langs {
function css_import()
{
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
if (! is_dir($INFO['base_dir']."style_sheets") )
{
$ADMIN->error("Cannot write to the {$INFO['base_dir']}style_sheets directory, It is not there.");
}
if (! is_writeable($INFO['base_dir']."style_sheets") )
{
$ADMIN->error("Cannot write to the {$INFO['base_dir']}style_sheets directory, please set sufficient CHMOD permissions to allow this. IBF cannot do this for you.");
}
// Attempt to open the CSS file...
if ($FH = fopen( $this->tar_with_path, 'r' ) )
{
$css = fread($FH, filesize($this->tar_with_path) );
fclose($FH);
//-------------------------
// Swop Binary to Ascii
//-------------------------
$css = preg_replace( "/\r/", "\n", stripslashes($css) );
$string = $DB->compile_db_insert_string( array(
'css_name' => stripslashes( $this->name_translated )." (Import)",
'css_text' => $css,
) );
$DB->query("INSERT INTO ibf_css (".$string['FIELD_NAMES'].") VALUES(".$string['FIELD_VALUES'].")");
if ( $new_id = $DB->get_insert_id() )
{
if ( $FHD = fopen( $INFO['base_dir']."style_sheets/stylesheet_".$new_id.".css", 'w') )
{
fwrite($FHD, $css, strlen($css) );
fclose($FHD);
}
else
{
$DB->query("DELETE FROM ibf_css WHERE cssid='$new_id'");
$ADMIN->error("Could not write new style sheet to 'style_sheets' directory, please check the permission and re-try");
}
}
else
{
$ADMIN->error("Could not write to the database.");
}
}
else
{
$ADMIN->error("Could not read the uploaded CSS archive file, please check the permissions on that file and try again");
}
$ADMIN->done_screen("CSS information Imported", "Manage Uploaded Archives", "act=import" );
// Depreciated
}
@@ -1139,13 +1020,14 @@ class ad_langs {
{
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
$DB->query("DELETE FROM ibf_images WHERE imid='{$next_id['images']}'");
$DB->query("DELETE FROM ibf_macro_name WHERE set_id='{$next_id['macro']}'");
$DB->query("DELETE FROM ibf_macro WHERE macro_id='{$next_id['macro']}'");
$DB->query("DELETE FROM ibf_tmpl_names WHERE skid='{$next_id['templates']}'");
$DB->query("DELETE FROM ibf_css WHERE cssid='{$next_id['css']}'");
$DB->query("DELETE FROM ibf_templates WHERE tmid='{$next_id['wrap']}'");
$DB->query("DELETE FROM ibf_skin_templates WHERE set_id='{$next_id['templates']}'");
@rmdir($INFO['base_dir']."/style_images/".$next_id['images']);
@rmdir($INFO['base_dir']."/style_templates/".$next_id['templates']);
@rmdir($INFO['base_dir']."/Skin/s".$next_id['templates']);
$ADMIN->rm_dir($this->work_path."/".$this->new_dir);
+533
View File
@@ -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( '&nbsp;',
"<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 = "&nbsp;";
//+---------------------
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( '&nbsp;',
"<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( "&nbsp;" , "40%" );
$SKIN->td_header[] = array( "&nbsp;" , "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'] ).'&nbsp;&nbsp;'.
$SKIN->form_dropdown( "from_day" , $this->make_day() , $old_date['mday'] ).'&nbsp;&nbsp;'.
$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'] ).'&nbsp;&nbsp;'.
$SKIN->form_dropdown( "to_day" , $this->make_day() , $new_date['mday'] ).'&nbsp;&nbsp;'.
$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;
}
}
?>
+128 -68
View File
@@ -2,10 +2,10 @@
/*
+--------------------------------------------------------------------------
| IBFORUMS v1
| Invision Board v1.1
| ========================================
| by Matthew Mecham and David Baxter
| (c) 2001,2002 IBForums
| by Matthew Mecham
| (c) 2001,2002 Invision Power Services
| http://www.ibforums.com
| ========================================
| Web: http://www.ibforums.com
@@ -97,9 +97,9 @@ class ad_settings {
//+-------------------------------
$DB->query("SELECT * from ibf_images WHERE imid='".$row['img_id']."'");
$DB->query("SELECT * from ibf_macro_name WHERE set_id='".$row['macro_id']."'");
if ( ! $img = $DB->fetch_row() )
if ( ! $macro_name = $DB->fetch_row() )
{
$ADMIN->error("Could not query the information from the database");
}
@@ -141,9 +141,7 @@ class ad_settings {
}
$archive_dir = $INFO['base_dir']."archive_out";
$images_dir = $INFO['base_dir']."style_images/".$img['imid'];
$css_file = $INFO['base_dir']."style_sheets/stylesheet_{$css['cssid']}.css";
$templates_dir = $INFO['base_dir']."style_templates/".$tmpl['skid'];
$images_dir = $INFO['base_dir']."style_images/".$row['img_dir'];
require $root_dir."sources/lib/tar.php";
@@ -157,16 +155,6 @@ class ad_settings {
$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");
}
if (!file_exists($css_file))
{
$ADMIN->error("Could not locate $css_file, is the directory there?");
}
if (!is_dir($templates_dir))
{
$ADMIN->error("Could not locate $templates_dir, is the directory there?");
}
if (!is_dir($images_dir))
{
$ADMIN->error("Could not locate $images_dir, is the directory there?");
@@ -178,9 +166,10 @@ class ad_settings {
$css_name = "stylesheet.css";
$wrap_name = "wrapper.html";
$macro_name = "macro.txt";
$template_name = "templates.html";
$img_dir = 'images';
$templ_dir = 'templates';
$pack_name = preg_replace( "/\s{1,}/", "_", $row['sname'] );
@@ -200,13 +189,6 @@ class ad_settings {
$ADMIN->error("Directory creation failed, cannot export skin set. Please check the permission in 'archive_out'");
}
//+-------------------------------
if ( ! mkdir($archive_dir."/".$new_dir."/".$templ_dir, 0777) )
{
$ADMIN->error("Directory creation failed, cannot export skin set. Please check the permission in 'archive_out'");
}
//+-------------------------------
// Make the wrapper file...
//+-------------------------------
@@ -223,10 +205,9 @@ class ad_settings {
// Make the css file...
//+-------------------------------
if ( ! copy($css_file, $archive_dir."/".$new_dir."/".$css_name) )
{
$ADMIN->error("COPY FAILED ON STYLE SHEET $css_name, maybe the script has insufficient permissions?");
}
$FH = fopen($archive_dir."/".$new_dir."/".$css_name, 'w');
fwrite($FH, $css['css_text'], strlen($css['css_text']));
fclose($FH);
@chmod($archive_dir."/".$new_dir."/".$css_name, 0777);
@@ -239,46 +220,94 @@ class ad_settings {
$ADMIN->error( $ADMIN->errors );
}
// Generate the config file..
//+-------------------------------
// Make the macro file...
//+-------------------------------
$file_content = "<?php\n\n";
$file_content = "";
foreach($img as $k => $v)
$DB->query("SELECT macro_replace, macro_value FROM ibf_macro WHERE macro_set='".$row['macro_id']."'");
while( $mrow = $DB->fetch_row() )
{
$v = preg_replace( "#style_images/".$img['imid']."/#", "style_images/%img_dir%/", $v );
$file_content .= "\n\$config['$k'] = \"".addslashes($v)."\";";
if ($mrow['macro_replace'] == "")
{
$mrow['macro_replace'] = "*UNASSIGNED*";
}
$file_content .= $mrow['macro_value']."~=~".$mrow['macro_replace']."\n";
}
$file_content .= "\n\n?".">";
$FH = fopen($archive_dir."/".$new_dir."/"."img_conf.inc", 'w');
$FH = fopen($archive_dir."/".$new_dir."/".$macro_name, 'w');
fwrite($FH, $file_content, strlen($file_content));
fclose($FH);
//+-------------------------------
// Copy over the skin templates...
//+-------------------------------
@chmod($archive_dir."/".$new_dir."/".$macro_name, 0777);
if ( ! $ADMIN->copy_dir($templates_dir, $archive_dir."/".$new_dir."/".$templ_dir) )
//+----------------------------------------------------------------------------
// Generate template HTML file
//+----------------------------------------------------------------------------
$output = "";
$groups = $DB->query("SELECT DISTINCT(group_name) FROM ibf_skin_templates WHERE set_id='".$row['set_id']."'");
if ( ! $DB->get_num_rows($groups) )
{
$ADMIN->error( $ADMIN->errors );
$ADMIN->rm_dir($archive_dir);
$ADMIN->error("Export Failed at template set creation: Can't query the information from the database");
}
$output .= "<!--TEMPLATE_SET|internal,internal,internal,internal-->\n\n";
while ( $trow = $DB->fetch_row($groups) )
{
$aq = $DB->query("SELECT * FROM ibf_skin_templates WHERE set_id='".$row['set_id']."' AND group_name='".$trow['group_name']."'");
if ( ! $DB->get_num_rows($aq) )
{
$ADMIN->rm_dir($archive_dir);
$ADMIN->error("Can't query the information from the database");
}
$output .= "<!-- PLEASE LEAVE ALL 'IBF' COMMENTS IN PLACE, DO NOT REMOVE THEM! -->\n<!--IBF_GROUP_START:{$trow['group_name']}-->\n\n";
while ( $next_row = $DB->fetch_row($aq) )
{
$text = $this->convert_tags($next_row['section_content']);
$text = str_replace( "\r\n", "\n", $text);
$text = str_replace( "\n\n", "\n", $text);
$output .= "<!--IBF_START_FUNC|{$next_row['func_name']}|{$next_row['func_data']}-->\n\n";
$output .= $text."\n";
$output .= "<!--IBF_END_FUNC|{$next_row['func_name']}-->\n\n";
}
$output .= "\n<!--IBF_GROUP_END:{$trow['group_name']}-->\n";
}
$FH = fopen($archive_dir."/".$new_dir."/".$template_name, 'w');
fwrite($FH, $output, strlen($output));
fclose($FH);
@chmod($archive_dir."/".$new_dir."/".$template_name, 0777);
//+----------------------------------------------------------------------------
// Generate the config file..
//+----------------------------------------------------------------------------
$file_content = "<?php\n\n".
"\$config=array('author' => \"".addslashes($tmpl['author'])."\", ".
"'email'=>\"".addslashes($tmpl['email'])."\", ".
"'tbl_border'=>\"".addslashes($row['tbl_border'])."\", ".
"'tbl_width'=>\"".addslashes($row['tbl_width'])."\", ".
"'url'=>\"".addslashes($tmpl['url'])."\")\n\n?".">";
$FH = fopen($archive_dir."/".$new_dir."/"."templates_conf.inc", 'w');
fwrite($FH, $file_content, strlen($file_content));
fclose($FH);
@chmod($archive_dir."/".$new_dir."/"."templates_conf.inc", 0777);
//+-------------------------------
// Add files and write tarball
//+-------------------------------
@@ -293,6 +322,7 @@ class ad_settings {
if ($tar->error != "")
{
$ADMIN->rm_dir($archive_dir);
$ADMIN->error($tar->error);
}
@@ -305,6 +335,28 @@ class ad_settings {
}
//----------------------------------------------
// I must get around to centralising this...
//----------------------------------------------
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 mem_skins()
@@ -424,20 +476,15 @@ class ad_settings {
$ADMIN->error("You must specify a name for this skin pack ID");
}
if ($IN['tbl_width'] == "")
{
$ADMIN->error("You must specify a table width");
}
$barney = array( 'sname' => stripslashes($HTTP_POST_VARS['sname']),
'set_id' => $IN['template'],
'tmpl_id' => $IN['wrapper'],
'img_id' => $IN['image'],
'img_dir' => $IN['img_dir'],
'css_id' => $IN['css'],
'tbl_border' => $IN['tbl_border'],
'tbl_width' => $IN['tbl_width'],
'hidden' => $IN['hidden'],
'default_set'=> $IN['default_set'],
'macro_id' => $IN['macro_id'],
);
if ($type == 'add')
@@ -493,7 +540,7 @@ class ad_settings {
$css = array();
$wrappers = array();
$templates = array();
$images = array();
$macros = array();
//+-------------------------------
@@ -513,11 +560,11 @@ class ad_settings {
//+-------------------------------
$DB->query("SELECT imid, setname FROM ibf_images");
$DB->query("SELECT * FROM ibf_macro_name");
while( $img = $DB->fetch_row() )
{
$images[] = array( $img['imid'], $img['setname'] );
$macros[] = array( $img['set_id'], $img['set_name'] );
}
//+-------------------------------
@@ -563,6 +610,23 @@ class ad_settings {
$button = 'Edit Skin Set';
}
$dirs = array();
$dh = opendir( './style_images' );
while ( $file = readdir( $dh ) )
{
if (($file != ".") && ($file != ".."))
{
if ( is_dir('./style_images/'.$file) )
{
$dirs[] = array( $file, $file );
}
}
}
closedir( $dh );
//+-------------------------------
$ADMIN->page_detail = "You may mix n' match which skin resources you wish to apply to this skin set.";
@@ -597,8 +661,13 @@ class ad_settings {
) );
$ADMIN->html .= $SKIN->add_td_row( array(
"<b>Use Image & Macro Set:</b>",
$SKIN->form_dropdown('image', $images, $row['img_id']),
"<b>Use Macro Set:</b>",
$SKIN->form_dropdown('macro_id', $macros, $row['macro_id']),
) );
$ADMIN->html .= $SKIN->add_td_row( array(
"<b>Use Image Directory:</b>",
$SKIN->form_dropdown('img_dir', $dirs, $row['img_dir']),
) );
$ADMIN->html .= $SKIN->add_td_row( array(
@@ -611,15 +680,6 @@ class ad_settings {
$SKIN->form_dropdown('wrapper', $wrappers, $row['tmpl_id']),
) );
$ADMIN->html .= $SKIN->add_td_row( array(
"<b>Basic Table Width:</b>",
$SKIN->form_input('tbl_width', $row['tbl_width']),
) );
$ADMIN->html .= $SKIN->add_td_row( array(
"<b>Basic Table Border Colour:</b>",
$SKIN->form_input('tbl_border', $row['tbl_border']),
) );
$ADMIN->html .= $SKIN->add_td_row( array(
"<b>Hide from Members?</b><br>Useful if you want to make a forum only skin",
+495 -110
View File
@@ -2,10 +2,10 @@
/*
+--------------------------------------------------------------------------
| IBFORUMS v1
| Invision Board v1.1
| ========================================
| by Matthew Mecham and David Baxter
| (c) 2001,2002 IBForums
| by Matthew Mecham
| (c) 2001,2002 Invision Power Services
| http://www.ibforums.com
| ========================================
| Web: http://www.ibforums.com
@@ -42,10 +42,16 @@ class ad_settings {
$this->do_form('add');
break;
case 'edit':
case 'edit2':
$this->do_form('edit');
break;
case 'edit':
//$this->edit_splash();
$this->do_form('edit');
break;
//break;
case 'doadd':
$this->save_wrapper('add');
break;
@@ -62,6 +68,26 @@ class ad_settings {
$this->export();
break;
case 'optimize':
$this->optimize();
break;
case 'css_upload':
$this->css_upload('new');
break;
case 'easyedit':
$this->easy_edit();
break;
case 'editcomments':
$this->edit_comments();
break;
case 'doeditcomments':
$this->do_edit_comments();
break;
//-------------------------
default:
$this->list_sheets();
@@ -70,6 +96,350 @@ class ad_settings {
}
//+-------------------------------
//+-------------------------------
function do_edit_comments()
{
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("SELECT cssid, css_text, css_name, css_comments FROM ibf_css WHERE cssid='".$IN['id']."'");
if ( ! $cssinfo = $DB->fetch_row() )
{
$ADMIN->error("Could not query the CSS details from the database");
}
$DB->query("UPDATE ibf_css SET css_comments='{$IN['comments']}' WHERE cssid='".$IN['id']."'");
$ADMIN->done_screen("Comments Updated", "Manage Style Sheets", "act=style" );
}
//+-------------------------------
function edit_comments()
{
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 cssid, css_text, css_name, css_comments FROM ibf_css WHERE cssid='".$IN['id']."'");
if ( ! $cssinfo = $DB->fetch_row() )
{
$ADMIN->error("Could not query the CSS details from the database");
}
//+-------------------------------
$ADMIN->page_detail = "Please enter or edit the comments below";
$ADMIN->page_title = "Edit Comments for Style Sheet '{$cssinfo['css_name']}'";
//+-------------------------------
$SKIN->td_header[] = array( "CSS" , "40%" );
$SKIN->td_header[] = array( "Comment" , "60%" );
//+-------------------------------
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'doeditcomments' ),
2 => array( 'act' , 'style' ),
3 => array( 'id' , $IN['id'] ),
) );
$ADMIN->html .= $SKIN->start_table( "Edit Comments" );
$ADMIN->html .= $SKIN->add_td_row( array(
"<b>Edit the comments for this stylesheet",
$SKIN->form_textarea( "comments", str_replace("<br>", "\n", $cssinfo['comments']) )
) );
$ADMIN->html .= $SKIN->add_td_basic("Back to: <a href='".$SKIN->base_url."&act=style'>Manage Style Sheets</a> -&gt; <a href='".$SKIN->base_url."&act=style&code=edit&id={$IN['id']}'>Edit Options</a>", "center", "title");
$ADMIN->html .= $SKIN->end_form("Edit the comments");
$ADMIN->html .= $SKIN->end_table();
//+-------------------------------
//+-------------------------------
$ADMIN->output();
}
//-------------------------------------------------------------
// ADD / EDIT WRAPPERS
//-------------------------------------------------------------
function edit_splash()
{
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 cssid, css_text, css_name FROM ibf_css WHERE cssid='".$IN['id']."'");
if ( ! $cssinfo = $DB->fetch_row() )
{
$ADMIN->error("Could not query the CSS details from the database");
}
//+-------------------------------
$ADMIN->page_detail = "Please select your editing option.";
$ADMIN->page_title = "Edit Style Sheet '{$cssinfo['css_name']}'";
//+-------------------------------
$SKIN->td_header[] = array( "Option" , "40%" );
$SKIN->td_header[] = array( "Description" , "60%" );
//+-------------------------------
$ADMIN->html .= $SKIN->start_table( "Choose an option" );
$ADMIN->html .= $SKIN->add_td_row( array(
"<a href='".$SKIN->base_url."&act=style&code=edit2&id={$IN['id']}'>CSS Editing</a>",
"Edit the stylesheet as a complete resource in a similar environment as a text editor",
) );
$ADMIN->html .= $SKIN->add_td_row( array(
"<a href='".$SKIN->base_url."&act=style&code=editupload&id={$IN['id']}'>Upload a stylesheet</a>",
"Upload a stylesheet from your hard drive to replace the one stored in the database",
) );
$ADMIN->html .= $SKIN->add_td_row( array(
"<a href='".$SKIN->base_url."&act=style&code=editcomments&id={$IN['id']}'>Edit Comments</a>",
"Edit the comments that indicate where the CSS definitions are used in the templates",
) );
$ADMIN->html .= $SKIN->add_td_basic("Back to: <a href='".$SKIN->base_url."&act=style'>Manage Style Sheets</a>", "center", "title");
$ADMIN->html .= $SKIN->end_table();
//+-------------------------------
//+-------------------------------
$ADMIN->output();
}
function css_upload($type='new')
{
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 );
if (! is_dir($INFO['upload_dir']) )
{
$ADMIN->error("Could not locate the uploads directory - make sure the 'uploads' path is set correctly");
}
// 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") )
{
$ADMIN->error("No file was chosen to upload!");
}
//-------------------------------------------------
// Move the uploaded file to somewhere we can
// manipulate it in safe mode
//-------------------------------------------------
if (! @move_uploaded_file( $HTTP_POST_FILES['FILE_UPLOAD']['tmp_name'], $INFO['upload_dir']."/".$FILE_NAME) )
{
$ADMIN->error("The upload failed");
}
// Open the file and copy to the DB
$real_name = str_replace( "_", " ", preg_replace( "/^(.*),\d+\.css$/", "\\1", $FILE_NAME ) );
$real_name .= ' [UPLOAD]';
if ( $FH = @fopen( $INFO['upload_dir']."/".$FILE_NAME, "r" ) )
{
$data = @fread( $FH, @filesize($INFO['upload_dir']."/".$FILE_NAME) );
@fclose($FH);
@unlink($INFO['upload_dir']."/".$FILE_NAME);
}
else
{
@unlink($INFO['upload_dir']."/".$FILE_NAME);
$ADMIN->error("Could not open the uploaded file for reading, aborting process");
}
list($css, $comments) = explode( "<|COMMENTS|>", $data );
$css = trim($css);
$comments = trim($css);
if ($type == 'new')
{
$dbs = $DB->compile_db_insert_string( array (
'css_name' => $real_name,
'css_text' => $css,
'css_comments' => $comments,
) );
$DB->query("INSERT INTO ibf_css (".$dbs['FIELD_NAMES'].") VALUES(".$dbs['FIELD_VALUES'].")");
$ADMIN->done_screen("Stylesheet uploaded", "Manage Style Sheets", "act=style" );
}
}
//----------------------------------------------------
function optimize()
{
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
if ($IN['id'] == "")
{
$ADMIN->error("You must specify an existing CSS ID, go back and try again");
}
//+-------------------------------
$DB->query("SELECT * from ibf_css WHERE cssid='".$IN['id']."'");
if ( ! $row = $DB->fetch_row() )
{
$ADMIN->error("Could not query the information from the database");
}
//+-------------------------------
$orig_size = strlen($row['css_text']);
$orig_text = str_replace( "\r\n", "\n", $row['css_text']);
$orig_text = str_replace( "\r" , "\n", $orig_text);
$orig_text = str_replace( "\n\n", "\n", $orig_text);
$parsed = array();
// Remove comments
$orig_text = preg_replace( "#/\*(.+?)\*/#s", "", $orig_text );
// Grab all the definitions
preg_match_all( "/(.+?)\{(.+?)\}/s", $orig_text, $match, PREG_PATTERN_ORDER );
for ( $i = 0 ; $i < count($match[0]); $i++ )
{
$match[1][$i] = trim($match[1][$i]);
$parsed[ $match[1][$i] ] = trim($match[2][$i]);
}
//------------------
if ( count($parsed) < 1)
{
$ADMIN->error("The stylesheet is in a format that Invision Board cannot understand, no optimization done.");
}
// Clean them up
$final = "";
foreach( $parsed as $name => $p )
{
// Ignore comments
if ( preg_match( "#^//#", $name) )
{
continue;
}
// Split up the components
$parts = explode( ";", $p);
$defs = array();
foreach( $parts as $part )
{
if ($part != "")
{
list($definition, $data) = explode( ":", $part );
$defs[] = trim($definition).": ".trim($data);
}
}
$final .= $name . " { ".implode("; ", $defs). " }\n";
}
$final_size = strlen($final);
if ($final_size < 1000)
{
$ADMIN->error("The stylesheet is in a format that Invision Board cannot understand, no optimization done.");
}
// Update the DB
$dbs = $DB->compile_db_update_string( array( 'css_text' => $final ) );
$DB->query("UPDATE ibf_css SET $dbs WHERE cssid='".$IN['id']."'");
$saved = $orig_size - $final_size;
$pc_saved = 0;
if ($saved > 0)
{
$pc_saved = sprintf( "%.2f", ($saved / $orig_size) * 100);
}
$ADMIN->done_screen("Stylesheet updated<br>Characters Saved: $saved ($pc_saved %)", "Manage Style Sheets", "act=style" );
}
//----------------------------------------------------
function export()
{
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
@@ -90,43 +460,14 @@ class ad_settings {
//+-------------------------------
$archive_dir = $INFO['base_dir']."/archive_out";
$name = str_replace( " ", "_", $row['css_name'] );
$css_file = $INFO['base_dir']."/style_sheets/stylesheet_{$row['cssid']}.css";
@header("Content-type: unknown/unknown");
@header("Content-Disposition: attachment; filename=$name,{$row['cssid']}.css");
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");
}
if (!file_exists($css_file))
{
$ADMIN->error("Cannot locate $css_file, please ensure that the file is in the proper directory");
}
//+-------------------------------
// Attempt to copy the files to the
// working directory...
//+-------------------------------
$l_name = preg_replace( "/\s{1,}/", "_", $row['css_name'] );
$file_name = "css-".$l_name.".css";
if ( ! copy($css_file, $archive_dir."/".$file_name) )
{
$ADMIN->error("COPY FAILED ON STYLE SHEET $file_name, maybe the script has insufficient permissions?");
}
@chmod($archive_dir."/".$file_name, 0777);
$ADMIN->done_screen("Style Sheet Export Created<br><br>You can download the CSS resource <a href='archive_out/$file_name' target='_blank'>here</a>", "Manage Style Sheets", "act=style" );
print $row['css_text'];
exit();
}
@@ -149,8 +490,6 @@ class ad_settings {
$DB->query("DELETE FROM ibf_css WHERE cssid='".$IN['id']."'");
@unlink( $root_path."style_sheets/stylesheet_{$IN['id']}.css" );
$std->boink_it($SKIN->base_url."&act=style");
exit();
@@ -177,13 +516,6 @@ class ad_settings {
$ADMIN->error("You must specify an existing CSS ID, go back and try again");
}
$file = $root_path."style_sheets/stylesheet_".$IN['id'].".css";
if ( ! is_writeable($file) )
{
$ADMIN->error("IBF does not have permission to write to that file. Try setting the CHMOD on $file to 0777 and try again. You can do this via FTP");
}
}
if ($IN['name'] == "")
@@ -210,22 +542,6 @@ class ad_settings {
$new_id = $DB->get_insert_id();
$nfile = $root_path."style_sheets/stylesheet_".$new_id.".css";
if ($fh = fopen( $nfile, 'w' ) )
{
fwrite( $fh, $css, strlen($css) );
fclose( $fh );
@chmod( $nfile, 0777 );
}
else
{
$DB->query("DELETE FROM ibf_css WHERE cssid='$new_id'");
$ADMIN->error("Could not prepare $file for creation - please check the CHMOD value of the 'style_sheets' directory and where possible CHMOD to 0777 via FTP");
}
$std->boink_it($SKIN->base_url."&act=style");
exit();
@@ -235,22 +551,13 @@ class ad_settings {
{
$db_string = $DB->compile_db_update_string( $barney );
if ($fh = fopen( $file, 'w' ) )
{
fwrite( $fh, $css, strlen($css) );
fclose( $fh );
$DB->query("UPDATE ibf_css SET $db_string WHERE cssid='".$IN['id']."'");
@chmod( $file, 0777 );
$ADMIN->nav[] = array( 'act=style' ,'Style Sheet Control Home' );
$ADMIN->nav[] = array( "act=style&code=edit2&id={$IN['id']}" ,"Edit Sheet Again" );
$DB->query("UPDATE ibf_css SET $db_string WHERE cssid='".$IN['id']."'");
$ADMIN->done_screen("Stylesheet updated", "Manage Style Sheets", "act=style" );
$ADMIN->done_screen("Stylesheet updated", "Manage Style Sheets", "act=style" );
}
else
{
$ADMIN->error("Could not prepare $file for writing - please check the CHMOD value of the 'style_sheets' directory");
}
}
@@ -274,7 +581,7 @@ class ad_settings {
//+-------------------------------
$DB->query("SELECT cssid, css_name FROM ibf_css WHERE cssid='".$IN['id']."'");
$DB->query("SELECT cssid, css_text, css_name FROM ibf_css WHERE cssid='".$IN['id']."'");
if ( ! $cssinfo = $DB->fetch_row() )
{
@@ -283,23 +590,7 @@ class ad_settings {
//+-------------------------------
$file = $root_path."style_sheets/stylesheet_".$IN['id'].".css";
if ( ! file_exists($file) )
{
$ADMIN->error("Could not load the stylesheet. No file found at $file");
}
if ( ! is_readable($file) )
{
$ADMIN->error("IBF does not have permission to read from that file. Try setting the CHMOD on $file to 0777 and try again. You can do this via FTP");
}
//+-------------------------------
$fh = fopen( $file, 'r' );
$css = fread( $fh, filesize($file) );
fclose($fh);
$css = $cssinfo['css_text'];
if ($type == 'add')
{
@@ -309,17 +600,37 @@ class ad_settings {
}
else
{
// Availability test
if ( ! is_writeable($file) )
{
$ADMIN->error("IBF does not have permission to write to that file. Try setting the CHMOD on $file to 0777 and try again. You can do this via FTP");
}
$code = 'doedit';
$button = 'Edit Stylesheet';
}
//+-------------------------------
// Start the CSS matcher thingy
//+-------------------------------
//.class { definitions }
//#id { definitions }
$css_elements = array();
preg_match_all( "/(\.|\#)(\S+?)\s{0,}\{.+?\}/s", $css, $match );
for ($i=0; $i < count($match[0]); $i++)
{
$type = trim($match[1][$i]);
$name = trim($match[2][$i]);
if ($type == '.')
{
$css_elements[] = array( 'class|'.$name, $type.$name );
}
else
{
$css_elements[] = array( 'id|'.$name, $type.$name );
}
}
//+-------------------------------
$ADMIN->page_detail = "You may use CSS fully when adding or editing stylesheets.";
@@ -327,6 +638,55 @@ class ad_settings {
//+-------------------------------
$ADMIN->html .= "<script language='javascript'>
<!--
function cssSearch(theID)
{
cssChosen = document.cssForm.csschoice.options[document.cssForm.csschoice.selectedIndex].value;
window.open('{$SKIN->base_url}&act=rtempl&code=css_search&id='+theID+'&element='+cssChosen,'CSSSEARCH','width=400,height=500,resizable=yes,scrollbars=yes');
}
function cssPreview(theID)
{
cssChosen = document.cssForm.csschoice.options[document.cssForm.csschoice.selectedIndex].value;
window.open('{$SKIN->base_url}&act=rtempl&code=css_preview&id='+theID+'&element='+cssChosen,'CSSSEARCH','width=400,height=500,resizable=yes,scrollbars=yes');
}
//-->
</script>";
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'css_search' ),
2 => array( 'act' , 'style' ),
3 => array( 'id' , $IN['id'] ),
), "cssForm" );
//+-------------------------------
$SKIN->td_header[] = array( "&nbsp;" , "20%" );
$SKIN->td_header[] = array( "&nbsp;" , "80%" );
//+-------------------------------
$ADMIN->html .= $SKIN->start_table( "Find CSS Usage" );
$ADMIN->html .= $SKIN->add_td_row( array(
"Show me where...",
$SKIN->form_dropdown('csschoice', $css_elements).' ... is used within the templates &nbsp;'
.'<input type="button" value="Go!" onClick="cssSearch(\''.$IN['id'].'\');" id="editbutton">'
.'&nbsp;<input type="button" value="Preview CSS Style" onClick="cssPreview(\''.$IN['id'].'\');" id="editbutton">'
) );
$ADMIN->html .= $SKIN->end_form();
$ADMIN->html .= $SKIN->end_table();
//+-------------------------------
//+-------------------------------
$ADMIN->html .= $SKIN->js_no_specialchars();
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , $code ),
@@ -349,7 +709,7 @@ class ad_settings {
) );
$ADMIN->html .= $SKIN->add_td_row( array(
"Content",
"Content<br><br>(<a href='html/sys-img/css.html' target='_blank'>Launch Style Maker</a>)",
$SKIN->form_textarea('css', $css, "70", "30"),
) );
@@ -382,8 +742,9 @@ class ad_settings {
//+-------------------------------
$SKIN->td_header[] = array( "Title" , "40%" );
$SKIN->td_header[] = array( "Allocation" , "30%" );
$SKIN->td_header[] = array( "Export" , "10%" );
$SKIN->td_header[] = array( "Allocation" , "20%" );
$SKIN->td_header[] = array( "Optimize" , "10%" );
$SKIN->td_header[] = array( "Download" , "10%" );
$SKIN->td_header[] = array( "Edit" , "10%" );
$SKIN->td_header[] = array( "Remove" , "10%" );
@@ -410,7 +771,8 @@ class ad_settings {
$ADMIN->html .= $SKIN->add_td_row( array( "<b>".stripslashes($r['css_name'])."</b>",
"<#X-{$r['cssid']}#>",
"<center><a href='".$SKIN->base_url."&act=style&code=export&id={$r['cssid']}'>Export</a></center>",
"<center><a href='".$SKIN->base_url."&act=style&code=optimize&id={$r['cssid']}'>Optimize</a></center>",
"<center><a href='".$SKIN->base_url."&act=style&code=export&id={$r['cssid']}'>Download</a></center>",
"<center><a href='".$SKIN->base_url."&act=style&code=edit&id={$r['cssid']}'>Edit</a></center>",
"<i>Deallocate before removing</i>",
) );
@@ -439,8 +801,9 @@ class ad_settings {
if ( $DB->get_num_rows() )
{
$SKIN->td_header[] = array( "Title" , "70%" );
$SKIN->td_header[] = array( "Export" , "10%" );
$SKIN->td_header[] = array( "Title" , "60%" );
$SKIN->td_header[] = array( "Optimize" , "10%" );
$SKIN->td_header[] = array( "Download" , "10%" );
$SKIN->td_header[] = array( "Edit" , "10%" );
$SKIN->td_header[] = array( "Remove" , "10%" );
@@ -453,7 +816,8 @@ class ad_settings {
{
$ADMIN->html .= $SKIN->add_td_row( array( "<b>".stripslashes($r['css_name'])."</b>",
"<center><a href='".$SKIN->base_url."&act=style&code=export&id={$r['cssid']}'>Export</a></center>",
"<center><a href='".$SKIN->base_url."&act=style&code=optimize&id={$r['cssid']}'>Optimize</a></center>",
"<center><a href='".$SKIN->base_url."&act=style&code=export&id={$r['cssid']}'>Download</a></center>",
"<center><a href='".$SKIN->base_url."&act=style&code=edit&id={$r['cssid']}'>Edit</a></center>",
"<center><a href='javascript:checkdelete(\"act=style&code=remove&id={$r['cssid']}\")'>Remove</a></center>",
) );
@@ -476,7 +840,7 @@ class ad_settings {
$SKIN->td_header[] = array( "&nbsp;" , "40%" );
$SKIN->td_header[] = array( "&nbsp;" , "60%" );
$ADMIN->html .= $SKIN->start_table( "Create New Stylesheet" );
$ADMIN->html .= $SKIN->start_table( "Create New Stylesheet (Copy)" );
//+-------------------------------
@@ -484,13 +848,34 @@ class ad_settings {
$SKIN->form_dropdown( "id", $form_array)
) );
$ADMIN->html .= $SKIN->end_form("Create new stylesheet");
$ADMIN->html .= $SKIN->end_form("Copy to new stylesheet");
$ADMIN->html .= $SKIN->end_table();
//+-------------------------------
//+-------------------------------
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'css_upload' ),
2 => array( 'act' , 'style' ),
3 => array( 'MAX_FILE_SIZE', '10000000000' ),
) , "uploadform", " enctype='multipart/form-data'" );
$SKIN->td_header[] = array( "&nbsp;" , "40%" );
$SKIN->td_header[] = array( "&nbsp;" , "60%" );
$ADMIN->html .= $SKIN->start_table( "Upload new stylesheet" );
//+-------------------------------
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Browse your hard drive</b>" ,
$SKIN->form_upload()
) );
$ADMIN->html .= $SKIN->end_form("Upload new stylesheet");
$ADMIN->html .= $SKIN->end_table();
$ADMIN->output();
}
File diff suppressed because it is too large. Load diff
+109 -29
View File
@@ -2,10 +2,10 @@
/*
+--------------------------------------------------------------------------
| IBFORUMS v1
| Invision Board v1.1
| ========================================
| by Matthew Mecham and David Baxter
| (c) 2001,2002 IBForums
| by Matthew Mecham
| (c) 2001,2002 Invision Power Services
| http://www.ibforums.com
| ========================================
| Web: http://www.ibforums.com
@@ -39,7 +39,7 @@ class ad_settings {
break;
case 'add':
$this->do_form('add');
$this->add_splash();
break;
case 'edit':
@@ -69,6 +69,98 @@ class ad_settings {
}
//---------------------------------------------------------------------
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;
@@ -88,38 +180,21 @@ class ad_settings {
}
//+-------------------------------
$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...
// Pass file as an attachment, yeah!
//+-------------------------------
$l_name = preg_replace( "/\s{1,}/", "_", $row['name'] );
$file_name = "wrap-".$l_name.".html";
$file_name = "wrap-".substr($l_name, 0, 8).".html";
$row['template'] = preg_replace("/\r/", "\n", $row['template'] );
$row['template'] = preg_replace("/\r\n/", "\n", $row['template'] );
$FH = fopen($archive_dir."/".$file_name, 'w');
fwrite($FH, $row['template'], strlen($row['template']));
fclose($FH);
@header("Content-type: unknown/unknown");
@header("Content-Disposition: attachment; filename=$file_name");
$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" );
print $row['template']."\n";
exit();
}
@@ -405,7 +480,8 @@ class ad_settings {
$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( "&nbsp;" , "40%" );
$SKIN->td_header[] = array( "&nbsp;" , "60%" );
@@ -418,6 +494,10 @@ class ad_settings {
$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();
+112 -9
View File
@@ -2,10 +2,10 @@
/*
+--------------------------------------------------------------------------
| IBFORUMS v1
| Invision Board v1.1
| ========================================
| by Matthew Mecham and David Baxter
| (c) 2001,2002 IBForums
| by Matthew Mecham
| (c) 2001,2002 Invision Power Services
| http://www.ibforums.com
| ========================================
| Web: http://www.ibforums.com
@@ -28,6 +28,7 @@ class admin_functions {
var $page_detail = "You can set up and customize your board from within this control panel.<br><br>Clicking on one of the links in the left menu pane will show you the relevant options for that administration category. Each option will contain further information on configuration, etc.";
var $html;
var $errors = "";
var $nav = array();
function admin_functions() {
global $INFO, $IN;
@@ -37,6 +38,32 @@ class admin_functions {
}
//**********************************************/
// save_log
//
// Add an entry into the admin logs, yeah.
//**********************************************/
function save_log($action="")
{
global $INFO, $DB, $IN, $MEMBER;
$str = $DB->compile_db_insert_string( array(
'act' => $IN['act'],
'code' => $IN['code'],
'member_id' => $MEMBER['id'],
'ctime' => time(),
'note' => $action,
'ip_address' => $IN['IP_ADDRESS'],
) );
$DB->query("INSERT INTO ibf_admin_logs ({$str['FIELD_NAMES']}) VALUES ({$str['FIELD_VALUES']})");
return true; // to anyone that cares..
}
//**********************************************/
// get_tar_names
//
@@ -314,7 +341,7 @@ class admin_functions {
function compile_forum_perms() {
global $DB, $IN;
$r_array = array( 'READ' => '', 'REPLY' => '', 'START' => '' );
$r_array = array( 'READ' => '', 'REPLY' => '', 'START' => '', 'UPLOAD' => '' );
if ($IN['READ_ALL'] == 1)
{
@@ -331,6 +358,10 @@ class admin_functions {
$r_array['START'] = '*';
}
if ($IN['UPLOAD_ALL'] == 1)
{
$r_array['UPLOAD'] = '*';
}
$DB->query("SELECT g_id, g_title FROM ibf_groups ORDER BY g_id");
@@ -360,11 +391,20 @@ class admin_functions {
$r_array['START'] .= $data['g_id'].",";
}
}
//+----------------------------
if ($r_array['UPLOAD'] != '*')
{
if ($IN[ 'UPLOAD_'.$data['g_id'] ] == 1)
{
$r_array['UPLOAD'] .= $data['g_id'].",";
}
}
}
$r_array['START'] = preg_replace( "/,$/", "", $r_array['START'] );
$r_array['REPLY'] = preg_replace( "/,$/", "", $r_array['REPLY'] );
$r_array['READ'] = preg_replace( "/,$/", "", $r_array['READ'] );
$r_array['START'] = preg_replace( "/,$/", "", $r_array['START'] );
$r_array['REPLY'] = preg_replace( "/,$/", "", $r_array['REPLY'] );
$r_array['READ'] = preg_replace( "/,$/", "", $r_array['READ'] );
$r_array['UPLOAD'] = preg_replace( "/,$/", "", $r_array['UPLOAD'] );
return $r_array;
@@ -377,6 +417,40 @@ class admin_functions {
//+------------------------------------------------
//+------------------------------------------------
function print_popup() {
global $IN, $INFO, $DB, $std, $SKIN, $use_gzip;
$html = "<html>
<head><title>Remote</title>
<meta HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">
<meta HTTP-EQUIV=\"Cache-Control\" CONTENT=\"no-cache\">
<meta HTTP-EQUIV=\"Expires\" CONTENT=\"Mon, 06 May 1996 04:57:00 GMT\">";
$html .= $SKIN->get_css();
$html .= "</head>\n";
$html .= "</head>
<body marginheight='0' marginwidth='0' leftmargin='0' topmargin='0' bgcolor='#E7E7E7'>
<table cellspacing='0' cellpadding='2' width='100%' align='center' border='0' bgcolor='#E7E7E7'>
<tr>
<td>
<table cellspacing='3' cellpadding='2' width='100%' align='center' height='100%' border='0' bgcolor='#FFFFFF' style='border:thin solid black'>
<tr>
<td valign='top' bgcolor='#FFFFFF'>
<table cellspacing='0' cellpadding='2' border='0' align='center' width='100%' height='100%' bgcolor='#FFFFFF'>";
$html .= $this->html;
$html .= "</table></td></tr></table></td></tr></table></body></html>";
print $html;
exit();
}
function output() {
global $IN, $INFO, $DB, $std, $SKIN, $use_gzip;
@@ -387,6 +461,28 @@ class admin_functions {
$DB->close_db();
if ( count($this->nav) > 0 )
{
$navigation = array( "<a href='{$this->base_url}&act=index' target='body'>ACP Home</a>" );
foreach ( $this->nav as $idx => $links )
{
if ($links[0] != "")
{
$navigation[] = "<a href='{$this->base_url}&{$links[0]}' target='body'>{$links[1]}</a>";
}
else
{
$navigation[] = $links[1];
}
}
if ( count($navigation) > 0 )
{
$html = str_replace( "<!--NAV-->", $SKIN->wrap_nav( implode( " -> ", $navigation ) ), $html );
}
}
if ($use_gzip == 1)
{
ob_start ('ob_gzhandler');
@@ -409,7 +505,7 @@ class admin_functions {
//
//**********************************************/
function error($error="") {
function error($error="", $is_popup=0) {
global $IN, $INFO, $DB, $std, $SKIN, $HTTP_REFERER;
$this->page_title = "An Error Occured...";
@@ -417,7 +513,14 @@ class admin_functions {
$this->html .= "<tr><td><span style='font-size:14px'>$error</span><br><br><center><a href='$HTTP_REFERER'>Go Back</a></center></td></tr>";
$this->output();
if ($is_popup == 0)
{
$this->output();
}
else
{
$this->print_popup();
}
}
+45 -8
View File
@@ -11,9 +11,19 @@
$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', 'act=op&code=post' ),
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' ),
@@ -21,11 +31,13 @@ $PAGES = array(
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' ),
),
1 => array (
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' ),
@@ -37,12 +49,14 @@ $PAGES = array(
3 => array (
1 => array ( 'Pre-Register' , 'act=mem&code=add' ),
2 => array ( 'Edit User' , 'act=mem&code=edit' ),
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 (
@@ -51,13 +65,14 @@ $PAGES = array(
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 Image&Macros' , 'act=image' ),
4 => array( 'Manage Macros' , 'act=image' ),
5 => array( '<b>Manage Skin Sets</b>' , 'act=sets' ),
6 => array( 'Import Skin files' , 'act=import' ),
@@ -68,27 +83,49 @@ $PAGES = array(
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 => "Board Settings",
1 => 'Forum Control',
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 => "Edit forum settings such as cookie paths, security features, posting abilities, etc",
1 => "Create, edit, remove and re-order categories, forums and moderators",
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",
);
+190 -36
View File
@@ -2,10 +2,10 @@
/*
+--------------------------------------------------------------------------
| IBFORUMS v1
| Invision Board v1.1
| ========================================
| by Matthew Mecham and David Baxter
| (c) 2001,2002 IBForums
| by Matthew Mecham
| (c) 2001,2002 Invision Power Services
| http://www.ibforums.com
| ========================================
| Web: http://www.ibforums.com
@@ -44,6 +44,76 @@ class admin_skin {
//+--------------------------------------------------------------------
//+--------------------------------------------------------------------
function js_help_link($help="")
{
return "( <a href='#' onClick=\"window.open('{$this->base_url}&act=quickhelp&id=$help','Help','width=250,height=400,resizable=yes,scrollbars=yes');\">Quick Help</a> )";
}
function js_template_tools()
{
return "
<script language='javascript'>
<!--
var baseUrl = \"{$this->base_url}\";
function restore(suid, expand)
{
if (confirm(\"Are you sure you want to restore the template?\\nALL UNSAVED CHANGES WILL BE LOST!\"))
{
self.location.href= baseUrl + '&act=templ&code=edit_bit&suid=' + suid + '&expand=' + expand;
}
else
{
alert (\"Restore Cancelled\");
}
}
function edit_box_size(cols, rows)
{
if (cols == '') { cols = 80; }
if (rows == '') { rows = 40; }
userCols = prompt(\"Enter the number of columns for the text area (width)\", cols);
if ( (userCols != null) && (userCols != \"\") )
{
userRows = prompt(\"Enter the number of rows for the text area (height)\", rows);
if ( (userRows != null) && (userRows != \"\") )
{
// Rows and cols set, save cookie, present alert.
document.cookie = 'ad_tempform='+userRows+'-'+userCols+'; path=/; expires=Wed, 1 Jan 2020 00:00:00 GMT;';
alert('Edit box preferences updated.\\nThe changes will take effect next time the edit screen is loaded');
}
else
{
alert('You must enter a value for the number of rows');
}
}
else
{
alert('You must enter a value for the number of columns');
}
}
function pop_win(theUrl, winName, theWidth, theHeight)
{
if (winName == '') { winName = 'Preview'; }
if (theHeight == '') { theHeight = 400; }
if (theWidth == '') { theWidth = 400; }
window.open('{$this->base_url}&act=rtempl&'+theUrl,winName,'width='+theWidth+',height='+theHeight+',resizable=yes,scrollbars=yes');
}
//-->
</script>
";
}
function js_checkdelete()
{
@@ -199,6 +269,19 @@ class admin_skin {
//+--------------------------------------------------------------------
function form_upload($name="FILE_UPLOAD", $js="") {
if ($js != "")
{
$js = ' '.$js.' ';
}
return "<input class='textinput' type='file' $js size='30' name='$name'>";
}
//+--------------------------------------------------------------------
function form_input($name, $value="", $type='text', $js="") {
if ($js != "")
@@ -210,6 +293,12 @@ class admin_skin {
}
function form_simple_input($name, $value="", $size='5') {
return "<input type='text' name='$name' value='$value' size='$size' id='textinput'>";
}
//+--------------------------------------------------------------------
function form_textarea($name, $value="", $cols='60', $rows='5', $wrap='soft') {
@@ -273,7 +362,7 @@ class admin_skin {
//+--------------------------------------------------------------------
function build_group_perms( $read='*', $write='*', $reply='*' ) {
function build_group_perms( $read='*', $write='*', $reply='*', $upload='*' ) {
global $DB;
@@ -290,7 +379,7 @@ class admin_skin {
{
var e = f.elements[i];
if ( (e.name != 'READ_ALL') && (e.name != 'REPLY_ALL') && (e.name != 'START_ALL') && (e.type == 'checkbox') && (! e.disabled) )
if ( (e.name != 'UPLOAD_ALL') && (e.name != 'READ_ALL') && (e.name != 'REPLY_ALL') && (e.name != 'START_ALL') && (e.type == 'checkbox') && (! e.disabled) )
{
s = e.name;
a = s.substring(0, 4);
@@ -312,6 +401,7 @@ class admin_skin {
if (IDnumber == 1) { str_part = 'READ' }
if (IDnumber == 2) { str_part = 'REPL' }
if (IDnumber == 3) { str_part = 'STAR' }
if (IDnumber == 4) { str_part = 'UPLO' }
totalboxes = 0;
total_on = 0;
@@ -320,7 +410,7 @@ class admin_skin {
{
var e = f.elements[i];
if ( (e.name != 'READ_ALL') && (e.name != 'REPLY_ALL') && (e.name != 'START_ALL') && (e.type == 'checkbox') )
if ( (e.name != 'UPLOAD_ALL') && (e.name != 'READ_ALL') && (e.name != 'REPLY_ALL') && (e.name != 'START_ALL') && (e.type == 'checkbox') )
{
s = e.name;
a = s.substring(0, 4);
@@ -342,12 +432,14 @@ class admin_skin {
if (IDnumber == 1) { f.READ_ALL.checked = true; }
if (IDnumber == 2) { f.REPLY_ALL.checked = true; }
if (IDnumber == 3) { f.START_ALL.checked = true; }
if (IDnumber == 4) { f.UPLOAD_ALL.checked = true; }
}
else
{
if (IDnumber == 1) { f.READ_ALL.checked = false; }
if (IDnumber == 2) { f.REPLY_ALL.checked = false; }
if (IDnumber == 3) { f.START_ALL.checked = false; }
if (IDnumber == 4) { f.UPLOAD_ALL.checked = false; }
}
}
@@ -362,10 +454,11 @@ class admin_skin {
$html .= "<table cellspacing='0' cellpadding='2' width='100%' border='0' align='center' border='0'>
<tr>
<td width='40%'><b><i>Member Group</i></b></td>
<td width='30%'><b>Read Topics</b></td>
<td width='30%'><b>Reply to Topics</b></td>
<td width='30%'><b>Start Topics</b></td>
<td width='20%'><b><i>Member Group</i></b></td>
<td width='20%'><b>Read Topics</b></td>
<td width='20%'><b>Reply to Topics</b></td>
<td width='20%'><b>Start Topics</b></td>
<td width='20%'><b>Can Upload</b></td>
</tr>
<tr>
<td align='left'><span style='color:red'>ALL MEMBER GROUPS</span><br>(current and future)</td>\n";
@@ -403,12 +496,21 @@ class admin_skin {
$html .= "<td align='center' id='mgred'><input type='checkbox' onClick='check_all(\"STAR\")' name='START_ALL' value='1'></td>\n";
}
if ($upload == '*')
{
$html .= "<td align='center' id='mgblue'><input type='checkbox' onClick='check_all(\"UPLO\")' name='UPLOAD_ALL' value='1' checked></td>\n";
}
else
{
$html .= "<td align='center' id='mgblue'><input type='checkbox' onClick='check_all(\"UPLO\")' name='UPLOAD_ALL' value='1'></td>\n";
}
//+-------------------------------------------------------------------------
$html .= "</tr>
<tr>
<td colspan='4'><br><b><i>OR</i> adjust the member groups individually below</b><br>&nbsp;</td>
<td colspan='5'><br><b><i>OR</i> adjust the member groups individually below</b><br>&nbsp;</td>
</tr>
<tr>\n";
@@ -419,7 +521,7 @@ class admin_skin {
{
$html .= "<tr>
<td align='right'><b>{$data['g_title']}</b></td>\n";
<td align='right'><b>{$data['g_title']} &raquo;</b></td>\n";
if ($read == '*')
{
@@ -464,7 +566,22 @@ class admin_skin {
$html .= "<td align='center' id='mgred'>Start&nbsp;<input type='checkbox' name='START_{$data['g_id']}' value='1' onclick=\"obj_checked(3)\"></td>";
}
$html .= "</tr><tr><td colspan='4' style='height:3px'>&nbsp;</td></tr>\n\n";
//+----------------------------------------------------------------------------------------
if ($upload == '*')
{
$html .= "<td align='center' id='mgblue'>Upload&nbsp;<input type='checkbox' name='UPLOAD_{$data['g_id']}' value='1' checked onclick=\"obj_checked(4)\"></td>";
}
else if ( preg_match( "/(?:^|,)".$data['g_id']."(?:,|$)/", $upload ) )
{
$html .= "<td align='center' id='mgblue'>Upload&nbsp;<input type='checkbox' name='UPLOAD_{$data['g_id']}' value='1' checked onclick=\"obj_checked(4)\"></td>";
}
else
{
$html .= "<td align='center' id='mgblue'>Upload&nbsp;<input type='checkbox' name='UPLOAD_{$data['g_id']}' value='1' onclick=\"obj_checked(4)\"></td>";
}
$html .= "</tr><tr><td colspan='5' style='height:3px; border-bottom:1px dashed black'>&nbsp;</td></tr>\n\n";
}
$html .= "</table>\n\n";
@@ -493,14 +610,19 @@ class admin_skin {
//+--------------------------------------------------------------------
function start_table( $title="") {
function start_table( $title="", $desc="") {
if ($desc != "")
{
$desc = "<br><span id='smalltitle'>&nbsp;&nbsp;&nbsp;&nbsp;$desc</span>";
}
if ($title != "")
{
$this->has_title = 1;
$html .= "<tr>
<td id='subtitle'>&#149;&nbsp;$title</td>
<td id='subtitle'>&#149;&nbsp;$title $desc</td>
<tr>
<td>
<table cellpadding='8' cellspacing='0' width='100%' align='center' border='0' id='tablewrap'>
@@ -653,21 +775,17 @@ class admin_skin {
//+--------------------------------------------------------------------
//+--------------------------------------------------------------------
function print_top($title="",$desc="") {
return "<html>
<head><title>Menu</title>
<meta http-equiv=\"Cache-Control\" content=\"no-cache, must-revalidate\">
<meta http-equiv=\"Pragma\" content=\"no-cache\">
<meta http-equiv=\"Expires\" content=\"Mon, 26 Jul 1997 05:00:00 GMT\">
<style type='text/css'>
function get_css()
{
return "<style type='text/css'>
TABLE, TR, TD { font-family:Verdana, Arial;font-size: 10px; color:#333333 }
BODY { font: 10px Verdana; color:#333333 }
a:link, a:visited, a:active { color:#000055 }
a:hover { color:#333377;text-decoration:underline }
#normal { font: 10px Verdana; color:#333333 }
#title { font-size:10px; font-weight:bold; line-height:150%; color:#FFFFFF; height: 26px; background-image: url({$this->img_url}/tile_back.gif); }
#title a:link, #title a:visited, #title a:active { text-decoration: underline; color : #FFFFFF; font-size:11px }
@@ -676,6 +794,7 @@ class admin_skin {
#large { font-family: verdana, arial; font-size:20px; color:#4C77B6; font-weight:bold; letter-spacing:-1px }
#subtitle { font-family: Arial,Verdana; font-size:18px; color:#FF9900; font-weight:bold }
#smalltitle { font-family: Arial,Verdana; font-size:11px; color:#FF9900; font-weight:bold }
#table1 { background-color:#FFFFFF; width:100%; align:center; border:1px solid black }
@@ -698,39 +817,77 @@ class admin_skin {
#mgred { border:1px solid #777777; background-color: #f5cdcd }
#mggreen { border:1px solid #777777; background-color: #caf2d9 }
#mgblue { border:1px solid #777777; background-color: #DFE6EF }
#green { background-color: #caf2d9 }
#red { background-color: #f5cdcd }
#button { background-color: #4C77B6; color: #FFFFFF; font-family:Verdana, Arial; font-size:11px }
#editbutton { background-color: #DDDDDD; color: #000000; font-family:Verdana, Arial; font-size:9px }
#textinput { background-color: #FFFFFF; color:Ê#000000; font-family:Verdana, Arial; font-size:10px }
#dropdown { background-color: #F5F9FD; color:Ê#000000; font-family:Verdana, Arial; font-size:10px }
#multitext { background-color: #F5F9FD; color:Ê#000000; font-family:Verdana, Arial; font-size:10px }
</style>
</style>";
}
function print_top($title="",$desc="") {
$css = $this->get_css();
return "<html>
<head><title>Menu</title>
<meta HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">
<meta HTTP-EQUIV=\"Cache-Control\" CONTENT=\"no-cache\">
<meta HTTP-EQUIV=\"Expires\" CONTENT=\"Mon, 06 May 1996 04:57:00 GMT\">
$css
</head>
<body marginheight='0' marginwidth='0' leftmargin='0' topmargin='0' bgcolor='#E7E7E7'>
<table cellspacing='3' cellpadding='2' width='100%' align='center' border='0' bgcolor='#E7E7E7'>
<table cellspacing='0' cellpadding='2' border='0' align='center' width='100%' bgcolor='#F5F9FD'>
<tr>
<td align='center' id='title'>Invision Board Administration</td>
</tr>
</table>
<!--NAV-->
<table cellspacing='0' cellpadding='2' width='100%' align='center' border='0' bgcolor='#E7E7E7'>
<tr>
<td>
<table cellspacing='3' cellpadding='2' width='100%' align='center' border='0' bgcolor='#FFFFFF' style='border:thin solid black'>
<tr>
<td align='center' id='title'>Invision Board Administration</td>
</tr>
<tr>
<td valign='top' bgcolor='#FFFFFF'>
<table cellspacing='0' cellpadding='2' border='0' align='center' width='100%' height='100%' bgcolor='#FFFFFF'>
<tr>
<td id='large'>$title</td>
</tr>
<td id='large'>$title</td>
</tr>
<tr>
<td>$desc<br>&nbsp;</td>
</tr>";
}
function wrap_nav($links)
{
return "
<!--<tr>
<td>-->
<table cellspacing='0' cellpadding='4' border='0' align='center' width='100%' id='tdrow2'>
<tr>
<td width='1%' align='left' valign='middle' nowrap><img src='html/sys-img/item.gif' border='0' title='ACP Navigation'></td>
<td width='99%' align='left' valign='middle'><b>$links</b></td>
</tr>
</table>
<!--</td>
</tr>-->
";
}
//+--------------------------------------------------------------------
function print_foot() {
@@ -897,10 +1054,7 @@ class admin_skin {
$frames = "<html>
<head><title>Invision Board Administration Center</title></head>
<frameset cols='185, *' frameborder='no' border='0' framespacing='0'>
<frameset rows='*, 80' frameborder='no' border='0' framespacing='0'>
<frame name='menu' noresize scrolling='auto' src='{$this->base_url}&act=menu'>
<frame name='acp' noresize scrolling='no' src='http://www.invisionboard.com/offsite/?version={$ibforums->version}'>
</frameset>
<frame name='menu' noresize scrolling='auto' src='{$this->base_url}&act=menu'>
<frame name='body' noresize scrolling='auto' src='{$this->base_url}&act=index'>
</frameset>
</html>";
+109
View File
@@ -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.',
)
);
?>
+211 -144
View File
@@ -2,10 +2,10 @@
/*
+--------------------------------------------------------------------------
| IBFORUMS v1
| Invision Board v1.1
| ========================================
| by Matthew Mecham and David Baxter
| (c) 2001,2002 IBForums
| by Matthew Mecham
| (c) 2001,2002 Invision Power Services
| http://www.ibforums.com
| ========================================
| Web: http://www.ibforums.com
@@ -43,14 +43,12 @@ class Boards {
function Boards() {
global $ibforums, $DB, $std, $print, $skin_universal;
require "./Skin/".$ibforums->skin_id."/skin_boards.php";
$this->base_url = "{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}";
// Get more words for this invocation!
$ibforums->lang = $std->load_words($ibforums->lang, 'lang_boards', $ibforums->lang_id);
$this->html = new skin_boards();
$this->html = $std->load_template('skin_boards');
if (! $ibforums->member['id'] )
{
@@ -63,8 +61,11 @@ class Boards {
$last_c_id = -1;
$DB->query("SELECT f.*, c.id as cat_id, c.position as cat_position, c.state as cat_state, c.name as cat_name, c.description as cat_desc, ".
"c.image, c.url from ibf_forums f, ibf_categories c order by c.position, f.position");
$DB->query("SELECT f.*, c.id as cat_id, c.position as cat_position, c.state as cat_state, c.name as cat_name, c.description as cat_desc,
c.image, c.url, m.member_name as mod_name, m.member_id as mod_id, m.is_group, m.group_id, m.group_name, m.mid
from ibf_forums f, ibf_categories c
LEFT JOIN ibf_moderators m ON (f.id=m.forum_id)
order by c.position, f.position");
while ( $r = $DB->fetch_row() )
@@ -91,15 +92,16 @@ class Boards {
{
$this->forums[ $r['id'] ] = $r;
}
}
$DB->query("SELECT forum_id, member_name, member_id FROM ibf_moderators");
while ( $mod = $DB->fetch_row() )
{
$this->mods[ $mod['forum_id'] ][] = array( 'name' => $mod['member_name'],
'id' => $mod['member_id'],
);
if ($r['mod_id'] != "")
{
$this->mods[ $r['id'] ][ $r['mid'] ] = array( 'name' => $r['mod_name'],
'id' => $r['mod_id'],
'isg' => $r['is_group'],
'gname'=> $r['group_name'],
'gid' => $r['group_id'],
);
}
}
//-----------------------------------
@@ -137,11 +139,22 @@ class Boards {
if ($ibforums->vars['show_active'])
{
if ($ibforums->vars['au_cutoff'] == "")
{
$ibforums->vars['au_cutoff'] = 15;
}
// Get the users from the DB
$time = time() - 900;
$cut_off = $ibforums->vars['au_cutoff'] * 60;
$DB->query("SELECT s.member_id, s.member_name, s.login_type, g.suffix, g.prefix FROM ibf_sessions s, ibf_groups g WHERE running_time > '$time' AND g.g_id=s.member_group ORDER BY running_time DESC");
$time = time() - $cut_off;
$DB->query("SELECT s.member_id, s.member_name, s.login_type, g.suffix, g.prefix
FROM ibf_sessions s
LEFT JOIN ibf_groups g ON (g.g_id=s.member_group)
WHERE running_time > '$time'
ORDER BY s.running_time DESC");
// cache all printed members so we don't double print them
$cached = array();
@@ -158,15 +171,22 @@ class Boards {
$cached[ $result['member_id'] ] = 1;
if ($result['login_type'] == 1)
{
$active['ANON']++;
if ( ($ibforums->member['mgroup'] == $ibforums->vars['admin_group']) and ($ibforums->vars['disable_admin_anon'] != 1) )
{
$active['NAMES'] .= " <span class='highlight'>&gt;</span><a href='{$ibforums->base_url}&act=Profile&MID={$result['member_id']}'>{$result['prefix']}{$result['member_name']}{$result['suffix']}</a>*";
$active['ANON']++;
}
else
{
$active['anon']++;
}
}
else
{
$active['MEMBERS']++;
$active['NAMES'] .= " <span id='highlight'>&gt;</span><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Profile&MID={$result['member_id']}'>{$result['prefix']}{$result['member_name']}{$result['suffix']}</a>";
$active['NAMES'] .= " <span class='highlight'>&gt;</span><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Profile&MID={$result['member_id']}'>{$result['prefix']}{$result['member_name']}{$result['suffix']}</a>";
}
}
}
}
@@ -179,8 +199,9 @@ class Boards {
$active['LINK'] = '[ '."<a href='".$this->base_url."&act=Online&CODE=listall'>".$ibforums->lang['browser_user_list']."</a>".' ]';
}
$stats_html .= $this->html->ActiveUsers($active);
$ibforums->lang['active_users'] = sprintf( $ibforums->lang['active_users'], $ibforums->vars['au_cutoff'] );
$stats_html .= $this->html->ActiveUsers($active, $ibforums->vars['au_cutoff']);
//-----------------------------------------------
// Are we viewing the calendar?
@@ -189,7 +210,7 @@ class Boards {
if ($ibforums->vars['show_birthdays'])
{
$user_time = time() + ($ibforums->vars['TIME_ZONE'] * 3600) + ($ibforums->member['TIME_ADJUST'] * 3600 );
$user_time = time() + ($ibforums->member['time_offset'] * 3600 );
$date = getdate($user_time);
@@ -204,7 +225,7 @@ class Boards {
while ($user = $DB->fetch_row())
{
$birthstring .= "<span id='highlight'>&gt;</span><a href='{$this->base_url}&act=Profile&CODE=03&MID={$user['id']}'>{$user['name']}</a> ";
$birthstring .= "<span class='highlight'>&gt;</span><a href='{$this->base_url}&act=Profile&CODE=03&MID={$user['id']}'>{$user['name']}</a> ";
if ($user['YEAR'])
{
$pyear = $year - $user['YEAR']; // $year = 2002 and $user['YEAR'] = 1976
@@ -228,6 +249,61 @@ class Boards {
}
//-----------------------------------------------
// Are we viewing the calendar?
//-----------------------------------------------
if ($ibforums->vars['show_calendar'])
{
if ($ibforums->vars['calendar_limit'] < 2)
{
$ibforums->vars['calendar_limit'] = 2;
}
$our_unix = time() + ($ibforums->member['time_offset'] * 3600 );
$max_date = $our_unix + ($ibforums->vars['calendar_limit'] * 86400);
$DB->query("SELECT eventid, title, read_perms, priv_event, userid FROM ibf_calendar_events WHERE unix_stamp > '$our_unix' and unix_stamp < '$max_date' ORDER BY unix_stamp ASC");
$show_events = array();
while ($event = $DB->fetch_row())
{
if ($event['priv_event'] == 1 and $ibforums->member['id'] != $event['userid'])
{
continue;
}
//-----------------------------------------
// Do we have permission to see the event?
//-----------------------------------------
if ( $event['read_perms'] != '*' )
{
if ( ! preg_match( "/(^|,)".$ibforums->member['mgroup']."(,|$)/", $event['read_perms'] ) )
{
continue;
}
}
$show_events[] = "<a href='{$ibforums->base_url}&act=calendar&code=showevent&eventid={$event['eventid']}'>".$event['title']."</a>";
}
if ( count($show_events) > 0 )
{
$event_string = implode( ", ", $show_events );
}
else
{
$event_string = $ibforums->lang['no_calendar_events'];
}
$ibforums->lang['calender_f_title'] = sprintf( $ibforums->lang['calender_f_title'], $ibforums->vars['calendar_limit'] );
$stats_html .= $this->html->calendar_events( $event_string );
}
//*********************************************/
// Add in show stats
//*********************************************/
@@ -250,14 +326,17 @@ class Boards {
$most_time = $std->get_date( $stats['MOST_DATE'], 'LONG' );
$ibforums->lang['most_online'] = preg_replace( "/<#NUM#>/" , $stats['MOST_COUNT'] , $ibforums->lang['most_online'] );
$ibforums->lang['most_online'] = preg_replace( "/<#DATE#>/", $most_time , $ibforums->lang['most_online'] );
$ibforums->lang['most_online'] = str_replace( "<#NUM#>" , $stats['MOST_COUNT'] , $ibforums->lang['most_online'] );
$ibforums->lang['most_online'] = str_replace( "<#DATE#>", $most_time , $ibforums->lang['most_online'] );
$total_posts = $stats['TOTAL_REPLIES']+$stats['TOTAL_TOPICS'];
$ibforums->lang['total_word_string'] = preg_replace( "/<#posts#>/" , "$total_posts" , $ibforums->lang['total_word_string'] );
$ibforums->lang['total_word_string'] = preg_replace( "/<#reg#>/" , $stats['MEM_COUNT'] , $ibforums->lang['total_word_string'] );
$ibforums->lang['total_word_string'] = preg_replace( "/<#mem#>/" , $stats['LAST_MEM_NAME'] , $ibforums->lang['total_word_string'] );
$link = $ibforums->base_url."&act=Profile&MID=".$stats['LAST_MEM_ID'];
$ibforums->lang['total_word_string'] = str_replace( "<#posts#>" , "$total_posts" , $ibforums->lang['total_word_string'] );
$ibforums->lang['total_word_string'] = str_replace( "<#reg#>" , $stats['MEM_COUNT'] , $ibforums->lang['total_word_string'] );
$ibforums->lang['total_word_string'] = str_replace( "<#mem#>" , $stats['LAST_MEM_NAME'] , $ibforums->lang['total_word_string'] );
$ibforums->lang['total_word_string'] = str_replace( "<#link#>" , $link , $ibforums->lang['total_word_string'] );
$stats_html .= $this->html->ShowStats($ibforums->lang['total_word_string']);
@@ -279,11 +358,26 @@ class Boards {
if ($this->news_title and $this->news_topic_id and $this->news_forum_id)
{
$t_html = $this->html->newslink( $this->news_forum_id, stripslashes($this->news_title) , $this->news_topic_id);
$this->output = preg_replace( "/<!-- IBF\.NEWSLINK -->/" , "$t_html" , $this->output );
$this->output = str_replace( "<!-- IBF.NEWSLINK -->" , "$t_html" , $this->output );
}
// Display quick log in if we're not a member
if ($ibforums->member['id'] < 1)
{
$this->output = str_replace( "<!--IBF.QUICK_LOG_IN-->" , $this->html->quick_log_in() , $this->output );
}
$print->add_output("$this->output");
$print->do_output( array( 'TITLE' => $ibforums->vars['board_name']." (Powered by Invision Board)", 'JS' => 0, 'NAV' => $this->nav ) );
$cp = " (Powered by Invision Board)";
if ($ibforums->vars['ips_cp_purchase'])
{
$cp = "";
}
$print->do_output( array( 'TITLE' => $ibforums->vars['board_name'].$cp, 'JS' => 0, 'NAV' => $this->nav ) );
}
@@ -293,44 +387,6 @@ class Boards {
//
//*********************************************/
function show_subforum() {
global $std, $DB, $ibforums;
$fid = $ibforums->input['f'];
if (!is_array( $this->forums[ $fid ] ) )
{
$std->Error( array( 'LEVEL' => 1, 'MSG' => 'missing_files' ) );
}
if ( (isset($this->children[ $fid ])) and (count($this->children[ $fid ]) > 0 ) )
{
foreach ($this->children[ $fid ] as $idx => $data)
{
$temp_html .= $this->process_forum($data['id'], $data);
}
}
else
{
$std->Error( array( 'LEVEL' => 1, 'MSG' => 'missing_files' ) );
}
if ($temp_html != "")
{
$this->output .= $this->html->subheader();
$this->output .= $temp_html;
$this->output .= $this->html->end_this_cat();
}
else
{
$std->Error( array( 'LEVEL' => 1, 'MSG' => 'missing_files' ) );
}
unset($temp_html);
$this->output .= $this->html->end_all_cats();
}
//*********************************************/
//
@@ -469,7 +525,25 @@ class Boards {
if ( (isset($this->children[ $forum_data['id'] ])) and (count($this->children[ $forum_data['id'] ]) > 0 ) )
{
$newest = array();
// Are we allowed to see the postable forum stuff?
if ($forum_data['sub_can_post'] == 1)
{
if ($forum_data['read_perms'] == '*')
{
$forum_data['fid'] = $forum_data['id'];
$newest = $forum_data;
}
else if ( preg_match( "/(^|,)".$ibforums->member['mgroup']."(,|$)/", $forum_data['read_perms'] ) )
{
$forum_data['fid'] = $forum_data['id'];
$newest = $forum_data;
}
else
{
$newest = array();
}
}
foreach($this->children[ $forum_data['id'] ] as $idx => $data)
{
@@ -504,36 +578,19 @@ class Boards {
if ($data['last_post'] > $newest['last_post'])
{
$newest['last_post'] = $data['last_post'];
$newest['fid'] = $data['id'];
if (strlen($data['last_title']) > 30)
{
$data['last_title'] = str_replace( "&#33;" , "!", $data['last_title'] );
$data['last_title'] = str_replace( "&quot;", "\"", $data['last_title'] );
$data['last_title'] = substr($data['last_title'],0,27) . "...";
$data['last_title'] = preg_replace( '/&(#(\d+;?)?)?\.\.\.$/', '...', $data['last_title'] );
}
if ($data['password'] != "")
{
$newest['last_topic'] = $ibforums->lang['f_protected'];
}
else
{
$newest['last_topic'] = "<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$data['id']}&t={$data['last_id']}&view=getlastpost'>{$data['last_title']}</a>";
}
if ( isset($data['last_poster_name']))
{
$newest['last_poster'] = $data['last_poster_id'] ? "<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Profile&CODE=03&MID={$data['last_poster_id']}'>{$data['last_poster_name']}</a>"
: $data['last_poster_name'];
}
$newest['last_post'] = $data['last_post'];
$newest['fid'] = $data['id'];
//$newest['id'] = $data['id'];
$newest['last_id'] = $data['last_id'];
$newest['last_title'] = $data['last_title'];
$newest['password'] = $data['password'];
$newest['last_poster_id'] = $data['last_poster_id'];
$newest['last_poster_name'] = $data['last_poster_name'];
$newest['status'] = $data['status'];
}
$newest['posts'] += $data['posts'];
$newest['topics'] += $data['topics'];
$newest['status'] = $data['status'];
$printed_children++;
@@ -550,18 +607,49 @@ class Boards {
// Fix up the last of the data
$newest['img_new_post'] = $this->new_posts($newest, 1);
if (strlen($newest['last_title']) > 30)
{
$newest['last_title'] = str_replace( "&#33;" , "!" , $newest['last_title'] );
$newest['last_title'] = str_replace( "&quot;", "\"", $newest['last_title'] );
$newest['last_title'] = substr($newest['last_title'],0,27) . "...";
$newest['last_title'] = preg_replace( '/&(#(\d+;?)?)?\.\.\.$/', '...', $newest['last_title'] );
}
if ($newest['password'] != "")
{
$newest['last_topic'] = $ibforums->lang['f_protected'];
}
else if($newest['last_title'] != "")
{
$newest['last_topic'] = "<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=ST&f={$newest['fid']}&t={$newest['last_id']}&view=getlastpost'>{$newest['last_title']}</a>";
}
else
{
$newest['last_topic'] = $ibforums->lang['f_none'];
}
if ( isset($newest['last_poster_name']))
{
$newest['last_poster'] = $newest['last_poster_id'] ? "<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Profile&CODE=03&MID={$newest['last_poster_id']}'>{$newest['last_poster_name']}</a>"
: $newest['last_poster_name'];
}
else
{
$newest['last_poster'] = $ibforums->lang['f_none'];
}
$newest['img_new_post'] = $std->forum_new_posts($newest, 1);
$newest['last_post'] = $std->get_date($newest['last_post'], 'LONG');
$newest['last_topic'] = $newest['last_topic'] ? $newest['last_topic'] : $ibforums->lang['f_none'];
foreach($newest as $k => $v)
{
if ($k == 'id')
{
continue;
}
$forum_data[$k] = $v;
}
$newest['last_poster'] = $newest['last_poster'] ? $newest['last_poster'] : $ibforums->lang['f_none'];
foreach($newest as $k => $v)
{
$forum_data[$k] = $v;
}
return $this->html->ForumRow($forum_data);
@@ -587,7 +675,7 @@ class Boards {
}
}
$forum_data['img_new_post'] = $this->new_posts($forum_data);
$forum_data['img_new_post'] = $std->forum_new_posts($forum_data);
$forum_data['last_post'] = $std->get_date($forum_data['last_post'], 'LONG');
@@ -608,7 +696,6 @@ class Boards {
$forum_data['last_title'] = str_replace( "&#33;" , "!", $forum_data['last_title'] );
$forum_data['last_title'] = str_replace( "&quot;", "\"", $forum_data['last_title'] );
if (strlen($forum_data['last_title']) > 30)
{
$forum_data['last_title'] = substr($forum_data['last_title'],0,27) . "...";
@@ -649,13 +736,29 @@ class Boards {
{
foreach ($this->mods[ $forum_data['id'] ] as $moderator)
{
$forum_data['moderator'] .= "<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Profile&CODE=03&MID={$moderator['id']}'>{$moderator['name']}</a>, ";
if ($moderator['isg'] == 1)
{
$forum_data['moderator'] .= "<a href='{$ibforums->base_url}&act=Members&max_results=30&filter={$moderator['gid']}&sort_order=asc&sort_key=name&st=0'>{$moderator['gname']}</a>, ";
}
else
{
$forum_data['moderator'] .= "<a href='{$ibforums->base_url}&act=Profile&CODE=03&MID={$moderator['id']}'>{$moderator['name']}</a>, ";
}
}
$forum_data['moderator'] = preg_replace( "!,\s+$!", "", $forum_data['moderator'] );
}
else
{
$forum_data['moderator'] .= "<a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Profile&CODE=03&MID={$this->mods[$forum_data['id']]['id']}'>{$this->mods[$forum_data['id']]['name']}</a>";
if ($moderator['isg'] == 1)
{
$forum_data['moderator'] .= "<a href='{$ibforums->base_url}&act=Members&max_results=30&filter={$this->mods[$forum_data['id']]['gid']}&sort_order=asc&sort_key=name&st=0'>{$this->mods[$forum_data['id']]['gname']}</a>, ";
}
else
{
$forum_data['moderator'] .= "<a href='{$ibforums->base_url}&act=Profile&CODE=03&MID={$this->mods[$forum_data['id']]['id']}'>{$this->mods[$forum_data['id']]['name']}</a>";
}
}
}
@@ -667,42 +770,6 @@ class Boards {
}
function new_posts($forum_data, $sub=0) {
global $ibforums, $std;
$rtime = $ibforums->input['last_visit'];
$fid = $forum_data['fid'] == "" ? $forum_data['id'] : $forum_data['fid'];
if ( $ftime = $std->my_getcookie('fread_'.$fid ) )
{
$rtime = $ftime > $rtime ? $ftime : $rtime;
}
if ($sub == 0)
{
if ( ! $forum_data['status'] )
{
return $ibforums->skin['C_LOCKED'];
}
$sub_cat_img = '';
}
else
{
$sub_cat_img = '_CAT';
}
if ($forum_data['password'] and $sub == 0)
{
return $forum_data['last_post'] > $rtime ? $ibforums->skin['C_ON_RES']
: $ibforums->skin['C_OFF_RES'];
}
return $forum_data['last_post'] > $rtime ? $ibforums->skin['C_ON'.$sub_cat_img]
: $ibforums->skin['C_OFF'.$sub_cat_img];
}
}
?>
Loaded 100 of 179 files, more files were not shown because too many files have changed in this diff. Show more