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: Florin C B. <ory...@us...> - 2013-06-17 18:23:40
|
Update of /cvsroot/mxbb/mx_ggsitemaps_adv/admin In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv21189 Modified Files: admin_mx_ggsitemap.php Log Message: Index: admin_mx_ggsitemap.php =================================================================== RCS file: /cvsroot/mxbb/mx_ggsitemaps_adv/admin/admin_mx_ggsitemap.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** admin_mx_ggsitemap.php 23 Jun 2008 20:19:59 -0000 1.1 --- admin_mx_ggsitemap.php 17 Jun 2013 18:23:38 -0000 1.2 *************** *** 16,20 **** if ( file_exists( 'admin_board.' . $phpEx ) ) { ! define('IN_PHPBB', 1); $admin_root_path1 = 'admin/'; $admin_root_path2 = ''; --- 16,20 ---- if ( file_exists( 'admin_board.' . $phpEx ) ) { ! @define('IN_PHPBB', 1); $admin_root_path1 = 'admin/'; $admin_root_path2 = ''; *************** *** 26,30 **** else { ! define('IN_PORTAL', 1); $mx_root_path = './../../../'; $admin_root_path1 = 'admin/'; --- 26,30 ---- else { ! @define('IN_PORTAL', 1); $mx_root_path = './../../../'; $admin_root_path1 = 'admin/'; |
|
From: Florin C B. <ory...@us...> - 2013-06-17 18:23:21
|
Update of /cvsroot/mxbb/mx_ggsitemaps/admin In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv21005 Modified Files: admin_mx_ggsitemap.php Log Message: Index: admin_mx_ggsitemap.php =================================================================== RCS file: /cvsroot/mxbb/mx_ggsitemaps/admin/admin_mx_ggsitemap.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** admin_mx_ggsitemap.php 3 Jun 2008 20:08:05 -0000 1.4 --- admin_mx_ggsitemap.php 17 Jun 2013 18:23:19 -0000 1.5 *************** *** 11,15 **** if ( file_exists( 'admin_board.php' ) ) { ! define('IN_PHPBB', 1); $admin_root_path1 = $admin_root_path2 = './'; $module_root_path2 = $phpbb_root_path = $mx_root_path = '../'; --- 11,15 ---- if ( file_exists( 'admin_board.php' ) ) { ! @define('IN_PHPBB', 1); $admin_root_path1 = $admin_root_path2 = './'; $module_root_path2 = $phpbb_root_path = $mx_root_path = '../'; *************** *** 19,23 **** else { ! define('IN_PORTAL', 1); $mx_root_path = '../../../'; $admin_root_path1 = $mx_root_path . 'admin/'; --- 19,23 ---- else { ! @define('IN_PORTAL', 1); $mx_root_path = '../../../'; $admin_root_path1 = $mx_root_path . 'admin/'; |
|
From: Florin C B. <ory...@us...> - 2013-06-17 18:20:12
|
Update of /cvsroot/mxbb/mx_weather/templates/_core In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv20249/_core Added Files: _core.cfg blank.gif citycode_finder.tpl divtools.js mx_weather.tpl mx_weather_edit.tpl mx_weather_local.tpl mx_weather_view.tpl objectTools.js style_sheet.css weather.tpl weather_4401.html weather_center.tpl weather_side.html Log Message: --- NEW FILE: mx_weather_edit.tpl --- <h1>{L_WEATHER_TITLE}</h1> <span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span> <form action="{S_CONFIG_ACTION}" method="post"> <table cellpadding="4" cellspacing="1" border="0" align="left" class="forumline"> <tr> <th class="thHead" colspan="3">{L_WEATHER_SETTINGS}</th> </tr> <tr> <td class="row1">{L_WEATHER_UNIT_DEFAULT}</td> <td class="row2"> <span class="gensmall"> {WEATHER_UNIT_SELECT}</span></td> </tr> <tr> <td class="catBottom" colspan="3" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> <input type="reset" value="{L_RESET}" class="liteoption" /> </tr> </table></form> <br clear="all" /> <br /> <P>{L_WEATHER_BLOCK}</p> <table cellspacing="1" cellpadding="4" border="0" align="left" class="forumline"> <tr> <th class="thCornerL">{L_WEATHER_REGION}</th> <th class="thCornerL">{L_WEATHER_COUNTRY}</th> <th class="thCornerL">{L_WEATHER_SUBDIV}</th> <th class="thCornerL">{L_WEATHER_CITY}</th> <th class="thCornerR" colspan="3">{L_ACTION}</th> </tr> <!-- BEGIN weather --> <tr> <td class="{weather.ROW_CLASS}" align="left"><span class="genmed" >{weather.WEATHER_REGION}</span></td> <td class="{weather.ROW_CLASS}" align="left"><span class="genmed" >{weather.WEATHER_COUNTRY}</span></td> <td class="{weather.ROW_CLASS}" align="left"><span class="genmed" >{weather.WEATHER_SUBDIV}</span></td> <td class="{weather.ROW_CLASS}" align="left"><span class="genmed" >{weather.WEATHER_CITY}</span></td> <td class="{weather.ROW_CLASS}" align="center"><span class="genmed" ><a href="{weather.U_DELETE}">{L_DELETE}</a></span></td> <td class="{weather.ROW_CLASS}" align="center"><span class="genmed" ><a href="{weather.U_MENU_MOVE_UP}">{L_MOVE_UP}</a></span></td> <td class="{weather.ROW_CLASS}" align="center"><span class="genmed" ><a href="{weather.U_MENU_MOVE_DOWN}">{L_MOVE_DOWN}</a></span></td> </tr> <!-- END weather --> </table> <br clear="all" /> <br /> <P>{L_WEATHER_LIST}</p> <form action="{S_WEATHER_ACTION}" method="post"> <table cellspacing="1" cellpadding="4" border="0" align="left" class="forumline"> <tr> <td class="row1">{L_WEATHER_REGION} :</td> <td class="row2" valign="middle" colspan="6"> {WEATHER_REGION_SELECT} <input type="submit" class="mainoption" name="cangenow" value="{L_CHANGE_NOW}" /> </td> </tr> <tr> <th class="thCornerL">{L_WEATHER_REGION}</th> <th class="thCornerL">{L_WEATHER_COUNTRY}</th> <th class="thCornerL">{L_WEATHER_SUBDIV}</th> <th class="thCornerL">{L_WEATHER_CITY}</th> <th colspan="5" class="thCornerR">{L_ACTION}</th> </tr> <!-- BEGIN weather_list --> <tr> <td class="{weather_list.ROW_CLASS}" align="left"><span class="genmed" >{weather_list.WEATHER_REGION}</span></td> <td class="{weather_list.ROW_CLASS}" align="left"><span class="genmed" >{weather_list.WEATHER_COUNTRY}</span></td> <td class="{weather_list.ROW_CLASS}" align="left"><span class="genmed" >{weather_list.WEATHER_SUBDIV}</span></td> <td class="{weather_list.ROW_CLASS}" align="left"><span class="genmed" >{weather_list.WEATHER_CITY}</span></td> <td class="{weather_list.ROW_CLASS}" colspan="3" ><span class="genmed" ><a href="{weather_list.U_ADD}">{L_ADD}</a></span></td> </tr> <!-- END weather_list --> </table></form> <br clear="all" /> --- NEW FILE: divtools.js --- var dtVersion = '1.3'; var dtAuthor = 'Joe Pearson'; var dtLastModifiedDate = '10/09/2005'; var dtLastModifiedBy = 'Nick Hess'; var timerRunning = false; function findPosX(obj) { var curleft = 0; if (isNS6 || isMinIE4) { if (obj.offsetParent) { while (obj.offsetParent) { curleft += obj.offsetLeft obj = obj.offsetParent; } } } else if (isMinNS4) curleft += obj.x; return curleft; } function findPosY(obj) { var curtop = 0; if (isNS6 || isMinIE4) { if (obj.offsetParent) { while (obj.offsetParent) { curtop += obj.offsetTop obj = obj.offsetParent; } } } else if (isMinNS4) curtop += obj.y; return curtop; } function showImgX(imgName){ return findPosX(getObject(imgName)); } function showImgY(imgName){ return findPosY(getObject(imgName)); } function showDivX(divName) { if(isMinNS4) { return document.layers[divName].pageX; } else if(isMinIE4) { return document.all[divName].style.left.replace(/px/,''); } else if(isNS6) { return parseInt(document.getElementById(divName).style.left); } } function showDivY(divName) { if(isMinNS4) { return document.layers[divName].clip.width; } else if(isMinIE4) { return document.all[divName].style.top.replace(/px/,''); } else if(isNS6) { return parseInt(document.getElementById(divName).style.top); } } function mD(div, anchor, osX, osY) { xposition = (anchor != null)?findPosX(anchor):0; yposition = (anchor != null)?findPosY(anchor):0; div.style.left = ((osX)?xposition + osX:xposition) + "px"; div.style.top = ((osY)?yposition + osY:yposition)+"px"; div.style.visibility = "visible"; } function moveDiv(divName,anchorName,osX,osY) { var anchor=getObject(anchorName); var over=getObject(divName); mD(over,anchor,osX,osY) } function writeDiv(divName,divContent) { var thingy=getObject(divName); thingy.innerHTML = divContent; } function clipDiv(divName,clipTop,clipRight,clipBottom,clipLeft) { var thingy=getObject(divName); thingy.style.clip = "rect("+clipTop+"px "+clipRight+"px "+clipBottom+"px "+clipLeft+"px)"; } function hideDiv(divName){ var thingy=getObject(divName); thingy.style.visibility = "hidden"; } function showDiv(divName){ var thingy=getObject(divName); thingy.style.visibility = "visible"; } function stopSlide(){ if(timerRunning) clearInterval(timerID); timerRunning = false; } function startSlide(slideDiv,slideX,slideY,slideUnits,slideInt){ stopSlide(); timerRunning = true; xDone = false; yDone = false; var thisX = (slideX == 'null')?showDivX(slideDiv):slideX; var thisY = (slideY == 'null')?showDivY(slideDiv):slideY; slideFunc = "slideDiv('"+slideDiv+"',"+thisX+","+thisY+","+slideUnits+")"; timerID = setInterval(slideFunc,slideInt); } function slideDiv(slideDivName,destX,destY,moveUnits){ var yDone = false; var xDone = false; var divX = parseInt(showDivX(slideDivName)); var divY = parseInt(showDivY(slideDivName)); if (divX == destX || ((divX < destX)&&(divX+moveUnits >= destX)) || ((divX > destX)&&(divX-moveUnits <= destX))){ xDone = true; divX = parseInt(destX); } else if ((divX+moveUnits) > destX){ divX -= moveUnits; } else { divX += moveUnits; } if (divY == destY || ((divY < destY)&&(divY+moveUnits >= destY)) || ((divY > destY)&&(divY-moveUnits <= destY))){ yDone = true; divY = parseInt(destY); } else if ((divY+moveUnits) > destY){ divY -= moveUnits; } else { divY += moveUnits; } moveDiv(slideDivName,'null',divX,divY); if (xDone && yDone) { stopSlide(); } } --- NEW FILE: blank.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: weather.tpl --- <table class="tablebg" cellspacing="1" width="100%"> <!--<tr> <th>{L_WEATHER}</td> </tr>--> <tr> <td class="row1 gensmall" align="center" valign="middle">{WEATHER_ALTERNATE_URL}</td> </tr> <tr> <td class="row1 gensmall" align="center" valign="middle">{WEATHER_ALTERNATE_URL1}</td> </tr> <tr> <td class="row1 gensmall" align="center" valign="middle">{WEATHER_ALTERNATE_URL2}</td> </tr> <tr> <td class="row1 gensmall" align="center" valign="middle"> <!-- IF S_DISPLAY_WEATHER_GER --> <dd><a href="http://www.wetter.com/home/extern/ex_search.php?ms=1&ss=1&sss=2&search={LOCATION_ZIP}"><img src="http://www.wetter.com/home/woys/woys.php?,C,1,DEPLZ,{LOCATION_ZIP}" border="0" alt="" /></a></dd> <dd><a href="http://www.wetter.com/home/extern/ex_search.php?ms=1&ss=1&sss=2&search={LOCATION_ZIP}"><img src="http://www.wetter.com/home/woys/woys.php?,F,1,DEPLZ,{LOCATION_ZIP}" border="0" alt="" /></a></dd> <!-- ENDIF --> </td> </tr> </table> --- NEW FILE: weather_4401.html --- <div id="wx_module_4401"> <a href="http://www.weather.com/weather/local/ROXX0024">Arad Weather Forecast, Romania</a> </div> <script type="text/javascript"> /* Locations can be edited manually by updating 'wx_locID' below. Please also update */ /* the location name and link in the above div (wx_module) to reflect any changes made. */ var wx_locID = 'ROXX0024'; /* If you are editing locations manually and are adding multiple modules to one page, each */ /* module must have a unique div id. Please append a unique # to the div above, as well */ /* as the one referenced just below. If you use the builder to create individual modules */ /* you will not need to edit these parameters. */ var wx_targetDiv = 'wx_module_4401'; /* Please do not change the configuration value [wx_config] manually - your module */ /* will no longer function if you do. If at any time you wish to modify this */ /* configuration please use the graphical configuration tool found at */ /* https://registration.weather.com/ursa/wow/step2 */ var wx_config='SZ=160x600*WX=HWP*LNK=SSNL*UNT=C*BGI=snow*MAP=eur|null*DN= .ro*TIER=0*PID= *MD5='; document.write('<scr'+'ipt src="'+document.location.protocol+'//wow.weather.com/weather/wow/module/'+wx_locID+'?config='+wx_config+'&proto='+document.location.protocol+'&target='+wx_targetDiv+'"></scr'+'ipt>'); </script> --- NEW FILE: weather_center.tpl --- <table class="tablebg" cellspacing="1" width="100%"> <!--<tr> <th>{L_WEATHER}</td> </tr>--> <tr class="row1"> <td style="text-align:center;"> <!-- Wettercode Start --> <a href="http://www.wetter.com/home/extern/ex_search.php?search={WEATHER_PLZ}"><img src="http://www.wetter.com/home/woys/woys.php?,C,1,{WEATHER_COUNTRY}PLZ,{WEATHER_PLZ}" alt="" /></a> <a href="http://www.wetter.com/home/extern/ex_search.php?search={WEATHER_PLZ}"><img src="http://www.wetter.com/home/woys/woys.php?,F,1,{WEATHER_COUNTRY}PLZ,{WEATHER_PLZ}" alt="" /></a> <!-- Wettercode Ende --> </td> </tr> </table> --- NEW FILE: weather_side.html --- <div width="{BLOCK_SIZE}" class="forabg block"> <span class="corners-top"><span><h4>{L_TITLE}</h4></span></span> <div id="p1" class="inner bg2"> <ul class="content" id="logo"> <li class="{IMAGE_STYLE}" style="padding-right: 6px;padding-left: 6px;background-image: url('{IMAGE_SRC}');"> </li> <!-- img src="{IMAGE_SRC}" width="{IMAGE_WIDTH}" height="{IMAGE_HEIGHT}" alt="" /> {BLOCK_ICON} {L_WEATHER} --> </ul> <ul class="inner topiclist forums"> <li style="padding-right:1px;"><h4>{L_WEATHER}</h4></li> <li style="padding-right:1px;"> <div class="textbody post"> <div style="text-align: center;"> <!-- Yahoo Wetter Start --> <h3>{L_WEATHER_NOW}{CITY_NAME}</h3> {L_ACTTEMP}: {ACTTEMP}{L_TEMP_ICON}{L_TEMP_UNIT} <br /> <!-- img src="http://us.i1.yimg.com/us.yimg.com/i/us/we/52/{ACTCODE}.gif" alt="" / --> <img src="{ACTIMG_SRC}" alt="" /><br /> {L_ACTTEXT}: {ACTTEXT} <br /> {ACTTIME} <br /> <hr /> <!-- Yahoo! Wetter Ends --> </div> </div> <div style="text-align: center;"> {IMAGURL} <h5><a href="{WEATHER_YAHOOLINK}"><!-- img src="{WEATHER_COUNTRY}" alt="" / -->{L_YAHOO_WEATHER}</a></h5> </div> </li> </ul> </div> <span class="corners-bottom"><span> </span></span> </div> <!-- api11.weather.ch1.yahoo.com Mon Jun 3 22:58:27 PST 2013 --> --- NEW FILE: _core.cfg --- <?php /** * * @package MX-Publisher Module - mx_navmenu * @version $Id: _core.cfg,v 1.1 2013/06/17 18:20:09 orynider Exp $ * @copyright (c) 2002-2006 MX-Publisher Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // // Please note that to enable support of different languages // the {LANG} place holder is available. This will be replaced // with xxx where xxx is the users selected language. If // that language isn't available it will default to english. // Therefore you MUST ensure you have at least a english // directory if you choose to localise your template // // // Do not alter this line! // define(MX_TEMPLATE_CONFIG, TRUE); $mx_template_config = true; // ------------------------------------------------------------------------- // Do some checks // ------------------------------------------------------------------------- $current_template_path = file_exists( $mx_root_path . $current_template_path . "/images" ) ? $current_template_path : ( file_exists( $mx_root_path . $cloned_template_path . "/images" ) ? $cloned_template_path : $default_template_path ); // ------------------------------------------------------------------------- // Prefix with PORTAL_URL // ------------------------------------------------------------------------- $current_template_images = PORTAL_URL . $current_template_path . "/images"; // ------------------------------------------------------------------------- // Define images path // ------------------------------------------------------------------------- $mx_images['mx_menu_images'] = $current_template_images; ?> --- NEW FILE: style_sheet.css --- BODY { FONT-FAMILY: Verdana, Arial, Helvetica, Sans Serif; COLOR: #333; FONT-SIZE: 12px } TD { FONT-FAMILY: Verdana, Arial, Helvetica, SansSerif; COLOR: #333; FONT-SIZE: 11px } OL { FONT-FAMILY: Verdana, Arial, Helvetica, SansSerif; COLOR: #333; FONT-SIZE: 11px } UL { FONT-FAMILY: Verdana, Arial, Helvetica, SansSerif; COLOR: #333; FONT-SIZE: 11px } LI { FONT-FAMILY: Verdana, Arial, Helvetica, SansSerif; COLOR: #333; FONT-SIZE: 11px } .mpdToHide { DISPLAY: inline } .mpdToShow { [...3159 lines suppressed...] WHITE-SPACE: nowrap !important } #bodyContainer TABLE TD.inDentA IMG { MARGIN-RIGHT: 11px } #bodyContainer .module TD.blkVerdanaText10 .modBody UL LI DIV { MARGIN-LEFT: 18px !important } INPUT[name=height_feets] { MARGIN-BOTTOM: 5px; HEIGHT: 9px } INPUT[name=height_inches] { MARGIN-BOTTOM: 5px; HEIGHT: 9px } INPUT[name=weight] { MARGIN-BOTTOM: 5px; HEIGHT: 9px } TD.bodyText { DISPLAY: block } --- NEW FILE: citycode_finder.tpl --- <script language="JavaScript"> function changeParent(color){ opener.document.registrationform.zipcode.value = color; self.close(); } </script> <!-- BEGIN select_city --> <a href=javascript:changeParent('{select_city.CITY_CODE}')>{select_city.CITY_NAME}</a><br /> <!-- END select_city --> <form action="{U_FILENAME}" method="POST"> <p>{L_ENTER_CITY} <input type="text" name="loc" size="20" /><input type="submit" value="{L_SEARCH}" /></p> </form> <!-- BEGIN switch_user_logged_out --> <p class="gensmall" align="center">{WEATHER_DATA}</p> <!-- END switch_user_logged_out --> --- NEW FILE: mx_weather_view.tpl --- <table width="100%" cellpadding="4" cellspacing="0" border="0" class="forumline"> <tr> <td class="catHead" height="28"><span class="cattitle"><a href="{U_URL}" class="cattitle">{L_TITLE}</a></span></td> </tr> <tr> <td class="row1" height="28"><span class="catHead">{L_INFO}</td> </tr> <tr> <td class="row1"> <table cellpadding=0 cellspacing=0 border=0 > <tr> <td align="right" class="row1" ><span class="gensmall">All temperatures shown in:</span><br/> <span class="gensmall"><input type=radio name=temp {CHECKED_TP_F} {ONCLICK_F}>Fahrenheit<input type=radio name=temp {CHECKED_TP_C} {ONCLICK_C}>Celsius</span></td> </tr> </table> </td> </tr> <tr> <td class="row1" colspan="7"><hr noshade></td> </tr> <tr> <td class="row1"> <table cellpadding=0 cellspacing=0 border=0 > <tr> <td class="row1" > <img src="{IMG_CURRENT_COND}" align="top" alt="Current Conditions"> <font size="4" face="Arial" color="red">{TEMPERATURE}{GRAD}</font> <img src="{IMG}" align="center"><br> </td> <td class="row1" align="center" valign="middle" height="28" colspan="7"> <span class="gensmall">Wind: <b>{WINDD} {WINDS}</b>, Barometer: <b>{BARO}</b>, Humidity: <b>{HUMID}</b></span><br /> <span class="gensmall">UV: <b>{UV}</b>, Real Feel: <b>{REAL}</b>, Visibilty: <b>{VIS}</b></span> </td> </tr> </table> </td> </tr> <tr> <td class="row1" colspan="7"><hr noshade></td> </tr> <tr> <td class="row1"> <table cellpadding=0 cellspacing=5 border=0 > <tr> <td class="row1"><img src="{IMG_FORECAST}" alt="5 Day Forecast"></td> <td class="row1" align="center" colspan="7"> <table cellpadding=0 cellspacing=5 border=0 > <tr> <td class="row1"> </td> <td class="row1" align="center"><span class="catHead">{L_DAY1}<br><img src="{IMG_DAY1}"></span></td> <td class="row1" align="center"><span class="catHead">{L_DAY2}<br><img src="{IMG_DAY2}"></span></td> <td class="row1" align="center"><span class="catHead">{L_DAY3}<br><img src="{IMG_DAY3}"></span></td> <td class="row1" align="center"><span class="catHead">{L_DAY4}<br><img src="{IMG_DAY4}"></span></td> <td class="row1" align="center"><span class="catHead">{L_DAY5}<br><img src="{IMG_DAY5}"></span></td> </tr> <tr> <td class="row1"><span class="gen">High:</span></td> <td class="row1" align="center"><span class="gen">{TEMP_MAX_DAY1}{GRAD}</span></td> <td class="row1" align="center"><span class="gen">{TEMP_MAX_DAY2}{GRAD}</span></td> <td class="row1" align="center"><span class="gen">{TEMP_MAX_DAY3}{GRAD}</span></td> <td class="row1" align="center"><span class="gen">{TEMP_MAX_DAY4}{GRAD}</span></td> <td class="row1" align="center"><span class="gen">{TEMP_MAX_DAY5}{GRAD}</span></td> </tr> <tr> <td class="row1" colspan="7"><hr noshade></td> </tr> <tr> <td class="row1"><span class="gen">Low:</td> <td class="row1" align="center"><span class="gen">{TEMP_MIN_DAY1}{GRAD}</span></td> <td class="row1" align="center"><span class="gen">{TEMP_MIN_DAY2}{GRAD}</span></td> <td class="row1" align="center"><span class="gen">{TEMP_MIN_DAY3}{GRAD}</span></td> <td class="row1" align="center"><span class="gen">{TEMP_MIN_DAY4}{GRAD}</span></td> <td class="row1" align="center"><span class="gen">{TEMP_MIN_DAY5}{GRAD}</span></td> </tr> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td class="row1" colspan="7"><hr noshade></td> </tr> <tr> <td class="row1"> <table cellpadding=0 cellspacing=5 border=0 > <tr> <td width=88 rowspan=3 valign=top><img src="http://a799.ms.akamai.net/3/799/388/c88bde85a510d7/www.msnbc.com/m/wea/i/map_tag.gif" height=19 width=88 border=0 alt='Weather Maps'></td> <td colspan=7 height=9><spacer type=block height=9></td> </tr> <tr> <td align=center><a href=http://www.msnbc.com/m/c/ct_twc_lnk.asp?0wc=wm&url=http://www.weather.com/weather/mapredirect&cobrand=msnbc&locid={ACCID}&par=msnbc&site=msnbc.com&promo=regrad> <img src="http://a799.ms.akamai.net/3/799/388/795d8d54194025/www.msnbc.com/m/wea/i/radar.gif" height=64 width=62 alt=radar border=0></a></td> <td width=8><spacer type=block width=8></td> <td align=center><a href=http://www.msnbc.com/m/c/ct_twc_lnk.asp?0wc=wm&url=http://www.weather.com/weather/mapredirect&cobrand=msnbc&locid={ACCID}&mapid=regsat&par=msnbc&site=msnbc.com&promo=regsat><img src="http://a799.ms.akamai.net/3/799/388/981dca24a09bcf/www.msnbc.com/m/wea/i/satellite.gif" height=64 width=62 alt=satellite border=0></a></td> <td width=8><spacer type=block width=8></td> <td width=62><spacer type=block width=60></td> <td width=8><spacer type=block width=8></td> <td width=62><spacer type=block width=62></td> </tr> </table> </td></tr> <tr> <td class="row1" colspan="7"><hr noshade></td> </tr> <tr> <td class="row1" align="center" valign="middle" height="28" colspan="7"><span class="gensmall"> {L_COPYRIGHT}</span></td> </tr> <tr> <td class="row1" align="center" valign="middle" height="28" colspan="7"> <!-- begin weather.com logo include code --> <table cellpadding=0 cellspacing=0><tr><td align="center" > <a href="http://www.weather.com?par=internal&code=614221&site=logo&promo=english"> <img border=0 src="http://image.weather.com/pics/oap/slogo.gif"></a> </td></tr><tr><td align="center"> <form method="post" action="http://www.weather.com/cgi-bin/uncgi/zip_city_search.cgi?par=internal&code=614221&site=logo&promo=english"> <table cellpadding=0 cellspacing=0><tr><td valign=center colspan=2> <font face="Arial, Helvetica, Chicago, Sans Serif" color="#004371" size="2"> Enter city or US Zip </font></td></tr><tr> <td width="40" align="left" valign="bottom"> <input name="destination" type="text" size="15" value=""> </td><td width="20" align="left" valign="bottom"> <input type="image" src="http://image.weather.com/pics/button_go.gif" width="26" height="23" border="0" alt="go!" value="Go City"></td></tr> </table></form> </td></tr></table> <!-- end weather.com logo include code--> </td> </tr> </table> --- NEW FILE: mx_weather.tpl --- <table width="{BLOCK_SIZE}" cellpadding="0" cellspacing="0" border="0" class="forumline"> <tr> <th class="thCornerL" align="left" colspan="2"> {L_TITLE} </th> <th class="thCornerR" align="right">{EDIT_IMG}</th> </tr> <!-- BEGIN cityrow --> <tr> <td class="row1" valign="middle" ><span class="genmed"><a href="{cityrow.U_CITY}" class="nav">{cityrow.CITY}</a></span></td> <td class="row1" valign="middle" align="right" nowrap="nowraw" ><span class="genmed"><a href="{cityrow.U_CITY}" class="nav">{cityrow.GRAD}</a></span></td> <td class="row1" valign="middle" align="right"><img src="{cityrow.IMAGE}"/> </td> </tr> <!-- END cityrow --> </table> <br clear="all" /> --- NEW FILE: mx_weather_local.tpl --- <!-- BEGIN switch_city_error --> <table> <tr> <td>{L_CITY_ERROR}</td> </tr> </table> <!-- END switch_city_error --> <!-- BEGIN switch_select_city --> <form action="{U_FILENAME}" method="POST"> {L_SELECT_A_CITY} <select size="1" name="id"> <!-- END switch_select_city --> <!-- BEGIN select_city --> <option value="{select_city.CITY_CODE}">{select_city.CITY_NAME}</option> <!-- END select_city --> <!-- BEGIN switch_select_city --> </select> {L_SELECT_FORECAST_LENGTH} <select size="1" name="length"> <option selected>10</option> <option>9</option> <option>8</option> <option>7</option> <option>6</option> <option>5</option> <option>4</option> <option>3</option> <option>2</option> <option>1</option> </select> <input type="submit" value="{L_GET_WEATHER}"> </form> <!-- END switch_select_city --> <!-- BEGIN switch_weather --> <table border="2" bordercolor="#0000FF" align="center"> <tr> <th bgcolor="#009933"><span class="city"><b>{CITY}</b></span></th> </tr> <tr> <td><font size=1>({L_LAST_UPDATED} {LAST_UPDATE}).</font></td> </tr> <tr> <td> <table> <tr> <td align="center"><img border="1" src="{CURRENT_WEATHER_ICON}" alt="{CURRENT_TEXT}" title="{CURRENT_TEXT}" /><br />{CURRENT_TEXT}</td> <td colspan="2"> <table> <tr> <td colspan="2"><font size=3><b>{L_CURRENT_CONDITIONS}</b></font></td> </tr> <tr> <td>{L_CURRENTLY}</td><td>{CURRENT_TEMP}{L_TEMP_ICON} {UNIT_TEMP}</td> </tr> <tr> <td>{L_FEELS_LIKE}</td><td>{CURRENT_FLTEMP}{L_TEMP_ICON} {UNIT_TEMP}</td> </tr> </table> </td> </tr> <tr> <td colspan="2"> <table> <tr> <td>{L_UV_INDEX}</td> <td>{CURRENT_UV_INDEX} {CURRENT_UV_RATING}</td> </tr> <tr> <td>{L_WIND}</td> <td>{CURRENT_WIND_CONDITIONS}</td> </tr> <tr> <td>{L_HUMIDITY}</td> <td>{CURRENT_HUMIDITY} {L_PERCENT_ICON}</td> </tr> <tr> <td>{L_PRESSURE}</td> <td>{CURRENT_PRESSURE} {UNIT_PRESSURE} {CURRENT_PRESSURE_CHANGE}</td> </tr> <tr> <td>{L_DEW_POINT}</td> <td>{CURRENT_DEWPOINT}{L_TEMP_ICON} {UNIT_TEMP}</td> </tr> <tr> <td>{L_VISIBILITY}</td> <td>{CURRENT_VISIBILITY} {UNIT_DISTANCE}</td> </tr> <tr> <td>{L_LOCAL_TIME}</td> <td>{CURRENT_TIME}</td> </tr> <tr> <td>{L_SUNRISE}</td> <td>{SUNRISE}</td> </tr> <tr> <td>{L_SUNSET}</td> <td>{SUNSET}</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <table border="1" cellspacing="0" cellpadding="4" bordercolor="#000000" align="center"> <tr> <b> <span class="verdana_font"> <td width="8%" bgcolor="#feffff" align="center"><-10</td> <td width="8%" bgcolor="#d1c9df" align="center">-10</td> <td width="8%" bgcolor="#a496c0" align="center">0</td> <td width="8%" bgcolor="#3993ce" align="center">10's</td> <td width="8%" bgcolor="#0772b8" align="center">20's</td> <td width="8%" bgcolor="#03902b" align="center">30's</td> <td width="8%" bgcolor="#2dc558" align="center">40's</td> <td width="8%" bgcolor="#fecf3b" align="center">50's</td> <td width="8%" bgcolor="#ec9800" align="center">60's</td> <td width="8%" bgcolor="#dd531e" align="center">70's</td> <td width="8%" bgcolor="#c53600" align="center">80's</td> <td width="8%" bgcolor="#b10909" align="center">90's</td> <td width="9%" bgcolor="#6f0015" align="center"> <span class="white_text">100+</span> </td> </span> </b> </tr> </table> <table border="0" cellpadding="4" cellspacing="1" align="center"> <tr> <th>{L_DATE}</th> <th>{L_HIGHLOW}</th> <th>{L_DAY}</th> <th>{L_NIGHT}</th> </tr> <!-- END switch_weather --> <!-- BEGIN user_row --> <tr> <td bgcolor="{user_row.TEMP_COLOR}"><b>{user_row.DAY}, {user_row.DATE}</b></td> <td bgcolor="{user_row.ROW_COLOR}"><b>{user_row.HI_OR_CURRENT} {user_row.HI_OR_CURRENT_TEMP}{user_row.L_TEMP_ICON} {user_row.UNIT_TEMP}</b> <hr noshade><b>{L_LO} {user_row.LOW_TEMP_FORECAST}{user_row.L_TEMP_ICON} {user_row.UNIT_TEMP}</b></hr> </td> <td bgcolor="{user_row.ROW_COLOR}"> <table> <tr> <td colspan="2"><b>{user_row.DAY_TEXT_FORECAST}</b></td> </tr> <tr> <td> {user_row.L_SUNRISE} {user_row.SUNRISE}<br /> {user_row.L_WIND} {user_row.WIND_DAY_FORECAST} {user_row.WINDSPEED_DAY_FORECAST} {user_row.UNIT_SPEED}<br /> {user_row.L_HUMIDITY} {user_row.HUMIDITY_DAY_FORECAST}{user_row.L_PERCENT_ICON}<br /> {user_row.L_PRECIP} {user_row.PRECIP_DAY_FORECAST}{user_row.L_PERCENT_ICON} </td> <td align="right"><img src="{user_row.DAY_IMG_FORECAST}" /></td> </tr> </table> </td> <td bgcolor="{user_row.ROW_COLOR}"> <table> <tr> <td colspan="2"><b>{user_row.NIGHT_TEXT_FORECAST}</b></td> </tr> <tr> <td> {user_row.L_SUNSET} {user_row.SUNSET}<br /> {user_row.L_WIND} {user_row.WIND_NIGHT_FORECAST} {user_row.WINDSPEED_NIGHT_FORECAST} {user_row.UNIT_SPEED}<br /> {user_row.L_HUMIDITY} {user_row.HUMIDITY_NIGHT_FORECAST}{user_row.L_PERCENT_ICON}<br /> {user_row.L_PRECIP} {user_row.PRECIP_NIGHT_FORECAST}{user_row.L_PERCENT_ICON} </td> <td align="right"><img src="{user_row.NIGHT_IMG_FORECAST}" /></td> </tr> </table> </td> </tr> <!-- END user_row --> <!-- BEGIN switch_weather --> <tr> <td colspan="4">{USA_MAP}</td> </tr> <tr> <form action="{U_FILENAME}" method="POST"> <td colspan="4">{L_ENTER_CITY} <input type="text" name="loc" size="20"><input type="submit" value="{L_SEARCH}"></td> </form> </tr> <tr> <td colspan="4">{WEATHERCOM_DATA}</td> </tr> </table> <!-- END switch_weather --> <!-- BEGIN switch_user_logged_out --> <p class="gensmall" align="center">{WEATHER_DATA}</p> <!-- END switch_user_logged_out --> --- NEW FILE: objectTools.js --- // objectTools - a toolbox of DOM Object utilities // version info: $Author: orynider $ $Revision: 1.1 $ ($Date: 2013/06/17 18:20:09 $) // returns an object, given its ID function getObject(id) { var returnVal=null if (!isNS6) { returnVal=document.all[id]; } else { returnVal= document.getElementById(id); } return returnVal; } // stolen directly from ext.js. Attaches a function to an event on an object function addEvent(objObject, strEventName, fnHandler) { if (objObject.addEventListener) objObject.addEventListener(strEventName, fnHandler, false); else if (objObject.attachEvent) objObject.attachEvent("on" + strEventName, fnHandler); } |
|
From: Florin C B. <ory...@us...> - 2013-06-17 18:19:54
|
Update of /cvsroot/mxbb/mx_weather/language/lang_romanian In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv20208/lang_romanian Added Files: index.htm lang_admin.php lang_main.php Log Message: --- NEW FILE: lang_main.php --- <?php /************************************************* ************************** * Modulul Weather (Vremea) * lang_main.php [English] * ------------------- * Drepturi de autor: (C) Mx System 2003 * E-mail: su...@mx... * * $ Id: lang_admin.php * Rev ist: Creat de MarcMoris (su...@mx...), * Reeditat de Haplo (jon...@ho...) ************************************************** **************************/ /** * NU SCHIMBA! */ if (!defined("IN_PORTAL")) { exit('No direct script access allowed'); } // Formatul acestui fiÈier este: // // ---> $lang["mesaj"] = "text"; // // SpecificaÈi codificarea caracterelor limba ... [OpÈional] // // setlocale(LC_ALL, "en"); // Dezvoltatori ATENÈIE // // Toate fiÈierele de limbÄ trebuie sÄ foloseascÄ UTF-8 ca codificarea lor Èi fiÈierele nu trebuie sÄ conÈinÄ un BOM. // // SubstituenÈii pot conÈine acum informaÈii pentru, de exemplu, în loc de // 'Pagina% s din% s "se poate (Èi trebuie) scrie" Pagina% 1 $ s din% 2 $ s', aceasta permite // TraducÄtori pentru a re-comanda de ieÈire a datelor asigurând în acelaÈi timp rÄmâne corect // // Nu ai nevoie de acest lucru în cazul în care se folosesc înlocuitori unice, de exemplu, "Mesajul% d" este bine // La fel în cazul în care un Èir conÈine numai doi substituenÈi, care sunt utilizate pentru a încadra textul // Ãn URL-ul din nou, nu trebuie sÄ specificaÈi o ordine de exemplu, 'ApÄsaÈi% saici% s' este bine $lang['Weather'] = "Prognoza Vremii"; $lang['PORTAL_WEATHER'] = "Portal :: Meteo"; $lang['Change'] = "ModificaÈi"; $lang['Weather_Unit_Default'] = "Unitatea ta de temperaturÄ standard (Celsius sau Fahrenheit)"; $lang['Weather_Settings'] = "Configurare pentru vremea Block"; $lang['Weather_explain'] = "UtilizaÈi acest panou pentru a adÄuga, Èterge, edita, re-comanda un vremea în modul."; $lang['enter_city'] = "Introdu un zip oraÈ sau SUA: "; $lang['search'] = "CautÄ"; $lang['no_city_found'] = "Nici un oraÈ gÄsit "; $lang['Current_conditions'] = 'Conditiile actuale:'; $lang['Currently'] = "Ãn prezent: "; $lang['Temp_icon'] = "°"; $lang['Percent_icon'] = "%"; $lang['Feels_like'] = "Se simte a fi:"; $lang['UV_index'] = "Indice UV: "; $lang['Wind'] = "Vântul: "; $lang['Humidity'] = "Umiditate: "; $lang['Pressure'] = "Presiune: "; $lang['Dew_point'] = "Punct de rouÄ: "; $lang['Visibility'] = "Vizibilitate: "; $lang['Local_time'] = "Ora localÄ:"; $lang['Sunrise'] = "RÄsÄrit de soare:"; $lang['Sunset'] = "Apus de soare:"; $lang['Lo'] = "Min: "; $lang['Hi'] = "Max:"; $lang['Precip'] = "precipitaÈie: "; $lang['all_wind'] = "Din %s de %s mph cu rafale de pânÄ la %s mph"; $lang['reg_wind'] = "Din %s de %s mph"; $lang['row_color'] = "#EEEECC"; $lang['Weather_data2'] = "http://michaellewismusic.com"; $lang['no_city_found'] = "Nu oraÈ gÄsit. VÄ rugÄm sÄ introduceÈi un alt oraÈ sau un cod poÈtal<br />"; $lang['no_city_selected'] = "Nici un oraÈ selectat"; $lang['no_city_selected_profile'] = "Nu ai specificat un oras in profilul tau"; $lang['Get_weather'] = "Preia Prognoza"; $lang['Select_forecast_length'] = "SelecteazÄ lungimei prognozei"; $lang['Date'] = "Data"; $lang['Highlow'] = "Max/Min"; $lang['Day'] = "Ziua"; $lang['Night'] = "Noaptea"; $lang['Weather_data'] = "Vremea cu <a href=\"%s\">%s</a>"; $lang['Weathercom_data'] = "date meteorologice furnizate de <a href=\"http://www.weather.com/?prod=xoap&par=%s\">weather.com<img src=\"%s\" border=\"0\" alt=\"Weather Channel\"></a>"; $lang['Weather_data3'] = "MichaelLewisMusic.com"; $lang['Celsius'] = "Celsius"; $lang['Fahrenheit'] = "Fahrenheit"; // Translate Clouds $lang['CLOUDBASE'] = "Baza norilor"; $lang['CLEAR_SKIES'] = "Cer senin"; //NSC //SKC $lang['RAIN'] = "Rain"; $lang['SKY'] = "VÄzduh"; $lang['CLEAR'] = "Senin"; $lang['SUNNY'] = "Ãnsorit"; $lang['CLEAR_BELOW_12,000_FT'] = "clar sub 3657.6m"; //CLR //clear below twelve thousand feet $lang['SCATTERED_CLOUDS'] = "Nori împrÄÈtiaÈi"; //FEW $lang['PARTLY_CLOUDY'] = "ParÅ£ial Noros"; //SCT //SKT $lang['MOSTLY_CLOUDY'] = "Majoritar înorat"; //BKN $lang['OVERCAST'] = "Ãnorat"; //OVC $lang['OBSCURED'] = "Obscurat"; //VV $lang['CUMULONIMBUS'] = "Cumulo Nimbus"; //CB $lang['TOWERING_CUMULUS'] = "Cumulus Congestus"; //TCU $lang['UNKNOWN'] = "necunoscut"; $lang['SCATTERED_THUNDERSTORMS'] = "DescÄrcÄri electrice"; $lang['THUNDERSTORMS'] = "Furtuni"; $lang['THUNDERSTORMS_EARLY'] = "Thunderstorms Early"; $lang['FOG'] = "CeaÈÄ"; $lang['LIGHT_RAIN_SHOWER'] = "Light Rain Shower"; $lang['Config_updated'] = "Configurarea modulelor actualizat cu succes"; $lang['Click_return_config'] = "ApÄsaÈi% saici% s pentru a reveni la Administrare modul"; $lang['Click_return_admin_index'] = "ApÄsaÈi% saici% s pentru a reveni la secÈiunea Administrarea Index"; $lang['Add'] = "AdaugÄ"; $lang['Region'] = "Regiune"; $lang['Country'] = "ÈarÄ"; $lang['SubDiv'] = "SubDiv"; $lang['City'] = "OraÈ"; $lang['Code'] = "Cod"; $lang['Add_City'] = "AdaugÄ un oraÈ"; $lang['Import_City'] = "Importare oraÈ"; $lang['Weather_Block'] = "Lista de oraÈe pentru a afiÈa în blocul prognozei vremii"; $lang['Weather_List'] = "Lista oraÈelor disponibile"; $lang['Move_up'] = "Mutare în sus"; $lang['Move_down'] = "Mutare în jos"; $lang['Action'] = "AcÈiune"; $lang['WEATHER_NOW'] = "CondiÈiile pentru "; $lang['Forecast_Day'] = "Forecast for day"; $lang['acttext'] = "Acum"; $lang['acttemp'] = "Temperatura"; $lang['acttime'] = "Timpul"; $lang['imageurl'] = "SituaÈia Image"; $lang['actcode'] = "Cod"; $lang['Yahoo_Forecast'] = "Prognoza completÄ la Yahoo! Weather"; $lang['Weather_Channel'] = "(furnizate de <a href=\"http://www.weather.com\"> Channel</a>)<br/>"; // // Asta-i tot lume! // ------------------------------------------------- ?> --- NEW FILE: lang_admin.php --- <?php /** * * @package Board3 Portal v2 - Weather * @copyright (c) Board3 Group ( www.board3.de ) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * */ /** * DO NOT CHANGE */ if (!defined('IN_PORTAL')) { exit; } // // The format of this file is: // // ---> $lang["message"] = "text"; // // Specify your language character encoding... [optional] // // setlocale(LC_ALL, "en"); // DEVELOPERS PLEASE NOTE // // All language files should use UTF-8 as their encoding and the files must not contain a BOM. // // Placeholders can now contain order information, e.g. instead of // 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows // translators to re-order the output of data while ensuring it remains correct // // You do not need this where single placeholders are used, e.g. 'Message %d' is fine // equally where a string contains only two placeholders which are used to wrap text // in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine $lang['PORTAL_WEATHER'] = 'Weather'; $lang['WEATHER_SETTINGS'] = 'Weather settings'; $lang['weather_default_country'] = 'Default country ID'; $lang['weather_default_country_exp'] = 'For a complete list of country IDs, take a look at the <a href="http://en.wikipedia.org/wiki/ISO_3166-1#Current_codes" alt="country codes">Wikpedia article about ISO 3166-1</a>.'; $lang['weather_default_postal'] = 'Default postal code'; $lang['weather_default_zipcode'] = 'Local weather code'; $lang['weather_default_postal_exp'] = 'This postal code will be used if the user does not define one.'; $lang['weather_default_citycode'] = 'City area weather code'; $lang['Weather_Module'] = 'MX-Publisher Weather Module'; $lang['Weather_Addon'] = 'Weather Addon'; $lang['GER'] = 'Show weather ger image'; $lang['module_image'] = 'Module block image'; $lang['module_img_height'] = 'Module image height'; $lang['module_img_width'] = 'Module image width'; $lang['SETTINGS_ALT'] = 'Weather legend map'; $lang['ALTERNATE_URL'] = 'Weather alternate URL'; $lang['ALTERNATE_URL1'] = 'Weather alternate URL1'; $lang['ALTERNATE_URL2'] = 'Weather alternate URL2'; $lang['weather_default_partner_id'] = 'Weather block parner id'; $lang['weather_default_license_key'] = 'Weather block license key'; $lang['LOCAL_WEATHER'] = 'Partner block'; $lang['weather_default_unit'] = 'Your Default temperature unit (C for Celsius, F for Fahrenheit)'; $lang['weather_city_default'] = 'Weather module default city'; $lang['weather_zipcode_default'] = 'Weather module default zipcode'; $lang['weather_country_default'] = 'Weather module default country'; $lang['partner_id_default'] = 'Weather module default partner_id'; $lang['license_key_deault'] = 'Weather module default license key'; $lang['c'] = "Celsius"; $lang['F'] = "Fahrenheit"; $lang['PORTAL_WEATHER'] = 'Portal Weather block'; // // That's all Folks! // ------------------------------------------------- ?> --- 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: Florin C B. <ory...@us...> - 2013-06-17 18:19:36
|
Update of /cvsroot/mxbb/mx_weather/language In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv19930/language Added Files: index.htm Log Message: --- 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: Florin C B. <ory...@us...> - 2013-06-17 18:19:33
|
Update of /cvsroot/mxbb/mx_weather In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv19930 Added Files: citycode_finder.php db_install.php db_uninstall.php db_upgrade.php edit_weather.php index.php install.txt main_weather.php mx_install_readme.htm portal_weather.php weather.pak weather.php Log Message: --- NEW FILE: edit_weather.php --- <?php /*************************************************************************** * edit_weather.php * ------------------- * begin : Septembre, 2002 * copyright : (C) 2002 MX-System * email : su...@mx... * ***************************************************************************/ /*************************************************************************** * * 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. * ***************************************************************************/ // // ERROR HANDLING // //error_reporting( E_ALL ); //ini_set('display_errors', '1'); $phpEx = substr(strrchr(__FILE__, '.'), 1); if (@file_exists( './viewtopic.' . $phpEx )) // -------------------------------------------- phpBB MOD MODE { define('MXBB_MODULE', false); define('IN_PHPBB', true); die('This is a MX-Portal CMS Module, you need to upload all required files in "modules" folder!!!'); } else { if( !defined('IN_PORTAL') || !is_object($mx_block)) { define('IN_PORTAL', true); define('MXBB_MODULE', true); $mx_root_path = '../../'; $module_root_path = $mx_root_path . 'modules/mx_weather/'; // // Let's include some stuff... // $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.' . $phpEx); // // Page selector // $page_id = $mx_request_vars->request('page', MX_TYPE_INT, 1); // // Start user session // - populate $userdata and $lang // $mx_user->init($user_ip, $page_id, false); // // Load and instatiate CORE (page) and block classes // $mx_page->init($page_id); // // Initiate user style (template + theme) management // - populate $theme, $images and initiate $template. // $mx_user->page_id = $page_id; $mx_user->user_ip = $user_ip; $mx_user->_init_userprefs(); $mx_user->init_style(); $block_id = ( !empty($HTTP_GET_VARS['block_id']) ) ? $HTTP_GET_VARS['block_id'] : $HTTP_POST_VARS['id']; if( empty($block_id) ) { $sql = "SELECT * FROM " . BLOCK_TABLE . " WHERE block_title = 'weather' LIMIT 1"; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, "Could not query weather module information", "", __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $block_id = $row['block_id']; } $is_block = FALSE; } else { define('MXBB_MODULE', true); // // Read block Configuration $title = $mx_block->block_info['block_title']; $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); $is_block = true; global $images, $is_block; } } // // Load default header // include($module_root_path . 'include/constants.'.$phpEx); include($module_root_path . 'include/functions.'.$phpEx); $filename = basename(__FILE__); function renumber_order( $user_id ) { global $db; $sql = "SELECT * FROM " . CONFIG_WEATHER_DET_TABLE; $sql .= " WHERE user_id = $user_id ORDER BY weather_order ASC"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't get list of Weather option", "", __LINE__, __FILE__, $sql); } $i = 10; $inc = 10; while( $row = $db->sql_fetchrow($result) ) { $sql = "UPDATE " . CONFIG_WEATHER_DET_TABLE . " SET weather_order = $i WHERE user_id = $user_id AND weather_id = '" . $row['weather_id'] . "'"; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't update order fields", "", __LINE__, __FILE__, $sql); } $i += 10; } } // // User session management /* if(!$userdata['session_logged_in']) { $user_id = ''; $header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: '; @header($header_location . mx_append_sid( $mx_root_path . "login.$phpEx?redirect=./modules/mx_weather/edit_weather.$phpEx", true)); exit; } */ // End session management // // ********************************************************************** // Read language definition // ********************************************************************** /* if ( !file_exists($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_main.'.$phpEx ); } else { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx ); } */ // // Limit // $start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0; // // Region // if( isset($HTTP_GET_VARS['weather_region']) || isset($HTTP_POST_VARS['weather_region']) ) { $weather_region_sel = ( !empty($HTTP_GET_VARS['weather_region'])) ? $HTTP_GET_VARS['weather_region'] : $HTTP_POST_VARS['weather_region']; $weather_region_sel = str_replace("\'","'",$weather_region_sel); } else { $sql = "SELECT DISTINCT weather_region, weather_country, weather_subdiv FROM " . WEATHER_TABLE . " ORDER BY weather_region, weather_country, weather_subdiv"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, "Couldn't query weather table", "", __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $weather_region_sel = ( empty( $row['weather_subdiv']) ) ? "weather_region ='" . $row['weather_region'] . "' and weather_country ='" . $row['weather_country'] . "'" : "weather_region ='" . $row['weather_region'] . "' and weather_country ='" . $row['weather_country'] . "' and weather_subdiv ='" . $row['weather_subdiv'] . "'"; } if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) { $mode = ($HTTP_GET_VARS['mode']) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode']; } else { if ( isset($HTTP_POST_VARS['submit'])) { $mode = "update"; } else if ( isset($HTTP_POST_VARS['add_city'])) { $mode = "add_city"; } else if ( isset($HTTP_POST_VARS['save'])) { $mode = "save_city"; } else if ( isset($HTTP_POST_VARS['import_city'])) { $mode = "import_city"; } else { $mode = ""; } } if( $mode != "" ) { switch($mode) { case 'update': $new = array(); $new['weather_unit_default'] = $mx_request_vars->post('weather_unit_default', MX_TYPE_NO_TAGS, ''); $new['weather_city_default'] = $mx_request_vars->post('weather_city_default', MX_TYPE_NO_TAGS, ''); $new['weather_zipcode_default'] = $mx_request_vars->post('weather_zipcode_default', MX_TYPE_NO_TAGS, ''); $new['weather_country_default'] = $mx_request_vars->post('weather_country_default', MX_TYPE_NO_TAGS, ''); $new['partner_id_default'] = $mx_request_vars->post('partner_id_default', MX_TYPE_NO_TAGS, ''); $new['license_key_deault'] = $mx_request_vars->post('license_key_deault', MX_TYPE_NO_TAGS, ''); if (!$result = $db->sql_query("SELECT user_id from ".CONFIG_WEATHER_TABLE)) { switch (PORTAL_BACKEND) { case 'internal': case 'phpbb2': $config_array = array_merge(array('user_id' => (int) '0',), $new); $sql = "INSERT INTO ".CONFIG_WEATHER_TABLE." (". implode(', ', array_keys($config_array)). ") VALUES (". implode(', ', array_values($config_array)). ")"; break; case 'phpbb3': $sql = "INSERT INTO ".CONFIG_WEATHER_TABLE.$db->sql_build_array('INSERT', array_merge(array('user_id' => (int) '0',), $new)); break; } } else { //$weather_unit_default = $HTTP_POST_VARS['weather_unit_default']; $sql = "UPDATE " . CONFIG_WEATHER_TABLE . " SET " . $db->sql_build_array('UPDATE', $new); //$sql = "UPDATE " . CONFIG_WEATHER_TABLE . " SET weather_unit_default = '$weather_unit_default' WHERE user_id = 0" ; } if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, "Could not update data from weather table", $lang['Error'], __LINE__, __FILE__, $sql); } break; case 'add': $weather_id = ( isset($HTTP_GET_VARS['id']) ) ? $HTTP_GET_VARS['id'] : 0; $user_id = ( isset($HTTP_POST_VARS['uid']) ) ? $HTTP_POST_VARS['uid'] : $HTTP_GET_VARS['uid']; $sql = "SELECT max(weather_order) weather_order FROM " . CONFIG_WEATHER_DET_TABLE . " WHERE user_id = $userdata[user_id]"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't get list of Weather option", "", __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $weather_order = $row[weather_order] + 10; $sql = "INSERT INTO " . CONFIG_WEATHER_DET_TABLE . " (user_id, weather_id, weather_order ) VALUES ( $user_id , '" . $weather_id . "' , ". $weather_order." ) "; $result = $db->sql_query($sql); // if(!$result = $db->sql_query($sql)) // { // mx_message_die(GENERAL_ERROR, "Could not add data from weather table", $lang['Error'], __LINE__, __FILE__, $sql); // } break; case 'delete': if( isset($HTTP_POST_VARS['id']) || isset($HTTP_GET_VARS['id']) ) { $weather_id = ( isset($HTTP_POST_VARS['id']) ) ? $HTTP_POST_VARS['id'] : $HTTP_GET_VARS['id']; $user_id = ( isset($HTTP_POST_VARS['uid']) ) ? $HTTP_POST_VARS['uid'] : $HTTP_GET_VARS['uid']; } else { $weather_id = 0; } if( $weather_id ) { $sql = "DELETE FROM " . CONFIG_WEATHER_DET_TABLE . " WHERE user_id = $user_id AND weather_id = '$weather_id'"; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, "Could not remove data from weather table", $lang['Error'], __LINE__, __FILE__, $sql); } renumber_order( $user_id ); } else { mx_message_die(GENERAL_MESSAGE, "No Weather selected"); } break; case 'order': // // Change order of menus in the DB // $move = intval($HTTP_GET_VARS['move']); $weather_id = $HTTP_GET_VARS[POST_URL]; $user_id = $HTTP_GET_VARS['uid']; $sql = "UPDATE " . CONFIG_WEATHER_DET_TABLE . " SET weather_order = weather_order + $move WHERE user_id = $user_id AND weather_id = '$weather_id'"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't change weather order", "", __LINE__, __FILE__, $sql); } renumber_order( $user_id ); break; default: mx_message_die(GENERAL_ERROR, "Wrong mode for generating select list", "", __LINE__, __FILE__); break; } } $template->set_filenames(array( "weather_edit" => "edit_weather.tpl") ); // ********************************************************************** // Read module config // ********************************************************************** $weather_config = read_weather_config( $userdata[user_id] ); if ($weather_config[user_id] == 0) { $sql = "INSERT INTO " . CONFIG_WEATHER_TABLE . " (user_id, weather_unit_default ) VALUES ( $userdata[user_id] , 'C' ) "; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, "Could not add data from weather table", $lang['Error'], __LINE__, __FILE__, $sql); } $weather_config = read_weather_config( $userdata[user_id] ); $sql = "SELECT * FROM " . CONFIG_WEATHER_DET_TABLE . " WHERE user_id = 0"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't get list of Weather option", "", __LINE__, __FILE__, $sql); } while( $row = $db->sql_fetchrow($result) ) { $sql_insert = "INSERT INTO " . CONFIG_WEATHER_DET_TABLE . " (user_id, weather_id, weather_order ) VALUES ( $weather_config[user_id] , '" . $row[weather_id] . "' , ". $row[weather_order] ." ) "; if(!$result_insert = $db->sql_query($sql_insert)) { mx_message_die(GENERAL_ERROR, "Could not add data from weather table", $lang['Error'], __LINE__, __FILE__, $sql_insert); } } } $template->assign_vars(array( "S_CONFIG_ACTION" => mx_append_sid("edit_weather..$phpEx"), "L_YES" => $lang['Yes'], "L_NO" => $lang['No'], "L_WEATHER_SETTINGS" => $lang['Weather_Settings'], "L_WEATHER_UNIT_DEFAULT" => $lang['Weather_Unit_Default'] , "WEATHER_UNIT_DEFAULT" => $weather_config['weather_unit_default'], "WEATHER_UNIT_SELECT" => weather_unit_select( $weather_config['weather_unit_default'], 'weather_unit_default' ), "WEATHER_REGION_SELECT" => weather_region_select($weather_region_sel, 'weather_region'), "L_WEATHER_CITY_DEFAULT" => $lang['weather_city_default'], "WEATHER_CITY_DEFAULT" => $config['weather_city_default'], "L_WEATHER_ZIPCODE_DEFAULT" => $lang['weather_zipcode_default'], "WEATHER_ZIPCODE_DEFAULT" => $config['weather_zipcode_default'], "L_WEATHER_COUNTRY_DEFAULT" => $lang['weather_country_default'], "WEATHER_COUNTRY_DEFAULT" => $config['weather_country_default'], "L_PARTNER_ID_DEFAULT" => $lang['partner_id_default'], "PARTNER_ID_DEFAULT" => $config['partner_id_default'], "L_LICENSE_KEY_DEAULT" => $lang['license_key_deault'], "LICENSE_KEY_DEAULT" => $config['license_key_deault'], "L_SUBMIT" => $lang['Submit'], "L_RESET" => $lang['Reset'], ) ); $sql = "SELECT t.* FROM " . CONFIG_WEATHER_DET_TABLE . " c , " . WEATHER_TABLE . " t WHERE c.user_id = $userdata[user_id] AND c.weather_id = t.weather_id ORDER BY weather_order"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Could not query weather table", $lang['Error'], __LINE__, __FILE__, $sql); } $weather_rows = $db->sql_fetchrowset($result); $weather_count = count($weather_rows); $template->assign_vars(array( "L_WEATHER_TITLE" => $lang['Weather_Settings'], "L_WEATHER_TEXT" => $lang['Weather_explain'], "L_WEATHER_REGION" => $lang['Region'], "L_WEATHER_COUNTRY" => $lang['Country'], "L_WEATHER_SUBDIV" => $lang['SubDiv'], "L_WEATHER_CITY" => $lang['City'], "L_DELETE" => $lang['Delete'], "L_ADD" => $lang['Add'], "L_MOVE_UP" => $lang['Move_up'], "L_MOVE_DOWN" => $lang['Move_down'], "L_WEATHER_BLOCK" => $lang['Weather_Block'], "L_WEATHER_LIST" => $lang['Weather_List'], "L_CHANGE_NOW" => $lang['Change'], "L_ACTION" => $lang['Action'], "S_WEATHER_ACTION" => mx_append_sid("edit_weather..$phpEx"), "S_HIDDEN_FIELDS" => '') ); for($i = 0; $i < $weather_count; $i++) { $weather_city = $weather_rows[$i]['weather_city']; $weather_country = $weather_rows[$i]['weather_country']; $weather_region = $weather_rows[$i]['weather_region']; $weather_id = $weather_rows[$i]['weather_id']; $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; $template->assign_block_vars("weather", array( "ROW_COLOR" => "#" . $row_color, "ROW_CLASS" => $row_class, "WEATHER_REGION" => $weather_region, "WEATHER_COUNTRY" => $weather_country, "WEATHER_CITY" => $weather_city, "U_DELETE" => mx_append_sid("edit_weather.$phpEx?mode=delete&id=$weather_id&uid=$weather_config[user_id]&weather_region=$weather_region_sel"), "U_MENU_MOVE_UP" => mx_append_sid("edit_weather.$phpEx?mode=order&move=-15&" . POST_URL . "=$weather_id&weather_region=$weather_region_sel&uid=$weather_config[user_id]"), "U_MENU_MOVE_DOWN" => mx_append_sid("edit_weather.$phpEx?mode=order&move=15&" . POST_URL . "=$weather_id&weather_region=$weather_region_sel&uid=$weather_config[user_id]"), ) ); } $sql = "SELECT * FROM " . WEATHER_TABLE . " WHERE " . $weather_region_sel . " ORDER BY weather_region, weather_country, weather_subdiv, weather_city " ; // LIMIT $start, 30 if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Could not query weather table", $lang['Error'], __LINE__, __FILE__, $sql); } $weather_rows = $db->sql_fetchrowset($result); $weather_count = count($weather_rows); for($i = 0; $i < $weather_count; $i++) { $weather_city = $weather_rows[$i]['weather_city']; $weather_country = $weather_rows[$i]['weather_country']; $weather_subdiv = $weather_rows[$i]['weather_subdiv']; $weather_region = $weather_rows[$i]['weather_region']; $weather_id = $weather_rows[$i]['weather_id']; $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; $template->assign_block_vars("weather_list", array( "ROW_COLOR" => "#" . $row_color, "ROW_CLASS" => $row_class, "WEATHER_REGION" => $weather_region, "WEATHER_COUNTRY" => $weather_country, "WEATHER_SUBDIV" => $weather_subdiv, "WEATHER_CITY" => $weather_city, "U_ADD" => mx_append_sid("edit_weather.$phpEx?mode=add&id=$weather_id&uid=$weather_config[user_id]&weather_region=$weather_region_sel"), ) ); } //$page_title = ( !empty( $lang['Weather'] ) ? $lang['Weather'] : 'Weather' ); //include($mx_root_path . 'includes/page_header.'.$phpEx); $template->pparse("weather_edit"); //include($mx_root_path . 'includes/page_tail.'.$phpEx); ?> --- NEW FILE: index.php --- <?php /*************************************************************************** * mx_weather.php * ------------------- * begin : April, 2002 * copyright : (C) 2002 MX-System * email : su...@mx... * ***************************************************************************/ /** * History: * @developer: OryNider (v 2.x - 3.x) */ if( !defined('IN_PORTAL') || !is_object($mx_block)) { @define('IN_PORTAL', true); $mx_root_path = "./../../"; $module_root_path = "./"; @define('MXBB_27x', @file_exists($mx_root_path . 'mx_login.'.$phpEx)); $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once($mx_root_path . 'common.'.$phpEx); // Start session management if (version_compare($portal_config['portal_version'], '2.7.8', '>=')) { $mx_user->init($user_ip, PAGE_WEATHER); } else { $userdata = session_pagestart($user_ip, PAGE_WEATHER); mx_init_userprefs($userdata); } // End session management // Read block Configuration $block_id = (!empty($_GET['block_id']) ) ? $_GET['block_id'] : $_POST['id']; // 0: module, 1: module_id, 2: module_name, 3: module_path, // 4: module_desc, 5: module_include_admin //mx_get_info($table, $idfield = '', $id = 0, $idfield2 = '', $id2 = 0) ... ( $idfield2 != '' && $id2 != '' ) ? " AND $idfield2 = '$id2'" : ''; $block_info = mx_get_info(BLOCK_TABLE, 'block_title', 'PORTAL_WEATHER'); $block_id = ( isset($block_id) && !empty($block_id) ? $block_id : $block_info['block_id'] ); $title = $block_info['block_title']; $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); $description = $block_info['block_desc']; $show_block = $block_info['show_block']; $show_title = ($userdata['user_level'] == ADMIN) ? true : $block_info['show_title']; $show_stats = $block_info['show_stats']; $mx_block->init($block_id); $is_block = FALSE; } else { // Read block Configuration @define('MXBB_27x', @file_exists($mx_root_path . 'mx_login.'.$phpEx)); $title = $mx_block->block_info['block_title']; $block_size = $player_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); $is_block = TRUE; } @define('STRIP_URL', (@ini_get('allow_url_fopen')) ? false : true); //fopen_url not allowed /* * Include the functions file */ require($module_root_path . 'includes/constants.'.$phpEx); require($module_root_path . 'includes/functions.'.$phpEx); require($module_root_path . 'includes/class_xmlparser.'.$phpEx); require($module_root_path . 'includes/class_weather.'.$phpEx); $weather_config = read_weather_config($userdata['user_id']); /* * Ends all session management */ // ********************************************************************** // Set Parameter // ********************************************************************** if ($mx_request_vars->is_request('accid')) { $weather_region_sel = $mx_request_vars->request('accid', MX_TYPE_NO_TAGS); } if (!$accid) { $accid = $weather_config['weather_city_default'] ; # Your default city location code "YUL"; } $tp = $_GET_VARS['tmp']; if (!$tp) { $tp = $weather_config['weather_unit_default']; # Your Default temperature unit (C for Celsius, F for Fahrenheit) } /* * Begin main code here */ if ($mx_request_vars->is_request('p')) { $zip_code = $mx_request_vars->request('p', MX_TYPE_NO_TAGS); } else { $zip_code = $weather_config['weather_zipcode_default']; } if ($mx_request_vars->is_request('u')) { $weather_unit = $mx_request_vars->request('u', MX_TYPE_NO_TAGS); } else { $weather_unit = $weather_config['weather_unit_default']; } if ($mx_request_vars->is_request('w')) { $weather_citycode = $mx_request_vars->request('w', MX_TYPE_NO_TAGS); } else { $weather_citycode = $zip_code; } $weather_country = $weather_config['weather_country_default']; // Specific country id $weather_citycode = $weather_config['weather_city_default']; // Forecast city id //@ url: http://www.weather.com/outlook/travel/businesstraveler/extended/ROXX0024 //@ url: http://www.weather.com/outlook/recreation/boatandbeach/local/RO0AR0001 //Weather("ROXX0024"); //WeatherIndex($tp, $zip_code, $module_root_path); // Create the new weather object! // RO0AR0001 = ROXX0024 = 866307 - Location Code from weather.yahoo.com // 3600 = seconds of cache lifetime (expires after that) // C = Units in Celsius! (Option: F = Fahrenheit) $weather_loc = new weather($zip_code, 3600, $tp, $module_root_path); // Parse the weather object via cached // This checks if there's an valid cache object allready. if yes // it takes the local object data, what's much FASTER!!! if it // is expired, it refreshes automatically from rss online! $weather_loc->parsecached(); // => RECOMMENDED! // allway refreshes from rss online. NOT SO FAST. //$weather_loc->parse(); // => NOT recommended! //Set some variables again $weather_image_code = isset($weather_loc->imageurl) ? "<div style=\"background-image: url('".$weather_loc->imageurl."'); background-position: 0px 0px; height: 40px; width: 200px; padding-left: 5px; padding-right: 5px; border: 0px;\" alt=\"\"> </div>" : ""; $weather_cityname = isset($weather_loc->city) ? $weather_loc->city : $weather_country; // Arad, Romania $weather_yahoolink = isset($weather_loc->yahoolink) ? $weather_loc->yahoolink : 'http://us.rd.yahoo.com/dailynews/rss/weather/'.$weather_cityname.'__'.$zip_site.'/*http://xml.weather.yahoo.com/forecast/'.$zip_code.'_c.html'; $weather_unit = isset($weather_loc->unit) ? $weather_loc->unit : $weather_unit; //Yahoo is in the process of an upgrade. It is removing the p= part and replacing it with w= to use the more powerful new WOEID codes. $weather_yahooxml = "http://xml.weather.yahoo.com/forecastrss?u=".$weather_unit."&p=".$weather_citycode; $weather_actimage = isset($weather_loc->actcode) ? "http://us.i1.yimg.com/us.yimg.com/i/us/we/52/".$weather_loc->actcode.".gif" : ""; //$weather_sunrise = $weather_loc->sunrise; // 6:49 am //$weather_sunset = $weather_loc->sunset; // 08:05 pm /** * generate the XML header * Assings Main Variables to Constants */ $v_Fore[1] = ""; $v_Fore[2] = ""; $v_Fore[3] = ""; $v_Fore[4] = ""; $v_Fore[5] = $weather_loc->fore_day1_date; $v_Fore[6] = $weather_loc->fore_day2_date; $v_Fore[7] = $weather_loc->fore_day3_date; $v_Fore[8] = $weather_loc->fore_day4_date; $v_Fore[9] = $weather_loc->fore_day5_date; $weather_actimage = $fday_imgsrc[0] = isset($weather_loc->actcode) ? "http://us.i1.yimg.com/us.yimg.com/i/us/we/52/".$weather_loc->actcode.".gif" : ""; $v_Fore[10] = $fday_imgsrc[1] = isset($weather_loc->fore_day1_imgcode) ? "http://us.i1.yimg.com/us.yimg.com/i/us/we/52/".$weather_loc->fore_day1_imgcode.".gif" : $weather_actimage; $v_Fore[11] = $fday_imgsrc[2] = isset($weather_loc->fore_day2_imgcode) ? "http://us.i1.yimg.com/us.yimg.com/i/us/we/52/".$weather_loc->fore_day2_imgcode.".gif" : $weather_actimage; $v_Fore[12] = $fday_imgsrc[3] = isset($weather_loc->fore_day3_imgcode) ? "http://us.i1.yimg.com/us.yimg.com/i/us/we/52/".$weather_loc->fore_day3_imgcode.".gif" : $weather_actimage; $v_Fore[13] = $fday_imgsrc[4] = isset($weather_loc->fore_day4_imgcode) ? "http://us.i1.yimg.com/us.yimg.com/i/us/we/52/".$weather_loc->fore_day4_imgcode.".gif" : $weather_actimage; $v_Fore[14] = $fday_imgsrc[5] = isset($weather_loc->fore_day5_imgcode) ? "http://us.i1.yimg.com/us.yimg.com/i/us/we/52/".$weather_loc->fore_day5_imgcode.".gif" : $weather_actimage; $v_Fore[15] = ""; $v_Fore[16] = ""; $v_Fore[17] = ""; $v_Fore[18] = ""; $v_Fore[19] = ""; // MAIN ATTRIBUTES $zip_code = $zip_code; $unit = strtoupper($weather_unit); // CONTENT ATTRIBUTES $title = (!empty($weather_loc->title) ? $weather_loc->title : trim($title)); $link = $weather_yahoolink; $description = $weather_loc->description; $language = $weather_loc->language; $lastbuilddate = $weather_loc->lastdate; $ttl = $weather_loc->ttl; // YAHOO! WEATHER $citycode = $weather_citycode; //YWEATHER:LOCATION $city = $v_City = $weather_cityname; $region = $weather_loc->region; $country = $weather_loc->country; //YWEATHER:UNITS $temperature = $weather_loc->temperature; $distance = $weather_loc->distance; $pressure = $weather_loc->pressure; $speed = $weather_loc->speed; //YWEATHER:ATMOSPHERE $chill = $weather_loc->chill; $direction = $weather_loc->direction; $wind = $weather_loc->wind; $humidity = $weather_loc->humidity; $visibility = $weather_loc->visibility; $pressure = $weather_loc->pressure; $rising = $weather_loc->rising; //YWEATHER:ASTRONOMY $sunrise = $weather_loc->sunrise; $sunset = $weather_loc->sunset; //ACTUAL SITUATION $acttemp = $weather_loc->acttemp; $acttext = $weather_loc->acttext; $acttime = @format_weather_date($weather_loc->acttime); $imagurl = $weather_image_code; $actcode = $weather_loc->actcode; $imageurl = $fday_imgsrc[0]; //FORECAST DAY 1 $fore_day1_day = $weather_loc->fore_day1_day; $fore_day1_date = @format_weather_date($weather_loc->fore_day1_date); $fore_day1_tlow = $weather_loc->fore_day1_tlow; $fore_day1_thigh = $weather_loc->fore_day1_thigh; $fore_day1_text = $weather_loc->fore_day1_text; $fore_day1_imgcode = $fday_imgsrc[1]; //FORECAST DAY 2 $fore_day2_day = $weather_loc->fore_day2_day; $fore_day2_date = @format_weather_date($weather_loc->fore_day2_date); $fore_day2_tlow = $weather_loc->fore_day2_tlow; $fore_day2_thigh = $weather_loc->fore_day2_thigh; $fore_day2_text = $weather_loc->fore_day2_text; $fore_day2_imgcode = $fday_imgsrc[2]; //FORECAST DAY 3 $fore_day3_day = $weather_loc->fore_day3_day; $fore_day3_date = @format_weather_date($weather_loc->fore_day3_date); $fore_day3_tlow = $weather_loc->fore_day3_tlow; $fore_day3_thigh = $weather_loc->fore_day3_thigh; $fore_day3_text = $weather_loc->fore_day3_text; $fore_day3_imgcode = $fday_imgsrc[3]; //$v_Fore = explode("|", $v_Fore); $v_Fore[20] = $weather_loc->fore_day1_thigh; $v_Fore[21] = $weather_loc->fore_day2_thigh; $v_Fore[22] = $weather_loc->fore_day3_thigh; $v_Fore[23] = $weather_loc->fore_day4_thigh; $v_Fore[24] = $weather_loc->fore_day5_thigh; $v_Fore[40] = $weather_loc->fore_day1_tlow; $v_Fore[41] = $weather_loc->fore_day2_tlow; $v_Fore[42] = $weather_loc->fore_day3_tlow; $v_Fore[43] = $weather_loc->fore_day4_tlow; $v_Fore[44] = $weather_loc->fore_day5_tlow; $v_Baro_nice = PreNumber($v_Baro, $tp); $v_WindS_nice = VelNumber($v_WindS, $tp); $v_Real_nice = CelNumber2($v_Real, $tp); $v_Vis_nice = LenNumber($v_Vis, $tp); if ($tp == "C") { $temperature = CelNumber( $v_Temp, $tp); } else { $temperature = $v_Temp; } $image_path = "http://image.weather.com/web/common/wxicons/52/"; //$image_path = $module_root_path . "images/"; $image = $image_path . $v_CIcon . ".gif"; // End session management // Start Page Template Management $page_title = (!empty( $lang['Weather'] ) ? $lang['Weather'] : 'Weather'); include($mx_root_path . 'includes/page_header.'.$phpEx); //Set the Template file name(s) $template->set_filenames(array( "body_weather" => 'mx_weather_view.tpl') ); //Some vars for template $day1 = format_weather_date($v_Fore[5]); $day2 = $v_Fore[6]; $day3 = $v_Fore[7]; $day4 = date('l', ToDate($v_Fore[8])); $day5 = date('l', ToDate($v_Fore[9])); $image_day1 = $fday_imgsrc[1]; $image_day2 = $fday_imgsrc[2]; $image_day3 = $fday_imgsrc[3]; $image_day4 = $fday_imgsrc[4]; $image_day5 = $fday_imgsrc[5]; $v_Baro_nice = PreNumber ($v_Baro , $tp); $v_WindS_nice = VelNumber ($v_WindS, $tp); $v_Real_nice = CelNumber2($v_Real , $tp); $v_Vis_nice = LenNumber ($v_Vis , $tp); $checked_on = 'checked'; $checked_off = ''; // Asign vars to template $template->assign_vars(array( 'L_TITLE' => ( !empty( $lang['Weather'] ) ? $lang['Weather'] : 'Weather' ), 'L_INFO' => $v_City . ", " . $v_Region, 'L_DAY1' => !empty($lang['datetime'][$day1]) ? $lang['datetime'][$day1] : $day1, 'L_DAY2' => !empty($lang['datetime'][$day2]) ? $lang['datetime'][$day2] : $day2, 'L_DAY3' => !empty($lang['datetime'][$day3]) ? $lang['datetime'][$day3] : $day3, 'L_DAY4' => !empty($lang['datetime'][$day4]) ? $lang['datetime'][$day4] : $day4, 'L_DAY5' => !empty($lang['datetime'][$day5]) ? $lang['datetime'][$day5] : $day5, 'L_CHANGE_NOW' => $lang['Change'], 'IMG_DAY1' => $image_day1, 'IMG_DAY2' => $image_day2, 'IMG_DAY3' => $image_day3, 'IMG_DAY4' => $image_day4, 'IMG_DAY5' => $image_day5, 'IMG_CURRENT_COND' => $module_root_path . "images/current_cond.gif", 'IMG_FORECAST' => $module_root_path . "images/forecast.gif", 'TEMP_MAX_DAY1' => CelNumber($v_Fore[20],$tp), 'TEMP_MAX_DAY2' => CelNumber($v_Fore[21],$tp), 'TEMP_MAX_DAY3' => CelNumber($v_Fore[22],$tp), 'TEMP_MAX_DAY4' => CelNumber($v_Fore[23],$tp), 'TEMP_MAX_DAY5' => CelNumber($v_Fore[24],$tp), 'TEMP_MIN_DAY1' => CelNumber($v_Fore[40],$tp), 'TEMP_MIN_DAY2' => CelNumber($v_Fore[41],$tp), 'TEMP_MIN_DAY3' => CelNumber($v_Fore[42],$tp), 'TEMP_MIN_DAY4' => CelNumber($v_Fore[43],$tp), 'TEMP_MIN_DAY5' => CelNumber($v_Fore[44],$tp), 'WINDD' => $v_WindD, 'WINDS' => $v_WindS_nice, 'BARO' => $v_Baro_nice, 'HUMID' => $v_Humid .'%', 'UV' => $v_UV, 'REAL' => $v_Real_nice, 'VIS' => $v_Vis_nice, 'ACCID' => $accid, 'U_URL' => "index.$phpEx", 'TEMPERATURE' => $temperature, 'GRAD' => "°". $tp , 'IMG' => $image, 'L_COPYRIGHT' => "This Weather is provided by MSNBC", 'S_ACTION' => mx_append_sid("index.$phpEx"), 'WEATHER_CITY_SELECT' => weather_city_select($accid, 'accid'), 'CHECKED_TP_C' => ($tp == "C") ? $checked_on : $checked_off, 'CHECKED_TP_F' => ($tp == "F") ? $checked_on : $checked_off, 'ONCLICK_C' => ($tp == "F") ? "onClick=javascript:location.href='" . mx_append_sid("./index.php?ta=y&tmp=C&accid=" . $accid) . "';" : '', 'ONCLICK_F' => ($tp == "C") ? "onClick=javascript:location.href='" . mx_append_sid("./index.php?ta=y&tmp=F&accid=" . $accid) . "';" : '' )); $template->pparse("body_weather"); $template->destroy(); include($mx_root_path . 'includes/page_tail.'.$phpEx); ?> --- NEW FILE: main_weather.php --- <?php /** * * @package Mx-Publisher Module - mx_weather * @version $Id: main_weather.php,v 1.1 2013/06/17 18:19:30 orynider Exp $ * @copyright (c) 2007 [ory...@rd..., OryNider] Mx-Publisher Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ /****************************************************************** * MODIFICATIONS * --------------- * started : April 2002 * copyright : © MX-System * email : ory...@rd... * version : 1.0 * * MODIFICATIONS: * -adapted for MX-Publisher 3.x by OryNider * *******************************************************************/ if( !defined('IN_PORTAL') || !is_object($mx_block)) { die("Hacking attempt"); } // Read Block Settings $title = $mx_block->block_info['block_title']; //PORTAL_METEO_SETTINGS $block_id = (isset($block_id) ? $block_id : $mx_block->block_info['block_id']); $block_size = (isset($column) ? $mx_page->columns[$column]['column_size'] : 176); $b_description = $mx_block->block_info['block_desc']; // ********************************************************************** // Read module config // ********************************************************************** global $v_City, $v_SubDiv, $v_Country, $v_Region, $v_Temp, $v_CIcon, $v_WindS, $v_WindD, $v_Baro; global $v_Humid, $v_Real, $v_UV, $v_Vis, $v_LastUp, $v_Fore, $v_Acid; // =================================================== // Include the functions file // =================================================== require($module_root_path . 'includes/constants.'.$phpEx); require($module_root_path . 'includes/functions.'.$phpEx); $weather_config = read_weather_config($userdata['user_id']); $block_config = read_block_config($block_id); // -------------------------------- // Is admin? // -------------------------------- switch (PORTAL_BACKEND) { case 'internal': case 'phpbb2': $is_admin = ( ( $userdata['user_level'] == ADMIN ) && $userdata['session_logged_in'] ) ? true : 0; break; case 'phpbb3': $is_admin = ( $userdata['user_type'] == USER_FOUNDER ) ? true : 0; break; } // ********************************************************************** // Set Parameter // ********************************************************************** if (!isset($tp)) { $tp = $weather_config['weather_unit_default']; # Your Default temperature unit (C for Celsius, F for Fahrenheit) } //$weather_config[user_id] $sql = "SELECT t.weather_id, t.weather_city FROM " . CONFIG_WEATHER_DET_TABLE . " c , " . WEATHER_TABLE . " t WHERE c.user_id = 0 AND c.weather_id = t.weather_id ORDER BY weather_order"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Could not query weather table", $lang['Error'], __LINE__, __FILE__, $sql); } $weather_rows = $db->sql_fetchrowset($result); $weather_count = count($weather_rows); $image_path = $module_root_path . "images/"; $template->set_filenames(array( "body_weather" => 'mx_weather.tpl') ); // Now, this tries to optimize DB access involved in auth(), // passing AUTH_LIST_ALL will load info for all forums at once. $is_auth_ary = array(); //$is_auth_ary = $this->auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata); if ( $is_auth_ary['auth_edit'] ) if ((($mx_block->auth_view && $mx_block->auth_edit && $mx_block->show_block ) || $mx_block->auth_mod)) { $url_edit = mx_append_sid(PORTAL_URL . $module_root_path . "edit_weather.".$phpEx); $edit_img = '<a href="' . $url_edit . '"><img src="' . PHPBB_URL . $images['icon_edit'] . '" alt="' . $lang['Edit_Weather'] . '" title="' . $lang['Edit_Weather'] . '" border="0" /></a>'; } $template->assign_vars(array( 'BLOCK_SIZE' => ( !empty( $block_size ) ? $block_size : '100%' ), 'L_TITLE' => ( !empty( $lang['Weather'] ) ? $lang['Weather'] : 'Weather' ), 'EDIT_IMG' => $edit_img, 'L_CHANGE_NOW' => $lang['Change'], 'U_URL' => mx_append_sid( PORTAL_URL . 'index.'.$phpEx . '?block_id=' . $block_id), 'L_COPYRIGHT' => "This Weather is provided by weather.com", 'S_ACTION' => mx_append_sid(PORTAL_URL . "index.".$phpEx) )); for($i = 0; $i < $weather_count; $i++) { $city = $weather_rows[$i]['weather_id']; $cityname = $weather_rows[$i]['weather_city']; WeatherIndex($tp, $city, $module_root_path); if ( empty($v_CIcon) ) { $v_CIcon = $v_Fore[10]; } $image = $image_path . $v_CIcon . ".gif"; $template->assign_block_vars("cityrow", array( "U_CITY" => mx_append_sid( PORTAL_URL . $module_root_path . "index.".$phpEx.'?accid=' .$city ), "CITY" => $cityname, "IMAGE" => $image, "GRAD" => CelNumber($v_Fore[40],$tp) . '..' . CelNumber($v_Fore[20],$tp), "CITYID" => $city) ); } $template->pparse("body_weather"); ?> --- NEW FILE: mx_install_readme.htm --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1250"> <TITLE>Mx Portal installation - readme</TITLE> <META NAME="CREATED" CONTENT="0;0"> <META NAME="CHANGEDBY" CONTENT="Florin Bodin"> <!-- link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" --> <SCRIPT LANGUAGE="Javascript"> <!-- if ( 0 ) { window.open('privmsg.php?mode=newpm', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; } //--> </SCRIPT> <STYLE TYPE="text/css"> <!-- P { color: #000000; font-family: "Verdana", "Arial", "Helvetica", sans-serif } TD P { color: #000000; font-family: "Verdana", "Arial", "Helvetica", sans-serif } A:link { color: #006699 } --> </STYLE> </HEAD> <BODY LANG="ro-RO" TEXT="#000000" LINK="#006699" BGCOLOR="#e5e5e5" DIR="LTR"> <TABLE BORDER=1 CELLPADDING=2 CELLSPACING=2 FRAME=VOID STYLE="page-break-before: always"> <TR> <TD COLSPAN=2> <P><A NAME="top"></A><A NAME="install"></A><A NAME="themes"></A><A NAME="languages"></A> <FONT SIZE=2 STYLE="font-size: 9pt"><BR></FONT><FONT SIZE=3><B>Module</B></FONT><FONT SIZE=2 STYLE="font-size: 9pt"> <BR>- for Mx Portal v. 2.7.9, 2.8.3+ or 3.0+ <BR><BR></FONT><FONT SIZE=2 STYLE="font-size: 9pt"><B>Description: Displays weather conditions on your site</B></FONT><FONT SIZE=2 STYLE="font-size: 9pt"> <BR>This module is an addon module for the Mx Portal. More detailed release info is published (and updated) at <A HREF="http://www.mx-system.com/">www.mx-publisher.com</A>.<BR><BR>I. <A HREF="#install">Installation instructions</A> <BR><BR>II. <A HREF="#themes">Additional styles</A> <BR><BR>III. <A HREF="#languages">Additional languages</A> <BR><BR><A HREF="http://www.mx-system.com/" TARGET="_blank">DEMO </A><BR><BR><A HREF="http://www.mx-system.com/index.php?page=4&action=category&cat_id=5" TARGET="_blank">DOWNLOAD </A><BR><BR><BR></FONT><FONT SIZE=2 STYLE="font-size: 9pt"><B>I. Installation Instructions</B></FONT><FONT SIZE=2 STYLE="font-size: 9pt"> <BR>To install this module, follow these instructions. If you encounter any problems during install, visit the <A HREF="http://www.mx-system.com/forum/viewforum.php?f=20" TARGET="_blank">module support forum</A>. <BR><BR>1) Remove possible old installation (older than v. 1.0) <BR>Delete all module files within /modules/modulename<BR><BR>2) Copy and upload new files <BR>Unzip the distributed files into your portal modules directory ([Portal_URL]/modules/) and upload <BR><BR>3) Import definition file <BR>In the Administration Panel -> Module Administration, import Module Pack for this module <BR><BR>4) Now the module is installed, but to use it you need to add the module Block to a Portal Page. <BR><BR>- Portal Administration Panel -> Page Administration -> Add Block -> Select your module Block from the drop-down list <BR><BR><A HREF="#top">Back to Top</A> <BR><BR><BR></FONT><FONT SIZE=2 STYLE="font-size: 9pt"><B>II. Additional Styles</B></FONT><FONT SIZE=2 STYLE="font-size: 9pt"> <BR>This module is compatible with any theme/style. All template files are located within modules/mx_modulename/templates. Note: You dont have to specify 'SubSilver' or any theme name, since all theme settings follow from the general portal/phpbb page header. <BR><BR><A HREF="#top">Back to Top</A> <BR><BR><BR></FONT><FONT SIZE=2 STYLE="font-size: 9pt"><B>III. Additional Languages</B></FONT><FONT SIZE=2 STYLE="font-size: 9pt"> <BR>First check to see if your language is already translated. <BR><BR>Translated languages are downloaded <A HREF="http://www.mx-system.com/index.php?page=4&action=category&cat_id=5" TARGET="_blank">here</A>. <BR><BR>If exists, download and install in the modules/mx_modulename/language folder. If not, duplicate (copy and paste) any included language file, rename to match your language, translate using any texteditor, save and upload. <BR><BR><A HREF="#top">Back to Top</A> <BR><BR>/Mx Team</FONT></P> </TD> </TR> </TABLE> <P><BR><BR> </P> </BODY> </HTML> --- NEW FILE: portal_weather.php --- <?php /** * * @name weather.php * @package MX-Publisher Core * @version $Id: portal_weather.php,v 1.1 2013/06/17 18:19:30 orynider Exp $ * @copyright (c) 2007-2012 MX-Publisher Project Team * @docs: http://docs.rainmeter.net/tips/webparser-weather-location-code * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // // ERROR HANDLING // //error_reporting( E_ALL ); if(!defined('IN_PORTAL') || !is_object($mx_block)) { die("Hacking attempt"); } /** * Read Block Settings * Default modulename * Set 'PORTAL_WEATHER' in block settings then use lang[] */ $title = $mx_block->block_info['block_title']; $show_title = $mx_block->block_info['show_title']; $block_id = (isset($block_id) ? $block_id : $mx_block->block_info['block_id']); $block_size = (isset($column) ? $mx_page->columns[$column]['column_size'] : 176); $b_description = $mx_block->block_info['block_desc']; /** * Default module-image: * file must be in "{T_THEME_PATH}/images/portal/" * $image_src = 'portal_weather.png'; */ // Read configuration definition $legend1 = $mx_block->get_parameters('GER'); $module_icon_name = $mx_block->get_parameters('module_image'); $module_icon_width = $mx_block->get_parameters('module_img_width'); $module_icon_height = $mx_block->get_parameters('module_img_height'); $weather_cityZipcode = $mx_block->get_parameters('weather_default_zipcode'); // RO0AR0001 = ROXX0024 $weather_citycode = $mx_block->get_parameters('weather_default_citycode'); //866307 $weather_country = $mx_block->get_parameters('weather_default_country'); //RO $weather_unit = $mx_block->get_parameters('weather_default_unit'); //Your Default temperature unit (C for Celsius, F for Fahrenheit) $weather_alternate_url0 = $mx_block->get_parameters('ALTERNATE_URL'); $weather_alternate_url1 = $mx_block->get_parameters('ALTERNATE_URL1'); $weather_alternate_url2 = $mx_block->get_parameters('ALTERNATE_URL2'); $template_use_large = $mx_block->get_parameters('template_use_large'); /** * Get menu icon */ $module_icon_name = (@file_exists($mx_root_path . $images['mx_graphics']['menu_icons'] . '/' . $module_icon_name) ? $module_icon_name : 'icon_blank.gif'); $module_iconhot_name = str_replace('.gif', '_hot.gif', $module_icon_name); if (@file_exists($mx_root_path . $images['mx_graphics']['menu_icons'] . '/' . $module_iconhot_name)) { $module_icon_file = $module_iconhot_name; $module_icon_style = 'mnu-nm-current'; $core_icon_style = 'cattitle'; } else { $module_icon_file = $module_icon_name; $module_icon_style = 'mnu-nm'; $core_icon_style = 'genmed'; } //Align = ALIGN = LEFT | RIGHT | TOP | TEXTTOP | MIDDLE | ABSMIDDLE | BOTTOM | ABSBOTTOM | BASELINE $module_icon_align = 'left'; $module_icon_url = PORTAL_URL . $images['mx_graphics']['menu_icons'] . '/' . $module_icon_file; $module_icon = (!empty($module_icon_name) && $module_icon_name != 'none') ? '<img class="'.$module_icon_style.'" border="0" align="'.$module_icon_align.'" src="' . $module_icon_url . '" alt="' . $b_description . '" /> ' : '<img class="'.$module_icon_style.'" border="0" align="'.$module_icon_align.'" src="' . $images['weather_logo'] . '" width="'. $module_icon_width .'" height="'. $module_icon_height .'" alt="' . $b_description . '" /> '; /* * Include the functions file */ require($module_root_path . 'includes/constants.'.$phpEx); require($module_root_path . 'includes/functions.'.$phpEx); require($module_root_path . 'includes/class_xmlparser.'.$phpEx); require($module_root_path . 'includes/class_weather.'.$phpEx); /* * Start session management */ $weather_config = read_weather_config($userdata['user_id']); /* * Begin block script here */ $weather_zipcode = !empty($weather_cityZipcode) ? $weather_cityZipcode : $weather_config['weather_zipcode_default']; // default postal code $weather_country = !empty($weather_country) ? $weather_country : $weather_config['weather_country_default']; // default country name /* $weather_alternate_url0 = $weather_config['weather_alternate_url']; $weather_alternate_url1 = $weather_config['weather_alternate_url1']; $weather_alternate_url2 = $weather_config['weather_alternate_url2']; */ // Set Local variables $partner_ID = $weather_config['partner_id_default']; $license_key = $weather_config['license_key_default']; $tp = $weather_config['weather_unit_default']; # Your Default temperature unit (C for Celsius, F for Fahrenheit) //Set User variables $zip_code = !empty($userdata['user_zipcode']) ? $userdata['user_zipcode'] : $weather_zipcode; $user_loc = !empty($userdata['user_from']) ? $userdata['user_from'] : $weather_country; /* * Set the filename of the template you want to use for this file. */ // // BEGIN OUTPUT // $template_tmp = (($recent_use_large == 'horizontal') ? array('weather_body' => 'weather_4401.tpl') : array('weather_body' => 'weather_side.tpl')); $template->set_filenames($template_tmp); /* * Some cod */ if (!($length >= 1 && $length <= 10)) { $length = 10; } if(empty($user_loc)) { $user_loc = $zip_code; } if (strlen($zip_code) < 5) { $zip_code = '0' . $zip_code; } //Arad, Romania //$user_loc = $user_loc; //Country Site is first 2 characters from the left of ZIP_CODE or the last 2 characters of COUNTRY_CODE (RO or EURO, etc) $zip_site = !is_numeric(substr($zip_code, 0, 2)) ? strtoupper(substr($zip_code, 0, 2)) : strtoupper(substr($weather_country, 1, 2)); //print_r("$user_loc"); // Create the new weather object! $cachefile = $module_root_path . "cache/".$zip_code.".dat"; // Cache duration in seconds. The cache will be updated with a live feed after the specified time // 3600 = seconds of cache lifetime (expires after that) $cachetimeinseconds = 3600; // RO0AR0001 = ROXX0024 = 866307 - Location Code from weather.yahoo.com // C = Units in Celsius! (Option: F = Fahrenheit) $weather_loc = new weather($zip_code, $cachetimeinseconds, $weather_unit, $module_root_path); // Parse the weather object via cached // This checks if there's an valid cache object allready. if yes // it takes the local object data, what's much FASTER!!! if it // is expired, it refreshes automatically from rss online! $weather_loc->parsecached(); // => RECOMMENDED! // allway refreshes from rss online. NOT SO FAST. //$weather_loc->parse(); // => NOT recommended! //Set some variables again $weather_image_code = isset($weather_loc->imageurl) ? "<div style=\"background-image: url('".$weather_loc->imageurl."'); background-position: 0px 0px; height: 40px; width: 200px; padding-left: 5px; padding-right: 5px; border: 0px;\" alt=\"\"> </div>" : ""; $weather_cityname = isset($weather_loc->city) ? $weather_loc->city : $weather_country; // Arad, Romania $weather_yahoolink = isset($weather_loc->yahoolink) ? $weather_loc->yahoolink : 'http://us.rd.yahoo.com/dailynews/rss/weather/'.$weather_cityname.'__'.$zip_site.'/*http://xml.weather.yahoo.com/forecast/'.$zip_code.'_c.html'; $weather_unit = isset($weather_loc->unit) ? $weather_loc->unit : $weather_unit; //Yahoo is in the process of an upgrade. It is removing the p= part and replacing it with w= to use the more powerful new WOEID codes. $weather_yahooxml = "http://xml.weather.yahoo.com/forecastrss?u=".$weather_unit."&w=".$weather_citycode; $weather_actimage = isset($weather_loc->actcode) ? "http://us.i1.yimg.com/us.yimg.com/i/us/we/52/".$weather_loc->actcode.".gif" : ""; //$weather_sunrise = $weather_loc->sunrise; // 6:49 am //$weather_sunset = $weather_loc->sunset; // 08:05 pm $fday_imgsrc = array(); $fday_imgsrc[0] = isset($weather_loc->actcode) ? "http://us.i1.yimg.com/us.yimg.com/i/us/we/52/".$weather_loc->actcode.".gif" : ""; $fday_imgsrc[1] = isset($weather_loc->fore_day1_imgcode) ? "http://us.i1.yimg.com/us.yimg.com/i/us/we/52/".$weather_loc->fore_day1_imgcode.".gif" : $weather_actimage; $fday_imgsrc[2] = isset($weather_loc->fore_day2_imgcode) ? "http://us.i1.yimg.com/us.yimg.com/i/us/we/52/".$weather_loc->fore_day2_imgcode.".gif" : $weather_actimage; $fday_imgsrc[3] = isset($weather_loc->fore_day3_imgcode) ? "http://us.i1.yimg.com/us.yimg.com/i/us/we/52/".$weather_loc->fore_day3_imgcode.".gif" : $weather_actimage; /** * Assings Main Template Variables to Constants */ $template->assign_vars(array( 'L_TITLE' => (!empty($lang[$title]) ? $lang[$title] : $title), 'SHOW_TITLE' => $show_title, 'SHOW_ICON' => $legend1, 'BLOCK_SIZE' => (!empty($block_size) ? $block_size : '100%'), 'BLOCK_ID' => $block_id, 'BLOCK_ICON' => $module_icon, 'IMAGE_SRC' => $module_icon_url, 'IMAGE_STYLE' => $module_icon_style, 'IMAGE_CORESTYLE' => $core_icon_style, 'LOCATION_ZIP' => $zip_code, 'L_WEATHER' => (!empty($weather_loc->title) ? $weather_loc->title : $lang['Weather']), 'L_WEATHER_NOW' => $lang['WEATHER_NOW'], 'L_YAHOO_WEATHER' => $lang['Yahoo_Forecast'], 'L_WEATHER_CHANNEL' => $lang['Weather_Channel'], 'L_ACTTEXT' => $lang['acttext'], 'L_ACTTEMP' => $lang['acttemp'], 'L_ACTTIME' => $lang['acttime'], 'L_IMAGURL' => $lang['imageurl'], 'L_ACTCODE' => $lang['actcode'], 'L_TEMP_ICON' => $lang['Temp_icon'], 'L_TEMP_UNIT' => strtoupper($weather_unit), 'WEATHER_YAHOOLINK' => $weather_yahoolink, 'WEATHER_COUNTRY' => $user_loc, 'CITY_CODE' => $weather_citycode, 'CITY_NAME' => $weather_cityname, 'ACTTEMP' => $weather_loc->acttemp, 'ACTTEXT' => (!empty($lang[strtoupper(weather_clean_string($weather_loc->acttext))]) ? $lang[strtoupper(weather_clean_string($weather_loc->acttext))] : $weather_loc->acttext), 'ACTTIME' => @format_weather_date($weather_loc->acttime), 'IMAGURL' => $weather_image_code, 'ACTCODE' => $weather_loc->actcode, 'ACTIMG_SRC' => $weather_actimage, 'L_FORECAST_DAY' => $lang['Forecast_Day'], 'FDAY_DAY' => $weather_loc->fore_day1_day, 'FDAY_DATE' => @format_weather_date($weather_loc->fore_day1_date), 'FDAY_TEMPLOW' => $weather_loc->fore_day1_tlow, 'FDAY_TEMPHIGHT' => $weather_loc->fore_day1_thigh, 'FDAY_FORECAST' => $weather_loc->fore_day1_text, 'FDAY_IMGNUM' => $weather_loc->fore_day1_imgcode, 'FDAY_IMGSRC' => $fday_imgsrc[1], 'WEATHER_ALTERNATE_URL0' => sprintf(htmlspecialchars_decode($weather_alternate_url0)), 'WEATHER_ALTERNATE_URL1' => sprintf(htmlspecialchars_decode($weather_alternate_url1)), 'WEATHER_ALTERNATE_URL2' => sprintf(htmlspecialchars_decode($weather_alternate_url2)) )); /* Parse Template */ $template->pparse('weather_body'); ?> --- NEW FILE: install.txt --- [RELEASE] Weather Module 1.0 - for Mx Portal v. 2.7 (or later) Description The Download module is an addon module for the Mx Portal. Installation Instructions To install the Weather module, follow these instructions. If you encounter any problems during install, visit the module support forum. 1) Copy and upload new files Unzip the distributed files into your portal directory and upload 2) Import definition file In the Administration Panel -> Module Administration, import Module Pack "modules/mx_weather/Weather.pak" 4) Install new db tables In you browser, call: [portal URL]/modules/mx_weather/weather_db_install.php Additional Styles To install/adapt the download module for another theme/style not included in the module distribution, simply duplicate (copy and paste) any included styles folder content (from for example the 'default' or 'SubSilver' folder), to your already installed theme/style folder. For example: You have already installed the theme 'Mytheme' for the Mx Portal. This theme is not included in the module distribution. Then copy all files from [portal URL]/templates/default/* (distributed with the module) to [portal URL]/templates/Mytheme/ Upload new/modified files. Additional Languages First verify that your language hasn't already been translated. If not, duplicate (copy and paste) any included language file, rename to match your language, translate using any texteditor, save and upload. Example: // Set Local variables $partner_ID = "1028415260"; $license_key = "2e4acb02077ea1da"; $location = urlencode($HTTP_POST_VARS['loc']); //search on location (city or zip) $loc_id = $HTTP_POST_VARS['id']; // specific town id $length = $HTTP_POST_VARS['length']; // Forecast length if (!($length >= 1 && $length <= 10)) $length = 10; if(empty($loc_id) && empty($location)) { $loc_id = $userdata['user_zipcode']; } // First URL for searching, second for detail. $search_url = "http://xoap.weather.com/search/search?where=$location"; $forecast_url = "http://xoap.weather.com/weather/local/$loc_id?cc=*&dayf=$length&link=xoap&par=$partner_ID&key=$license_key"; --- NEW FILE: db_install.php --- <?php /** * * @package Mx-Publisher Module - mx_weather * @version $Id: db_install.php,v 1.1 2013/06/17 18:19:30 orynider Exp $ * @copyright (c) 2003 [ory...@rd..., OryNider] Mx-Publisher Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ define( 'IN_PORTAL', true ); if ( !defined( 'IN_ADMIN' ) ) { $mx_root_path = './../../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include( $mx_root_path . 'common.' . $phpEx ); // Start session management $mx_user->init($user_ip, PAGE_INDEX); // End session management if ( !$userdata['session_logged_in'] ) { die( "Hacking attempt(1)" ); } if ( $userdata['user_level'] != ADMIN ) { die( "Hacking attempt(2)" ); } } global $mx_user; /* switch (PORTAL_BACKEND) { case 'internal': case 'phpbb2': $user_id = $userdata['user_id']; $user_ip = $userdata['session_ip']; break; case 'phpbb3': $user_id = $mx_user->data['user_id']; $user_ip = phpBB2::encode_ip($mx_user->data['session_ip']); break; default: $user_id = $userdata['user_id']; $user_ip = $userdata['session_ip']; } */ $mx_module_version = '3.0.0'; $mx_module_copy = 'Mx-Publisher <i> - Weather </i> module by <a href="http://www.mx-publisher.com/" target="_blank">Jon Ohlsson</a> & <a href="http://www.pubory.uv.ro/" target="_blank">Florin C. Bodin</a>'; // For compatibility with core 2.7.+ define('MXBB_27x', file_exists($mx_root_path . 'mx_login.php')); if (MXBB_27x) { include_once($mx_root_path . 'modules/mx_weather/includes/functions_mx.' . $phpEx); } // If fresh install if (!$result = $db->sql_query("SELECT license_key_deault from " . $mx_table_prefix . "weather_config")) { $message = "<b>This is a fresh install!</b><br/><br/>"; $sql = array( "CREATE TABLE ".$mx_table_prefix."weather_config ( user_id mediumint(8) NOT NULL default '0', weather_unit_default char(1) default 'C', weather_city_default varchar(100) default NULL, weather_zipcode_default varchar(100) default NULL, weather_country_default varchar(100) NOT NULL default '', partner_id_default varchar(100) default NULL, license_key_deault varchar(100) default NULL, PRIMARY KEY (user_id) )", "CREATE TABLE ".$mx_table_prefix."weather_det_config ( user_id mediumint(8) NOT NULL default '0', weather_id varchar(30) NOT NULL default '', weather_order smallint(5) unsigned NOT NULL default '0', PRIMARY KEY (user_id,weather_id) )", "CREATE TABLE ".$mx_table_prefix."weather ( weather_id varchar(30) NOT NULL default '', weather_country varchar(100) NOT NULL default '', weather_city varchar(100) default NULL, weather_region varchar(100) default NULL, weather_subdiv varchar(100) default NULL, PRIMARY KEY (weather_id) ) " ); $sql[] = "INSERT INTO " . $mx_table_prefix . "weather_config VALUES (0, 'C', '866307', 'ROXX0024', 'RO', '0', '0')"; if (!MXBB_27x) { $sql[] = "UPDATE " . $mx_table_prefix . "module" . " SET module_version = '" . $mx_module_version . "', module_copy = '" . $mx_module_copy . "' WHERE module_id = '" . $mx_module_id . "'"; } $sql[] = "ALTER TABLE " . $phpbb_table_prefix . "users ADD user_zipcode VARCHAR (10) "; $message .= mx_do_install_upgrade($sql); } else { // If already installed $message = "<b>Module is already installed...consider upgrading ;)</b><br/><br/>"; } echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; echo "<tr><th class=\"thHead\" align=\"center\">Module Installation/Upgrading/Uninstalling Information - module specific db tables</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; ?> --- NEW FILE: weather.php --- <?php /** * * @package Mx-Publisher Module - Weather * @version $Id: weather.php,v 1.1 2013/06/17 18:19:30 orynider Exp $ * @copyright (c) 2007 [ory...@rd..., OryNider] Mx-Publisher Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ /*************************************************************************** * MODIFICATIONS * --------------- * begin : Monday, February 15, 2006 * copyright : (C) 2006 MichaelLewisMusic.com Web Team * email : Fr...@mi... * * $Id: weather.php,v 1.1 2013/06/17 18:19:30 orynider Exp $ * * ***************************************************************************/ if( !defined('IN_PORTAL') || !is_object($mx_block)) { die("Hacking attempt"); } // Read Block Settings $title = $mx_block->block_info['block_title']; //PORTAL_METEO_SETTINGS $block_id = (isset($block_id) ? $block_id : $mx_block->block_info['block_id']); $block_size = (isset($column) ? $mx_page->columns[$column]['column_size'] : 176); $b_description = $mx_block->block_info['block_desc']; // Read configuration definition $legend1 = $mx_block->get_parameters( 'SETTINGS_GER' ); $weather_ger_image = $mx_block->get_parameters('module_image'); $weather_ger_width = $mx_block->get_parameters('module_img_width'); $weather_ger_height = $mx_block->get_parameters('module_img_height'); $weather_zipcode = $mx_block->get_parameters('weather_default_postal'); $weather_country = $mx_block->get_parameters('weather_default_country'); $partner_ID = $mx_block->get_parameters('weather_default_partner_id'); $license_key = $mx_block->get_parameters('weather_default_license_key'); $legend2 = $mx_block->get_parameters('SETTINGS_ALT'); $weather_alternate_url = $mx_block->get_parameters('ALTERNATE_URL'); $weather_alternate_url1 = $mx_block->get_parameters('ALTERNATE_URL1'); $weather_alternate_url2 = $mx_block->get_parameters('ALTERNATE_URL2'); // =================================================== // Include the functions file // =================================================== require($module_root_path . 'includes/constants.'.$phpEx); require($module_root_path . 'includes/functions.'.$phpEx); $weather_config = read_weather_config($userdata['user_id']); $template->set_filenames(array( 'body' => 'mx_weather_local.tpl') ); // Set Local variables $weather_zipcode = !empty($weather_zipcode) ? $weather_zipcode : $weather_config['weather_zipcode_default']; // default postal code $weather_cou... [truncated message content] |
|
From: Florin C B. <ory...@us...> - 2013-06-17 18:19:32
|
Update of /cvsroot/mxbb/mx_weather/admin In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv19930/admin Added Files: admin_mx_weather.php index.htm Log Message: --- NEW FILE: admin_mx_weather.php --- <?php /*************************************************************************** * @begin May, 2002 * @package mxBB Portal Module - mx_weather * @version $Id: admin_mx_weather.php,v 1.1 2013/06/17 18:19:29 orynider Exp $ * @copyright (c) 2002 [ory...@rd..., OryNider] MX-System * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ***************************************************************************/ // ====================================================== // [ ADMINCP COMMON INITIALIZATION ] // ====================================================== $no_page_header = TRUE; // Add our entry to the Administration Control Panel... if( !empty($setmodules) ) { $file = basename(__FILE__); $module['Module_Weather']['General_Module_Settings'] = 'modules/mx_weather/admin/' . $file; return; } // Setup basic portal stuff... @define('IN_ADMIN', 1); $mx_root_path = '../../../'; $module_root_path = "../"; // // Start session management // define('PAGE_WEATHER_ADMIN', -51); //$userdata = session_pagestart($user_ip, PAGE_WEATHER_ADMIN); //mx_init_userprefs($userdata); // // End session management // // // Security and page header... // // require($mx_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1); require($mx_root_path . '/admin/pagestart.'.$phpEx); // // Send page header... // include_once($mx_root_path . 'admin/page_header_admin.'.$phpEx); // // Include common module stuff... // include($module_root_path . 'includes/constants.'.$phpEx); include($module_root_path . 'includes/functions.'.$phpEx); // ====================================================== // [ MAIN PROCESS ] // ====================================================== /* if( !$userdata['session_logged_in'] ) { $header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: '; header($header_location . mx_append_sid("../login.$phpEx?redirect=admin/")); exit; } else if( $userdata['user_level'] != ADMIN ) { mx_message_die(GENERAL_MESSAGE, $lang['Not_admin']); } */ function list_import_file() { global $db; $dir = @opendir( "../db/" ); $import_file = array(); $i = 0; while( $file = @readdir($dir) ) { if( preg_match("/^Weather_.*?\." . "sql" . "$/", $file) ) { $import_file[$i][file] = $file; $import_file[$i][display] = str_replace("Weather_","",basename($file)); $import_file[$i][display] = str_replace(".sql","",$import_file[$i][display]); $import_file[$i][display] = str_replace("_"," - ",$import_file[$i][display]); $i = $i +1; } } $nbr_option = $i; $weather_select = '<select name="weather_import_file">'; for($i = 0; $i < $nbr_option; $i++ ) { $info_display = rtrim( $import_file[$i][display]); $pos_div = strpos($info_display, "-"); $region = $info_display; $subdiv = ''; $sql_where = " WHERE (weather_region = '" . $region . "' OR weather_country = '" . $region . "')"; if ( $pos_div != 0) { $region = substr( $info_display ,0, $pos_div -1 ); $subdiv = ltrim( substr( $info_display, $pos_div +1 )); $sql_where = " WHERE (weather_region = '" . $region . "' OR weather_country = '" . $region . "') AND weather_subdiv = '" . $subdiv . "'"; } $sql = "SELECT DISTINCT weather_region, weather_country, weather_subdiv FROM " . WEATHER_TABLE . $sql_where; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, "Couldn't get list of Weather option", "", __LINE__, __FILE__, $sql); } if( $db->sql_numrows($result) == 0 ) { $weather_select .= '<option value="' . $import_file[$i][file] . '">' . $import_file[$i][display] . '</option>'; } } $weather_select .= "</select>"; @closedir($dir); return $weather_select; } function renumber_order() { global $db; $sql = "SELECT * FROM " . CONFIG_WEATHER_DET_TABLE; $sql .= " WHERE user_id = 0 ORDER BY weather_order ASC"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't get list of Weather option", "", __LINE__, __FILE__, $sql); } $i = 10; $inc = 10; while( $row = $db->sql_fetchrow($result) ) { $sql = "UPDATE " . CONFIG_WEATHER_DET_TABLE . " SET weather_order = $i WHERE user_id = 0 AND weather_id = '" . $row[weather_id] . "'"; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't update order fields", "", __LINE__, __FILE__, $sql); } $i += 10; } } // // remove_remarks will strip the sql comment lines out of an uploaded sql file // if (!function_exists('mx_remove_remarks')) { function mx_remove_remarks(&$sql) { return preg_replace('/(\n){2,}/', "\n", preg_replace('/^#.*/m', "\n", $sql)); } } if (!function_exists('mx_remove_comments')) { function mx_remove_comments(&$sql) { return preg_replace('/(\n){2,}/', "\n", preg_replace('/^--.*/m', "\n", $sql)); } } // // split_sql_file will split an uploaded sql file into single sql statements. // Note: expects trim() to have already been run on $sql. // if (!function_exists('split_sql_file')) { function split_sql_file($sql, $delimiter) { $sql = str_replace("\r" , '', $sql); $data = preg_split('/' . preg_quote($delimiter, '/') . '$/m', $sql); $data = array_map('trim', $data); // The empty case $end_data = end($data); if (empty($end_data)) { unset($data[key($data)]); } return $data; } } // // For replacing {L_*} strings with preg_replace_callback // if (!function_exists('adjust_language_keys_callback')) { function adjust_language_keys_callback($matches) { if (!empty($matches[1])) { global $lang, $db; return (!empty($lang[$matches[1]])) ? $db->sql_escape($lang[$matches[1]]) : $db->sql_escape($matches[1]); } } } // ********************************************************************** // Read language definition // ********************************************************************** if (!file_exists($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx)) { require($module_root_path . 'language/lang_english/lang_main.'.$phpEx); } else { require($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx); } if (!file_exists($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.'.$phpEx)) { require($module_root_path . 'language/lang_english/lang_admin.'.$phpEx); } else { require($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.'.$phpEx); } //include_once($mx_root_path . 'admin/page_header_admin.'.$phpEx); //include_once($phpbb_root_path.'includes/sql_parse.'.$phpEx); // // Limit // $start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0; // // Region // if( isset($HTTP_GET_VARS['weather_region']) || isset($HTTP_POST_VARS['weather_region']) ) { $weather_region_sel = ( !empty($HTTP_GET_VARS['weather_region'])) ? $HTTP_GET_VARS['weather_region'] : $HTTP_POST_VARS['weather_region']; $weather_region_sel = str_replace("\'","'",$weather_region_sel); } else { $sql = "SELECT DISTINCT weather_region, weather_country, weather_subdiv FROM " . WEATHER_TABLE . " ORDER BY weather_region, weather_country, weather_subdiv"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, "Couldn't query weather table", "", __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $weather_region_sel = ( empty( $row['weather_subdiv']) ) ? "weather_region ='" . $row['weather_region'] . "' and weather_country ='" . $row['weather_country'] . "'" : "weather_region ='" . $row['weather_region'] . "' and weather_country ='" . $row['weather_country'] . "' and weather_subdiv ='" . $row['weather_subdiv'] . "'"; } if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) { $mode = ($HTTP_GET_VARS['mode']) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode']; } else { if ( isset($HTTP_POST_VARS['submit'])) { $mode = "update"; } else if ( isset($HTTP_POST_VARS['add_city'])) { $mode = "add_city"; } else if ( isset($HTTP_POST_VARS['save'])) { $mode = "save_city"; } else if ( isset($HTTP_POST_VARS['import_city'])) { $mode = "import_city"; } else { $mode = ""; } } if( $mode != "" ) { switch($mode) { case 'update': $new = array(); $new['weather_unit_default'] = $mx_request_vars->post('weather_unit_default', MX_TYPE_NO_TAGS, ''); $new['weather_city_default'] = $mx_request_vars->post('weather_city_default', MX_TYPE_NO_TAGS, ''); $new['weather_zipcode_default'] = $mx_request_vars->post('weather_zipcode_default', MX_TYPE_NO_TAGS, ''); $new['weather_country_default'] = $mx_request_vars->post('weather_country_default', MX_TYPE_NO_TAGS, ''); $new['partner_id_default'] = $mx_request_vars->post('partner_id_default', MX_TYPE_NO_TAGS, ''); $new['license_key_deault'] = $mx_request_vars->post('license_key_deault', MX_TYPE_NO_TAGS, ''); if (!$result = $db->sql_query("SELECT user_id from ".CONFIG_WEATHER_TABLE)) { switch (PORTAL_BACKEND) { case 'internal': case 'phpbb2': $config_array = array_merge(array('user_id' => (int) '0',), $new); $sql = "INSERT INTO ".CONFIG_WEATHER_TABLE." (". implode(', ', array_keys($config_array)). ") VALUES (". implode(', ', array_values($config_array)). ")"; break; case 'phpbb3': $sql = "INSERT INTO ".CONFIG_WEATHER_TABLE.$db->sql_build_array('INSERT', array_merge(array('user_id' => (int) '0',), $new)); break; } } else { //$weather_unit_default = $HTTP_POST_VARS['weather_unit_default']; $sql = "UPDATE " . CONFIG_WEATHER_TABLE . " SET " . $db->sql_build_array('UPDATE', $new); //$sql = "UPDATE " . CONFIG_WEATHER_TABLE . " SET weather_unit_default = '$weather_unit_default' WHERE user_id = 0" ; } if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, "Could not update data from weather table", $lang['Error'], __LINE__, __FILE__, $sql); } break; case 'save_city': $weather_region = $HTTP_POST_VARS['weather_region_e']; $weather_country = $HTTP_POST_VARS['weather_country_e']; $weather_subdiv = $HTTP_POST_VARS['weather_subdiv_e']; $weather_city = $HTTP_POST_VARS['weather_city_e']; $weather_code = $HTTP_POST_VARS['weather_code_e']; if ( isset($HTTP_POST_VARS['id'] ) ) { $sql = "UPDATE " . WEATHER_TABLE . " set weather_region = '" . $weather_region . "'" . " , weather_country = '" . $weather_country . "'" . " , weather_subdiv = '" . $weather_subdiv . "'" . " , weather_city = '" . $weather_city . "'" . " , weather_id = '" . $weather_code . "'" . " WHERE weather_id = '" . $HTTP_POST_VARS['id'] . "'"; } else { $sql = "INSERT INTO " . WEATHER_TABLE . "(weather_region, weather_country, weather_subdiv, weather_city, weather_id ) VALUES ('" . $weather_region . "','" . $weather_country . "','" . $weather_subdiv . "','" . $weather_city . "','" . $weather_code . "')" ; } if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, "Could not add data in weather table", $lang['Error'], __LINE__, __FILE__, $sql); } break; case 'add': $weather_id = ( isset($HTTP_GET_VARS['id']) ) ? $HTTP_GET_VARS['id'] : 0; $sql = "SELECT max(weather_order) weather_order FROM " . CONFIG_WEATHER_DET_TABLE . " WHERE user_id = 0"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't get list of Weather option", "", __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $weather_order = $row[weather_order] + 10; $sql = "INSERT INTO " . CONFIG_WEATHER_DET_TABLE . " (user_id, weather_id, weather_order ) VALUES ( 0, '" . $weather_id . "' , ". $weather_order." ) "; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, "Could not add data from weather table", $lang['Error'], __LINE__, __FILE__, $sql); } break; case 'import_city': $available_dbms = array( "mysql" => array( "LABEL" => "MySQL 3.x", "SCHEMA" => "mysql", "DELIM" => ";", "DELIM_BASIC" => ";", "COMMENTS" => "mx_remove_remarks" ), "mysql4" => array( "LABEL" => "MySQL 4.x", "SCHEMA" => "mysql", "DELIM" => ";", "DELIM_BASIC" => ";", "COMMENTS" => "mx_remove_remarks" ), "mysqli" => array( "LABEL" => "MySQL with MySQLi Extension", "SCHEMA" => "mysql_41", "DELIM" => ";", "DELIM_BASIC" => ";", "COMMENTS" => "mx_remove_remarks" ), "mysql6" => array( "LABEL" => "MySQL 6.x", "SCHEMA" => "mysql_61", "DELIM" => ";", "DELIM_BASIC" => ";", "COMMENTS" => "mx_remove_remarks" ), "postgres" => array( "LABEL" => "PostgreSQL 7.x", "SCHEMA" => "postgres", "DELIM" => ";", "DELIM_BASIC" => ";", "COMMENTS" => "mx_remove_comments" ), "mssql" => array( "LABEL" => "MS SQL Server 7/2000", "SCHEMA" => "mssql", "DELIM" => "GO", "DELIM_BASIC" => ";", "COMMENTS" => "mx_remove_comments" ), "msaccess" => array( "LABEL" => "MS Access [ ODBC ]", "SCHEMA" => "", "DELIM" => "", "DELIM_BASIC" => ";", "COMMENTS" => "" ), "mssql-odbc" => array( "LABEL" => "MS SQL Server [ ODBC ]", "SCHEMA" => "mssql", "DELIM" => "GO", "DELIM_BASIC" => ";", "COMMENTS" => "mx_remove_comments" ) ); $weather_import_file = "../db/" . $HTTP_POST_VARS['weather_import_file']; $mx_remove_remarks = $available_dbms[$dbms]['COMMENTS']; $delimiter = $available_dbms[$dbms]['DELIM']; $delimiter_basic = $available_dbms[$dbms]['DELIM_BASIC']; $sql_query = @file_get_contents($weather_import_file); //$sql_query = @fread(@fopen($weather_import_file, 'r'), @filesize($weather_import_file)); // // Ok, build the SQL statement // //$sql_query = preg_replace('#mx_#i', $mx_table_prefix, $sql_query); //$sql_query = preg_replace('/mx_table_/', $mx_table_prefix, $sql_query); $sql_query = preg_replace('/%mx_%/', $mx_table_prefix, $sql_query); //print_r($sql_query); if($sql_query != "") { // Strip out sql comments... $sql_query = $mx_remove_remarks($sql_query); //$pieces = split_sql_file($sql_query, ";"); $pieces = split_sql_file($sql_query, $delimiter); /* $sql_count = count($pieces); for($i = 0; $i < $sql_count; $i++) { $sql = trim($pieces[$i]); if(!empty($sql) and $sql[0] != "#") { if(VERBOSE == 1) { echo "Executing: $sql\n<br>"; flush(); } //$sql = trim(str_replace('|', ';', $sql)); // // If it works, we know the target system has been upgraded // to this particular level, so we skip to the next check. // $result = $db->sql_query($sql); if(!$result && ( !(SQL_LAYER == 'postgresql' && eregi("drop table", $sql) ) ) ) { //$error = $db->sql_error(); //$this->p_master->db_error($error['message'], $sql, __LINE__, __FILE__); mx_message_die(GENERAL_ERROR, "Error importing Weather sql dump file " . $weather_import_file . "", "", __LINE__, __FILE__, $sql); } unset($sql_query); } } */ foreach ($pieces as $sql) { //$sql = trim(str_replace('|', ';', $sql)); // // If it works, we know the target system has been upgraded // to this particular level, so we skip to the next check. // $result = $db->sql_query($sql); if(!$result && ( !(SQL_LAYER == 'postgresql' && eregi("drop table", $sql)))) { //$error = $db->sql_error(); //$this->p_master->db_error($error['message'], $sql, __LINE__, __FILE__); mx_message_die(GENERAL_ERROR, "Error importing Weather sql dump file " . $weather_import_file . "", "", __LINE__, __FILE__, $sql); } } unset($sql_query); } break; case 'edit': case 'add_city': $weather_id = ( isset($HTTP_GET_VARS['id']) ) ? $HTTP_GET_VARS['id'] : 0; $template->set_filenames(array( "body" => "admin/mx_weather_edit_body.tpl") ); $s_hidden_fields = ''; if( $mode == "edit" ) { if( $weather_id ) { $sql = "SELECT * FROM " . WEATHER_TABLE . " WHERE weather_id = '$weather_id'"; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, "Could not query weather table", "Error", __LINE__, __FILE__, $sql); } $weather_info = $db->sql_fetchrow($result); $s_hidden_fields .= '<input type="hidden" name="id" value="' . $weather_id . '" />'; $weather_region = $weather_info['weather_region']; $weather_country = $weather_info['weather_country']; $weather_subdiv = $weather_info['weather_subdiv']; $weather_city = $weather_info['weather_city']; $weather_code = $weather_info['weather_id']; } else { mx_message_die(GENERAL_MESSAGE, "No Weather selected"); } } else { $sql = "SELECT DISTINCT weather_region, weather_country, weather_subdiv FROM " . WEATHER_TABLE . " WHERE $weather_region_sel"; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, "Could not query weather table", "Error", __LINE__, __FILE__, $sql); } $weather_info = $db->sql_fetchrow($result); $weather_region = $weather_info['weather_region']; $weather_country = $weather_info['weather_country']; $weather_subdiv = $weather_info['weather_subdiv']; $weather_city = ''; $weather_code = ''; } $template->assign_vars(array( "L_WEATHER_TITLE" => $lang['Weather_Settings'], "L_WEATHER_TEXT" => "Add or Edit a City", "L_WEATHER_REGION" => $lang['Region'], "L_WEATHER_COUNTRY" => $lang['Country'], "L_WEATHER_SUBDIV" => $lang['SubDiv'], "L_WEATHER_CITY" => $lang['City'], "L_WEATHER_CODE" => $lang['Code'], "L_SUBMIT" => $lang['Submit'], "WEATHER_REGION" => $weather_region, "WEATHER_COUNTRY" => $weather_country, "WEATHER_SUBDIV" => $weather_subdiv, "WEATHER_CITY" => $weather_city, "WEATHER_CODE" => $weather_code, "S_WEATHER_ACTION" => mx_append_sid("admin_mx_weather.$phpEx"), "S_HIDDEN_FIELDS" => $s_hidden_fields ) ); $template->pparse("body"); include_once( $mx_root_path . 'admin/page_footer_admin.'.$phpEx); break; case 'delete': if( isset($HTTP_POST_VARS['id']) || isset($HTTP_GET_VARS['id']) ) { $weather_id = ( isset($HTTP_POST_VARS['id']) ) ? $HTTP_POST_VARS['id'] : $HTTP_GET_VARS['id']; } else { $weather_id = 0; } if( $weather_id ) { $sql = "DELETE FROM " . CONFIG_WEATHER_DET_TABLE . " WHERE weather_id = '$weather_id'"; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, "Could not remove data from weather table", $lang['Error'], __LINE__, __FILE__, $sql); } renumber_order(); } else { mx_message_die(GENERAL_MESSAGE, "No Weather selected"); } break; case 'delete_city': if( isset($HTTP_POST_VARS['id']) || isset($HTTP_GET_VARS['id']) ) { $weather_id = ( isset($HTTP_POST_VARS['id']) ) ? $HTTP_POST_VARS['id'] : $HTTP_GET_VARS['id']; } else { $weather_id = 0; } if( $weather_id ) { $sql = "DELETE FROM " . WEATHER_TABLE . " WHERE weather_id = '$weather_id'"; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, "Could not remove data from weather table", $lang['Error'], __LINE__, __FILE__, $sql); } } else { mx_message_die(GENERAL_MESSAGE, "No weather selected"); } break; case 'order': // // Change order of menus in the DB // $move = intval($HTTP_GET_VARS['move']); $weather_id = $HTTP_GET_VARS[POST_URL]; $sql = "UPDATE " . CONFIG_WEATHER_DET_TABLE . " SET weather_order = weather_order + $move WHERE user_id = 0 AND weather_id = '$weather_id'"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Couldn't change weather order", "", __LINE__, __FILE__, $sql); } renumber_order(); break; default: mx_message_die(GENERAL_ERROR, "Wrong mode for generating select list", "", __LINE__, __FILE__); break; } } $template->set_filenames(array( "body" => "admin/mx_weather_list_body.tpl") ); // ********************************************************************** // Read module config // ********************************************************************** $config = read_weather_config(0); $template->assign_vars(array( "S_CONFIG_ACTION" => mx_append_sid("admin_mx_weather.$phpEx"), "L_YES" => $lang['Yes'], "L_NO" => $lang['No'], "L_WEATHER_SETTINGS" => $lang['Weather_Settings'], "L_WEATHER_UNIT_DEFAULT" => $lang['Weather_Unit_Default'], "WEATHER_UNIT_DEFAULT" => $config['weather_unit_default'], "WEATHER_UNIT_SELECT" => weather_unit_select( $config['weather_unit_default'], 'weather_unit_default' ), "WEATHER_REGION_SELECT" => weather_region_select($weather_region_sel, 'weather_region'), "WEATHER_IMPORT_FILE" => list_import_file(), "L_WEATHER_CITY_DEFAULT" => $lang['weather_city_default'], "WEATHER_CITY_DEFAULT" => $config['weather_city_default'], "L_WEATHER_ZIPCODE_DEFAULT" => $lang['weather_zipcode_default'], "WEATHER_ZIPCODE_DEFAULT" => $config['weather_zipcode_default'], "L_WEATHER_COUNTRY_DEFAULT" => $lang['weather_country_default'], "WEATHER_COUNTRY_DEFAULT" => $config['weather_country_default'], "L_PARTNER_ID_DEFAULT" => $lang['partner_id_default'], "PARTNER_ID_DEFAULT" => $config['partner_id_default'], "L_LICENSE_KEY_DEAULT" => $lang['license_key_deault'], "LICENSE_KEY_DEAULT" => $config['license_key_deault'], "L_SUBMIT" => $lang['Submit'], "L_RESET" => $lang['Reset'], ) ); $sql = "SELECT t.* FROM " . CONFIG_WEATHER_DET_TABLE . " c , " . WEATHER_TABLE . " t WHERE c.user_id = 0 and c.weather_id = t.weather_id ORDER BY weather_order"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Could not query weather table", $lang['Error'], __LINE__, __FILE__, $sql); } $weather_rows = $db->sql_fetchrowset($result); $weather_count = count($weather_rows); $template->assign_vars(array( "L_WEATHER_TITLE" => $lang['Weather_Settings'], "L_WEATHER_TEXT" => $lang['Weather_explain'], "L_WEATHER_REGION" => $lang['Region'], "L_WEATHER_COUNTRY" => $lang['Country'], "L_WEATHER_SUBDIV" => $lang['SubDiv'], "L_WEATHER_CITY" => $lang['City'], "L_EDIT" => $lang['Edit'], "L_DELETE" => $lang['Delete'], "L_ADD" => $lang['Add'], "L_MOVE_UP" => $lang['Move_up'], "L_MOVE_DOWN" => $lang['Move_down'], "L_WEATHER_BLOCK" => $lang['Weather_Block'], "L_WEATHER_LIST" => $lang['Weather_List'], "L_ADD_CITY" => $lang['Add_City'], "L_IMPORT_CITY" => $lang['Import_City'], "L_CHANGE_NOW" => $lang['Change'], "L_ACTION" => $lang['Action'], "S_WEATHER_ACTION" => mx_append_sid("admin_mx_weather.$phpEx"), "S_HIDDEN_FIELDS" => '') ); for($i = 0; $i < $weather_count; $i++) { $weather_city = $weather_rows[$i]['weather_city']; $weather_country = $weather_rows[$i]['weather_country']; $weather_region = $weather_rows[$i]['weather_region']; $weather_id = $weather_rows[$i]['weather_id']; $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; $template->assign_block_vars("weather", array( "ROW_COLOR" => "#" . $row_color, "ROW_CLASS" => $row_class, "WEATHER_REGION" => $weather_region, "WEATHER_COUNTRY" => $weather_country, "WEATHER_CITY" => $weather_city, "U_DELETE" => mx_append_sid("admin_mx_weather.$phpEx?mode=delete&id=$weather_id&weather_region=$weather_region_sel"), "U_MENU_MOVE_UP" => mx_append_sid("admin_mx_weather.$phpEx?mode=order&move=-15&" . POST_URL . "=$weather_id&weather_region=$weather_region_sel"), "U_MENU_MOVE_DOWN" => mx_append_sid("admin_mx_weather.$phpEx?mode=order&move=15&" . POST_URL . "=$weather_id&weather_region=$weather_region_sel"), ) ); } $sql = "SELECT * FROM " . WEATHER_TABLE . " WHERE " . $weather_region_sel . " ORDER BY weather_region, weather_country, weather_subdiv, weather_city " ; // LIMIT $start, 30 if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Could not query weather table", $lang['Error'], __LINE__, __FILE__, $sql); } $weather_rows = $db->sql_fetchrowset($result); $weather_count = count($weather_rows); for($i = 0; $i < $weather_count; $i++) { $weather_city = $weather_rows[$i]['weather_city']; $weather_country = $weather_rows[$i]['weather_country']; $weather_subdiv = $weather_rows[$i]['weather_subdiv']; $weather_region = $weather_rows[$i]['weather_region']; $weather_id = $weather_rows[$i]['weather_id']; $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; $template->assign_block_vars("weather_list", array( "ROW_COLOR" => "#" . $row_color, "ROW_CLASS" => $row_class, "WEATHER_REGION" => $weather_region, "WEATHER_COUNTRY" => $weather_country, "WEATHER_SUBDIV" => $weather_subdiv, "WEATHER_CITY" => $weather_city, "U_EDIT" => mx_append_sid("admin_mx_weather.$phpEx?mode=edit&id=$weather_id&weather_region=$weather_region_sel"), "U_DELETE" => mx_append_sid("admin_mx_weather.$phpEx?mode=delete_city&id=$weather_id&weather_region=$weather_region_sel"), "U_ADD" => mx_append_sid("admin_mx_weather.$phpEx?mode=add&id=$weather_id&weather_region=$weather_region_sel"), ) ); } $template->pparse("body"); include_once( $mx_root_path . 'admin/page_footer_admin.'.$phpEx); ?> --- 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> |
Update of /cvsroot/mxbb/core/modules/mx_users/admin In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv19725 Modified Files: admin_groupcp.php admin_groups.php admin_prune_user_posts.php admin_prune_users.php admin_userlist.php admin_users.php Log Message: Index: admin_prune_user_posts.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_users/admin/admin_prune_user_posts.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** admin_prune_user_posts.php 31 Oct 2008 18:56:19 -0000 1.6 --- admin_prune_user_posts.php 17 Jun 2013 18:14:28 -0000 1.7 *************** *** 10,15 **** */ - define( 'IN_PORTAL', true ); - if ( !empty( $setmodules ) ) { --- 10,13 ---- Index: admin_users.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_users/admin/admin_users.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** admin_users.php 31 Oct 2008 18:56:19 -0000 1.10 --- admin_users.php 17 Jun 2013 18:14:28 -0000 1.11 *************** *** 21,26 **** ***************************************************************************/ - define( 'IN_PORTAL', true ); - if ( !empty( $setmodules ) ) { --- 21,24 ---- Index: admin_groups.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_users/admin/admin_groups.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** admin_groups.php 9 Feb 2008 12:51:06 -0000 1.4 --- admin_groups.php 17 Jun 2013 18:14:28 -0000 1.5 *************** *** 21,25 **** ***************************************************************************/ - define( 'IN_PORTAL', true ); if ( !empty( $setmodules ) ) --- 21,24 ---- Index: admin_prune_users.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_users/admin/admin_prune_users.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** admin_prune_users.php 31 Oct 2008 18:56:19 -0000 1.6 --- admin_prune_users.php 17 Jun 2013 18:14:28 -0000 1.7 *************** *** 10,15 **** */ - define( 'IN_PORTAL', true ); - if ( !empty( $setmodules ) ) { --- 10,13 ---- Index: admin_userlist.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_users/admin/admin_userlist.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** admin_userlist.php 31 Oct 2008 18:56:19 -0000 1.6 --- admin_userlist.php 17 Jun 2013 18:14:28 -0000 1.7 *************** *** 7,15 **** * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * @link http://www.mx-publisher.com ! * */ - define( 'IN_PORTAL', true ); - if ( !empty( $setmodules ) ) { --- 7,13 ---- * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * @link http://www.mx-publisher.com ! * @ author: jonohlsson */ if ( !empty( $setmodules ) ) { Index: admin_groupcp.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_users/admin/admin_groupcp.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** admin_groupcp.php 31 Oct 2008 18:56:19 -0000 1.8 --- admin_groupcp.php 17 Jun 2013 18:14:28 -0000 1.9 *************** *** 1,14 **** <?php ! /*************************************************************************** ! * admin_groupcp.php ! * ------------------- ! * begin : Saturday, Feb 13, 2001 ! * copyright : (C) 2001 The phpBB Group ! * email : su...@ph... ! * ! * $Id$ ! * ! * ! ***************************************************************************/ /*************************************************************************** --- 1,12 ---- <?php ! /** ! * ! * @package MX-Publisher Module - mx_users ! * @version $Id$ ! * @copyright (c) 2002-2008 [Jon Ohlsson] MX-Publisher Project Team ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com/ ! * ! */ /*************************************************************************** *************** *** 21,25 **** ***************************************************************************/ - define( 'IN_PORTAL', true ); if ( !empty( $setmodules ) ) --- 19,22 ---- |
|
From: Florin C B. <ory...@us...> - 2013-06-17 18:07:53
|
Update of /cvsroot/mxbb/mx_smartor/admin In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv18969 Modified Files: admin_album_ext.php Log Message: Index: admin_album_ext.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/admin/admin_album_ext.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** admin_album_ext.php 17 Jun 2013 18:05:07 -0000 1.8 --- admin_album_ext.php 17 Jun 2013 18:07:51 -0000 1.9 *************** *** 24,27 **** --- 24,32 ---- require($module_root_path . 'album_mod/includes/album_constants.'.$phpEx); + // + // Begin program proper + // + $mode = ''; + // ********************************************************************** *************** *** 40,45 **** // Mode setting // ! $mode = $mx_request_vars->request('mode', MX_TYPE_NO_TAGS, ''); // // Main db settings --- 45,65 ---- // Mode setting // ! // ! if ($mx_request_vars->is_post('submit') ) ! { ! $mode = 'submit'; ! } ! else ! { ! $mode = $mx_request_vars->request('mode', MX_TYPE_NO_TAGS, ''); ! } + /* + if ($mx_request_vars->is_empty_post('fullurl') || $mx_request_vars->is_empty_post('fullurl')) + { + mx_message_die(GENERAL_ERROR, "Failed to update fullurl."); + } + */ + // // Main db settings *************** *** 47,51 **** // $sql = "SELECT * ! FROM " . ALBUM_CONFIG_TABLE; if ( !$result = $db->sql_query( $sql ) ) { --- 67,71 ---- // $sql = "SELECT * ! FROM " . ALBUM_CONFIG_TABLE; if ( !$result = $db->sql_query( $sql ) ) { *************** *** 54,72 **** else { ! while ( $row = $db->sql_fetchrow( $result ) ) { $config_name = $row['config_name']; $config_value = $row['config_value']; $default_config[$config_name] = $config_value; ! ! $new[$config_name] = ( isset( $_POST[$config_name] ) ) ? $_POST[$config_name] : $default_config[$config_name]; ! if ( isset( $_POST['submit'] ) ) { $sql = "UPDATE " . ALBUM_CONFIG_TABLE . " SET ! config_value = '" . str_replace( "\'", "''", $new[$config_name] ) . "' ! WHERE config_name = '$config_name'"; if ( !$db->sql_query( $sql ) ) { ! mx_message_die( GENERAL_ERROR, "Failed to update general configuration for $config_name", "", __LINE__, __FILE__, $sql ); } $mx_cache->put('album_config', $new); --- 74,92 ---- else { ! while ($row = $db->sql_fetchrow($result)) { $config_name = $row['config_name']; $config_value = $row['config_value']; $default_config[$config_name] = $config_value; ! ! $new[$config_name] = ( isset($_POST[$config_name]) ) ? $_POST[$config_name] : $default_config[$config_name]; ! if (isset($_POST['submit'])) { $sql = "UPDATE " . ALBUM_CONFIG_TABLE . " SET ! config_value = '" . str_replace( "\'", "''", $new[$config_name] ) . "' ! WHERE config_name = '$config_name'"; if ( !$db->sql_query( $sql ) ) { ! mx_message_die( GENERAL_ERROR, "Failed to update general configuration for $config_name", "", __LINE__, __FILE__, $sql ); } $mx_cache->put('album_config', $new); *************** *** 74,79 **** } $db->sql_freeresult($result); ! ! if ( isset( $_POST['submit'] ) ) { $message = $lang['album_config_updated'] . "<br /><br />" . sprintf( $lang['Click_return_album_config'], "<a href=\"" . mx_append_sid( "admin_album_ext.$phpEx" ) . "\">", "</a>" ) . "<br /><br />" . sprintf( $lang['Click_return_admin_index'], "<a href=\"" . mx_append_sid( $mx_root_path . "admin/index.$phpEx?pane=right" ) . "\">", "</a>" ); --- 94,98 ---- } $db->sql_freeresult($result); ! if (isset($_POST['submit'])) { $message = $lang['album_config_updated'] . "<br /><br />" . sprintf( $lang['Click_return_album_config'], "<a href=\"" . mx_append_sid( "admin_album_ext.$phpEx" ) . "\">", "</a>" ) . "<br /><br />" . sprintf( $lang['Click_return_admin_index'], "<a href=\"" . mx_append_sid( $mx_root_path . "admin/index.$phpEx?pane=right" ) . "\">", "</a>" ); *************** *** 81,95 **** } } ! // // Populate parameter variables // $album_index = $new['index']; ! // $other = $new['other']; - - $override_default_pages = $new['override_default_pages']; $integration_enabled = $new['enable_integration']; // --- 100,113 ---- } } ! // // Populate parameter variables // $album_index = $new['index']; ! $album_fullurl = str_replace('http://www.', 'http://', $new['fullurl']); // $other = $new['other']; $override_default_pages = $new['override_default_pages']; $integration_enabled = $new['enable_integration']; + $fullurl_enabled = $new['enable_fullurl']; // *************** *** 97,102 **** // $pagelist_index = get_list_formatted('page_list', $new['index'], 'index'); ! ! // $pagelist_other = get_list_formatted('page_list', $new['other'], 'other'); // --- 115,119 ---- // $pagelist_index = get_list_formatted('page_list', $new['index'], 'index'); ! // $pagelist_other = get_list_formatted('page_list', $new['other'], 'other'); // *************** *** 106,110 **** $template->assign_vars( array( ! 'S_ALBUM_ACTION' => mx_append_sid( "admin_album_ext.$phpEx" ), 'L_ALBUM_TITLE' => $lang['mx_album_admin'], --- 123,127 ---- $template->assign_vars( array( ! 'S_ALBUM_ACTION' => mx_append_sid("admin_album_ext.$phpEx"), 'L_ALBUM_TITLE' => $lang['mx_album_admin'], *************** *** 125,132 **** 'L_ALBUM_INTEGRATION_ENABLED_YES' => $lang['integration_enabled_yes'], 'L_ALBUM_INTEGRATION_ENABLED_NO' => $lang['integration_enabled_no'], ! 'ALBUM_INTEGRATION_ENABLED_YES' => ( $integration_enabled == '1' ) ? ' checked="checked"' : '', ! 'ALBUM_INTEGRATION_ENABLED_NO' => ( $integration_enabled == '0' ) ? ' checked="checked"' : '', ! // // Default static settings or block settings --- 142,155 ---- 'L_ALBUM_INTEGRATION_ENABLED_YES' => $lang['integration_enabled_yes'], 'L_ALBUM_INTEGRATION_ENABLED_NO' => $lang['integration_enabled_no'], + + 'L_ALBUM_FULLURL_ENABLED_YES' => $lang['fullurl_enabled_yes'], + 'L_ALBUM_FULLURL_ENABLED_NO' => $lang['fullurl_enabled_no'], ! 'ALBUM_INTEGRATION_ENABLED_YES' => ($integration_enabled == '1') ? ' checked="checked"' : '', ! 'ALBUM_INTEGRATION_ENABLED_NO' => ($integration_enabled == '0') ? ' checked="checked"' : '', ! ! 'ALBUM_FULLURL_ENABLED_YES' => ($fullurl_enabled == '1') ? ' checked="checked"' : '', ! 'ALBUM_FULLURL_ENABLED_NO' => ($fullurl_enabled == '0') ? ' checked="checked"' : '', ! // // Default static settings or block settings *************** *** 141,150 **** 'OVERRIDE_DEFAULT_PAGES_CHECKBOX_NO' => ( $override_default_pages == '0' ) ? ' checked="checked"' : '', - 'L_ALBUM_INDEX' => $lang['index'], 'ALBUM_INDEX' => $pagelist_index, ! ! // 'L_SUBMIT' => $lang['submit'], ! // 'L_RESET' => $lang['reset'], 'L_SUBMIT' => $lang['Submit'], --- 164,172 ---- 'OVERRIDE_DEFAULT_PAGES_CHECKBOX_NO' => ( $override_default_pages == '0' ) ? ' checked="checked"' : '', 'L_ALBUM_INDEX' => $lang['index'], 'ALBUM_INDEX' => $pagelist_index, ! ! 'L_FULLURL_INDEX' => $lang['fullurl'], ! 'ALBUM_FULLURL' => $album_fullurl, 'L_SUBMIT' => $lang['Submit'], *************** *** 153,158 **** )); ! $template->pparse( "body" ); ! include_once( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ?> --- 175,180 ---- )); ! $template->pparse("body"); ! include_once($mx_root_path . 'admin/page_footer_admin.' . $phpEx); ?> |
|
From: Florin C B. <ory...@us...> - 2013-06-17 18:05:16
|
Update of /cvsroot/mxbb/mx_smartor/admin In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv18327 Modified Files: admin_album_auth.php admin_album_cat.php admin_album_cfg.php admin_album_clearcache.php admin_album_clown_SP.php admin_album_config_personal.php admin_album_ext.php admin_album_otf.php admin_album_personal.php Log Message: Index: admin_album_config_personal.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/admin/admin_album_config_personal.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** admin_album_config_personal.php 27 Mar 2008 14:30:54 -0000 1.6 --- admin_album_config_personal.php 17 Jun 2013 18:05:07 -0000 1.7 *************** *** 13,18 **** if ( @file_exists( './../viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { ! define('MXBB_MODULE', false); ! define('IN_PHPBB', true); $phpbb_root_path = $module_root_path = './../'; --- 13,18 ---- if ( @file_exists( './../viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { ! @define('MXBB_MODULE', false); ! @define('IN_PHPBB', true); $phpbb_root_path = $module_root_path = './../'; *************** *** 81,90 **** else { ! define( 'IN_PORTAL', 1 ); ! define( 'MXBB_MODULE', true ); - // // Main paths - // $mx_root_path = './../../../'; $module_root_path = './../../../modules/mx_smartor/'; --- 81,87 ---- else { ! @define( 'MXBB_MODULE', true ); // Main paths $mx_root_path = './../../../'; $module_root_path = './../../../modules/mx_smartor/'; *************** *** 92,96 **** $setmodules_admin_path = 'modules/mx_smartor/admin/'; ! define( 'MXBB_27x', @file_exists( $mx_root_path . 'mx_login.php' ) ); $phpEx = substr(strrchr(__FILE__, '.'), 1); --- 89,93 ---- $setmodules_admin_path = 'modules/mx_smartor/admin/'; ! @define('MXBB_27x', @file_exists($mx_root_path . 'mx_login.php')); $phpEx = substr(strrchr(__FILE__, '.'), 1); Index: admin_album_cfg.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/admin/admin_album_cfg.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** admin_album_cfg.php 27 Mar 2008 14:30:47 -0000 1.10 --- admin_album_cfg.php 17 Jun 2013 18:05:07 -0000 1.11 *************** *** 13,18 **** if ( @file_exists( './../viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { ! define('MXBB_MODULE', false); ! define('IN_PHPBB', true); $phpbb_root_path = $module_root_path = './../'; --- 13,18 ---- if ( @file_exists( './../viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { ! @define('MXBB_MODULE', false); ! @define('IN_PHPBB', true); $phpbb_root_path = $module_root_path = './../'; *************** *** 37,41 **** if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) { ! define('IN_CASHMOD', true); } --- 37,41 ---- if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) { ! @define('IN_CASHMOD', true); } *************** *** 44,68 **** //error_reporting(E_ALL & ~E_NOTICE); ! define( 'PAGE_MUSIC', -506 ); // If this id generates a conflict with other mods, change it ;) - // // Instatiate the mx_cache class - // $mx_cache = new mx_cache(); - // // instatiate the mx_request_vars class - // $mx_request_vars = new mx_request_vars(); - - // // instatiate the mx_user class - // //$mx_user = new mx_user(); - // // Left Pane Paths - // $setmodules_admin_path = ''; $setmodules_module_path = "./../"; --- 44,59 ---- //error_reporting(E_ALL & ~E_NOTICE); ! @define('PAGE_MUSIC', -506); // If this id generates a conflict with other mods, change it ;) // Instatiate the mx_cache class $mx_cache = new mx_cache(); // instatiate the mx_request_vars class $mx_request_vars = new mx_request_vars(); // instatiate the mx_user class //$mx_user = new mx_user(); // Left Pane Paths $setmodules_admin_path = ''; $setmodules_module_path = "./../"; *************** *** 81,86 **** else { ! define( 'IN_PORTAL', 1 ); ! define( 'MXBB_MODULE', true ); // --- 72,76 ---- else { ! @define('MXBB_MODULE', true); // *************** *** 92,101 **** $setmodules_admin_path = 'modules/mx_smartor/admin/'; ! define( 'MXBB_27x', @file_exists( $mx_root_path . 'mx_login.php' ) ); $phpEx = substr(strrchr(__FILE__, '.'), 1); } - if( !empty($setmodules) ) { --- 82,90 ---- $setmodules_admin_path = 'modules/mx_smartor/admin/'; ! @define('MXBB_27x', @file_exists($mx_root_path . 'mx_login.php')); $phpEx = substr(strrchr(__FILE__, '.'), 1); } if( !empty($setmodules) ) { *************** *** 105,111 **** } - // // Let's set the root dir for phpBB - // $album_root_path = $module_root_path . 'album_mod/'; require($mx_root_path . 'admin/pagestart.' . $phpEx); --- 94,98 ---- Index: admin_album_auth.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/admin/admin_album_auth.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** admin_album_auth.php 29 Aug 2008 05:58:22 -0000 1.18 --- admin_album_auth.php 17 Jun 2013 18:05:07 -0000 1.19 *************** *** 13,20 **** $phpEx = substr(strrchr(__FILE__, '.'), 1); ! if ( @file_exists( './../viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { ! define('MXBB_MODULE', false); ! define('IN_PHPBB', true); $phpbb_root_path = $module_root_path = './../'; --- 13,20 ---- $phpEx = substr(strrchr(__FILE__, '.'), 1); ! if (@file_exists('./../viewtopic.' . $phpEx)) // -------------------------------------------- phpBB MOD MODE { ! @define('MXBB_MODULE', false); ! @define('IN_PHPBB', true); $phpbb_root_path = $module_root_path = './../'; *************** *** 46,73 **** //error_reporting(E_ALL & ~E_NOTICE); ! define( 'PAGE_MUSIC', -506 ); // If this id generates a conflict with other mods, change it ;) - // // Instatiate the mx_cache class - // $mx_cache = new mx_cache(); - // // instatiate the mx_request_vars class - // $mx_request_vars = new mx_request_vars(); - - // // instatiate the mx_user class - // //$mx_user = new mx_user(); ! ! // // Left Pane Paths - // $setmodules_admin_path = ''; ! $setmodules_module_path = "./../"; ! if (file_exists($phpbb_root_path."modcp.$phpEx")) // phpBB2 { --- 46,63 ---- //error_reporting(E_ALL & ~E_NOTICE); ! define('PAGE_MUSIC', -506); // If this id generates a conflict with other mods, change it ;) // Instatiate the mx_cache class $mx_cache = new mx_cache(); // instatiate the mx_request_vars class $mx_request_vars = new mx_request_vars(); // instatiate the mx_user class //$mx_user = new mx_user(); ! // Left Pane Paths $setmodules_admin_path = ''; ! $setmodules_module_path = "./../"; if (file_exists($phpbb_root_path."modcp.$phpEx")) // phpBB2 { *************** *** 83,99 **** else { ! define( 'IN_PORTAL', 1 ); ! define( 'MXBB_MODULE', true ); ! ! // // Main paths - // $mx_root_path = './../../../'; $module_root_path = './../../../modules/mx_smartor/'; - $setmodules_admin_path = 'modules/mx_smartor/admin/'; ! ! define( 'MXBB_27x', @file_exists( $mx_root_path . 'mx_login.php' ) ); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); } --- 73,82 ---- else { ! @define( 'MXBB_MODULE', true ); // Main paths $mx_root_path = './../../../'; $module_root_path = './../../../modules/mx_smartor/'; $setmodules_admin_path = 'modules/mx_smartor/admin/'; ! @define( 'MXBB_27x', @file_exists( $mx_root_path . 'mx_login.php' ) ); $phpEx = substr(strrchr(__FILE__, '.'), 1); } Index: admin_album_clearcache.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/admin/admin_album_clearcache.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** admin_album_clearcache.php 27 Mar 2008 14:30:47 -0000 1.15 --- admin_album_clearcache.php 17 Jun 2013 18:05:07 -0000 1.16 *************** *** 11,18 **** $phpEx = substr(strrchr(__FILE__, '.'), 1); ! if ( @file_exists( './../viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { ! define('MXBB_MODULE', false); ! define('IN_PHPBB', true); $phpbb_root_path = $module_root_path = './../'; --- 11,18 ---- $phpEx = substr(strrchr(__FILE__, '.'), 1); ! if (@file_exists('./../viewtopic.' . $phpEx)) // -------------------------------------------- phpBB MOD MODE { ! @define('MXBB_MODULE', false); ! @define('IN_PHPBB', true); $phpbb_root_path = $module_root_path = './../'; *************** *** 44,68 **** //error_reporting(E_ALL & ~E_NOTICE); ! define( 'PAGE_MUSIC', -506 ); // If this id generates a conflict with other mods, change it ;) - // // Instatiate the mx_cache class - // $mx_cache = new mx_cache(); - // // instatiate the mx_request_vars class - // $mx_request_vars = new mx_request_vars(); - - // // instatiate the mx_user class - // //$mx_user = new mx_user(); - // // Left Pane Paths - // $setmodules_admin_path = ''; $setmodules_module_path = "./../"; --- 44,59 ---- //error_reporting(E_ALL & ~E_NOTICE); ! @define('PAGE_MUSIC', -506); // If this id generates a conflict with other mods, change it ;) // Instatiate the mx_cache class $mx_cache = new mx_cache(); // instatiate the mx_request_vars class $mx_request_vars = new mx_request_vars(); // instatiate the mx_user class //$mx_user = new mx_user(); // Left Pane Paths $setmodules_admin_path = ''; $setmodules_module_path = "./../"; *************** *** 81,101 **** else { ! define( 'IN_PORTAL', 1 ); ! define( 'MXBB_MODULE', true ); ! ! // // Main paths - // $mx_root_path = './../../../'; $module_root_path = './../../../modules/mx_smartor/'; - $setmodules_admin_path = 'modules/mx_smartor/admin/'; ! ! define( 'MXBB_27x', @file_exists( $mx_root_path . 'mx_login.php' ) ); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); } - if( !empty($setmodules) ) { --- 72,84 ---- else { ! @define( 'MXBB_MODULE', true ); // Main paths $mx_root_path = './../../../'; $module_root_path = './../../../modules/mx_smartor/'; $setmodules_admin_path = 'modules/mx_smartor/admin/'; ! @define('MXBB_27x', @file_exists($mx_root_path . 'mx_login.php')); $phpEx = substr(strrchr(__FILE__, '.'), 1); } if( !empty($setmodules) ) { Index: admin_album_ext.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/admin/admin_album_ext.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** admin_album_ext.php 5 Apr 2013 11:38:14 -0000 1.7 --- admin_album_ext.php 17 Jun 2013 18:05:07 -0000 1.8 *************** *** 9,14 **** */ - define( 'IN_PORTAL', 1 ); - if ( !empty( $setmodules ) ) { --- 9,12 ---- Index: admin_album_cat.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/admin/admin_album_cat.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** admin_album_cat.php 27 Mar 2008 14:30:46 -0000 1.15 --- admin_album_cat.php 17 Jun 2013 18:05:07 -0000 1.16 *************** *** 24,29 **** if ( @file_exists( './../viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { ! define('MXBB_MODULE', false); ! define('IN_PHPBB', true); $phpbb_root_path = $module_root_path = './../'; --- 24,30 ---- if ( @file_exists( './../viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { ! @define('MXBB_MODULE', false); ! @define('IN_PORTAL', 1); ! @define('IN_PHPBB', true); $phpbb_root_path = $module_root_path = './../'; *************** *** 67,79 **** $mx_request_vars = new mx_request_vars(); - - // // instatiate the mx_user class - // //$mx_user = new mx_user(); - // // Left Pane Paths - // $setmodules_admin_path = ''; $setmodules_module_path = "./../"; --- 68,75 ---- *************** *** 92,101 **** else { ! define( 'IN_PORTAL', 1 ); ! define( 'MXBB_MODULE', true ); - // // Main paths - // $mx_root_path = './../../../'; $module_root_path = './../../../modules/mx_smartor/'; --- 88,94 ---- else { ! @define( 'MXBB_MODULE', true ); // Main paths $mx_root_path = './../../../'; $module_root_path = './../../../modules/mx_smartor/'; *************** *** 103,107 **** $setmodules_admin_path = 'modules/mx_smartor/admin/'; ! define( 'MXBB_27x', @file_exists( $mx_root_path . 'mx_login.php' ) ); $phpEx = substr(strrchr(__FILE__, '.'), 1); --- 96,100 ---- $setmodules_admin_path = 'modules/mx_smartor/admin/'; ! @define( 'MXBB_27x', @file_exists( $mx_root_path . 'mx_login.php' ) ); $phpEx = substr(strrchr(__FILE__, '.'), 1); Index: admin_album_otf.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/admin/admin_album_otf.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** admin_album_otf.php 3 Mar 2011 14:28:40 -0000 1.5 --- admin_album_otf.php 17 Jun 2013 18:05:07 -0000 1.6 *************** *** 24,29 **** if ( @file_exists( './../viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { ! define('MXBB_MODULE', false); ! define('IN_PHPBB', true); $phpbb_root_path = $module_root_path = './../'; --- 24,29 ---- if ( @file_exists( './../viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { ! @define('MXBB_MODULE', false); ! @define('IN_PHPBB', true); $phpbb_root_path = $module_root_path = './../'; *************** *** 67,79 **** $mx_request_vars = new mx_request_vars(); - - // // instatiate the mx_user class - // //$mx_user = new mx_user(); - // // Left Pane Paths - // $setmodules_admin_path = ''; $setmodules_module_path = "./../"; --- 67,74 ---- *************** *** 92,97 **** else { ! define( 'IN_PORTAL', 1 ); ! define( 'MXBB_MODULE', true ); // --- 87,91 ---- else { ! @define( 'MXBB_MODULE', true ); // *************** *** 103,107 **** $setmodules_admin_path = 'modules/mx_smartor/admin/'; ! define('MXBB_27x', @file_exists( $mx_root_path . 'mx_login.php')); $phpEx = substr(strrchr(__FILE__, '.'), 1); --- 97,101 ---- $setmodules_admin_path = 'modules/mx_smartor/admin/'; ! @define('MXBB_27x', @file_exists( $mx_root_path . 'mx_login.php')); $phpEx = substr(strrchr(__FILE__, '.'), 1); Index: admin_album_personal.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/admin/admin_album_personal.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** admin_album_personal.php 29 Aug 2008 05:58:22 -0000 1.16 --- admin_album_personal.php 17 Jun 2013 18:05:07 -0000 1.17 *************** *** 13,18 **** if ( @file_exists( './../viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { ! define('MXBB_MODULE', false); ! define('IN_PHPBB', true); $phpbb_root_path = $module_root_path = './../'; --- 13,18 ---- if ( @file_exists( './../viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { ! @define('MXBB_MODULE', false); ! @define('IN_PHPBB', true); $phpbb_root_path = $module_root_path = './../'; *************** *** 27,31 **** { $mx_root_path = './../'; - include_once($mx_mod_path . "includes/mx_constants.$phpEx"); include_once($mx_mod_path . "includes/shared/phpbb2/includes/functions.$phpEx"); --- 27,30 ---- *************** *** 55,68 **** // $mx_request_vars = new mx_request_vars(); - - // // instatiate the mx_user class - // //$mx_user = new mx_user(); - // // Left Pane Paths - // $setmodules_admin_path = ''; $setmodules_module_path = "./../"; --- 54,62 ---- *************** *** 81,97 **** else { ! define( 'IN_PORTAL', 1 ); ! define( 'MXBB_MODULE', true ); - // // Main paths - // $mx_root_path = './../../../'; $module_root_path = './../../../modules/mx_smartor/'; - $setmodules_admin_path = 'modules/mx_smartor/admin/'; ! ! define( 'MXBB_27x', @file_exists( $mx_root_path . 'mx_login.php' ) ); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); } --- 75,85 ---- else { ! @define( 'MXBB_MODULE', true ); // Main paths $mx_root_path = './../../../'; $module_root_path = './../../../modules/mx_smartor/'; $setmodules_admin_path = 'modules/mx_smartor/admin/'; ! @define('MXBB_27x', @file_exists($mx_root_path . 'mx_login.php')); $phpEx = substr(strrchr(__FILE__, '.'), 1); } Index: admin_album_clown_SP.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/admin/admin_album_clown_SP.php,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** admin_album_clown_SP.php 27 Mar 2008 14:30:48 -0000 1.19 --- admin_album_clown_SP.php 17 Jun 2013 18:05:07 -0000 1.20 *************** *** 13,18 **** if ( @file_exists( './../viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { ! define('MXBB_MODULE', false); ! define('IN_PHPBB', true); $phpbb_root_path = $module_root_path = './../'; --- 13,18 ---- if ( @file_exists( './../viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { ! @define('MXBB_MODULE', false); ! @define('IN_PHPBB', true); $phpbb_root_path = $module_root_path = './../'; *************** *** 27,31 **** { $mx_root_path = './../'; - include_once($mx_mod_path . "includes/mx_constants.$phpEx"); include_once($mx_mod_path . "includes/shared/phpbb2/includes/functions.$phpEx"); --- 27,30 ---- *************** *** 44,68 **** //error_reporting(E_ALL & ~E_NOTICE); ! define( 'PAGE_MUSIC', -506 ); // If this id generates a conflict with other mods, change it ;) - // // Instatiate the mx_cache class - // $mx_cache = new mx_cache(); - // // instatiate the mx_request_vars class - // $mx_request_vars = new mx_request_vars(); - - // // instatiate the mx_user class - // //$mx_user = new mx_user(); - // // Left Pane Paths - // $setmodules_admin_path = ''; $setmodules_module_path = "./../"; --- 43,58 ---- //error_reporting(E_ALL & ~E_NOTICE); ! define('PAGE_MUSIC', -506); // If this id generates a conflict with other mods, change it ;) // Instatiate the mx_cache class $mx_cache = new mx_cache(); // instatiate the mx_request_vars class $mx_request_vars = new mx_request_vars(); // instatiate the mx_user class //$mx_user = new mx_user(); // Left Pane Paths $setmodules_admin_path = ''; $setmodules_module_path = "./../"; *************** *** 81,90 **** else { ! define( 'IN_PORTAL', 1 ); ! define( 'MXBB_MODULE', true ); - // // Main paths - // $mx_root_path = './../../../'; $module_root_path = './../../../modules/mx_smartor/'; --- 71,77 ---- else { ! @define('MXBB_MODULE', true); // Main paths $mx_root_path = './../../../'; $module_root_path = './../../../modules/mx_smartor/'; *************** *** 92,96 **** $setmodules_admin_path = 'modules/mx_smartor/admin/'; ! define( 'MXBB_27x', @file_exists( $mx_root_path . 'mx_login.php' ) ); $phpEx = substr(strrchr(__FILE__, '.'), 1); --- 79,83 ---- $setmodules_admin_path = 'modules/mx_smartor/admin/'; ! @define( 'MXBB_27x', @file_exists( $mx_root_path . 'mx_login.php' ) ); $phpEx = substr(strrchr(__FILE__, '.'), 1); *************** *** 105,111 **** } - // // Let's set the root dir for phpBB - // $album_root_path = $module_root_path . 'album_mod/'; require($mx_root_path . 'admin/pagestart.' . $phpEx); --- 92,96 ---- |
|
From: Florin C B. <ory...@us...> - 2013-06-17 16:13:55
|
Update of /cvsroot/mxbb/mx_news/admin In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv12555 Modified Files: admin_mx_news.php Log Message: Index: admin_mx_news.php =================================================================== RCS file: /cvsroot/mxbb/mx_news/admin/admin_mx_news.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** admin_mx_news.php 3 Jun 2008 20:12:17 -0000 1.5 --- admin_mx_news.php 17 Jun 2013 16:13:53 -0000 1.6 *************** *** 9,20 **** */ - define( 'IN_PORTAL', true ); - $phpEx = substr(strrchr(__FILE__, '.'), 1); if ( @file_exists( './../viewtopic.'.$phpEx ) ) { ! define( 'IN_PHPBB', 1 ); ! define( 'MXBB_MODULE', false ); // --- 9,19 ---- */ $phpEx = substr(strrchr(__FILE__, '.'), 1); if ( @file_exists( './../viewtopic.'.$phpEx ) ) { ! @define( 'IN_PHPBB', 1 ); ! @define( 'IN_PORTAL', 1 ); ! @define( 'MXBB_MODULE', false ); // *************** *** 35,40 **** else { ! define( 'IN_PORTAL', 1 ); ! define( 'MXBB_MODULE', true ); // --- 34,38 ---- else { ! @define( 'MXBB_MODULE', true ); // *************** *** 51,55 **** $setmodules_admin_path = $setmodules_module_path . 'admin/'; ! define( 'MXBB_27x', file_exists( $setmodules_root_path . 'mx_login.php' ) ); $phpEx = substr(strrchr(__FILE__, '.'), 1); --- 49,53 ---- $setmodules_admin_path = $setmodules_module_path . 'admin/'; ! @define( 'MXBB_27x', file_exists( $setmodules_root_path . 'mx_login.php' ) ); $phpEx = substr(strrchr(__FILE__, '.'), 1); |
|
From: Florin C B. <ory...@us...> - 2013-06-17 16:11:31
|
Update of /cvsroot/mxbb/mx_radiocast In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv12118 Modified Files: db_install.php db_upgrade.php Log Message: Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/db_install.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** db_install.php 11 Jul 2009 02:55:44 -0000 1.7 --- db_install.php 17 Jun 2013 16:11:28 -0000 1.8 *************** *** 55,80 **** $sql[] = "CREATE TABLE ". $mx_table_prefix . "radiocast ( ! station_id int(11) UNSIGNED NOT NULL auto_increment, ! station_filename varchar(255) NOT NULL, ! station_filetype varchar(255) NOT NULL, ! station_imagename varchar(255) NOT NULL, ! station_title varchar(255) NOT NULL, ! station_url varchar(255) NOT NULL, ! station_desc text, ! station_singer varchar(255) NOT NULL, ! station_user_id mediumint(8) NOT NULL, ! station_username varchar(32), ! station_user_ip char(8) NOT NULL DEFAULT '0', ! station_time int(11) UNSIGNED NOT NULL, ! station_cat_id mediumint(8) UNSIGNED NOT NULL DEFAULT '1', ! station_view_count int(11) UNSIGNED NOT NULL DEFAULT '0', ! station_lock tinyint(3) NOT NULL DEFAULT '0', ! station_approval tinyint(3) NOT NULL DEFAULT '1', ! station_download_count varchar(255) NOT NULL, ! PRIMARY KEY (station_id), ! KEY station_cat_id (station_cat_id), ! KEY station_user_id (station_user_id), ! KEY station_time (station_time) ! ) TYPE=MyISAM"; $sql[] = "CREATE TABLE ". $mx_table_prefix . "radiocast_rate ( --- 55,82 ---- $sql[] = "CREATE TABLE ". $mx_table_prefix . "radiocast ( ! station_id int(11) unsigned NOT NULL AUTO_INCREMENT, ! station_filename varchar(255) COLLATE utf8_bin DEFAULT NULL, ! station_filetype varchar(255) COLLATE utf8_bin DEFAULT NULL, ! station_mimetype varchar(255) COLLATE utf8_bin DEFAULT NULL, ! station_imagename varchar(255) COLLATE utf8_bin DEFAULT NULL, ! station_logofile varchar(255) COLLATE utf8_bin NOT NULL DEFAULT 'no_image.png', ! station_title varchar(255) COLLATE utf8_bin DEFAULT NULL, ! station_url varchar(255) COLLATE utf8_bin DEFAULT NULL, ! station_desc text COLLATE utf8_bin, ! station_singer varchar(255) COLLATE utf8_bin DEFAULT NULL, ! station_user_id mediumint(8) NOT NULL, ! station_username varchar(32) COLLATE utf8_bin DEFAULT NULL, ! station_user_ip char(8) COLLATE utf8_bin DEFAULT NULL, ! station_time int(11) unsigned NOT NULL, ! station_cat_id mediumint(8) unsigned NOT NULL DEFAULT '1', ! station_view_count int(11) unsigned NOT NULL DEFAULT '0', ! station_lock tinyint(3) NOT NULL DEFAULT '0', ! station_approval tinyint(3) NOT NULL DEFAULT '1', ! station_download_count varchar(255) COLLATE utf8_bin DEFAULT NULL, ! PRIMARY KEY (station_id), ! KEY station_cat_id (station_cat_id), ! KEY station_user_id (station_user_id), ! KEY station_time (station_time) ! ) ENGINE=MyISAM"; $sql[] = "CREATE TABLE ". $mx_table_prefix . "radiocast_rate ( Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/db_upgrade.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** db_upgrade.php 11 Jul 2009 02:55:44 -0000 1.6 --- db_upgrade.php 17 Jun 2013 16:11:28 -0000 1.7 *************** *** 91,94 **** --- 91,96 ---- $sql[] = "ALTER TABLE " . $mx_table_prefix . "radiocast ADD station_filetype varchar(255) NOT NULL AFTER station_filename"; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "radiocast ADD station_logofile varchar(255) NOT NULL AFTER station_imagename" + $sql[] = "ALTER TABLE " . $mx_table_prefix . "radiocast ADD station_mimetype varchar(255) NOT NULL AFTER station_filetype"; } else |
|
From: Florin C B. <ory...@us...> - 2013-06-17 16:11:30
|
Update of /cvsroot/mxbb/mx_radiocast/admin In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv12118/admin Modified Files: admin_radio_auth.php admin_radio_cat.php admin_radio_cfg.php admin_radio_ext.php Log Message: Index: admin_radio_ext.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/admin/admin_radio_ext.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** admin_radio_ext.php 10 Jul 2009 21:31:41 -0000 1.5 --- admin_radio_ext.php 17 Jun 2013 16:11:28 -0000 1.6 *************** *** 9,14 **** */ - define( 'IN_PORTAL', 1 ); - if ( !empty( $setmodules ) ) { --- 9,12 ---- Index: admin_radio_cat.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/admin/admin_radio_cat.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** admin_radio_cat.php 11 Jul 2009 03:22:07 -0000 1.5 --- admin_radio_cat.php 17 Jun 2013 16:11:28 -0000 1.6 *************** *** 9,14 **** */ - define('IN_PORTAL', 1); - if ( !empty( $setmodules ) ) { --- 9,12 ---- Index: admin_radio_auth.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/admin/admin_radio_auth.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** admin_radio_auth.php 10 Jul 2009 21:31:40 -0000 1.4 --- admin_radio_auth.php 17 Jun 2013 16:11:28 -0000 1.5 *************** *** 9,14 **** */ - define('IN_PORTAL', 1); - if ( !empty( $setmodules ) ) { --- 9,12 ---- Index: admin_radio_cfg.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/admin/admin_radio_cfg.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** admin_radio_cfg.php 10 Jul 2009 21:31:41 -0000 1.4 --- admin_radio_cfg.php 17 Jun 2013 16:11:28 -0000 1.5 *************** *** 9,14 **** */ - define('IN_PORTAL', 1); - if ( !empty( $setmodules ) ) { --- 9,12 ---- |
|
From: Florin C B. <ory...@us...> - 2013-06-17 16:09:00
|
Update of /cvsroot/mxbb/mx_music/admin In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv12016 Modified Files: admin_music_auth.php admin_music_cat.php admin_music_cfg.php admin_music_ext.php Log Message: Index: admin_music_ext.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/admin/admin_music_ext.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** admin_music_ext.php 10 Sep 2008 06:05:19 -0000 1.8 --- admin_music_ext.php 17 Jun 2013 16:08:58 -0000 1.9 *************** *** 9,14 **** */ - define( 'IN_PORTAL', 1 ); - if ( !empty( $setmodules ) ) { --- 9,12 ---- Index: admin_music_cat.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/admin/admin_music_cat.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** admin_music_cat.php 18 Sep 2008 07:24:44 -0000 1.10 --- admin_music_cat.php 17 Jun 2013 16:08:57 -0000 1.11 *************** *** 9,14 **** */ - define('IN_PORTAL', 1); - if ( !empty( $setmodules ) ) { --- 9,12 ---- Index: admin_music_auth.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/admin/admin_music_auth.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** admin_music_auth.php 10 Sep 2008 06:54:18 -0000 1.9 --- admin_music_auth.php 17 Jun 2013 16:08:57 -0000 1.10 *************** *** 9,14 **** */ - define('IN_PORTAL', 1); - if ( !empty( $setmodules ) ) { --- 9,12 ---- Index: admin_music_cfg.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/admin/admin_music_cfg.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** admin_music_cfg.php 10 Sep 2008 06:05:18 -0000 1.11 --- admin_music_cfg.php 17 Jun 2013 16:08:58 -0000 1.12 *************** *** 9,14 **** */ - define('IN_PORTAL', 1); - if ( !empty( $setmodules ) ) { --- 9,12 ---- |
|
From: Florin C B. <ory...@us...> - 2013-06-17 16:06:46
|
Update of /cvsroot/mxbb/mx_linkdb/admin In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv11532 Modified Files: admin_linkdb.php Log Message: Index: admin_linkdb.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/admin/admin_linkdb.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** admin_linkdb.php 3 Jun 2008 20:08:39 -0000 1.15 --- admin_linkdb.php 17 Jun 2013 16:06:43 -0000 1.16 *************** *** 9,30 **** */ - define( 'IN_PORTAL', true ); - $phpEx = substr(strrchr(__FILE__, '.'), 1); if ( @file_exists( './../viewtopic.'.$phpEx ) ) { ! define( 'IN_PHPBB', 1 ); ! define( 'MXBB_MODULE', false ); - // // Main paths - // $phpbb_root_path = $module_root_path = $mx_root_path = "./../"; $mx_mod_path = $phpbb_root_path . 'mx_mod/'; - // // Left Pane Paths - // $setmodules_admin_path = ''; $setmodules_module_path = "./../"; --- 9,25 ---- */ $phpEx = substr(strrchr(__FILE__, '.'), 1); if ( @file_exists( './../viewtopic.'.$phpEx ) ) { ! @define( 'IN_PHPBB', 1 ); ! @define( 'IN_PORTAL', 1 ); ! @define( 'MXBB_MODULE', false ); // Main paths $phpbb_root_path = $module_root_path = $mx_root_path = "./../"; $mx_mod_path = $phpbb_root_path . 'mx_mod/'; // Left Pane Paths $setmodules_admin_path = ''; $setmodules_module_path = "./../"; *************** *** 35,55 **** else { ! define( 'IN_PORTAL', 1 ); ! define( 'MXBB_MODULE', true ); - // // Main paths - // $mx_root_path = './../../../'; $module_root_path = './../../../modules/mx_linkdb/'; - // // Left Pane Paths - // $setmodules_root_path = './../'; $setmodules_module_path = 'modules/mx_linkdb/'; $setmodules_admin_path = $setmodules_module_path . 'admin/'; ! define( 'MXBB_27x', file_exists( $setmodules_root_path . 'mx_login.php' ) ); $phpEx = substr(strrchr(__FILE__, '.'), 1); --- 30,45 ---- else { ! @define( 'MXBB_MODULE', true ); // Main paths $mx_root_path = './../../../'; $module_root_path = './../../../modules/mx_linkdb/'; // Left Pane Paths $setmodules_root_path = './../'; $setmodules_module_path = 'modules/mx_linkdb/'; $setmodules_admin_path = $setmodules_module_path . 'admin/'; ! @define( 'MXBB_27x', file_exists( $setmodules_root_path . 'mx_login.php' ) ); $phpEx = substr(strrchr(__FILE__, '.'), 1); |
|
From: Florin C B. <ory...@us...> - 2013-06-17 16:03:01
|
Update of /cvsroot/mxbb/mx_glance/templates/_core In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv10973 Modified Files: glance_body.tpl Log Message: fixes modules Index: glance_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_glance/templates/_core/glance_body.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** glance_body.tpl 12 Oct 2008 01:28:42 -0000 1.3 --- glance_body.tpl 17 Jun 2013 16:02:59 -0000 1.4 *************** *** 1,4 **** <div class="textbody"> ! <table cellpadding="4" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <!-- BEGIN no_glance_news_and_recent --> <tr> --- 1,4 ---- <div class="textbody"> ! <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <!-- BEGIN no_glance_news_and_recent --> <tr> |
|
From: Florin C B. <ory...@us...> - 2013-06-17 16:02:50
|
Update of /cvsroot/mxbb/mx_glance/admin In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv10952/admin Modified Files: admin_mx_glance.php Log Message: fixes modules Index: admin_mx_glance.php =================================================================== RCS file: /cvsroot/mxbb/mx_glance/admin/admin_mx_glance.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** admin_mx_glance.php 5 Feb 2008 04:39:09 -0000 1.4 --- admin_mx_glance.php 17 Jun 2013 16:02:48 -0000 1.5 *************** *** 6,31 **** */ - define('IN_PORTAL', 1); - $mx_root_path = '../' ; global $db; ! if ( empty( $block_id ) ) ! { ! $sql = "SELECT * FROM " . BLOCK_TABLE . " WHERE block_title = 'Last News and Topics' LIMIT 1"; ! ! if(!$result = $db->sql_query($sql)) ! { ! mx_message_die(GENERAL_ERROR, "Could not query Last News and Topics module information", "", __LINE__, __FILE__, $sql); ! } ! $row = $db->sql_fetchrow($result); ! ! $block_id = $row[block_id]; } ! if( !empty($setmodules) ) { $module['Last_News_and_Topics']['General_Module_Settings'] = "admin/admin_mx_block_cp.php?mode=setting&block_id=$block_id"; return; } ! ?> --- 6,31 ---- */ $mx_root_path = '../' ; global $db; ! if (empty($block_id)) ! { ! // Read block Configuration ! $block_id = (!empty($_GET['block_id']) ) ? $_GET['block_id'] : $_POST['id']; ! // 0: module, 1: module_id, 2: module_name, 3: module_path, ! // 4: module_desc, 5: module_include_admin ! //mx_get_info($table, $idfield = '', $id = 0, $idfield2 = '', $id2 = 0) ... ( $idfield2 != '' && $id2 != '' ) ? " AND $idfield2 = '$id2'" : ''; ! $block_info = mx_get_info(BLOCK_TABLE, 'block_title', 'Last News and Topics'); ! $block_id = ( isset($block_id) && !empty($block_id) ? $block_id : $block_info['block_id'] ); ! $title = $block_info['block_title']; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); ! $description = $block_info['block_desc']; ! $show_title = ($userdata['user_level'] == ADMIN) ? true : $block_info['show_title']; } ! if(!empty($setmodules)) { $module['Last_News_and_Topics']['General_Module_Settings'] = "admin/admin_mx_block_cp.php?mode=setting&block_id=$block_id"; return; } ! ?> \ No newline at end of file |
|
From: Florin C B. <ory...@us...> - 2013-06-17 15:54:50
|
Update of /cvsroot/mxbb/mx_kb/admin In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv10224 Modified Files: admin_kb.php Log Message: Index: admin_kb.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/admin/admin_kb.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** admin_kb.php 3 Jun 2008 20:08:18 -0000 1.7 --- admin_kb.php 17 Jun 2013 15:54:47 -0000 1.8 *************** *** 9,20 **** */ - define( 'IN_PORTAL', true ); - $phpEx = substr(strrchr(__FILE__, '.'), 1); if ( @file_exists( './../viewtopic.'.$phpEx ) ) { ! define( 'IN_PHPBB', 1 ); ! define( 'MXBB_MODULE', false ); // --- 9,19 ---- */ $phpEx = substr(strrchr(__FILE__, '.'), 1); if ( @file_exists( './../viewtopic.'.$phpEx ) ) { ! @define( 'IN_PHPBB', 1 ); ! @define( 'IN_PORTAL', 1 ); ! @define( 'MXBB_MODULE', false ); // *************** *** 35,40 **** else { ! define( 'IN_PORTAL', 1 ); ! define( 'MXBB_MODULE', true ); // --- 34,38 ---- else { ! @define( 'MXBB_MODULE', true ); // *************** *** 51,55 **** $setmodules_admin_path = $setmodules_module_path . 'admin/'; ! define( 'MXBB_27x', file_exists( $setmodules_root_path . 'mx_login.php' ) ); $phpEx = substr(strrchr(__FILE__, '.'), 1); --- 49,53 ---- $setmodules_admin_path = $setmodules_module_path . 'admin/'; ! @define( 'MXBB_27x', file_exists( $setmodules_root_path . 'mx_login.php' ) ); $phpEx = substr(strrchr(__FILE__, '.'), 1); *************** *** 58,63 **** if ( !empty( $setmodules ) ) { - include_once( $setmodules_root_path . $setmodules_module_path . 'kb/includes/kb_constants.' . $phpEx ); - $filename = basename( __FILE__ ); $module['KB_title']['1_Configuration'] = $setmodules_admin_path . $filename . "?action=settings"; --- 56,59 ---- *************** *** 70,77 **** } - // // Includes - // require( $mx_root_path . '/admin/pagestart.' . $phpEx ); include( $module_root_path . 'kb/kb_common.' . $phpEx ); --- 66,72 ---- } // Includes require( $mx_root_path . '/admin/pagestart.' . $phpEx ); + include_once( $setmodules_root_path . $setmodules_module_path . 'kb/includes/kb_constants.' . $phpEx ); include( $module_root_path . 'kb/kb_common.' . $phpEx ); |
|
From: Florin C B. <ory...@us...> - 2013-06-17 15:47:51
|
Update of /cvsroot/mxbb/mx_kb/language/lang_english In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv9624/lang_english Modified Files: lang_admin.php Log Message: Index: lang_admin.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/language/lang_english/lang_admin.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** lang_admin.php 3 Jun 2008 20:11:33 -0000 1.11 --- lang_admin.php 17 Jun 2013 15:47:48 -0000 1.12 *************** *** 260,264 **** $lang['Create_description'] = 'Here you can change the name of the category and add a description to the new category.'; $lang['Cat_created'] = 'Category Created Successfully.'; ! $lang['Click_return_cat_manager'] = 'Click %sHere%s to return to the ' . $lang['Cat_man']; $lang['Edit_description'] = 'Here you can edit the settings of your category'; $lang['Edit_cat'] = 'Edit Category'; --- 260,264 ---- $lang['Create_description'] = 'Here you can change the name of the category and add a description to the new category.'; $lang['Cat_created'] = 'Category Created Successfully.'; ! $lang['Click_return_cat_manager'] = 'Click %sHere%s to return to the ' . $lang['2_Cat_man']; $lang['Edit_description'] = 'Here you can edit the settings of your category'; $lang['Edit_cat'] = 'Edit Category'; |
|
From: Florin C B. <ory...@us...> - 2013-06-17 15:44:21
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/includes In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv9172 Modified Files: pafiledb_constants.php Log Message: Index: pafiledb_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/includes/pafiledb_constants.php,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** pafiledb_constants.php 25 Oct 2012 13:02:03 -0000 1.30 --- pafiledb_constants.php 17 Jun 2013 15:44:18 -0000 1.31 *************** *** 14,18 **** } ! if ( !MXBB_MODULE ) { $server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://'; --- 14,18 ---- } ! if (!MXBB_MODULE) { $server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://'; *************** *** 28,31 **** --- 28,35 ---- $is_block = false; // This also makes the script work for phpBB ;) } + if (!isset($mx_table_prefix)) + { + $mx_table_prefix = $table_prefix; + } //$module_root_path = PORTAL_URL . $module_root_path; *************** *** 38,44 **** define('ICONS_DIR', 'pafiledb/images/icons/'); - // // Tables - // define( 'PA_CATEGORY_TABLE', $mx_table_prefix . 'pa_cat' ); define( 'PA_COMMENTS_TABLE', $mx_table_prefix . 'pa_comments' ); --- 42,46 ---- *************** *** 53,59 **** define( 'PA_MIRRORS_TABLE', $mx_table_prefix . 'pa_mirrors' ); - // // Switches - // define( 'PAFILEDB_DEBUG', 1 ); // Pafiledb Mod Debugging on define( 'PAFILEDB_QUERY_DEBUG', 1 ); --- 55,59 ---- |
|
From: Florin C B. <ory...@us...> - 2013-06-17 15:44:08
|
Update of /cvsroot/mxbb/mx_pafiledb/admin In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv9160 Modified Files: admin_pafiledb.php Log Message: Index: admin_pafiledb.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/admin/admin_pafiledb.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** admin_pafiledb.php 3 Jun 2008 20:21:54 -0000 1.8 --- admin_pafiledb.php 17 Jun 2013 15:44:06 -0000 1.9 *************** *** 9,14 **** */ - define( 'IN_PORTAL', true ); - $phpEx = substr(strrchr(__FILE__, '.'), 1); --- 9,12 ---- *************** *** 16,19 **** --- 14,18 ---- { define( 'IN_PHPBB', 1 ); + define( 'IN_PORTAL', 1 ); define( 'MXBB_MODULE', false ); *************** *** 35,39 **** else { - define( 'IN_PORTAL', 1 ); define( 'MXBB_MODULE', true ); --- 34,37 ---- *************** *** 58,62 **** if ( !empty( $setmodules ) ) { - include_once( $setmodules_root_path . $setmodules_module_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); $filename = basename( __FILE__ ); --- 56,59 ---- *************** *** 75,78 **** --- 72,76 ---- // require( $mx_root_path . '/admin/pagestart.' . $phpEx ); + include_once( $setmodules_root_path . $setmodules_module_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); include( $module_root_path . 'pafiledb/pafiledb_common.' . $phpEx ); |
|
From: Florin C B. <ory...@us...> - 2013-06-17 15:25:34
|
Update of /cvsroot/mxbb/mx_contact/admin In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv8299 Modified Files: admin_contact.php admin_contact_log.php admin_mass_mail.php admin_mass_newsletter.php Log Message: Index: admin_mass_mail.php =================================================================== RCS file: /cvsroot/mxbb/mx_contact/admin/admin_mass_mail.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** admin_mass_mail.php 29 Dec 2011 05:51:52 -0000 1.14 --- admin_mass_mail.php 17 Jun 2013 15:25:31 -0000 1.15 *************** *** 23,29 **** $def_size = 1; - @define('IN_PHPBB', 1); - @define('IN_PORTAL', 1); - if( !empty($setmodules) ) { --- 23,26 ---- Index: admin_contact_log.php =================================================================== RCS file: /cvsroot/mxbb/mx_contact/admin/admin_contact_log.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** admin_contact_log.php 4 Oct 2008 07:44:53 -0000 1.3 --- admin_contact_log.php 17 Jun 2013 15:25:31 -0000 1.4 *************** *** 20,25 **** ***************************************************************************/ - define( 'IN_PORTAL', 1 ); - if ( !empty( $setmodules ) ) { --- 20,23 ---- Index: admin_mass_newsletter.php =================================================================== RCS file: /cvsroot/mxbb/mx_contact/admin/admin_mass_newsletter.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** admin_mass_newsletter.php 17 Apr 2011 08:37:06 -0000 1.14 --- admin_mass_newsletter.php 17 Jun 2013 15:25:31 -0000 1.15 *************** *** 24,30 **** $def_size = 1; - define('IN_PHPBB', 1); - define('IN_PORTAL', 1); - if( !empty($setmodules) ) { --- 24,27 ---- Index: admin_contact.php =================================================================== RCS file: /cvsroot/mxbb/mx_contact/admin/admin_contact.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** admin_contact.php 25 Dec 2008 18:19:06 -0000 1.6 --- admin_contact.php 17 Jun 2013 15:25:31 -0000 1.7 *************** *** 11,16 **** ***************************************************************************/ - define( 'IN_PORTAL', 1 ); - if ( !empty( $setmodules ) ) { --- 11,14 ---- |
|
From: Florin C B. <ory...@us...> - 2013-06-17 15:20:57
|
Update of /cvsroot/mxbb/mx_act/admin In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv7825 Modified Files: admin_activity.php admin_ina_ban.php admin_ina_category.php admin_ina_disable.php admin_ina_scores_edit.php admin_ina_xtras.php Log Message: Index: admin_ina_disable.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_disable.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** admin_ina_disable.php 4 Oct 2008 12:30:21 -0000 1.8 --- admin_ina_disable.php 17 Jun 2013 15:20:54 -0000 1.9 *************** *** 9,14 **** */ - define( 'IN_PORTAL', 1 ); - if ( !empty( $setmodules ) ) { --- 9,12 ---- Index: admin_activity.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_activity.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** admin_activity.php 9 Apr 2011 16:30:58 -0000 1.12 --- admin_activity.php 17 Jun 2013 15:20:54 -0000 1.13 *************** *** 9,14 **** */ - define( 'IN_PORTAL', 1 ); - if ( !empty( $setmodules ) ) { --- 9,12 ---- Index: admin_ina_xtras.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_xtras.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** admin_ina_xtras.php 4 Oct 2008 12:30:21 -0000 1.8 --- admin_ina_xtras.php 17 Jun 2013 15:20:54 -0000 1.9 *************** *** 9,14 **** */ - define( 'IN_PORTAL', 1 ); - if ( !empty( $setmodules ) ) { --- 9,12 ---- Index: admin_ina_category.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_category.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** admin_ina_category.php 4 Oct 2008 12:30:21 -0000 1.8 --- admin_ina_category.php 17 Jun 2013 15:20:54 -0000 1.9 *************** *** 9,14 **** */ - define( 'IN_PORTAL', 1 ); - if ( !empty( $setmodules ) ) { --- 9,12 ---- Index: admin_ina_scores_edit.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_scores_edit.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** admin_ina_scores_edit.php 4 Oct 2008 12:30:21 -0000 1.8 --- admin_ina_scores_edit.php 17 Jun 2013 15:20:54 -0000 1.9 *************** *** 9,14 **** */ - define( 'IN_PORTAL', 1 ); - if ( !empty( $setmodules ) ) { --- 9,12 ---- Index: admin_ina_ban.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_ban.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** admin_ina_ban.php 4 Oct 2008 12:30:21 -0000 1.8 --- admin_ina_ban.php 17 Jun 2013 15:20:54 -0000 1.9 *************** *** 9,14 **** */ - define( 'IN_PORTAL', 1 ); - if ( !empty( $setmodules ) ) { --- 9,12 ---- |
|
From: Florin C B. <ory...@us...> - 2013-06-17 04:21:53
|
Update of /cvsroot/mxbb/core/includes/sessions/phpbb3 In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv14794 Modified Files: core.php session.php Log Message: Index: core.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/sessions/phpbb3/core.php,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** core.php 26 Apr 2013 14:14:18 -0000 1.23 --- core.php 17 Jun 2013 04:21:50 -0000 1.24 *************** *** 1104,1108 **** if ($guest) { ! $sql = "SELECT u.*, s.* FROM " . USERS_TABLE . " u, " . SESSIONS_TABLE . " s WHERE u.user_id = " . ANONYMOUS . " --- 1104,1108 ---- if ($guest) { ! $sql = "SELECT u.*, s.*, s.session_page AS user_session_page FROM " . USERS_TABLE . " u, " . SESSIONS_TABLE . " s WHERE u.user_id = " . ANONYMOUS . " *************** *** 1113,1117 **** else { ! $sql = "SELECT u.*, s.*, s.session_time AS user_session_time FROM " . USERS_TABLE . " u, " . SESSIONS_TABLE . " s WHERE u.user_id <> " . ANONYMOUS . " --- 1113,1117 ---- else { ! $sql = "SELECT u.*, s.*, s.session_time AS user_session_time, s.session_page AS user_session_page FROM " . USERS_TABLE . " u, " . SESSIONS_TABLE . " s WHERE u.user_id <> " . ANONYMOUS . " *************** *** 1303,1307 **** { global $db, $template, $board_config, $portal_config, $phpbb_root_path, $mx_root_path, $lang, $theme, $mx_user, $userdata; ! $template->assign_block_vars("forum_stats", array()); // --- 1303,1307 ---- { global $db, $template, $board_config, $portal_config, $phpbb_root_path, $mx_root_path, $lang, $theme, $mx_user, $userdata; ! $template->assign_block_vars("forum_stats", array()); // *************** *** 1388,1391 **** --- 1388,1392 ---- if( preg_match("/^(3\.23|4\.|5\.)/", $version) ) { + static $dbname, $dbsize; $db_name = ( preg_match("/^(3\.23\.[6-9])|(3\.23\.[1-9][1-9])|(4\.)|(5\.)/", $version) ) ? "`$dbname`" : $dbname; *************** *** 1481,1505 **** * @return unknown */ ! function phpbb_version_check() { ! global $board_config, $lang; ! ! $current_phpbb_version = explode('.', '' . $board_config['version']); ! $minor_phpbb_revision = (int) $current_phpbb_version[3]; ! $errno = 0; $errstr = $phpbb_version_info = ''; if ($fsock = @fsockopen('www.phpbb.com', 80, $errno, $errstr, 10)) { ! $phpbb_version_info = mx_get_remote_file('www.phpbb.com', '/updatecheck', ((defined('PHPBB_QA')) ? '30x_qa.txt' : '30x.txt'), $errstr, $errno); ! if ($info === false) { ! trigger_error($errstr, E_USER_WARNING); } ! $phpbb_version_info = explode("\n", $phpbb_version_info); ! $announcement_url = trim($info[1]); //$update_link = append_sid($phpbb_root_path . 'install/index.' . $phpEx, 'mode=update'); $latest_phpbb_head_revision = trim($phpbb_version_info[0]); --- 1482,1520 ---- * @return unknown */ ! function phpbb_version_check($force_update = false, $warn_fail = false, $ttl = 86400) { ! global $mx_cache, $board_config, $lang, $phpbb_version_info; ! $errno = 0; $errstr = $phpbb_version_info = ''; + $phpbb_version_info = $mx_cache->get('versioncheck'); if ($fsock = @fsockopen('www.phpbb.com', 80, $errno, $errstr, 10)) { ! //$phpbb_version_info = mx_get_remote_file('www.phpbb.com', '/updatecheck', ((defined('PHPBB_QA')) ? '30x_qa.txt' : '30x.txt'), $errstr, $errno); ! if ($phpbb_version_info === false || $force_update) { ! $errstr = ''; ! $errno = 0; ! ! $phpbb_version_info = mx_get_remote_file('version.phpbb.com', '/phpbb', ! ((defined('PHPBB_QA')) ? '30x_qa.txt' : '30x.txt'), $errstr, $errno); ! } ! ! if (empty($phpbb_version_info)) ! { ! $mx_cache->destroy('versioncheck'); ! if ($warn_fail) ! { ! trigger_error($errstr, E_USER_WARNING); ! } ! return false; } ! $mx_cache->put('versioncheck', $phpbb_version_info, $ttl); ! $phpbb_version_info = explode("\n", $phpbb_version_info); ! //$latest_phpbb_version_info = phpbb_version_compare(trim($phpbb_version_info[0]), $board_config['version'], '<='); ! //$latest_version = trim($phpbb_version_info[0]); //$update_link = append_sid($phpbb_root_path . 'install/index.' . $phpEx, 'mode=update'); $latest_phpbb_head_revision = trim($phpbb_version_info[0]); *************** *** 1507,1510 **** --- 1522,1528 ---- $latest_phpbb_version = trim($phpbb_version_info[0]) . '.' . trim($phpbb_version_info[1]) . '.' . trim($phpbb_version_info[2]); + $current_phpbb_version = explode(".", $board_config['version']); + $minor_phpbb_revision = (int) $current_phpbb_version[3]; + if ($latest_phpbb_head_revision == 3 && $minor_phpbb_revision == $latest_phpbb_minor_revision) { Index: session.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/sessions/phpbb3/session.php,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** session.php 17 Jun 2013 02:51:56 -0000 1.53 --- session.php 17 Jun 2013 04:21:50 -0000 1.54 *************** *** 96,102 **** $this->session_begin(); - // // Redefine some MXP stylish userdata - // $this->data['session_logged_in'] = $this->data['user_id'] != ANONYMOUS ? 1 : 0; --- 96,100 ---- *************** *** 120,123 **** --- 118,122 ---- $this->data['session_id'] = $this->session_id; + $this->data['user_session_page'] = $this->data['session_page']; } |
|
From: Florin C B. <ory...@us...> - 2013-06-17 03:24:02
|
Update of /cvsroot/mxbb/core/admin In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv12746 Modified Files: index.php Log Message: Index: index.php =================================================================== RCS file: /cvsroot/mxbb/core/admin/index.php,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** index.php 17 Jun 2013 02:53:26 -0000 1.63 --- index.php 17 Jun 2013 03:24:00 -0000 1.64 *************** *** 153,158 **** 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); --- 153,158 ---- while( list($action, $file) = each($action_array) ) { ! $row_color = ( !($row_count%2) ) ? $mx_user->theme['td_color1'] : $mx_user->theme['td_color2']; ! $row_class = ( !($row_count%2) ) ? $mx_user->theme['td_class1'] : $mx_user->theme['td_class2']; $action = ( !empty($lang[$action]) ) ? $lang[$action] : preg_replace("/_/", " ", $action); *************** *** 245,250 **** 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); --- 245,250 ---- while( list($action, $file) = each($action_array) ) { ! $row_color = ( !($row_count%2) ) ? $mx_user->theme['td_color1'] : $mx_user->theme['td_color2']; ! $row_class = ( !($row_count%2) ) ? $mx_user->theme['td_class1'] : $mx_user->theme['td_class2']; $action = ( !empty($lang[$action]) ) ? $lang[$action] : preg_replace("/_/", " ", $action); *************** *** 403,408 **** } ! $row_color = ( $registered_users % 2 ) ? $theme['td_color1'] : $theme['td_color2']; ! $row_class = ( $registered_users % 2 ) ? $theme['td_class1'] : $theme['td_class2']; $reg_ip = $mx_backend->decode_ip($onlinerow_reg[$i]['session_ip']); --- 403,408 ---- } ! $row_color = ( $registered_users % 2 ) ? $mx_user->theme['td_color1'] : $mx_user->theme['td_color2']; ! $row_class = ( $registered_users % 2 ) ? $mx_user->theme['td_class1'] : $mx_user->theme['td_class2']; $reg_ip = $mx_backend->decode_ip($onlinerow_reg[$i]['session_ip']); *************** *** 474,479 **** ! $row_color = ( $guest_users % 2 ) ? $theme['td_color1'] : $theme['td_color2']; ! $row_class = ( $guest_users % 2 ) ? $theme['td_class1'] : $theme['td_class2']; $guest_ip = $mx_backend->decode_ip($onlinerow_guest[$i]['session_ip']); --- 474,479 ---- ! $row_color = ( $guest_users % 2 ) ? $mx_user->theme['td_color1'] : $mx_user->theme['td_color2']; ! $row_class = ( $guest_users % 2 ) ? $mx_user->theme['td_class1'] : $mx_user->theme['td_class2']; $guest_ip = $mx_backend->decode_ip($onlinerow_guest[$i]['session_ip']); *************** *** 504,512 **** /* Begin MX-Publisher version check code block */ ! $current_mxbb_version = explode('.', $portal_config['portal_version']); ! $minor_mxbb_revision = (int) $current_mxbb_version[2]; $errno = 0; ! $errstr = $mxbb_version_info = ''; $mx_version_check = false; --- 504,512 ---- /* Begin MX-Publisher version check code block */ ! $current_MXP_version = explode('.', $portal_config['portal_version']); ! $minor_MXP_revision = (int) $current_MXP_version[2]; $errno = 0; ! $errstr = $MXP_version_info = ''; $mx_version_check = false; *************** *** 534,538 **** if ($get_info) { ! $mxbb_version_info .= fread($fsock, 1024); } else --- 534,538 ---- if ($get_info) { ! $MXP_version_info .= fread($fsock, 1024); } else *************** *** 546,564 **** fclose($fsock); ! $mxbb_version_info = explode("\n", $mxbb_version_info); ! $latest_mxbb_head_revision = (int) $mxbb_version_info[0]; ! $latest_mxbb_minor_revision = (int) $mxbb_version_info[2]; ! $latest_mxbb_patch_revision = (int) $mxbb_version_info[3]; // For betas/RC ! $latest_mxbb_version = (int) $mxbb_version_info[0] . '.' . (int) $mxbb_version_info[1] . '.' . (int) $mxbb_version_info[2]; ! if ($latest_mxbb_head_revision == 3 && $minor_mxbb_revision == $latest_mxbb_minor_revision) { ! $mxbb_version_info = '<p style="color:green">' . $lang['mxBB_Version_up_to_date'] . '</p>'; } else { ! $mxbb_version_info = '<p style="color:red">' . $lang['mxBB_Version_outdated']; ! $mxbb_version_info .= '<br />' . sprintf($lang['mxBB_Latest_version_info'], $latest_mxbb_version) . sprintf($lang['mxBB_Current_version_info'], $portal_config['portal_version']) . '</p>'; } } --- 546,564 ---- fclose($fsock); ! $MXP_version_info = explode("\n", $MXP_version_info); ! $latest_MXP_head_revision = (int) $MXP_version_info[0]; ! $latest_MXP_minor_revision = (int) $MXP_version_info[2]; ! $latest_MXP_patch_revision = (int) $MXP_version_info[3]; // For betas/RC ! $latest_MXP_version = (int) $MXP_version_info[0] . '.' . (int) $MXP_version_info[1] . '.' . (int) $MXP_version_info[2]; ! if ($latest_MXP_head_revision == 3 && $minor_MXP_revision == $latest_MXP_minor_revision) { ! $MXP_version_info = '<p style="color:green">' . $lang['MXP_Version_up_to_date'] . '</p>'; } else { ! $MXP_version_info = '<p style="color:red">' . $lang['MXP_Version_outdated']; ! $MXP_version_info .= '<br />' . sprintf($lang['MXP_Latest_version_info'], $latest_MXP_version) . sprintf($lang['MXP_Current_version_info'], $portal_config['portal_version']) . '</p>'; } } *************** *** 567,582 **** if ($errstr) { ! $mxbb_version_info = '<p style="color:red">' . sprintf($lang['Connect_socket_error'], $errstr) . '</p>'; } else { ! $mxbb_version_info = '<p>' . $lang['Socket_functions_disabled'] . '</p>'; } } ! $mxbb_version_info .= '<p>' . $lang['mxBB_Mailing_list_subscribe_reminder'] . '</p>'; $template->assign_vars(array( ! 'MXBB_VERSION_INFO' => $mxbb_version_info, 'PHPBB_VERSION_INFO' => $phpbb_version_info, 'L_VERSION_INFORMATION' => $lang['Version_information']) --- 567,582 ---- if ($errstr) { ! $MXP_version_info = '<p style="color:red">' . sprintf($lang['Connect_socket_error'], $errstr) . '</p>'; } else { ! $MXP_version_info = '<p>' . $lang['Socket_functions_disabled'] . '</p>'; } } ! $MXP_version_info .= '<p>' . $lang['MXP_Mailing_list_subscribe_reminder'] . '</p>'; $template->assign_vars(array( ! 'MXP_VERSION_INFO' => $MXP_version_info, 'PHPBB_VERSION_INFO' => $phpbb_version_info, 'L_VERSION_INFORMATION' => $lang['Version_information']) |