コード例 #1
0
    echo _COMMENTS_FOR_THE_FLIGHT;
    ?>
	 </div>
	  <div align="left">
	   <label><?php 
    echo _Comments_are_enabled_for_this_flight;
    ?>
  		<input type="checkbox" name="commentsEnabled" id="commentsEnabled" value="1" <?php 
    echo $thisPilot->commentsEnabled ? 'checked' : '';
    ?>
 />
  	  </label>
	
	    <?php 
    require_once dirname(__FILE__) . '/FN_editor.php';
    if (L_auth::isModerator($userID)) {
        $toolbar = 'Leonardo';
        $allowUploads = false;
    } else {
        $toolbar = 'LeonardoSimple';
        $allowUploads = false;
    }
    createTextArea($flight->userServerID, $flight->userID, 'comments', $flight->comments, 'flight_comments', $toolbar, $allowUploads, 700, 200);
    ?>
	  
		</td>
    </tr>

    <tr>
      <td><div align="right" class="styleItalic"><?php 
    echo _RELEVANT_PAGE;
コード例 #2
0
$inWindow = true;
# martin jursa 24.06.2008/ peter wild: taking into account the setting for $CONF_new_flights_submit_window and editing only if flight date is inside the window
//echo $CONF_new_flights_submit_window;
if (isset($CONF_new_flights_submit_window) && $CONF_new_flights_submit_window > 0) {
    $tsFlight = strtotime($flight->DATE);
    if ($tsFlight > 0) {
        $inWindow = $tsFlight > time() - $CONF_new_flights_submit_window * 24 * 3600;
    }
}
if ($inWindow || L_auth::isAdmin($userID)) {
    //P.Wild 29.6.2007 Admin override to edit outside time window
    //old if (  $flight->DATE	> date("Y-m-d", time() - $CONF_new_flights_submit_window*24*3600 ) ){ // P.Wild mod. 19.5.2008
    if ($flight->belongsToUser($userID) || L_auth::isModerator($userID)) {
        $legendRight .= "<div id='setBoundsPos'></div><a href='javascript:set_flight_bounds({$flightID})'><img src='" . $moduleRelPath . "/img/icon_clock.png' title='Set Start-Stop Time for flight' border=0 align=bottom></a> ";
    }
    if ($flight->belongsToUser($userID) || L_auth::isModerator($userID)) {
        $legendRight .= "<a href='" . getLeonardoLink(array('op' => 'delete_flight', 'flightID' => $flightID)) . "'><img src='" . $moduleRelPath . "/img/x_icon.gif' border=0 align=bottom></a>\n\t\t\t\t\t   <a href='" . getLeonardoLink(array('op' => 'edit_flight', 'flightID' => $flightID)) . "'><img src='" . $moduleRelPath . "/img/change_icon.png' border=0 align=bottom></a>";
    }
}
if (L_auth::isAdmin($userID)) {
    $legendRight .= "<a href='javascript:flight_db_info({$flightID})'><img src='" . $moduleRelPath . "/img/icon_db.gif' title='DB record for the flight' border=0 align=bottom></a> ";
}
# martin jursa 24.06.2008: display scores info only if flight has not been optimized manually
if (!$flight->autoScore) {
    $showScoreInfo = "<a href='javascript:flight_scores_info({$flightID})'><img src='" . $moduleRelPath . "/img/icon_olc_manual.gif' title='" . _Show_Optimization_details . "' border=0 align='absmiddle'>" . _Show_Optimization_details . "&nbsp;<img src='" . $moduleRelPath . "/img/icon_arrow_down.gif' title='" . _Show_Optimization_details . "' border=0 align=bottom></a> ";
} else {
    $showScoreInfo = '';
}
if ($flight->private & 0x1) {
    $legendRight .= "&nbsp;<img src='" . $moduleRelPath . "/img/icon_private.gif' align='bottom' width='13' height='13'>";
}
コード例 #3
0
require_once dirname(__FILE__) . "/templates/" . $PREFS->themeName . "/theme.php";
setDEBUGfromGET();
require_once dirname(__FILE__) . "/language/" . CONF_LANG_ENCODING_TYPE . "/lang-" . $currentlang . ".php";
require_once dirname(__FILE__) . "/language/" . CONF_LANG_ENCODING_TYPE . "/countries-" . $currentlang . ".php";
$flightID = makeSane($_GET['flightID'], 1);
if ($flightID <= 0) {
    exit;
}
$flight = new flight();
$flight->getFlightFromDB($flightID);
$flightComments = new flightComments($flight->flightID);
$flightComments->getFromDB();
$commentsEnabled = $flight->commentsEnabled + 0;
// now the access rights :
$moderatorRights = false;
if ($flight->userID == $userID && $flight->userServerID == $userServerID || L_auth::isModerator($userID)) {
    $moderatorRights = true;
}
?>
  
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
	<html>
	<head>
  <meta http-equiv="Content-Type" content="text/html; charset=<?php 
