Changeset 484358
- Timestamp:
- 01/04/2012 10:00:52 AM (14 years ago)
- Location:
- nginx-manager/trunk/admin
- Files:
-
- 3 edited
-
admin.php (modified) (3 diffs)
-
install.php (modified) (1 diff)
-
upgrade.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nginx-manager/trunk/admin/admin.php
r480988 r484358 186 186 </table> 187 187 188 <<<<<<< .mine 188 189 <h4>Mobile</h4> 189 190 … … 202 203 <th scope="row"><label for="mobile_regexp">Regular expression for mobile:</label></th> 203 204 <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> 204 229 <input id="mobile_regexp" class="large-text" type="text" name="mobile_regexp" value="<?php echo stripslashes($nginxm->global_options['mobile_regexp']); ?>" /> 205 230 <span class="description">HTTP User Agents that match this regexp are not cached. The Regexp is not validated.</span> … … 209 234 </table> 210 235 236 >>>>>>> .r484353 211 237 <br /> 212 238 -
nginx-manager/trunk/admin/install.php
r480988 r484358 151 151 $nginxm_global_options['current_db_version'] = $nginxm->db_version; 152 152 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 ======= 153 159 // Mobile options, @since Nginx Manager 1.3.4 154 160 $nginxm_global_options['mobile_uncache'] = 1; 155 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/'; 156 162 163 >>>>>>> .r484353 157 164 return $nginxm_global_options; 158 165 -
nginx-manager/trunk/admin/upgrade.php
r480988 r484358 144 144 } 145 145 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 ======= 146 171 /* 147 172 * v1.3 -> v1.3.4 … … 167 192 } 168 193 194 >>>>>>> .r484353 169 195 } else { 170 196
Note: See TracChangeset
for help on using the changeset viewer.