Changeset 15698


Ignore:
Timestamp:
2007/09/13 19:15:54 (17 years ago)
Author:
nanasess
Message:

XML宣言用関数追加

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/util/SC_Utils.php

    r15691 r15698  
    16631663    } 
    16641664 
     1665    /** 
     1666     * XML宣言を出力する. 
     1667     * 
     1668     * XML宣言があると問題が発生する UA は出力しない. 
     1669     * 
     1670     * @return string XML宣言の文字列 
     1671     */ 
     1672    function printXMLDeclaration() { 
     1673        $ua = $_SERVER['HTTP_USER_AGENT']; 
     1674        if (!preg_match("/MSIE/", $ua) || preg_match("/MSIE 7/", $ua)) { 
     1675            print('<?xml version="1.0" encoding="' . CHAR_CODE . '"?>'); 
     1676        } 
     1677    } 
     1678 
    16651679    /* デバッグ用 ------------------------------------------------------------------------------------------------*/ 
    16661680    function sfPrintR($obj) { 
Note: See TracChangeset for help on using the changeset viewer.