echo $CONF_ENCODING;
?>
">
  
<link href="<?php 
echo $moduleRelPath . "/templates/" . $PREFS->themeName . "/style.css";
?>
コード例 #4
0
    exit;
}
$clientIP = getClientIpAddr();
if ($flightID) {
    $flight = new flight();
    $flight->getFlightFromDB($flightID);
    $authOK = 0;
    if ($flight->belongsToUser($userID) || L_auth::isModerator($userID) || L_auth::canDownloadIGC($clientIP)) {
        $authOK = 1;
    }
} else {
    if ($filename) {
        $authOK = 0;
        $base_name = basename($filename);
        // echo $base_name."#";
        if (L_auth::isModerator($userID) || L_auth::canDownloadIGC($clientIP) || $_SESSION['di' . $base_name]) {
            $authOK = 1;
        }
    }
}
if ($authOK) {
    $type = 'igc';
    require_once dirname(__FILE__) . '/download_igc.php';
    return;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php 
echo $CONF_ENCODING;
コード例 #5
0
ファイル: EXT_helper.php プロジェクト: WooSeungho/leonardoxc
			
			
			echo "<BR>PDF File is ready. <a href='$pdfFile' target='_blank'>Download it from here</a><BR>\n";		
			// echo "PDF FILE: $pdfFile\n";
			
			echo "<BR><BR><a href='javascript:closePdfDiv();'>OK</a><br>";
			return;
		}
		
		
		 echo "printing $url";
		
		require_once "CL_job.php";
		$jobArgs=array('userID'=>$userID,
				'jobType'=>'pdf',
				'priority'=>(L_auth::isModerator($userID)?1:0),
				'timeCreated'=>gmdate('Y-m-d H:i:s'),
				'status'=>0,
				'param1'=>$url,
				'param2'=>$userEmail,
			);
		$previousJobTime=leoJob::searchJob($jobArgs);
		
		if ($previousJobTime) {
			echo "You have ordered the same PDF on GMT $previousJobTime<BR>";
		} else {
			leoJob::addJob($jobArgs);
			echo "PDF order has been send<BR><BR>Will send email to $userEmail when the pdf is created<BR><BR>";
	
		}
		
コード例 #6
0
 echo '<font color="#FF2222">***</font>';
 foreach ($CONF_NAC_list as $NACid => $NAC) {
     if ($NAC['description']) {
         echo "<div style='background:#d0d0d0; padding:10px; ' >" . $NAC['description'] . "</div> ";
     }
 }
 echo "<div id='mID' style='display:" . ($pilot['NACid'] == 0 ? "none" : "inline") . "'> ";
 $memberid_readonly = in_array('NACmemberID', $readonly_fields) ? 'readonly' : '';
 echo "<span style='white-space:nowrap'>" . _MemberID . ": <input size='5' type='text' name='NACmemberID' value='" . $pilot['NACmemberID'] . "' {$memberid_readonly}  /></span> ";
 echo '<font color="#FF2222">***</font>';
 echo "<div id='mIDselect' style='display:" . ($memberid_readonly ? "block" : "none") . "'> ";
 echo "[&nbsp;<a href='#' onclick=\"setID();return false;\">" . _EnterID . "</a>&nbsp;]";
 echo "</div>";
 echo "<div align=left id='mClubSelect' style='display:" . ($CONF_NAC_list[$pilot['NACid']]['use_clubs'] ? "block" : "none") . "' >" . _Club . " ";
 $NACclub = NACclub::getClubName($pilot['NACid'], $pilot['NACclubID']);
 if ($CONF_NAC_list[$pilot['NACid']]['club_change_period_active'] || $CONF_NAC_list[$pilot['NACid']]['add_to_club_period_active'] && !$pilot['NACclubID'] || L_auth::isAdmin($userID) || L_auth::isModerator($userID)) {
     $showChangeClubLink = "inline";
 } else {
     $showChangeClubLink = "none";
 }
 echo "<div id=\"mClubLink\" style=\"display: {$showChangeClubLink}\">[ <a href='#' onclick=\"setClub();return false;\">" . _Select_Club . "</a> ]</div>";
 /*
 
                 echo "[ <a href='#' onclick=\"setClub();return false;\">"._Select_CLub."</a> ]";
             } else {
                 echo "";
             }
 */
 echo "<br><input  type='hidden' name='NACclubID' value='" . $pilot['NACclubID'] . "' /> ";
 echo "<input  type='text' size='50' name='NACclub' value='" . $NACclub . "' readonly /></div> ";
 echo "</div>";
