Show
Ignore:
Timestamp:
07/20/09 00:16:48 (4 years ago)
Author:
saturday06
Message:

asdf

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/objective-cplusplus/i3/trunk/www/index.php

    r34492 r34493  
    11<?php 
    22 
    3 function is_clickonce_supported() { 
    4     if (!preg_match( 
    5             '/\.NET CLR ([0-9.]+)/', 
    6             $_SERVER["HTTP_USER_AGENT"], 
    7             $matches)) { 
    8         return false; 
    9     } 
    10  
    11     $client = explode('.', $matches[1]); 
     3function is_newer_version($version) { 
     4    $client = explode('.', $version); 
    125    $required = explode('.', '2.0.0'); 
    136 
     
    2619        }  
    2720    } 
     21} 
     22    
     23function is_clickonce_supported() { 
     24    if (!preg_match_all( 
     25            '/\.NET CLR ([0-9.]+)/', 
     26            $_SERVER["HTTP_USER_AGENT"], 
     27            $matches)) { 
     28        return false; 
     29    } 
     30 
     31    foreach ($matches[1] as $version) { 
     32        if (is_newer_version($version)) { 
     33            return true; 
     34        } 
     35    } 
     36    return false; 
    2837} 
    2938