Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
manolis committed Nov 3, 2007
1 parent 16c5301 commit 2295224
Show file tree
Hide file tree
Showing 43 changed files with 2,573 additions and 82 deletions.
15 changes: 4 additions & 11 deletions CL_flightData.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,27 +431,20 @@ function getJsFilename($timeStep=0) { // values > 0 mean 1-> first level of time
// Full url functions
//----------------------------------------
function getFlightLinkURL() {
global $baseInstallationPath,$module_name;
global $CONF_mainfile;
return "http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/".$CONF_mainfile."?name=".$module_name."&op=show_flight&flightID=".$this->flightID;
return "http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."&op=show_flight&flightID=".$this->flightID;
}

function getIGC_URL($saned=0) {
global $baseInstallationPath,$module_name;
global $CONF_mainfile;
global $baseInstallationPath;
return "http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/".$this->getIGCRelPath($saned);
}

function getFlightKML() {
global $baseInstallationPath,$module_name;
global $CONF_mainfile;
return "http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/modules/$module_name/download.php?type=kml_trk&flightID=".$this->flightID;
return "http://".$_SERVER['SERVER_NAME'].getRelMainDir()."download.php?type=kml_trk&flightID=".$this->flightID;
}

function getFlightGPX() {
global $baseInstallationPath,$module_name;
global $CONF_mainfile;
return "http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/modules/$module_name/download.php?type=gpx_trk&flightID=".$this->flightID;
return "http://".$_SERVER['SERVER_NAME'].$getRelMainDir()."download.php?type=gpx_trk&flightID=".$this->flightID;
}

//------------------------------
Expand Down
5 changes: 2 additions & 3 deletions CL_gpsPoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,8 @@ function getFromDB() {
$this->modifyDate=$wpInfo['modifyDate'];
}

function exportXML() {
global $baseInstallationPath, $CONF_mainfile, $module_name;
$link=htmlspecialchars ("http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/".$CONF_mainfile."?name=".$module_name."&op=show_waypoint&waypointIDview=".$this->waypointID);
function exportXML() {
$link=htmlspecialchars ("http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."&op=show_waypoint&waypointIDview=".$this->waypointID);

return "<waypoint>
<id>".htmlspecialchars($this->waypointID)."</id>
Expand Down
7 changes: 2 additions & 5 deletions EXT_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
$tmpDir=dirname(__FILE__);
$tmpParts=split("/",str_replace("\\","/",$tmpDir));
$module_name=$tmpParts[count($tmpParts)-1];
} else if ( $opMode==3) {
} else if ( $opMode==3 || $opMode==4 ) {
$newlang=$currentlang;
$inside_mod =1;
define('INSIDE_MOD',1);
require_once dirname(__FILE__)."/includes/mainfile.php";
// require_once dirname(__FILE__)."/includes/mainfile.php";
require_once "language/lang-".$currentlang.".php";
// re-set $module_name;
$tmpDir=dirname(__FILE__);
Expand All @@ -64,9 +64,6 @@
}
*/

//$OLCScoringServerPath="http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/modules/".$module_name."/server/scoreOLC.php";
//$OLCScoringServerPassword="mypasswd";

session_start();
$userID = $_SESSION['userID'];

Expand Down
3 changes: 2 additions & 1 deletion EXT_config_pre.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/

define('EXT_CONFIG',1);

$tmpDir=dirname(__FILE__);
$tmpParts=split("/",str_replace("\\","/",$tmpDir));
$module_name=$tmpParts[count($tmpParts)-1];
Expand Down
12 changes: 6 additions & 6 deletions EXT_flight.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
$XML_str="<result>\n";
$XML_str.="
<title>Leonardo at ".$_SERVER['SERVER_NAME']." :: Flight list</title>
<link>http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/modules.php?name=".$module_name."</link>
<link>http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."</link>
<date>". gmdate('D, d M Y H:i:s', time()) . " GMT</date>
";

Expand All @@ -88,9 +88,9 @@
// $nearestWaypoint->getFromDB();

$name=getPilotRealName($row["userID"],$row["userServerID"]);
$link=htmlspecialchars ("http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/modules.php?name=".$module_name."&op=show_flight&flightID=".$row['ID']);
$link=htmlspecialchars ("http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."&op=show_flight&flightID=".$row['ID']);
$this_year=substr($row[DATE],0,4);
$linkIGC=htmlspecialchars ("http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/modules/".$module_name."/".$flightsRelPath."/".$row[userID]."/flights/".$this_year."/".$row[filename] );
$linkIGC=htmlspecialchars ("http://".$_SERVER['SERVER_NAME'].getRelMainDir().$flightsRelPath."/".$row[userID]."/flights/".$this_year."/".$row[filename] );

if ($row['takeoffVinicity'] > $takeoffRadious )
$location=getWaypointName($row['takeoffID'])." [~".sprintf("%.1f",$row['takeoffVinicity']/1000)." km]";
Expand Down Expand Up @@ -143,7 +143,7 @@
$XML_str="
<result>
<title>Leonardo at ".$_SERVER['SERVER_NAME']." :: Flight list</title>
<link>http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/".$CONF_mainfile."?name=".$module_name."</link>
<link>http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."</link>
<description>Leonardo at ".$_SERVER['SERVER_NAME']." :: Flight list</description>
<managingEditor>".$CONF_admin_email."</managingEditor>
<webMaster>".$CONF_admin_email."</webMaster>
Expand All @@ -155,9 +155,9 @@
$nearestWaypoint->getFromDB();

$name=getPilotRealName($row["userID"],$row["userServerID"]);
$link=htmlspecialchars ("http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/".$CONF_mainfile."?name=".$module_name."&op=show_flight&flightID=".$row['ID']);
$link=htmlspecialchars ("http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."&op=show_flight&flightID=".$row['ID']);
$this_year=substr($row[DATE],0,4);
$linkIGC=htmlspecialchars ("http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/".$moduleRelPath."/".$flightsRelPath."/".$row[userID]."/flights/".$this_year."/".$row[filename] );
$linkIGC=htmlspecialchars ("http://".$_SERVER['SERVER_NAME'].getRelMainDir().$flightsRelPath."/".$row[userID]."/flights/".$this_year."/".$row[filename] );

if ($row['takeoffVinicity'] > $takeoffRadious )
$location=getWaypointName($row['takeoffID'])." [~".sprintf("%.1f",$row['takeoffVinicity']/1000)." km]";
Expand Down
11 changes: 5 additions & 6 deletions FN_flight.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,8 @@ function addFlightFromFile($filename,$calledFromForm,$userIDstr,
}

function getAddFlightErrMsg($result,$flightID) {
global $module_name,$baseInstallationPath,$CONF_mainfile;
$callingURL="http://".$_SERVER['SERVER_NAME']."$baseInstallationPath/$CONF_mainfile";

$callingURL="http://".$_SERVER['SERVER_NAME'].getRelMainFileName();

switch ($result) {
case ADD_FLIGHT_ERR_YOU_HAVENT_SUPPLIED_A_FLIGHT_FILE:
$errMsg=_YOU_HAVENT_SUPPLIED_A_FLIGHT_FILE;
Expand All @@ -317,16 +316,16 @@ function getAddFlightErrMsg($result,$flightID) {
break;
case ADD_FLIGHT_ERR_SAME_DATE_FLIGHT:
$errMsg=_THERE_IS_SAME_DATE_FLIGHT."<br><br>"._IF_YOU_WANT_TO_SUBSTITUTE_IT." ".
"<a href='$callingURL?name=$module_name&op=show_flight&flightID=$flightID'>"._DELETE_THE_OLD_ONE."</a>";
"<a href='$callingURL&op=show_flight&flightID=$flightID'>"._DELETE_THE_OLD_ONE."</a>";
break;
case ADD_FLIGHT_ERR_SAME_FILENAME_FLIGHT:
$errMsg=_THERE_IS_SAME_FILENAME_FLIGHT."<br><br>"._IF_YOU_WANT_TO_SUBSTITUTE_IT." ".
"<a href='$callingURL?name=$module_name&op=show_flight&flightID=$flightID'>"._DELETE_THE_OLD_ONE."</a><br><br>".
"<a href='$callingURL&op=show_flight&flightID=$flightID'>"._DELETE_THE_OLD_ONE."</a><br><br>".
_CHANGE_THE_FILENAME;
break;
case ADD_FLIGHT_ERR_SAME_HASH_FLIGHT:
$errMsg=_THERE_IS_SAME_DATE_FLIGHT."<br><br>"._IF_YOU_WANT_TO_SUBSTITUTE_IT." ".
"<a href='$callingURL?name=$module_name&op=show_flight&flightID=$flightID'>"._DELETE_THE_OLD_ONE."</a>";
"<a href='$callingURL&op=show_flight&flightID=$flightID'>"._DELETE_THE_OLD_ONE."</a>";
break;
case ADD_FLIGHT_ERR_DATE_IN_THE_FUTURE:
$errMsg="The date of the flight is in the future<BR>Please use the Year-month-day not the US Year-day-month format";
Expand Down
12 changes: 12 additions & 0 deletions FN_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,18 @@ function getRelMainFileName() {
return "/$baseInstallationPath/$CONF_mainfile?name=$module_name";
}

function getRelMainDir($noLeadingSlash=0,$noTrailingSlash=0) {
global $baseInstallationPath, $moduleRelPath;

// / + modules/leonardo/
// / + components/com_leonardo/
// /leonardo + /./
if ( $noLeadingSlash)
return "$baseInstallationPath/$moduleRelPath/";
else
return "/$baseInstallationPath/$moduleRelPath/";
}

// google maps polyline encoding
function encodeNumber($num) {
// printf("%f = ", $num);
Expand Down
8 changes: 4 additions & 4 deletions FN_waypoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ function makeKMLwaypoint($waypointID) {

function makeWaypointPlacemark($waypointID,$returnCountryCode=0) {
global $db, $waypointsTable;
global $baseInstallationPath,$module_name,$flightsTable,$countries,$CONF_mainfile;
global $module_name,$flightsTable,$countries,$CONF_mainfile,$moduleRelPath;

$wpInfo =new waypoint($waypointID);
$wpInfo->getFromDB();
Expand All @@ -295,12 +295,12 @@ function makeWaypointPlacemark($waypointID,$returnCountryCode=0) {
$flightNum=mysql_num_rows($res);
$row = $db->sql_fetchrow($res);

$siteRecordLink="<a href='http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/".$CONF_mainfile."?name=".$module_name."&op=show_flight&flightID=".$row['ID']."'>".
$siteRecordLink="<a href='http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."&op=show_flight&flightID=".$row['ID']."'>".
formatDistance($row['record_km'],1)."</a>";
} else $siteRecordLink="";

$pointFlightsLink="<a href='http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/".$CONF_mainfile."?name=$module_name&op=list_flights&takeoffID=$waypointID&year=0'>"._See_flights_near_this_point." [ ".$flightNum." ]</a>";
$countryFlightsLink="<a href='http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/".$CONF_mainfile."?name=$module_name&op=list_flights&year=0&takeoffID=0&country=".$wpInfo->countryCode."'>".$countries[$wpInfo->countryCode]."</a>";
$pointFlightsLink="<a href='http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."&op=list_flights&takeoffID=$waypointID&year=0'>"._See_flights_near_this_point." [ ".$flightNum." ]</a>";
$countryFlightsLink="<a href='http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."&op=list_flights&year=0&takeoffID=0&country=".$wpInfo->countryCode."'>".$countries[$wpInfo->countryCode]."</a>";
if ($wpInfo->link) $siteLink='<a href="'.formatURL($wpInfo->link).'" target="_blank">'.formatURL($wpInfo->link).'</a>';
else $siteLink="-";

Expand Down
6 changes: 4 additions & 2 deletions GUI_EXT_waypoint_details.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,15 @@
$flightNum=mysql_num_rows($res);
$row = mysql_fetch_assoc($res);

echo "<a target='_blank' href='http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/modules.php?name=".$module_name."&op=show_flight&flightID=".$row['ID']."'>".
echo "<a target='_blank' href='http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."&op=show_flight&flightID=".$row['ID']."'>".
formatDistance($row['record_km'],1)."</a>";
}


?>
<p> <strong><? echo "<a target='_blank' href='http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/modules.php?name=$module_name&op=list_flights&takeoffID=$waypointIDview&year=0&month=0'>"._See_flights_near_this_point." [ ".$flightNum." ]</a>"; ?></strong></td>
<p> <strong><? echo "<a target='_blank' href='http://".$_SERVER['SERVER_NAME'].getRelMainFileName().
"&op=list_flights&takeoffID=$waypointIDview&year=0&month=0'>".
_See_flights_near_this_point." [ ".$flightNum." ]</a>"; ?></strong></td>
</tr>
<tr bgcolor="#49766D">
<td><div align="left" ></div>
Expand Down
4 changes: 2 additions & 2 deletions GUI_filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
list($takeoffs,$takeoffsID)=getTakeoffList();
list($countriesCodes,$countriesNames)=getCountriesList();

$filterUrl="http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/".$CONF_mainfile."?name=".$module_name."&op=filter&fl_url=1";
$redirectUrl="http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/".$CONF_mainfile."?name=".$module_name."&op=list_flights&sortOrder=DATE&year=0&month=0&pilotID=0";
$filterUrl="http://".$_SERVER['SERVER_NAME'].getRelMainFileName()"&op=filter&fl_url=1";
$redirectUrl="http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."&op=list_flights&sortOrder=DATE&year=0&month=0&pilotID=0";

if ($_REQUEST["FILTER_dateType"] || $_GET['fl_url']==1) { // form submitted

Expand Down
13 changes: 6 additions & 7 deletions GUI_flight_show.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function setSelectColor(theDiv) {
function add_takeoff(lat,lon,id) {
takeoffTip.hide();
document.getElementById('takeoffBoxTitle').innerHTML = "<?=_ADD_WAYPOINT?>";
document.getElementById('addTakeoffFrame').src='modules/<?=$module_name?>/GUI_EXT_waypoint_add.php?lat='+lat+'&lon='+lon+'&takeoffID='+id;
document.getElementById('addTakeoffFrame').src='<?=getRelMainDir(1)?>GUI_EXT_waypoint_add.php?lat='+lat+'&lon='+lon+'&takeoffID='+id;
MWJ_changeSize('addTakeoffFrame',410,320);
MWJ_changeSize( 'takeoffAddID', 410,350 );
toggleVisible('takeoffAddID','takeoffAddPos',14,0,410,320);
Expand All @@ -89,7 +89,7 @@ function add_takeoff(lat,lon,id) {
function edit_takeoff(id) {
takeoffTip.hide();
document.getElementById('takeoffBoxTitle').innerHTML = "Change Takeoff";
document.getElementById('addTakeoffFrame').src='modules/<?=$module_name?>/GUI_EXT_waypoint_edit.php?waypointIDedit='+id;
document.getElementById('addTakeoffFrame').src='<?=getRelMainDir(1)?>GUI_EXT_waypoint_edit.php?waypointIDedit='+id;
MWJ_changeSize('addTakeoffFrame',410,320);
MWJ_changeSize( 'takeoffAddID', 410,350 );
toggleVisible('takeoffAddID','takeoffAddPos',14,0,410,320);
Expand All @@ -98,7 +98,7 @@ function edit_takeoff(id) {
function delete_takeoff(id) {
takeoffTip.hide();
document.getElementById('takeoffBoxTitle').innerHTML = "Delete Takeoff";
document.getElementById('addTakeoffFrame').src='modules/<?=$module_name?>/GUI_EXT_waypoint_delete.php?waypointIDdelete='+id;
document.getElementById('addTakeoffFrame').src='<?=getRelMainDir(1)?>GUI_EXT_waypoint_delete.php?waypointIDdelete='+id;
MWJ_changeSize('addTakeoffFrame',410,220);
MWJ_changeSize( 'takeoffAddID', 410,250 );
toggleVisible('takeoffAddID','takeoffAddPos',14,0,410,220);
Expand All @@ -109,15 +109,15 @@ function delete_takeoff(id) {
<script language="javascript">
function set_flight_bounds(id) {
MWJ_changeContents('takeoffBoxTitle',"Set Start - Stop time for flight");
document.getElementById('addTakeoffFrame').src='modules/<?=$module_name?>/GUI_EXT_flight_set_bounds.php?flightID='+id;
document.getElementById('addTakeoffFrame').src='<?=getRelMainDir(1)?>GUI_EXT_flight_set_bounds.php?flightID='+id;
MWJ_changeSize('addTakeoffFrame',740,395);
MWJ_changeSize( 'takeoffAddID', 745,415 );
toggleVisible('takeoffAddID','setBoundsPos',18,-690,725,435);
}

function user_add_takeoff(lat,lon,id) {
MWJ_changeContents('takeoffBoxTitle',"<?=_ADD_WAYPOINT?>");
document.getElementById('addTakeoffFrame').src='modules/<?=$module_name?>/GUI_EXT_user_waypoint_add.php?lat='+lat+'&lon='+lon+'&takeoffID='+id;
document.getElementById('addTakeoffFrame').src='<?=getRelMainDir(1)?>GUI_EXT_user_waypoint_add.php?lat='+lat+'&lon='+lon+'&takeoffID='+id;
MWJ_changeSize('addTakeoffFrame',720,380);
MWJ_changeSize( 'takeoffAddID', 725,400 );
toggleVisible('takeoffAddID','takeoffAddPos',30,0,725,455);
Expand Down Expand Up @@ -557,9 +557,8 @@ function user_add_takeoff(lat,lon,id) {

if ( $CONF_google_maps_api_key ) {
$googleMap="<div id='gmaps_div' style='display:block; width:745px; height:610px;'><iframe id='gmaps_iframe' align='left'
SRC='http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/".$moduleRelPath."/EXT_google_maps_track.php?id=".
SRC='http://".$_SERVER['SERVER_NAME'].getRelMainDir()."EXT_google_maps_track.php?id=".
$flight->flightID."' ".
//&file=$baseInstallationPath/".$flight->getPolylineRelPath()."&zoom=3'
" TITLE='Google Map' width='100%' height='100%'
scrolling='no' frameborder='0'>
Sorry. If you're seeing this, your browser doesn't support IFRAMEs. You should upgrade to a more current browser.
Expand Down
6 changes: 3 additions & 3 deletions GUI_index_full.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@
'LINK_SHOW_PILOTS' =>"?name=$module_name&op=list_pilots&comp=0",
'LINK_SUBMIT_FLIGHT' =>"?name=$module_name&op=add_flight",

'SHOW_LEAGUE_URL'=> "$baseInstallationPath/$CONF_mainfile?name=$module_name&op=competition",
'SHOW_FLIGHTS_URL'=> "$baseInstallationPath/$CONF_mainfile?name=$module_name&op=list_flights&takeoffID=0&pilotID=0",
'SHOW_TAKEOFFS_URL'=> "$baseInstallationPath/$CONF_mainfile?name=$module_name&op=list_takeoffs&pilotID=0"
'SHOW_LEAGUE_URL'=> getRelMainFileName()."&op=competition",
'SHOW_FLIGHTS_URL'=> getRelMainFileName()."&op=list_flights&takeoffID=0&pilotID=0",
'SHOW_TAKEOFFS_URL'=> getRelMainFileName()."&op=list_takeoffs&pilotID=0"
));

$Ltemplate->pparse('body');
Expand Down
2 changes: 1 addition & 1 deletion GUI_rss_conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/************************************************************************/

list($countriesCodes,$countriesNames)=getCountriesList();
$rss_url_base="http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/$moduleRelPath/rss.php";
$rss_url_base="http://".$_SERVER['SERVER_NAME'].getRelMainDir()."rss.php";
echo "<BR>";
open_inner_table("Configure RSS Feed",700,"rss.gif"); echo "<tr><td>";
?>
Expand Down
4 changes: 2 additions & 2 deletions GUI_waypoint_show.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
$flightNum=mysql_num_rows($res);
$row = mysql_fetch_assoc($res);

echo "<a href='http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/modules.php?name=".$module_name."&op=show_flight&flightID=".$row['ID']."'>".
echo "<a href='http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."&op=show_flight&flightID=".$row['ID']."'>".
formatDistance($row['record_km'],1)."</a>";
}

Expand Down Expand Up @@ -135,7 +135,7 @@
<? list($browser_agent,$browser_version)=getBrowser();
if ( $CONF_google_maps_api_key ) { ?>
<iframe align="right"
SRC="<? echo "http://".$_SERVER['SERVER_NAME'].$baseInstallationPath."/".$moduleRelPath."/EXT_google_maps.php?wpName=".$wpInfo->intName."&lat=".$wpInfo->lat."&lon=".-$wpInfo->lon; ?>"
SRC="<? echo "http://".$_SERVER['SERVER_NAME'].getRelMainDir()."EXT_google_maps.php?wpName=".$wpInfo->intName."&lat=".$wpInfo->lat."&lon=".-$wpInfo->lon; ?>"
TITLE="Google Map" width="680px" height="400px"
scrolling="no" frameborder="0">
Sorry. If you're seeing this, your browser doesn't support IFRAMEs.
Expand Down
4 changes: 2 additions & 2 deletions MENU_top_menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@
<li><a href="<?=$login_url?>"><img src='<?=$moduleRelPath?>/img/icon_login.gif' valign='middle' border=0> <?=_MENU_LOGIN ?></a></li>
<li><a href="<?=$register_url?>"><img src='<?=$moduleRelPath?>/img/icon_register.gif' valign='middle' border=0> <?=_MENU_REGISTER ?></a></li>
<? } else { // user alredy logged in
if ($CONF_use_own_login) $logout_url="?name=$module_name&op=login&logout=true";
if ($CONF_use_own_login) $logout_url=str_replace("%module_name%",$module_name,$CONF['bridge']['logout_url']);
else $logout_url="login.php?logout=true";
?>
<li><a href="<?=$logout_url?>"><img src='<?=$moduleRelPath?>/img/icon_login.gif' valign='middle' border=0> <?=_MENU_LOGOUT ?></a></li>
<li><a href="<?=$logout_url?>"><img src='<?=$moduleRelPath?>/img/icon_login.gif' valign='middle' border=0> <?=_MENU_LOGOUT ?></a></li>

<? } ?>
<li class='li_space'></li>
Expand Down
Loading

0 comments on commit 2295224

Please sign in to comment.