Plugin Directory

Changeset 484358


Ignore:
Timestamp:
01/04/2012 10:00:52 AM (14 years ago)
Author:
rukbat
Message:

Upgrade to version 1.3.4.1

Location:
nginx-manager/trunk/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • nginx-manager/trunk/admin/admin.php

    r480988 r484358  
    186186                </table>
    187187               
     188<<<<<<< .mine
    188189                <h4>Mobile</h4>
    189190               
     
    202203                            <th scope="row"><label for="mobile_regexp">Regular expression for mobile:</label></th>
    203204                            <td>
     205                                <input id="mobile_regexp" class="large-text" type="text" name="mobile_regexp" value="<?php echo $nginxm->global_options['mobile_regexp']; ?>" />
     206                                <span class="description">HTTP User Agents that match this regexp are not cached. The Regexp is not validated.</span>
     207                            </td>
     208                        </tr>
     209                    </tbody>
     210                </table>
     211               
     212=======
     213                <h4>Mobile</h4>
     214               
     215                <table class="form-table">
     216                    <tbody>
     217                        <tr valign="top">
     218                            <th scope="row">Cache if mobile:</th>
     219                            <td>
     220                                <fieldset>
     221                                    <legend class="screen-reader-text"><span>If the request is from a mobile device disable cache</span></legend>
     222                                    <label for="mobile_uncache"><input type="checkbox" value="1" id="mobile_uncache" name="mobile_uncache"<?php checked( $nginxm->global_options['mobile_uncache'], 1 ); ?>> If the request is from a mobile device disable cache</label><br />
     223                                </fieldset>
     224                            </td>
     225                        </tr>
     226                        <tr valign="top">
     227                            <th scope="row"><label for="mobile_regexp">Regular expression for mobile:</label></th>
     228                            <td>
    204229                                <input id="mobile_regexp" class="large-text" type="text" name="mobile_regexp" value="<?php echo stripslashes($nginxm->global_options['mobile_regexp']); ?>" />
    205230                                <span class="description">HTTP User Agents that match this regexp are not cached. The Regexp is not validated.</span>
     
    209234                </table>
    210235               
     236>>>>>>> .r484353
    211237                <br />
    212238               
  • nginx-manager/trunk/admin/install.php

    r480988 r484358  
    151151    $nginxm_global_options['current_db_version']    = $nginxm->db_version;
    152152   
     153<<<<<<< .mine
     154    // Mobile options, @since Nginx Manager 1.3.4
     155    $nginxm_global_options['mobile_uncache']        = 1;
     156    $nginxm_global_options['mobile_regexp']         = '#2.0 MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo Wii|Nitro|Nokia|Opera Mini|Palm|PlayStation Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows CE|WinWAP|YahooSeeker/M1A1-R2D2|NF-Browser|iPhone|iPod|Android|BlackBerry9530|G-TU915 Obigo|LGE VX|webOS|Nokia5800#';
     157   
     158=======
    153159    // Mobile options, @since Nginx Manager 1.3.4
    154160    $nginxm_global_options['mobile_uncache']        = 1;
    155161    $nginxm_global_options['mobile_regexp']         = '/2\.0 MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine\/3\.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA\/WX310K|LG\/U990|MIDP-2\.|MMEF20|MOT-V|NetFront|Newt|Nintendo Wii|Nitro|Nokia|Opera Mini|Palm|PlayStation Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian OS|SymbianOS|TS21i-10|UP\.Browser|UP\.Link|webOS|Windows CE|WinWAP|YahooSeeker\/M1A1-R2D2|NF-Browser|iPhone|iPod|Android|BlackBerry9530|G-TU915 Obigo|LGE VX|webOS|Nokia5800/';
    156162   
     163>>>>>>> .r484353
    157164    return $nginxm_global_options;
    158165   
  • nginx-manager/trunk/admin/upgrade.php

    r480988 r484358  
    144144        }
    145145       
     146<<<<<<< .mine
     147        /*
     148         * v1.3 -> v1.3.4
     149         * 1) Set options for mobile
     150         * */
     151        if (version_compare($current_db_version, '1.3.4', '<')) {
     152           
     153            echo "<h4>Updating up to 1.3.4</h4>";
     154           
     155            echo "<p><i>Setting global options for mobile</i></p>";
     156           
     157            $nginxm_global_options = get_site_option('nginxm_global_options');
     158           
     159            // Set
     160            $nginxm_global_options['mobile_uncache']        = 1;
     161            $nginxm_global_options['mobile_regexp']         = '#2.0 MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo Wii|Nitro|Nokia|Opera Mini|Palm|PlayStation Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows CE|WinWAP|YahooSeeker/M1A1-R2D2|NF-Browser|iPhone|iPod|Android|BlackBerry9530|G-TU915 Obigo|LGE VX|webOS|Nokia5800#';
     162           
     163            update_site_option('nginxm_global_options', $nginxm_global_options);
     164           
     165            $nginxmNginx->log("UPGRADE :: Update to version 1.3.4 ... DONE");
     166            echo "<p><i>Update to version 1.3.4 ... DONE</i></p>";
     167           
     168        }
     169       
     170=======
    146171        /*
    147172         * v1.3 -> v1.3.4
     
    167192        }
    168193       
     194>>>>>>> .r484353
    169195    } else {
    170196       
Note: See TracChangeset for help on using the changeset viewer.