Changeset 34603

Show
Ignore:
Timestamp:
07/24/09 22:04:47 (4 years ago)
Author:
saturday06
Message:

asdf

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 -*- ?> 
    322<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
    333<html> 
    344  <head> 
    35     <title>download</title> 
     5    <title>i3 - Next Generation Keyboard Launcher</title> 
    366  </head> 
    377  <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> 
    3817    <p> 
    3918      <?php if (is_clickonce_supported()) { ?>