Changeset 34603
- Timestamp:
- 07/24/09 22:04:47 (4 years ago)
- Location:
- lang/objective-cplusplus/i3/trunk/www
- Files:
-
- 1 added
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/objective-cplusplus/i3/trunk/www/index.php
r34502 r34603 1 <?php // -*- coding: us-ascii-dos -*- 2 3 function is_newer_version($version) { 4 $required = explode('.', '2.0.0'); 5 $client = explode('.', $version); 6 7 for ($i = 0; ; $i++) { 8 if (!isset($required[$i])) { 9 return true; 10 } 11 if (!isset($client[$i])) { 12 return false; 13 } 14 if ($client[$i] > $required[$i]) { 15 return true; 16 } 17 if ($client[$i] < $required[$i]) { 18 return false; 19 } 20 } 21 } 22 23 function is_clickonce_supported() { 24 if (preg_match_all('/\.NET CLR ([0-9.]+)/', $_SERVER["HTTP_USER_AGENT"], $matches) && 25 array_filter($matches[1], is_newer_version)) { 26 return true; 27 } 28 return false; 29 } 30 31 ?> 1 <?php require_once 'lib.php'; // -*- coding: us-ascii-dos mode: HTML -*- ?> 32 2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 33 3 <html> 34 4 <head> 35 <title> download</title>5 <title>i3 - Next Generation Keyboard Launcher</title> 36 6 </head> 37 7 <body> 8 <h1>i3 - Next Generation Keyboard Launcher</h1> 9 <h2>Introduction</h2> 10 <p>i3 - Next Generation Keyboard Launcher</p> 11 <h2>Download</h2> 12 <ul> 13 <li><a href="">Source Code</a></li> 14 <li><a href="setup.exe">Windows Installer</a></li> 15 </ul> 16 <h3>ClickOnce</h3> 38 17 <p> 39 18 <?php if (is_clickonce_supported()) { ?>
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)