コード例 #7
0
ファイル: EXT_helper.php プロジェクト: Peter2121/leonardoxc
            $helperUrl = $CONF['pdf']['helperUrl'];
            if ($helperUrl) {
                $helperUrl = $helperUrl . '/';
            }
            if ($pdfFile) {
                echo "<a href='" . $helperUrl . $CONF['pdf']['tmpPathRel'] . '/' . $pdfFile . "' target='_blank'>PDF is ready</a>";
                // echo "\n\n".$moduleRelPath.'/'.$CONF['pdf']['tmpPathRel'].'/'.$pdfFile;
            } else {
                echo "ERROR: PDF creation failed";
            }
            return;
        }
        echo "<BR>PDF File is ready. <a href='{$pdfFile}' target='_blank'>Download it from here</a><BR>\n";
        // echo "PDF FILE: $pdfFile\n";
        echo "<BR><BR><a href='javascript:closePdfDiv();'>OK</a><br>";
        return;
    }
    echo "printing {$url}";
    require_once "CL_job.php";
    $jobArgs = array('userID' => $userID, 'jobType' => 'pdf', 'priority' => L_auth::isModerator($userID) ? 1 : 0, 'timeCreated' => gmdate('Y-m-d H:i:s'), 'status' => 0, 'param1' => $url, 'param2' => $userEmail);
    $previousJobTime = leoJob::searchJob($jobArgs);
    if ($previousJobTime) {
        echo "You have ordered the same PDF on GMT {$previousJobTime}<BR>";
    } else {
        leoJob::addJob($jobArgs);
        echo "PDF order has been send<BR><BR>Will send email to {$userEmail} when the pdf is created<BR><BR>";
    }
    // $res=file_get_contents($url);
    // echo "#<pre>".$res."</pre>#";
    echo "<BR><BR><a href='javascript:closePdfDiv();'>OK</a><br>";
}
コード例 #8
0
ファイル: FN_output.php プロジェクト: Peter2121/leonardoxc
function makeGoogleEarthPopup()
{
    global $moduleRelPath, $opMode, $CONF, $userID;
    ob_start();
    ?>
<script language="javascript">
var geTip = new TipObj('geTip');
with (geTip)
{
	
	var showTitle=true;
	var title='<?php 
    echo _choose_ge_module;
    ?>
';
	var arrowDir = "right";
	var arrowLeft = -10;
	var arrowTop = -3;
	var shadowTop = -7;
	var shadowLeft = -7;
	
	arrowDir = "right";
	// arrowLeft = tipWidth;
	arrowTop = -1;
	
	if(document.all)
		arrowLeft -= 2;
			
	template=	"<div id='BT' class='BT_shadow0' >" +
		"<div class='BT_shadow1'>"+
		"<div class='BT_shadow2'>" +
		"<div id='BT_main' style='width:%3%px; top:"+shadowTop+"px; left:"+shadowLeft+"px;'>" +
			"<div id='BT_arrow_"+arrowDir+"' style='top: "+arrowTop+"px; left:%3%px;'></div>" +
			(showTitle?"<div id='BT_title'>"+title+"</div>":"") +
			"<div style='padding:5px'>" +
				"<div id='BT_content' style='line-height:140%'>"+

				<?php 
    $icon_bullet_greenStr = leoHtml::img("icon_bullet_green.gif", 0, 0, 'absmiddle', '', 'icons1');
    ?>
				
				<?php 
    if ($CONF['googleEarth']['igc2kmz']['active'] && ($CONF['googleEarth']['igc2kmz']['visible'] || L_auth::isModerator($userID))) {
        ?>
				"<?php 
        echo $icon_bullet_greenStr;
        echo leoHtml::img("icon_new.png", 0, 0, 'absmiddle', '', 'icons1');
        ?>
 <a href='<?php 
        echo getDownloadLink(array('type' => 'kml_trk', 'an' => '2', 'flightID' => '%4%', 'lng' => '%5%'));
        ?>
'><?php 
        echo 'IGC2KMZ ' . _ge_module_advanced_1;
        ?>
</a>"+
	'<br>'+
				<?php 
    }
    ?>
  "<?php 
    echo $icon_bullet_greenStr;
    ?>
 <a href='<?php 
    echo getDownloadLink(array('type' => 'kml_trk', 'an' => '1', 'flightID' => '%4%', 'lng' => '%5%'));
    ?>
'><?php 
    echo 'GPS2GE V2.0 ' . _ge_module_advanced_2;
    ?>
</a>"+
	'<br>'+

  "<?php 
    echo $icon_bullet_greenStr;
    ?>
 <a href='<?php 
    echo getDownloadLink(array('type' => 'kml_trk', 'an' => '0', 'flightID' => '%4%', 'lng' => '%5%'));
    ?>
'><?php 
    echo _ge_module_Simple;
    ?>
</a>"+
  
					
				"</div>" +
			"</div>"+
			"<div id='BT_bottom_arrow_"+arrowDir+"' style='display:none; top: 30px; left:"+arrowLeft+"px;'></div>" +
		"</div></div></div></div>";

 tipStick = 0;
 showDelay = 0;
 hideDelay = 500;
 doFades = false;
}
</script>
<div id="geTipLayer" class="shadowBox" style="position: absolute; z-index: 10000; 
visibility: hidden; left: 0px; top: 0px; width: 10px">&nbsp;</div>
<?php 
    $c = ob_get_contents();
    ob_end_clean();
    return $c;
}
コード例 #9
0
require_once dirname(__FILE__) . "/FN_UTM.php";
require_once dirname(__FILE__) . "/FN_waypoint.php";
require_once dirname(__FILE__) . "/FN_output.php";
require_once dirname(__FILE__) . "/FN_pilot.php";
require_once dirname(__FILE__) . "/FN_flight.php";
require_once dirname(__FILE__) . "/templates/" . $PREFS->themeName . "/theme.php";
setDEBUGfromGET();
require_once dirname(__FILE__) . "/language/" . CONF_LANG_ENCODING_TYPE . "/lang-" . $currentlang . ".php";
require_once dirname(__FILE__) . "/language/" . CONF_LANG_ENCODING_TYPE . "/countries-" . $currentlang . ".php";
$flightID = makeSane($_GET['flightID'], 1);
if ($flightID <= 0) {
    exit;
}
$flight = new flight();
$flight->getFlightFromDB($flightID);
if (!$flight->belongsToUser($userID) && !L_auth::isModerator($userID)) {
    echo "go away";
    return;
}
if ($_POST['setTimes'] == 1) {
    // set new bounds !!!
    $startTime = makeSane($_REQUEST['timeTextSecs1'], 1);
    // in secs
    $endTime = makeSane($_REQUEST['timeTextSecs2'], 1);
    $flight->forceBounds = 1;
    // must be in these time bounds
    $flight->START_TIME = $startTime;
    $flight->END_TIME = $endTime;
    $waypointsWebPath = moduleRelPath(0) . "/" . $waypointsRelPath;
    $flight->getFlightFromIGC($flight->getIGCFilename(), 0);
    $flight->deleteSecondaryFiles();
コード例 #10
0

</div></td>
    </tr>
    <tr>
      <td valign="top" bgcolor="#E9EDF5"><div align="right"><?php 
echo _Last_Name;
?>
</div></td>
      <td valign="top"> 
			<?php 
$lastNameReadOnly = '';
if (strlen(str_replace(".", "", trim($pilot['LastName']))) >= 2 && !L_auth::isAdmin($userID) && !L_auth::isModerator($userID)) {
    $lastNameReadOnly = 'readonly="readonly"';
}
if (in_array('LastName', $readonly_fields) && !L_auth::isAdmin($userID) && !L_auth::isModerator($userID)) {
    $lastNameReadOnly = 'readonly="readonly"';
}
?>
			<input name="LastName" type="text" value="<?php 
echo $pilot['LastName'];
?>
" size="25" maxlength="120" <?php 
echo $lastNameReadOnly;
?>
 >
		</td>
      <td>&nbsp;</td>
    </tr>
    
    <tr>