Пример #1
0
 function test()
 {
     $docroot = getenv("DOCUMENT_ROOT");
     $this->assertNotNull($docroot);
     $this->assertNotEqual($docroot, "/");
     $desired_time = 1230657905;
     $expected_date = "20081230";
     $test_filename = "/import/date-test-" . time() . '-' . rand(100000, 999999);
     touch($docroot . $test_filename, $desired_time);
     $this->assertEqual("{$test_filename}?version={$expected_date}", fileUrlWithDate($test_filename));
 }
Пример #2
0
" type="text/css">
    <link rel="gettext" type="application/x-po" href="/locale/<?php 
echo $locale;
?>
/LC_MESSAGES/messages.po?20090715" />
    <link rel="icon" type="image/png" href="/img/icon_favicon.png"/>
    <script type="text/javascript" src="http://www.google.com/jsapi"></script>
    <script type="text/javascript" src="/OpenLayers.js?version=20091204"></script>
    <script type="text/javascript" src="/js/greatcircle.js?version=20121108"></script>
    <script type="text/javascript" src="/js/utilities.js?version=20120817"></script>
    <script type="text/javascript" src="/js/Gettext.js"></script>
    <script type="text/javascript" src="/js/scw.js"></script>
    <script type="text/javascript" src="/js/prototype.js?version=20090326"></script>
    <script type="text/javascript" src="/js/scriptaculous.js?version=20091230"></script>
    <script type="text/javascript" src="<?php 
echo fileUrlWithDate("/openflights.js");
?>
"></script>
  </head>

  <body>

    <div id="mainContainer">
      <div id="sideBarContentWrapper">
	<div id="contentContainer">
	  <div id="map" class="smallmap"></div>

            <div id="maptitle"><noscript><?php 
echo _("Sorry, OpenFlights requires JavaScript.");
?>
</noscript>
Пример #3
0
    <link rel="stylesheet" href="/css/style_reset.css" type="text/css">
    <link rel="stylesheet" href="<?php 
echo fileUrlWithDate("/openflights.css");
?>
" type="text/css">
    <link rel="stylesheet" href="<?php 
echo fileUrlWithDate("/css/tripit.css");
?>
" type="text/css">
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
    <script type="text/javascript" src="<?php 
echo fileUrlWithDate("/js/jquery.blockUI.js");
?>
"></script>
    <script type="text/javascript" src="<?php 
echo fileUrlWithDate("/js/tripit.js");
?>
"></script>
  </head>

  <body>
    <div id="contexthelp">
      <h1>OpenFlights: <?php 
echo _("TripIt Trips");
?>
</h1>
      <span style="float: right"><INPUT type='button' value='<?php 
echo _("Close");
?>
' onClick='javascript:parent.opener.refresh(true); window.close();'></span>