You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
(95) |
Apr
(270) |
May
(111) |
Jun
|
Jul
|
Aug
(64) |
Sep
(130) |
Oct
(319) |
Nov
(17) |
Dec
(191) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(53) |
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
(387) |
Jul
(102) |
Aug
(247) |
Sep
(120) |
Oct
(1) |
Nov
(8) |
Dec
(21) |
| 2007 |
Jan
(38) |
Feb
(36) |
Mar
|
Apr
(32) |
May
(135) |
Jun
(523) |
Jul
(192) |
Aug
(103) |
Sep
(533) |
Oct
(77) |
Nov
(23) |
Dec
(203) |
| 2008 |
Jan
(312) |
Feb
(1193) |
Mar
(404) |
Apr
(67) |
May
(62) |
Jun
(497) |
Jul
(297) |
Aug
(110) |
Sep
(335) |
Oct
(256) |
Nov
(50) |
Dec
(118) |
| 2009 |
Jan
(67) |
Feb
(10) |
Mar
(1) |
Apr
(1) |
May
|
Jun
(10) |
Jul
(61) |
Aug
|
Sep
(16) |
Oct
(45) |
Nov
(12) |
Dec
(14) |
| 2010 |
Jan
(30) |
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
(7) |
Aug
(7) |
Sep
(5) |
Oct
(5) |
Nov
|
Dec
|
| 2011 |
Jan
(7) |
Feb
(3) |
Mar
(89) |
Apr
(11) |
May
(5) |
Jun
|
Jul
(8) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
(89) |
| 2012 |
Jan
(7) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(3) |
Oct
(42) |
Nov
(1) |
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
(19) |
Apr
(90) |
May
(38) |
Jun
(235) |
Jul
(38) |
Aug
(10) |
Sep
|
Oct
(29) |
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
(6) |
May
(52) |
Jun
|
Jul
(7) |
Aug
|
Sep
(17) |
Oct
|
Nov
|
Dec
|
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:16
|
Update of /cvsroot/mxbb/core27x/modules/mx_last_msg/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/modules/mx_last_msg/templates Added Files: mx_last_msg.tpl mx_last_msg_view.tpl Log Message: Initital core 2.7.x commit :-) --- NEW FILE: mx_last_msg.tpl --- <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="0" border="0" class="forumline"> <tr> <th class="thHead" align="left" colspan="2" > {L_TITLE} </th> </tr> <!-- BEGIN msg_row --> <tr> <td class="row2" align="center"><span class="cattitle"><img src="{U_PHPBB_ROOT_PATH}{msg_row.FOLDER_IMG}" width="19" height="18" alt="{msg_row.L_TOPIC_FOLDER_ALT}" title="{msg_row.L_TOPIC_FOLDER_ALT}" /></span></td> <td class="row1" align="{U_ALIGN}"><span class="genmed"><b><a href="{msg_row.U_LAST_MSG}" target="{U_TARGET}" class="genmed">{msg_row.LAST_MSG}</a></b></span><br /><span class="genmed"><a href="{msg_row.U_FORUM}" target="{U_TARGET}" class="genmed">{msg_row.FORUM_NAME}</a></span><br /> <div align="right"><span class="gensmall" nowrap="nowrap">{msg_row.LAST_MSG_DATE}</span><span class="gensmall" nowrap="nowrap"> {msg_row.TOPIC_AUTHOR} {msg_row.LAST_POST_AUTHOR}{msg_row.LAST_POST_IMG}</span></div></td> </tr> <!-- END msg_row --> <tr valign="middle"> <td align="center" class="catBottom" height="28" colspan="2"> <a href="{U_URL_PREV}" class="cattitle"><img src="{TEMPLATE_ROOT_PATH}images/msg_prev.gif" border="0" width="19" height="18" alt="{L_MSG_PREV}" title="{L_MSG_PREV}" /></a> <a href="{U_URL_NEXT}" class="cattitle"><img src="{TEMPLATE_ROOT_PATH}images/msg_next.gif" border="0" width="19" height="18" alt="{L_MSG_NEXT}" title="{L_MSG_NEXT}" /></a> </td> </tr> </table> <br clear="all" /> --- NEW FILE: mx_last_msg_view.tpl --- <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="0" border="0" class="forumline"> <tr> <th class="thHead" align="left" colspan="4"> {L_TITLE} </th> </tr> <!-- BEGIN msg_row --> <tr> <td width="5%" class="catLeft" align="center"><span class="cattitle"><img src="{U_PHPBB_ROOT_PATH}{msg_row.FOLDER_IMG}" width="19" height="18" alt="{msg_row.L_TOPIC_FOLDER_ALT}" title="{msg_row.L_TOPIC_FOLDER_ALT}" /></span></td> <td class="row1" align="{U_ALIGN}"><span class="genmed"><a href="{msg_row.U_LAST_MSG}" target="{U_TARGET}" class="genmed">{msg_row.LAST_MSG}</a></span> </td> <td class="row1" align="{U_ALIGN}"><span class="genmed"><a href="{msg_row.U_FORUM}" target="{U_TARGET}" class="genmed">{msg_row.FORUM_NAME}</a></span> </td> <td class="row1" align="right"><span class="genmed"><a href="{msg_row.U_LAST_MSG}" target="{U_TARGET}" class="genmed">{msg_row.LAST_MSG_DATE} {msg_row.LAST_POST_AUTHOR}{msg_row.LAST_POST_IMG}</a></span></td> </tr> <!-- END msg_row --> <tr valign="middle"> <td align="center" class="catBottom" height="28" colspan="5"> <a href="{U_URL_PREV}" class="cattitle"><img src="{U_PORTAL_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/msg_prev.gif" border="0" width="19" height="18" alt="{L_MSG_PREV}" title="{L_MSG_PREV}" /></a> <a href="{U_URL_NEXT}" class="cattitle"><img src="{U_PORTAL_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/msg_next.gif" border="0" width="19" height="18" alt="{L_MSG_NEXT}" title="{L_MSG_NEXT}" /></a> </td> </tr> </table> <br clear="all" /> |
Update of /cvsroot/mxbb/core27x/install/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/install/templates Added Files: mx_install_body.tpl mx_install_button.tpl mx_install_footer.tpl mx_install_header.tpl mx_install_language.tpl mx_install_phpinfo.tpl Log Message: Initital core 2.7.x commit :-) --- NEW FILE: mx_install_language.tpl --- <form name="frmInstall" action="{S_FORM_ACTION}" method="post"> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <th colspan="2">{L_INITIAL_CONFIGURATION}</th> </tr> <tr> <td class="row1" width="50%" align="right"><span class="gen"><b>{L_LANGUAGE}: </b></span></td> <td class="row2">{S_LANG_SELECT}</td> </tr> <tr> <td class="catbottom" align="center" colspan="2">{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" value="{L_SUBMIT}" /></td> </tr> </table> </form> --- NEW FILE: mx_install_button.tpl --- <!-- BEGIN switch_are_you_sure --> <script language="javascript1.2" type="text/javascript"><!-- function areYouSure() { return confirm('{L_ARE_YOU_SURE}'); } //--></script> <!-- END switch_are_you_sure --> <form name="frmInstall" action="{S_FORM_ACTION}" method="post"> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <td class="catbottom" align="center" colspan="2">{S_HIDDEN_FIELDS}<input <!-- BEGIN switch_are_you_sure --> onclick="return areYouSure();" <!-- END switch_are_you_sure --> class="mainoption" type="submit" value="{L_SUBMIT}" /></td> </tr> </table> </form> --- NEW FILE: mx_install_body.tpl --- <script language="javascript1.2" type="text/javascript"><!-- function check_phpbb_path() { if( document.forms['frmInstall'] && document.forms['frmInstall'].elements['select_phpbb_path'] ) { var i = document.forms['frmInstall'].elements['select_phpbb_path'].value; for( var x in pathinfo[i] ) { document.forms['frmInstall'].elements[x].value = pathinfo[i][x]; } } } var pathinfo = []; var i = 0; <!-- BEGIN datarow --> pathinfo[i] = []; pathinfo[i]['phpbb_path'] = '{datarow.PHPBB_PATH}'; pathinfo[i]['phpbb_url'] = '{datarow.PHPBB_URL}'; pathinfo[i]['portal_url'] = '{datarow.PORTAL_URL}'; pathinfo[i]['dbms'] = '{datarow.DBMS}'; pathinfo[i]['dbhost'] = '{datarow.DB_HOST}'; pathinfo[i]['dbname'] = '{datarow.DB_NAME}'; pathinfo[i]['dbuser'] = '{datarow.DB_USER}'; pathinfo[i]['dbpasswd'] = '{datarow.DB_PASSWD}'; pathinfo[i]['prefix'] = '{datarow.DB_PREFIX}'; pathinfo[i]['phpbb_root_path'] = '{datarow.PHPBB_ROOT}'; i++; <!-- END datarow --> if(i) window.onload = check_phpbb_path; //--></script><noscript> <div align="center" style="color:red;">{L_NOSCRIPT_WARNING}</div> </noscript> <form name="frmInstall" action="{S_FORM_ACTION}" method="post"> <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <th colspan="2">{L_INITIAL_CONFIGURATION}</th> </tr> <!-- BEGIN switch_readonly_mode --> <tr> <td class="row1" align="right"><span class="gen"><b>{L_PHPBB_PATH}: </b></span></td> <td class="row2">{S_PHPBB_PATH}</td> </tr> <!-- END switch_readonly_mode --> <tr> <td class="row1" align="right"><span class="gen"><b>{L_MX_DB_PREFIX}: </b></span></td> <td class="row2"><input type="text" name="mx_prefix" value="{MX_DB_PREFIX}" /></td> </tr> <tr> <th colspan="2">{L_PORTAL_CONFIGURATION}</th> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_PHPBB_PATH}: </span></td> <td class="row2"><input type="text" size="80" name="phpbb_path" value="{PHPBB_PATH}"{READONLY} /></td> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_PORTAL_URL}: </span></td> <td class="row2"><input type="text" size="80" name="portal_url" value="{PORTAL_URL}"{READONLY} /></td> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_PHPBB_URL}: </span></td> <td class="row2"><input type="text" size="80" name="phpbb_url" value="{PHPBB_URL}"{READONLY} /></td> </tr> <tr> <th colspan="2">{L_DATABASE_CONFIGURATION}</th> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_DBMS}: </span></td> <td class="row2"><input type="text" name="dbms" value="{DBMS}"{READONLY} /></td> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_DB_HOST}: </span></td> <td class="row2"><input type="text" name="dbhost" value="{DB_HOST}"{READONLY} /></td> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_DB_NAME}: </span></td> <td class="row2"><input type="text" name="dbname" value="{DB_NAME}"{READONLY} /></td> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_DB_USER}: </span></td> <td class="row2"><input type="text" name="dbuser" value="{DB_USER}"{READONLY} /></td> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_DB_PASSWORD}: </span></td> <td class="row2"><input type="password" name="dbpasswd" value="{DB_PASSWD}"{READONLY} /></td> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_DB_PREFIX}: </span></td> <td class="row2"><input type="text" name="prefix" value="{DB_PREFIX}"{READONLY} /></td> </tr> <tr> <td class="catbottom" align="center" colspan="2">{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" value="{L_SUBMIT}" /></td> </tr> </table> </form> --- NEW FILE: mx_install_footer.tpl --- </td> </tr> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" valign="top" nowrap><span class="gensmall">{L_INSTALLER_NAME}<br />v. {L_INSTALLER_VERSION}</span></td> <td align="center" valign="top" width="100%"><span class="gen">{L_INSTALL_MOREINFO}</span></td> <td align="right" valign="top"><span class="gen"> {L_INSTALL_PHPINFO}</span></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </body> </html> --- NEW FILE: mx_install_phpinfo.tpl --- <table border="0" align="center" cellspacing="0" cellpadding="0"> <tr> <td align="center">{PHPINFO}</td> </tr> </table> --- NEW FILE: mx_install_header.tpl --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"> <title>{L_INSTALLATION}</title> <style type="text/css"><!-- /* The original subSilver Theme for phpBB version 2+ Created by subBlue design http://www.subBlue.com */ /* General page style. The scroll bar colours only visible in IE5.5+ */ body { background-color: #E5E5E5; scrollbar-face-color: #DEE3E7; scrollbar-highlight-color: #FFFFFF; scrollbar-shadow-color: #DEE3E7; scrollbar-3dlight-color: #D1D7DC; scrollbar-arrow-color: #006699; scrollbar-track-color: #EFEFEF; scrollbar-darkshadow-color: #98AAB1; } /* General font families for common tags */ font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif } a:link,a:active,a:visited { color : #006699; } a:hover { text-decoration: underline; color : #DD6900; } hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ .bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; } /* This is the outline round the main forum tables */ .forumline { background-color: #FFFFFF; border: 2px #006699 solid; } /* Main table cell colours and backgrounds */ td.row1 { background-color: #EFEFEF; } td.row2 { background-color: #DEE3E7; } td.row3 { background-color: #D1D7DC; } /* This is for the table cell above the Topics, Post & Last posts on the index.php page By default this is the fading out gradiated silver background. However, you could replace this with a bitmap specific for each forum */ td.rowpic { background-color: #FFFFFF; background-image: url({U_INSTALL_URL}images/cellpic2.jpg); background-repeat: repeat-y; } /* Header cells - the blue and silver gradient backgrounds */ th { color: #FFA34F; font-size: 11px; font-weight : bold; background-color: #006699; height: 25px; background-image: url({U_INSTALL_URL}images/cellpic3.gif); } td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { background-image: url({U_INSTALL_URL}images/cellpic1.gif); background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px; } /* Setting additional nice inner borders for the main table cells. The names indicate which sides the border will be on. Don't worry if you don't understand this, just ignore it :-) */ td.cat,td.catHead,td.catBottom { height: 29px; border-width: 0px 0px 0px 0px; } th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; } td.row3Right,td.spaceRow { background-color: #D1D7DC; border: #FFFFFF; border-style: solid; } th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ .maintitle,h1,h2 { font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; text-decoration: none; line-height : 120%; color : #000000; } /* General text */ .gen { font-size : 12px; } .genmed { font-size : 11px; } .gensmall { font-size : 10px; } .gen,.genmed,.gensmall { color : #000000; } a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; } a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #DD6900; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ .mainmenu { font-size : 11px; color : #000000 } a.mainmenu { text-decoration: none; color : #006699; } a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } /* Forum category titles */ .cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} a.cattitle { text-decoration: none; color : #006699; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ .forumlink { font-weight: bold; font-size: 12px; color : #006699; } a.forumlink { text-decoration: none; color : #006699; } a.forumlink:hover{ text-decoration: underline; color : #DD6900; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ .nav { font-weight: bold; font-size: 11px; color : #000000;} a.nav { text-decoration: none; color : #006699; } a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ .topictitle { font-weight: bold; font-size: 11px; color : #000000; } a.topictitle:link { text-decoration: none; color : #006699; } a.topictitle:visited { text-decoration: none; color : #5493B4; } a.topictitle:hover { text-decoration: underline; color : #DD6900; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ .name { font-size : 11px; color : #000000;} /* Location, number of posts, post date etc */ .postdetails { font-size : 10px; color : #000000; } /* The content of the posts (body of text) */ .postbody { font-size : 12px;} a.postlink:link { text-decoration: none; color : #006699 } a.postlink:visited { text-decoration: none; color : #5493B4; } a.postlink:hover { text-decoration: underline; color : #DD6900} /* Quote & Code blocks */ .code { font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ .copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} a.copyright { color: #444444; text-decoration: none;} a.copyright:hover { color: #000000; text-decoration: underline;} /* Form elements */ input,textarea, select { color : #000000; font: normal 11px Verdana, Arial, Helvetica, sans-serif; border-color : #000000; } /* The text input fields background colour */ input.post, textarea.post, select { background-color : #FFFFFF; } input { text-indent : 2px; } /* The buttons used for bbCode styling in message post */ input.button { background-color : #EFEFEF; color : #000000; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; } /* The main submit button option */ input.mainoption { background-color : #FAFAFA; font-weight : bold; } /* None-bold submit button */ input.liteoption { background-color : #FAFAFA; font-weight : normal; } /* This is the line in the posting page which shows the rollover help line. This is actually a text box, but if set to be the same colour as the background no one will know ;) */ .helpline { background-color: #DEE3E7; border-style: none; } --></style> <script language="javascript1.2" type="text/javascript"><!-- // Import the fancy styles for IE only (NS4.x doesn't use the @import function) if( document.all ) { document.write('<sty'+'le type="text/css">\n'+ 'body {\n'+ ' scrollbar-face-color: #DEE3E7;\n'+ ' scrollbar-highlight-color: #FFFFFF;\n'+ ' scrollbar-shadow-color: #DEE3E7;\n'+ ' scrollbar-3dlight-color: #D1D7DC;\n'+ ' scrollbar-arrow-color: #006699;\n'+ ' scrollbar-track-color: #EFEFEF;\n'+ ' scrollbar-darkshadow-color: #98AAB1;\n'+ '}\n'+ 'input, textarea, select {\n'+ ' border-top-width : 1px;\n'+ ' border-right-width : 1px;\n'+ ' border-bottom-width : 1px;\n'+ ' border-left-width : 1px;\n'+ '}\n'+ 'input { text-indent : 2px; }\n'+ 'input.button {\n'+ ' border-top-width : 1px;\n'+ ' border-right-width : 1px;\n'+ ' border-bottom-width : 1px;\n'+ ' border-left-width : 1px;\n'+ '}\n<'+'/'+'sty'+'le>'); } //--></script> </head> <body bgcolor="#E5E5E5" text="#000000" link="#006699" vlink="#5584AA"> <table width="100%" border="0" cellspacing="0" cellpadding="10" align="center"> <tr> <td class="bodyline" width="100%"> <table width="100%" border="0" cellspacing="0" cellpadding="4"> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><a href="http://www.mx-system.com" target="_blank"><img src="../templates/subSilver/images/banner_mx-system.gif" border="0" alt="mxBB-Portal" vspace="1" /></a></td> <td align="center" width="100%" valign="middle"><span class="maintitle">{L_INSTALLATION}</span></td> <td align="center" valign="top" nowrap><span class="gensmall">{L_PORTAL_NAME}<br />v. {L_PORTAL_VERSION}</span></td> </tr> </table> </td> </tr> <tr> <td> <table width="90%" border="0" align="center" cellspacing="0" cellpadding="0"> <tr> <td> <table border="0" align="center" cellspacing="0" cellpadding="0"> <tr> <td> <span class="gen">{L_INSTRUCTION_TEXT}</span> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td width="100%" align="center"> |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:15
|
Update of /cvsroot/mxbb/core27x/modules/mx_last_msg/language In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/modules/mx_last_msg/language Added Files: index.htm Log Message: Initital core 2.7.x commit :-) --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:15
|
Update of /cvsroot/mxbb/core27x/install/db In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/install/db Added Files: mysql.php mysql4.php postgres7.php Log Message: Initital core 2.7.x commit :-) --- NEW FILE: mysql.php --- <?php /*************************************************************************** * mysql.php * ------------------- * begin : Saturday, Feb 13, 2001 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: mysql.php,v 1.1 2005/05/06 06:47:58 jonohlsson Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ if(!defined("SQL_LAYER_mysql")) { define("SQL_LAYER_mysql","mysql"); class sql_db_mysql { var $db_connect_id; var $query_result; var $row = array(); var $rowset = array(); var $num_queries = 0; // // Constructor // function sql_db_mysql($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true) { $this->persistency = $persistency; $this->user = $sqluser; $this->password = $sqlpassword; $this->server = $sqlserver; $this->dbname = $database; if($this->persistency) { $this->db_connect_id = @mysql_pconnect($this->server, $this->user, $this->password); } else { $this->db_connect_id = @mysql_connect($this->server, $this->user, $this->password); } if($this->db_connect_id) { if($database != "") { $this->dbname = $database; $dbselect = @mysql_select_db($this->dbname); if(!$dbselect) { @mysql_close($this->db_connect_id); $this->db_connect_id = $dbselect; } } return $this->db_connect_id; } else { return false; } } // // Other base methods // function sql_close() { if($this->db_connect_id) { if($this->query_result) { @mysql_free_result($this->query_result); } $result = @mysql_close($this->db_connect_id); return $result; } else { return false; } } // // Base query method // function sql_query($query = "", $transaction = FALSE) { // Remove any pre-existing queries unset($this->query_result); if($query != "") { $this->num_queries++; $this->query_result = @mysql_query($query, $this->db_connect_id); } if($this->query_result) { unset($this->row[$this->query_result]); unset($this->rowset[$this->query_result]); return $this->query_result; } else { return ( $transaction == END_TRANSACTION ) ? true : false; } } // // Other query methods // function sql_numrows($query_id = 0) { if(!$query_id) { $query_id = $this->query_result; } if($query_id) { $result = @mysql_num_rows($query_id); return $result; } else { return false; } } function sql_affectedrows() { if($this->db_connect_id) { $result = @mysql_affected_rows($this->db_connect_id); return $result; } else { return false; } } function sql_numfields($query_id = 0) { if(!$query_id) { $query_id = $this->query_result; } if($query_id) { $result = @mysql_num_fields($query_id); return $result; } else { return false; } } function sql_fieldname($offset, $query_id = 0) { if(!$query_id) { $query_id = $this->query_result; } if($query_id) { $result = @mysql_field_name($query_id, $offset); return $result; } else { return false; } } function sql_fieldtype($offset, $query_id = 0) { if(!$query_id) { $query_id = $this->query_result; } if($query_id) { $result = @mysql_field_type($query_id, $offset); return $result; } else { return false; } } function sql_fetchrow($query_id = 0) { if(!$query_id) { $query_id = $this->query_result; } if($query_id) { $this->row[$query_id] = @mysql_fetch_array($query_id); return $this->row[$query_id]; } else { return false; } } function sql_fetchrowset($query_id = 0) { if(!$query_id) { $query_id = $this->query_result; } if($query_id) { unset($this->rowset[$query_id]); unset($this->row[$query_id]); while($this->rowset[$query_id] = @mysql_fetch_array($query_id)) { $result[] = $this->rowset[$query_id]; } return $result; } else { return false; } } function sql_fetchfield($field, $rownum = -1, $query_id = 0) { if(!$query_id) { $query_id = $this->query_result; } if($query_id) { if($rownum > -1) { $result = @mysql_result($query_id, $rownum, $field); } else { if(empty($this->row[$query_id]) && empty($this->rowset[$query_id])) { if($this->sql_fetchrow()) { $result = $this->row[$query_id][$field]; } } else { if($this->rowset[$query_id]) { $result = $this->rowset[$query_id][$field]; } else if($this->row[$query_id]) { $result = $this->row[$query_id][$field]; } } } return $result; } else { return false; } } function sql_rowseek($rownum, $query_id = 0){ if(!$query_id) { $query_id = $this->query_result; } if($query_id) { $result = @mysql_data_seek($query_id, $rownum); return $result; } else { return false; } } function sql_nextid(){ if($this->db_connect_id) { $result = @mysql_insert_id($this->db_connect_id); return $result; } else { return false; } } function sql_freeresult($query_id = 0){ if(!$query_id) { $query_id = $this->query_result; } if ( $query_id ) { unset($this->row[$query_id]); unset($this->rowset[$query_id]); @mysql_free_result($query_id); return true; } else { return false; } } function sql_error($query_id = 0) { $result["message"] = @mysql_error($this->db_connect_id); $result["code"] = @mysql_errno($this->db_connect_id); return $result; } } // class sql_db } // if ... define ?> --- NEW FILE: mysql4.php --- <?php /*************************************************************************** * mysql4.php * ------------------- * begin : Saturday, Feb 13, 2001 * copyright : (C) 2001 The phpBB Group * email : supportphpbb.com * * $Id: mysql4.php,v 1.1 2005/05/06 06:47:58 jonohlsson Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ if(!defined("SQL_LAYER_mysql4")) { define("SQL_LAYER_mysql4","mysql4"); class sql_db_mysql4 { var $db_connect_id; var $query_result; var $row = array(); var $rowset = array(); var $num_queries = 0; var $in_transaction = 0; // // Constructor // function sql_db_mysql4($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true) { $this->persistency = $persistency; $this->user = $sqluser; $this->password = $sqlpassword; $this->server = $sqlserver; $this->dbname = $database; $this->db_connect_id = ($this->persistency) ? mysql_pconnect($this->server, $this->user, $this->password) : mysql_connect($this->server, $this->user, $this->password); if( $this->db_connect_id ) { if( $database != "" ) { $this->dbname = $database; $dbselect = mysql_select_db($this->dbname); if( !$dbselect ) { mysql_close($this->db_connect_id); $this->db_connect_id = $dbselect; } } return $this->db_connect_id; } else { return false; } } // // Other base methods // function sql_close() { if( $this->db_connect_id ) { // // Commit any remaining transactions // if( $this->in_transaction ) { mysql_query("COMMIT", $this->db_connect_id); } return mysql_close($this->db_connect_id); } else { return false; } } // // Base query method // function sql_query($query = "", $transaction = FALSE) { // // Remove any pre-existing queries // unset($this->query_result); if( $query != "" ) { $this->num_queries++; if( $transaction == BEGIN_TRANSACTION && !$this->in_transaction ) { $result = mysql_query("BEGIN", $this->db_connect_id); if(!$result) { return false; } $this->in_transaction = TRUE; } $this->query_result = mysql_query($query, $this->db_connect_id); } else { if( $transaction == END_TRANSACTION && $this->in_transaction ) { $result = mysql_query("COMMIT", $this->db_connect_id); } } if( $this->query_result ) { unset($this->row[$this->query_result]); unset($this->rowset[$this->query_result]); if( $transaction == END_TRANSACTION && $this->in_transaction ) { $this->in_transaction = FALSE; if ( !mysql_query("COMMIT", $this->db_connect_id) ) { mysql_query("ROLLBACK", $this->db_connect_id); return false; } } return $this->query_result; } else { if( $this->in_transaction ) { mysql_query("ROLLBACK", $this->db_connect_id); $this->in_transaction = FALSE; } return false; } } // // Other query methods // function sql_numrows($query_id = 0) { if( !$query_id ) { $query_id = $this->query_result; } return ( $query_id ) ? mysql_num_rows($query_id) : false; } function sql_affectedrows() { return ( $this->db_connect_id ) ? mysql_affected_rows($this->db_connect_id) : false; } function sql_numfields($query_id = 0) { if( !$query_id ) { $query_id = $this->query_result; } return ( $query_id ) ? mysql_num_fields($query_id) : false; } function sql_fieldname($offset, $query_id = 0) { if( !$query_id ) { $query_id = $this->query_result; } return ( $query_id ) ? mysql_field_name($query_id, $offset) : false; } function sql_fieldtype($offset, $query_id = 0) { if( !$query_id ) { $query_id = $this->query_result; } return ( $query_id ) ? mysql_field_type($query_id, $offset) : false; } function sql_fetchrow($query_id = 0) { if( !$query_id ) { $query_id = $this->query_result; } if( $query_id ) { $this->row[$query_id] = mysql_fetch_array($query_id, MYSQL_ASSOC); return $this->row[$query_id]; } else { return false; } } function sql_fetchrowset($query_id = 0) { if( !$query_id ) { $query_id = $this->query_result; } if( $query_id ) { unset($this->rowset[$query_id]); unset($this->row[$query_id]); while($this->rowset[$query_id] = mysql_fetch_array($query_id, MYSQL_ASSOC)) { $result[] = $this->rowset[$query_id]; } return $result; } else { return false; } } function sql_fetchfield($field, $rownum = -1, $query_id = 0) { if( !$query_id ) { $query_id = $this->query_result; } if( $query_id ) { if( $rownum > -1 ) { $result = mysql_result($query_id, $rownum, $field); } else { if( empty($this->row[$query_id]) && empty($this->rowset[$query_id]) ) { if( $this->sql_fetchrow() ) { $result = $this->row[$query_id][$field]; } } else { if( $this->rowset[$query_id] ) { $result = $this->rowset[$query_id][$field]; } else if( $this->row[$query_id] ) { $result = $this->row[$query_id][$field]; } } } return $result; } else { return false; } } function sql_rowseek($rownum, $query_id = 0) { if( !$query_id ) { $query_id = $this->query_result; } return ( $query_id ) ? mysql_data_seek($query_id, $rownum) : false; } function sql_nextid() { return ( $this->db_connect_id ) ? mysql_insert_id($this->db_connect_id) : false; } function sql_freeresult($query_id = 0) { if( !$query_id ) { $query_id = $this->query_result; } if ( $query_id ) { unset($this->row[$query_id]); unset($this->rowset[$query_id]); mysql_free_result($query_id); return true; } else { return false; } } function sql_error() { $result['message'] = mysql_error($this->db_connect_id); $result['code'] = mysql_errno($this->db_connect_id); return $result; } } // class sql_db } // if ... define ?> --- NEW FILE: postgres7.php --- <?php /*************************************************************************** * postgres7.php * ------------------- * begin : Saturday, Feb 13, 2001 * copyright : (C) 2001 The phpBB Group * email : supportphpbb.com * * $Id: postgres7.php,v 1.1 2005/05/06 06:47:58 jonohlsson Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ if(!defined("SQL_LAYER_postgres")) { define("SQL_LAYER_postgres","postgresql"); class sql_db_postgres { var $db_connect_id; var $query_result; var $in_transaction = 0; var $row = array(); var $rowset = array(); var $rownum = array(); var $num_queries = 0; // // Constructor // function sql_db_postgres($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true) { $this->connect_string = ""; if( $sqluser ) { $this->connect_string .= "user=$sqluser "; } if( $sqlpassword ) { $this->connect_string .= "password=$sqlpassword "; } if( $sqlserver ) { if( ereg(":", $sqlserver) ) { list($sqlserver, $sqlport) = split(":", $sqlserver); $this->connect_string .= "host=$sqlserver port=$sqlport "; } else { if( $sqlserver != "localhost" ) { $this->connect_string .= "host=$sqlserver "; } } } if( $database ) { $this->dbname = $database; $this->connect_string .= "dbname=$database"; } $this->persistency = $persistency; $this->db_connect_id = ( $this->persistency ) ? pg_pconnect($this->connect_string) : pg_connect($this->connect_string); return ( $this->db_connect_id ) ? $this->db_connect_id : false; } // // Other base methods // function sql_close() { if( $this->db_connect_id ) { // // Commit any remaining transactions // if( $this->in_transaction ) { @pg_exec($this->db_connect_id, "COMMIT"); } if( $this->query_result ) { @pg_freeresult($this->query_result); } return @pg_close($this->db_connect_id); } else { return false; } } // // Query method // function sql_query($query = "", $transaction = false) { // // Remove any pre-existing queries // unset($this->query_result); if( $query != "" ) { $this->num_queries++; $query = preg_replace("/LIMIT ([0-9]+),([ 0-9]+)/", "LIMIT \\2 OFFSET \\1", $query); $query = preg_replace('#(.*WHERE.*)(username|user_email|ban_email) = \'(.*)\'#ise', "\"\\1LOWER(\\2) = '\" . strtolower('\\3') . \"'\"", $query); if( $transaction == BEGIN_TRANSACTION && !$this->in_transaction ) { $this->in_transaction = TRUE; if( !@pg_exec($this->db_connect_id, "BEGIN") ) { return false; } } $this->query_result = @pg_exec($this->db_connect_id, $query); if( $this->query_result ) { if( $transaction == END_TRANSACTION ) { $this->in_transaction = FALSE; if( !@pg_exec($this->db_connect_id, "COMMIT") ) { @pg_exec($this->db_connect_id, "ROLLBACK"); return false; } } $this->last_query_text[$this->query_result] = $query; $this->rownum[$this->query_result] = 0; unset($this->row[$this->query_result]); unset($this->rowset[$this->query_result]); return $this->query_result; } else { if( $this->in_transaction ) { @pg_exec($this->db_connect_id, "ROLLBACK"); } $this->in_transaction = FALSE; return false; } } else { if( $transaction == END_TRANSACTION && $this->in_transaction ) { $this->in_transaction = FALSE; if( !@pg_exec($this->db_connect_id, "COMMIT") ) { @pg_exec($this->db_connect_id, "ROLLBACK"); return false; } } return true; } } // // Other query methods // function sql_numrows($query_id = 0) { if( !$query_id ) { $query_id = $this->query_result; } return ( $query_id ) ? @pg_numrows($query_id) : false; } function sql_numfields($query_id = 0) { if( !$query_id ) { $query_id = $this->query_result; } return ( $query_id ) ? @pg_numfields($query_id) : false; } function sql_fieldname($offset, $query_id = 0) { if( !$query_id ) { $query_id = $this->query_result; } return ( $query_id ) ? @pg_fieldname($query_id, $offset) : false; } function sql_fieldtype($offset, $query_id = 0) { if( !$query_id ) { $query_id = $this->query_result; } return ( $query_id ) ? @pg_fieldtype($query_id, $offset) : false; } function sql_fetchrow($query_id = 0) { if( !$query_id ) { $query_id = $this->query_result; } if($query_id) { $this->row = @pg_fetch_array($query_id, $this->rownum[$query_id]); if( $this->row ) { $this->rownum[$query_id]++; return $this->row; } } return false; } function sql_fetchrowset($query_id = 0) { if( !$query_id ) { $query_id = $this->query_result; } if( $query_id ) { unset($this->rowset[$query_id]); unset($this->row[$query_id]); $this->rownum[$query_id] = 0; while( $this->rowset = @pg_fetch_array($query_id, $this->rownum[$query_id], PGSQL_ASSOC) ) { $result[] = $this->rowset; $this->rownum[$query_id]++; } return $result; } return false; } function sql_fetchfield($field, $row_offset=-1, $query_id = 0) { if( !$query_id ) { $query_id = $this->query_result; } if( $query_id ) { if( $row_offset != -1 ) { $this->row = @pg_fetch_array($query_id, $row_offset, PGSQL_ASSOC); } else { if( $this->rownum[$query_id] ) { $this->row = @pg_fetch_array($query_id, $this->rownum[$query_id]-1, PGSQL_ASSOC); } else { $this->row = @pg_fetch_array($query_id, $this->rownum[$query_id], PGSQL_ASSOC); if( $this->row ) { $this->rownum[$query_id]++; } } } return $this->row[$field]; } return false; } function sql_rowseek($offset, $query_id = 0) { if(!$query_id) { $query_id = $this->query_result; } if( $query_id ) { if( $offset > -1 ) { $this->rownum[$query_id] = $offset; return true; } else { return false; } } return false; } function sql_nextid() { $query_id = $this->query_result; if($query_id && $this->last_query_text[$query_id] != "") { if( preg_match("/^INSERT[\t\n ]+INTO[\t\n ]+([a-z0-9\_\-]+)/is", $this->last_query_text[$query_id], $tablename) ) { $query = "SELECT currval('" . $tablename[1] . "_id_seq') AS last_value"; $temp_q_id = @pg_exec($this->db_connect_id, $query); if( !$temp_q_id ) { return false; } $temp_result = @pg_fetch_array($temp_q_id, 0, PGSQL_ASSOC); return ( $temp_result ) ? $temp_result['last_value'] : false; } } return false; } function sql_affectedrows($query_id = 0) { if( !$query_id ) { $query_id = $this->query_result; } return ( $query_id ) ? @pg_cmdtuples($query_id) : false; } function sql_freeresult($query_id = 0) { if( !$query_id ) { $query_id = $this->query_result; } return ( $query_id ) ? @pg_freeresult($query_id) : false; } function sql_error($query_id = 0) { if( !$query_id ) { $query_id = $this->query_result; } $result['message'] = @pg_errormessage($this->db_connect_id); $result['code'] = -1; return $result; } } // class ... db_sql } // if ... defined ?> |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:14
|
Update of /cvsroot/mxbb/core27x/language In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/language Added Files: index.htm Log Message: Initital core 2.7.x commit :-) --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:10
|
Update of /cvsroot/mxbb/core27x/install/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/install/includes Added Files: template.php Log Message: Initital core 2.7.x commit :-) --- NEW FILE: template.php --- <?php /*************************************************************************** * template.php * ------------------- * begin : Saturday, Feb 13, 2001 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: template.php,v 1.1 2005/05/06 06:47:58 jonohlsson Exp $ * * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ /** * Template class. By Nathan Codding of the phpBB group. * The interface was originally inspired by PHPLib templates, * and the template file formats are quite similar. * */ class Template { var $classname = "Template"; // variable that holds all the data we'll be substituting into // the compiled templates. // ... // This will end up being a multi-dimensional array like this: // $this->_tpldata[block.][iteration#][child.][iteration#][child2.][iteration#][variablename] == value // if it's a root-level variable, it'll be like this: // $this->_tpldata[.][0][varname] == value var $_tpldata = array(); // Hash of filenames for each template handle. var $files = array(); // Root template directory. var $root = ""; // this will hash handle names to the compiled code for that handle. var $compiled_code = array(); // This will hold the uncompiled code for that handle. var $uncompiled_code = array(); /** * Constructor. Simply sets the root dir. * */ function Template($root = ".") { $this->set_rootdir($root); } /** * Destroys this template object. Should be called when you're done with it, in order * to clear out the template data so you can load/parse a new template set. */ function destroy() { $this->_tpldata = array(); } /** * Sets the template root directory for this Template object. */ function set_rootdir($dir) { if (!is_dir($dir)) { return false; } $this->root = $dir; return true; } /** * Sets the template filenames for handles. $filename_array * should be a hash of handle => filename pairs. */ function set_filenames($filename_array) { if (!is_array($filename_array)) { return false; } reset($filename_array); while(list($handle, $filename) = each($filename_array)) { $this->files[$handle] = $this->make_filename($filename); } return true; } /** * Load the file for the handle, compile the file, * and run the compiled code. This will print out * the results of executing the template. */ function pparse($handle) { if (!$this->loadfile($handle)) { die("Template->pparse(): Couldn't load template file for handle $handle"); } // actually compile the template now. if (!isset($this->compiled_code[$handle]) || empty($this->compiled_code[$handle])) { // Actually compile the code now. $this->compiled_code[$handle] = $this->compile($this->uncompiled_code[$handle]); } // Run the compiled code. eval($this->compiled_code[$handle]); return true; } /** * Inserts the uncompiled code for $handle as the * value of $varname in the root-level. This can be used * to effectively include a template in the middle of another * template. * Note that all desired assignments to the variables in $handle should be done * BEFORE calling this function. */ function assign_var_from_handle($varname, $handle) { if (!$this->loadfile($handle)) { die("Template->assign_var_from_handle(): Couldn't load template file for handle $handle"); } // Compile it, with the "no echo statements" option on. $_str = ""; $code = $this->compile($this->uncompiled_code[$handle], true, '_str'); // evaluate the variable assignment. eval($code); // assign the value of the generated variable to the given varname. $this->assign_var($varname, $_str); return true; } /** * Block-level variable assignment. Adds a new block iteration with the given * variable assignments. Note that this should only be called once per block * iteration. */ function assign_block_vars($blockname, $vararray) { if (strstr($blockname, '.')) { // Nested block. $blocks = explode('.', $blockname); $blockcount = sizeof($blocks) - 1; $str = '$this->_tpldata'; for ($i = 0; $i < $blockcount; $i++) { $str .= '[\'' . $blocks[$i] . '.\']'; eval('$lastiteration = sizeof(' . $str . ') - 1;'); $str .= '[' . $lastiteration . ']'; } // Now we add the block that we're actually assigning to. // We're adding a new iteration to this block with the given // variable assignments. $str .= '[\'' . $blocks[$blockcount] . '.\'][] = $vararray;'; // Now we evaluate this assignment we've built up. eval($str); } else { // Top-level block. // Add a new iteration to this block with the variable assignments // we were given. $this->_tpldata[$blockname . '.'][] = $vararray; } return true; } /** * Root-level variable assignment. Adds to current assignments, overriding * any existing variable assignment with the same name. */ function assign_vars($vararray) { reset ($vararray); while (list($key, $val) = each($vararray)) { $this->_tpldata['.'][0][$key] = $val; } return true; } /** * Root-level variable assignment. Adds to current assignments, overriding * any existing variable assignment with the same name. */ function assign_var($varname, $varval) { $this->_tpldata['.'][0][$varname] = $varval; return true; } /** * Generates a full path+filename for the given filename, which can either * be an absolute name, or a name relative to the rootdir for this Template * object. */ function make_filename($filename) { // Check if it's an absolute or relative path. if (substr($filename, 0, 1) != '/') { $filename = ($rp_filename = mx_realpath($this->root . '/' . $filename)) ? $rp_filename : $filename; } if (!file_exists($filename)) { die("Template->make_filename(): Error - file $filename does not exist"); } return $filename; } /** * If not already done, load the file for the given handle and populate * the uncompiled_code[] hash with its code. Do not compile. */ function loadfile($handle) { // If the file for this handle is already loaded and compiled, do nothing. if (isset($this->uncompiled_code[$handle]) && !empty($this->uncompiled_code[$handle])) { return true; } // If we don't have a file assigned to this handle, die. if (!isset($this->files[$handle])) { die("Template->loadfile(): No file specified for handle $handle"); } $filename = $this->files[$handle]; $str = implode("", @file($filename)); if (empty($str)) { die("Template->loadfile(): File $filename for handle $handle is empty"); } $this->uncompiled_code[$handle] = $str; return true; } /** * Compiles the given string of code, and returns * the result in a string. * If "do_not_echo" is true, the returned code will not be directly * executable, but can be used as part of a variable assignment * for use in assign_code_from_handle(). */ function compile($code, $do_not_echo = false, $retvar = '') { // replace \ with \\ and then ' with \'. $code = str_replace('\\', '\\\\', $code); $code = str_replace('\'', '\\\'', $code); // change template varrefs into PHP varrefs // This one will handle varrefs WITH namespaces $varrefs = array(); preg_match_all('#\{(([a-z0-9\-_]+?\.)+?)([a-z0-9\-_]+?)\}#is', $code, $varrefs); $varcount = sizeof($varrefs[1]); for ($i = 0; $i < $varcount; $i++) { $namespace = $varrefs[1][$i]; $varname = $varrefs[3][$i]; $new = $this->generate_block_varref($namespace, $varname); $code = str_replace($varrefs[0][$i], $new, $code); } // This will handle the remaining root-level varrefs $code = preg_replace('#\{([a-z0-9\-_]*?)\}#is', '\' . ( ( isset($this->_tpldata[\'.\'][0][\'\1\']) ) ? $this->_tpldata[\'.\'][0][\'\1\'] : \'\' ) . \'', $code); // Break it up into lines. $code_lines = explode("\n", $code); $block_nesting_level = 0; $block_names = array(); $block_names[0] = "."; // Second: prepend echo ', append ' . "\n"; to each line. $line_count = sizeof($code_lines); for ($i = 0; $i < $line_count; $i++) { $code_lines[$i] = chop($code_lines[$i]); if (preg_match('#<!-- BEGIN (.*?) -->#', $code_lines[$i], $m)) { $n[0] = $m[0]; $n[1] = $m[1]; // Added: dougk_ff7-Keeps templates from bombing if begin is on the same line as end.. I think. :) if ( preg_match('#<!-- END (.*?) -->#', $code_lines[$i], $n) ) { $block_nesting_level++; $block_names[$block_nesting_level] = $m[1]; if ($block_nesting_level < 2) { // Block is not nested. $code_lines[$i] = '$_' . $n[1] . '_count = ( isset($this->_tpldata[\'' . $n[1] . '.\']) ) ? sizeof($this->_tpldata[\'' . $n[1] . '.\']) : 0;'; $code_lines[$i] .= "\n" . 'for ($_' . $n[1] . '_i = 0; $_' . $n[1] . '_i < $_' . $n[1] . '_count; $_' . $n[1] . '_i++)'; $code_lines[$i] .= "\n" . '{'; } else { // This block is nested. // Generate a namespace string for this block. $namespace = implode('.', $block_names); // strip leading period from root level.. $namespace = substr($namespace, 2); // Get a reference to the data array for this block that depends on the // current indices of all parent blocks. $varref = $this->generate_block_data_ref($namespace, false); // Create the for loop code to iterate over this block. $code_lines[$i] = '$_' . $n[1] . '_count = ( isset(' . $varref . ') ) ? sizeof(' . $varref . ') : 0;'; $code_lines[$i] .= "\n" . 'for ($_' . $n[1] . '_i = 0; $_' . $n[1] . '_i < $_' . $n[1] . '_count; $_' . $n[1] . '_i++)'; $code_lines[$i] .= "\n" . '{'; } // We have the end of a block. unset($block_names[$block_nesting_level]); $block_nesting_level--; $code_lines[$i] .= '} // END ' . $n[1]; $m[0] = $n[0]; $m[1] = $n[1]; } else { // We have the start of a block. $block_nesting_level++; $block_names[$block_nesting_level] = $m[1]; if ($block_nesting_level < 2) { // Block is not nested. $code_lines[$i] = '$_' . $m[1] . '_count = ( isset($this->_tpldata[\'' . $m[1] . '.\']) ) ? sizeof($this->_tpldata[\'' . $m[1] . '.\']) : 0;'; $code_lines[$i] .= "\n" . 'for ($_' . $m[1] . '_i = 0; $_' . $m[1] . '_i < $_' . $m[1] . '_count; $_' . $m[1] . '_i++)'; $code_lines[$i] .= "\n" . '{'; } else { // This block is nested. // Generate a namespace string for this block. $namespace = implode('.', $block_names); // strip leading period from root level.. $namespace = substr($namespace, 2); // Get a reference to the data array for this block that depends on the // current indices of all parent blocks. $varref = $this->generate_block_data_ref($namespace, false); // Create the for loop code to iterate over this block. $code_lines[$i] = '$_' . $m[1] . '_count = ( isset(' . $varref . ') ) ? sizeof(' . $varref . ') : 0;'; $code_lines[$i] .= "\n" . 'for ($_' . $m[1] . '_i = 0; $_' . $m[1] . '_i < $_' . $m[1] . '_count; $_' . $m[1] . '_i++)'; $code_lines[$i] .= "\n" . '{'; } } } else if (preg_match('#<!-- END (.*?) -->#', $code_lines[$i], $m)) { // We have the end of a block. unset($block_names[$block_nesting_level]); $block_nesting_level--; $code_lines[$i] = '} // END ' . $m[1]; } else { // We have an ordinary line of code. if (!$do_not_echo) { $code_lines[$i] = 'echo \'' . $code_lines[$i] . '\' . "\\n";'; } else { $code_lines[$i] = '$' . $retvar . '.= \'' . $code_lines[$i] . '\' . "\\n";'; } } } // Bring it back into a single string of lines of code. $code = implode("\n", $code_lines); return $code ; } /** * Generates a reference to the given variable inside the given (possibly nested) * block namespace. This is a string of the form: * ' . $this->_tpldata['parent'][$_parent_i]['$child1'][$_child1_i]['$child2'][$_child2_i]...['varname'] . ' * It's ready to be inserted into an "echo" line in one of the templates. * NOTE: expects a trailing "." on the namespace. */ function generate_block_varref($namespace, $varname) { // Strip the trailing period. $namespace = substr($namespace, 0, strlen($namespace) - 1); // Get a reference to the data block for this namespace. $varref = $this->generate_block_data_ref($namespace, true); // Prepend the necessary code to stick this in an echo line. // Append the variable reference. $varref .= '[\'' . $varname . '\']'; $varref = '\' . ( ( isset(' . $varref . ') ) ? ' . $varref . ' : \'\' ) . \''; return $varref; } /** * Generates a reference to the array of data values for the given * (possibly nested) block namespace. This is a string of the form: * $this->_tpldata['parent'][$_parent_i]['$child1'][$_child1_i]['$child2'][$_child2_i]...['$childN'] * * If $include_last_iterator is true, then [$_childN_i] will be appended to the form shown above. * NOTE: does not expect a trailing "." on the blockname. */ function generate_block_data_ref($blockname, $include_last_iterator) { // Get an array of the blocks involved. $blocks = explode(".", $blockname); $blockcount = sizeof($blocks) - 1; $varref = '$this->_tpldata'; // Build up the string with everything but the last child. for ($i = 0; $i < $blockcount; $i++) { $varref .= '[\'' . $blocks[$i] . '.\'][$_' . $blocks[$i] . '_i]'; } // Add the block reference for the last child. $varref .= '[\'' . $blocks[$blockcount] . '.\']'; // Add the iterator for the last child if requried. if ($include_last_iterator) { $varref .= '[$_' . $blocks[$blockcount] . '_i]'; } return $varref; } } ?> |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:08
|
Update of /cvsroot/mxbb/core27x/cache In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/cache Added Files: .htaccess index.htm mx_cache.php Log Message: Initital core 2.7.x commit :-) --- NEW FILE: .htaccess --- deny from all --- NEW FILE: mx_cache.php --- <?php /*************************************************************************** * mx_cache.php * ------------------- * begin : juin, 2002 * copyright : (C) 2002 MX-System * email : su...@mx... * * $Id: mx_cache.php,v 1.1 2005/05/06 06:47:57 jonohlsson Exp $ * ***************************************************************************/ function from_text($string) { // puts 'em back... $string = ereg_replace( '([^\\\\])\\\\n', "\\1\n", $string); $string = ereg_replace( '([^\\\\])\\\\r', "\\1\r", $string); $string = str_replace( '\\\\', '\\', $string); return $string; } function to_text($string) { // removes all newlines etc... $string = str_replace( '\\', '\\\\', $string); $string = str_replace( "\n", '\n', $string); $string = str_replace( "\r", '\r', $string); return $string; } // // Read the cache file for the block configuration // function read_cache_config() { global $db, $mx_root_path, $HTTP_SESSION_VARS; get_block_config(); get_block_config_param(); $HTTP_SESSION_VARS['cache_read'] = TRUE; } function get_block_config() { global $db, $mx_root_path, $HTTP_SESSION_VARS; $file = $mx_root_path . "cache/block_config.xml"; if (!($handle = fopen($file, "r"))) { die("could not open XML input"); } $contents = fread ( $handle, filesize ($file)); fclose ($handle); while ( 0 != strpos($contents,"</item>",0) ) { $start = strpos($contents,"<item>",0); $end = strpos($contents,"</item>",0); $param = substr( $contents, $next, $end ); // $parameter_name = getpart( $param, 'parameter_name', 0 ); $block_id = getpart( $param, 'block_id' ); $block_title = getpart( $param, 'block_title' ); $block_desc = getpart( $param, 'block_desc' ); $function_id = getpart( $param, 'function_id' ); $auth_view = getpart( $param, 'auth_view' ); $auth_edit = getpart( $param, 'auth_edit' ); $auth_delete = getpart( $param, 'auth_delete' ); $auth_view_group = getpart( $param, 'auth_view_group' ); $auth_edit_group = getpart( $param, 'auth_edit_group' ); $row = array( "block_id" => $block_id, "block_title" => $block_title, "block_desc" => $block_desc, "function_id" => $function_id, "auth_view" => $auth_view, "auth_edit" => $auth_edit, "auth_delete" => $auth_delete, "auth_view_group" => $auth_view_group, "auth_edit_group" => $auth_edit_group); $HTTP_SESSION_VARS['block_' . $block_id] = $row; $contents = substr( $contents, $end + 1 ); }; } function get_block_config_param() { global $db, $mx_root_path, $HTTP_SESSION_VARS; $file = $mx_root_path . "cache/block_config_param.xml"; if (!($handle = fopen($file, "r"))) { die("could not open XML input"); } $contents = fread ( $handle, filesize ($file)); fclose ($handle); while ( 0 != strpos($contents,"</item>",0) ) { $start = strpos($contents,"<item>",0); $end = strpos($contents,"</item>",0); $param = substr( $contents, $next, $end ); // $parameter_name = getpart( $param, 'parameter_name', 0 ); $parameter_id = getpart( $param,'parameter_id' ); $block_id = getpart( $param,'block_id' ); $parameter_name = getpart( $param,'parameter_name' ); $parameter_value = from_text( getpart( $param,'parameter_value' )); $bbcode_uid = getpart( $param,'bbcode_uid' ); $param_row = array( "parameter_value" => $parameter_value, "bbcode_uid" => $bbcode_uid, "parameter_id" => $parameter_id ); $HTTP_SESSION_VARS['block_' . $block_id][$parameter_name] = $param_row; $contents = substr( $contents, $end + 1 ); }; } function getpart($texto,$string,$position=0) { $p0 = 0; $p0 += $position; $get = ""; $string = trim($string); if(strpos($texto,"<$string>",$p0) >=0) { $p1 = strpos($texto,"<$string>",$p0); $p2 = strpos($texto,"</$string>",$p0); $len = strlen("<$string>"); $get = substr($texto,($p1 + $len),($p2 - $p1 - $len)); $p0 = $p2+$len; } return $get; } function db2xml($sql, $xml_file) { global $db; if ( !( $result = $db->sql_query($sql) ) ) { return; } if( !( $create_xml = fopen($xml_file, 'w') ) ) { return; } fwrite($create_xml, "<xml>\r\n<table>\r\n"); while( $row = $db->sql_fetchrow($result) ) { fwrite($create_xml, "<item>\r\n"); for( $j=0; $line = each($row); $j++ ) { if ( $j % 2 ) { fwrite($create_xml, "<$line[0]>" . to_text($line[1]) . "</$line[0]>\r\n"); } } fwrite($create_xml, "</item>\r\n"); } fwrite($create_xml, "</table>\r\n</xml>"); fclose($create_xml); } function db2xml_all($sql, $xml_file) { global $db; if ( !( $result = $db->sql_query($sql) ) ) { return; } $block_id_tmp = ''; $create_xml = ''; $cache_start = false; while( $row = $db->sql_fetchrow($result) ) { if ( $block_id_tmp != $row['block_id'] && $cache_start ) { fwrite($create_xml, "</table>\r\n</xml>"); fclose($create_xml); } if ( $block_id_tmp != $row['block_id'] ) { $create_xml = fopen($xml_file . $row['block_id'] . '.xml', 'w'); fwrite($create_xml, "<xml>\r\n<table>\r\n"); $cache_start = true; } fwrite($create_xml, "<item>\r\n"); for( $j = 0; $line = each($row); $j++ ) { if ( $j % 2 ) { fwrite($create_xml, "<$line[0]>" . to_text($line[1]) . "</$line[0]>\r\n"); } } fwrite($create_xml, "</item>\r\n"); $block_id_tmp = $row['block_id']; } fwrite($create_xml, "</table>\r\n</xml>"); fclose($create_xml); } function write_cache_config() { global $mx_root_path; $cache_dir = $mx_root_path . 'cache/'; @mkdir($cache_dir, 0777); @chmod($cache_dir, 0777); if ( !is_writable($cache_dir) ) { $message = !empty($lang['Cache_dir_write_protect']) ? $lang['Cache_dir_write_protect'] : "Your cache directory is write-protected, unable to generate the cache file"; mx_message_die(GENERAL_MESSAGE, $message, ''); exit; } $sql = "SELECT blk.block_id , blk.block_title , blk.block_desc , blk.function_id , blk.auth_view , blk.auth_edit , blk.auth_delete , blk.auth_view_group , blk.auth_edit_group FROM " . BLOCK_TABLE . " blk ORDER BY blk.block_id"; db2xml($sql, $cache_dir. "block_config.xml"); $sql = "SELECT sys.parameter_id , sys.block_id , par.parameter_name , sys.parameter_value , sys.bbcode_uid FROM " . BLOCK_SYSTEM_PARAMETER_TABLE . " sys, " . PARAMETER_TABLE . " par WHERE sys.parameter_id = par.parameter_id ORDER BY sys.block_id, sys.parameter_id"; db2xml($sql, $cache_dir. "block_config_param.xml"); } ?> --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:08
|
Update of /cvsroot/mxbb/core27x/install/images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/install/images Added Files: cellpic1.gif cellpic2.jpg cellpic3.gif Log Message: Initital core 2.7.x commit :-) --- NEW FILE: cellpic3.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: cellpic2.jpg --- (This appears to be a binary file; contents omitted.) --- NEW FILE: cellpic1.gif --- (This appears to be a binary file; contents omitted.) |
Update of /cvsroot/mxbb/core27x/install/schemas In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/install/schemas Added Files: mysql_schema_install.sql mysql_schema_upgrade_to_2.7.0.sql mysql_schema_upgrade_to_2.7.1.sql mysql_schema_upgrade_to_2.705.sql mysql_schema_upgrade_to_2.706.sql postgres_schema_install.sql postgres_schema_upgrade_to_2.7.0.sql postgres_schema_upgrade_to_2.7.1.sql postgres_schema_upgrade_to_2.705.sql postgres_schema_upgrade_to_2.706.sql upgrade_schemas_map.php Log Message: Initital core 2.7.x commit :-) --- NEW FILE: mysql_schema_upgrade_to_2.706.sql --- # # mxBB-Portal - MySQL Schema - Upgrade "2.706" # # $Id: mysql_schema_upgrade_to_2.706.sql,v 1.1 2005/05/06 06:47:59 jonohlsson Exp $ # # ------------------------------------------------------------ # # New Fields in Table `mx_portal` # ALTER TABLE mx_table_portal ADD portal_version VARCHAR(255) DEFAULT NULL; ALTER TABLE mx_table_portal ADD top_phpbb_links SMALLINT(5) UNSIGNED DEFAULT '1' NOT NULL; # ------------------------------------------------------------ # # New Fields in Table `mx_block` # ALTER TABLE mx_table_block ADD auth_view_group SMALLINT(5) NOT NULL DEFAULT '0'; ALTER TABLE mx_table_block ADD auth_edit_group SMALLINT(5) NOT NULL DEFAULT '0'; ALTER TABLE mx_table_block ADD auth_delete_group SMALLINT(5) NOT NULL DEFAULT '0'; # ------------------------------------------------------------ # # New Fields in Table `mx_page` # ALTER TABLE mx_table_page ADD auth_view_group SMALLINT(5) NOT NULL DEFAULT '0'; # ------------------------------------------------------------ # # New Fields in Table `mx_menu_nav` # ALTER TABLE mx_table_menu_nav ADD page_id SMALLINT(5) UNSIGNED DEFAULT '0'; ALTER TABLE mx_table_menu_nav ADD auth_view_group SMALLINT(5) NOT NULL DEFAULT '0'; # ------------------------------------------------------------ # # New Fields in Table `mx_menu_categories` # ALTER TABLE mx_table_menu_categories ADD cat_show TINYINT(1) UNSIGNED DEFAULT '1' NOT NULL; # ------------------------------------------------------------ --- NEW FILE: mysql_schema_upgrade_to_2.7.1.sql --- # # mxBB-Portal - MySQL Schema - Upgrade "2.7.1" # # $Id: mysql_schema_upgrade_to_2.7.1.sql,v 1.1 2005/05/06 06:47:59 jonohlsson Exp $ # # ------------------------------------------------------------ # # Drop unused Table `mx_block_user_parameter` (finally official) # DROP TABLE IF EXISTS mx_table_block_user_parameter; # ------------------------------------------------------------ # # New Fields in Table `mx_page` # ALTER TABLE mx_table_page ADD page_header VARCHAR(255) DEFAULT 'overall_header.tpl'; # ------------------------------------------------------------ # # New Fields in Table `mx_menu_nav` # ALTER TABLE mx_table_menu_nav ADD link_target TINYINT(2) UNSIGNED NOT NULL DEFAULT '0'; # ------------------------------------------------------------ # # Updating Core Blocks Module # UPDATE mx_table_module SET module_name = 'Core Blocks', module_desc = 'Core blocks' WHERE module_id = '10'; # ------------------------------------------------------------ # # Updating TextBlocks Module # UPDATE mx_table_function SET module_id = '20', function_name = 'TextBlock_BBcode', function_desc = 'TextBlock (BBcode) Block', function_file = 'mx_textblock_bbcode.php', function_admin = 'modules/mx_textblocks/admin/admin_edit.php' WHERE function_id = '10' OR function_file = 'mx_block.php'; UPDATE mx_table_function SET module_id = '20', function_name = 'TextBlock_Html', function_desc = 'TextBlock (Html) Block', function_file = 'mx_textblock_html.php', function_admin = 'modules/mx_textblocks/admin/admin_edit.php' WHERE function_id = '70' OR function_file = 'mx_block_html.php'; INSERT INTO mx_table_module VALUES ('20', 'Text Blocks', 'modules/mx_textblocks/', 'Textblocks module', ''); INSERT INTO mx_table_function VALUES('22', '20', 'TextBlock_Multi', 'Textblock (BBcode and Html) with parameters', 'mx_textblock_multi.php', 'modules/mx_textblocks/admin/admin_edit.php'); INSERT INTO mx_table_parameter (function_id, parameter_name, parameter_type, parameter_default, parameter_function) VALUES('22', 'Text', 'BBText', 'Enter your block text here', ''); INSERT INTO mx_table_parameter (function_id, parameter_name, parameter_type, parameter_default, parameter_function) VALUES('22', 'text_style', 'Values', 'none', ''); INSERT INTO mx_table_parameter (function_id, parameter_name, parameter_type, parameter_default, parameter_function) VALUES('22', 'block_style', 'Boolean', 'TRUE', ''); INSERT INTO mx_table_parameter (function_id, parameter_name, parameter_type, parameter_default, parameter_function) VALUES('22', 'title_style', 'Boolean', 'TRUE', ''); INSERT INTO mx_table_parameter (function_id, parameter_name, parameter_type, parameter_default, parameter_function) VALUES('22', 'show_title', 'Boolean', 'TRUE', ''); # ------------------------------------------------------------ # # Adding Multiple Horizontal Blocks from Flexible Blocks # INSERT INTO mx_table_function VALUES('19', '10', 'Split Blocks', 'Place blocks side by side in one column.', 'mx_multiple_blocks.php', ''); INSERT INTO mx_table_parameter (function_id, parameter_name, parameter_type, parameter_default, parameter_function) VALUES('19', 'block_ids', 'Function', '1,2,3', 'get_list_multiple( \"{parameter_id}[]\", BLOCK_TABLE, \'block_id\', \'block_title\', \"{parameter_value}\", TRUE)'); INSERT INTO mx_table_parameter (function_id, parameter_name, parameter_type, parameter_default, parameter_function) VALUES('19', 'block_sizes', 'Text', '20%,30%,*', ''); INSERT INTO mx_table_parameter (function_id, parameter_name, parameter_type, parameter_default, parameter_function) VALUES('19', 'space_between', 'Number', '4', ''); # ------------------------------------------------------------ --- NEW FILE: postgres_schema_upgrade_to_2.706.sql --- -- -- mxBB-Portal - PostgreSQL Schema - Upgrade "2.706" -- -- $Id: postgres_schema_upgrade_to_2.706.sql,v 1.1 2005/05/06 06:47:59 jonohlsson Exp $ -- -- ------------------------------------------------------------ -- -- New Fields in Table `mx_portal` -- ALTER TABLE mx_table_portal ADD portal_version VARCHAR(255) DEFAULT NULL; ALTER TABLE mx_table_portal ADD top_phpbb_links smallint UNSIGNED DEFAULT '1' NOT NULL; -- ------------------------------------------------------------ -- -- New Fields in Table `mx_block` -- ALTER TABLE mx_table_block ADD auth_view_group smallint NOT NULL DEFAULT '0'; ALTER TABLE mx_table_block ADD auth_edit_group smallint NOT NULL DEFAULT '0'; ALTER TABLE mx_table_block ADD auth_delete_group smallint NOT NULL DEFAULT '0'; -- ------------------------------------------------------------ -- -- New Fields in Table `mx_page` -- ALTER TABLE mx_table_page ADD auth_view_group smallint NOT NULL DEFAULT '0'; -- ------------------------------------------------------------ -- -- New Fields in Table `mx_menu_nav` -- ALTER TABLE mx_table_menu_nav ADD page_id smallint UNSIGNED DEFAULT '0'; ALTER TABLE mx_table_menu_nav ADD auth_view_group smallint NOT NULL DEFAULT '0'; -- ------------------------------------------------------------ -- -- New Fields in Table `mx_menu_categories` -- ALTER TABLE mx_table_menu_categories ADD cat_show smallint UNSIGNED DEFAULT '1' NOT NULL; -- ------------------------------------------------------------ --- NEW FILE: postgres_schema_upgrade_to_2.7.1.sql --- -- -- mxBB-Portal - PostgreSQL Schema - Upgrade "2.7.1" -- -- $Id: postgres_schema_upgrade_to_2.7.1.sql,v 1.1 2005/05/06 06:47:59 jonohlsson Exp $ -- -- ------------------------------------------------------------ -- -- Drop unused Table `mx_block_user_parameter` (finally official) -- -- ------------------------------------------------------------ -- -- New Fields in Table `mx_page` -- ALTER TABLE mx_table_page ADD page_header VARCHAR(255) DEFAULT 'overall_header.tpl'; -- ------------------------------------------------------------ -- -- New Fields in Table `mx_menu_nav` -- ALTER TABLE mx_table_menu_nav ADD link_target smallint UNSIGNED NOT NULL DEFAULT '0'; -- ------------------------------------------------------------ -- -- Updating Core Blocks Module -- UPDATE mx_table_module SET module_name = 'Core Blocks', module_desc = 'Core blocks' WHERE module_id = '10'; -- ------------------------------------------------------------ -- -- Updating TextBlocks Module -- UPDATE mx_table_function SET module_id = '20', function_name = 'TextBlock_BBcode', function_desc = 'TextBlock (BBcode) Block', function_file = 'mx_textblock_bbcode.php', function_admin = 'modules/mx_textblocks/admin/admin_edit.php' WHERE function_id = '10' OR function_file = 'mx_block.php'; UPDATE mx_table_function SET module_id = '20', function_name = 'TextBlock_Html', function_desc = 'TextBlock (Html) Block', function_file = 'mx_textblock_html.php', function_admin = 'modules/mx_textblocks/admin/admin_edit.php' WHERE function_id = '70' OR function_file = 'mx_block_html.php'; INSERT INTO mx_table_module VALUES ('20', 'Text Blocks', 'modules/mx_textblocks/', 'Textblocks module', ''); INSERT INTO mx_table_function VALUES('22', '20', 'TextBlock_Multi', 'Textblock (BBcode and Html) with parameters', 'mx_textblock_multi.php', 'modules/mx_textblocks/admin/admin_edit.php'); INSERT INTO mx_table_parameter (function_id, parameter_name, parameter_type, parameter_default, parameter_function) VALUES('22', 'Text', 'BBText', 'Enter your block text here', ''); INSERT INTO mx_table_parameter (function_id, parameter_name, parameter_type, parameter_default, parameter_function) VALUES('22', 'text_style', 'Values', 'none', ''); INSERT INTO mx_table_parameter (function_id, parameter_name, parameter_type, parameter_default, parameter_function) VALUES('22', 'block_style', 'Boolean', 'TRUE', ''); INSERT INTO mx_table_parameter (function_id, parameter_name, parameter_type, parameter_default, parameter_function) VALUES('22', 'title_style', 'Boolean', 'TRUE', ''); INSERT INTO mx_table_parameter (function_id, parameter_name, parameter_type, parameter_default, parameter_function) VALUES('22', 'show_title', 'Boolean', 'TRUE', ''); -- ------------------------------------------------------------ -- -- Adding Multiple Horizontal Blocks from Flexible Blocks -- INSERT INTO mx_table_function VALUES('19', '10', 'Split Blocks', 'Place blocks side by side in one column.', 'mx_multiple_blocks.php', ''); INSERT INTO mx_table_parameter (function_id, parameter_name, parameter_type, parameter_default, parameter_function) VALUES('19', 'block_ids', 'Function', '1,2,3', 'get_list_multiple( \"{parameter_id}[]\", BLOCK_TABLE, \'block_id\', \'block_title\', \"{parameter_value}\", TRUE)'); INSERT INTO mx_table_parameter (function_id, parameter_name, parameter_type, parameter_default, parameter_function) VALUES('19', 'block_sizes', 'Text', '20%,30%,*', ''); INSERT INTO mx_table_parameter (function_id, parameter_name, parameter_type, parameter_default, parameter_function) VALUES('19', 'space_between', 'Number', '4', ''); -- ------------------------------------------------------------ --- NEW FILE: mysql_schema_upgrade_to_2.7.0.sql --- # # mxBB-Portal - MySQL Schema - Upgrade "2.7.0" # # $Id: mysql_schema_upgrade_to_2.7.0.sql,v 1.1 2005/05/06 06:47:59 jonohlsson Exp $ # # ------------------------------------------------------------ # # Convert old Modules to Blocks # INSERT INTO mx_table_block_system_parameter (block_id, parameter_id, parameter_value) SELECT 1, 15, welcome_text from mx_table_welcome_msg; INSERT INTO mx_table_block_system_parameter (block_id, parameter_id, parameter_value) SELECT 5, 13, poll_topic_id FROM mx_table_config_poll; INSERT INTO mx_table_block_system_parameter (block_id, parameter_id, parameter_value) SELECT 16, 17, last_msg_number FROM mx_table_config_last_msg; INSERT INTO mx_table_block_system_parameter (block_id, parameter_id, parameter_value) SELECT 16, 18, last_msg_display_date FROM mx_table_config_last_msg; INSERT INTO mx_table_block_system_parameter (block_id, parameter_id, parameter_value) SELECT 16, 19, last_msg_length FROM mx_table_config_last_msg; INSERT INTO mx_table_block_system_parameter (block_id, parameter_id, parameter_value) SELECT 16, 20, last_msg_target FROM mx_table_config_last_msg; INSERT INTO mx_table_block_system_parameter (block_id, parameter_id, parameter_value) SELECT 16, 21, last_msg_align FROM mx_table_config_last_msg; INSERT INTO mx_table_block_system_parameter (block_id, parameter_id, parameter_value) SELECT 16, 22, last_msg_display_forum FROM mx_table_config_last_msg; INSERT INTO mx_table_block_system_parameter (block_id, parameter_id, parameter_value) SELECT 10, 23, news_xml_file FROM mx_table_config_news; INSERT INTO mx_table_block_system_parameter (block_id, parameter_id, parameter_value) SELECT 10, 24, news_folder FROM mx_table_config_news; DROP TABLE IF EXISTS mx_table_config_ads; DROP TABLE IF EXISTS mx_table_config_announcement; DROP TABLE IF EXISTS mx_table_config_last_msg; DROP TABLE IF EXISTS mx_table_config_news; DROP TABLE IF EXISTS mx_table_config_poll; DROP TABLE IF EXISTS mx_table_welcome_msg; # ------------------------------------------------------------ --- NEW FILE: upgrade_schemas_map.php --- <?php /** ------------------------------------------------------------------------ * subject : mxBB-Portal Upgrade Schemas Map * begin : june, 2002 * copyright : (C) 2002-2005 mxBB-Portal * email : jon...@ho... * project site : www.mx-system.com * * description : * ------------------------------------------------------------------------- * * $Id: upgrade_schemas_map.php,v 1.1 2005/05/06 06:47:59 jonohlsson Exp $ */ /** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */ // // The following array is processed by mx_install.php script to guess the SQL schemas // that should be applied when upgrading a target system. // // Please, note we use here 'mx_table_' as table prefix, as we also do in schema files. // This will be replaced by mx_install.php with the real table prefix selected by the // user in the installation panels. // // The map is read as follows: // // If the SQL statement fails, mx_install.php will process upgrades schemas from that // point till the end of the table. So, the order of elements IS very important. ;-) // // When adding more elements to the map, please do so at the end. // $upgrade_schemas_map = array( array('schema' => 'upgrade_to_2.705' , 'sql' => "SELECT auth_view FROM mx_table_page"), array('schema' => 'upgrade_to_2.706' , 'sql' => "SELECT portal_version FROM mx_table_portal"), array('schema' => 'upgrade_to_2.7.1' , 'sql' => "SELECT link_target FROM mx_table_menu_nav"), ); // -------------------- // DEBUG ONLY ;-) // //echo('upgrade_schemas_map: '.var_export($upgrade_schemas_map, true)."<br />\n"); // -------------------- ?> --- NEW FILE: postgres_schema_upgrade_to_2.705.sql --- -- -- mxBB-Portal - PostgreSQL Schema - Upgrade "2.705" -- -- $Id: postgres_schema_upgrade_to_2.705.sql,v 1.1 2005/05/06 06:47:59 jonohlsson Exp $ -- -- ------------------------------------------------------------ -- -- Remove SERIAL attribute from field parameter_id -- in Tables `mx_block_system_parameter` and `mx_block_user_parameter` -- -- NOTE 1: This change was really implemented in 2.704 -- NOTE 2: Not all DB managers support changing column attributes. -- CREATE TABLE mx_table_block_system_parameter_tmp ( block_id smallint unsigned NOT NULL default '0', parameter_id smallint unsigned NOT NULL default '0', parameter_value text, bbcode_uid varchar(10) default NULL, PRIMARY KEY (block_id, parameter_id) ); INSERT INTO mx_table_block_system_parameter_tmp SELECT * FROM mx_table_block_system_parameter; DROP TABLE mx_table_block_system_parameter; CREATE TABLE mx_table_block_system_parameter ( block_id smallint unsigned NOT NULL default '0', parameter_id smallint unsigned NOT NULL default '0', parameter_value text, bbcode_uid varchar(10) default NULL, PRIMARY KEY (block_id, parameter_id) ); INSERT INTO mx_table_block_system_parameter SELECT * FROM mx_table_block_system_parameter_tmp; DROP TABLE mx_table_block_system_parameter_tmp; CREATE TABLE mx_table_block_user_parameter_tmp ( block_id smallint unsigned NOT NULL default '0', parameter_id smallint unsigned NOT NULL default '0', parameter_value text, PRIMARY KEY (block_id, parameter_id) ); INSERT INTO mx_table_block_user_parameter_tmp SELECT * FROM mx_table_block_user_parameter; DROP TABLE mx_table_block_user_parameter; CREATE TABLE mx_table_block_user_parameter ( block_id smallint unsigned NOT NULL default '0', parameter_id smallint unsigned NOT NULL default '0', parameter_value text, PRIMARY KEY (block_id, parameter_id) ); INSERT INTO mx_table_block_user_parameter SELECT * FROM mx_table_block_user_parameter_tmp; DROP TABLE mx_table_block_user_parameter_tmp; -- ------------------------------------------------------------ -- -- New Fields in Table `mx_page` -- ALTER TABLE mx_table_page ADD auth_view smallint NOT NULL DEFAULT '0'; -- ------------------------------------------------------------ -- -- Changed images affecting default page icons -- UPDATE mx_table_page SET page_icon = 'icon_home.gif' WHERE page_icon = 'home.jpg'; UPDATE mx_table_page SET page_icon = 'icon_forum.gif' WHERE page_icon = 'forum.jpg'; -- ------------------------------------------------------------ -- -- Changed images affecting default menu entries -- UPDATE mx_table_menu_nav SET menu_icon = 'icon_forum.gif' WHERE menu_icon = 'icon_help.gif'; UPDATE mx_table_menu_nav SET menu_icon = 'icon_stat.gif' WHERE menu_icon = 'icon_poll.gif'; -- ------------------------------------------------------------ -- -- Changed images affecting some block parameters -- UPDATE mx_table_block_system_parameter SET parameter_value = 'thumb_news.gif' WHERE block_id = 18 AND parameter_value = './images/news_02.gif'; UPDATE mx_table_block_system_parameter SET parameter_value = 'thumb_globe.gif' WHERE block_id = 18 AND parameter_value = './images/globe7.gif'; UPDATE mx_table_parameter SET parameter_default = 'thumb_globe.gif' WHERE function_id = 110 AND parameter_default = './images/globe7.gif'; -- ------------------------------------------------------------ -- -- Changed default values on some parameters of the LastMsgPost block -- UPDATE mx_table_parameter SET parameter_default = 'TRUE' WHERE parameter_name = 'Last_Msg_Display_Last_Author'; UPDATE mx_table_parameter SET parameter_default = 'TRUE' WHERE parameter_name = 'Last_Msg_Display_Icon_View'; -- ------------------------------------------------------------ --- NEW FILE: postgres_schema_install.sql --- -- -- mxBB-Portal - PostgreSQL Schema - version 2.7.5 -- -- $Id: postgres_schema_install.sql,v 1.1 2005/05/06 06:47:59 jonohlsson Exp $ -- -- -------------------------------------------------------- -- -- Table structure for table `mx_block` -- DROP TABLE mx_table_block; CREATE TABLE mx_table_block ( block_id SERIAL, block_title varchar(150) default NULL, block_desc text, function_id int default NULL, auth_view smallint NOT NULL default '0', auth_edit smallint default '0', auth_delete smallint default '0', auth_view_group smallint NOT NULL default '0', auth_edit_group smallint NOT NULL default '0', auth_delete_group smallint NOT NULL default '0', CONSTRAINT mx_table_block_pkey PRIMARY KEY (block_id) ); -- -- Dumping data for table `mx_block` -- INSERT INTO mx_table_block VALUES (1, 'Welcome', '', 20, 0, 5, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (2, 'Multiple Horizontal Blocks', '', 19, 0, 0, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (3, 'Demo Textblock Multi', '', 22, 0, 5, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (4, 'Demo Textblock BBcode', '', 20, 0, 5, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (5, 'Demo Textblock Html', '', 21, 0, 5, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (6, 'Poll', '', 12, 0, 5, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (7, 'Language Select', '', 13, 99, 5, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (8, 'Navigation Menu', '', 11, 0, 5, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (24, 'Forum', '', 10, 0, 0, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (13, 'Login', NULL, 14, 99, 5, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (14, 'Theme Select', '', 15, 0, 5, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (21, 'Google', '', 16, 0, 0, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (18, 'Announcements', NULL, 17, 0, 0, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (19, 'Online', '', 18, 0, 0, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (16, 'Last Message Post', NULL, 30, 0, 0, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (32, 'Statistics', '', 40, 0, 0, 0, 0, 0, 0); -- -------------------------------------------------------- -- -- Table structure for table `mx_block_system_parameter` -- DROP TABLE mx_table_block_system_parameter; CREATE TABLE mx_table_block_system_parameter ( block_id int NOT NULL default '0', parameter_id int NOT NULL default '0', parameter_value text, bbcode_uid varchar(10) default NULL, CONSTRAINT mx_table_block_system_parameter_pkey PRIMARY KEY (block_id, parameter_id) ); CREATE INDEX mx_table_block_system_parameter_parameter_id ON mx_table_block_system_parameter (parameter_id); CREATE INDEX mx_table_block_system_parameter_block_id ON mx_table_block_system_parameter (block_id); -- -- Dumping data for table `mx_block_system_parameter` -- INSERT INTO mx_table_block_system_parameter VALUES (1, 15, 'Welcome to the Mx-system Portal!\r\n\r\nPlease visit www.mx-system.com for further information.\r\n\r\nThe Mx-Portal version is announced and documented [url=http://www.mx-system.com/forum/viewforum.php?f=11] here[/url].', '10bec5b560'); INSERT INTO mx_table_block_system_parameter VALUES (2, 60, '3,4,5', ''); INSERT INTO mx_table_block_system_parameter VALUES (2, 61, '33%,*,33%', ''); INSERT INTO mx_table_block_system_parameter VALUES (2, 62, '4', ''); INSERT INTO mx_table_block_system_parameter VALUES (3, 50, 'This is a demo multi textblock!\r\n\r\n - featuring bbcode, html, style parameters (click the EDIT button and try them out) and permissions (view and edit permissions for users and PRIVATE groups).', '10bec5b560'); INSERT INTO mx_table_block_system_parameter VALUES (3, 51, 'none', ''); INSERT INTO mx_table_block_system_parameter VALUES (3, 52, 'TRUE', ''); INSERT INTO mx_table_block_system_parameter VALUES (3, 53, 'TRUE', ''); INSERT INTO mx_table_block_system_parameter VALUES (3, 54, 'TRUE', ''); INSERT INTO mx_table_block_system_parameter VALUES (4, 15, 'This is a demo bbcode textblock!\r\n\r\n- featuring bbcode, html and permissions (view and edit permissions for users and PRIVATE groups).', '10bec5b560'); INSERT INTO mx_table_block_system_parameter VALUES (5, 16, 'This is a demo html textblock!\r\n\r\n- featuring html and permissions (view and edit permissions for users and PRIVATE groups).', '10bec5b560'); INSERT INTO mx_table_block_system_parameter VALUES (6, 36, '', NULL); INSERT INTO mx_table_block_system_parameter VALUES (6, 13, '0', NULL); INSERT INTO mx_table_block_system_parameter VALUES (16, 17, '5', NULL); INSERT INTO mx_table_block_system_parameter VALUES (16, 18, 'TRUE', NULL); INSERT INTO mx_table_block_system_parameter VALUES (16, 19, '30', NULL); INSERT INTO mx_table_block_system_parameter VALUES (16, 20, '_self', NULL); INSERT INTO mx_table_block_system_parameter VALUES (16, 21, 'left', NULL); INSERT INTO mx_table_block_system_parameter VALUES (16, 22, 'TRUE', NULL); INSERT INTO mx_table_block_system_parameter VALUES (16, 37, '', NULL); INSERT INTO mx_table_block_system_parameter VALUES (16, 38, 'FALSE', NULL); INSERT INTO mx_table_block_system_parameter VALUES (16, 39, 'FALSE', NULL); INSERT INTO mx_table_block_system_parameter VALUES (16, 40, 'TRUE', NULL); INSERT INTO mx_table_block_system_parameter VALUES (18, 1, '1', NULL); INSERT INTO mx_table_block_system_parameter VALUES (18, 2, '999', NULL); INSERT INTO mx_table_block_system_parameter VALUES (18, 3, 'TRUE', NULL); INSERT INTO mx_table_block_system_parameter VALUES (18, 4, 'FALSE', NULL); INSERT INTO mx_table_block_system_parameter VALUES (18, 5, 'FALSE', NULL); INSERT INTO mx_table_block_system_parameter VALUES (18, 7, 'thumb_news.gif', NULL); INSERT INTO mx_table_block_system_parameter VALUES (18, 8, 'thumb_globe.gif', NULL); INSERT INTO mx_table_block_system_parameter VALUES (18, 9, 'thumb_globe.gif', NULL); INSERT INTO mx_table_block_system_parameter VALUES (18, 6, 'TRUE', NULL); INSERT INTO mx_table_block_system_parameter VALUES (18, 10, 'thumb_globe.gif ', NULL); INSERT INTO mx_table_block_system_parameter VALUES (18, 11, '', NULL); -- -------------------------------------------------------- -- -- Table structure for table `mx_column` -- DROP TABLE mx_table_column; CREATE TABLE mx_table_column ( column_id SERIAL, column_title varchar(100) default NULL, column_order int NOT NULL default '0', bbcode_uid varchar(10) default NULL, column_size varchar(5) default '100%', page_id smallint NOT NULL default '0', CONSTRAINT mx_table_column_pkey PRIMARY KEY (column_id) ); CREATE INDEX mx_table_column_cat_order ON mx_table_column (column_order); -- -- Dumping data for table `mx_column` -- INSERT INTO mx_table_column VALUES (1, 'Column 1', 10, NULL, '220', 1); INSERT INTO mx_table_column VALUES (2, 'Column 2', 20, NULL, '100%', 1); INSERT INTO mx_table_column VALUES (20, 'Menu', 10, NULL, '200', 2); INSERT INTO mx_table_column VALUES (21, 'Forum', 20, NULL, '100%', 2); -- -------------------------------------------------------- -- -- Table structure for table `mx_column_block` -- DROP TABLE mx_table_column_block; CREATE TABLE mx_table_column_block ( column_id smallint NOT NULL default '0', block_id smallint NOT NULL default '0', block_order smallint NOT NULL default '0' ); -- -- Dumping data for table `mx_column_block` -- INSERT INTO mx_table_column_block VALUES (1, 8, 10); INSERT INTO mx_table_column_block VALUES (1, 16, 20); INSERT INTO mx_table_column_block VALUES (1, 6, 30); INSERT INTO mx_table_column_block VALUES (1, 13, 40); INSERT INTO mx_table_column_block VALUES (1, 7, 50); INSERT INTO mx_table_column_block VALUES (1, 14, 60); INSERT INTO mx_table_column_block VALUES (2, 1, 10); INSERT INTO mx_table_column_block VALUES (2, 2, 10); INSERT INTO mx_table_column_block VALUES (2, 18, 20); INSERT INTO mx_table_column_block VALUES (2, 19, 30); INSERT INTO mx_table_column_block VALUES (20, 8, 10); INSERT INTO mx_table_column_block VALUES (20, 16, 20); INSERT INTO mx_table_column_block VALUES (21, 24, 30); INSERT INTO mx_table_column_block VALUES (21, 19, 40); -- -------------------------------------------------------- -- -- Table structure for table `mx_function` -- DROP TABLE mx_table_function; CREATE TABLE mx_table_function ( function_id SERIAL, module_id int NOT NULL default '0', function_name varchar(150) default NULL, function_desc text, function_file varchar(255) default NULL, function_admin varchar(255) default NULL, CONSTRAINT mx_table_function_pkey PRIMARY KEY (function_id) ); CREATE INDEX mx_table_function_module_id ON mx_table_function (module_id); -- -- Dumping data for table `mx_function` -- INSERT INTO mx_table_function VALUES (10, 10, 'Forum phpBB', 'Forum phpBB', 'mx_forum.php', NULL); INSERT INTO mx_table_function VALUES (11, 10, 'Navigation Menu', 'Menu Navigation', 'mx_menu_nav.php', 'admin/admin_mx_menu.php'); INSERT INTO mx_table_function VALUES (12, 10, 'Polls', 'Polls', 'mx_poll.php', NULL); INSERT INTO mx_table_function VALUES (13, 10, 'Language Select', 'Language Select', 'mx_language.php', NULL); INSERT INTO mx_table_function VALUES (14, 10, 'Login', 'Login', 'mx_login.php', NULL); INSERT INTO mx_table_function VALUES (15, 10, 'Theme Select', 'Theme Select', 'mx_theme.php', NULL); INSERT INTO mx_table_function VALUES (16, 10, 'Google', 'Google', 'mx_google.php', NULL); INSERT INTO mx_table_function VALUES (17, 10, 'Announcements', 'Announcements', 'mx_announce.php', NULL); INSERT INTO mx_table_function VALUES (18, 10, 'Who is Online', 'Who is Online', 'mx_online.php', NULL); INSERT INTO mx_table_function VALUES (19, 10, 'Multiple Horizontal Blocks', 'Block that can arrange other blocks in a horizontal line.', 'mx_multiple_blocks.php', ''); INSERT INTO mx_table_function VALUES (20, 20, 'TextBlock_BBcode', 'TextBlock_BBcode', 'mx_textblock_bbcode.php', 'modules/mx_textblocks/admin/admin_edit.php'); INSERT INTO mx_table_function VALUES (21, 20, 'TextBlock_Html', 'TextBlock_Html', 'mx_textblock_html.php', 'modules/mx_textblocks/admin/admin_edit.php'); INSERT INTO mx_table_function VALUES (22, 20, 'TextBlock_Multi', 'Textblock for bbcode and html with parameters', 'mx_textblock_multi.php', 'modules/mx_textblocks/admin/admin_edit.php'); INSERT INTO mx_table_function VALUES (30, 30, 'Post Last Message', 'Post Last Message', 'mx_last_msg.php', NULL); INSERT INTO mx_table_function VALUES (40, 40, 'Statistics MX', 'Statistics MX', 'mx_statistics.php', NULL); -- -------------------------------------------------------- -- -- Table structure for table `mx_menu_categories` -- DROP TABLE mx_table_menu_categories; CREATE TABLE mx_table_menu_categories ( block_id int NOT NULL default '1', cat_id SERIAL, cat_title varchar(100) default NULL, cat_order int NOT NULL default '0', bbcode_uid varchar(10) default NULL, cat_desc text, cat_show int NOT NULL default '0', CONSTRAINT mx_table_menu_categories_pkey PRIMARY KEY (cat_id) ); CREATE INDEX mx_table_menu_categories_cat_order ON mx_table_menu_categories (cat_order); -- -- Dumping data for table `mx_menu_categories` -- INSERT INTO mx_table_menu_categories VALUES (8, 1, 'Main Menu', 20, NULL, NULL, 1); -- -------------------------------------------------------- -- -- Table structure for table `mx_menu_nav` -- DROP TABLE mx_table_menu_nav; CREATE TABLE mx_table_menu_nav ( menu_id SERIAL, cat_id int NOT NULL default '0', menu_name varchar(150) default NULL, menu_desc text, menu_links varchar(255) default NULL, auth_view smallint NOT NULL default '0', menu_order int default '0', bbcode_uid varchar(10) default NULL, menu_icon varchar(255) default NULL, function_id int default '0', block_id smallint NOT NULL default '0', page_id int default '0', auth_view_group smallint NOT NULL default '0', link_target int NOT NULL default '0', CONSTRAINT mx_table_menu_nav_pkey PRIMARY KEY (menu_id) ); CREATE INDEX mx_table_menu_nav_cat_id ON mx_table_menu_nav (cat_id); -- -- Dumping data for table `mx_menu_nav` -- INSERT INTO mx_table_menu_nav VALUES (1, 1, 'Home', 'Home Page', 'index.php', 0, 10, 'bc5d5e65eb', 'icon_home.gif', 0, 0, 0, 0, 0); INSERT INTO mx_table_menu_nav VALUES (2, 1, 'Forum', 'phpBB Forum', 'index.php', 0, 20, '1a7e19f246', 'icon_forum.gif', 0, 0, 2, 0, 0); INSERT INTO mx_table_menu_nav VALUES (3, 1, 'Statistics', 'Statistics Module', '', 0, 30, 'e16b0fbb51', 'icon_stat.gif', 40, 0, 0, 0, 0); -- -------------------------------------------------------- -- -- Table structure for table `mx_module` -- DROP TABLE mx_table_module; CREATE TABLE mx_table_module ( module_id SERIAL, module_name varchar(150) default NULL, module_path varchar(255) default NULL, module_desc text, module_include_admin char(1) default '0', CONSTRAINT mx_table_module_pkey PRIMARY KEY (module_id) ); -- -- Dumping data for table `mx_module` -- INSERT INTO mx_table_module VALUES (10, 'Core Blocks', './', 'Core blocks', ''); INSERT INTO mx_table_module VALUES (20, 'Text Blocks', 'modules/mx_textblocks/', 'Textblocks module', ''); INSERT INTO mx_table_module VALUES (30, 'Post Last Message', 'modules/mx_last_msg/', 'Last Message Module', '0'); INSERT INTO mx_table_module VALUES (40, 'Statistics MX', 'modules/mx_statistics/', 'Statistics Modules', '0'); -- -------------------------------------------------------- -- -- Table structure for table `mx_page` -- DROP TABLE mx_table_page; CREATE TABLE mx_table_page ( page_id SERIAL, page_name varchar(255) default NULL, page_icon varchar(255) default NULL, auth_view smallint NOT NULL default '0', auth_view_group smallint NOT NULL default '0', page_header varchar(255) default 'overall_header.tpl', CONSTRAINT mx_table_page_pkey PRIMARY KEY (page_id) ); -- -- Dumping data for table `mx_page` -- INSERT INTO mx_table_page VALUES (1, 'Home', 'icon_home.gif', 0, 0, 'overall_header.tpl'); INSERT INTO mx_table_page VALUES (2, 'Forum', 'icon_forum.gif', 0, 0, 'overall_header.tpl'); -- -------------------------------------------------------- -- -- Table structure for table `mx_parameter` -- DROP TABLE mx_table_parameter; CREATE TABLE mx_table_parameter ( parameter_id SERIAL, function_id int NOT NULL default '0', parameter_name varchar(150) default NULL, parameter_type varchar(30) default NULL, parameter_default varchar(150) default NULL, parameter_function varchar(255) default NULL, CONSTRAINT mx_table_parameter_pkey PRIMARY KEY (parameter_id) ); -- -- Dumping data for table `mx_parameter` -- INSERT INTO mx_table_parameter VALUES (1, 17, 'announce_nbr_display', 'Number', '1', NULL); INSERT INTO mx_table_parameter VALUES (2, 17, 'announce_nbr_days', 'Number', '14', NULL); INSERT INTO mx_table_parameter VALUES (3, 17, 'announce_display', 'Boolean', 'TRUE', NULL); INSERT INTO mx_table_parameter VALUES (4, 17, 'announce_display_sticky', 'Boolean', 'TRUE', NULL); INSERT INTO mx_table_parameter VALUES (5, 17, 'announce_display_normal', 'Boolean', 'FALSE', NULL); INSERT INTO mx_table_parameter VALUES (7, 17, 'announce_img', 'Text', 'thumb_globe.gif', NULL); INSERT INTO mx_table_parameter VALUES (8, 17, 'announce_img_sticky', 'Text', 'thumb_globe.gif', NULL); INSERT INTO mx_table_parameter VALUES (9, 17, 'announce_img_normal', 'Text', 'thumb_globe.gif', NULL); INSERT INTO mx_table_parameter VALUES (6, 17, 'announce_display_global', 'Boolean', 'TRUE', NULL); INSERT INTO mx_table_parameter VALUES (10, 17, 'announce_img_global', 'Text', 'thumb_globe.gif', NULL); INSERT INTO mx_table_parameter VALUES (11, 17, 'announce_forum', 'Function', NULL, 'get_list_multiple("{parameter_id}[]", FORUMS_TABLE, \'forum_id\', \'forum_name\', "{parameter_value}", TRUE)'); INSERT INTO mx_table_parameter VALUES (13, 12, 'Poll_Display', 'Function', '0', 'poll_select( {parameter_value}, "{parameter_id}" )'); INSERT INTO mx_table_parameter VALUES (36, 12, 'poll_forum', 'Function', '', 'get_list_multiple("{parameter_id}[]", FORUMS_TABLE, \'forum_id\', \'forum_name\', "{parameter_value}", TRUE)'); INSERT INTO mx_table_parameter VALUES (15, 20, 'Text', 'BBText', 'Insert your text here', NULL); INSERT INTO mx_table_parameter VALUES (16, 21, 'Html', 'Html', 'Entre your Html code here', NULL); INSERT INTO mx_table_parameter VALUES (17, 30, 'Last_Msg_Number_Title', 'Number', '15', NULL); INSERT INTO mx_table_parameter VALUES (18, 30, 'Last_Msg_Display_Date', 'Boolean', 'TRUE', NULL); INSERT INTO mx_table_parameter VALUES (19, 30, 'Last_Msg_Title_Length', 'Number', '30', NULL); INSERT INTO mx_table_parameter VALUES (20, 30, 'Last_Msg_Target', 'Values', '_blank', NULL); INSERT INTO mx_table_parameter VALUES (21, 30, 'Last_Msg_Align', 'Values', 'left', NULL); INSERT INTO mx_table_parameter VALUES (22, 30, 'Last_Msg_Display_Forum', 'Boolean', 'TRUE', NULL); INSERT INTO mx_table_parameter VALUES (37, 30, 'Last_Msg_forum', 'Function', '', 'get_list_multiple("{parameter_id}[]", FORUMS_TABLE, \'forum_id\', \'forum_name\', "{parameter_value}", TRUE)'); INSERT INTO mx_table_parameter VALUES (38, 30, 'Last_Msg_Display_Last_Author', 'Boolean', 'TRUE', ''); INSERT INTO mx_table_parameter VALUES (39, 30, 'Last_Msg_Display_Author', 'Boolean', 'FALSE', ''); INSERT INTO mx_table_parameter VALUES (40, 30, 'Last_Msg_Display_Icon_View', 'Boolean', 'TRUE', ''); INSERT INTO mx_table_parameter VALUES (50, 22, 'Text', 'BBText', 'Enter your block text here', ''); INSERT INTO mx_table_parameter VALUES (51, 22, 'text_style', 'Values', 'none', ''); INSERT INTO mx_table_parameter VALUES (52, 22, 'block_style', 'Boolean', 'TRUE', ''); INSERT INTO mx_table_parameter VALUES (53, 22, 'title_style', 'Boolean', 'TRUE', ''); INSERT INTO mx_table_parameter VALUES (54, 22, 'show_title', 'Boolean', 'TRUE', ''); INSERT INTO mx_table_parameter VALUES (60, 19, 'block_ids', 'Function', '1,2,3', 'get_list_multiple( "{parameter_id}[]", BLOCK_TABLE, \'block_id\', \'block_title\', "{parameter_value}", TRUE)'); INSERT INTO mx_table_parameter VALUES (61, 19, 'block_sizes', 'Text', '20%,30%,*', ''); INSERT INTO mx_table_parameter VALUES (62, 19, 'space_between', 'Number', '4', ''); -- -------------------------------------------------------- -- -- Table structure for table `mx_parameter_option` -- DROP TABLE mx_table_parameter_option; CREATE TABLE mx_table_parameter_option ( option_id SERIAL, parameter_id int NOT NULL default '0', option_code varchar(150) default NULL, option_desc text, CONSTRAINT mx_table_parameter_option_pkey PRIMARY KEY (option_id) ); -- -- Dumping data for table `mx_parameter_option` -- INSERT INTO mx_table_parameter_option VALUES (3, 21, 'left', 'left '); INSERT INTO mx_table_parameter_option VALUES (4, 21, 'right', 'right'); INSERT INTO mx_table_parameter_option VALUES (5, 21, 'center', 'center'); INSERT INTO mx_table_parameter_option VALUES (6, 20, '_blank', 'New Window'); INSERT INTO mx_table_parameter_option VALUES (7, 20, '_self', 'Current Window'); -- -------------------------------------------------------- -- -- Table structure for table `mx_portal` -- DROP TABLE mx_table_portal; CREATE TABLE mx_table_portal ( portal_id SERIAL, portal_name varchar(150) default NULL, portal_phpbb_url varchar(255) default 'http://www.phpbb.com/phpBB/', portal_url varchar(255) default NULL, portal_version varchar(255) default NULL, top_phpbb_links int NOT NULL default '1', CONSTRAINT mx_table_portal_pkey PRIMARY KEY (portal_id) ); --- NEW FILE: postgres_schema_upgrade_to_2.7.0.sql --- -- -- mxBB-Portal - PostgreSQL Schema - Upgrade "2.7.0" -- -- $Id: postgres_schema_upgrade_to_2.7.0.sql,v 1.1 2005/05/06 06:47:59 jonohlsson Exp $ -- -- ------------------------------------------------------------ -- -- Convert old Modules to Blocks -- INSERT INTO mx_table_block_system_parameter (block_id, parameter_id, parameter_value) SELECT 1, 15, welcome_text from mx_table_welcome_msg; INSERT INTO mx_table_block_system_parameter (block_id, parameter_id, parameter_value) SELECT 5, 13, poll_topic_id FROM mx_table_config_poll; INSERT INTO mx_table_block_system_parameter (block_id, parameter_id, parameter_value) SELECT 16, 17, last_msg_number FROM mx_table_config_last_msg; INSERT INTO mx_table_block_system_parameter (block_id, parameter_id, parameter_value) SELECT 16, 18, last_msg_display_date FROM mx_table_config_last_msg; INSERT INTO mx_table_block_system_parameter (block_id, parameter_id, parameter_value) SELECT 16, 19, last_msg_length FROM mx_table_config_last_msg; INSERT INTO mx_table_block_system_parameter (block_id, parameter_id, parameter_value) SELECT 16, 20, last_msg_target FROM mx_table_config_last_msg; INSERT INTO mx_table_block_system_parameter (block_id, parameter_id, parameter_value) SELECT 16, 21, last_msg_align FROM mx_table_config_last_msg; INSERT INTO mx_table_block_system_parameter (block_id, parameter_id, parameter_value) SELECT 16, 22, last_msg_display_forum FROM mx_table_config_last_msg; INSERT INTO mx_table_block_system_parameter (block_id, parameter_id, parameter_value) SELECT 10, 23, news_xml_file FROM mx_table_config_news; INSERT INTO mx_table_block_system_parameter (block_id, parameter_id, parameter_value) SELECT 10, 24, news_folder FROM mx_table_config_news; -- ------------------------------------------------------------ --- NEW FILE: mysql_schema_install.sql --- # # mxBB-Portal - MySQL Schema - version 2.7.5 # # $Id: mysql_schema_install.sql,v 1.1 2005/05/06 06:47:59 jonohlsson Exp $ # # -------------------------------------------------------- # # Table structure for table `mx_block` # DROP TABLE IF EXISTS mx_table_block; CREATE TABLE mx_table_block ( block_id smallint(5) unsigned NOT NULL auto_increment, block_title varchar(150) default NULL, block_desc text, function_id smallint(5) unsigned default NULL, auth_view tinyint(2) NOT NULL default '0', auth_edit tinyint(2) default '0', auth_delete tinyint(2) default '0', auth_view_group smallint(5) NOT NULL default '0', auth_edit_group smallint(5) NOT NULL default '0', auth_delete_group smallint(5) NOT NULL default '0', PRIMARY KEY (block_id) ); # # Dumping data for table `mx_block` # INSERT INTO mx_table_block VALUES (1, 'Welcome', '', 20, 0, 5, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (2, 'Multiple Horizontal Blocks', '', 19, 0, 0, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (3, 'Demo Textblock Multi', '', 22, 0, 5, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (4, 'Demo Textblock BBcode', '', 20, 0, 5, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (5, 'Demo Textblock Html', '', 21, 0, 5, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (6, 'Poll', '', 12, 0, 5, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (7, 'Language Select', '', 13, 99, 5, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (8, 'Navigation Menu', '', 11, 0, 5, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (24, 'Forum', '', 10, 0, 0, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (13, 'Login', NULL, 14, 99, 5, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (14, 'Theme Select', '', 15, 0, 5, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (21, 'Google', '', 16, 0, 0, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (18, 'Announcements', NULL, 17, 0, 0, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (19, 'Online', '', 18, 0, 0, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (16, 'Last Message Post', NULL, 30, 0, 0, 0, 0, 0, 0); INSERT INTO mx_table_block VALUES (32, 'Statistics', '', 40, 0, 0, 0, 0, 0, 0); # -------------------------------------------------------- # # Table structure for table `mx_block_system_parameter` # DROP TABLE IF EXISTS mx_table_block_system_parameter; CREATE TABLE mx_table_block_system_parameter ( block_id smallint(5) unsigned NOT NULL default '0', parameter_id smallint(5) unsigned NOT NULL default '0', parameter_value text, bbcode_uid varchar(10) default NULL, PRIMARY KEY (block_id, parameter_id), KEY block_id (block_id), KEY parameter_id (parameter_id) ); # # Dumping data for table `mx_block_system_parameter` # INSERT INTO mx_table_block_system_parameter VALUES (1, 15, 'Welcome to the Mx-system Portal!\r\n\r\nPlease visit www.mx-system.com for further information.\r\n\r\nThe Mx-Portal version is announced and documented [url=http://www.mx-system.com/forum/viewforum.php?f=11] here[/url].', '10bec5b560'); INSERT INTO mx_table_block_system_parameter VALUES (2, 60, '3,4,5', ''); INSERT INTO mx_table_block_system_parameter VALUES (2, 61, '33%,*,33%', ''); INSERT INTO mx_table_block_system_parameter VALUES (2, 62, '4', ''); INSERT INTO mx_table_block_system_parameter VALUES (3, 50, 'This is a demo multi textblock!\r\n\r\n - featuring bbcode, html, style parameters (click the EDIT button and try them out) and permissions (view and edit permissions for users and PRIVATE groups).', '10bec5b560'); INSERT INTO mx_table_block_system_parameter VALUES (3, 51, 'none', ''); INSERT INTO mx_table_block_system_parameter VALUES (3, 52, 'TRUE', ''); INSERT INTO mx_table_block_system_parameter VALUES (3, 53, 'TRUE', ''); INSERT INTO mx_table_block_system_parameter VALUES (3, 54, 'TRUE', ''); INSERT INTO mx_table_block_system_parameter VALUES (4, 15, 'This is a demo bbcode textblock!\r\n\r\n- featuring bbcode, html and permissions (view and edit permissions for users and PRIVATE groups).', '10bec5b560'); INSERT INTO mx_table_block_system_parameter VALUES (5, 16, 'This is a demo html textblock!\r\n\r\n- featuring html and permissions (view and edit permissions for users and PRIVATE groups).', '10bec5b560'); INSERT INTO mx_table_block_system_parameter VALUES (6, 36, '', NULL); INSERT INTO mx_table_block_system_parameter VALUES (6, 13, '0', NULL); INSERT INTO mx_table_block_system_parameter VALUES (16, 17, '5', NULL); INSERT INTO mx_table_block_system_parameter VALUES (16, 18, 'TRUE', NULL); INSERT INTO mx_table_block_system_parameter VALUES (16, 19, '30', NULL); INSERT INTO mx_table_block_system_parameter VALUES (16, 20, '_self', NULL); INSERT INTO mx_table_block_system_parameter VALUES (16, 21, 'left', NULL); INSERT INTO mx_table_block_system_parameter VALUES (16, 22, 'TRUE', NULL); INSERT INTO mx_table_block_system_parameter VALUES (16, 37, '', NULL); INSERT INTO mx_table_block_system_parameter VALUES (16, 38, 'FALSE', NULL); INSERT INTO mx_table_block_system_parameter VALUES (16, 39, 'FALSE', NULL); INSERT INTO mx_table_block_system_parameter VALUES (16, 40, 'TRUE', NULL); INSERT INTO mx_table_block_system_parameter VALUES (18, 1, '1', NULL); INSERT INTO mx_table_block_system_parameter VALUES (18, 2, '999', NULL); INSERT INTO mx_table_block_system_parameter VALUES (18, 3, 'TRUE', NULL); INSERT INTO mx_table_block_system_parameter VALUES (18, 4, 'FALSE', NULL); INSERT INTO mx_table_block_system_parameter VALUES (18, 5, 'FALSE', NULL); INSERT INTO mx_table_block_system_parameter VALUES (18, 7, 'thumb_news.gif', NULL); INSERT INTO mx_table_block_system_parameter VALUES (18, 8, 'thumb_globe.gif', NULL); INSERT INTO mx_table_block_system_parameter VALUES (18, 9, 'thumb_globe.gif', NULL); INSERT INTO mx_table_block_system_parameter VALUES (18, 6, 'TRUE', NULL); INSERT INTO mx_table_block_system_parameter VALUES (18, 10, 'thumb_globe.gif ', NULL); INSERT INTO mx_table_block_system_parameter VALUES (18, 11, '', NULL); # -------------------------------------------------------- # # Table structure for table `mx_column` # DROP TABLE IF EXISTS mx_table_column; CREATE TABLE mx_table_column ( column_id smallint(5) unsigned NOT NULL auto_increment, column_title varchar(100) default NULL, column_order smallint(5) unsigned NOT NULL default '0', bbcode_uid varchar(10) default NULL, column_size varchar(5) default '100%', page_id smallint(5) NOT NULL default '0', PRIMARY KEY (column_id), KEY cat_order (column_order) ); # # Dumping data for table `mx_column` # INSERT INTO mx_table_column VALUES (1, 'Column 1', 10, NULL, '220', 1); INSERT INTO mx_table_column VALUES (2, 'Column 2', 20, NULL, '100%', 1); INSERT INTO mx_table_column VALUES (20, 'Menu', 10, NULL, '200', 2); INSERT INTO mx_table_column VALUES (21, 'Forum', 20, NULL, '100%', 2); # -------------------------------------------------------- # # Table structure for table `mx_column_block` # DROP TABLE IF EXISTS mx_table_column_block; CREATE TABLE mx_table_column_block ( column_id smallint(5) NOT NULL default '0', block_id smallint(5) NOT NULL default '0', block_order smallint(5) NOT NULL default '0' ); # # Dumping data for table `mx_column_block` # INSERT INTO mx_table_column_block VALUES (1, 8, 10); INSERT INTO mx_table_column_block VALUES (1, 16, 20); INSERT INTO mx_table_column_block VALUES (1, 6, 30); INSERT INTO mx_table_column_block VALUES (1, 13, 40); INSERT INTO mx_table_column_block VALUES (1, 7, 50); INSERT INTO mx_table_column_block VALUES (1, 14, 60); INSERT INTO mx_table_column_block VALUES (2, 1, 10); INSERT INTO mx_table_column_block VALUES (2, 2, 10); INSERT INTO mx_table_column_block VALUES (2, 18, 20); INSERT INTO mx_table_column_block VALUES (2, 19, 30); INSERT INTO mx_table_column_block VALUES (20, 8, 10); INSERT INTO mx_table_column_block VALUES (20, 16, 20); INSERT INTO mx_table_column_block VALUES (21, 24, 30); INSERT INTO mx_table_column_block VALUES (21, 19, 40); # -------------------------------------------------------- # # Table structure for table `mx_function` # DROP TABLE IF EXISTS mx_table_function; CREATE TABLE mx_table_function ( function_id smallint(5) unsigned NOT NULL auto_increment, module_id smallint(5) unsigned NOT NULL default '0', function_name varchar(150) default NULL, function_desc text, function_file varchar(255) default NULL, function_admin varchar(255) default NULL, PRIMARY KEY (function_id), KEY module_id (module_id) ); # # Dumping data for table `mx_function` # INSERT INTO mx_table_function VALUES (10, 10, 'Forum phpBB', 'Forum phpBB', 'mx_forum.php', NULL); INSERT INTO mx_table_function VALUES (11, 10, 'Navigation Menu', 'Menu Navigation', 'mx_menu_nav.php', 'admin/admin_mx_menu.php'); INSERT INTO mx_table_function VALUES (12, 10, 'Polls', 'Polls', 'mx_poll.php', NULL); INSERT INTO mx_table_function VALUES (13, 10, 'Language Select', 'Language Select', 'mx_language.php', NULL); INSERT INTO mx_table_function VALUES (14, 10, 'Login', 'Login', 'mx_login.php', NULL); INSERT INTO mx_table_function VALUES (15, 10, 'Theme Select', 'Theme Select', 'mx_theme.php', NULL); INSERT INTO mx_table_function VALUES (16, 10, 'Google', 'Google', 'mx_google.php', NULL); INSERT INTO mx_table_function VALUES (17, 10, 'Announcements', 'Announcements', 'mx_announce.php', NULL); INSERT INTO mx_table_function VALUES (18, 10, 'Who is Online', 'Who is Online', 'mx_online.php', NULL); INSERT INTO mx_table_function VALUES (19, 10, 'Multiple Horizontal Blocks', 'Block that can arrange other blocks in a horizontal line.', 'mx_multiple_blocks.php', ''); INSERT INTO mx_table_function VALUES (20, 20, 'TextBlock_BBcode', 'TextBlock_BBcode', 'mx_textblock_bbcode.php', 'modules/mx_textblocks/admin/admin_edit.php'); INSERT INTO mx_table_function VALUES (21, 20, 'TextBlock_Html', 'TextBlock_Html', 'mx_textblock_html.php', 'modules/mx_textblocks/admin/admin_edit.php'); INSERT INTO mx_table_function VALUES (22, 20, 'TextBlock_Multi', 'Textblock for bbcode and html with parameters', 'mx_textblock_multi.php', 'modules/mx_textblocks/admin/admin_edit.php'); INSERT INTO mx_table_function VALUES (30, 30, 'Post Last Message', 'Post Last Message', 'mx_last_msg.php', NULL); INSERT INTO mx_table_function VALUES (40, 40, 'Statistics MX', 'Statistics MX', 'mx_statistics.php', NULL); # -------------------------------------------------------- # # Table structure for table `mx_menu_categories` # DROP TABLE IF EXISTS mx_table_menu_categories; CREATE TABLE mx_table_menu_categories ( block_id smallint(5) unsigned NOT NULL default '1', cat_id mediumint(8) unsigned NOT NULL auto_increment, cat_title varchar(100) default NULL, cat_order mediumint(8) unsigned NOT NULL default '0', bbcode_uid varchar(10) default NULL, cat_desc text, cat_show tinyint(1) unsigned NOT NULL default '0', PRIMARY KEY (cat_id), KEY cat_order (cat_order) ); # # Dumping data for table `mx_menu_categories` # INSERT INTO mx_table_menu_categories VALUES (8, 1, 'Main Menu', 20, NULL, NULL, 1); # -------------------------------------------------------- # # Table structure for table `mx_menu_nav` # DROP TABLE IF EXISTS mx_table_menu_nav; CREATE TABLE mx_table_menu_nav ( menu_id smallint(5) unsigned NOT NULL auto_increment, cat_id mediumint(8) unsigned NOT NULL default '0', menu_name varchar(150) default NULL, menu_desc text, menu_links varchar(255) default NULL, auth_view tinyint(2) NOT NULL default '0', menu_order smallint(5) unsigned default '0', bbcode_uid varchar(10) default NULL, menu_icon varchar(255) default NULL, function_id smallint(5) unsigned default '0', block_id smallint(8) NOT NULL default '0', page_id smallint(5) unsigned default '0', auth_view_group smallint(5) NOT NULL default '0', link_target tinyint(2) unsigned NOT NULL default '0', PRIMARY KEY (menu_id), KEY cat_id (cat_id) ); # # Dumping data for table `mx_menu_nav` # INSERT INTO mx_table_menu_nav VALUES (1, 1, 'Home', 'Home Page', 'index.php', 0, 10, 'bc5d5e65eb', 'icon_home.gif', 0, 0, 0, 0, 0); INSERT INTO mx_table_menu_nav VALUES (2, 1, 'Forum', 'phpBB Forum', 'index.php', 0, 20, '1a7e19f246', 'icon_forum.gif', 0, 0, 2, 0, 0); INSERT INTO mx_table_menu_nav VALUES (3, 1, 'Statistics', 'Statistics Module', '', 0, 30, 'e16b0fbb51', 'icon_stat.gif', 40, 0, 0, 0, 0); # -------------------------------------------------------- # # Table structure for table `mx_module` # DROP TABLE IF EXISTS mx_table_module; CREATE TABLE mx_table_module ( module_id smallint(5) unsigned NOT NULL auto_increment, module_name varchar(150) default NULL, module_path varchar(255) default NULL, module_desc text, module_include_admin char(1) default '0', PRIMARY KEY (module_id) ); # # Dumping data for table `mx_module` # INSERT INTO mx_table_module VALUES (10, 'Core Blocks', './', 'Core blocks', ''); INSERT INTO mx_table_module VALUES (20, 'Text Blocks', 'modules/mx_textblocks/', 'Textblocks module', ''); INSERT INTO mx_table_module VALUES (30, 'Post Last Message', 'modules/mx_last_msg/', 'Last Message Module', '0'); INSERT INTO mx_table_module VALUES (40, 'Statistics MX', 'modules/mx_statistics/', 'Statistics Modules', '0'); # -------------------------------------------------------- # # Table structure for table `mx_page` # DROP TABLE IF EXISTS mx_table_page; CREATE TABLE mx_table_page ( page_id smallint(5) NOT NULL auto_increment, page_name varchar(255) default NULL, page_icon varchar(255) default NULL, auth_view tinyint(2) NOT NULL default '0', auth_view_group smallint(5) NOT NULL default '0', page_header varchar(255) default 'overall_header.tpl', PRIMARY KEY (page_id) ); # # Dumping data for table `mx_page` # INSERT INTO mx_table_page VALUES (1, 'Home', 'icon_home.gif', 0, 0, 'overall_header.tpl'); INSERT INTO mx_table_page VALUES (2, 'Forum', 'icon_forum.gif', 0, 0, 'overall_header.tpl'); # -------------------------------------------------------- # # Table structure for table `mx_parameter` # DROP TABLE IF EXISTS mx_table_parameter; CREATE TABLE mx_table_parameter ( parameter_id smallint(5) unsigned NOT NULL auto_increment, function_id smallint(5) unsigned NOT NULL default '0', parameter_name varchar(150) default NULL, parameter_type varchar(30) default NULL, parameter_default varchar(150) default NULL, parameter_function varchar(255) default NULL, PRIMARY KEY (parameter_id) ); # # Dumping data for table `mx_parameter` # INSERT INTO mx_table_parameter VALUES (1, 17, 'announce_nbr_display', 'Number', '1', NULL); INSERT INTO mx_table_parameter VALUES (2, 17, 'announce_nbr_days', 'Number', '14', NULL); INSERT INTO mx_table_parameter VALUES (3, 17, 'announce_display', 'Boolean', 'TRUE', NULL); INSERT INTO mx_table_parameter VALUES (4, 17, 'announce_display_sticky', 'Boolean', 'TRUE', NULL); INSERT INTO mx_table_parameter VALUES (5, 17, 'announce_display_normal', 'Boolean', 'FALSE', NULL); INSERT INTO mx_table_parameter VALUES (7, 17, 'announce_img', 'Text', 'thumb_globe.gif', NULL); INSERT INTO mx_table_parameter VALUES (8, 17, 'announce_img_sticky', 'Text', 'thumb_globe.gif', NULL); INSERT INTO mx_table_parameter VALUES (9, 17, 'announce_img_normal', 'Text', 'thumb_globe.gif', NULL); INSERT INTO mx_table_parameter VALUES (6, 17, 'announce_display_global', 'Boolean', 'TRUE', NULL); INSERT INTO mx_table_parameter VALUES (10, 17, 'announce_img_global', 'Text', 'thumb_globe.gif', NULL); INSERT INTO mx_table_parameter VALUES (11, 17, 'announce_forum', 'Function', NULL, 'get_list_multiple("{parameter_id}[]", FORUMS_TABLE, \'forum_id\', \'forum_name\', "{parameter_value}", TRUE)'); INSERT INTO mx_table_parameter VALUES (13, 12, 'Poll_Display', 'Function', '0', 'poll_select( {parameter_value}, "{parameter_id}" )'); INSERT INTO mx_table_parameter VALUES (36, 12, 'poll_forum', 'Function', '', 'get_list_multiple("{parameter_id}[]", FORUMS_TABLE, \'forum_id\', \'forum_name\', "{parameter_value}", TRUE)'); INSERT INTO mx_table_parameter VALUES (15, 20, 'Text', 'BBText', 'Insert your text here', NULL); INSERT INTO mx_table_parameter VALUES (16, 21, 'Html', 'Html', 'Entre your Html code here', NULL); INSERT INTO mx_table_parameter VALUES (17, 30, 'Last_Msg_Number_Title', 'Number', '15', NULL); INSERT INTO mx_table_parameter VALUES (18, 30, 'Last_Msg_Display_Date', 'Boolean', 'TRUE', NULL); INSERT INTO mx_table_parameter VALUES (19, 30, 'Last_Msg_Title_Length', 'Number', '30', NULL); INSERT INTO mx_table_parameter VALUES (20, 30, 'Last_Msg_Target', 'Values', '_blank', NULL); INSERT INTO mx_table_parameter VALUES (21, 30, 'Last_Msg_Align', 'Values', 'left', NULL); INSERT INTO mx_table_parameter VALUES (22, 30, 'Last_Msg_Display_Forum', 'Boolean', 'TRUE', NULL); INSERT INTO mx_table_parameter VALUES (37, 30, 'Last_Msg_forum', 'Function', '', 'get_list_multiple("{parameter_id}[]", FORUMS_TABLE, \'forum_id\', \'forum_name\', "{parameter_value}", TRUE)'); INSERT INTO mx_table_parameter VALUES (38, 30, 'Last_Msg_Display_Last_Author', 'Boolean', 'TRUE', ''); INSERT INTO mx_table_parameter VALUES (39, 30, 'Last_Msg_Display_Author', 'Boolean', 'FALSE', ''); INSERT INTO mx_table_parameter VALUES (40, 30, 'Last_Msg_Display_Icon_View', 'Boolean', 'TRUE', ''); INSERT INTO mx_table_parameter VALUES (50, 22, 'Text', 'BBText', 'Enter your block text here', ''); INSERT INTO mx_table_parameter VALUES (51, 22, 'text_style', 'Values', 'none', ''); INSERT INTO mx_table_parameter VALUES (52, 22, 'block_style', 'Boolean', 'TRUE', ''); INSERT INTO mx_table_parameter VALUES (53, 22, 'title_style', 'Boolean', 'TRUE', ''); INSERT INTO mx_table_parameter VALUES (54, 22, 'show_title', 'Boolean', 'TRUE', ''); INSERT INTO mx_table_parameter VALUES (60, 19, 'block_ids', 'Function', '1,2,3', 'get_list_multiple( "{parameter_id}[]", BLOCK_TABLE, \'block_id\', \'block_title\', "{parameter_value}", TRUE)'); INSERT INTO mx_table_parameter VALUES (61, 19, 'block_sizes', 'Text', '20%,30%,*', ''); INSERT INTO mx_table_parameter VALUES (62, 19, 'space_between', 'Number', '4', ''); # -------------------------------------------------------- # # Table structure for table `mx_parameter_option` # DROP TABLE IF EXISTS mx_table_parameter_option; CREATE TABLE mx_table_parameter_option ( option_id smallint(5) unsigned NOT NULL auto_increment, parameter_id smallint(5) unsigned NOT NULL default '0', option_code varchar(150) default NULL, option_desc text, PRIMARY KEY (option_id) ); # # Dumping data for table `mx_parameter_option` # INSERT INTO mx_table_parameter_option VALUES (3, 21, 'left', 'left '); INSERT INTO mx_table_parameter_option VALUES (4, 21, 'right', 'right'); INSERT INTO mx_table_parameter_option VALUES (5, 21, 'center', 'center'); INSERT INTO mx_table_parameter_option VALUES (6, 20, '_blank', 'New Window'); INSERT INTO mx_table_parameter_option VALUES (7, 20, '_self', 'Current Window'); # -------------------------------------------------------- # # Table structure for table `mx_portal` # DROP TABLE IF EXISTS mx_table_portal; CREATE TABLE mx_table_portal ( portal_id smallint(5) unsigned NOT NULL auto_increment, portal_name varchar(150) default NULL, portal_phpbb_url varchar(255) default 'http://www.phpbb.com/phpBB/', portal_url varchar(255) default NULL, portal_version varchar(255) default NULL, top_phpbb_links smallint(5) unsigned NOT NULL default '1', PRIMARY KEY (portal_id) ); --- NEW FILE: mysql_schema_upgrade_to_2.705.sql --- # # mxBB-Portal - MySQL Schema - Upgrade "2.705" # # $Id: mysql_schema_upgrade_to_2.705.sql,v 1.1 2005/05/06 06:47:59 jonohlsson Exp $ # # ------------------------------------------------------------ # # Remove auto_increment attribute from field parameter_id # in Tables `mx_block_system_parameter` and `mx_block_user_parameter` # # NOTE 1: This change was really implemented in 2.704 # NOTE 2: Not all DB managers support changing column attributes. # CREATE TABLE mx_table_block_system_parameter_tmp ( block_id smallint(5) unsigned NOT NULL default '0', parameter_id smallint(5) unsigned NOT NULL default '0', parameter_value text, bbcode_uid varchar(10) default NULL, PRIMARY KEY (block_id, parameter_id) ); INSERT INTO mx_table_block_system_parameter_tmp SELECT * FROM mx_table_block_system_parameter; DROP TABLE mx_table_block_system_parameter; CREATE TABLE mx_table_block_system_parameter ( block_id smallint(5) unsigned NOT NULL default '0', parameter_id smallint(5) unsigned NOT NULL default '0', parameter_value text, bbcode_uid varchar(10) default NULL, PRIMARY KEY (block_id, paramete... [truncated message content] |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:07
|
Update of /cvsroot/mxbb/core27x/contrib/replace_phpbb_admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/contrib/replace_phpbb_admin Added Files: index.php install.txt Log Message: Initital core 2.7.x commit :-) --- NEW FILE: install.txt --- If your will only one "Administration Panel". Go to your phpbb/admin directory. Rename index.php to index_old.php Copy the index.php in the phpbb/admin directory. Edit index.php and replace "www.your_host.com" by your portal adress. --- NEW FILE: index.php --- <HEAD> <SCRIPT language="JavaScript"> <!-- window.location="http://www.your_host.com/admin/index.php"; //--> </SCRIPT> </HEAD> |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:07
|
Update of /cvsroot/mxbb/core27x/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/install Added Files: index.php mx_install.php mx_install_readme.html mx_upgrade_changes_between_2.7.3_and_2.7.5.htm mx_upgrade_changes_between_2.7.5-pl4_and_2.7.6.htm mx_upgrade_changes_between_2.7.5_and_2.7.5-pl4.htm Log Message: Initital core 2.7.x commit :-) --- NEW FILE: mx_upgrade_changes_between_2.7.3_and_2.7.5.htm --- <html> <head> <title>mxBB-Portal :: Upgrade - readme</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <!-- link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" --> <style type="text/css"> <!-- /* The original subSilver Theme for phpBB version 2+ Created by subBlue design http://www.subBlue.com NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 theme administration centre. When you have finalised your style you could cut the final CSS code and place it in an external file, deleting this section to save bandwidth. */ /* General page style. The scroll bar colours only visible in IE5.5+ */ body { background-color: #E5E5E5; scrollbar-face-color: #DEE3E7; scrollbar-highlight-color: #FFFFFF; scrollbar-shadow-color: #DEE3E7; scrollbar-3dlight-color: #D1D7DC; scrollbar-arrow-color: #006699; scrollbar-track-color: #EFEFEF; scrollbar-darkshadow-color: #98AAB1; } /* General font families for common tags */ font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif } a:link,a:active,a:visited { color : #006699; } a:hover { text-decoration: underline; color : #DD6900; } hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ .bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; } /* This is the outline round the main forum tables */ .forumline { background-color: #FFFFFF; border: 2px #006699 solid; } /* Main table cell colours and backgrounds */ td.row1 { background-color: #EFEFEF; } td.row2 { background-color: #DEE3E7; } td.row3 { background-color: #D1D7DC; } /* This is for the table cell above the Topics, Post & Last posts on the index.php page By default this is the fading out gradiated silver background. However, you could replace this with a bitmap specific for each forum */ td.rowpic { background-color: #FFFFFF; background-image: url(templates/subSilver/images/cellpic2.jpg); background-repeat: repeat-y; } /* Header cells - the blue and silver gradient backgrounds */ th { color: #FFA34F; font-size: 11px; font-weight : bold; background-color: #006699; height: 25px; background-image: url(templates/subSilver/images/cellpic3.gif); } td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { background-image: url(templates/subSilver/images/cellpic1.gif); background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px; } /* Setting additional nice inner borders for the main table cells. The names indicate which sides the border will be on. Don't worry if you don't understand this, just ignore it :-) */ td.cat,td.catHead,td.catBottom { height: 29px; border-width: 0px 0px 0px 0px; } th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; } td.row3Right,td.spaceRow { background-color: #D1D7DC; border: #FFFFFF; border-style: solid; } th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ .maintitle { font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; text-decoration: none; line-height : 120%; color : #000000; } /* General text */ .gen { font-size : 12px; } .genmed { font-size : 11px; } .gensmall { font-size : 10px; } .gen,.genmed,.gensmall { color : #000000; } a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; } a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #DD6900; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ .mainmenu { font-size : 11px; color : #000000 } a.mainmenu { text-decoration: none; color : #006699; } a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } /* Forum category titles */ .cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} a.cattitle { text-decoration: none; color : #006699; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ .forumlink { font-weight: bold; font-size: 12px; color : #006699; } a.forumlink { text-decoration: none; color : #006699; } a.forumlink:hover{ text-decoration: underline; color : #DD6900; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ .nav { font-weight: bold; font-size: 11px; color : #000000;} a.nav { text-decoration: none; color : #006699; } a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ .topictitle,h1,h2 { font-weight: bold; font-size: 11px; color : #000000; } a.topictitle:link { text-decoration: none; color : #006699; } a.topictitle:visited { text-decoration: none; color : #5493B4; } a.topictitle:hover { text-decoration: underline; color : #DD6900; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ .name { font-size : 11px; color : #000000;} /* Location, number of posts, post date etc */ .postdetails { font-size : 10px; color : #000000; } /* The content of the posts (body of text) */ .postbody { font-size : 12px; line-height: 18px} a.postlink:link { text-decoration: none; color : #006699 } a.postlink:visited { text-decoration: none; color : #5493B4; } a.postlink:hover { text-decoration: underline; color : #DD6900} /* Quote & Code blocks */ .code { font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ .copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} a.copyright { color: #444444; text-decoration: none;} a.copyright:hover { color: #000000; text-decoration: underline;} /* Form elements */ input,textarea, select { color : #000000; font: normal 11px Verdana, Arial, Helvetica, sans-serif; border-color : #000000; } /* The text input fields background colour */ input.post, textarea.post, select { background-color : #FFFFFF; } input { text-indent : 2px; } /* The buttons used for bbCode styling in message post */ input.button { background-color : #EFEFEF; color : #000000; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; } /* The main submit button option */ input.mainoption { background-color : #FAFAFA; font-weight : bold; } /* None-bold submit button */ input.liteoption { background-color : #FAFAFA; font-weight : normal; } /* This is the line in the posting page which shows the rollover help line. This is actually a text box, but if set to be the same colour as the background no one will know ;) */ .helpline { background-color: #DEE3E7; border-style: none; } /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ @import url("templates/subSilver/formIE.css"); --> </style> </head> <body bgcolor="#FFFFFF" text="#000000"> <table class="bodyline" cellpadding="8" cellspacing="0" width="90%" align="center"> <tr> <td colspan="2"><span class="postbody"><span style="font-size: 18px; line-height: normal">Changed/Added/Removed files between <span style="color: red"><span style="font-weight: bold">2.7.3</span></span> and <span style="color: blue"><span style="font-weight: bold">2.7.5</span></span></span> <br /> <br /> Note: The following instructions are part of our global upgrade procedure described in the <a href="http://www.mx-system.com/forum/viewtopic.php?t=1224#upgrade" target="_blank" class="postlink">Release Notes</a>! <br /> <br /> <br /> <ol type="1"><li>Using your FTP client of choice (or File Manager, if your webserver is local), point yourself into the directory where your mxBB-Portal is installed and remove the following files: <br /> <br /> <span style="color: red">* WARNING: Do NOT confuse with the same/similar files/folders in the phpBB directory !!!</span> <br /> <br /> <ol type="a"><li>Delete the "db" subdirectory and all of its contents. <br /> <br /> DELETE db/*.* <br /> DELETE db <br /> <br /> <li>Enter the includes subdirectory and remove the following files: <br /> <br /> DELETE auth.php <br /> DELETE bbcode.php <br /> DELETE constants.php <br /> DELETE db.php <br /> DELETE functions.php <br /> DELETE functions_admin.php <br /> DELETE functions_post.php <br /> DELETE functions_selects.php <br /> DELETE functions_validate.php <br /> DELETE sessions.php <br /> DELETE sql_parse.php</ol> <br /> <br /> <li>Now extract the <span style="text-decoration: underline">latest distributed ZIP</span> and copy/upload into place the following new/changed files: <br /> <br /> COPY templates/subSilver/images/banner_mx-system.gif <br /> COPY common.php <br /> COPY index.php <br /> COPY login.php <br /> COPY mx_menu_nav.php <br /> COPY mx_multiple_blocks.php <br /> COPY admin/admin_mx_module.php <br /> COPY admin/admin_mx_portal.php <br /> COPY includes/mx_functions.php <br /> COPY includes/page_tail.php <br /> COPY includes/template.php <br /> COPY language/lang_english/lang_admin.php <br /> COPY templates/subSilver/overall_footer.tpl <br /> COPY templates/subSilver/admin/page_footer.tpl <br /> </ol> </td> </tr> </table> </body> </html> --- NEW FILE: mx_install_readme.html --- <html> <head> <title>mxBB-Portal :: Installation - readme</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <!-- link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" --> <style type="text/css"> <!-- /* The original subSilver Theme for phpBB version 2+ Created by subBlue design http://www.subBlue.com NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 theme administration centre. When you have finalised your style you could cut the final CSS code and place it in an external file, deleting this section to save bandwidth. */ /* General page style. The scroll bar colours only visible in IE5.5+ */ body { background-color: #E5E5E5; scrollbar-face-color: #DEE3E7; scrollbar-highlight-color: #FFFFFF; scrollbar-shadow-color: #DEE3E7; scrollbar-3dlight-color: #D1D7DC; scrollbar-arrow-color: #006699; scrollbar-track-color: #EFEFEF; scrollbar-darkshadow-color: #98AAB1; } /* General font families for common tags */ font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif } a:link,a:active,a:visited { color : #006699; } a:hover { text-decoration: underline; color : #DD6900; } hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ .bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; } /* This is the outline round the main forum tables */ .forumline { background-color: #FFFFFF; border: 2px #006699 solid; } /* Main table cell colours and backgrounds */ td.row1 { background-color: #EFEFEF; } td.row2 { background-color: #DEE3E7; } td.row3 { background-color: #D1D7DC; } /* This is for the table cell above the Topics, Post & Last posts on the index.php page By default this is the fading out gradiated silver background. However, you could replace this with a bitmap specific for each forum */ td.rowpic { background-color: #FFFFFF; background-image: url(templates/subSilver/images/cellpic2.jpg); background-repeat: repeat-y; } /* Header cells - the blue and silver gradient backgrounds */ th { color: #FFA34F; font-size: 11px; font-weight : bold; background-color: #006699; height: 25px; background-image: url(templates/subSilver/images/cellpic3.gif); } td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { background-image: url(templates/subSilver/images/cellpic1.gif); background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px; } /* Setting additional nice inner borders for the main table cells. The names indicate which sides the border will be on. Don't worry if you don't understand this, just ignore it :-) */ td.cat,td.catHead,td.catBottom { height: 29px; border-width: 0px 0px 0px 0px; } th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; } td.row3Right,td.spaceRow { background-color: #D1D7DC; border: #FFFFFF; border-style: solid; } th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ .maintitle { font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; text-decoration: none; line-height : 120%; color : #000000; } /* General text */ .gen { font-size : 12px; } .genmed { font-size : 11px; } .gensmall { font-size : 10px; } .gen,.genmed,.gensmall { color : #000000; } a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; } a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #DD6900; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ .mainmenu { font-size : 11px; color : #000000 } a.mainmenu { text-decoration: none; color : #006699; } a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } /* Forum category titles */ .cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} a.cattitle { text-decoration: none; color : #006699; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ .forumlink { font-weight: bold; font-size: 12px; color : #006699; } a.forumlink { text-decoration: none; color : #006699; } a.forumlink:hover{ text-decoration: underline; color : #DD6900; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ .nav { font-weight: bold; font-size: 11px; color : #000000;} a.nav { text-decoration: none; color : #006699; } a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ .topictitle,h1,h2 { font-weight: bold; font-size: 11px; color : #000000; } a.topictitle:link { text-decoration: none; color : #006699; } a.topictitle:visited { text-decoration: none; color : #5493B4; } a.topictitle:hover { text-decoration: underline; color : #DD6900; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ .name { font-size : 11px; color : #000000;} /* Location, number of posts, post date etc */ .postdetails { font-size : 10px; color : #000000; } /* The content of the posts (body of text) */ .postbody { font-size : 12px; line-height: 18px} a.postlink:link { text-decoration: none; color : #006699 } a.postlink:visited { text-decoration: none; color : #5493B4; } a.postlink:hover { text-decoration: underline; color : #DD6900} /* Quote & Code blocks */ .code { font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ .copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} a.copyright { color: #444444; text-decoration: none;} a.copyright:hover { color: #000000; text-decoration: underline;} /* Form elements */ input,textarea, select { color : #000000; font: normal 11px Verdana, Arial, Helvetica, sans-serif; border-color : #000000; } /* The text input fields background colour */ input.post, textarea.post, select { background-color : #FFFFFF; } input { text-indent : 2px; } /* The buttons used for bbCode styling in message post */ input.button { background-color : #EFEFEF; color : #000000; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; } /* The main submit button option */ input.mainoption { background-color : #FAFAFA; font-weight : bold; } /* None-bold submit button */ input.liteoption { background-color : #FAFAFA; font-weight : normal; } /* This is the line in the posting page which shows the rollover help line. This is actually a text box, but if set to be the same colour as the background no one will know ;) */ .helpline { background-color: #DEE3E7; border-style: none; } /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ @import url("templates/subSilver/formIE.css"); --> </style> </head> <body bgcolor="#FFFFFF" text="#000000"> <table class="bodyline" cellpadding="8" cellspacing="0" width="90%" align="center"> <tr> <td colspan="2"><span class="postbody"><a name="top"><span style="font-weight: bold"><span style="font-size: 18px; line-height: normal">[RELEASE] mxBB-Portal v 2.7.6 </span></span></a> <br /> <span style="font-style: italic">The "in between milestones" edition</span> <img src="http://www.mx-system.com/forum/images/smiles/icon_cool.gif" alt="Cool" border="0" /> <br /> <br /> <br /> This is the mxBB-Portal release and installation notes. Further portal information (i.e. roadmap, development, <a href="http://www.mx-system.com/forum/viewtopic.php?t=2829#MXhistory" target="_blank" class="postlink">version history,</a> etc,) is located <a href="http://www.mx-system.com/forum/viewtopic.php?t=2829" target="_blank" class="postlink">here </a>. <br /> <br /> <span style="font-weight: bold"><span style="font-size: 14px; line-height: normal">Overview</span></span> <br /> mxBB-Portal is a fully modular portal and CMS for phpBB. It features dynamic pages/blocks/themes by means of a powerful yet flexible Admin CP. While it uses integrated features, it works without touching phpBB. This makes it a lot easier to upgrade to phpBB 3.0 "Olympus" when the time comes, among other things. mxBB-Portal requires phpBB to run, and currently supports the mySQL and postgreSQL databases. mxBB-Portal is the classical phpBB portal add-on, improved and enhanced for every phpBB version since 2001. <br /> <br /> <a href="http://www.mx-system.com" target="_blank" class="postlink"> DEMO </a> <br /> <br /> Download the <a href="http://www.mx-system.com/index.php?page=112&action=category&cat_id=3" target="_blank" class="postlink"> mxBB-Portal Core </a> (required for <span style="font-weight: bold">all</span> setups) / <a href="http://www.mx-system.com/index.php?page=112&action=category&cat_id=4" target="_blank" class="postlink"> Add-on Modules</a> (optional; download whichever ones you need) <br /> <br /> Keep yourself up to date! Subscribe to the <a href="http://lists.sourceforge.net/lists/listinfo/mxbb-news" target="_blank" class="postlink">mxBB-News Mailing List</a>! <img src="http://www.mx-system.com/forum/images/smiles/icon_wink.gif" alt="Wink" border="0" /> <br /> <br /> <hr /> <br /> <span style="font-weight: bold"><span style="font-size: 14px; line-height: normal">Contents</span></span> <br /> 0. <a href="#features">mxBB-Portal Features</a> <br /> Ia. <a href="#install">Installation Instructions</a> <br /> Ib. <a href="#upgrade">Upgrade Instructions</a> <br /> II. <a href="#modules">Installing Add-on Modules</a> <br /> III. <a href="#themes">Installing Themes/Styles</a> <br /> IV. <a href="#languages">Additional Languages</a> <br /> <br /> <hr /> <br /> <br /> <a name="features"><span style="font-size: 18px; line-height: normal"><span style="font-weight: bold">0. mxBB-Portal features</span></span></a> <br /> <br /> - Easy to use <br /> - An easy-to-install web portal/CMS <br /> - Intergrates smoothly with the popular <a href="http://www.phpbb.com" target="_blank" class="postlink"> phpBB forum</a> forum,without modifying (aka MODding) any phpBB files, hence "modular" <br /> - Intuitive, yet advanced Portal Admin Control Panel, managing every aspect of the portal, AND the phpBB admin pages <br /> - Modular based approach with easy to use and install/upgrade (and create) add-on packages; this means no MODding to the mxBB-Portal core. <img src="http://www.mx-system.com/forum/images/smiles/icon_wink.gif" alt="Wink" border="0" /> <br /> - Install only the modules with features YOU want <br /> - Unlimited number of dynamic portal pages, making unique page designs truly creative <br /> - Flexible Core Page Blocks featuring standard phpBB themes, BBcode/HTML, languages and view/edit permissions (user/group) <br /> - Additional Module Page Blocks, enriched with tailored features <br /> - Advanced interface for categorized menu navigation <br /> - Cache system, for fast functionality and decreased DB queries needed <br /> - Support forum <a href="http://www.mx-system.com" target="_blank" class="postlink">www.mx-system.com</a>) <br /> <br /> <span style="font-weight: bold">Included Modules in the Mx Portal - Core distribution</span> <br /> - CORE Module (standard blocks) <br /> - Last Message Module <br /> - Statistics Module <br /> - Textblocks Module <br /> <br /> <span style="font-weight: bold">Official Modules - Add-On packages</span> <br /> <br /> Official Modules/Styles/Languages are released and supported <a href="http://www.mx-system.com/forum/viewforum.php?f=11" target="_blank" class="postlink">here</a>. <br /> <br /> <br /> <span style="font-weight: bold">User-Contributed Modules</span> <br /> User contributed Modules/Styles/Languages are released and supported <a href="http://www.mx-system.com/forum/viewforum.php?f=10" target="_blank" class="postlink">here</a>. <br /> <br /> Also, be sure to visit <a href="http://www.mx-system.com/index.php?page=107&mode=viewprofile&u=976" target="_blank" class="postlink">markus'</a> module dev site - <a href="http://www.phpmix.com" target="_blank">http://www.phpmix.com</a> - hosting several popular mxBB modules! <br /> <br /> <br /> <br /> <span style="font-weight: bold">Requirements</span> <br /> - PHP4 (Recommended: Most recent PHP4 version, currently 4.3.11) <br /> - phpBB 2.0.x (latest version) <br /> - mySQL or postgreSQL databases <br /> - An FTP client capable of uploading files to your server (this is not needed if you're hosting your own server) <br /> <br /> <span style="font-weight: bold">Note that the mxBB-Portal Core 2.7.x and up do NOT support PHP5. Sorry. We are planning to implement PHP5 support with our mxBB 3.0 release, which will be released parallel to phpBB 3.0 "Olympus".</span> <br /> <br /> Be sure to use the lastest phpBB, mxBB Core, and module releases: otherwise, conflicts may occur! <br /> <a href="#top">Back to Top</a> <br /> <br /> <a name="install"> <br /> <span style="font-size: 18px; line-height: normal"><span style="font-weight: bold">Ia. Installation Instructions</span></span> <br /> </a> <br /> <br /> <span style="font-weight: bold">1)</span> The mxBB Portal requires a working installation of phpBB and will <span style="font-weight: bold">not</span> run standalone. If phpBB is not installed on your system, please visit <a href="http://www.phpbb.com" target="_blank">www.phpbb.com</a> for further instructions. <br /> <br /> For the new installer introduced in 2.7.5, you need not set the board's default theme to subSilver; you also need not set the default language to English. The installer automatically picks all of this for you. <br /> <br /> <span style="font-weight: bold">2)</span> The mxBB Portal and phpBB forum <span style="font-weight: bold"><span style="text-decoration: underline">must</span></span> be installed in <span style="font-style: italic">different</span> directories. Do not mix the files up!! <br /> <br /> <span style="font-size: 16px; line-height: normal"><span style="font-weight: bold">Note that for ALL of the directory structure examples below, you MUST include the trailing slash at the end of the folder names! If you don't, you'll run into errors later!</span></span> <br /> <br /> <br /> <br /> <span style="font-style: italic">Default directory structure is:</span> <br /> <br /> /your/path/to/public/html/YOUR_FORUM_NAME/ (this is the place where your working phpBB installation should be located) <br /> <br /> /your/path/to/public/html/YOUR_PORTAL_NAME/ (this is the place were all mxBB files should be located) <br /> <br /> Note that you can alternatively install mxBB in your root directory (which can be accessed via <a href="http://www.yourdomain.com/)" target="_blank">www.yourdomain.com/)</a> while your forum can be installed in a folder <span style="font-style: italic">within</span> mxBB's (ie it'd be located in <a href="http://www.yourdomain.com/phpBB2/)." target="_blank">www.yourdomain.com/phpBB2/).</a> <br /> <br /> Using the <span style="font-weight: bold">default setup above</span>, the install path variables should be: <br /> <br /> phpBB Relative Path: <span style="font-weight: bold">../YOUR_FORUM_NAME/</span> <br /> Portal URL: <span style="font-weight: bold">http://www.yourdomain.com/YOUR_PORTAL_NAME/</span> <br /> phpBB URL: <span style="font-weight: bold">http://www.yourdomain.com/YOUR_FORUM_ NAME/</span> <br /> <br /> <span style="font-style: italic">Note #1</span>: If you move the phpBB folder into another one before installing mxBB, the phpBB configuration (the /phpbbroot/config.php file) must also be modified to match the new phpB location. This is done in the Admin CP <span style="font-weight: bold">and</span> the config.php file directly. <br /> <br /> <span style="font-style: italic">Note #2</span>: phpBB and mxBB use individual config.php files. Do not confuse them together! They are two different files. <br /> <br /> <span style="font-style: italic">Example: mxBB is installed in your root directory</span> <br /> <br /> /your/site/root/ <br /> <br /> /admin <br /> /db <br /> /language <br /> /modules <br /> /phpBB2 (this is the place where your working phpBB installation should be located) <br /> /templates <br /> <br /> <img src="http://www.techbaseforums.com/files/images/mxbb_install_276.jpg" /> <br /> <br /> As stated above, using the default setup, the install path variables should be: <br /> <br /> phpBB Relative Path: phpBB2/ <br /> Portal URL: <a href="http://www.yourdomain.com/" target="_blank">http://www.yourdomain.com/</a> <br /> phpBB URL: <a href="http://www.yourdomain.com/phpBB2/" target="_blank">http://www.yourdomain.com/phpBB2/</a> <br /> <br /> I'm repeating this just to clarify this for any of you who are confused. <img src="http://www.mx-system.com/forum/images/smiles/icon_wink.gif" alt="Wink" border="0" /> <br /> <br /> <span style="font-style: italic">Note</span>: These are standard install paths, since they acknowledge the standard phpBB install directory (/phpBB2). No further changes are needed for the phpBB configuration. <br /> <br /> <span style="font-weight: bold">3)</span> Unzip the distributed MX-Portal files and upload <br /> <br /> <span style="font-style: italic">Special note</span> <br /> mxBB needs write access/permissions to the cache folder and the mx_meta.inc file. <br /> <br /> ## CHMOD (0777) THE FOLLOWING FILES/DIRECTORIES: <br /> ## - mxroot/cache/ <br /> ## - mxroot/mx_meta.inc <br /> <br /> For those with Windows servers, CHMOD 0777 gives read, write, and access permissions to all 3 auth types (commonly Owner, Group, and Other/Anonymous). You'll have to give the files/folders above these permissions; this depends from host to host, though usually you can do it via your hosting control panel (ie cPanel, DirectAdmin, etc.). <br /> <br /> <span style="font-weight: bold">4)</span> In your browser, call <a href="http://www.yourdomain.com/mxroot/install/." target="_blank">http://www.yourdomain.com/mxroot/install/.</a> Replace "mxroot" with whatever name you had for your mxBB folder, which contains all of the mxBB files and folders. <br /> <br /> With the new installer recently introduced for 2.7.5, all of the values should already be filled in, and you should be set up to go and click "Install." However, you should go over the information filled in. If you definitely need something changed, and you KNOW WHAT YOU'RE DOING, then go ahead, though the mxBB Installer probably has the most accurate information. <br /> <br /> <span style="font-style: italic">Note</span>: The install script creates/generates the mxBB config.php file. If for some reason the install fails, you may need to remove the created config.php manually before retrying the install. <br /> <br /> <span style="font-style: italic">Note</span>: If you feel like doing a fresh reinstallation, you have to remove old mxBB config.php file; otherwise, the script will try to update. <br /> <br /> Also, some webservers deny the installer the rights to edit the config.php file. In this case you'll need to CHMOD the config.php file to 0777. (CHMOD is overviewed above). If you have any other errors regarding config.php (you shouldn't), go <a href="http://www.mx-system.com/forum/viewtopic.php?t=5593#configerror" target="_blank" class="postlink">here</a> <br /> <br /> <span style="font-weight: bold">5)</span> Don't forget to remove the install and contrib folders after a successful installation! Otherwise, this could mean a potential security hole. <br /> <br /> <span style="font-weight: bold">6)</span> Installation Complete! <img src="http://www.mx-system.com/forum/images/smiles/icon_smile.gif" alt="Smile" border="0" /> <br /> Now enter the Portal Admin CP and configure the portal. The user interface is intuitive. For further information, visit some of our docs/KB articles at mx-system.com . <br /> <br /> <img src="http://www.mx-system.com/images/docs/adminCP_overview.gif"> <br /> <br /> Note 1: In version 2.7.x there's a new syntax for the mxBB config.php file. This may be of interest for those who want to edit this file directly: <br /> <br /> </span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr> <td><span class="genmed"><b>Code:</b></span></td> </tr> <tr> <td class="code"><?php <br /> <br /> // <br /> // MX-Portal 2.x auto-generated config file <br /> // <br /> // <br /> <br /> $mx_table_prefix = "mx_"; <br /> <br /> define('MX_INSTALLED', true); <br /> <br /> $dbms = 'mysql'; <br /> <br /> $dbhost = 'host'; <br /> $dbname = 'DBNAME'; <br /> $dbuser = 'DBUSER'; <br /> $dbpasswd = 'DBPASSWD'; <br /> <br /> $table_prefix = 'phpbb_'; <br /> <br /> define('PHPBB_INSTALLED', true); <br /> <br /> $phpbb_root_path = $mx_root_path . "/forum/" <br /> <br /> ?></td> </tr></table><span class="postbody"> <br /> <br /> <a href="#top">Back to Top</a> <br /> <br /> <a name="upgrade"> <br /> <span style="font-size: 18px; line-height: normal"><span style="font-weight: bold">Ib. Upgrade Instructions</span></span> <br /> </a> <br /> <br /> <img src="http://www.techbaseforums.com/files/images/mxbb_upgrade_276.jpg" /> <br /> <br /> When upgrading from older versions, you should first apply the changes described to upgrade from your current version to the next, and so on! <br /> <br /> If your current portal version is far from more than one release, we advise you to remove all your portal files from your webspace, then proceed as if it was a new installation, except: keep your current portal config.php file (otherwise, the installation wizard will assume you're doing a fresh installation! ) and also all non-core modules in place. <br /> <br /> Remember: The rule that makes the Installation Wizard switch from installation to upgrade modes is the presence of a valid config.php in your portal root folder, with all correct settings in place. The upgrade mode makes changes to your database to upgrade to latest version, whereas the install mode DELETEs all your previous portal tables (if exist) and then creates fresh tables with default settings! <br /> <br /> <span style="color: red">Please, make sure you have verified backups of ALL your files and database BEFORE proceeding!</span> <br /> <br /> <br /> <span style="font-weight: bold">Step by step upgrade instructions from 2.7.3 to the latest version in 5/10 minutes!</span> <br /> <ul><li>First step, of course, and this is a must: Make backups of ALL your files and database BEFORE proceeding! <br /> <br /> * NOTE: Minutes count after this step is completely done and verified <img src="http://www.mx-system.com/forum/images/smiles/icon_mrgreen.gif" alt="Mr. Green" border="0" /> <br /> <br /> <li>Goto your AdminCP and disable your board. <br /> <br /> <li>Now, please apply the changes described to upgrade from your current version to the next, and so on! <br /> <br /> <ul><li><a href="mx_upgrade_changes_between_2.7.3_and_2.7.5.htm" target="_blank" class="postlink"><span style="font-weight: bold">Upgrade from 2.7.3 to 2.7.5</span></a> <br /> <li><a href="mx_upgrade_changes_between_2.7.5_and_2.7.5-pl4.htm" target="_blank" class="postlink"><span style="font-weight: bold">Upgrade from 2.7.5 to 2.7.5-pl4</span></a> <br /> <li><a href="mx_upgrade_changes_between_2.7.5-pl4_and_2.7.6.htm" target="_blank" class="postlink"><span style="font-weight: bold">Upgrade from 2.7.5-pl4 to 2.7.6</span></a></ul> <br /> <li>Now, extract the <span style="text-decoration: underline">latest distributed ZIP</span> and copy/upload into place all installer related stuff (preserving directory structure): <br /> <br /> COPY install/*.* <br /> <br /> <li>Then, point yourself to your website/install folder using your browser of choice. <br /> <br /> <a href="http://www.example.com/install" target="_blank">http://www.example.com/install</a> <br /> <br /> ...and follow instructions. <br /> <br /> * FYI: This step is necessary to upgrade some pieces of your database. Basically, the version number. <br /> <br /> <li>Open your FTP client/File Manager of choice and delete the install and contrib directories from your portal root. <br /> <br /> <li>Goto your AdminCP and enable your board, back again. <br /> <br /> <li>You're done! <img src="http://www.mx-system.com/forum/images/smiles/icon_cool.gif" alt="Cool" border="0" /></ul> <br /> <span style="font-weight: bold">Upgrading from older versions</span> <br /> <br /> Remember to make backups first. Then simply override all of your old files (important: except your config.php file) and run the install script by calling <a href="http://www.example.com/install" target="_blank">http://www.example.com/install</a> . Also remember to upgrade all of the modules you have installed to the most recent version. <br /> <br /> <span style="font-style: italic">Note:</span> If upgrading from mxBB 2.704, we have renamed most of the core images and moved them to the template's folder. This will affect nav images in the menu, and Page Admin. You'll have to update the image names manually!! There is a PhotoShop template file ( *.PSD ) in the mxBB Download area with all MX graphics if you want to develop your own styles. <br /> <br /> <a href="#top">Back to Top</a> <br /> <br /> <a name="modules"> <br /> <span style="font-size: 18px; line-height: normal"><span style="font-weight: bold">II. Installing Add-On Modules</span></span> <br /> </a> <br /> <br /> Official Modules are released <a href="http://www.mx-system.com/forum/viewforum.php?f=11" target="_blank" class="postlink">here</a>. Simply download a module pack, unZIP it onto your computer, and upload it into the mxroot/modules/ folder (see image below). Go into your mxBB Admin CP, and click on the "Install Module" button in the <span style="font-weight: bold">Module Administration</span> page. For further instructions, see the install documentation for the module. <br /> <br /> <a href="#top">Back to Top</a> <br /> <br /> <img src="http://www.mx-system.com/images/docs/setup_modules.gif"> <br /> <br /> <a name="themes"> <br /> <span style="font-size: 18px; line-height: normal"><span style="font-weight: bold">III. Additional Themes/Styles</span></span> <br /> <br /> </a> <br /> <br /> Installed phpBB themes/templates may be used for mxBB too, but they also need to be installed for mxBB. Read the whole documentation article regarding theme install <a href="http://www.mx-system.com/forum/viewtopic.php?t=4741" target="_blank" class="postlink">here</a>. <br /> <br /> <span style="font-style: italic">Note:</span> mxBB uses the same theme/style syntax as phpBB, so please be sure you understand the phpBB approach before trying to adapt a theme to mxBB! <br /> <br /> <a href="#top">Back to Top</a> <br /> <br /> <a name="languages"> <br /> <span style="font-size: 18px; line-height: normal"><span style="font-weight: bold">IV. Additional Languages</span></span> <br /> </a> <br /> First check to see if your language is already translated. Translated languages are downloaded in the mxBB download area. <br /> <br /> If your language is not already translated, duplicate (copy and paste) the /language/lang_english/ directory, rename it to something like "lang_yourlanguage." Translate all of the included files, save it, ZIP it, and upload it to the mxBB Languages Download Area. Be sure to report translated languages to us. We appreciate your contribution. <img src="http://www.mx-system.com/forum/images/smiles/icon_smile.gif" alt="Smile" border="0" /> <br /> <br /> <a href="#top">Back to Top</a> <br /> <br /> Jon and MennoniteHobbit <br /> <span style="font-style: italic">On behalf of the rest of the mxBB Team</span></span> </td> </tr> </table> </body> </html> --- NEW FILE: mx_install.php --- <?php /** ------------------------------------------------------------------------ * subject : mxBB-Portal Installation Script * begin : june, 2002 * copyright : (C) 2002-2005 mxBB-Portal * email : jon...@ho... * project site : www.mx-system.com * * editor settings : Please, set tabsize to 4 * * description : * ------------------------------------------------------------------------- * * $Id: mx_install.php,v 1.1 2005/05/06 06:47:59 jonohlsson Exp $ */ /** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by [...1672 lines suppressed...] // // When the PHP realpath function is disabled it returns false and generates a message like: // // Warning: realpath (and maybe other functions) has been disabled for security reasons in // path-to-your/install/mx_install.php on line XXX // // This "security" measure seems somehow stupid since information of the filesystem layout // can be easily retrieved from PHP (and Apache) global variables ...as well as from the // same PHP generated warning message! :P // // Just wanted to mention I already saw the phpBB guys also created their own phpbb_realpath // function (in includes/functions.php). I never understood why they did it. Only if they // had documented the correct reason in their source code. ;-) // function mx_realpath($path) { return ( @function_exists('realpath') && @realpath(__FILE__) ? realpath($path) : $path ); } ?> --- NEW FILE: mx_upgrade_changes_between_2.7.5_and_2.7.5-pl4.htm --- <html> <head> <title>mxBB-Portal :: Upgrade - readme</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <!-- link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" --> <style type="text/css"> <!-- /* The original subSilver Theme for phpBB version 2+ Created by subBlue design http://www.subBlue.com NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 theme administration centre. When you have finalised your style you could cut the final CSS code and place it in an external file, deleting this section to save bandwidth. */ /* General page style. The scroll bar colours only visible in IE5.5+ */ body { background-color: #E5E5E5; scrollbar-face-color: #DEE3E7; scrollbar-highlight-color: #FFFFFF; scrollbar-shadow-color: #DEE3E7; scrollbar-3dlight-color: #D1D7DC; scrollbar-arrow-color: #006699; scrollbar-track-color: #EFEFEF; scrollbar-darkshadow-color: #98AAB1; } /* General font families for common tags */ font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif } a:link,a:active,a:visited { color : #006699; } a:hover { text-decoration: underline; color : #DD6900; } hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ .bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; } /* This is the outline round the main forum tables */ .forumline { background-color: #FFFFFF; border: 2px #006699 solid; } /* Main table cell colours and backgrounds */ td.row1 { background-color: #EFEFEF; } td.row2 { background-color: #DEE3E7; } td.row3 { background-color: #D1D7DC; } /* This is for the table cell above the Topics, Post & Last posts on the index.php page By default this is the fading out gradiated silver background. However, you could replace this with a bitmap specific for each forum */ td.rowpic { background-color: #FFFFFF; background-image: url(templates/subSilver/images/cellpic2.jpg); background-repeat: repeat-y; } /* Header cells - the blue and silver gradient backgrounds */ th { color: #FFA34F; font-size: 11px; font-weight : bold; background-color: #006699; height: 25px; background-image: url(templates/subSilver/images/cellpic3.gif); } td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { background-image: url(templates/subSilver/images/cellpic1.gif); background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px; } /* Setting additional nice inner borders for the main table cells. The names indicate which sides the border will be on. Don't worry if you don't understand this, just ignore it :-) */ td.cat,td.catHead,td.catBottom { height: 29px; border-width: 0px 0px 0px 0px; } th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; } td.row3Right,td.spaceRow { background-color: #D1D7DC; border: #FFFFFF; border-style: solid; } th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ .maintitle { font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; text-decoration: none; line-height : 120%; color : #000000; } /* General text */ .gen { font-size : 12px; } .genmed { font-size : 11px; } .gensmall { font-size : 10px; } .gen,.genmed,.gensmall { color : #000000; } a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; } a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #DD6900; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ .mainmenu { font-size : 11px; color : #000000 } a.mainmenu { text-decoration: none; color : #006699; } a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } /* Forum category titles */ .cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} a.cattitle { text-decoration: none; color : #006699; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ .forumlink { font-weight: bold; font-size: 12px; color : #006699; } a.forumlink { text-decoration: none; color : #006699; } a.forumlink:hover{ text-decoration: underline; color : #DD6900; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ .nav { font-weight: bold; font-size: 11px; color : #000000;} a.nav { text-decoration: none; color : #006699; } a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ .topictitle,h1,h2 { font-weight: bold; font-size: 11px; color : #000000; } a.topictitle:link { text-decoration: none; color : #006699; } a.topictitle:visited { text-decoration: none; color : #5493B4; } a.topictitle:hover { text-decoration: underline; color : #DD6900; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ .name { font-size : 11px; color : #000000;} /* Location, number of posts, post date etc */ .postdetails { font-size : 10px; color : #000000; } /* The content of the posts (body of text) */ .postbody { font-size : 12px; line-height: 18px} a.postlink:link { text-decoration: none; color : #006699 } a.postlink:visited { text-decoration: none; color : #5493B4; } a.postlink:hover { text-decoration: underline; color : #DD6900} /* Quote & Code blocks */ .code { font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ .copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} a.copyright { color: #444444; text-decoration: none;} a.copyright:hover { color: #000000; text-decoration: underline;} /* Form elements */ input,textarea, select { color : #000000; font: normal 11px Verdana, Arial, Helvetica, sans-serif; border-color : #000000; } /* The text input fields background colour */ input.post, textarea.post, select { background-color : #FFFFFF; } input { text-indent : 2px; } /* The buttons used for bbCode styling in message post */ input.button { background-color : #EFEFEF; color : #000000; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; } /* The main submit button option */ input.mainoption { background-color : #FAFAFA; font-weight : bold; } /* None-bold submit button */ input.liteoption { background-color : #FAFAFA; font-weight : normal; } /* This is the line in the posting page which shows the rollover help line. This is actually a text box, but if set to be the same colour as the background no one will know ;) */ .helpline { background-color: #DEE3E7; border-style: none; } /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ @import url("templates/subSilver/formIE.css"); --> </style> </head> <body bgcolor="#FFFFFF" text="#000000"> <table class="bodyline" cellpadding="8" cellspacing="0" width="90%" align="center"> <tr> <td colspan="2"><span class="postbody"><span style="font-size: 18px; line-height: normal">Changed/Added/Removed files between <span style="color: red"><span style="font-weight: bold">2.7.5</span></span> and <span style="color: blue"><span style="font-weight: bold">2.7.5-pl4</span></span></span> <br /> <br /> Note: The following instructions are part of our global upgrade procedure described in the <a href="http://www.mx-system.com/forum/viewtopic.php?t=1224#upgrade" target="_blank" class="postlink">Release Notes</a>! <br /> <br /> <br /> <ol type="1"><li>Please, extract the <span style="text-decoration: underline">latest distributed ZIP</span> and copy/upload into place the following new/changed files: <br /> <br /> COPY common.php <br /> COPY index.php <br /> COPY login.php <br /> COPY mx_online.php <br /> COPY admin/admin_mx_block.php <br /> COPY admin/admin_mx_gen_cache.php <br /> COPY admin/admin_mx_meta.php <br /> COPY admin/admin_mx_module.php <br /> COPY admin/admin_mx_page.php <br /> COPY cache/mx_cache.php <br /> COPY includes/mx_functions.php <br /> COPY includes/page_header.php <br /> COPY language/lang_english/lang_admin.php <br /> COPY language/lang_english/lang_main.php <br /> COPY language/lang_english/lang_meta.php <br /> </ol> </td> </tr> </table> </body> </html> --- NEW FILE: mx_upgrade_changes_between_2.7.5-pl4_and_2.7.6.htm --- <html> <head> <title>mxBB-Portal :: Upgrade - readme</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <!-- link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" --> <style type="text/css"> <!-- /* The original subSilver Theme for phpBB version 2+ Created by subBlue design http://www.subBlue.com NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 theme administration centre. When you have finalised your style you could cut the final CSS code and place it in an external file, deleting this section to save bandwidth. */ /* General page style. The scroll bar colours only visible in IE5.5+ */ body { background-color: #E5E5E5; scrollbar-face-color: #DEE3E7; scrollbar-highlight-color: #FFFFFF; scrollbar-shadow-color: #DEE3E7; scrollbar-3dlight-color: #D1D7DC; scrollbar-arrow-color: #006699; scrollbar-track-color: #EFEFEF; scrollbar-darkshadow-color: #98AAB1; } /* General font families for common tags */ font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif } a:link,a:active,a:visited { color : #006699; } a:hover { text-decoration: underline; color : #DD6900; } hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ .bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; } /* This is the outline round the main forum tables */ .forumline { background-color: #FFFFFF; border: 2px #006699 solid; } /* Main table cell colours and backgrounds */ td.row1 { background-color: #EFEFEF; } td.row2 { background-color: #DEE3E7; } td.row3 { background-color: #D1D7DC; } /* This is for the table cell above the Topics, Post & Last posts on the index.php page By default this is the fading out gradiated silver background. However, you could replace this with a bitmap specific for each forum */ td.rowpic { background-color: #FFFFFF; background-image: url(templates/subSilver/images/cellpic2.jpg); background-repeat: repeat-y; } /* Header cells - the blue and silver gradient backgrounds */ th { color: #FFA34F; font-size: 11px; font-weight : bold; background-color: #006699; height: 25px; background-image: url(templates/subSilver/images/cellpic3.gif); } td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { background-image: url(templates/subSilver/images/cellpic1.gif); background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px; } /* Setting additional nice inner borders for the main table cells. The names indicate which sides the border will be on. Don't worry if you don't understand this, just ignore it :-) */ td.cat,td.catHead,td.catBottom { height: 29px; border-width: 0px 0px 0px 0px; } th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; } td.row3Right,td.spaceRow { background-color: #D1D7DC; border: #FFFFFF; border-style: solid; } th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ .maintitle { font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; text-decoration: none; line-height : 120%; color : #000000; } /* General text */ .gen { font-size : 12px; } .genmed { font-size : 11px; } .gensmall { font-size : 10px; } .gen,.genmed,.gensmall { color : #000000; } a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; } a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #DD6900; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ .mainmenu { font-size : 11px; color : #000000 } a.mainmenu { text-decoration: none; color : #006699; } a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } /* Forum category titles */ .cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} a.cattitle { text-decoration: none; color : #006699; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ .forumlink { font-weight: bold; font-size: 12px; color : #006699; } a.forumlink { text-decoration: none; color : #006699; } a.forumlink:hover{ text-decoration: underline; color : #DD6900; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ .nav { font-weight: bold; font-size: 11px; color : #000000;} a.nav { text-decoration: none; color : #006699; } a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ .topictitle,h1,h2 { font-weight: bold; font-size: 11px; color : #000000; } a.topictitle:link { text-decoration: none; color : #006699; } a.topictitle:visited { text-decoration: none; color : #5493B4; } a.topictitle:hover { text-decoration: underline; color : #DD6900; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ .name { font-size : 11px; color : #000000;} /* Location, number of posts, post date etc */ .postdetails { font-size : 10px; color : #000000; } /* The content of the posts (body of text) */ .postbody { font-size : 12px; line-height: 18px} a.postlink:link { text-decoration: none; color : #006699 } a.postlink:visited { text-decoration: none; color : #5493B4; } a.postlink:hover { text-decoration: underline; color : #DD6900} /* Quote & Code blocks */ .code { font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ .copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} a.copyright { color: #444444; text-decoration: none;} a.copyright:hover { color: #000000; text-decoration: underline;} /* Form elements */ input,textarea, select { color : #000000; font: normal 11px Verdana, Arial, Helvetica, sans-serif; border-color : #000000; } /* The text input fields background colour */ input.post, textarea.post, select { background-color : #FFFFFF; } input { text-indent : 2px; } /* The buttons used for bbCode styling in message post */ input.button { background-color : #EFEFEF; color : #000000; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; } /* The main submit button option */ input.mainoption { background-color : #FAFAFA; font-weight : bold; } /* None-bold submit button */ input.liteoption { background-color : #FAFAFA; font-weight : normal; } /* This is the line in the posting page which shows the rollover help line. This is actually a text box, but if set to be the same colour as the background no one will know ;) */ .helpline { background-color: #DEE3E7; border-style: none; } /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ @import url("templates/subSilver/formIE.css"); --> </style> </head> <body bgcolor="#FFFFFF" text="#000000"> <table class="bodyline" cellpadding="8" cellspacing="0" width="90%" align="center"> <tr> <td colspan="2"><span class="postbody"><span style="font-size: 18px; line-height: normal">Changed/Added/Removed files between <span style="color: red"><span style="font-weight: bold">2.7.5-pl4</span></span> and <span style="color: blue"><span style="font-weight: bold">2.7.6</span></span></span> <br /> <br /> Note: The following instructions are part of our global upgrade procedure described in the <a href="http://www.mx-system.com/forum/viewtopic.php?t=1224#upgrade" target="_blank" class="postlink">Release Notes</a>! <br /> <br /> <br /> <ol type="1"><li>Using your FTP client of choice (or File Manager, if your webserver is local), point yourself into the directory where your mxBB-Portal is installed and remove the following files: <br /> <br /> <span style="color: red">* WARNING: Do NOT confuse with the same/similar files/folders in the phpBB directory !!!</span> <br /> <br /> DELETE more_smilies.php <br /> DELETE mx_meta.inc.distrib <br /> DELETE templates/subSilver/bbcode.tpl <br /> DELETE templates/subSilver/confirm_body.tpl <br /> DELETE templates/subSilver/formIE.css <br /> DELETE templates/subSilver/jumpbox.tpl <br /> DELETE templates/subSilver/login_body.tpl <br /> DELETE templates/subSilver/message_body.tpl <br /> DELETE templates/subSilver/mx_posting_smilies.tpl <br /> DELETE templates/subSilver/overall_header_mxstyle.tpl <br /> DELETE templates/subSilver/overall_header_mxstyle_toPHPBB.tpl <br /> DELETE templates/subSilver/overall_header_phpbbstyle.tpl <br /> DELETE templates/subSilver/overall_header_phpbbstyle_toPHPBB.tpl <br /> DELETE templates/subSilver/posting_body.tpl <br /> DELETE templates/subSilver/posting_smilies.tpl <br /> DELETE templates/subSilver/SubSilver.css <br /> DELETE templates/subSilver/admin/admin_message_body.tpl <br /> <br /> <li>Now extract the <span style="text-decoration: underline">latest distributed ZIP</span> and copy/upload into place the following new/changed files: <br /> <br /> COPY common.php <br /> COPY extension.inc <br /> COPY index.php <br /> COPY mx_login.php <br /> COPY mx_menu_nav.php <br /> COPY mx_online.php <br /> COPY mx_poll.php <br /... [truncated message content] |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:07
|
Update of /cvsroot/mxbb/core27x In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016 Added Files: common.php extension.inc favicon.ico index.php login.php mx_announce.php mx_forum.php mx_google.php mx_language.php mx_login.php mx_menu_nav.php mx_meta.inc mx_multiple_blocks.php mx_online.php mx_poll.php mx_theme.php Log Message: Initital core 2.7.x commit :-) --- NEW FILE: mx_poll.php --- <?php /*************************************************************************** * mx-poll.php * ------------------- * begin : April, 2002 * copyright : (C) 2002 MX-System * email : su...@mx... * * $Id: mx_poll.php,v 1.1 2005/05/06 06:47:57 jonohlsson Exp $ * ***************************************************************************/ if( !defined('IN_PORTAL') ) { die("Hacking attempt"); } // -------------------------------------------------------------------------------- // Poll Block - based on posting.php and viewtopic.php from phpBB 2.0.13 (see below) // // Please, do not reformat the code nor touch indentation. It has been left as // close to the original code as possible, intentionally. ;-) // -------------------------------------------------------------------------------- $block_config = read_block_config($block_id); $title = $block_config[$block_id]['block_title']; $topic_id = $block_config[$block_id]['Poll_Display']['parameter_value']; $forum_lst_poll = $block_config[$block_id]['poll_forum']['parameter_value']; $auth_data_sql_poll = get_auth_forum(); if ( empty($forum_lst_poll) ) { $forum_lst_poll = $auth_data_sql_poll; } // // store current page to generate correct url // $current_page = $mx_request_vars->request('page', MX_TYPE_INT, 1); if ( $topic_id == 0 ) { $sql = "SELECT vote.topic_id FROM " . VOTE_DESC_TABLE . " vote, " . TOPICS_TABLE . " topic WHERE vote.topic_id = topic.topic_id AND forum_id IN ( $forum_lst_poll ) AND forum_id IN ( $auth_data_sql_poll ) AND (vote_start + vote_length > " . time() . " OR vote_length = 0) ORDER BY vote_start DESC "; if ( !( $result = $db->sql_query($sql) ) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain vote data', '', __LINE__, __FILE__, $sql); } if ( $poll_info = $db->sql_fetchrow($result) ) { $topic_id = $poll_info['topic_id']; } } // -------------------------------------------------------------------------------- // The following code is based on posting.php (around line 453) from phpBB 2.0.13 // $vote_id_name = 'vote_id_' . $topic_id; // // Vote in a poll // if ( !empty($HTTP_POST_VARS[$vote_id_name]) ) { $vote_option_id = intval($HTTP_POST_VARS[$vote_id_name]); $sql = "SELECT vd.vote_id FROM " . VOTE_DESC_TABLE . " vd, " . VOTE_RESULTS_TABLE . " vr WHERE vd.topic_id = $topic_id AND vr.vote_id = vd.vote_id AND vr.vote_option_id = $vote_option_id GROUP BY vd.vote_id"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain vote data for this topic', '', __LINE__, __FILE__, $sql); } if ( $vote_info = $db->sql_fetchrow($result) ) { $vote_id = $vote_info['vote_id']; $sql = "SELECT * FROM " . VOTE_USERS_TABLE . " WHERE vote_id = $vote_id AND vote_user_id = " . $userdata['user_id']; if ( !($result2 = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain user vote data for this topic', '', __LINE__, __FILE__, $sql); } if ( !($row = $db->sql_fetchrow($result2)) ) { $sql = "UPDATE " . VOTE_RESULTS_TABLE . " SET vote_result = vote_result + 1 WHERE vote_id = $vote_id AND vote_option_id = $vote_option_id"; if ( !$db->sql_query($sql, BEGIN_TRANSACTION) ) { mx_message_die(GENERAL_ERROR, 'Could not update poll result', '', __LINE__, __FILE__, $sql); } $sql = "INSERT INTO " . VOTE_USERS_TABLE . " (vote_id, vote_user_id, vote_user_ip) VALUES ($vote_id, " . $userdata['user_id'] . ", '$user_ip')"; if ( !$db->sql_query($sql, END_TRANSACTION) ) { mx_message_die(GENERAL_ERROR, "Could not insert user_id for poll", "", __LINE__, __FILE__, $sql); } $message = $lang['Vote_cast']; } else { $message = $lang['Already_voted']; } $db->sql_freeresult($result2); } else { $message = $lang['No_vote_option']; } $db->sql_freeresult($result); $template->assign_vars(array( 'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid(PORTAL_URL . "index.$phpEx?page=$current_page&vote=viewresult") . '">') ); $message .= '<br /><br />' . sprintf($lang['Click_view_voted'], '<a href="' . append_sid(PORTAL_URL . "index.$phpEx?page=$current_page&vote=viewresult") . '">', '</a>'); mx_block_message($lang['Surveys/Polls'], $message); return; } // -------------------------------------------------------------------------------- // The following code is based on viewtopic.php (around line 674) from phpBB 2.0.13 // // // Does this topic contain a poll? // //if ( !empty($forum_topic_data['topic_vote']) ) { $s_hidden_fields = ''; $sql = "SELECT vd.vote_id, vd.vote_text, vd.vote_start, vd.vote_length, vr.vote_option_id, vr.vote_option_text, vr.vote_result FROM " . VOTE_DESC_TABLE . " vd, " . VOTE_RESULTS_TABLE . " vr WHERE vd.topic_id = $topic_id AND vr.vote_id = vd.vote_id ORDER BY vr.vote_option_id ASC"; if ( !($result = $db->sql_query($sql)) ) { return; //message_die(GENERAL_ERROR, "Could not obtain vote data for this topic", '', __LINE__, __FILE__, $sql); } if ( $vote_info = $db->sql_fetchrowset($result) ) { $db->sql_freeresult($result); $vote_options = count($vote_info); $vote_id = $vote_info[0]['vote_id']; $vote_title = $vote_info[0]['vote_text']; $sql = "SELECT vote_id FROM " . VOTE_USERS_TABLE . " WHERE vote_id = $vote_id AND vote_user_id = " . $userdata['user_id']; if ( !($result = $db->sql_query($sql)) ) { return; //message_die(GENERAL_ERROR, "Could not obtain user vote data for this topic", '', __LINE__, __FILE__, $sql); } $user_voted = ( $row = $db->sql_fetchrow($result) ) ? TRUE : 0; $db->sql_freeresult($result); if ( ( isset($HTTP_GET_VARS['vote']) || isset($HTTP_POST_VARS['vote']) ) || ( !$userdata['session_logged_in'] ) ) { $view_result = ( ( ( ( isset($HTTP_GET_VARS['vote']) ) ? $HTTP_GET_VARS['vote'] : $HTTP_POST_VARS['vote'] ) == 'viewresult' ) || ( !$userdata['session_logged_in'] ) ) ? TRUE : 0; } else { $view_result = 0; } $poll_expired = ( $vote_info[0]['vote_length'] ) ? ( ( $vote_info[0]['vote_start'] + $vote_info[0]['vote_length'] < time() ) ? TRUE : 0 ) : 0; if ( $user_voted || $view_result || $poll_expired ) { $template->set_filenames(array( 'pollbox' => 'mx_poll_result.tpl') ); $vote_results_sum = 0; for($i = 0; $i < $vote_options; $i++) { $vote_results_sum += $vote_info[$i]['vote_result']; } $vote_graphic = 0; $vote_graphic_max = count($images['voting_graphic']); for($i = 0; $i < $vote_options; $i++) { $vote_percent = ( $vote_results_sum > 0 ) ? $vote_info[$i]['vote_result'] / $vote_results_sum : 0; $vote_graphic_length = is_numeric($block_size) ? round($vote_percent * ( $block_size - 50 )) : $vote_percent * 400; $vote_graphic_img = $images['voting_graphic'][$vote_graphic]; $vote_graphic = ($vote_graphic < $vote_graphic_max - 1) ? $vote_graphic + 1 : 0; if ( count($orig_word) ) { $vote_info[$i]['vote_option_text'] = preg_replace($orig_word, $replacement_word, $vote_info[$i]['vote_option_text']); } $template->assign_block_vars("poll_option", array( 'POLL_OPTION_CAPTION' => $vote_info[$i]['vote_option_text'], 'POLL_OPTION_RESULT' => $vote_info[$i]['vote_result'], 'POLL_OPTION_PERCENT' => sprintf('%.1d%%', ( $vote_percent * 100 )), 'POLL_OPTION_IMG' => $vote_graphic_img, 'POLL_OPTION_IMG_WIDTH' => $vote_graphic_length) ); } $template->assign_vars(array( 'L_TITLE' => $lang['Surveys/Polls'], 'U_PHPBB_ROOT_PATH' => PHPBB_URL, 'TEMPLATE_ROOT_PATH' => TEMPLATE_ROOT_PATH, 'L_TOTAL_VOTES' => $lang['Total_votes'], 'TOTAL_VOTES' => $vote_results_sum) ); } else { $template->set_filenames(array( 'pollbox' => 'mx_poll_ballot.tpl') ); for($i = 0; $i < $vote_options; $i++) { if ( count($orig_word) ) { $vote_info[$i]['vote_option_text'] = preg_replace($orig_word, $replacement_word, $vote_info[$i]['vote_option_text']); } $template->assign_block_vars("poll_option", array( 'VOTE_ID' => $vote_id_name, 'POLL_OPTION_ID' => $vote_info[$i]['vote_option_id'], 'POLL_OPTION_CAPTION' => $vote_info[$i]['vote_option_text']) ); } $template->assign_vars(array( 'BLOCK_SIZE' => $block_size, 'L_TITLE' => $lang['Surveys/Polls'], 'L_SUBMIT_VOTE' => $lang['Submit_vote'], 'L_VIEW_RESULTS' => $lang['View_results'], 'U_VIEW_RESULTS' => append_sid(PORTAL_URL . "index.$phpEx?page=$current_page&vote=viewresult"), 'U_URL' => append_sid(PHPBB_URL . "viewtopic.$phpEx?t=$topic_id")) ); $s_hidden_fields = '<input type="hidden" name="topic_id" value="' . $topic_id . '" /><input type="hidden" name="mode" value="vote" />'; } if ( count($orig_word) ) { $vote_title = preg_replace($orig_word, $replacement_word, $vote_title); } $s_hidden_fields .= '<input type="hidden" name="sid" value="' . $userdata['session_id'] . '" />'; $template->assign_vars(array( 'BLOCK_SIZE' => ( !empty($block_size) ? $block_size : '100%' ), 'U_PHPBB_ROOT_PATH' => PHPBB_URL, 'POLL_QUESTION' => $vote_title, 'S_HIDDEN_FIELDS' => ( !empty($s_hidden_fields) ? $s_hidden_fields : '' ), 'S_POLL_ACTION' => append_sid(PORTAL_URL . "index.$phpEx?page=$current_page")) ); $template->pparse('pollbox'); } } ?> --- NEW FILE: login.php --- <?php /*************************************************************************** * login.php * ------------------- * begin : Saturday, Feb 13, 2001 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: login.php,v 1.1 2005/05/06 06:47:57 jonohlsson Exp $ * * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ // // Allow people to reach login page if // board is shut down // define("IN_LOGIN", true); define('IN_PORTAL', true); $mx_root_path = './'; include($mx_root_path . 'extension.inc'); include($mx_root_path . 'common.'.$phpEx); // // Set page ID for session management // $userdata = session_pagestart($user_ip, PAGE_LOGIN); mx_init_userprefs($userdata); // // End session management // // session id check if (!empty($HTTP_POST_VARS['sid']) || !empty($HTTP_GET_VARS['sid'])) { $sid = (!empty($HTTP_POST_VARS['sid'])) ? $HTTP_POST_VARS['sid'] : $HTTP_GET_VARS['sid']; } else { $sid = ''; } if( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) || isset($HTTP_POST_VARS['logout']) || isset($HTTP_GET_VARS['logout']) ) { if( ( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) ) && !$userdata['session_logged_in'] ) { $username = isset($HTTP_POST_VARS['username']) ? phpbb_clean_username($HTTP_POST_VARS['username']) : ''; $password = isset($HTTP_POST_VARS['password']) ? $HTTP_POST_VARS['password'] : ''; $sql = "SELECT user_id, username, user_password, user_active, user_level FROM " . USERS_TABLE . " WHERE username = '" . str_replace("\\'", "''", $username) . "'"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Error in obtaining userdata', '', __LINE__, __FILE__, $sql); } if( $row = $db->sql_fetchrow($result) ) { if( $row['user_level'] != ADMIN && $board_config['board_disable'] ) { mx_redirect(append_sid("index.$phpEx", true)); } else { if( md5($password) == $row['user_password'] && $row['user_active'] ) { $autologin = ( isset($HTTP_POST_VARS['autologin']) ) ? TRUE : 0; $session_id = session_begin($row['user_id'], $user_ip, PAGE_INDEX, FALSE, $autologin); if( $session_id ) { $url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx"; mx_redirect(append_sid($url, true)); } else { mx_message_die(CRITICAL_ERROR, "Couldn't start session : login", "", __LINE__, __FILE__); } } else { $redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : ''; $redirect = str_replace('?', '&', $redirect); if (strstr(urldecode($redirect), "\n") || strstr(urldecode($redirect), "\r")) { mx_message_die(GENERAL_ERROR, 'Tried to redirect to potentially insecure url.'); } $template->assign_vars(array( 'META' => "<meta http-equiv=\"refresh\" content=\"3;url=login.$phpEx?redirect=$redirect\">") ); $message = $lang['Error_login'] . '<br /><br />' . sprintf($lang['Click_return_login'], "<a href=\"login.$phpEx?redirect=$redirect\">", '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>'); mx_message_die(GENERAL_MESSAGE, $message); } } } else { $redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : ""; $redirect = str_replace("?", "&", $redirect); if (strstr(urldecode($redirect), "\n") || strstr(urldecode($redirect), "\r")) { mx_message_die(GENERAL_ERROR, 'Tried to redirect to potentially insecure url.'); } $template->assign_vars(array( 'META' => "<meta http-equiv=\"refresh\" content=\"3;url=login.$phpEx?redirect=$redirect\">") ); $message = $lang['Error_login'] . '<br /><br />' . sprintf($lang['Click_return_login'], "<a href=\"login.$phpEx?redirect=$redirect\">", '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>'); mx_message_die(GENERAL_MESSAGE, $message); } } else if( ( isset($HTTP_GET_VARS['logout']) || isset($HTTP_POST_VARS['logout']) ) && $userdata['session_logged_in'] ) { if( $userdata['session_logged_in'] ) { session_end($userdata['session_id'], $userdata['user_id']); } if (!empty($HTTP_POST_VARS['redirect']) || !empty($HTTP_GET_VARS['redirect'])) { $url = (!empty($HTTP_POST_VARS['redirect'])) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : htmlspecialchars($HTTP_GET_VARS['redirect']); $url = str_replace('&', '&', $url); mx_redirect(append_sid($url, true)); } else { mx_redirect(append_sid("index.$phpEx", true)); } } else { $url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx"; mx_redirect(append_sid($url, true)); } } else { // // Do a full login page dohickey if // user not already logged in // if( !$userdata['session_logged_in'] ) { $page_title = $lang['Login']; include($mx_root_path . 'includes/page_header.'.$phpEx); $template->set_filenames(array( 'body' => 'login_body.tpl') ); if( isset($HTTP_POST_VARS['redirect']) || isset($HTTP_GET_VARS['redirect']) ) { $forward_to = $HTTP_SERVER_VARS['QUERY_STRING']; if( preg_match("/^redirect=([a-z0-9\.#\/\?&=\+\-_]+)/si", $forward_to, $forward_matches) ) { $forward_to = ( !empty($forward_matches[3]) ) ? $forward_matches[3] : $forward_matches[1]; $forward_match = explode('&', $forward_to); if(count($forward_match) > 1) { $forward_page = ''; for($i = 1; $i < count($forward_match); $i++) { if( !ereg("sid=", $forward_match[$i]) ) { if( $forward_page != '' ) { $forward_page .= '&'; } $forward_page .= $forward_match[$i]; } } $forward_page = $forward_match[0] . '?' . $forward_page; } else { $forward_page = $forward_match[0]; } } } else { $forward_page = ''; } $username = ( $userdata['user_id'] != ANONYMOUS ) ? $userdata['username'] : ''; $s_hidden_fields = '<input type="hidden" name="redirect" value="' . $forward_page . '" />'; make_jumpbox($phpbb_root_path . 'viewforum.'.$phpEx, $forum_id); $template->assign_vars(array( 'USERNAME' => $username, 'L_ENTER_PASSWORD' => $lang['Enter_password'], 'L_SEND_PASSWORD' => $lang['Forgotten_password'], 'U_SEND_PASSWORD' => append_sid($phpbb_root_path . "profile.$phpEx?mode=sendpassword"), 'S_HIDDEN_FIELDS' => $s_hidden_fields) ); $template->pparse('body'); include($mx_root_path . 'includes/page_tail.'.$phpEx); } else { mx_redirect(append_sid("index.$phpEx", true)); } } ?> --- NEW FILE: favicon.ico --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mx_online.php --- <?php /** ------------------------------------------------------------------------ * subject : mxBB-Portal, CMS & portal * begin : june, 2002 * copyright : (C) 2002-2005 mxBB-Portal * email : jon...@ho... * project site : www.mx-system.com * * description : Who's Online Block. * ------------------------------------------------------------------------- * $Id: mx_online.php,v 1.1 2005/05/06 06:47:57 jonohlsson Exp $ */ /** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */ if( !defined('IN_PORTAL') ) { die("Hacking attempt"); } // ================================================================================ // The following code is backported from includes/page_header.php (phpBB 2.0.13) // ================================================================================ // // Get basic (usernames + totals) online // situation // $logged_visible_online = 0; $logged_hidden_online = 0; $guests_online = 0; $online_userlist = ''; $l_online_users = ''; //if (defined('SHOW_ONLINE')) { $sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_level, s.session_logged_in, s.session_ip FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s WHERE u.user_id = s.session_user_id AND s.session_time >= ".( time() - 300 ) . " ORDER BY u.username ASC, s.session_ip ASC"; if( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not obtain user/online information', '', __LINE__, __FILE__, $sql); } $userlist_ary = array(); $userlist_visible = array(); $prev_user_id = 0; $prev_user_ip = $prev_session_ip = ''; while( $row = $db->sql_fetchrow($result) ) { // User is logged in and therefor not a guest if ( $row['session_logged_in'] ) { // Skip multiple sessions for one user if ( $row['user_id'] != $prev_user_id ) { $style_color = ''; if ( $row['user_level'] == ADMIN ) { $row['username'] = '<b>' . $row['username'] . '</b>'; $style_color = 'style="color:#' . $theme['fontcolor3'] . '"'; } else if ( $row['user_level'] == MOD ) { $row['username'] = '<b>' . $row['username'] . '</b>'; $style_color = 'style="color:#' . $theme['fontcolor2'] . '"'; } if ( $row['user_allow_viewonline'] ) { $user_online_link = '<a href="' . append_sid(PHPBB_URL."profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'>' . $row['username'] . '</a>'; $logged_visible_online++; } else { $user_online_link = '<a href="' . append_sid(PHPBB_URL."profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'><i>' . $row['username'] . '</i></a>'; $logged_hidden_online++; } if ( $row['user_allow_viewonline'] || $userdata['user_level'] == ADMIN ) { $online_userlist .= ( $online_userlist != '' ) ? ', ' . $user_online_link : $user_online_link; } } $prev_user_id = $row['user_id']; } else { // Skip multiple sessions for one user if ( $row['session_ip'] != $prev_session_ip ) { $guests_online++; } } $prev_session_ip = $row['session_ip']; } $db->sql_freeresult($result); if ( empty($online_userlist) ) { $online_userlist = $lang['None']; } $online_userlist = ( ( isset($forum_id) ) ? $lang['Browsing_forum'] : $lang['Registered_users'] ) . ' ' . $online_userlist; $total_online_users = $logged_visible_online + $logged_hidden_online + $guests_online; if ( $total_online_users > $board_config['record_online_users']) { $board_config['record_online_users'] = $total_online_users; $board_config['record_online_date'] = time(); $sql = "UPDATE " . CONFIG_TABLE . " SET config_value = '$total_online_users' WHERE config_name = 'record_online_users'"; if ( !$db->sql_query($sql) ) { message_die(GENERAL_ERROR, 'Could not update online user record (nr of users)', '', __LINE__, __FILE__, $sql); } $sql = "UPDATE " . CONFIG_TABLE . " SET config_value = '" . $board_config['record_online_date'] . "' WHERE config_name = 'record_online_date'"; if ( !$db->sql_query($sql) ) { message_die(GENERAL_ERROR, 'Could not update online user record (date)', '', __LINE__, __FILE__, $sql); } } if ( $total_online_users == 0 ) { $l_t_user_s = $lang['Online_users_zero_total']; } else if ( $total_online_users == 1 ) { $l_t_user_s = $lang['Online_user_total']; } else { $l_t_user_s = $lang['Online_users_total']; } if ( $logged_visible_online == 0 ) { $l_r_user_s = $lang['Reg_users_zero_total']; } else if ( $logged_visible_online == 1 ) { $l_r_user_s = $lang['Reg_user_total']; } else { $l_r_user_s = $lang['Reg_users_total']; } if ( $logged_hidden_online == 0 ) { $l_h_user_s = $lang['Hidden_users_zero_total']; } else if ( $logged_hidden_online == 1 ) { $l_h_user_s = $lang['Hidden_user_total']; } else { $l_h_user_s = $lang['Hidden_users_total']; } if ( $guests_online == 0 ) { $l_g_user_s = $lang['Guest_users_zero_total']; } else if ( $guests_online == 1 ) { $l_g_user_s = $lang['Guest_user_total']; } else { $l_g_user_s = $lang['Guest_users_total']; } $l_online_users = sprintf($l_t_user_s, $total_online_users); $l_online_users .= sprintf($l_r_user_s, $logged_visible_online); $l_online_users .= sprintf($l_h_user_s, $logged_hidden_online); $l_online_users .= sprintf($l_g_user_s, $guests_online); } // ================================================================================ // The following code is backported from index.php (phpBB 2.0.13) // ================================================================================ // // If you don't use these stats on your index you may want to consider // removing them // $total_posts = get_db_stat('postcount'); $total_users = get_db_stat('usercount'); $newest_userdata = get_db_stat('newestuser'); $newest_user = $newest_userdata['username']; $newest_uid = $newest_userdata['user_id']; if( $total_posts == 0 ) { $l_total_post_s = $lang['Posted_articles_zero_total']; } else if( $total_posts == 1 ) { $l_total_post_s = $lang['Posted_article_total']; } else { $l_total_post_s = $lang['Posted_articles_total']; } if( $total_users == 0 ) { $l_total_user_s = $lang['Registered_users_zero_total']; } else if( $total_users == 1 ) { $l_total_user_s = $lang['Registered_user_total']; } else { $l_total_user_s = $lang['Registered_users_total']; } // ================================================================================ // Send our Who's Online block to the browser // ================================================================================ $template->set_filenames(array( 'body_online' => 'mx_online.tpl') ); $template->assign_vars(array( // // Template variables particular to the mxBB Online Block. // 'BLOCK_SIZE' => $block_size, 'U_PHPBB_ROOT_PATH' => PHPBB_URL, 'TEMPLATE_ROOT_PATH' => TEMPLATE_ROOT_PATH, // // Template variables part of phpBB includes/page_header.php // 'TOTAL_USERS_ONLINE' => $l_online_users, 'LOGGED_IN_USER_LIST' => $online_userlist, 'RECORD_USERS' => sprintf($lang['Record_online_users'], $board_config['record_online_users'], create_date($board_config['default_dateformat'], $board_config['record_online_date'], $board_config['board_timezone'])), 'L_WHO_IS_ONLINE' => $lang['Who_is_Online'], 'L_WHOSONLINE_ADMIN' => sprintf($lang['Admin_online_color'], '<span style="color:#' . $theme['fontcolor3'] . '">', '</span>'), 'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '<span style="color:#' . $theme['fontcolor2'] . '">', '</span>'), 'U_VIEWONLINE' => append_sid(PHPBB_URL.'viewonline.'.$phpEx), // // Template variables part of phpBB index.php // 'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts), 'TOTAL_USERS' => sprintf($l_total_user_s, $total_users), 'NEWEST_USER' => sprintf($lang['Newest_user'], '<a href="' . append_sid(PHPBB_URL."profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">', $newest_user, '</a>'), )); $template->pparse('body_online'); ?> --- NEW FILE: index.php --- <?php /*************************************************************************** * mx-portal.php * ------------------- * begin : Juillet, 2002 * copyright : (C) 2002 MX-System * email : su...@mx... * * $Id: index.php,v 1.1 2005/05/06 06:47:57 jonohlsson Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ define('IN_PORTAL', 1); $mx_root_path = './'; include_once($mx_root_path . 'extension.inc'); include_once($mx_root_path . 'common.'.$phpEx); // // Start session management // $userdata = session_pagestart($user_ip, PAGE_INDEX); mx_init_userprefs($userdata); // // // $cache_dir = $mx_root_path . 'cache/'; if ( $HTTP_SESSION_VARS['cache_read'] != TRUE && file_exists($cache_dir . 'block_config.xml') ) { include_once($mx_root_path . "cache/mx_cache.php"); // file of easy_parser class read_cache_config(); } // // End session management // $view_page = FALSE; // // Load default header // $page_id = $mx_request_vars->request('page', MX_TYPE_INT, 1); $page_row = get_info(PAGE_TABLE, "page_id", $page_id); $page_title .= $page_row['page_name']; include($mx_root_path . 'includes/page_header.'.$phpEx); $is_auth_ary = array(); $is_auth_ary = page_auth(AUTH_VIEW, $userdata, $page_row['auth_view'], $page_row['auth_view_group'] ); if ( ! $is_auth_ary['auth_view'] ) { $message = empty($lang['Page_Not_Authorised']) ? "Sorry, but you don't have privilege to access this page." : $lang['Page_Not_Authorised']; mx_message_die(GENERAL_MESSAGE, $message, "", __LINE__, __FILE__, ""); } if ( !empty($HTTP_SESSION_VARS['page_column_' . $page_id]) ) { $column_rows = $HTTP_SESSION_VARS['page_column_' . $page_id]; $total_column = count($HTTP_SESSION_VARS['page_column_' . $page_id]); } else { $sql = "SELECT col.column_id, col.column_title, col.column_order, col.column_size FROM " . COLUMN_TABLE . " col WHERE page_id = $page_id ORDER BY column_order"; if( !$q_column = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Could not query column list", "", __LINE__, __FILE__, $sql); } if( $total_column = $db->sql_numrows($q_column) ) { $column_rows = $db->sql_fetchrowset($q_column); } $HTTP_SESSION_VARS['page_column_' . $page_id] = $column_rows; } if ( !empty($HTTP_SESSION_VARS['page_block_' . $page_id]) ) { $block_rows = $HTTP_SESSION_VARS['page_block_' . $page_id]; $total_block = count( $HTTP_SESSION_VARS['page_block_' . $page_id] ); } else { $sql = "SELECT blk.block_id, blk.auth_view_group, blk.auth_edit_group, bct.column_id, module_path, function_file, auth_view FROM " . COLUMN_BLOCK_TABLE . " bct, " . BLOCK_TABLE . " blk, " . FUNCTION_TABLE . " fnc, " . MODULE_TABLE . " modu WHERE blk.function_id = fnc.function_id AND blk.block_id = bct.block_id AND fnc.module_id = modu.module_id ORDER BY column_id, block_order"; // AND bct.column_id = " . $column_rows[$column]['column_id'] . " if( !$q_modules = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Could not query modules information", "", __LINE__, __FILE__, $sql); } if( $total_block = $db->sql_numrows($q_modules) ) { $block_rows = $db->sql_fetchrowset($q_modules); $HTTP_SESSION_VARS['page_block_' . $page_id] = $block_rows; } } ECHO '<table border="0" cellspacing="4" cellpadding="0" width="100%"><tr valign="top">'; for($column = 0; $column < $total_column; $column++) { $block_size = $column_rows[$column]['column_size']; ECHO '<td width="' . $block_size . '" >'; for($block = 0; $block < $total_block; $block++) { if ( $column_rows[$column]['column_id'] == $block_rows[$block]['column_id'] ) { // // Find which blocks are visible for this user // $block_id = $block_rows[$block]['block_id']; $block_row = get_info(BLOCK_TABLE, "block_id", $block_id); $is_auth_ary = array(); $is_auth_ary = block_auth(AUTH_VIEW, $block_id, $userdata, $block_rows[$block], $block_row['auth_view_group']); if ( $is_auth_ary['auth_view'] ) { $template = new Template($template->root, $board_config, $db); $module_root_path = $block_rows[$block]['module_path']; $block_file = $block_rows[$block]['function_file']; include( $module_root_path . $block_file ); } } } // for ... modules ECHO '</td>'; } // for ... column ECHO '</tr></table>'; // // // include($mx_root_path . 'includes/page_tail.'.$phpEx); exit; ?> --- NEW FILE: mx_theme.php --- <?php /*************************************************************************** * mx_theme.php * ------------------- * begin : April, 2002 * copyright : (C) 2002 MX-System * email : su...@mx... * * $Id: mx_theme.php,v 1.1 2005/05/06 06:47:57 jonohlsson Exp $ * ***************************************************************************/ if ( !defined('IN_PORTAL') ) { die("Hacking attempt"); } if( isset($HTTP_POST_VARS['change_default_theme']) && $userdata['user_level'] == ADMIN) { $board_config['default_style'] = ( isset($HTTP_POST_VARS['default_style']) ) ? $HTTP_POST_VARS['default_style'] : $board_config['default_style']; $sql = "UPDATE " . CONFIG_TABLE . " SET config_value = '" . str_replace("\'", "''", $board_config['default_style']) . "' WHERE config_name = 'default_style'"; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Failed to update default style configuration for $config_name", "", __LINE__, __FILE__, $sql); } } if( isset($HTTP_POST_VARS['change_user_theme']) && $userdata['session_logged_in']) { $userdata['user_style'] = ( isset($HTTP_POST_VARS['user_style']) ) ? $HTTP_POST_VARS['user_style'] : $board_config['default_style']; $mx_user_id = $userdata['user_id']; $sql = "UPDATE " . USERS_TABLE . " SET user_style = '" . str_replace("\'", "''", $userdata['user_style']) . "' WHERE user_id = '$mx_user_id'"; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Failed to update user style configuration for $config_name", "", __LINE__, __FILE__, $sql); } } $template->set_filenames(array( "body_theme" => 'mx_theme.tpl') ); if ( $userdata['user_level'] == ADMIN ) { $template->assign_block_vars("switch_is_admin", array( 'L_CHANGE_NOW' => $lang['Change_default_style'], 'STYLE_SELECT' => style_select($board_config['default_style'], 'default_style') )); } if ( $userdata['session_logged_in'] ) { $template->assign_block_vars("switch_is_user", array( 'L_CHANGE_NOW' => $lang['Change_user_style'], 'STYLE_SELECT' => style_select($userdata['user_style'], 'user_style') )); } $template->assign_vars(array( 'ACTION_URL' => $mx_root_path . "index." . $phpEx . "?page=" . $page_id, 'BLOCK_SIZE' => $block_size, 'L_BOARD_STYLE' => $board_config['default_style'], 'L_CHANGE_NOW' => $lang['Change'], 'L_TITLE' => $lang['Theme'], 'L_SUBTITLE' => $lang['SelectTheme']) ); // // Display only when the user is logged in // if( $userdata['session_logged_in'] ) { $template->pparse("body_theme"); } ?> --- NEW FILE: mx_login.php --- <?php /*************************************************************************** * mx_login.php * ------------------- * begin : April, 2002 * copyright : (C) 2002 MX-System * email : su...@mx... * * $Id: mx_login.php,v 1.1 2005/05/06 06:47:57 jonohlsson Exp $ * ***************************************************************************/ if ( !defined('IN_PORTAL') ) { die("Hacking attempt"); } $template->set_filenames(array( "body_login" => 'mx_login.tpl') ); $template->assign_vars(array( 'BLOCK_SIZE' => $block_size, 'S_LOGIN_ACTION' => append_sid('login.'.$phpEx), 'L_USERNAME' => $lang['Username'], 'L_PASSWORD' => $lang['Password'], 'L_LOGIN' => $lang['Login'], 'L_TITLE' => $lang['Login'], 'L_LOG_ME_IN' => $lang['Log_me_in'], 'L_AUTO_LOGIN' => $lang['Log_me_in'], 'L_LOGIN_LOGOUT' => $lang['Login']) ); //if( !$userdata['session_logged_in'] ) //{ $template->assign_block_vars('switch_user_logged_out', array()); $template->pparse("body_login"); //} ?> --- NEW FILE: mx_meta.inc --- <?php $title = "Your sites title"; $author = "Your name or your company name"; $copyright = "Add some copyright notice here"; $keywords = "Add, all, your, keywords, in, here"; $description = "This is the description search engines show when listing your site."; $langcode = "en"; $rating = "general"; $index = "index"; $follow = "follow"; $pragma = "1"; $icon = "favicon.ico"; $header = "<meta name=\"revisit-after\" content=\"7 days\" />"; ?> --- NEW FILE: mx_menu_nav.php --- <?php /*************************************************************************** * mx_menu_nav.php * ------------------- * begin : April, 2002 * copyright : (C) 2002 MX-System * email : su...@mx... * modified : Jaime (ja...@ci...) August 2003 * Changes: : Allow page selection * : Allow Fold/Unfold Category select * * $Id: mx_menu_nav.php,v 1.1 2005/05/06 06:47:57 jonohlsson Exp $ * ***************************************************************************/ $block_config = read_block_config($block_id); $title = $block_config[$block_id]['block_title']; $b_description = $block_config[$block_id]['block_desc']; if ( !empty($HTTP_POST_VARS['show']) || !empty($HTTP_GET_VARS['show']) ) { $show = ( !empty($HTTP_POST_VARS['show']) ) ? $HTTP_POST_VARS['show'] : $HTTP_GET_VARS['show']; } else { // Modded by Jaime - Allow Fold/Unfold Category select $sql1 = "SELECT cat_id FROM " . MENU_CAT_TABLE . " WHERE cat_show = 1 ORDER BY cat_order, cat_id "; if ( !($result_show = $db->sql_query($sql1)) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain folded/unfolded information', '', __LINE__, __FILE__, $sql); } $menu_cat_show = $db->sql_fetchrowset($result_show); for($catrow_count = 0; $catrow_count < count($menu_cat_show); $catrow_count++) { $show .= ',' . $menu_cat_show[$catrow_count]['cat_id']; } $show = substr($show, 1); } // End of modded by Jaime - Allow Fold/Unfold Category select if ( !empty($HTTP_POST_VARS['out']) || !empty($HTTP_GET_VARS['out']) ) { $out = ( !empty($HTTP_POST_VARS['out']) ) ? $HTTP_POST_VARS['out'] : $HTTP_GET_VARS['out']; $show = preg_replace( "/(?:^|,)".$out."(?:,|$)/", ",", $show ); $show = preg_replace( "/,,/" , "" , $show ); $show = preg_replace( "/,$/" , "" , $show ); $show = preg_replace( "/^,/" , "" , $show ); } $show_opt = explode(",", $show); // // Get the current MX page. // $page_id = ( !empty($HTTP_POST_VARS['page']) ) ? $HTTP_POST_VARS['page'] : $HTTP_GET_VARS['page']; if( empty($page_id) ) { $page_id = 1; } $template->set_filenames(array( "body" => 'mx_menu_nav.tpl') ); $is_auth_ary = array(); $is_auth_ary = block_auth(AUTH_EDIT, $block_id , $userdata, $block_config[$block_id]['auth_edit'], $block_config[$block_id]['auth_edit_group'] ); if ( $is_auth_ary['auth_edit'] ) { $s_hidden_fields = '<input type="hidden" name="block_id" value="' . $block_id . '" />'; $s_hidden_fields .= '<input type="hidden" name="portalpage" value="' . $page_id. '" />'; $edit_url = $mx_root_path . "admin/admin_mx_menu.$phpEx?sid=" . $userdata['session_id']; $edit_img = '<input type="image" src="' . PHPBB_URL . $images['icon_edit'] . '" alt="' . $lang['Block_Edit'] . '" title="' . $lang['Block_Edit'] . '"></input>'; $template->assign_block_vars("switch_admin", array()); } else { $template->assign_block_vars("switch_not_admin", array()); } $template->assign_vars(array( 'BLOCK_SIZE' => ( !empty($block_size) ? $block_size : '100%' ), 'L_TITLE' => $title, 'L_DESC' => $b_description, 'S_ACTION' => $edit_url, 'EDIT_IMG' => $edit_img, 'S_HIDDEN_FORM_FIELDS' => $s_hidden_fields )); $sql = "SELECT cat_id, cat_title, cat_desc, bbcode_uid FROM " . MENU_CAT_TABLE . " WHERE block_id = $block_id ORDER BY cat_order, cat_id "; if ( !($result_cat = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain menu navigation configuration', '', __LINE__, __FILE__, $sql); } $menu_cat_config = $db->sql_fetchrowset($result_cat); for($catrow_count = 0; $catrow_count < count($menu_cat_config); $catrow_count++) { $cat_title = $menu_cat_config[$catrow_count]['cat_title']; $cat_id = $menu_cat_config[$catrow_count]['cat_id']; $cat = ( !empty($lang[$cat_title]) ? $lang[$cat_title] : $cat_title); $bbcode_uid = $menu_cat_config[$catrow_count]['bbcode_uid']; $cat = mx_decode($cat, $bbcode_uid); // $cat_icon = ( !empty($menu_nav_config[$row_count]['menu_icon']) ? '<img src="' . PORTAL_URL . 'images/' . $menu_nav_config[$row_count]['menu_icon'] . '" /> ' : '' ); if ( in_array($cat_id, $show_opt) ) { $cat_desc = ''; $cat_icon = '<img border="0" src="' . PORTAL_URL . TEMPLATE_ROOT_PATH . 'images/minus.gif" /> '; $cat_url = append_sid(PORTAL_URL . 'index.'. $phpEx.'?page=' . $page_id. '&show=' . $show . '&out='. $cat_id); } else { if ( !empty($show) ) { $show_lst = $show . "," . $cat_id; } else { $show_lst = $cat_id; } $cat_desc = $menu_cat_config[$catrow_count]['cat_desc']; $cat_desc = mx_decode($cat_desc, $bbcode_uid); $cat_icon = '<img border="0" src="' . PORTAL_URL . TEMPLATE_ROOT_PATH . 'images/plus.gif" /> '; $cat_url = append_sid(PORTAL_URL . 'index.'. $phpEx.'?page=' . $page_id. '&show=' .$show_lst); } $template->assign_block_vars("catrow", array( "CATEGORY" => $cat, "U_URL" => append_sid(PORTAL_URL . 'index.'.$phpEx.'?block_id=' .$block_id), "U_CAT_ICON" => $cat_icon, "U_URL_SHOW" => $cat_url, "DESCRIPTION" => $cat_desc) ); // Modded by Jaime - Allow page select if ( in_array($cat_id, $show_opt) ) { $sql = "SELECT menu_id, cat_id, menu_name, menu_desc, menu_links, block_id, function_id, page_id, auth_view, auth_view_group, link_target, menu_order, bbcode_uid, menu_icon FROM " . MENU_NAV_TABLE . " WHERE cat_id = " . $cat_id . " ORDER BY menu_order, menu_id "; // End of modded by Jaime - Allow page select if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain menu navigation configuration', '', __LINE__, __FILE__, $sql); } $is_auth_ary = array(); $menu_nav_config = $db->sql_fetchrowset($result); for($row_count = 0; $row_count < count($menu_nav_config); $row_count++) { $menu_id = $menu_nav_config[$row_count]['menu_id']; // // Find if user is allowed for view // // mx_message_die(GENERAL_MESSAGE, $menu_nav_config[$row_count]['auth_view_group']); $is_auth_ary = menu_auth(AUTH_VIEW, $menu_id , $userdata, $menu_nav_config[$row_count], $menu_nav_config[$row_count]['auth_view_group']); if ( $is_auth_ary['auth_view'] ) { $row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2']; $action = $menu_nav_config[$row_count]['menu_name']; $action = ( !empty( $lang[$action] ) ? $lang[$action] : $action); $desc = $menu_nav_config[$row_count]['menu_desc']; $desc = ( !empty( $lang[$desc] ) ? $lang[$desc] : $desc); $bbcode_uid = $menu_nav_config[$row_count]['bbcode_uid']; $action = mx_decode($action, $bbcode_uid); $menu_icon = ( !empty($menu_nav_config[$row_count]['menu_icon']) ? '<img src="' . PORTAL_URL . TEMPLATE_ROOT_PATH .'images/' . $menu_nav_config[$row_count]['menu_icon'] . '" alt="' . $desc . '" /> ' : '' ); // Modded by Jaime - Allow select page if ( $menu_nav_config[$row_count]['page_id'] != 0) { $menu_link = append_sid('index.php?page=' . $menu_nav_config[$row_count]['page_id']); } // End modded by Jaime else if ( $menu_nav_config[$row_count]['function_id'] == 0 ) { $menu_link = append_sid($menu_nav_config[$row_count]['menu_links']); } else if ( $menu_nav_config[$row_count]['block_id'] != 0 ) { $menu_link = append_sid('index.php?block=' . $menu_nav_config[$row_count]['block_id']); } else { $sql = "SELECT module_path, function_file FROM " . FUNCTION_TABLE . " fnc, " . MODULE_TABLE . " modu WHERE fnc.function_id = " . $menu_nav_config[$row_count]['function_id'] . " AND fnc.module_id = modu.module_id"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Could not query modules information", "", __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $menu_link = append_sid($row['module_path'] . $row['function_file']); } $link_target = ($menu_nav_config[$row_count]['link_target'] == 0) ? '' : '_blank'; $template->assign_block_vars("catrow.modulerow", array( "ROW_COLOR" => "#" . $row_color, "ROW_CLASS" => $row_class, "MENU_NAME" => $action, "MENU_DESC" => $desc, "U_MENU_MODULE" => $menu_link, "U_LINK_TARGET" => $link_target, "U_MENU_ICON" => $menu_icon) ); } } } } $template->pparse("body"); ?> --- NEW FILE: common.php --- <?php /*************************************************************************** * common.php * ------------------- * begin : Saturday, Feb 23, 2001 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: common.php,v 1.1 2005/05/06 06:47:57 jonohlsson Exp $ * * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ if ( !defined('IN_PORTAL') ) { die("Hacking attempt"); } define('IN_PHPBB', 1); // error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables set_magic_quotes_runtime(0); // Disable magic_quotes_runtime // The following code (unsetting globals) was contributed by Matt Kavanagh // PHP5 with register_long_arrays off? if (!isset($HTTP_POST_VARS) && isset($_POST)) { $HTTP_POST_VARS = $_POST; $HTTP_GET_VARS = $_GET; $HTTP_SERVER_VARS = $_SERVER; $HTTP_COOKIE_VARS = $_COOKIE; $HTTP_ENV_VARS = $_ENV; $HTTP_POST_FILES = $_FILES; // _SESSION is the only superglobal which is conditionally set if (isset($_SESSION)) { $HTTP_SESSION_VARS = $_SESSION; } } if (@phpversion() < '4.0.0') { // PHP3 path; in PHP3, globals are _always_ registered // We 'flip' the array of variables to test like this so that // we can validate later with isset($test[$var]) (no in_array()) $test = array('HTTP_GET_VARS' => NULL, 'HTTP_POST_VARS' => NULL, 'HTTP_COOKIE_VARS' => NULL, 'HTTP_SERVER_VARS' => NULL, 'HTTP_ENV_VARS' => NULL, 'HTTP_POST_FILES' => NULL, 'phpEx' => NULL, 'phpbb_root_path' => NULL, 'mx_root_path' => NULL); // Loop through each input array @reset($test); while (list($input,) = @each($test)) { while (list($var,) = @each($$input)) { // Validate the variable to be unset if (!isset($test[$var]) && $var != 'test' && $var != 'input') { unset($$var); } } } } else if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on') { // PHP4+ path $not_unset = array('HTTP_GET_VARS', 'HTTP_POST_VARS', 'HTTP_COOKIE_VARS', 'HTTP_SERVER_VARS', 'HTTP_SESSION_VARS', 'HTTP_ENV_VARS', 'HTTP_POST_FILES', 'phpEx', 'phpbb_root_path', 'mx_root_path'); // Not only will array_merge give a warning if a parameter // is not an array, it will actually fail. So we check if // HTTP_SESSION_VARS has been initialised. if (!isset($HTTP_SESSION_VARS)) { $HTTP_SESSION_VARS = array(); } // Merge all into one extremely huge array; unset // this later $input = array_merge($HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS, $HTTP_SESSION_VARS, $HTTP_ENV_VARS, $HTTP_POST_FILES); unset($input['input']); unset($input['not_unset']); while (list($var,) = @each($input)) { if (!in_array($var, $not_unset)) { unset($$var); } } unset($input); } // // addslashes to vars if magic_quotes_gpc is off // this is a security precaution to prevent someone // trying to break out of a SQL statement. // if( !get_magic_quotes_gpc() ) { if( is_array($HTTP_GET_VARS) ) { while( list($k, $v) = each($HTTP_GET_VARS) ) { if( is_array($HTTP_GET_VARS[$k]) ) { while( list($k2, $v2) = each($HTTP_GET_VARS[$k]) ) { $HTTP_GET_VARS[$k][$k2] = addslashes($v2); } @reset($HTTP_GET_VARS[$k]); } else { $HTTP_GET_VARS[$k] = addslashes($v); } } @reset($HTTP_GET_VARS); } if( is_array($HTTP_POST_VARS) ) { while( list($k, $v) = each($HTTP_POST_VARS) ) { if( is_array($HTTP_POST_VARS[$k]) ) { while( list($k2, $v2) = each($HTTP_POST_VARS[$k]) ) { $HTTP_POST_VARS[$k][$k2] = addslashes($v2); } @reset($HTTP_POST_VARS[$k]); } else { $HTTP_POST_VARS[$k] = addslashes($v); } } @reset($HTTP_POST_VARS); } if( is_array($HTTP_COOKIE_VARS) ) { while( list($k, $v) = each($HTTP_COOKIE_VARS) ) { if( is_array($HTTP_COOKIE_VARS[$k]) ) { while( list($k2, $v2) = each($HTTP_COOKIE_VARS[$k]) ) { $HTTP_COOKIE_VARS[$k][$k2] = addslashes($v2); } @reset($HTTP_COOKIE_VARS[$k]); } else { $HTTP_COOKIE_VARS[$k] = addslashes($v); } } @reset($HTTP_COOKIE_VARS); } } // // Define some basic configuration arrays this also prevents // malicious rewriting of language and otherarray values via // URI params // $board_config = array(); $userdata = array(); $theme = array(); $images = array(); $lang = array(); $gen_simple_header = FALSE; @include_once($mx_root_path . 'config.'.$phpEx); if( !defined("MX_INSTALLED") ) { header("Location: install/mx_install.$phpEx"); exit; } str_replace("//", "/", $phpbb_root_path); include_once($mx_root_path . 'config.'.$phpEx); include_once($phpbb_root_path . 'includes/constants.'.$phpEx); include_once($mx_root_path . 'includes/template.'.$phpEx); include_once($phpbb_root_path . 'includes/sessions.'.$phpEx); include_once($phpbb_root_path . 'includes/auth.'.$phpEx); include_once($phpbb_root_path . 'includes/functions.'.$phpEx); include_once($phpbb_root_path . 'includes/db.'.$phpEx); include_once($phpbb_root_path . 'includes/functions_selects.'.$phpEx); include_once($phpbb_root_path . 'includes/bbcode.'.$phpEx); include_once($mx_root_path . 'includes/mx_constants.'.$phpEx); include_once($mx_root_path . 'includes/mx_functions.'.$phpEx); $portal_config = get_info( PORTAL_TABLE, 'portal_id', 1 ); define('PHPBB_URL', $portal_config[portal_phpbb_url]); define('PORTAL_URL', $portal_config[portal_url]); define('PORTAL_VERSION', $portal_config[portal_version]); // // instatiate the mx_request_vars class // $mx_request_vars = new mx_request_vars(); // // Mozilla navigation bar // Default items that should be valid on all pages. // Defined here and not in page_header.php so they can be redefined in the code // $nav_links['top'] = array ( 'url' => append_sid( PHPBB_URL ."index.".$phpEx), 'title' => sprintf($lang['Forum_Index'], $board_config['sitename']) ); $nav_links['search'] = array ( 'url' => append_sid( PHPBB_URL ."search.".$phpEx), 'title' => $lang['Search'] ); $nav_links['help'] = array ( 'url' => append_sid( PHPBB_URL ."faq.".$phpEx), 'title' => $lang['FAQ'] ); $nav_links['author'] = array ( 'url' => append_sid( PHPBB_URL ."memberlist.".$phpEx), 'title' => $lang['Memberlist'] ); // // Obtain and encode users IP // // I'm removing HTTP_X_FORWARDED_FOR ... this may well cause other problems such as // private range IP's appearing instead of the guilty routable IP, tough, don't // even bother complaining ... go scream and shout at the idiots out there who feel // "clever" is doing harm rather than good ... karma is a great thing ... :) // $client_ip = ( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( ( !empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_ENV_VARS['REMOTE_ADDR'] : getenv('REMOTE_ADDR') ); $user_ip = encode_ip($client_ip); // // Setup forum wide options, if this fails // then we output a CRITICAL_ERROR since // basic forum information is not available // if( @file_exists($phpbb_root_path . 'includes/class_config.' . $phpEx) && @file_exists($phpbb_root_path . 'includes/class_groups.' . $phpEx) ) { include($mx_root_path . 'includes/mx_functions_ch.'.$phpEx); } else { $sql = "SELECT * FROM " . CONFIG_TABLE; if( !($result = $db->sql_query($sql)) ) { message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql); } while ( $row = $db->sql_fetchrow($result) ) { $board_config[$row['config_name']] = $row['config_value']; } } // // Initialize GZIP handler (if necessary) and PHP sessions // $do_gzip_compress = FALSE; mx_session_start(); // Note: this needs $board_config populated! //++ MX System // // if ( $language ) // { // $board_config['default_lang'] = $language; // setcookie('default_lang', $language, (time()+21600), $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']); // } // elseif ( isset($HTTP_COOKIE_VARS['default_lang']) ) // { // $board_config['default_lang'] = $HTTP_COOKIE_VARS['default_lang']; // } // if ( $style ) // { // $board_config['default_style'] = $style; // setcookie('default_style', $style, (time()+21600), $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']); // } // elseif ( isset($HTTP_COOKIE_VARS['default_style']) ) // { // $board_config['default_style'] = $HTTP_COOKIE_VARS['default_style']; // } // //-- MX System if ( file_exists($phpbb_root_path . 'attach_mod') ) { include_once($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx); } if ( file_exists('install') || file_exists('contrib') ) { message_die(GENERAL_MESSAGE, 'Please ensure both the install/ and contrib/ directories are deleted'); } // // Show 'Board is disabled' message if needed. // if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") ) { message_die(GENERAL_MESSAGE, 'Board_disable', 'Information'); } ?> --- NEW FILE: extension.inc --- <?php /*************************************************************************** * extension.inc * ------------------- * begin : Saturday, Feb 13, 2001 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: extension.inc,v 1.1 2005/05/06 06:47:57 jonohlsson Exp $ * * ***************************************************************************/ if ( !defined('IN_PORTAL') ) { die("Hacking attempt"); } // // Change this if your extension is not .php! // $phpEx = 'php'; $mx_starttime = explode(' ', microtime()); $mx_starttime = $mx_starttime[1] + $mx_starttime[0]; ?> --- NEW FILE: mx_language.php --- <?php /*************************************************************************** * mx_language.php * ------------------- * begin : April, 2002 * copyright : (C) 2002 MX-System * email : su...@mx... * * $Id: mx_language.php,v 1.1 2005/05/06 06:47:57 jonohlsson Exp $ * ***************************************************************************/ if ( !defined('IN_PORTAL') ) { die("Hacking attempt"); } if( isset($HTTP_POST_VARS['change_default_lang']) && $userdata['user_level'] == ADMIN ) { $board_config['default_lang'] = ( isset($HTTP_POST_VARS['default_lang']) ) ? $HTTP_POST_VARS['default_lang'] : $board_config['default_lang']; $sql = "UPDATE " . CONFIG_TABLE . " SET config_value = '" . str_replace("\'", "''", $board_config['default_lang']) . "' WHERE config_name = 'default_lang'"; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Failed to update default language configuration for $config_name", "", __LINE__, __FILE__, $sql); } } if( isset($HTTP_POST_VARS['change_user_lang']) && $userdata['session_logged_in'] ) { $userdata['user_lang'] = ( isset($HTTP_POST_VARS['user_lang']) ) ? $HTTP_POST_VARS['user_lang'] : $board_config['default_lang']; $mx_user_id = $userdata['user_id']; $sql = "UPDATE " . USERS_TABLE . " SET user_lang = '" . str_replace("\'", "''", $userdata['user_lang']) . "' WHERE user_id = '$mx_user_id'"; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Failed to update user lang configuration for $config_name", "", __LINE__, __FILE__, $sql); } } $template->set_filenames(array( "body_language" => 'mx_language.tpl') ); if ( $userdata['user_level'] == ADMIN ) { $template->assign_block_vars("switch_is_admin", array( 'L_CHANGE_NOW' => $lang['Change_default_lang'], 'LANG_SELECT' => language_select($board_config['default_lang'], 'default_lang') )); } if ( $userdata['session_logged_in'] ) { $template->assign_block_vars("switch_is_user", array( 'L_CHANGE_NOW' => $lang['Change_user_lang'], 'LANG_SELECT' => language_select($userdata['user_lang'], 'user_lang') )); } $template->assign_vars(array( 'ACTION_URL' => $mx_root_path . "index." . $phpEx . "?page=" . $page_id, 'BLOCK_SIZE' => ( !empty( $block_size ) ? $block_size : '100%' ), 'L_SELECT_LANG' => $lang['Board_lang'], 'L_CHANGE_NOW' => $lang['Change'], 'L_TITLE' => $lang['Portal_lang'], 'L_SUBTITLE' => $lang['SELECTGUILANG']) ); // // Display only when the user is logged in // if( $userdata['session_logged_in'] ) { $template->pparse("body_language"); } ?> --- NEW FILE: mx_google.php --- <?php /*************************************************************************** * mx_google.php * ------------------- * begin : August, 2002 * copyright : (C) 2002 MX-System * email : su...@mx... * * $Id: mx_google.php,v 1.1 2005/05/06 06:47:57 jonohlsson Exp $ * ***************************************************************************/ if ( !defined('IN_PORTAL') ) { die("Hacking attempt"); } $template->set_filenames(array( "body_google" => 'mx_google.tpl') ); $template->assign_vars(array( 'BLOCK_SIZE' => $block_size, 'L_SEARCH' => $lang['Search'], 'L_TITLE' => 'Google') ); $template->pparse("body_google"); ?> --- NEW FILE: mx_multiple_blocks.php --- <?php /*************************************************************************** * mx_multiple_blocks.php * ------------------- * email : ban...@gm... * * ***************************************************************************/ $block_config = read_block_config( $block_id ); // check parameter for block count $block_ids = $block_config[$block_id][block_ids]['parameter_value']; $block_ids=explode(',',$block_ids); $nested_block_count = sizeof($block_ids); // settype($nested_block_count,'integer'); if ($nested_block_count<2) mx_message_die(GENERAL_ERROR, "Nested block count must be >=2.", "", __LINE__, __FILE__, ''); // check parameter block ids & check parameter for block count // if (sizeof($block_ids)!=$nested_block_count) // mx_message_die(GENERAL_ERROR, "Number of block ids must be equal to block count.", "", __LINE__, __FILE__, ''); // check parameter block sizes $block_sizes = $block_config[$block_id][block_sizes]['parameter_value']; $block_sizes=explode(',',$block_sizes); if (sizeof($block_sizes)!=$nested_block_count) mx_message_die(GENERAL_ERROR, "Number of block sizes must be equal to block count.", "", __LINE__, __FILE__, ''); // check parameter space $block_space = $block_config[$block_id][space_between]['parameter_value']; if ($block_space=='') mx_message_die(GENERAL_ERROR, "Space between nested blocks not set.", "", __LINE__, __FILE__, ''); // start the placement table echo '<table cellspacing="0" cellpadding="0" border="0" width="100%"><tr>'; for ($cell=0;$cell<$nested_block_count;$cell++) { $inner_block_id=$block_ids[$cell]; $inner_block_size=$block_sizes[$cell]; settype($inner_block_id,'integer'); // output a placement table for each single block and the optional space echo '<td width="'.$inner_block_size.'" valign="top"><table cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td>'; // get the necessary info about this block $sql = "SELECT blk.block_id, module_path, function_file, auth_view FROM " . BLOCK_TABLE . " blk, " . FUNCTION_TABLE . " fnc, " . MODULE_TABLE . " modu WHERE blk.function_id = fnc.function_id AND fnc.module_id = modu.module_id AND blk.block_id = ".$inner_block_id; if(!$block_result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, "Could not query modules information", "", __LINE__, __FILE__, $sql); } $block_row = $db->sql_fetchrow($block_result); $module_root_path=$block_row['module_path']; $block_file=$block_row['function_file']; $auth_view=$row['auth_view']; // check visibility (code from index.php) $is_auth_ary = array(); $is_auth_ary = block_auth(AUTH_VIEW, $inner_block_id , $userdata, $block_row, $block_row[auth_view] ); // output the block if ( $is_auth_ary[auth_view] ) { // set block id and block size as this must be correctly set for the inclusion to work $block_id=$inner_block_id; $block_size='100%'; // echo $module_root_path.$block_file; $template = new Template( $template->root, $board_config, $db); include($module_root_path . $block_file ); // output additional space between blocks if it is not the last block if ($cell<$nested_block_count-1) { echo '</td><td width="'.$block_space.'">'; echo '<img src="templates/spacer.gif" width="'.$block_spac... [truncated message content] |
Update of /cvsroot/mxbb/core27x/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/includes Added Files: mx_constants.php mx_form.php mx_functions.php mx_functions_ch.php page_header.php page_tail.php template.php Log Message: Initital core 2.7.x commit :-) --- NEW FILE: mx_functions_ch.php --- <?php /*************************************************************************** * mx_functions_ch.php * ------------------- * begin : March, 2005 * copyright : (C) 2002 mxBB-Portal * email : su...@mx... * * $Id: mx_functions_ch.php,v 1.1 2005/05/06 06:47:58 jonohlsson Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License', or * ('at your option) any later version. * ***************************************************************************/ // // This code is part of common.php in Categories Hierarchy 2.1.0 // $starttime = microtime(); $trc_loc_start = $trc_loc_end = 0; // include basic classes def include($phpbb_root_path . 'includes/class_config.' . $phpEx); include($phpbb_root_path . 'includes/class_groups.' . $phpEx); // get config $config = new config_class(); if ( !$config->read() ) { define('RUN_CH_INSTALL', true); } $board_config = &$config->data; // let's run the upgrade script if ( !defined('IN_LOGIN') && !defined('IN_INSTALL') && (($config->data['mod_cat_hierarchy'] != '2.1.0f') || defined('RUN_CH_INSTALL')) ) { header('Location: '.$phpbb_root_path.'install_cat/install.' . $phpEx . (empty($SID) ? '' : '?' . $SID)); exit; } // user objects include($config->url('includes/class_user')); include($config->url('includes/class_auth')); // instantiate some objects $user = new user(); $censored_words = new words(); $icons = new icons(); $navigation = new navigation(); $themes = ''; $smilies = new smilies(); // People never read achievement messages after after having seen "Succesfull !", tss tss :) if ( file_exists($phpbb_root_path.'install_cat') && !defined('IN_LOGIN') && !defined('IN_INSTALL') ) { message_die(GENERAL_MESSAGE, 'Please ensure the install_cat/ directory is deleted'); } // messages queue $message_queue = ''; @include($config->url('includes/class_message')); $message_queue = !defined('CH_message_queue') ? '' : new message_queue(); ?> --- NEW FILE: page_tail.php --- <?php /*************************************************************************** * page_tail.php * ------------------- * begin : Saturday, Feb 13, 2001 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: page_tail.php,v 1.1 2005/05/06 06:47:58 jonohlsson Exp $ * * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ if ( !defined('IN_PORTAL') ) { die('Hacking attempt'); } // // Show the overall footer. // $admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="' . PORTAL_URL . 'admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : ''; $template->set_filenames(array( 'overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl') ); $template->assign_vars(array( 'U_PORTAL_ROOT_PATH' => PORTAL_URL, 'U_PHPBB_ROOT_PATH' => PHPBB_URL, 'TEMPLATE_ROOT_PATH' => TEMPLATE_ROOT_PATH, 'TRANSLATION_INFO' => ( isset($lang['TRANSLATION_INFO']) ) ? $lang['TRANSLATION_INFO'] : '', 'ADMIN_LINK' => $admin_link) ); // Generate stats $endtime = explode(' ', microtime()); $stime = ( $endtime[1] + $endtime[0] ) - $mx_starttime; $execution_stats = '<center><span class="copyright">' . sprintf($lang['Execution_Stats'], $db->num_queries, round($stime, 4)) . '</span></center>'; // Comment out next 3 lines and stats will be turned off $template->assign_vars(array( 'EXECUTION_STATS' => $execution_stats) ); $template->pparse('overall_footer'); // // Close our DB connection. // $db->sql_close(); // // Compress buffered output if required and send to browser // if ( $do_gzip_compress ) { // // Borrowed from php.net! // $gzip_contents = ob_get_contents(); ob_end_clean(); $gzip_size = strlen($gzip_contents); $gzip_crc = crc32($gzip_contents); $gzip_contents = gzcompress($gzip_contents, 9); $gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4); echo "\x1f\x8b\x08\x00\x00\x00\x00\x00"; echo $gzip_contents; echo pack('V', $gzip_crc); echo pack('V', $gzip_size); } exit; ?> --- NEW FILE: template.php --- <?php /** ------------------------------------------------------------------------ * subject : mx-portal, CMS & portal * begin : june, 2002 * copyright : (C) 2002-2005 MX-System * email : jon...@ho... * project site : www.mx-system.com * * description : * ------------------------------------------------------------------------- * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: template.php,v 1.1 2005/05/06 06:47:58 jonohlsson Exp $ */ /** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */ /** * Template class. By Nathan Codding of the phpBB group. * The interface was originally inspired by PHPLib templates, * and the template file formats are quite similar. */ class Template { var $classname = "Template"; // variable that holds all the data we'll be substituting into // the compiled templates. // ... // This will end up being a multi-dimensional array like this: // $this->_tpldata[block.][iteration#][child.][iteration#][child2.][iteration#][variablename] == value // if it's a root-level variable, it'll be like this: // $this->_tpldata[.][0][varname] == value var $_tpldata = array(); // Hash of filenames for each template handle. var $files = array(); // Root template directory. var $root = ""; // this will hash handle names to the compiled code for that handle. var $compiled_code = array(); // This will hold the uncompiled code for that handle. var $uncompiled_code = array(); /** * Constructor. Simply sets the root dir. */ function Template( $root = "." ) { $this->set_rootdir( $root ); } /** * Destroys this template object. Should be called when you're done with it, in order * to clear out the template data so you can load/parse a new template set. */ function destroy() { $this->_tpldata = array(); } /** * Sets the template root directory for this Template object. */ function set_rootdir( $dir ) { if ( !is_dir( $dir ) ) { return false; } $this->root = $dir; return true; } /** * Sets the template filenames for handles. $filename_array * should be a hash of handle => filename pairs. */ function set_filenames( $filename_array ) { if ( !is_array( $filename_array ) ) { return false; } reset( $filename_array ); while ( list( $handle, $filename ) = each( $filename_array ) ) { $this->files[$handle] = $this->make_filename( $filename ); } return true; } /** * Load the file for the handle, compile the file, * and run the compiled code. This will print out * the results of executing the template. */ function pparse( $handle ) { if ( !$this->loadfile( $handle ) ) { die( "Template->pparse(): Couldn't load template file for handle $handle" ); } // actually compile the template now. if ( !isset( $this->compiled_code[$handle] ) || empty( $this->compiled_code[$handle] ) ) { // Actually compile the code now. $this->compiled_code[$handle] = $this->compile( $this->uncompiled_code[$handle] ); } // Run the compiled code. eval( $this->compiled_code[$handle] ); return true; } /** * Inserts the uncompiled code for $handle as the * value of $varname in the root-level. This can be used * to effectively include a template in the middle of another * template. * Note that all desired assignments to the variables in $handle should be done * BEFORE calling this function. */ function assign_var_from_handle( $varname, $handle ) { if ( !$this->loadfile( $handle ) ) { die( "Template->assign_var_from_handle(): Couldn't load template file for handle $handle" ); } // Compile it, with the "no echo statements" option on. $_str = ""; $code = $this->compile( $this->uncompiled_code[$handle], true, '_str' ); // evaluate the variable assignment. eval( $code ); // assign the value of the generated variable to the given varname. $this->assign_var( $varname, $_str ); return true; } /** * Block-level variable assignment. Adds a new block iteration with the given * variable assignments. Note that this should only be called once per block * iteration. */ function assign_block_vars( $blockname, $vararray ) { if ( strstr( $blockname, '.' ) ) { // Nested block. $blocks = explode( '.', $blockname ); $blockcount = sizeof( $blocks ) - 1; $str = '$this->_tpldata'; for ( $i = 0; $i < $blockcount; $i++ ) { $str .= '[\'' . $blocks[$i] . '.\']'; eval( '$lastiteration = sizeof(' . $str . ') - 1;' ); $str .= '[' . $lastiteration . ']'; } // Now we add the block that we're actually assigning to. // We're adding a new iteration to this block with the given // variable assignments. $str .= '[\'' . $blocks[$blockcount] . '.\'][] = $vararray;'; // Now we evaluate this assignment we've built up. eval( $str ); } else { // Top-level block. // Add a new iteration to this block with the variable assignments // we were given. $this->_tpldata[$blockname . '.'][] = $vararray; } return true; } /** * Root-level variable assignment. Adds to current assignments, overriding * any existing variable assignment with the same name. */ function assign_vars( $vararray ) { reset ( $vararray ); while ( list( $key, $val ) = each( $vararray ) ) { $this->_tpldata['.'][0][$key] = $val; } return true; } /** * Root-level variable assignment. Adds to current assignments, overriding * any existing variable assignment with the same name. */ function assign_var( $varname, $varval ) { $this->_tpldata['.'][0][$varname] = $varval; return true; } /** * Generates a full path+filename for the given filename, which can either * be an absolute name, or a name relative to the rootdir for this Template * object. */ function make_filename( $filename ) { global $module_root_path, $mx_root_path, $phpbb_root_path, $theme; $style_path = $theme['template_name'] . '/'; // Look at MX-Module folder... if ( file_exists( $module_root_path . 'templates/' . $style_path . $filename ) ) { $filename = $module_root_path . 'templates/' . $style_path . $filename; } else if ( file_exists( $module_root_path . 'templates/subSilver/' . $filename ) ) { $filename = $module_root_path . 'templates/subSilver/' . $filename; } else if ( file_exists( $module_root_path . 'templates/' . $filename ) ) { $filename = $module_root_path . 'templates/' . $filename; } // Look at MX-Root folder... else if ( file_exists( $mx_root_path . 'templates/' . $style_path . $filename ) ) { $filename = $mx_root_path . 'templates/' . $style_path . $filename; } else if ( file_exists( $mx_root_path . 'templates/subSilver/' . $filename ) ) { $filename = $mx_root_path . 'templates/subSilver/' . $filename; } else if ( file_exists( $mx_root_path . 'templates/' . $filename ) ) { $filename = $mx_root_path . 'templates/' . $filename; } else if ( file_exists( $mx_root_path . $this->root . '/' . $filename ) ) { $filename = $mx_root_path . $this->root . '/' . $filename; } // Look at phpBB-Root folder... else if ( file_exists( $phpbb_root_path . 'templates/' . $style_path . $filename ) ) { $filename = $phpbb_root_path . 'templates/' . $style_path . $filename; } else if ( file_exists( $phpbb_root_path . 'templates/subSilver/' . $filename ) ) { $filename = $phpbb_root_path . 'templates/subSilver/' . $filename; } else if ( file_exists( $phpbb_root_path . $this->root . '/' . $filename ) ) { $filename = $phpbb_root_path . $this->root . '/' . $filename; } else if ( file_exists( $this->root . '/' . $filename ) ) { // Check if it's an absolute or relative path. if ( substr( $filename, 0, 1 ) != '/' ) { $filename = ($rp_filename = phpbb_realpath($this->root . '/' . $filename)) ? $rp_filename : $filename; } } if ( !file_exists( $filename ) ) { die( "Template->make_filename(): Error - file $filename does not exist." ); } return $filename; } /** * If not already done, load the file for the given handle and populate * the uncompiled_code[] hash with its code. Do not compile. */ function loadfile( $handle ) { // If the file for this handle is already loaded and compiled, do nothing. if ( isset( $this->uncompiled_code[$handle] ) && !empty( $this->uncompiled_code[$handle] ) ) { return true; } // If we don't have a file assigned to this handle, die. if ( !isset( $this->files[$handle] ) ) { die( "Template->loadfile(): No file specified for handle $handle" ); } $filename = $this->files[$handle]; $str = implode( "", @file( $filename ) ); if ( empty( $str ) ) { die( "Template->loadfile(): File $filename for handle $handle is empty" ); } $this->uncompiled_code[$handle] = $str; return true; } /** * Compiles the given string of code, and returns * the result in a string. * If "do_not_echo" is true, the returned code will not be directly * executable, but can be used as part of a variable assignment * for use in assign_code_from_handle(). */ function compile( $code, $do_not_echo = false, $retvar = '' ) { // replace \ with \\ and then ' with \'. $code = str_replace( '\\', '\\\\', $code ); $code = str_replace( '\'', '\\\'', $code ); // change template varrefs into PHP varrefs // This one will handle varrefs WITH namespaces $varrefs = array(); preg_match_all( '#\{(([a-z0-9\-_]+?\.)+?)([a-z0-9\-_]+?)\}#is', $code, $varrefs ); $varcount = sizeof( $varrefs[1] ); for ( $i = 0; $i < $varcount; $i++ ) { $namespace = $varrefs[1][$i]; $varname = $varrefs[3][$i]; $new = $this->generate_block_varref( $namespace, $varname ); $code = str_replace( $varrefs[0][$i], $new, $code ); } // This will handle the remaining root-level varrefs $code = preg_replace( '#\{([a-z0-9\-_]*?)\}#is', '\' . ( ( isset($this->_tpldata[\'.\'][0][\'\1\']) ) ? $this->_tpldata[\'.\'][0][\'\1\'] : \'\' ) . \'', $code ); // Break it up into lines. $code_lines = explode( "\n", $code ); $block_nesting_level = 0; $block_names = array(); $block_names[0] = "."; // Second: prepend echo ', append ' . "\n"; to each line. $line_count = sizeof( $code_lines ); for ( $i = 0; $i < $line_count; $i++ ) { $code_lines[$i] = chop( $code_lines[$i] ); if ( preg_match( '#<!-- BEGIN (.*?) -->#', $code_lines[$i], $m ) ) { $n[0] = $m[0]; $n[1] = $m[1]; // Added: dougk_ff7-Keeps templates from bombing if begin is on the same line as end.. I think. :) if ( preg_match( '#<!-- END (.*?) -->#', $code_lines[$i], $n ) ) { $block_nesting_level++; $block_names[$block_nesting_level] = $m[1]; if ( $block_nesting_level < 2 ) { // Block is not nested. $code_lines[$i] = '$_' . $n[1] . '_count = ( isset($this->_tpldata[\'' . $n[1] . '.\']) ) ? sizeof($this->_tpldata[\'' . $n[1] . '.\']) : 0;'; $code_lines[$i] .= "\n" . 'for ($_' . $n[1] . '_i = 0; $_' . $n[1] . '_i < $_' . $n[1] . '_count; $_' . $n[1] . '_i++)'; $code_lines[$i] .= "\n" . '{'; } else { // This block is nested. // Generate a namespace string for this block. $namespace = implode( '.', $block_names ); // strip leading period from root level.. $namespace = substr( $namespace, 2 ); // Get a reference to the data array for this block that depends on the // current indices of all parent blocks. $varref = $this->generate_block_data_ref( $namespace, false ); // Create the for loop code to iterate over this block. $code_lines[$i] = '$_' . $n[1] . '_count = ( isset(' . $varref . ') ) ? sizeof(' . $varref . ') : 0;'; $code_lines[$i] .= "\n" . 'for ($_' . $n[1] . '_i = 0; $_' . $n[1] . '_i < $_' . $n[1] . '_count; $_' . $n[1] . '_i++)'; $code_lines[$i] .= "\n" . '{'; } // We have the end of a block. unset( $block_names[$block_nesting_level] ); $block_nesting_level--; $code_lines[$i] .= '} // END ' . $n[1]; $m[0] = $n[0]; $m[1] = $n[1]; } else { // We have the start of a block. $block_nesting_level++; $block_names[$block_nesting_level] = $m[1]; if ( $block_nesting_level < 2 ) { // Block is not nested. $code_lines[$i] = '$_' . $m[1] . '_count = ( isset($this->_tpldata[\'' . $m[1] . '.\']) ) ? sizeof($this->_tpldata[\'' . $m[1] . '.\']) : 0;'; $code_lines[$i] .= "\n" . 'for ($_' . $m[1] . '_i = 0; $_' . $m[1] . '_i < $_' . $m[1] . '_count; $_' . $m[1] . '_i++)'; $code_lines[$i] .= "\n" . '{'; } else { // This block is nested. // Generate a namespace string for this block. $namespace = implode( '.', $block_names ); // strip leading period from root level.. $namespace = substr( $namespace, 2 ); // Get a reference to the data array for this block that depends on the // current indices of all parent blocks. $varref = $this->generate_block_data_ref( $namespace, false ); // Create the for loop code to iterate over this block. $code_lines[$i] = '$_' . $m[1] . '_count = ( isset(' . $varref . ') ) ? sizeof(' . $varref . ') : 0;'; $code_lines[$i] .= "\n" . 'for ($_' . $m[1] . '_i = 0; $_' . $m[1] . '_i < $_' . $m[1] . '_count; $_' . $m[1] . '_i++)'; $code_lines[$i] .= "\n" . '{'; } } } else if ( preg_match( '#<!-- END (.*?) -->#', $code_lines[$i], $m ) ) { // We have the end of a block. unset( $block_names[$block_nesting_level] ); $block_nesting_level--; $code_lines[$i] = '} // END ' . $m[1]; } else { // We have an ordinary line of code. if ( !$do_not_echo ) { $code_lines[$i] = 'echo \'' . $code_lines[$i] . '\' . "\\n";'; } else { $code_lines[$i] = '$' . $retvar . '.= \'' . $code_lines[$i] . '\' . "\\n";'; } } } // Bring it back into a single string of lines of code. $code = implode( "\n", $code_lines ); return $code ; } /** * Generates a reference to the given variable inside the given (possibly nested) * block namespace. This is a string of the form: * ' . $this->_tpldata['parent'][$_parent_i]['$child1'][$_child1_i]['$child2'][$_child2_i]...['varname'] . ' * It's ready to be inserted into an "echo" line in one of the templates. * NOTE: expects a trailing "." on the namespace. */ function generate_block_varref( $namespace, $varname ) { // Strip the trailing period. $namespace = substr( $namespace, 0, strlen( $namespace ) - 1 ); // Get a reference to the data block for this namespace. $varref = $this->generate_block_data_ref( $namespace, true ); // Prepend the necessary code to stick this in an echo line. // Append the variable reference. $varref .= '[\'' . $varname . '\']'; $varref = '\' . ( ( isset(' . $varref . ') ) ? ' . $varref . ' : \'\' ) . \''; return $varref; } /** * Generates a reference to the array of data values for the given * (possibly nested) block namespace. This is a string of the form: * $this->_tpldata['parent'][$_parent_i]['$child1'][$_child1_i]['$child2'][$_child2_i]...['$childN'] * * If $include_last_iterator is true, then [$_childN_i] will be appended to the form shown above. * NOTE: does not expect a trailing "." on the blockname. */ function generate_block_data_ref( $blockname, $include_last_iterator ) { // Get an array of the blocks involved. $blocks = explode( ".", $blockname ); $blockcount = sizeof( $blocks ) - 1; $varref = '$this->_tpldata'; // Build up the string with everything but the last child. for ( $i = 0; $i < $blockcount; $i++ ) { $varref .= '[\'' . $blocks[$i] . '.\'][$_' . $blocks[$i] . '_i]'; } // Add the block reference for the last child. $varref .= '[\'' . $blocks[$blockcount] . '.\']'; // Add the iterator for the last child if requried. if ( $include_last_iterator ) { $varref .= '[$_' . $blocks[$blockcount] . '_i]'; } return $varref; } } ?> --- NEW FILE: mx_form.php --- <?php /*************************************************************************** * mx_form.php * ------------------- * begin : May, 2002 * copyright : (C) 2002 MX-System * email : su...@mx... * * $Id: mx_form.php,v 1.1 2005/05/06 06:47:58 jonohlsson Exp $ * ***************************************************************************/ /* * Form creator * */ class form { var $items; // array containing the data for the form var $arrayname; // name of the form array function form($items=array()) { if (!empty($items)) { $this->items=$items; foreach ($items as $item) { if ($item[0]=="name") { $this->arrayname=$item[1]; // getting the table name $name=true; break; } } if (!isset($name)) die("The form hasn't got name parameter"); } } function drawForm() // drawing the input form { global $template, $lang; foreach ($this->items as $item) { $item_label = ''; $item_field = ''; switch ($item[0]) { case "text": // text form $item_label = $item[1]; $item_field = '<input type="text" name="' . $this->arrayname . '['. $item[2] . ']" size="' . $item[3] . '" value="' . $item[4] . '" class="post">'; break; case "textarea": // textarea $item_label = $item[1]; $item_field = '<textarea name="' . $this->arrayname . '['. $item[2] . ']" class="post" wrap="on" cols="' . $item[3] . '" rows="' . $item[4] . '">' . $item[5] . '</textarea>'; break; case "password": // password $item_label = $item[1]; $item_field = '<input type="password" name="' . $this->arrayname . '['. $item[2] . ']" size="' . $item[3] . '" value="' . $item[4] . '" class="post">'; /* case "radio": // radio button $item_label = $item[1]; foreach ($item[3] as $key=>$value) { if (isset($item[4]) && $item[4]==$key) { $item_field .= '<input type="radio" name="' . $this->arrayname . '['. $item[2] . ']" value="' . $key . '" checked >' .. $value; } else { $item_field .= '<input type="radio" name="' . $this->arrayname . '['. $item[2] . ']" value="' . $key . '" >'. $value; } } */ break; case "checkbox": // checkbox button $item_label = $item[1]; if (isset($item[3])) $item_field = '<input type="checkbox" name="' . $this->arrayname . '[' . $item[2] . ']" value="1" checked>'; else $item_field = '<input type="checkbox" name="' . $this->arrayname . '[' . $item[2] . ']" value="1"'; break; case "select": $item_label = $item[1]; $item_field = $item[2]; break; case "file": // file upload field $item_label = $item[1]; $item_field = '<input type="file" name="' . $item[2] . '" size="'.$item[3].'" class="post">'; $item_field .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . $config->MaxUploadSize. '">'; $item_field .= '<input type="hidden" name="'. $this->arrayname . '[fileupload]" value="' . $item[2] . '">'; break; case "hidden": // hidden fields $item_label = ''; $item_field = '<input type="hidden" name="' . $this->arrayname . '['.$item[1].']" value="' . $item[2]. '">'; break; case "submit": // defining the label for submit button $submit=$item[1]; $submitname=$item[2]; break; case "delete": // delete button $item_label = $item[1]; $item_field = $item[2]; break; } if ( ! empty( $item_field )) { $template->assign_block_vars("rows", array( 'LABEL' => $item_label, 'FIELD' => $item_field, )); } } $template->pparse("body"); } /* If is there a file upload, it has got some extra parameter (e.g. file_type). * These parameter are put here to the main array */ function preinsert($pairs=array(),$tabla="") { global $config; foreach ($pairs as $key=>$value) { if ($key=="fileupload") { // special variable containing the prefix of the name of the uploaded file $name=$value."_name"; $size=$value."_size"; $type=$value."_type"; $path=$value; global $$name,$$size,$$type,$$path; if ($$size>$config->MaxUploadSize) { // checking the size of the uploaded file, you must set $config->MaxUploadSize printf("The uploaded file is too big. The maximal size is %d byte. <br>Please repeat the upload!",$config->MaxUploadSize); $this->drawform(); } else { // let's put the values of the uploaded image to the main array $pairs[file_name]=$$name; $pairs[file_size]=$$size; $pairs[file_type]=$$type; $pairs[file_path]=$$path; if (!empty($tabla)) $this->insert($pairs,$tabla); // if you get table name, insert do everything to you else return($pairs); // if there's no table, we return with the finished array break; } } } } function insert($pairs,$table) { // method for inserting record to the database global $db; $sql="INSERT INTO $table ("; $first=true; foreach ($pairs as $key=>$value) { if ($key!="id" || $key!="title" || $key!="submit") { // everything except record ID,title,submit if ($first) { $value="\"".$value; $first=false; }else { $key=",".$key; $value=",\"".$value; } $fields.=$key; $values.=$value."\""; } } $sql.=$fields.") VALUES(".$values.")"; if( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, "Couldn't insert into $table ", "", __LINE__, __FILE__, $sql); } } function update($pairs,$table, $key) { // method for updating records in the database global $db; $sql="UPDATE $table SET "; $first=true; foreach ($pairs as $key=>$value) { if ($key!="id" || $key!="title" || $key!="submit") { // everything except record ID,title,submit if ($first) { $sql.="$key=\"$value\""; $first=false; }else { $sql.=",$key=\"$value\""; } } } $sql.=" WHERE $key = $pairs[$key]"; if( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, "Couldn't insert into $table ", "", __LINE__, __FILE__, $sql); } } function delete($id,$table, $key) { // method for deleting record from a table global $db; $sql="DELETE FROM $table WHERE $key =$id"; if( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, "Couldn't delete $table information", "", __LINE__, __FILE__, $sql); } } } ?> --- NEW FILE: page_header.php --- <?php /*************************************************************************** * page_header.php * ------------------- * begin : Saturday, Feb 13, 2001 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: page_header.php,v 1.1 2005/05/06 06:47:58 jonohlsson Exp $ * * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ if ( !defined('IN_PORTAL') ) { die("Hacking attempt"); } define('HEADER_INC', TRUE); /********** NOTE: The following code related to GZIP initialization has been temporaly moved to the new mx_session_start() function, declared in mx_functions.php // // gzip_compression // $do_gzip_compress = FALSE; if ( $board_config['gzip_compress'] ) { $phpver = phpversion(); $useragent = (isset($HTTP_SERVER_VARS['HTTP_USER_AGENT'])) ? $HTTP_SERVER_VARS['HTTP_USER_AGENT'] : getenv('HTTP_USER_AGENT'); if ( $phpver >= '4.0.4pl1' && ( strstr($useragent,'compatible') || strstr($useragent,'Gecko') ) ) { if ( extension_loaded('zlib') ) { ob_end_clean(); ob_start('ob_gzhandler'); } } else if ( $phpver > '4.0' ) { if ( strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') ) { if ( extension_loaded('zlib') ) { $do_gzip_compress = TRUE; ob_start(); ob_implicit_flush(0); header('Content-Encoding: gzip'); } } } } **********/ // // Parse and show the overall header. // $template->set_filenames(array( 'overall_header' => ( empty($page_row['page_header']) ) ? 'overall_header.tpl' : $page_row['page_header'] ) ); // // Generate logged in/logged out status // if ( $userdata['session_logged_in'] ) { $u_login_logout = 'login.'.$phpEx.'?logout=true&sid=' . $userdata['session_id']; $l_login_logout = $lang['Logout'] . ' [ ' . $userdata['username'] . ' ]'; } else { $u_login_logout = 'login.'.$phpEx; $l_login_logout = $lang['Login']; } $s_last_visit = ( $userdata['session_logged_in'] ) ? create_date($board_config['default_dateformat'], $userdata['user_lastvisit'], $board_config['board_timezone']) : ''; // // Get basic (usernames + totals) online // situation // $logged_visible_online = 0; $logged_hidden_online = 0; $guests_online = 0; $online_userlist = ''; $l_online_users = ''; if (defined('SHOW_ONLINE')) { $user_forum_sql = ( !empty($forum_id) ) ? "AND s.session_page = " . intval($forum_id) : ''; $sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_level, s.session_logged_in, s.session_ip FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s WHERE u.user_id = s.session_user_id AND s.session_time >= ".( time() - 300 ) . " $user_forum_sql ORDER BY u.username ASC, s.session_ip ASC"; if( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not obtain user/online information', '', __LINE__, __FILE__, $sql); } $userlist_ary = array(); $userlist_visible = array(); $prev_user_id = 0; $prev_user_ip = $prev_session_ip = ''; while( $row = $db->sql_fetchrow($result) ) { // User is logged in and therefor not a guest if ( $row['session_logged_in'] ) { // Skip multiple sessions for one user if ( $row['user_id'] != $prev_user_id ) { $style_color = ''; if ( $row['user_level'] == ADMIN ) { $row['username'] = '<b>' . $row['username'] . '</b>'; $style_color = 'style="color:#' . $theme['fontcolor3'] . '"'; } else if ( $row['user_level'] == MOD ) { $row['username'] = '<b>' . $row['username'] . '</b>'; $style_color = 'style="color:#' . $theme['fontcolor2'] . '"'; } if ( $row['user_allow_viewonline'] ) { $user_online_link = '<a href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'>' . $row['username'] . '</a>'; $logged_visible_online++; } else { $user_online_link = '<a href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'><i>' . $row['username'] . '</i></a>'; $logged_hidden_online++; } if ( $row['user_allow_viewonline'] || $userdata['user_level'] == ADMIN ) { $online_userlist .= ( $online_userlist != '' ) ? ', ' . $user_online_link : $user_online_link; } } $prev_user_id = $row['user_id']; } else { // Skip multiple sessions for one user if ( $row['session_ip'] != $prev_session_ip ) { $guests_online++; } } $prev_session_ip = $row['session_ip']; } $db->sql_freeresult($result); if ( empty($online_userlist) ) { $online_userlist = $lang['None']; } $online_userlist = ( ( isset($forum_id) ) ? $lang['Browsing_forum'] : $lang['Registered_users'] ) . ' ' . $online_userlist; $total_online_users = $logged_visible_online + $logged_hidden_online + $guests_online; if ( $total_online_users > $board_config['record_online_users']) { $board_config['record_online_users'] = $total_online_users; $board_config['record_online_date'] = time(); $sql = "UPDATE " . CONFIG_TABLE . " SET config_value = '$total_online_users' WHERE config_name = 'record_online_users'"; if ( !$db->sql_query($sql) ) { message_die(GENERAL_ERROR, 'Could not update online user record (nr of users)', '', __LINE__, __FILE__, $sql); } $sql = "UPDATE " . CONFIG_TABLE . " SET config_value = '" . $board_config['record_online_date'] . "' WHERE config_name = 'record_online_date'"; if ( !$db->sql_query($sql) ) { message_die(GENERAL_ERROR, 'Could not update online user record (date)', '', __LINE__, __FILE__, $sql); } } if ( $total_online_users == 0 ) { $l_t_user_s = $lang['Online_users_zero_total']; } else if ( $total_online_users == 1 ) { $l_t_user_s = $lang['Online_user_total']; } else { $l_t_user_s = $lang['Online_users_total']; } if ( $logged_visible_online == 0 ) { $l_r_user_s = $lang['Reg_users_zero_total']; } else if ( $logged_visible_online == 1 ) { $l_r_user_s = $lang['Reg_user_total']; } else { $l_r_user_s = $lang['Reg_users_total']; } if ( $logged_hidden_online == 0 ) { $l_h_user_s = $lang['Hidden_users_zero_total']; } else if ( $logged_hidden_online == 1 ) { $l_h_user_s = $lang['Hidden_user_total']; } else { $l_h_user_s = $lang['Hidden_users_total']; } if ( $guests_online == 0 ) { $l_g_user_s = $lang['Guest_users_zero_total']; } else if ( $guests_online == 1 ) { $l_g_user_s = $lang['Guest_user_total']; } else { $l_g_user_s = $lang['Guest_users_total']; } $l_online_users = sprintf($l_t_user_s, $total_online_users); $l_online_users .= sprintf($l_r_user_s, $logged_visible_online); $l_online_users .= sprintf($l_h_user_s, $logged_hidden_online); $l_online_users .= sprintf($l_g_user_s, $guests_online); } // // Obtain number of new private messages // if user is logged in // if ( ($userdata['session_logged_in']) ) { if ( $userdata['user_new_privmsg'] ) { $l_message_new = ( $userdata['user_new_privmsg'] == 1 ) ? $lang['New_pm'] : $lang['New_pms']; $l_privmsgs_text = sprintf($l_message_new, $userdata['user_new_privmsg']); if ( $userdata['user_last_privmsg'] > $userdata['user_lastvisit'] ) { $sql = "UPDATE " . USERS_TABLE . " SET user_last_privmsg = " . $userdata['user_lastvisit'] . " WHERE user_id = " . $userdata['user_id']; if ( !$db->sql_query($sql) ) { message_die(GENERAL_ERROR, 'Could not update private message new/read time for user', '', __LINE__, __FILE__, $sql); } $s_privmsg_new = 1; $icon_pm = $images['pm_new_msg']; } else { $s_privmsg_new = 0; $icon_pm = $images['pm_no_new_msg']; } $mx_priv_msg = $lang['Private_Messages'] . ' (' . $userdata['user_new_privmsg'] . ')'; } else { $l_privmsgs_text = $lang['No_new_pm']; $s_privmsg_new = 0; $icon_pm = $images['pm_no_new_msg']; $mx_priv_msg = $lang['Private_Messages']; } if ( $userdata['user_unread_privmsg'] ) { $l_message_unread = ( $userdata['user_unread_privmsg'] == 1 ) ? $lang['Unread_pm'] : $lang['Unread_pms']; $l_privmsgs_text_unread = sprintf($l_message_unread, $userdata['user_unread_privmsg']); // $mx_priv_msg = $lang['Private_Messages'] . ' (' . $userdata['user_unread_privmsg'] . ')'; } else { $l_privmsgs_text_unread = $lang['No_unread_pm']; } } else { $icon_pm = $images['pm_no_new_msg']; $l_privmsgs_text = $lang['Login_check_pm']; $l_privmsgs_text_unread = ''; $s_privmsg_new = 0; $mx_priv_msg = $lang['Private_Messages']; } // // Generate HTML required for Mozilla Navigation bar // if (!isset($nav_links)) { $nav_links = array(); } $nav_links_html = ''; $nav_link_proto = '<link rel="%s" href="%s" title="%s" />' . "\n"; while( list($nav_item, $nav_array) = @each($nav_links) ) { if ( !empty($nav_array['url']) ) { $nav_links_html .= sprintf($nav_link_proto, $nav_item, append_sid($nav_array['url']), $nav_array['title']); } else { // We have a nested array, used for items like <link rel='chapter'> that can occur more than once. while( list(,$nested_array) = each($nav_array) ) { $nav_links_html .= sprintf($nav_link_proto, $nav_item, $nested_array['url'], $nested_array['title']); } } } // Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility $l_timezone = explode('.', $board_config['board_timezone']); $l_timezone = (count($l_timezone) > 1 && $l_timezone[count($l_timezone)-1] != 0) ? $lang[sprintf('%.1f', $board_config['board_timezone'])] : $lang[number_format($board_config['board_timezone'])]; // // The following assigns all _common_ variables that may be used at any point // in a template. // $template->assign_vars(array( 'SITENAME' => $board_config['sitename'], 'SITE_DESCRIPTION' => $board_config['site_desc'], 'PAGE_TITLE' => $page_title, 'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], $s_last_visit), 'CURRENT_TIME' => sprintf($lang['Current_time'], create_date($board_config['default_dateformat'], time(), $board_config['board_timezone'])), 'TOTAL_USERS_ONLINE' => $l_online_users, 'LOGGED_IN_USER_LIST' => $online_userlist, 'RECORD_USERS' => sprintf($lang['Record_online_users'], $board_config['record_online_users'], create_date($board_config['default_dateformat'], $board_config['record_online_date'], $board_config['board_timezone'])), 'PRIVATE_MESSAGE_INFO' => $l_privmsgs_text, 'PRIVATE_MESSAGE_INFO_UNREAD' => $l_privmsgs_text_unread, 'PRIVATE_MESSAGE_NEW_FLAG' => $s_privmsg_new, 'PRIVMSG_IMG' => $icon_pm, 'L_USERNAME' => $lang['Username'], 'L_PASSWORD' => $lang['Password'], 'L_LOGIN_LOGOUT' => $l_login_logout, 'L_LOGIN' => $lang['Login'], 'L_LOG_ME_IN' => $lang['Log_me_in'], 'L_AUTO_LOGIN' => $lang['Log_me_in'], 'L_INDEX' => $board_config['sitename'], 'L_REGISTER' => $lang['Register'], 'L_PROFILE' => $lang['Profile'], 'L_SEARCH' => $lang['Search'], 'L_PRIVATEMSGS' => $mx_priv_msg, 'L_WHO_IS_ONLINE' => $lang['Who_is_Online'], 'L_MEMBERLIST' => $lang['Memberlist'], 'L_FAQ' => $lang['FAQ'], 'L_USERGROUPS' => $lang['Usergroups'], 'L_SEARCH_NEW' => $lang['Search_new'], 'L_SEARCH_UNANSWERED' => $lang['Search_unanswered'], 'L_SEARCH_SELF' => $lang['Search_your_posts'], 'L_WHOSONLINE_ADMIN' => sprintf($lang['Admin_online_color'], '<span style="color:#' . $theme['fontcolor3'] . '">', '</span>'), 'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '<span style="color:#' . $theme['fontcolor2'] . '">', '</span>'), 'U_SEARCH_UNANSWERED' => append_sid(PHPBB_URL . 'search.'.$phpEx.'?search_id=unanswered'), 'U_SEARCH_SELF' => append_sid(PHPBB_URL .'search.'.$phpEx.'?search_id=egosearch'), 'U_SEARCH_NEW' => append_sid(PHPBB_URL .'search.'.$phpEx.'?search_id=newposts'), 'U_REGISTER' => append_sid(PHPBB_URL .'profile.'.$phpEx.'?mode=register'), 'U_PROFILE' => append_sid(PHPBB_URL .'profile.'.$phpEx.'?mode=editprofile'), 'U_PRIVATEMSGS' => append_sid(PHPBB_URL .'privmsg.'.$phpEx.'?folder=inbox'), 'U_PRIVATEMSGS_POPUP' => append_sid(PHPBB_URL .'privmsg.'.$phpEx.'?mode=newpm'), 'U_SEARCH' => append_sid(PHPBB_URL .'search.'.$phpEx), 'U_MEMBERLIST' => append_sid(PHPBB_URL .'memberlist.'.$phpEx), 'U_MODCP' => append_sid(PHPBB_URL .'modcp.'.$phpEx), 'U_FAQ' => append_sid(PHPBB_URL .'faq.'.$phpEx), 'U_VIEWONLINE' => append_sid(PHPBB_URL .'viewonline.'.$phpEx), 'U_LOGIN_LOGOUT' => append_sid(PORTAL_URL . $u_login_logout), 'U_GROUP_CP' => append_sid(PHPBB_URL . 'groupcp.'.$phpEx), //+ MX System 'U_PORTAL_ROOT_PATH' => PORTAL_URL, 'U_PHPBB_ROOT_PATH' => PHPBB_URL, 'TEMPLATE_ROOT_PATH' => TEMPLATE_ROOT_PATH, 'L_FORUM' => $lang['Forum'], 'L_HOME' => $lang['Home Page'], 'U_INDEX_FORUM' => append_sid(PORTAL_URL . 'index.'.$phpEx . '?page=2'), 'U_INDEX' => append_sid(PORTAL_URL . 'index.'.$phpEx), //- MX System 'S_CONTENT_DIRECTION' => $lang['DIRECTION'], 'S_CONTENT_ENCODING' => $lang['ENCODING'], 'S_CONTENT_DIR_LEFT' => $lang['LEFT'], 'S_CONTENT_DIR_RIGHT' => $lang['RIGHT'], 'S_TIMEZONE' => sprintf($lang['All_times'], $l_timezone), 'S_LOGIN_ACTION' => append_sid(PORTAL_URL . 'login.'.$phpEx), 'T_HEAD_STYLESHEET' => $theme['head_stylesheet'], 'T_BODY_BACKGROUND' => $theme['body_background'], 'T_BODY_BGCOLOR' => '#'.$theme['body_bgcolor'], 'T_BODY_TEXT' => '#'.$theme['body_text'], 'T_BODY_LINK' => '#'.$theme['body_link'], 'T_BODY_VLINK' => '#'.$theme['body_vlink'], 'T_BODY_ALINK' => '#'.$theme['body_alink'], 'T_BODY_HLINK' => '#'.$theme['body_hlink'], 'T_TR_COLOR1' => '#'.$theme['tr_color1'], 'T_TR_COLOR2' => '#'.$theme['tr_color2'], 'T_TR_COLOR3' => '#'.$theme['tr_color3'], 'T_TR_CLASS1' => $theme['tr_class1'], 'T_TR_CLASS2' => $theme['tr_class2'], 'T_TR_CLASS3' => $theme['tr_class3'], 'T_TH_COLOR1' => '#'.$theme['th_color1'], 'T_TH_COLOR2' => '#'.$theme['th_color2'], 'T_TH_COLOR3' => '#'.$theme['th_color3'], 'T_TH_CLASS1' => $theme['th_class1'], 'T_TH_CLASS2' => $theme['th_class2'], 'T_TH_CLASS3' => $theme['th_class3'], 'T_TD_COLOR1' => '#'.$theme['td_color1'], 'T_TD_COLOR2' => '#'.$theme['td_color2'], 'T_TD_COLOR3' => '#'.$theme['td_color3'], 'T_TD_CLASS1' => $theme['td_class1'], 'T_TD_CLASS2' => $theme['td_class2'], 'T_TD_CLASS3' => $theme['td_class3'], 'T_FONTFACE1' => $theme['fontface1'], 'T_FONTFACE2' => $theme['fontface2'], 'T_FONTFACE3' => $theme['fontface3'], 'T_FONTSIZE1' => $theme['fontsize1'], 'T_FONTSIZE2' => $theme['fontsize2'], 'T_FONTSIZE3' => $theme['fontsize3'], 'T_FONTCOLOR1' => '#'.$theme['fontcolor1'], 'T_FONTCOLOR2' => '#'.$theme['fontcolor2'], 'T_FONTCOLOR3' => '#'.$theme['fontcolor3'], 'T_SPAN_CLASS1' => $theme['span_class1'], 'T_SPAN_CLASS2' => $theme['span_class2'], 'T_SPAN_CLASS3' => $theme['span_class3'], 'NAV_LINKS' => $nav_links_html) ); // // Show portal front page info/links? // if ( $page_id != 1 || $portal_config[top_phpbb_links] == 0 ) { $template->assign_block_vars('portal_top_links_off', array()); } // // Login box? // if ( !$userdata['session_logged_in'] ) { $template->assign_block_vars('switch_user_logged_out', array()); } else { $template->assign_block_vars('switch_user_logged_in', array()); if ( !empty($userdata['user_popup_pm']) ) { $template->assign_block_vars('switch_enable_pm_popup', array()); } } // Add no-cache control for cookies if they are set //$c_no_cache = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_data'])) ? 'no-cache="set-cookie", ' : ''; // Work around for "current" Apache 2 + PHP module which seems to not // cope with private cache control setting if (!empty($HTTP_SERVER_VARS['SERVER_SOFTWARE']) && strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Apache/2')) { header ('Cache-Control: no-cache, pre-check=0, post-check=0'); } else { header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0'); } header ('Expires: 0'); header ('Pragma: no-cache'); include( $mx_root_path . 'mx_meta.inc' ); $meta_str = '<meta name="title" content="' . $title .'" />' . "\n"; $meta_str .= '<meta name="author" content="' . $author .'" />' . "\n"; $meta_str .= '<meta name="copyright" content="' . $copyright .'" />' . "\n"; $meta_str .= '<meta name="keywords" content="' . $keywords .'" />' . "\n"; $meta_str .= '<meta name="description" lang="' . $langcode .'" content="'. $description .'" />' . "\n"; $meta_str .= '<meta name="category" content="' . $rating .'" />' . "\n"; $meta_str .= '<meta name="robots" content="' . $index . ',' . $follow .'" />' . "\n"; $meta_str .= $header . "\n"; $template->assign_vars(array( 'META' => $meta_str) ); $template->pparse('overall_header'); ?> --- NEW FILE: mx_constants.php --- <?php /*************************************************************************** * mx_constants.php * ------------------- * begin : May, 2002 * copyright : (C) 2002 MX-System * email : su...@mx... * * $Id: mx_constants.php,v 1.1 2005/05/06 06:47:58 jonohlsson Exp $ ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License', or * ('at your option) any later version. * ***************************************************************************/ if ( !defined('IN_PORTAL') ) { die("Hacking attempt"); } // Page numbers for session handling define('PAGE_FORUM' , -20); define('PAGE_ADS' , -21); define('PAGE_CALENDAR' , -22); define('PAGE_WELCOME' , -23); define('PAGE_LAST_MSG' , -24); define('PAGE_WELCOME_ADMIN', -25); define('PAGE_POLL' , -26); define('PAGE_URL' , -27); define('PAGE_WEATHER' , -28); define('PAGE_NEWS' , -37); define('PAGE_MENU_NAV' , -29); define('PAGE_ADS_POST' , -30); define('PAGE_ALBUM' , -39); define('PAGE_MENU_ADMIN', -31); define('PAGE_MODULE_ADMIN', -32); define('PAGE_PORTAL_ADMIN', -33); define('PAGE_META_ADMIN' , -34); define('PAGE_ADS_ADMIN' , -35); define('PAGE_ANNOUNCEMENT', -36); define('PAGE_WEATHER_EDIT', -38); define('PAGE_ANNOUNCEMENT_ADMIN' , -35); // Table names define('ADS_TABLE', $mx_table_prefix.'block_ads'); define('WELCOME_TABLE', $mx_table_prefix.'welcome_msg'); define('WEB_LINKS_TABLE', $mx_table_prefix.'links'); define('PORTAL_TABLE', $mx_table_prefix.'portal'); define('WEATHER_TABLE', $mx_table_prefix.'weather'); define('MENU_NAV_TABLE', $mx_table_prefix.'menu_nav'); define('MENU_CAT_TABLE', $mx_table_prefix.'menu_categories'); define('CALENDAR_TABLE', $mx_table_prefix.'calendar'); define('CALENDAR_CAT_TABLE', $mx_table_prefix.'calendar_categories'); define('MODULE_TABLE', $mx_table_prefix.'module'); define('FUNCTION_TABLE', $mx_table_prefix.'function'); define('PARAMETER_TABLE', $mx_table_prefix.'parameter'); define('PARAMETER_OPTION_TABLE', $mx_table_prefix.'parameter_option'); define('PAGE_TABLE' , $mx_table_prefix.'page'); define('COLUMN_TABLE' , $mx_table_prefix.'column'); define('COLUMN_BLOCK_TABLE', $mx_table_prefix.'column_block'); define('BLOCK_TABLE', $mx_table_prefix.'block'); define('BLOCK_SYSTEM_PARAMETER_TABLE', $mx_table_prefix.'block_system_parameter'); define('BLOCK_USER_PARAMETER_TABLE', $mx_table_prefix.'block_user_parameter'); define('CONFIG_WEATHER_TABLE', $mx_table_prefix.'config_weather'); define('CONFIG_WEATHER_DET_TABLE', $mx_table_prefix.'config_weather_det'); define('DOWNLOAD_LICENSE_TABLE' , $mx_table_prefix.'download_license'); define('DOWNLOAD_CATEGORIES_TABLE', $mx_table_prefix.'download_cat'); define('DOWNLOAD_FILES_TABLE' , $mx_table_prefix.'download_files'); define('DOWNLOAD_VOTES_TABLE' , $mx_table_prefix.'download_votes'); define('AUTH_ANONYMOUS', 99); ?> --- NEW FILE: mx_functions.php --- <?php /*************************************************************************** * mx_functions.php * ------------------- * begin : May, 2002 * copyright : (C) 2002 MX-System * email : su...@mx... * * $Id: mx_functions.php,v 1.1 2005/05/06 06:47:58 jonohlsson Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License', or * ('at your option) any later version. * [...1944 lines suppressed...] if ( !$p_result = $db->sql_query( $sql ) ) { mx_message_die( GENERAL_ERROR, "Could not query column list", "", __LINE__, __FILE__, $sql ); } $p_row = $db->sql_fetchrow( $p_result ); $return_key = $p_row['page_id']; if ( !empty( $return_key ) ) { return $return_key; } else { return ''; } } ?> |
Update of /cvsroot/mxbb/core27x/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/admin Added Files: admin_mx_block.php admin_mx_block_edit.php admin_mx_chkobjs.php admin_mx_gen_cache.php admin_mx_menu.php admin_mx_meta.php admin_mx_module.php admin_mx_page.php admin_mx_page_setting.php admin_mx_phpinfo.php admin_mx_portal.php index.php page_footer_admin.php page_header_admin.php pagestart.php Log Message: Initital core 2.7.x commit :-) --- NEW FILE: admin_mx_phpinfo.php --- <?php /** ------------------------------------------------------------------------ * subject : mxBB-Portal * begin : june, 2002 * copyright : (C) 2002-2005 mxBB-Portal * email : jon...@ho... * project site : www.mx-system.com * * description : * ------------------------------------------------------------------------- * $Id: admin_mx_phpinfo.php,v 1.1 2005/05/06 06:47:56 jonohlsson Exp $ */ /** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */ if ( !empty($setmodules) ) { $file = basename(__FILE__); $module['Portal - System']['phpInfo'] = 'admin/' . $file; return; } define('IN_PORTAL', 1); $mx_root_path = '../'; // // Security and page header // require('./pagestart.php'); // // Capture the phpInfo output // ob_start(); phpinfo(); $output = ob_get_contents(); ob_end_clean(); // // Extract the BODY part. // preg_match_all('#<body[^>]*>(.*)</body>#siU', $output, $body_part); $body_part = $body_part[1][0]; // // Remove all, but some HTML Tags. // $allowedTags = '<h1><h2><h3><hr><ul><ol><li><b><i><u>'. '<a><pre><blockquote><img><div><span><p><br>'. '<table><tr><td><th><thead><tbody><tfoot>'; $body_part = strip_tags($body_part, $allowedTags); // // Alter some CSS related attributes. // $body_part = preg_replace('# (style|class)=["\'](.*?)["\']#si', '', $body_part); $body_part = preg_replace('#<hr(.*?)>#si', '<hr size="1" width="600" />', $body_part); $body_part = preg_replace('#<img(.*?)>#si', '<img style="float:right; border:0px;"\1>', $body_part); $body_part = preg_replace('#<td(.*?)>(.*?)</td>#si', '<td\1><span class="genmed">\2</span></td>', $body_part); $body_part = preg_replace('#cellpadding="(.*?)"#si', 'cellpadding="2"', $body_part); $body_part = preg_replace('#cellspacing="(.*?)"#si', '', $body_part); $body_part = preg_replace('#<table(.*?)>#si', '<table\1 cellspacing="1" class="forumline" style="margin-left:auto;margin-right:auto;">', $body_part); $body_part = preg_replace('#<td(.*?)>#si', '<td\1 class="row1">', $body_part); $body_part = preg_replace('#<td(.*?)class="row1">#si', '<td\1class="row2">', $body_part); // // Send the formatted result to the browser. // $template->set_filenames(array('phpinfo' => 'admin/admin_mx_phpinfo.tpl')); $template->assign_vars(array('PHPINFO' => $body_part)); $template->pparse('phpinfo'); // // Send page footer. // include_once('page_footer_admin.' . $phpEx); ?> --- NEW FILE: admin_mx_page.php --- <?php /*************************************************************************** * admin_mx_page.php * ------------------- * begin : mars, 2003 * copyright : (C) 2003 MX-System * email : su...@mx... * * $Id: admin_mx_page.php,v 1.1 2005/05/06 06:47:56 jonohlsson Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ $no_page_header = TRUE; if( !empty($setmodules) ) { $file = basename(__FILE__); $module['Portal - General']['Page_admin'] = 'admin/' . $file; return; } define('IN_PORTAL', 1); $mx_root_path = '../'; // // Security and page header // require('./pagestart.php'); // // Mode setting // if( isset($HTTP_POST_VARS['mode']) || isset($HTTP_GET_VARS['mode']) ) { $mode = ( isset($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; } else { $mode = ""; } if( isset($HTTP_POST_VARS['page_id']) || isset($HTTP_GET_VARS['page_id']) ) { $page_id = ( isset($HTTP_POST_VARS['page_id']) ) ? $HTTP_POST_VARS['page_id'] : $HTTP_GET_VARS['page_id']; } if( !empty($mode) ) { switch($mode) { case 'add': case 'edit': page_edit( $mode, $page_id ); break; case 'create': case 'modify': page_modify( $mode, $page_id ); break; case 'delete': page_delete( $mode, $page_id ); break; case 'delpage': page_delete( $mode, $page_id ); break; default: mx_message_die(GENERAL_MESSAGE, $lang['No_mode']); break; } exit; } // CODE STARTS HERE $template->set_filenames(array( "body" => 'admin/mx_page_admin_edit.tpl') ); $sql = "SELECT * FROM " . PAGE_TABLE . " ORDER BY page_id"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, "Couldn't get list of page", "", __LINE__, __FILE__, $sql); } $row_count = 0; while( $tblock[$row_count] = $db->sql_fetchrow($result) ) { $page_id = $tblock[$row_count]['page_id']; $template->assign_block_vars("pages", array( 'ID' => $page_id, 'NAME' => $tblock[$row_count]['page_name'], 'U_PAGES' => append_sid( PORTAL_URL . "admin/admin_mx_page_setting.php?page_id=" . $page_id), 'ICON' => PORTAL_URL . TEMPLATE_ROOT_PATH. "images/" . $tblock[$row_count]['page_icon'], 'U_EDIT' => append_sid( PORTAL_URL . "admin/admin_mx_page.$phpEx?mode=edit&page_id=$page_id"), 'U_SETTING' => append_sid( PORTAL_URL . "admin/admin_mx_page_setting.php?page_id=" . $page_id), 'U_DELETE' => append_sid( PORTAL_URL . "admin/admin_mx_page.$phpEx?mode=delete&id=$page_id") )); $row_count++; } $template->assign_vars(array( 'S_ACTION' => append_sid( PORTAL_URL . "admin/admin_mx_page.$phpEx?mode=add"), 'BLOCK_SIZE' => ( !empty( $block_size ) ? $block_size : '100%' ) , 'L_TITLE' => $lang['Page_admin'], 'L_EDIT' => $lang['Edit'], 'L_SETTING' => $lang['Settings'], 'L_DELETE' => $lang['Delete'], 'L_CREATE_PAGE' => $lang['Add_Page'] )); include_once('./page_header_admin.'.$phpEx); $template->pparse("body"); include_once('./page_footer_admin.'.$phpEx); // CODE ENDS HERE (obviously) exit; // ****************************************************************** // // // ****************************************************************** function page_edit( $mode, $page_id ) { global $template, $lang, $db, $board_config, $theme, $HTTP_GET_VARS, $HTTP_POST_VARS; $auth_fields = array('auth_view'); $auth_ary = array( "auth_view" => AUTH_ALL ); $auth_levels = array('ALL', 'REG', 'PRIVATE', 'MOD', 'ADMIN', 'ANONYMOUS'); $auth_const = array(AUTH_ALL, AUTH_REG, AUTH_ACL, AUTH_MOD, AUTH_ADMIN, AUTH_ANONYMOUS); $field_names = array( 'auth_view' => $lang['View']); // // Show form to create/modify a page // if ($mode == 'edit') { // $newmode determines if we are going to INSERT or UPDATE after posting? $newmode = 'modify'; $buttonvalue = $lang['Update']; $row = get_info( PAGE_TABLE, 'page_id', $page_id); $page_name = $row['page_name']; $page_icon = $row['page_icon']; $page_header = empty($row['page_header']) ? 'overall_header.tpl' : $row['page_header']; $page_group_auth_id = $row['auth_view_group']; } else { $newmode = 'create'; $buttonvalue = $lang['Submit']; $page_name = $HTTP_POST_VARS[page_name]; $page_icon = empty($row['page_icon']) ? 'icon_home.gif' : $row['page_icon']; $page_header = empty($row['page_header']) ? 'overall_header.tpl' : $row['page_header']; $sql = "SELECT MAX( page_id ) AS page_id FROM " . PAGE_TABLE; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't get page information", "", __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $page_id = $row['page_id'] + 1; } $template->set_filenames(array( "edit_page" => "admin/mx_page_edit_body.tpl") ); $s_hidden_fields = '<input type="hidden" name="mode" value="' . $newmode .'" /><input type="hidden" name="page_id" value="' . $page_id . '" />'; // // // Output values of individual // fields // for($j = 0; $j < count($auth_fields); $j++) { $custom_auth[$j] = ' <select name="' . $auth_fields[$j] . '">'; for($k = 0; $k < count($auth_levels); $k++) { $selected = ( $row[$auth_fields[$j]] == $auth_const[$k] ) ? ' selected="selected"' : ''; $custom_auth[$j] .= '<option value="' . $auth_const[$k] . '"' . $selected . '>' . $lang['AUTH_' . $auth_levels[$k]] . '</option>'; } $custom_auth[$j] .= '</select> '; $custom_group_auth = mx_get_groups($page_group_auth_id); $cell_title = $field_names[$auth_fields[$j]]; $template->assign_block_vars('page_auth_titles', array( 'CELL_TITLE' => $cell_title) ); $template->assign_block_vars('page_auth_data', array( 'S_AUTH_GROUP_LEVELS_SELECT' => $custom_group_auth, 'L_AUTH_GROUP_LEVELS_SELECT' => $lang['Auth_Page_group'], 'S_AUTH_LEVELS_SELECT' => $custom_auth[$j]) ); $s_column_span++; } $template->assign_vars(array( 'L_TITLE' => $lang['Page_admin'], 'L_EXPLAIN' => $lang['Page_admin_explain'], 'L_PAGE_NAME' => $lang['Page'], 'L_PAGE_ID' => empty( $lang['Page_Id'] ) ? "Page Id" : $lang['Page_Id'] , 'L_PAGE_ICON' => empty( $lang['Page_icon'] ) ? "Page Icon" : $lang['Page_icon'] , 'L_PAGE_HEADER' => empty( $lang['Page_header'] ) ? "Page header file" : $lang['Page_header'] , 'L_AUTH_TITLE' => empty( $lang['Auth_Page'] ) ? "Permission" : $lang['Auth_Page'], 'PAGE_ID' => $page_id, 'PAGE_NAME' => $page_name, 'PAGE_ICON' => $page_icon, 'PAGE_HEADER' => $page_header, 'S_ACTION' => append_sid("admin_mx_page.php"), 'S_HIDDEN_FIELDS' => $s_hidden_fields, 'S_SUBMIT_VALUE' => $buttonvalue, 'S_FUNCTION_LIST' => $functionlist, )); define('IN_ADMIN', 1); include('./page_header_admin.php'); $template->pparse("edit_page"); include('./page_footer_admin.php'); } // ****************************************************************** // // Modify a page in the DB // // ****************************************************************** function page_modify( $mode, $page_id ) { global $template, $lang, $db, $board_config, $theme, $HTTP_POST_VARS; if ( $mode == "modify" ) { if ( $page_id != intval( $HTTP_POST_VARS['page_id_new']) ) { $sql = "UPDATE " . COLUMN_TABLE . " SET page_id = " . intval( $HTTP_POST_VARS['page_id_new']) . " WHERE page_id = " . $page_id; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't update page information", "", __LINE__, __FILE__, $sql); } } $sql = "UPDATE " . PAGE_TABLE . " SET page_id = " . intval( $HTTP_POST_VARS['page_id_new']) . ", page_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['page_name']) . "', page_icon = '" . str_replace("\'", "''", $HTTP_POST_VARS['page_icon']) . "', page_header = '" . str_replace("\'", "''", $HTTP_POST_VARS['page_header']) . "', auth_view = '" . $HTTP_POST_VARS['auth_view'] . "', auth_view_group = '" . $HTTP_POST_VARS['auth_view_group'] . "' WHERE page_id = " . $page_id; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't update page information", "", __LINE__, __FILE__, $sql); } } if ( $mode == "create" ) { $sql = "INSERT INTO " . PAGE_TABLE . " ( page_id, page_name, page_icon, auth_view, auth_view_group, page_header ) VALUES ( '$HTTP_POST_VARS[page_id_new]' , '$HTTP_POST_VARS[page_name]', '$HTTP_POST_VARS[page_icon]', '$HTTP_POST_VARS[auth_view]', '$HTTP_POST_VARS[auth_view_group]', '$HTTP_POST_VARS[page_header]' )"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't insert page information", "", __LINE__, __FILE__, $sql); } } $message = $lang['Portal_Config_updated'] . "<br /><br />" . sprintf($lang['Click_return_portal_config'], "<a href=\"" . append_sid("admin_mx_page.php") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.php?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); }; // ****************************************************************** // // Delete a page // // ****************************************************************** function page_delete( $mode, $page_id ) { global $template, $lang, $db, $board_config, $theme, $HTTP_POST_VARS; if ( $mode == "delete" ) { $template->set_filenames(array( "admin_page" => "admin/mx_page_delete_body.tpl") ); $buttonvalue = $lang['Delete']; $newmode = 'delpage'; $s_hidden_fields = '<input type="hidden" name="mode" value="' . $newmode . '" />'; $page_name = get_list( "page_id", PAGE_TABLE, 'page_id', 'page_name', $page_id, TRUE); $template->assign_vars(array( 'NAME' => $name, 'L_PAGE_DELETE' => $lang['Page_admin'], 'L_PAGE_DELETE_EXPLAIN' => $lang['Page_admin_explain'], 'L_PAGE_NAME' => $lang['Page'], 'NAME' => $page_name, "S_HIDDEN_FIELDS" => $s_hidden_fields, 'S_PAGE_ACTION' => append_sid("admin_mx_page.php"), 'S_SUBMIT_VALUE' => $buttonvalue) ); define('IN_ADMIN', 1); include_once('./page_header_admin.php'); $template->pparse("admin_page"); include_once('./page_footer_admin.php'); } if ( $mode == "delpage" ) { $sql = "SELECT column_id FROM " . COLUMN_TABLE . " WHERE page_id = " . $page_id; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't get list of Column", "", __LINE__, __FILE__, $sql); } while( $row = $db->sql_fetchrow($result) ) { $sql = "DELETE FROM " . COLUMN_BLOCK_TABLE . " WHERE column_id = " . $row[column_id] ; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't delete column/block information", "", __LINE__, __FILE__, $sql); } } $sql = "DELETE FROM " . COLUMN_TABLE . " WHERE page_id = " . $page_id; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't delete page information", "", __LINE__, __FILE__, $sql); } $sql = "DELETE FROM " . PAGE_TABLE . " WHERE page_id = " . $page_id; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't delete page information", "", __LINE__, __FILE__, $sql); } $message = $lang['Portal_Config_updated'] . "<br /><br />" . sprintf($lang['Click_return_portal_config'], "<a href=\"" . append_sid("admin_mx_page.php") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.php?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); } }; ?> --- NEW FILE: admin_mx_chkobjs.php --- <?php /*************************************************************************** * admin_mx_chkobjs.php * -------------------- * begin : June, 2003 * copyright : (C) 2002-2005 mxBB-Portal * email : su...@mx... * * $Id: admin_mx_chkobjs.php,v 1.1 2005/05/06 06:47:56 jonohlsson Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ // ====================================================== // [ ADMINCP COMMON INITIALIZATION ] // ====================================================== $no_page_header = TRUE; if( !empty($setmodules) ) { $module['Portal - System']['Objects_Integrity_Check'] = 'admin/' . basename(__FILE__); return; } define('IN_PORTAL', 1); $mx_root_path = '../'; // // Security and page header // require('./pagestart.php'); // ====================================================== // [ GLOBAL DATA ] // ====================================================== $main_title = "Check mxBB Objects"; $main_desc = "This utility allows you to check mxBB object relationships."; $main_info = "This report shows the relations between mxBB tables. " . "You'll see the object name next to its object identifier. " . "Whenever an object is missing (not found on the database), the row is marked with the symbol <font color=red>[?]</font>. " . "In this case, execute phpMyAdmin (or your favorite DB Control Center) and remove that row.<br /><br />" . "DISCLAIMER: This utility is released AS-IS. Please, ensure you have a working backup <u>before</u> you manually edit your DB."; $check_args = array( array( 'table' => FUNCTION_TABLE, 'fkeys' => array( array(MODULE_TABLE, 'module_id', 'module_name'), array(FUNCTION_TABLE, 'function_id', 'function_name') ) ), array( 'table' => PARAMETER_TABLE, 'fkeys' => array( array(FUNCTION_TABLE, 'function_id', 'function_name'), array(PARAMETER_TABLE, 'parameter_id', 'parameter_name') ) ), array( 'table' => PARAMETER_OPTION_TABLE, 'fkeys' => array( array(PARAMETER_TABLE, 'parameter_id', 'parameter_name'), array(PARAMETER_OPTION_TABLE, 'option_id', 'option_desc') ) ), array( 'table' => BLOCK_TABLE, 'fkeys' => array( array(FUNCTION_TABLE, 'function_id', 'function_name'), array(BLOCK_TABLE, 'block_id', 'block_title') ) ), array( 'table' => BLOCK_SYSTEM_PARAMETER_TABLE, 'fkeys' => array( array(BLOCK_TABLE, 'block_id', 'block_title'), array(PARAMETER_TABLE, 'parameter_id', 'parameter_name') ) ), array( 'table' => COLUMN_TABLE, 'fkeys' => array( array(PAGE_TABLE, 'page_id', 'page_name'), array(COLUMN_TABLE, 'column_id', 'column_title') ) ), array( 'table' => COLUMN_BLOCK_TABLE, 'fkeys' => array( array(COLUMN_TABLE, 'column_id', 'column_title'), array(BLOCK_TABLE, 'block_id', 'block_title') ) ) ); // ====================================================== // [ MAIN PROCESS ] // ====================================================== // // Check to see if we need to show the table selection box. // if( isset($HTTP_POST_VARS['check_mode']) || isset($HTTP_GET_VARS['check_mode']) ) { $check_mode = ( isset($HTTP_POST_VARS['check_mode']) ? $HTTP_POST_VARS['check_mode'] : $HTTP_GET_VARS['check_mode'] ); } else { if( !isset($HTTP_GET_VARS['mode']) ) { $select_options = '<select name="check_mode">'; for( $i=0; $i < count($check_args); $i++ ) { $selected = ( $i == $HTTP_GET_VARS['table'] ? ' selected="selected"' : '' ); $select_options .= '<option value="'.$i.'"'.$selected.'>'.$check_args[$i]['table'].'</option>'; } $select_options .= '</select>'; mx_message_die(GENERAL_MESSAGE, '<p>'.$main_desc.'</p>' . '<form action="' . append_sid(PORTAL_URL . "admin/admin_mx_chkobjs.$phpEx") . '" method="post"> ' . $select_options . ' <input type="submit" name="submit" value="' . $lang[Submit].'" class="mainoption" /></form>', $main_title ); } $mode = $HTTP_GET_VARS['mode']; $tb = $HTTP_GET_VARS['table']; $table = $check_args[$tb]['table']; $val0 = $HTTP_GET_VARS['val0']; $val1 = $HTTP_GET_VARS['val1']; $tab0 = $check_args[$tb]['fkeys'][0][0]; $key0 = $check_args[$tb]['fkeys'][0][1]; $tab1 = $check_args[$tb]['fkeys'][1][0]; $key1 = $check_args[$tb]['fkeys'][1][1]; switch($mode) { case 'delete': $sql = "DELETE FROM ".$table." WHERE $key0 = $val0 AND $key1 = $val1"; $get_vars = '&table='.$tb. '&val0='.$val0.'&val1='.$val1. '&key0='.$key0.'&key1='.$key1; $message = '<form method="post" action="' . basename(__FILE__) . '">' . '<table border="0" cellpadding="4" cellspacing="0">' . '<tr><td colspan="2"><b>' . $table . '</b></td></tr>' . '<tr><td><b>' . $key0 . ':</b> </td><td>[ ' . $val0 . ' ]</td></tr>' . '<tr><td><b>' . $key1 . ':</b> </td><td>[ ' . $val1 . ' ]</td></tr>' . '</table> <br /> <br />' . '<div style="width:80%; padding:10px; border:solid red 1px;">' . '<b>' . $lang['Confirm'] . '</b>:<br />' . $sql . '<br />' . '<br /> <br />' . '[ <a href="'.append_sid(basename(__FILE__)."?check_mode=$tb").'">'.$lang['No'].'</a> ]' . ' ' . '[ <a href="'.append_sid(basename(__FILE__).'?mode=db_delete'.$get_vars).'">'.$lang['Yes'].'</a> ]' . '</div><br /> ' . '</form>'; message_die(GENERAL_MESSAGE, $message, $my_script_title); break; case 'db_delete': $sql = "DELETE FROM ".$table." WHERE $key0 = $val0 AND $key1 = $val1"; if( !dbQuery($sql) ) { message_die(GENERAL_ERROR, "Couldn't DELETE data from table : " . $table, "", __LINE__, __FILE__, $sql); } $check_mode = $tb; break; default: break; } } include_once('./page_header_admin.php'); check_relationship($check_mode); include('./page_footer_admin.php'); exit; // ====================================================== // [ FUNCTIONS ] // ====================================================== // ------------ // // function check_relationship($tb) { global $db, $lang, $check_args, $main_title, $main_desc, $main_info; $table = $check_args[$tb]['table']; $fkeys = count($check_args[$tb]['fkeys']); for($i = 0; $i < $fkeys; $i++) { $ftab[] = $check_args[$tb]['fkeys'][$i][0]; $fkey[] = $check_args[$tb]['fkeys'][$i][1]; $fnam[] = $check_args[$tb]['fkeys'][$i][2]; } // // Build the query and check the table relations. // $sql = "SELECT * FROM ".$table." ORDER BY ".implode(',', $fkey); $result = $db->sql_query($sql); if( !$result ) { mx_message_die(GENERAL_ERROR, "Couldn't obtain the data from database.", '', __LINE__, __FILE__, $sql); } $html='<h1>' . $main_title.'</h1>' . "\n"; $html.='<p>' . $main_desc.'<br /><br />' . $main_info.'</p>' . "\n"; $html.='<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline" align="center">' . "\n"; $html.="\t" . '<tr>' . "\n"; $html.=tbHead('td', 'catHead', 5, '<b>Checking Table: '.$table.'</b>'); $html.="\t" . '</tr>' . "\n"; $html.="\t" . '<tr>' . "\n"; $html.=tbHead('td', 'cat', 5, '<a href="'.append_sid(basename(__FILE__)."?table=$tb").'"><b>Go Back</b></a>'); $html.="\t" . '</tr>' . "\n"; $html.="\t" . '<tr>' . "\n"; $html.=tbHead('th', 'thCornerL', 1, $fkey[0]); for($i = 0; $i < ($fkeys-1); $i++) { $html.=tbHead('th', 'thTop', 1, $fnam[$i]); $html.=tbHead('th', 'thTop', 1, $fkey[$i+1]); } $html.=tbHead('th', 'thTop', 1, $fnam[$fkeys-1]); $html.=tbHead('th', 'thCornerR', 1, $lang['Action']); $html.="\t" . '</tr>' . "\n"; $row_count = 0; while( $row = $db->sql_fetchrow($result) ) { $row_class = (($row_count % 2) == 0) ? 'row1' : 'row2'; $html.= "\t" . '<tr>' . "\n"; $get_vars = '&table='.$tb; for($i = 0; $i < $fkeys; $i++) { $field = $fkey[$i]; if( $ftab[$i] == $table ) { $field_key = $row[$field]; $fname = $fnam[$i]; $field_value = $row[$fname]; } else { if( !($field_value = dbFetchField($ftab[$i], $field.'='.$row[$field], $fnam[$i])) ) { $field_key = '<font color=red><b>'.$row[$field].'</b></font>'; $field_value = '<font color=red><b>[?]</b></font>'; } else { $field_key = $row[$field]; } } $get_vars .= '&val'.$i.'='.$row[$field]; $html.=tbItem('td', 'row1', 'center', $field_key); $html.=tbItem('td', 'row2', 'left' , $field_value); } $onclick = 'onclick="return confirm(\'Are you sure you want to delete this object?\');"'; $html.=tbItem('td', 'row1', 'center', '<a href="'.append_sid(basename(__FILE__).'?mode=delete'.$get_vars).'" '.$onclick.'>'.$lang['Delete'].'</a>'); $html.= "\t" . '</tr>' . "\n"; $row_count++; } $html.="\t" . '<tr>' . "\n"; $html.=tbHead('td', 'catBottom', 5, '<a href="'.append_sid(basename(__FILE__)."?table=$tb").'"><b>Go Back</b></a>'); $html.="\t" . '</tr>' . "\n"; $html.='</table><br />' . "\n"; echo $html; } function tbHead($td, $class, $colspan, $text) { return "\t\t" . '<'.$td.' class="'.$class.'" colspan="'.$colspan.'" align="center">'.$text.'</'.$td.'>' . "\n"; } function tbItem($td, $class, $align, $text) { return "\t\t" . '<'.$td.' class="'.$class.'" align="'.$align.'">'.$text.'</'.$td.'>' . "\n"; // return '<'.$td.' class="'.$class.'" align="'.$align.'"><span class="gen">'.$text.'</span></'.$td.'>' . "\n"; } // ------------ // DB Utilities // function dbFetchField($tbname, $where, $field) { $sql = "SELECT * FROM ".$tbname." WHERE ".$where; if( !($row = dbFetchRow($sql)) ) return false; return $row[$field]; } function dbFetchRow($sql) { global $db; if( !($result = $db->sql_query($sql)) ) return false; if( !($row = $db->sql_fetchrow($result)) ) return false; return $row; } function dbQuery($sql) { global $db; if( !($result = $db->sql_query($sql)) ) return false; return $result; } ?> --- NEW FILE: admin_mx_gen_cache.php --- <?php /*************************************************************************** * admin_mx_gen_cache.php * ------------------- * begin : Mars, 2003 * copyright : (C) 2003 MX-System * email : su...@mx... * * $Id: admin_mx_gen_cache.php,v 1.1 2005/05/06 06:47:56 jonohlsson Exp $ * ***************************************************************************/ $no_page_header = TRUE; if( !empty($setmodules) ) { $module['Portal - System']['Generate cache'] = 'admin/' . basename(__FILE__); return; } define('IN_PORTAL', 1); $mx_root_path = '../'; // Security and page header require('./pagestart.php'); // Getting mode of operation $generate = ( $mx_request_vars->request('generate', MX_TYPE_INT, 0) == 1 ? true : false ); // // Load default template for install // $template->set_filenames(array( 'body' => 'admin/admin_message_body.tpl') ); // Main procedure if ( !$generate ) { $message = $lang['Cache_explain'] . '<br /> <br /> <br />'; $message .= '<form action="' . append_sid(PORTAL_URL . "admin/admin_mx_gen_cache.$phpEx") . '" method="post">'; $message .= '<input type="hidden" name="generate" value="1">'; $message .= '<input type="submit" name="submit" value="' . $lang['Cache_submit'] . ' >>" class="liteoption" />'; $message .= '</form>'; } else { $cache_dir = $mx_root_path . 'cache/'; include($cache_dir . "mx_cache.$phpEx"); @mkdir($cache_dir, 0777); @chmod($cache_dir, 0777); if ( !is_writable($cache_dir) ) { $message = $lang['Cache_dir_write_protect']; mx_message_die(GENERAL_MESSAGE, $message, ''); exit; } $sql = "SELECT blk.block_id , blk.block_title , blk.block_desc , blk.function_id , blk.auth_view , blk.auth_edit , blk.auth_delete , blk.auth_view_group , blk.auth_edit_group FROM " . BLOCK_TABLE . " blk ORDER BY blk.block_id"; db2xml($sql, $cache_dir. "block_config.xml"); $sql = "SELECT sys.parameter_id , sys.block_id , par.parameter_name , sys.parameter_value , sys.bbcode_uid FROM " . BLOCK_SYSTEM_PARAMETER_TABLE . " sys, " . PARAMETER_TABLE . " par WHERE sys.parameter_id = par.parameter_id ORDER BY sys.block_id, sys.parameter_id"; db2xml($sql, $cache_dir. "block_config_param.xml"); // // Unset all session variables, so it will force // loading all cached data to the admin session. // @session_unset(); $message = $lang['Cache_generate']; } $template->assign_vars(array( 'MESSAGE_TITLE' => $lang['Generate_mx_cache'], 'MESSAGE_TEXT' => $message )); include_once("./page_header_admin.$phpEx"); $template->pparse('body'); include_once("./page_footer_admin.$phpEx"); ?> --- NEW FILE: page_footer_admin.php --- <?php /*************************************************************************** * page_footer_admin.php * ------------------- * begin : Saturday, Jul 14, 2001 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: page_footer_admin.php,v 1.1 2005/05/06 06:47:56 jonohlsson Exp $ * * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ if ( !defined('IN_PHPBB') ) { die("Hacking attempt"); } // // Show the overall footer. // $template->set_filenames(array( 'page_footer' => 'admin/page_footer.tpl') ); $template->assign_vars(array( 'PHPBB_VERSION' => ($userdata['user_level'] == ADMIN && $userdata['user_id'] != ANONYMOUS) ? '2' . $board_config['version'] : '', 'MX_VERSION' => ($userdata['user_level'] == ADMIN && $userdata['user_id'] != ANONYMOUS) ? $portal_config['portal_version'] : '', 'TRANSLATION_INFO' => $lang['TRANSLATION_INFO']) ); $template->pparse('page_footer'); // // Close our DB connection. // $db->sql_close(); // // Compress buffered output if required // and send to browser // if( $do_gzip_compress ) { // // Borrowed from php.net! // $gzip_contents = ob_get_contents(); ob_end_clean(); $gzip_size = strlen($gzip_contents); $gzip_crc = crc32($gzip_contents); $gzip_contents = gzcompress($gzip_contents, 9); $gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4); echo "\x1f\x8b\x08\x00\x00\x00\x00\x00"; echo $gzip_contents; echo pack('V', $gzip_crc); echo pack('V', $gzip_size); } exit; ?> --- NEW FILE: index.php --- <?php /*************************************************************************** * (admin) index.php * ------------------- * begin : Saturday, Feb 13, 2001 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: index.php,v 1.1 2005/05/06 06:47:56 jonohlsson Exp $ * * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ define('IN_PORTAL', 1); $mx_root_path = '../'; // // Load default header // $no_page_header = TRUE; require('./pagestart.php'); session_start(); // Unset all of the session variables. session_unset(); // --------------- // Begin functions // function inarray($needle, $haystack) { for($i = 0; $i < sizeof($haystack); $i++ ) { if( $haystack[$i] == $needle ) { return true; } } return false; } function read_admin($dir_module ) { global $phpEx, $template; $module = array(); $setmodules = 1; $dir = @opendir( $dir_module ); while( $file = @readdir($dir) ) { if( preg_match("/^admin_.*?\." . $phpEx . "$/", $file) ) { include($dir_module . '/' . $file); } } @closedir($dir); unset($setmodules); return $module; } // // End functions // ------------- // // Generate relevant output // if( isset($HTTP_GET_VARS['pane']) && $HTTP_GET_VARS['pane'] == 'left' ) { include('./page_header_admin.'.$phpEx); $template->set_filenames(array( "body" => "admin/index_navigate.tpl") ); $template->assign_vars(array( 'U_PHPBB_ROOT_PATH' => PHPBB_URL, 'TEMPLATE_ROOT_PATH' => TEMPLATE_ROOT_PATH, "U_FORUM_INDEX" => append_sid( PHPBB_URL . "index.$phpEx"), "U_PORTAL_INDEX" => append_sid( PORTAL_URL . "index.$phpEx"), "U_ADMIN_INDEX" => append_sid("index.$phpEx?pane=right"), "L_FORUM_INDEX" => $lang['Main_index'], "L_PORTAL_INDEX" => $lang['Portal_index'], "L_ADMIN_INDEX" => $lang['Admin_Index'], "L_PREVIEW_FORUM" => $lang['Preview_forum'], "L_PREVIEW_PORTAL" => $lang['Preview_portal']) ); // // Read Portal configuration // $module_portal = read_admin( "."); ksort($module_portal); $template->assign_block_vars('module_portal', array( "L_MX_PORTAL" => $lang['MX_Portal'] ) ); while( list($cat, $action_array) = each($module_portal) ) { $cat = ( !empty($lang[$cat]) ) ? $lang[$cat] : preg_replace("/_/", " ", $cat); $template->assign_block_vars("module_portal.catrow", array( "ADMIN_CATEGORY" => $cat) ); ksort($action_array); $row_count = 0; while( list($action, $file) = each($action_array) ) { $row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2']; $action = ( !empty($lang[$action]) ) ? $lang[$action] : preg_replace("/_/", " ", $action); $template->assign_block_vars("module_portal.catrow.modulerow", array( "ROW_COLOR" => "#" . $row_color, "ROW_CLASS" => $row_class, "ADMIN_MODULE" => $action, "U_ADMIN_MODULE" => append_sid( PORTAL_URL . $file)) ); $row_count++; } } // // Include PHPBB Administration // $module_phpbb = array_merge( $module, read_admin( $phpbb_root_path . "admin/" )); ksort($module_phpbb); $template->assign_block_vars('module_phpbb', array( "L_PHPBB" => $lang['Phpbb'] ) ); while( list($cat, $action_array) = each($module_phpbb) ) { $cat = ( !empty($lang[$cat]) ) ? $lang[$cat] : preg_replace("/_/", " ", $cat); $template->assign_block_vars("module_phpbb.catrow", array( "ADMIN_CATEGORY" => $cat) ); ksort($action_array); $row_count = 0; while( list($action, $file) = each($action_array) ) { $row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2']; $action = ( !empty($lang[$action]) ) ? $lang[$action] : preg_replace("/_/", " ", $action); $template->assign_block_vars("module_phpbb.catrow.modulerow", array( "ROW_COLOR" => "#" . $row_color, "ROW_CLASS" => $row_class, "ADMIN_MODULE" => $action, "U_ADMIN_MODULE" => append_sid( PHPBB_URL . 'admin/' . $file)) ); $row_count++; } } // // Read Portal Module Configuration // $sql = "SELECT * FROM " . MODULE_TABLE . " WHERE module_include_admin = 1 ORDER BY module_name"; if(!$q_modules = $db->sql_query($sql)) { message_die(GENERAL_ERROR, "Could not query modules information", "", __LINE__, __FILE__, $sql); } if( $total_modules = $db->sql_numrows($q_modules) ) { $module_rows = $db->sql_fetchrowset($q_modules); } $module_mx = array(); for($module_cnt = 0; $module_cnt < $total_modules; $module_cnt++) { $module_path_admin = $mx_root_path . $module_rows[$module_cnt]['module_path'] . "admin/"; $module_mx = array_merge_recursive( $module_mx, read_admin( $module_path_admin ) ); } // for ... modules ksort($module_mx); $template->assign_block_vars('module_mx', array( "L_MX_MODULES" => $lang['MX_Modules'] ) ); while( list($cat, $action_array) = each($module_mx) ) { $cat = ( !empty($lang[$cat]) ) ? $lang[$cat] : preg_replace("/_/", " ", $cat); $template->assign_block_vars("module_mx.catrow", array( "ADMIN_CATEGORY" => $cat) ); ksort($action_array); $row_count = 0; while( list($action, $file) = each($action_array) ) { $row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2']; $action = ( !empty($lang[$action]) ) ? $lang[$action] : preg_replace("/_/", " ", $action); $template->assign_block_vars("module_mx.catrow.modulerow", array( "ROW_COLOR" => "#" . $row_color, "ROW_CLASS" => $row_class, "ADMIN_MODULE" => $action, "U_ADMIN_MODULE" => append_sid( PORTAL_URL . $file)) ); $row_count++; } } $template->pparse("body"); include('./page_footer_admin.'.$phpEx); } elseif( isset($HTTP_GET_VARS['pane']) && $HTTP_GET_VARS['pane'] == 'right' ) { include('./page_header_admin.'.$phpEx); $template->set_filenames(array( "body" => "admin/index_body.tpl") ); $template->assign_vars(array( 'U_PHPBB_ROOT_PATH' => PHPBB_URL, 'TEMPLATE_ROOT_PATH' => TEMPLATE_ROOT_PATH, "L_WELCOME" => $lang['Welcome_phpBB'], "L_ADMIN_INTRO" => $lang['Admin_intro'], "L_FORUM_STATS" => $lang['Forum_stats'], "L_WHO_IS_ONLINE" => $lang['Who_is_Online'], "L_LOCATION" => $lang['Location'], "L_LAST_UPDATE" => $lang['Last_updated'], "L_IP_ADDRESS" => $lang['IP_Address'], "L_STATISTIC" => $lang['Statistic'], "L_VALUE" => $lang['Value'], "L_NUMBER_POSTS" => $lang['Number_posts'], "L_POSTS_PER_DAY" => $lang['Posts_per_day'], "L_NUMBER_TOPICS" => $lang['Number_topics'], "L_TOPICS_PER_DAY" => $lang['Topics_per_day'], "L_NUMBER_USERS" => $lang['Number_users'], "L_USERS_PER_DAY" => $lang['Users_per_day'], "L_BOARD_STARTED" => $lang['Board_started'], "L_AVATAR_DIR_SIZE" => $lang['Avatar_dir_size'], "L_DB_SIZE" => $lang['Database_size'], "L_FORUM_LOCATION" => $lang['Forum_Location'], "L_STARTED" => $lang['Login'], "L_GZIP_COMPRESSION" => $lang['Gzip_compression']) ); // // Get forum statistics // $total_posts = get_db_stat('postcount'); $total_users = get_db_stat('usercount'); $total_topics = get_db_stat('topiccount'); $start_date = create_date($board_config['default_dateformat'], $board_config['board_startdate'], $board_config['board_timezone']); $boarddays = ( time() - $board_config['board_startdate'] ) / 86400; $posts_per_day = sprintf("%.2f", $total_posts / $boarddays); $topics_per_day = sprintf("%.2f", $total_topics / $boarddays); $users_per_day = sprintf("%.2f", $total_users / $boarddays); $avatar_dir_size = 0; if ($avatar_dir = @opendir($phpbb_root_path . $board_config['avatar_path'])) { while( $file = @readdir($avatar_dir) ) { if( $file != "." && $file != ".." ) { $avatar_dir_size += @filesize($phpbb_root_path . $board_config['avatar_path'] . "/" . $file); } } @closedir($avatar_dir); // // This bit of code translates the avatar directory size into human readable format // Borrowed the code from the PHP.net annoted manual, origanally written by: // Jesse (je...@je...) // if($avatar_dir_size >= 1048576) { $avatar_dir_size = round($avatar_dir_size / 1048576 * 100) / 100 . " MB"; } else if($avatar_dir_size >= 1024) { $avatar_dir_size = round($avatar_dir_size / 1024 * 100) / 100 . " KB"; } else { $avatar_dir_size = $avatar_dir_size . " Bytes"; } } else { // Couldn't open Avatar dir. $avatar_dir_size = $lang['Not_available']; } if($posts_per_day > $total_posts) { $posts_per_day = $total_posts; } if($topics_per_day > $total_topics) { $topics_per_day = $total_topics; } if($users_per_day > $total_users) { $users_per_day = $total_users; } // // DB size ... MySQL only // // This code is heavily influenced by a similar routine // in phpMyAdmin 2.2.0 // if( preg_match("/^mysql/", SQL_LAYER) ) { $sql = "SELECT VERSION() AS mysql_version"; if($result = $db->sql_query($sql)) { $row = $db->sql_fetchrow($result); $version = $row['mysql_version']; if( preg_match("/^(3\.23|4\.)/", $version) ) { $db_name = ( preg_match("/^(3\.23\.[6-9])|(3\.23\.[1-9][1-9])|(4\.)/", $version) ) ? "`$dbname`" : $dbname; $sql = "SHOW TABLE STATUS FROM " . $db_name; if($result = $db->sql_query($sql)) { $tabledata_ary = $db->sql_fetchrowset($result); $dbsize = 0; for($i = 0; $i < count($tabledata_ary); $i++) { if( $tabledata_ary[$i]['Type'] != "MRG_MyISAM" ) { if( $table_prefix != "" ) { if( strstr($tabledata_ary[$i]['Name'], $table_prefix) ) { $dbsize += $tabledata_ary[$i]['Data_length'] + $tabledata_ary[$i]['Index_length']; } } else { $dbsize += $tabledata_ary[$i]['Data_length'] + $tabledata_ary[$i]['Index_length']; } } } } // Else we couldn't get the table status. } else { $dbsize = $lang['Not_available']; } } else { $dbsize = $lang['Not_available']; } } else if( preg_match("/^mssql/", SQL_LAYER) ) { $sql = "SELECT ((SUM(size) * 8.0) * 1024.0) as dbsize FROM sysfiles"; if( $result = $db->sql_query($sql) ) { $dbsize = ( $row = $db->sql_fetchrow($result) ) ? intval($row['dbsize']) : $lang['Not_available']; } else { $dbsize = $lang['Not_available']; } } else { $dbsize = $lang['Not_available']; } if ( is_integer($dbsize) ) { if( $dbsize >= 1048576 ) { $dbsize = sprintf("%.2f MB", ( $dbsize / 1048576 )); } else if( $dbsize >= 1024 ) { $dbsize = sprintf("%.2f KB", ( $dbsize / 1024 )); } else { $dbsize = sprintf("%.2f Bytes", $dbsize); } } $template->assign_vars(array( "NUMBER_OF_POSTS" => $total_posts, "NUMBER_OF_TOPICS" => $total_topics, "NUMBER_OF_USERS" => $total_users, "START_DATE" => $start_date, "POSTS_PER_DAY" => $posts_per_day, "TOPICS_PER_DAY" => $topics_per_day, "USERS_PER_DAY" => $users_per_day, "AVATAR_DIR_SIZE" => $avatar_dir_size, "DB_SIZE" => $dbsize, "GZIP_COMPRESSION" => ( $board_config['gzip_compress'] ) ? $lang['ON'] : $lang['OFF']) ); // // End forum statistics // // // Get users online information. // $sql = "SELECT u.user_id, u.username, u.user_session_time, u.user_session_page, s.session_logged_in, s.session_ip, s.session_start FROM " . USERS_TABLE . " u, " . SESSIONS_TABLE . " s WHERE s.session_logged_in = " . TRUE . " AND u.user_id = s.session_user_id AND u.user_id <> " . ANONYMOUS . " AND u.user_session_time >= " . ( time() - 300 ) . " ORDER BY u.user_session_time DESC"; if(!$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, "Couldn't obtain regd user/online information.", "", __LINE__, __FILE__, $sql); } $onlinerow_reg = $db->sql_fetchrowset($result); $sql = "SELECT session_page, session_logged_in, session_time, session_ip, session_start FROM " . SESSIONS_TABLE . " WHERE session_logged_in = 0 AND session_time >= " . ( time() - 300 ) . " ORDER BY session_time DESC"; if(!$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, "Couldn't obtain guest user/online information.", "", __LINE__, __FILE__, $sql); } $onlinerow_guest = $db->sql_fetchrowset($result); $sql = "SELECT forum_name, forum_id FROM " . FORUMS_TABLE; if($forums_result = $db->sql_query($sql)) { while($forumsrow = $db->sql_fetchrow($forums_result)) { $forum_data[$forumsrow['forum_id']] = $forumsrow['forum_name']; } } else { message_die(GENERAL_ERROR, "Couldn't obtain user/online forums information.", "", __LINE__, __FILE__, $sql); } $reg_userid_ary = array(); if( count($onlinerow_reg) ) { $registered_users = 0; for($i = 0; $i < count($onlinerow_reg); $i++) { if( !inarray($onlinerow_reg[$i]['user_id'], $reg_userid_ary) ) { $reg_userid_ary[] = $onlinerow_reg[$i]['user_id']; $username = $onlinerow_reg[$i]['username']; if( $onlinerow_reg[$i]['user_allow_viewonline'] || $userdata['user_level'] == ADMIN ) { $registered_users++; $hidden = FALSE; } else { $hidden_users++; $hidden = TRUE; } if( $onlinerow_reg[$i]['user_session_page'] < 1 ) { switch($onlinerow_reg[$i]['user_session_page']) { case PAGE_INDEX: $location = $lang['Forum_index']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_POSTING: $location = $lang['Posting_message']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_LOGIN: $location = $lang['Logging_on']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_SEARCH: $location = $lang['Searching_forums']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_PROFILE: $location = $lang['Viewing_profile']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_VIEWONLINE: $location = $lang['Viewing_online']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_VIEWMEMBERS: $location = $lang['Viewing_member_list']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_PRIVMSGS: $location = $lang['Viewing_priv_msgs']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_FAQ: $location = $lang['Viewing_FAQ']; $location_url = "index.$phpEx?pane=right"; break; default: $location = $lang['Forum_index']; $location_url = "index.$phpEx?pane=right"; } } else { $location_url = append_sid("admin_forums.$phpEx?mode=editforum&" . POST_FORUM_URL . "=" . $onlinerow_reg[$i]['user_session_page']); $location = $forum_data[$onlinerow_reg[$i]['user_session_page']]; } $row_color = ( $registered_users % 2 ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( $registered_users % 2 ) ? $theme['td_class1'] : $theme['td_class2']; $reg_ip = decode_ip($onlinerow_reg[$i]['session_ip']); $template->assign_block_vars("reg_user_row", array( "ROW_COLOR" => "#" . $row_color, "ROW_CLASS" => $row_class, "USERNAME" => $username, "STARTED" => create_date($board_config['default_dateformat'], $onlinerow_reg[$i]['session_start'], $board_config['board_timezone']), "LASTUPDATE" => create_date($board_config['default_dateformat'], $onlinerow_reg[$i]['user_session_time'], $board_config['board_timezone']), "FORUM_LOCATION" => $location, "IP_ADDRESS" => $reg_ip, "U_WHOIS_IP" => "http://www.samspade.org/t/ipwhois?a=$reg_ip", "U_USER_PROFILE" => append_sid("admin_users.$phpEx?mode=edit&" . POST_USERS_URL . "=" . $onlinerow_reg[$i]['user_id']), "U_FORUM_LOCATION" => append_sid($location_url)) ); } } } else { $template->assign_vars(array( "L_NO_REGISTERED_USERS_BROWSING" => $lang['No_users_browsing']) ); } // // Guest users // if( count($onlinerow_guest) ) { $guest_users = 0; for($i = 0; $i < count($onlinerow_guest); $i++) { $guest_userip_ary[] = $onlinerow_guest[$i]['session_ip']; $guest_users++; if( $onlinerow_guest[$i]['session_page'] < 1 ) { switch( $onlinerow_guest[$i]['session_page'] ) { case PAGE_INDEX: $location = $lang['Forum_index']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_POSTING: $location = $lang['Posting_message']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_LOGIN: $location = $lang['Logging_on']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_SEARCH: $location = $lang['Searching_forums']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_PROFILE: $location = $lang['Viewing_profile']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_VIEWONLINE: $location = $lang['Viewing_online']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_VIEWMEMBERS: $location = $lang['Viewing_member_list']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_PRIVMSGS: $location = $lang['Viewing_priv_msgs']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_FAQ: $location = $lang['Viewing_FAQ']; $location_url = "index.$phpEx?pane=right"; break; default: $location = $lang['Forum_index']; $location_url = "index.$phpEx?pane=right"; } } else { $location_url = append_sid("admin_forums.$phpEx?mode=editforum&" . POST_FORUM_URL . "=" . $onlinerow_guest[$i]['session_page']); $location = $forum_data[$onlinerow_guest[$i]['session_page']]; } $row_color = ( $guest_users % 2 ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( $guest_users % 2 ) ? $theme['td_class1'] : $theme['td_class2']; $guest_ip = decode_ip($onlinerow_guest[$i]['session_ip']); $template->assign_block_vars("guest_user_row", array( "ROW_COLOR" => "#" . $row_color, "ROW_CLASS" => $row_class, "USERNAME" => $lang['Guest'], "STARTED" => create_date($board_config['default_dateformat'], $onlinerow_guest[$i]['session_start'], $board_config['board_timezone']), "LASTUPDATE" => create_date($board_config['default_dateformat'], $onlinerow_guest[$i]['session_time'], $board_config['board_timezone']), "FORUM_LOCATION" => $location, "IP_ADDRESS" => $guest_ip, "U_WHOIS_IP" => "http://www.samspade.org/t/ipwhois?a=$guest_ip", "U_FORUM_LOCATION" => append_sid($location_url)) ); } } else { $template->assign_vars(array( "L_NO_GUESTS_BROWSING" => $lang['No_users_browsing']) ); } $template->pparse("body"); include('./page_footer_admin.'.$phpEx); } else { // // Generate frameset // $template->set_filenames(array( "body" => "admin/index_frameset.tpl") ); $template->assign_vars(array( "S_FRAME_NAV" => append_sid("index.$phpEx?pane=left"), "S_FRAME_MAIN" => append_sid("index.$phpEx?pane=right")) ); header ("Expires: " . gmdate("D, d M Y H:i:s", time()) . " GMT"); header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); $template->pparse("body"); $db->sql_close(); exit; } ?> --- NEW FILE: page_header_admin.php --- <?php /*************************************************************************** * page_header_admin.php * ------------------- * begin : Saturday, Feb 13, 2001 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: page_header_admin.php,v 1.1 2005/05/06 06:47:56 jonohlsson Exp $ * * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ if ( !defined('IN_PORTAL') ) { die("Hacking attempt"); } define('HEADER_INC', true); /********** NOTE: The following code related to GZIP initialization has been temporaly moved to the new mx_session_start() function, declared in mx_functions.php // // gzip_compression // $do_gzip_compress = FALSE; if ( $board_config['gzip_compress'] ) { $phpver = phpversion(); $useragent = (isset($HTTP_SERVER_VARS['HTTP_USER_AGENT'])) ? $HTTP_SERVER_VARS['HTTP_USER_AGENT'] : getenv('HTTP_USER_AGENT'); if ( $phpver >= '4.0.4pl1' && ( strstr($useragent,'compatible') || strstr($useragent,'Gecko') ) ) { if ( extension_loaded('zlib') ) { ob_end_clean(); ob_start('ob_gzhandler'); } } else if ( $phpver > '4.0' ) { if ( strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') ) { if ( extension_loaded('zlib') ) { $do_gzip_compress = TRUE; ob_start(); ob_implicit_flush(0); header('Content-Encoding: gzip'); } } } } **********/ $template->set_filenames(array( 'header' => 'admin/page_header.tpl') ); // Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility $l_timezone = explode('.', $board_config['board_timezone']); $l_timezone = (count($l_timezone) > 1 && $l_timezone[count($l_timezone)-1] != 0) ? $lang[sprintf('%.1f', $board_config['board_timezone'])] : $lang[number_format($board_config['board_timezone'])]; // // The following assigns all _common_ variables that may be used at any point // in a template. Note that all URL's should be wrapped in append_sid, as // should all S_x_ACTIONS for forms. // $template->assign_vars(array( 'SITENAME' => $board_config['sitename'], 'PAGE_TITLE' => $page_title, 'L_ADMIN' => $lang['Admin'], 'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']), 'L_FAQ' => $lang['FAQ'], 'L_MX_ADMIN' => 'MX-System Portal Administration', 'U_INDEX' => append_sid('../index.'.$phpEx), 'S_TIMEZONE' => sprintf($lang['All_times'], $l_timezone), 'S_LOGIN_ACTION' => append_sid('../login.'.$phpEx), 'S_JUMPBOX_ACTION' => append_sid('../viewforum.'.$phpEx), 'S_CURRENT_TIME' => sprintf($lang['Current_time'], create_date($board_config['default_dateformat'], time(), $board_config['board_timezone'])), 'S_CONTENT_DIRECTION' => $lang['DIRECTION'], 'S_CONTENT_ENCODING' => $lang['ENCODING'], 'S_CONTENT_DIR_LEFT' => $lang['LEFT'], 'S_CONTENT_DIR_RIGHT' => $lang['RIGHT'], 'U_PHPBB_ROOT_PATH' => PHPBB_URL, 'TEMPLATE_ROOT_PATH' => TEMPLATE_ROOT_PATH, 'T_HEAD_STYLESHEET' => $theme['head_stylesheet'], 'T_BODY_BACKGROUND' => $theme['body_background'], 'T_BODY_BGCOLOR' => '#'.$theme['body_bgcolor'], 'T_BODY_TEXT' => '#'.$theme['body_text'], 'T_BODY_LINK' => '#'.$theme['body_link'], 'T_BODY_VLINK' => '#'.$theme['body_vlink'], 'T_BODY_ALINK' => '#'.$theme['body_alink'], 'T_BODY_HLINK' => '#'.$theme['body_hlink'], 'T_TR_COLOR1' => '#'.$theme['tr_color1'], 'T_TR_COLOR2' => '#'.$theme['tr_color2'], 'T_TR_COLOR3' => '#'.$theme['tr_color3'], 'T_TR_CLASS1' => $theme['tr_class1'], 'T_TR_CLASS2' => $theme['tr_class2'], 'T_TR_CLASS3' => $theme['tr_class3'], 'T_TH_COLOR1' => '#'.$theme['th_color1'], 'T_TH_COLOR2' => '#'.$theme['th_color2'], 'T_TH_COLOR3' => '#'.$theme['th_color3'], 'T_TH_CLASS1' => $theme['th_class1'], 'T_TH_CLASS2' => $theme['th_class2'], 'T_TH_CLASS3' => $theme['th_class3'], 'T_TD_COLOR1' => '#'.$theme['td_color1'], 'T_TD_COLOR2' => '#'.$theme['td_color2'], 'T_TD_COLOR3' => '#'.$theme['td_color3'], 'T_TD_CLASS1' => $theme['td_class1'], 'T_TD_CLASS2' => $theme['td_class2'], 'T_TD_CLASS3' => $theme['td_class3'], 'T_FONTFACE1' => $theme['fontface1'], 'T_FONTFACE2' => $theme['fontface2'], 'T_FONTFACE3' => $theme['fontface3'], 'T_FONTSIZE1' => $theme['fontsize1'], 'T_FONTSIZE2' => $theme['fontsize2'], 'T_FONTSIZE3' => $theme['fontsize3'], 'T_FONTCOLOR1' => '#'.$theme['fontcolor1'], 'T_FONTCOLOR2' => '#'.$theme['fontcolor2'], 'T_FONTCOLOR3' => '#'.$theme['fontcolor3'], 'T_SPAN_CLASS1' => $theme['span_class1'], 'T_SPAN_CLASS2' => $theme['span_class2'], 'T_SPAN_CLASS3' => $theme['span_class3']) ); $template->pparse('header'); ?> --- NEW FILE: admin_mx_block.php --- <?php /*************************************************************************** * admin_mx_block.php * ------------------- * begin : juin, 2002 * copyright : (C) 2002 MX-System * email : su...@mx... * * $Id: admin_mx_block.php,v 1.1 2005/05/06 06:47:56 jonohlsson Exp $ * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ $no_page_header = TRUE; if( !empty($setmodules) ) { $file = basename(__FILE__); $module['Portal - Modules']['Block_admin'] = 'admin/' . $file; return; } define('IN_PORTAL', 1); $mx_root_path = '../'; // // Security and page header // require('./pagestart.php'); // // Mode setting // if( isset($HTTP_POST_VARS['mode']) || isset($HTTP_GET_VARS['mode']) ) { $mode = ( isset($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; } else { $mode = ""; } if( !empty($mode) ) { switch($mode) { case 'save_setting': $block_id = intval($HTTP_GET_VARS[block_id]); block_save_setting( $block_id ); break; case 'add_block': case 'edit_block': block_edit( $mode ); break; case 'create_block': block_create_block( ); break; case 'delete_block': $block_id = intval($HTTP_GET_VARS[block_id]); block_delete( $block_id ); break; case 'modify_block': $block_id = intval($HTTP_POST_VARS[block_id]); block_modify( $block_id ); break; case 'setting': $block_id = intval($HTTP_GET_VARS[block_id]); block_setting( $block_id ); break; default: mx_message_die(GENERAL_MESSAGE, $lang['No_mode']); break; } if ( ! $show_index ) { exit; } } // if .. !empty($mode) // // Start page proper // $template->set_filenames(array( "admin_block" => "admin/mx_block_admin_body.tpl") ); $template->assign_vars(array( 'S_ACTION' => append_sid("admin_mx_block." . $phpEx . '?mode=add_block'), 'L_TITLE' => $lang['Block_admin'], 'L_EXPLAIN' => $lang['Block_admin_explain'], 'U_PORTAL_ROOT_PATH' => PORTAL_URL, 'TEMPLATE_ROOT_PATH' => TEMPLATE_ROOT_PATH, 'L_CREATE_BLOCK' => ( !empty ($lang['Create_block'] )) ? $lang['Create_block'] : 'Create new block' , 'L_EDIT' => $lang['Edit'], 'L_SETTING' => $lang['Settings'], 'L_DELETE' => $lang['Delete'], 'L_MOVE_UP' => $lang['Move_up'], 'L_MOVE_DOWN' => $lang['Move_down'], 'L_RESYNC' => $lang['Resync'] ) ); $sql = "SELECT blk.*, function_admin FROM " . BLOCK_TABLE . " blk, " . FUNCTION_TABLE . " fnc WHERE blk.function_id = fnc.function_id ORDER BY block_title"; if(!$q_blocks = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, "Could not query blocks information", "", __LINE__, __FILE__, $sql); } if( $total_blocks = $db->sql_numrows($q_blocks) ) { $block_rows = $db->sql_fetchrowset($q_blocks); } // // let's build lists of module // for($j = 0; $j < $total_blocks; $j++) { $block_id = $block_rows[$j]['block_id']; if ( !empty( $block_rows[$j]['function_admin'] ) ) { $l_setting = $lang['Settings']; $u_setting = append_sid( PORTAL_URL . $block_rows[$j]['function_admin'] . "?block_id=$block_id"); } else { $u_setting = ''; $l_setting = ''; // Show Block Settings even if no BLOCK_SYSTEM_PARAMETER_TABLE row exists. // admin_mx_block.php will populate them if necessary (see B4). $param_rows = get_exists( PARAMETER_TABLE, 'function_id', $block_rows[$j]['function_id']); // $param_rows = get_exists( BLOCK_SYSTEM_PARAMETER_TABLE, 'block_id', $block_id); if ( $param_rows['number'] >0 ) { $l_setting = $lang['Settings']; $u_setting = append_sid("admin_mx_block.$phpEx?mode=setting&block_id=$block_id"); } } $template->assign_block_vars("blockrow", array( 'L_SETTING' => $l_setting, 'BLOCK_TITLE' => $block_rows[$j]['block_title'], 'BLOCK_DESC' => $blo... [truncated message content] |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:06
|
Update of /cvsroot/mxbb/core27x/contrib/sync_overall_header In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/contrib/sync_overall_header Added Files: how to.txt overall_header.tpl overall_header_mxstyle.tpl overall_header_mxstyle_toPHPBB.tpl overall_header_phpbbstyle.tpl overall_header_phpbbstyle_toPHPBB.tpl Log Message: Initital core 2.7.x commit :-) --- NEW FILE: overall_header_phpbbstyle_toPHPBB.tpl --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html dir="{S_CONTENT_DIRECTION}"> <head> <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}"> <meta http-equiv="Content-Style-Type" content="text/css"> {META} {NAV_LINKS} <title>{SITENAME} :: {PAGE_TITLE}</title> <!-- link rel="stylesheet" href="templates/subSilver/{T_HEAD_STYLESHEET}" type="text/css" --> <style type="text/css"> <!-- /* The original subSilver Theme for phpBB version 2+ Created by subBlue design http://www.subBlue.com Modified by Haplo (jon...@ho...) NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 theme administration centre. When you have finalised your style you could cut the final CSS code and place it in an external file, deleting this section to save bandwidth. */ /* General page style. The scroll bar colours only visible in IE5.5+ */ body { background-color: {T_BODY_BGCOLOR}; scrollbar-face-color: {T_TR_COLOR2}; scrollbar-highlight-color: {T_TD_COLOR2}; scrollbar-shadow-color: {T_TR_COLOR2}; scrollbar-3dlight-color: {T_TR_COLOR3}; scrollbar-arrow-color: {T_BODY_LINK}; scrollbar-track-color: {T_TR_COLOR1}; scrollbar-darkshadow-color: {T_TH_COLOR1}; } /* General font families for common tags */ font,th,td,p { font-family: {T_FONTFACE1} } a:link,a:active,a:visited { color : {T_BODY_LINK}; } a:hover { text-decoration: underline; color : {T_BODY_HLINK}; } hr { height: 0px; border: solid {T_TR_COLOR3} 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ .bodyline { background-color: {T_TD_COLOR2}; border: 1px {T_TH_COLOR1} solid; } /* This is the outline round the main forum tables */ .forumline { background-color: {T_TD_COLOR2}; border: 2px {T_TH_COLOR2} solid; } /* Main table cell colours and backgrounds */ td.row1 { background-color: {T_TR_COLOR1}; } td.row2 { background-color: {T_TR_COLOR2}; } td.row3 { background-color: {T_TR_COLOR3}; } /* This is for the table cell above the Topics, Post & Last posts on the index.php page By default this is the fading out gradiated silver background. However, you could replace this with a bitmap specific for each forum */ td.rowpic { background-color: {T_TD_COLOR2}; background-image: url(templates/subSilver/images/{T_TH_CLASS3}); background-repeat: repeat-y; } /* Header cells - the blue and silver gradient backgrounds */ th { color: {T_FONTCOLOR3}; font-size: {T_FONTSIZE2}px; font-weight : bold; background-color: {T_BODY_LINK}; height: 25px; background-image: url(templates/subSilver/images/{T_TH_CLASS2}); } td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom,td.catHeadWelcome { background-image: url(templates/subSilver/images/{T_TH_CLASS1}); background-color:{T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; height: 28px; } /* Setting additional nice inner borders for the main table cells. The names indicate which sides the border will be on. Don't worry if you don't understand this, just ignore it :-) */ td.cat,td.catHead,td.catBottom,td.catHeadWelcome { height: 29px; border-width: 0px 0px 0px 0px; } th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { font-weight: bold; border: {T_TD_COLOR2}; border-style: solid; height: 28px; } th.thTop { font-weight: normal; } td.row3Right,td.spaceRow { background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; } th.thHead,td.catHead { font-size: {T_FONTSIZE3}px; border-width: 1px 1px 0px 1px; } <!-- Added by Jon --> td.catHeadWelcome { font-size: {T_FONTSIZE3}px; border-width: 0px 0px 0px 0px; } th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { font-size: {T_FONTSIZE3}px; border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ .maintitle { font-weight: bold; font-size: 22px; font-family: "{T_FONTFACE2}",{T_FONTFACE1}; text-decoration: none; line-height : 120%; color : {T_BODY_TEXT}; } /* General text */ .gen { font-size : {T_FONTSIZE3}px; } .genmed { font-size : {T_FONTSIZE2}px; } .gensmall { font-size : {T_FONTSIZE1}px; } .gen,.genmed,.gensmall { color : {T_BODY_TEXT}; } a.gen,a.genmed,a.gensmall { color: {T_BODY_LINK}; text-decoration: none; } a.gen:hover,a.genmed:hover,a.gensmall:hover { color: {T_BODY_HLINK}; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ .mainmenu { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT} } a.mainmenu { text-decoration: none; color : {T_BODY_LINK}; } a.mainmenu:hover{ text-decoration: underline; color : {T_BODY_HLINK}; } /* Forum category titles */ .cattitle { font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}} a.cattitle { text-decoration: none; color : {T_BODY_LINK}; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ .forumlink { font-weight: bold; font-size: {T_FONTSIZE3}px; color : {T_BODY_LINK}; } a.forumlink { text-decoration: none; color : {T_BODY_LINK}; } a.forumlink:hover{ text-decoration: underline; color : {T_BODY_HLINK}; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ .nav { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT};} a.nav { text-decoration: none; color : {T_BODY_LINK}; } a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ .topictitle,h1,h2 { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT}; } a.topictitle:link { text-decoration: none; color : {T_BODY_LINK}; } a.topictitle:visited { text-decoration: none; color : {T_BODY_VLINK}; } a.topictitle:hover { text-decoration: underline; color : {T_BODY_HLINK}; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ .name { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT};} /* Location, number of posts, post date etc */ .postdetails { font-size : {T_FONTSIZE1}px; color : {T_BODY_TEXT}; } /* The content of the posts (body of text) */ .postbody { font-size : {T_FONTSIZE3}px; line-height: 18px} a.postlink:link { text-decoration: none; color : {T_BODY_LINK} } a.postlink:visited { text-decoration: none; color : {T_BODY_VLINK}; } a.postlink:hover { text-decoration: underline; color : {T_BODY_HLINK}} /* Quote & Code blocks */ .code { font-family: {T_FONTFACE3}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR2}; background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { font-family: {T_FONTFACE1}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR1}; line-height: 125%; background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ .copyright { font-size: {T_FONTSIZE1}px; font-family: {T_FONTFACE1}; color: {T_FONTCOLOR1}; letter-spacing: -1px;} a.copyright { color: {T_FONTCOLOR1}; text-decoration: none;} a.copyright:hover { color: {T_BODY_TEXT}; text-decoration: underline;} /* Form elements */ form { margin-bottom:0px; } input,textarea, select { color : {T_BODY_TEXT}; font: normal {T_FONTSIZE2}px {T_FONTFACE1}; border-color : {T_BODY_TEXT}; } /* The text input fields background colour */ input.post, textarea.post, select { background-color : {T_TD_COLOR2}; } input { text-indent : 2px; } /* The buttons used for bbCode styling in message post */ input.button { background-color : {T_TR_COLOR1}; color : {T_BODY_TEXT}; font-size: {T_FONTSIZE2}px; font-family: {T_FONTFACE1}; } /* The main submit button option */ input.mainoption { background-color : {T_TD_COLOR1}; font-weight : bold; } /* None-bold submit button */ input.liteoption { background-color : {T_TD_COLOR1}; font-weight : normal; } /* This is the line in the posting page which shows the rollover help line. This is actually a text box, but if set to be the same colour as the background no one will know ;) */ .helpline { background-color: {T_TR_COLOR2}; border-style: none; } .mxlink { background-color: {T_BODY_BGCOLOR}; border-style: none; font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}} /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ @import url("templates/subSilver/formIE.css"); --> </style> <!-- BEGIN switch_enable_pm_popup --> <script language="Javascript" type="text/javascript"> <!-- if ( {PRIVATE_MESSAGE_NEW_FLAG} ) { window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; } //--> </script> <!-- END switch_enable_pm_popup --> <SCRIPT type=text/javascript> <!-- function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } function changeImages() { if (document.images ) { for (var i=0; i<changeImages.arguments.length; i+=2) { document[changeImages.arguments[i]].src = changeImages.arguments[i+1]; } } } // --> </SCRIPT> <!-- End Preload Script --> </head> <body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}" /> <a name="top"></a> <table width="100%" cellspacing="0" cellpadding="10" border="0" align="center"> <tr> <td class="bodyline"> <!-- BEGIN switch_view --> <table width="{BLOCK_SIZE}" cellspacing="0" cellpadding="10" border="0" align="top"> <tr> <td align="left" valign="bottom"><span class="gensmall">{CURRENT_TIME}</span></td> </tr> <tr> <td align="left" valign="bottom"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td> </tr> </table> <!-- END switch_view --> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td> <a href="{U_PORTAL_HOME}"><img src="../templates/subSilver/images/logo_mx-system.gif" border="0" alt="{L_INDEX}" vspace="1" /></a> </td> <td align="center" width="100%" valign="middle"> <table cellspacing="0" cellpadding="2" border="0"> <tr> <td align="center" valign="middle"> <span class="maintitle">{SITENAME}</span><br /> <span class="gen">{SITE_DESCRIPTION} <br /> </span> </td> </tr> <tr> <td align="center" valign="top" nowrap> <span class="mainmenu"> <a href="{U_PORTAL_FORUM}" class="mainmenu"><img src="templates/SubSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{L_PORTAL_FORUM}" hspace="3" />{L_PORTAL_FORUM}</a> <a href="{U_FAQ}" class="mainmenu"><img src="templates/SubSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a> </span> <span class="mainmenu"> <a href="{U_SEARCH}" class="mainmenu"><img src="templates/SubSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a> <a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/SubSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a> <a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/SubSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a> </span> </td> </tr> <tr> <td height="25" align="center" valign="top" nowrap> <span class="mainmenu"> <!-- BEGIN switch_user_logged_out --> <a href="{U_REGISTER}" class="mainmenu"><img src="templates/SubSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a> <!-- END switch_user_logged_out --> <a href="{U_PROFILE}" class="mainmenu"><img src="templates/SubSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a> <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/SubSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a> <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/SubSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a> </span> </td> </tr> </table> </td> </tr> </table> <br clear="all" /> --- NEW FILE: how to.txt --- HOW TO ...syncronize the phpbb and mx overall_headers 1) Upload this overall_header.tpl, overwriting existing phpbb overall_header.tpl 2) In phpbb/includes/page_header.php, add some mx defs OPEN phpbb/includes/page_header.php FIND 'U_GROUP_CP' => append_sid('groupcp.'.$phpEx), AFTER ADD // // MX Definitions for syncronized overall_header // // Define the relative path to mx, eg ../mx/ or ../ or whatever 'MX_ROOT_PATH' => '../core/', 'TEMPLATE_ROOT_PATH' => 'templates/'.$theme['template_name'], 'L_FORUM' => $lang['Forum'], // // Use either 'sitename' or manual definfition in lang_main for the home link text! // Note: if using $lang['Portal_home'], you have to add the entry in lang_main youself // for example: // $lang['Portal_home'] = 'Portal Home'; // before // That's all, Folks! // // 'L_HOME' => $board_config['sitename'], 'L_HOME' => $lang['Portal_home'], 'U_INDEX_FORUM' => append_sid( 'index.'.$phpEx . '?page=2'), 'U_INDEX' => append_sid( 'index.'.$phpEx), // Additional header links are defined accordinly // // END MX // 3) If using the user defined L_HOME entry, add the lang def to lang_main (optional) OPEN phpbb/language/.../lang_main.php FIND // // That's all, Folks! BEFORE ADD // MX addon for syncronized overall_header $lang['Portal_home'] = 'Portal Home'; --- NEW FILE: overall_header.tpl --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html dir="{S_CONTENT_DIRECTION}"> <head> <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}"> <meta http-equiv="Content-Style-Type" content="text/css"> {META} {NAV_LINKS} <title>{SITENAME} :: {PAGE_TITLE}</title> <!-- link rel="stylesheet" href="templates/subSilver/{T_HEAD_STYLESHEET}" type="text/css" --> <style type="text/css"> <!-- /* The original subSilver Theme for phpBB version 2+ Created by subBlue design http://www.subBlue.com NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 theme administration centre. When you have finalised your style you could cut the final CSS code and place it in an external file, deleting this section to save bandwidth. */ /* General page style. The scroll bar colours only visible in IE5.5+ */ body { background-color: {T_BODY_BGCOLOR}; scrollbar-face-color: {T_TR_COLOR2}; scrollbar-highlight-color: {T_TD_COLOR2}; scrollbar-shadow-color: {T_TR_COLOR2}; scrollbar-3dlight-color: {T_TR_COLOR3}; scrollbar-arrow-color: {T_BODY_LINK}; scrollbar-track-color: {T_TR_COLOR1}; scrollbar-darkshadow-color: {T_TH_COLOR1}; } /* General font families for common tags */ font,th,td,p { font-family: {T_FONTFACE1} } a:link,a:active,a:visited { color : {T_BODY_LINK}; } a:hover { text-decoration: underline; color : {T_BODY_HLINK}; } hr { height: 0px; border: solid {T_TR_COLOR3} 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ .bodyline { background-color: {T_TD_COLOR2}; border: 1px {T_TH_COLOR1} solid; } /* This is the outline round the main forum tables */ .forumline { background-color: {T_TD_COLOR2}; border: 2px {T_TH_COLOR2} solid; } /* Main table cell colours and backgrounds */ td.row1 { background-color: {T_TR_COLOR1}; } td.row2 { background-color: {T_TR_COLOR2}; } td.row3 { background-color: {T_TR_COLOR3}; } /* This is for the table cell above the Topics, Post & Last posts on the index.php page By default this is the fading out gradiated silver background. However, you could replace this with a bitmap specific for each forum */ td.rowpic { background-color: {T_TD_COLOR2}; background-image: url(templates/subSilver/images/{T_TH_CLASS3}); background-repeat: repeat-y; } /* Header cells - the blue and silver gradient backgrounds */ th { color: {T_FONTCOLOR3}; font-size: {T_FONTSIZE2}px; font-weight : bold; background-color: {T_BODY_LINK}; height: 25px; background-image: url(templates/subSilver/images/{T_TH_CLASS2}); } td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { background-image: url(templates/subSilver/images/{T_TH_CLASS1}); background-color:{T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; height: 28px; } /* Setting additional nice inner borders for the main table cells. The names indicate which sides the border will be on. Don't worry if you don't understand this, just ignore it :-) */ td.cat,td.catHead,td.catBottom { height: 29px; border-width: 0px 0px 0px 0px; } th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { font-weight: bold; border: {T_TD_COLOR2}; border-style: solid; height: 28px; } td.row3Right,td.spaceRow { background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; } th.thHead,td.catHead { font-size: {T_FONTSIZE3}px; border-width: 1px 1px 0px 1px; } th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ .maintitle { font-weight: bold; font-size: 22px; font-family: "{T_FONTFACE2}",{T_FONTFACE1}; text-decoration: none; line-height : 120%; color : {T_BODY_TEXT}; } /* General text */ .gen { font-size : {T_FONTSIZE3}px; } .genmed { font-size : {T_FONTSIZE2}px; } .gensmall { font-size : {T_FONTSIZE1}px; } .gen,.genmed,.gensmall { color : {T_BODY_TEXT}; } a.gen,a.genmed,a.gensmall { color: {T_BODY_LINK}; text-decoration: none; } a.gen:hover,a.genmed:hover,a.gensmall:hover { color: {T_BODY_HLINK}; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ .mainmenu { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT} } a.mainmenu { text-decoration: none; color : {T_BODY_LINK}; } a.mainmenu:hover{ text-decoration: underline; color : {T_BODY_HLINK}; } /* Forum category titles */ .cattitle { font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}} a.cattitle { text-decoration: none; color : {T_BODY_LINK}; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ .forumlink { font-weight: bold; font-size: {T_FONTSIZE3}px; color : {T_BODY_LINK}; } a.forumlink { text-decoration: none; color : {T_BODY_LINK}; } a.forumlink:hover{ text-decoration: underline; color : {T_BODY_HLINK}; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ .nav { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT};} a.nav { text-decoration: none; color : {T_BODY_LINK}; } a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ .topictitle,h1,h2 { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT}; } a.topictitle:link { text-decoration: none; color : {T_BODY_LINK}; } a.topictitle:visited { text-decoration: none; color : {T_BODY_VLINK}; } a.topictitle:hover { text-decoration: underline; color : {T_BODY_HLINK}; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ .name { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT};} /* Location, number of posts, post date etc */ .postdetails { font-size : {T_FONTSIZE1}px; color : {T_BODY_TEXT}; } /* The content of the posts (body of text) */ .postbody { font-size : {T_FONTSIZE3}px; line-height: 18px} a.postlink:link { text-decoration: none; color : {T_BODY_LINK} } a.postlink:visited { text-decoration: none; color : {T_BODY_VLINK}; } a.postlink:hover { text-decoration: underline; color : {T_BODY_HLINK}} /* Quote & Code blocks */ .code { font-family: {T_FONTFACE3}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR2}; background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { font-family: {T_FONTFACE1}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR1}; line-height: 125%; background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ .copyright { font-size: {T_FONTSIZE1}px; font-family: {T_FONTFACE1}; color: {T_FONTCOLOR1}; letter-spacing: -1px;} a.copyright { color: {T_FONTCOLOR1}; text-decoration: none;} a.copyright:hover { color: {T_BODY_TEXT}; text-decoration: underline;} /* Form elements */ input,textarea, select { color : {T_BODY_TEXT}; font: normal {T_FONTSIZE2}px {T_FONTFACE1}; border-color : {T_BODY_TEXT}; } /* The text input fields background colour */ input.post, textarea.post, select { background-color : {T_TD_COLOR2}; } input { text-indent : 2px; } /* The buttons used for bbCode styling in message post */ input.button { background-color : {T_TR_COLOR1}; color : {T_BODY_TEXT}; font-size: {T_FONTSIZE2}px; font-family: {T_FONTFACE1}; } /* The main submit button option */ input.mainoption { background-color : {T_TD_COLOR1}; font-weight : bold; } /* None-bold submit button */ input.liteoption { background-color : {T_TD_COLOR1}; font-weight : normal; } /* This is the line in the posting page which shows the rollover help line. This is actually a text box, but if set to be the same colour as the background no one will know ;) */ .helpline { background-color: {T_TR_COLOR2}; border-style: none; } /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ @import url("templates/subSilver/formIE.css"); --> </style> <!-- BEGIN switch_enable_pm_popup --> <script language="Javascript" type="text/javascript"> <!-- if ( {PRIVATE_MESSAGE_NEW_FLAG} ) { window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; } //--> </script> <!-- END switch_enable_pm_popup --> </head> <body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}"> <a name="top"></a> <table width="100%" cellspacing="0" cellpadding="10" border="0" align="center"> <tr> <td class="bodyline"><table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td align="center" valign="middle"><a href="{MX_ROOT_PATH}{U_INDEX}"><img src="{MX_ROOT_PATH}{TEMPLATE_ROOT_PATH}/images/logo_mx-system.gif" border="0" alt="{L_INDEX}" vspace="1"/></a></td> </tr> <tr> <td align="center" width="100%" valign="middle"> <table cellspacing="6" cellpadding="2" border="0"> <tr> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{MX_ROOT_PATH}{U_INDEX}" class="mainmenu"><img src="{MX_ROOT_PATH}/{TEMPLATE_ROOT_PATH}/images/nav_home.gif" border="0" alt="{L_HOME}" hspace="3" /></a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{MX_ROOT_PATH}{U_INDEX_FORUM}" class="mainmenu"><img src="{MX_ROOT_PATH}/{TEMPLATE_ROOT_PATH}/images/nav_forum.gif" border="0" alt="{L_FORUM}" hspace="3" /></a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_PROFILE}" class="mainmenu"><img src="{MX_ROOT_PATH}{TEMPLATE_ROOT_PATH}/images/nav_profile.gif" border="0" alt="{L_PROFILE}" hspace="3" /></a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_FAQ}" class="mainmenu"><img src="{MX_ROOT_PATH}{TEMPLATE_ROOT_PATH}/images/nav_help.gif" border="0" alt="{L_FAQ}" hspace="3" /></a></span></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_SEARCH}" class="mainmenu"><img src="{MX_ROOT_PATH}{TEMPLATE_ROOT_PATH}/images/nav_search.gif" border="0" alt="{L_SEARCH}" hspace="3" /></a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_MEMBERLIST}" class="mainmenu"><img src="{MX_ROOT_PATH}{TEMPLATE_ROOT_PATH}/images/nav_members.gif" border="0" alt="{L_MEMBERLIST}" hspace="3" /></a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="{MX_ROOT_PATH}{TEMPLATE_ROOT_PATH}/images/nav_email.gif" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" /></a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="{MX_ROOT_PATH}{TEMPLATE_ROOT_PATH}/images/nav_login.gif" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" /></span></td> <!-- BEGIN switch_user_logged_out --> <td height="15" align="center" valign="top" nowrap><a href="{U_REGISTER}" class="mainmenu"><img src="{MX_ROOT_PATH}{TEMPLATE_ROOT_PATH}/images/nav_register.gif" border="0" alt="{L_REGISTER}" hspace="3" /></a></span></td> <!-- END switch_user_logged_out --> </td> </tr> <tr> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{MX_ROOT_PATH}{U_INDEX}" class="mainmenu">{L_HOME}</a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{MX_ROOT_PATH}{U_INDEX_FORUM}" class="mainmenu">{L_FORUM}</a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_PROFILE}" class="mainmenu">{L_PROFILE}</a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_FAQ}" class="mainmenu">{L_FAQ}</a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_SEARCH}" class="mainmenu">{L_SEARCH}</a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_MEMBERLIST}" class="mainmenu">{L_MEMBERLIST}</a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_PRIVATEMSGS}" class="mainmenu">{L_PRIVATEMSGS}</a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_LOGIN_LOGOUT}" class="mainmenu">{L_LOGIN_LOGOUT} </span></td> <!-- BEGIN switch_user_logged_out --> <td height="15" align="center" valign="top" nowrap><a href="{U_REGISTER}" class="mainmenu">{L_REGISTER}</a></span></td> <!-- END switch_user_logged_out --> </td> </table> </td> </tr> </td> </tr> </table> <br /> --- NEW FILE: overall_header_mxstyle_toPHPBB.tpl --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html dir="{S_CONTENT_DIRECTION}"> <head> <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}"> <meta http-equiv="Content-Style-Type" content="text/css"> {META} {NAV_LINKS} <title>{SITENAME} :: {PAGE_TITLE}</title> <!-- link rel="stylesheet" href="templates/subSilver/{T_HEAD_STYLESHEET}" type="text/css" --> <style type="text/css"> <!-- /* The original subSilver Theme for phpBB version 2+ Created by subBlue design http://www.subBlue.com NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 theme administration centre. When you have finalised your style you could cut the final CSS code and place it in an external file, deleting this section to save bandwidth. */ /* General page style. The scroll bar colours only visible in IE5.5+ */ body { background-color: {T_BODY_BGCOLOR}; scrollbar-face-color: {T_TR_COLOR2}; scrollbar-highlight-color: {T_TD_COLOR2}; scrollbar-shadow-color: {T_TR_COLOR2}; scrollbar-3dlight-color: {T_TR_COLOR3}; scrollbar-arrow-color: {T_BODY_LINK}; scrollbar-track-color: {T_TR_COLOR1}; scrollbar-darkshadow-color: {T_TH_COLOR1}; } /* General font families for common tags */ font,th,td,p { font-family: {T_FONTFACE1} } a:link,a:active,a:visited { color : {T_BODY_LINK}; } a:hover { text-decoration: underline; color : {T_BODY_HLINK}; } hr { height: 0px; border: solid {T_TR_COLOR3} 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ .bodyline { background-color: {T_TD_COLOR2}; border: 1px {T_TH_COLOR1} solid; } /* This is the outline round the main forum tables */ .forumline { background-color: {T_TD_COLOR2}; border: 1px {T_TH_COLOR2} solid; } /* Main table cell colours and backgrounds */ td.row1 { background-color: {T_TR_COLOR1}; } td.row2 { background-color: {T_TR_COLOR2}; } td.row3 { background-color: {T_TR_COLOR3}; } /* This is for the table cell above the Topics, Post & Last posts on the index.php page By default this is the fading out gradiated silver background. However, you could replace this with a bitmap specific for each forum */ td.rowpic { background-color: {T_TD_COLOR2}; background-image: url(templates/subSilver/images/{T_TH_CLASS3}); background-repeat: repeat-y; } /* Header cells - the blue and silver gradient backgrounds */ th { color: {T_FONTCOLOR3}; font-size: {T_FONTSIZE2}px; font-weight : bold; background-color: {T_BODY_LINK}; height: 25px; background-image: url(templates/subSilver/images/{T_TH_CLASS2}); } td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { background-image: url(templates/subSilver/images/{T_TH_CLASS1}); background-color:{T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; height: 28px; } /* Setting additional nice inner borders for the main table cells. The names indicate which sides the border will be on. Don't worry if you don't understand this, just ignore it :-) */ td.cat,td.catHead,td.catBottom { height: 29px; border-width: 0px 0px 0px 0px; } th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { font-weight: bold; border: {T_TD_COLOR2}; border-style: solid; height: 28px; } td.row3Right,td.spaceRow { background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; } th.thHead,td.catHead { font-size: {T_FONTSIZE3}px; border-width: 1px 1px 0px 1px; } th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { font-size: {T_FONTSIZE3}px; border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ .maintitle { font-weight: bold; font-size: 22px; font-family: "{T_FONTFACE2}",{T_FONTFACE1}; text-decoration: none; line-height : 120%; color : {T_BODY_TEXT}; } /* General text */ .gen { font-size : {T_FONTSIZE3}px; } .genmed { font-size : {T_FONTSIZE2}px; } .gensmall { font-size : {T_FONTSIZE1}px; } .gen,.genmed,.gensmall { color : {T_BODY_TEXT}; } a.gen,a.genmed,a.gensmall { color: {T_BODY_LINK}; text-decoration: none; } a.gen:hover,a.genmed:hover,a.gensmall:hover { color: {T_BODY_HLINK}; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ .mainmenu { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT} } a.mainmenu { text-decoration: none; color : {T_BODY_LINK}; } a.mainmenu:hover{ text-decoration: underline; color : {T_BODY_HLINK}; } /* Forum category titles */ .cattitle { font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}} a.cattitle { text-decoration: none; color : {T_BODY_LINK}; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ .forumlink { font-weight: bold; font-size: {T_FONTSIZE3}px; color : {T_BODY_LINK}; } a.forumlink { text-decoration: none; color : {T_BODY_LINK}; } a.forumlink:hover{ text-decoration: underline; color : {T_BODY_HLINK}; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ .nav { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT};} a.nav { text-decoration: none; color : {T_BODY_LINK}; } a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ .topictitle,h1,h2 { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT}; } a.topictitle:link { text-decoration: none; color : {T_BODY_LINK}; } a.topictitle:visited { text-decoration: none; color : {T_BODY_VLINK}; } a.topictitle:hover { text-decoration: underline; color : {T_BODY_HLINK}; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ .name { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT};} /* Location, number of posts, post date etc */ .postdetails { font-size : {T_FONTSIZE1}px; color : {T_BODY_TEXT}; } /* The content of the posts (body of text) */ .postbody { font-size : {T_FONTSIZE3}px; line-height: 18px} a.postlink:link { text-decoration: none; color : {T_BODY_LINK} } a.postlink:visited { text-decoration: none; color : {T_BODY_VLINK}; } a.postlink:hover { text-decoration: underline; color : {T_BODY_HLINK}} /* Quote & Code blocks */ .code { font-family: {T_FONTFACE3}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR2}; background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { font-family: {T_FONTFACE1}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR1}; line-height: 125%; background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ .copyright { font-size: {T_FONTSIZE1}px; font-family: {T_FONTFACE1}; color: {T_FONTCOLOR1}; letter-spacing: -1px;} a.copyright { color: {T_FONTCOLOR1}; text-decoration: none;} a.copyright:hover { color: {T_BODY_TEXT}; text-decoration: underline;} /* Form elements */ form { margin-bottom:0px; } input,textarea, select { color : {T_BODY_TEXT}; font: normal {T_FONTSIZE2}px {T_FONTFACE1}; border-color : {T_BODY_TEXT}; } /* The text input fields background colour */ input.post, textarea.post, select { background-color : {T_TD_COLOR2}; } input { text-indent : 2px; } /* The buttons used for bbCode styling in message post */ input.button { background-color : {T_TR_COLOR1}; color : {T_BODY_TEXT}; font-size: {T_FONTSIZE2}px; font-family: {T_FONTFACE1}; } /* The main submit button option */ input.mainoption { background-color : {T_TD_COLOR1}; font-weight : bold; } /* None-bold submit button */ input.liteoption { background-color : {T_TD_COLOR1}; font-weight : normal; } /* This is the line in the posting page which shows the rollover help line. This is actually a text box, but if set to be the same colour as the background no one will know ;) */ .helpline { background-color: {T_TR_COLOR2}; border-style: none; } .mxlink { background-color: {T_BODY_BGCOLOR}; border-style: none; font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}} /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ @import url("templates/subSilver/formIE.css"); --> </style> <!-- BEGIN switch_enable_pm_popup --> <script language="Javascript" type="text/javascript"> <!-- if ( {PRIVATE_MESSAGE_NEW_FLAG} ) { window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; } //--> </script> <!-- END switch_enable_pm_popup --> <SCRIPT type=text/javascript> <!-- function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } function changeImages() { if (document.images ) { for (var i=0; i<changeImages.arguments.length; i+=2) { document[changeImages.arguments[i]].src = changeImages.arguments[i+1]; } } } // --> </SCRIPT> <!-- End Preload Script --> </head> <body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}" /> <a name="top"></a> <table width="100%" cellspacing="0" cellpadding="10" border="0" align="center"> <tr> <td class="bodyline"><table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td align="center" valign="middle"><a href="{U_PORTAL_HOME}"><img src="../templates/subSilver/images/logo_mx-system.gif" border="0" alt="{L_INDEX}" vspace="1"/></a></td> </tr> <tr> <td align="center" width="100%" valign="middle"> <table cellspacing="6" cellpadding="2" border="0"> <tr> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_PORTAL_HOME}" class="mainmenu"><img src="../templates/subSilver/images/nav_home.gif" border="0" alt="{L_HOME}" hspace="3" /></a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_PORTAL_FORUM}" class="mainmenu"><img src="../templates/subSilver/images/nav_forum.gif" border="0" alt="{L_FORUM}" hspace="3" /></a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_PROFILE}" class="mainmenu"><img src="../templates/subSilver/images/nav_profile.gif" border="0" alt="{L_PROFILE}" hspace="3" /></a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_FAQ}" class="mainmenu"><img src="../templates/subSilver/images/nav_help.gif" border="0" alt="{L_FAQ}" hspace="3" /></a></span></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_SEARCH}" class="mainmenu"><img src="../templates/subSilver/images/nav_search.gif" border="0" alt="{L_SEARCH}" hspace="3" /></a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_MEMBERLIST}" class="mainmenu"><img src="../templates/subSilver/images/nav_members.gif" border="0" alt="{L_MEMBERLIST}" hspace="3" /></a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="../templates/subSilver/images/nav_email.gif" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" /></a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="../templates/subSilver/images/nav_login.gif" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" /></span></td> <!-- BEGIN switch_user_logged_out --> <td height="15" align="center" valign="top" nowrap><a href="{U_REGISTER}" class="mainmenu"><img src="../templates/subSilver/images/nav_register.gif" border="0" alt="{L_REGISTER}" hspace="3" /></a></span></td> <!-- END switch_user_logged_out --> </td> </tr> <tr> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_PORTAL_HOME}" class="mainmenu">{L_PORTAL_HOME}</a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_PORTAL_FORUM}" class="mainmenu">{L_PORTAL_FORUM}</a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_PROFILE}" class="mainmenu">{L_PROFILE}</a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_FAQ}" class="mainmenu">{L_FAQ}</a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_SEARCH}" class="mainmenu">{L_SEARCH}</a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_MEMBERLIST}" class="mainmenu">{L_MEMBERLIST}</a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_PRIVATEMSGS}" class="mainmenu">{L_PRIVATEMSGS}</a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_LOGIN_LOGOUT}" class="mainmenu">{L_LOGIN_LOGOUT} </span></td> <!-- BEGIN switch_user_logged_out --> <td height="15" align="center" valign="top" nowrap><a href="{U_REGISTER}" class="mainmenu">{L_REGISTER}</a></span></td> <!-- END switch_user_logged_out --> </td> </table> </td> </tr> </td> </tr> </table> <!-- BEGIN switch_view --> <table width="{BLOCK_SIZE}" cellspacing="0" cellpadding="2" border="0" align="top"> <tr> <td align="left" valign="bottom"><span class="gensmall">{CURRENT_TIME}</span></td> </tr> <tr> <td align="left" valign="bottom"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td> </tr> </table> <!-- END switch_view --> <br clear="all" /> --- NEW FILE: overall_header_phpbbstyle.tpl --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html dir="{S_CONTENT_DIRECTION}"> <head> <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}"> <meta http-equiv="Content-Style-Type" content="text/css"> {META} {NAV_LINKS} <title>{SITENAME} :: {PAGE_TITLE}</title> <!-- link rel="stylesheet" href="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}{T_HEAD_STYLESHEET}" type="text/css" --> <style type="text/css"> <!-- /* The original subSilver Theme for phpBB version 2+ Created by subBlue design http://www.subBlue.com Modified by Haplo (jon...@ho...) NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 theme administration centre. When you have finalised your style you could cut the final CSS code and place it in an external file, deleting this section to save bandwidth. */ /* General page style. The scroll bar colours only visible in IE5.5+ */ body { background-color: {T_BODY_BGCOLOR}; scrollbar-face-color: {T_TR_COLOR2}; scrollbar-highlight-color: {T_TD_COLOR2}; scrollbar-shadow-color: {T_TR_COLOR2}; scrollbar-3dlight-color: {T_TR_COLOR3}; scrollbar-arrow-color: {T_BODY_LINK}; scrollbar-track-color: {T_TR_COLOR1}; scrollbar-darkshadow-color: {T_TH_COLOR1}; } /* General font families for common tags */ font,th,td,p { font-family: {T_FONTFACE1} } a:link,a:active,a:visited { color : {T_BODY_LINK}; } a:hover { text-decoration: underline; color : {T_BODY_HLINK}; } hr { height: 0px; border: solid {T_TR_COLOR3} 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ .bodyline { background-color: {T_TD_COLOR2}; border: 1px {T_TH_COLOR1} solid; } /* This is the outline round the main forum tables */ .forumline { background-color: {T_TD_COLOR2}; border: 1px {T_TH_COLOR2} solid; } /* Main table cell colours and backgrounds */ td.row1 { background-color: {T_TR_COLOR1}; } td.row2 { background-color: {T_TR_COLOR2}; } td.row3 { background-color: {T_TR_COLOR3}; } /* This is for the table cell above the Topics, Post & Last posts on the index.php page By default this is the fading out gradiated silver background. However, you could replace this with a bitmap specific for each forum */ td.rowpic { background-color: {T_TD_COLOR2}; background-image: url({U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/{T_TH_CLASS3}); background-repeat: repeat-y; } /* Header cells - the blue and silver gradient backgrounds */ th { color: {T_FONTCOLOR3}; font-size: {T_FONTSIZE2}px; font-weight : bold; background-color: {T_BODY_LINK}; height: 25px; background-image: url({U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/{T_TH_CLASS2}); } td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom,td.catHeadWelcome { background-image: url({U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/{T_TH_CLASS1}); background-color:{T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; height: 28px; } /* Setting additional nice inner borders for the main table cells. The names indicate which sides the border will be on. Don't worry if you don't understand this, just ignore it :-) */ td.cat,td.catHead,td.catBottom,td.catHeadWelcome { height: 29px; border-width: 0px 0px 0px 0px; } th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { font-weight: bold; border: {T_TD_COLOR2}; border-style: solid; height: 28px; } th.thTop { font-weight: normal; } td.row3Right,td.spaceRow { background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; } th.thHead,td.catHead { font-size: {T_FONTSIZE3}px; border-width: 1px 1px 0px 1px; } <!-- Added by Jon --> td.catHeadWelcome { font-size: {T_FONTSIZE3}px; border-width: 0px 0px 0px 0px; } th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { font-size: {T_FONTSIZE3}px; border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ .maintitle { font-weight: bold; font-size: 22px; font-family: "{T_FONTFACE2}",{T_FONTFACE1}; text-decoration: none; line-height : 120%; color : {T_BODY_TEXT}; } /* General text */ .gen { font-size : {T_FONTSIZE3}px; } .genmed { font-size : {T_FONTSIZE2}px; } .gensmall { font-size : {T_FONTSIZE1}px; } .gen,.genmed,.gensmall { color : {T_BODY_TEXT}; } a.gen,a.genmed,a.gensmall { color: {T_BODY_LINK}; text-decoration: none; } a.gen:hover,a.genmed:hover,a.gensmall:hover { color: {T_BODY_HLINK}; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ .mainmenu { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT} } a.mainmenu { text-decoration: none; color : {T_BODY_LINK}; } a.mainmenu:hover{ text-decoration: underline; color : {T_BODY_HLINK}; } /* Forum category titles */ .cattitle { font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}} a.cattitle { text-decoration: none; color : {T_BODY_LINK}; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ .forumlink { font-weight: bold; font-size: {T_FONTSIZE3}px; color : {T_BODY_LINK}; } a.forumlink { text-decoration: none; color : {T_BODY_LINK}; } a.forumlink:hover{ text-decoration: underline; color : {T_BODY_HLINK}; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ .nav { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT};} a.nav { text-decoration: none; color : {T_BODY_LINK}; } a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ .topictitle,h1,h2 { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT}; } a.topictitle:link { text-decoration: none; color : {T_BODY_LINK}; } a.topictitle:visited { text-decoration: none; color : {T_BODY_VLINK}; } a.topictitle:hover { text-decoration: underline; color : {T_BODY_HLINK}; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ .name { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT};} /* Location, number of posts, post date etc */ .postdetails { font-size : {T_FONTSIZE1}px; color : {T_BODY_TEXT}; } /* The content of the posts (body of text) */ .postbody { font-size : {T_FONTSIZE3}px; line-height: 18px} a.postlink:link { text-decoration: none; color : {T_BODY_LINK} } a.postlink:visited { text-decoration: none; color : {T_BODY_VLINK}; } a.postlink:hover { text-decoration: underline; color : {T_BODY_HLINK}} /* Quote & Code blocks */ .code { font-family: {T_FONTFACE3}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR2}; background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { font-family: {T_FONTFACE1}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR1}; line-height: 125%; background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ .copyright { font-size: {T_FONTSIZE1}px; font-family: {T_FONTFACE1}; color: {T_FONTCOLOR1}; letter-spacing: -1px;} a.copyright { color: {T_FONTCOLOR1}; text-decoration: none;} a.copyright:hover { color: {T_BODY_TEXT}; text-decoration: underline;} /* Form elements */ form { margin-bottom:0px; } input,textarea, select { color : {T_BODY_TEXT}; font: normal {T_FONTSIZE2}px {T_FONTFACE1}; border-color : {T_BODY_TEXT}; } /* The text input fields background colour */ input.post, textarea.post, select { background-color : {T_TD_COLOR2}; } input { text-indent : 2px; } /* The buttons used for bbCode styling in message post */ input.button { background-color : {T_TR_COLOR1}; color : {T_BODY_TEXT}; font-size: {T_FONTSIZE2}px; font-family: {T_FONTFACE1}; } /* The main submit button option */ input.mainoption { background-color : {T_TD_COLOR1}; font-weight : bold; } /* None-bold submit button */ input.liteoption { background-color : {T_TD_COLOR1}; font-weight : normal; } /* This is the line in the posting page which shows the rollover help line. This is actually a text box, but if set to be the same colour as the background no one will know ;) */ .helpline { background-color: {T_TR_COLOR2}; border-style: none; } .mxlink { background-color: {T_BODY_BGCOLOR}; border-style: none; font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}} /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ @import url("{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}formIE.css"); --> </style> <!-- BEGIN switch_enable_pm_popup --> <script language="Javascript" type="text/javascript"> <!-- if ( {PRIVATE_MESSAGE_NEW_FLAG} ) { window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; } //--> </script> <!-- END switch_enable_pm_popup --> <SCRIPT type=text/javascript> <!-- function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } function changeImages() { if (document.images ) { for (var i=0; i<changeImages.arguments.length; i+=2) { document[changeImages.arguments[i]].src = changeImages.arguments[i+1]; } } } // --> </SCRIPT> <!-- End Preload Script --> </head> <body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}" /> <a name="top"></a> <table width="100%" cellspacing="0" cellpadding="10" border="0" align="center"> <tr> <td class="bodyline"> <!-- BEGIN switch_view --> <table width="{BLOCK_SIZE}" cellspacing="0" cellpadding="10" border="0" align="top"> <tr> <td align="left" valign="bottom"><span class="gensmall">{CURRENT_TIME}</span></td> </tr> <tr> <td align="left" valign="bottom"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td> </tr> </table> <!-- END switch_view --> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td> <a href="{U_INDEX}?page=2"><img src="{U_PORTAL_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/logo_mx-system.gif" border="0" alt="{L_INDEX}" vspace="1" /></a> </td> <td align="center" width="100%" valign="middle"> <table cellspacing="0" cellpadding="2" border="0"> <tr> <td align="center" valign="middle"> <span class="maintitle">{SITENAME}</span><br /> <span class="gen">{SITE_DESCRIPTION} <br /> </span> </td> </tr> <tr> <td align="center" valign="top" nowrap> <span class="mainmenu"> <a href="{U_FAQ}" class="mainmenu"><img src="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a> </span> <span class="mainmenu"> <a href="{U_SEARCH}" class="mainmenu"><img src="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a> <a href="{U_MEMBERLIST}" class="mainmenu"><img src="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a> <a href="{U_GROUP_CP}" class="mainmenu"><img src="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a> </span> </td> </tr> <tr> <td height="25" align="center" valign="top" nowrap> <span class="mainmenu"> <!-- BEGIN switch_user_logged_out --> <a href="{U_REGISTER}" class="mainmenu"><img src="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a> <!-- END switch_user_logged_out --> <a href="{U_PROFILE}" class="mainmenu"><img src="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a> <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a> <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a> </span> </td> </tr> </table> </td> </tr> </table> <br clear="all" /> --- NEW FILE: overall_header_mxstyle.tpl --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html dir="{S_CONTENT_DIRECTION}"> <head> <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}"> <meta http-equiv="Content-Style-Type" content="text/css"> {META} {NAV_LINKS} <title>{SITENAME} :: {PAGE_TITLE}</title> <!-- link rel="stylesheet" href="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}{T_HEAD_STYLESHEET}" type="text/css" --> <style type="text/css"> <!-- /* The original subSilver Theme for phpBB version 2+ Created by subBlue design http://www.subBlue.com NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 theme administration centre. When you have finalised your style you could cut the final CSS code and place it in an external file, deleting this section to save bandwidth. */ /* General page style. The scroll bar colours only visible in IE5.5+ */ body { background-color: {T_BODY_BGCOLOR}; scrollbar-face-color: {T_TR_COLOR2}; scrollbar-highlight-color: {T_TD_COLOR2}; scrollbar-shadow-color: {T_TR_COLOR2}; scrollbar-3dlight-color: {T_TR_COLOR3}; scrollbar-arrow-color: {T_BODY_LINK}; scrollbar-track-color: {T_TR_COLOR1}; scrollbar-darkshadow-color: {T_TH_COLOR1}; } /* General font families for common tags */ font,th,td,p { font-family: {T_FONTFACE1} } a:link,a:active,a:visited { color : {T_BODY_LINK}; } a:hover { text-decoration: underline; color : {T_BODY_HLINK}; } hr { height: 0px; border: solid {T_TR_COLOR3} 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ .bodyline { background-color: {T_TD_COLOR2}; border: 1px {T_TH_COLOR1} solid; } /* This is the outline round the main forum tables */ .forumline { background-color: {T_TD_COLOR2}; border: 1px {T_TH_COLOR2} solid; } /* Main table cell colours and backgrounds */ td.row1 { background-color: {T_TR_COLOR1}; } td.row2 { background-color: {T_TR_COLOR2}; } td.row3 { background-color: {T_TR_COLOR3}; } /* This is for the table cell above the Topics, Post & Last posts on the index.php page By default this is the fading out gradiated silver background. However, you could replace this with a bitmap specific for each forum */ td.rowpic { background-color: {T_TD_COLOR2}; background-image: url({U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/{T_TH_CLASS3}); background-repeat: repeat-y; } /* Header cells - the blue and silver gradient backgrounds */ th { color: {T_FONTCOLOR3}; font-size: {T_FONTSIZE2}px; font-weight : bold; background-color: {T_BODY_LINK}; height: 25px; background-image: url({U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/{T_TH_CLASS2}); } td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { background-image: url({U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/{T_TH_CLASS1}); background-color:{T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; height: 28px; } /* Setting additional nice inner borders for the main table cells. The names indicate which sides the border will be on. Don't worry if you don't understand this, just ignore it :-) */ td.cat,td.catHead,td.catBottom { height: 29px; border-width: 0px 0px 0px 0px; } th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { font-weight: bold; border: {T_TD_COLOR2}; border-style: solid; height: 28px; } td.row3Right,td.spaceRow { background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; } th.thHead,td.catHead { font-size: {T_FONTSIZE3}px; border-width: 1px 1px 0px 1px; } th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { font-size: {T_FONTSIZE3}px; border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ .maintitle { font-weight: bold; font-size: 22px; font-family: "{T_FONTFACE2}",{T_FONTFACE1}; text-decoration: none; line-height : 120%; color : {T_BODY_TEXT}; } /* General text */ .gen { font-size : {T_FONTSIZE3}px; } .genmed { font-size : {T_FONTSIZE2}px; } .gensmall { font-size : {T_FONTSIZE1}px; } .gen,.genmed,.gensmall { color : {T_BODY_TEXT}; } a.gen,a.genmed,a.gensmall { color: {T_BODY_LINK}; text-decoration: none; } a.gen:hover,a.genmed:hover,a.gensmall:hover { color: {T_BODY_HLINK}; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ .mainmenu { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT} } a.mainmenu { text-decoration: none; color : {T_BODY_LINK}; } a.mainmenu:hover{ text-decoration: underline; color : {T_BODY_HLINK}; } /* Forum category titles */ .cattitle { font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color... [truncated message content] |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:45:30
|
Update of /cvsroot/mxbb/core27x/templates/subSilver/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12818/admin Log Message: Directory /cvsroot/mxbb/core27x/templates/subSilver/admin added to the repository |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:45:30
|
Update of /cvsroot/mxbb/core27x/templates/subSilver/images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12818/images Log Message: Directory /cvsroot/mxbb/core27x/templates/subSilver/images added to the repository |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:45:01
|
Update of /cvsroot/mxbb/core27x/templates/subSilver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12703/subSilver Log Message: Directory /cvsroot/mxbb/core27x/templates/subSilver added to the repository |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:44:36
|
Update of /cvsroot/mxbb/core27x/modules/mx_textblocks/templates/subSilver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12605/subSilver Log Message: Directory /cvsroot/mxbb/core27x/modules/mx_textblocks/templates/subSilver added to the repository |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:43:53
|
Update of /cvsroot/mxbb/core27x/modules/mx_textblocks/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12490/lang_english Log Message: Directory /cvsroot/mxbb/core27x/modules/mx_textblocks/language/lang_english added to the repository |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:43:18
|
Update of /cvsroot/mxbb/core27x/modules/mx_textblocks/language In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12396/language Log Message: Directory /cvsroot/mxbb/core27x/modules/mx_textblocks/language added to the repository |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:43:18
|
Update of /cvsroot/mxbb/core27x/modules/mx_textblocks/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12396/templates Log Message: Directory /cvsroot/mxbb/core27x/modules/mx_textblocks/templates added to the repository |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:43:18
|
Update of /cvsroot/mxbb/core27x/modules/mx_textblocks/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12396/admin Log Message: Directory /cvsroot/mxbb/core27x/modules/mx_textblocks/admin added to the repository |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:42:46
|
Update of /cvsroot/mxbb/core27x/modules/mx_statistics/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12238/lang_english Log Message: Directory /cvsroot/mxbb/core27x/modules/mx_statistics/language/lang_english added to the repository |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:42:34
|
Update of /cvsroot/mxbb/core27x/modules/mx_statistics/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12184/templates Log Message: Directory /cvsroot/mxbb/core27x/modules/mx_statistics/templates added to the repository |