Пример #1
0
function showAbout()
{
    ?>
<!-- Modal -->
<div class="modal fade" id="about" tabindex="-1" role="dialog" aria-labelledby="aboutLabel" aria-hidden="true">
	<div class="modal-dialog  modal-lg">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
	        	<h4 class="modal-title" id="aboutLabel"><?php 
    echo Lang::l_("About This Service");
    ?>
</h4>
			</div>
			<div class="modal-body">
				<h5><?php 
    echo Lang::l_("What is this?");
    ?>
</h5>
				<p><?php 
    echo Lang::l_("What is this? text");
    ?>
</p>
				<h5><?php 
    echo Lang::l_("How do I choose a route?");
    ?>
</h5>
				<p><?php 
    echo Lang::l_("How do I choose a route? text");
    ?>
</p>
				<h5><?php 
    echo Lang::l_("Where does the data come from and is it up to date?");
    ?>
</h5>
				<p><?php 
    echo Lang::l_("Where does the data come from and is it up to date? text");
    ?>
</p>
				<h5><?php 
    echo Lang::l_("Which data is used?");
    ?>
</h5>
				<p><?php 
    echo Lang::l_("used_data_relations");
    ?>
</p>
				<ul>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Train_Route">ref</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Train_Route">operator</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Train_Route">network</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Train_Route">route=rail|train|light_rail|tram|subway</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Train_Route">service=high_speed|long_distance|night|car|car_shuttle|regional|commuter|tourism</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Train_Route">color|colour</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Train_Route">text_color|text_colour|colour:text</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Train_Route">from</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Train_Route">to</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Train_Route">via</a></li>
				</ul>
				<p><?php 
    echo Lang::l_("used_data_ways");
    ?>
</p>
				<ul>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Tracks">railway=rail|light_rail|tram|narrow_gauge|subway|miniature</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Tracks">maxspeed</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Tracks">maxspeed:forward</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Tracks">maxspeed:backward</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Tracks">operator</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Tracks">railway:traffic_mode</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Tracks">electrified</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Tracks">voltage</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Tracks">frequency</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Tracks">bridge</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Tracks">tunnel</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Tracks">embankment</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Tracks">cutting</a></li>
				</ul>
				<p><?php 
    echo Lang::l_("used_data_maxspeed");
    ?>
</p>
				<ul>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Tracks">service</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Tracks">railway:pzb</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Tracks">railway:lzb</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Tracks">railway:imu</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Tracks">railway:ects</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Tracks">railway:selcab</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Tracks">highspeed</a></li>
					<li><a href="http://wiki.openstreetmap.org/wiki/OpenRailwayMap/Tagging#Tracks">usage=main|branch</a></li>
				</ul>
				<p><?php 
    echo Lang::l_("used_data_stops");
    ?>
</p>
				<ul>
					<li>name</li>
					<li>ref_name</li>
					<li>description</li>
				</ul>
				<h5><?php 
    echo Lang::l_("I have a suggestion. / I found an error");
    ?>
</h5>
				<p><?php 
    echo Lang::l_("suggestion_error_text");
    ?>
</p>
				<h5><?php 
    echo Lang::l_("Changelog");
    ?>
</h5>
	<?php 
    $changelog = parseChangelog();
    $changelog_size = count($changelog);
    if ($changelog_size > 2) {
        ?>
		
				<div class="collapse" id="changelog">
		<?php 
    }
    $i = 1;
    foreach ($changelog as $changelogi) {
        if ($i > $changelog_size - 2) {
            ?>
				</div>
				<div>
			<?php 
        }
        ?>
					<h6><?php 
        echo $changelogi["heading"];
        ?>
</h6>
					<ul>
		<?php 
        foreach ($changelogi["content"] as $changelogcontent) {
            ?>
						<li><?php 
            echo $changelogcontent;
            ?>
</li>
			<?php 
        }
        ?>
					</ul>
		<?php 
        $i++;
    }
    if ($changelog_size > 2) {
        ?>
		
				</div>
				<button class="btn btn-default" type="button" data-toggle="collapse" data-target="#changelog" aria-expanded="false" aria-controls="changelog">See complete Changelog</button>
		<?php 
    }
    ?>
			</div>      
			<div class="modal-footer">
        		<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      		</div>
		</div>
	</div>
</div>
	<?php 
}
Пример #2
0
echo '<?xml version="1.0" encoding="ISO-8859-1" ?>';
?>
 
<rss version="2.0">
<channel>  

    <title>OSMTrainRouteAnalysis</title>  

    <link>http://osmtrainroutes.bplaced.net/</link>  

    <description> 
    Changelog of OSMTrainRouteAnalysis
    </description>
<?php 
include "functions/start.php";
$changelog = parseChangelog();
foreach ($changelog as $changelogi) {
    ?>
    <item>
      <title><?php 
    echo $changelogi["heading"];
    ?>
</title>
      <link>http://osmtrainroutes.bplaced.net/#about</link>
      <description>
      <![CDATA[
            <ul>
		<?php 
    foreach ($changelogi["content"] as $changelogcontent) {
        ?>
				<li><?php