WordPress.org

Make WordPress Core

Ticket #7262: 7262-get_manifest.2.diff

File 7262-get_manifest.2.diff, 34.7 KB (added by ryan, 5 years ago)

get_manifest() + gears-manifest.php + cache-manifest.php

  • wp-admin/cache-manifest.php

     
     1<?php 
     2/** 
     3 * Defines the Gears manifest file for Google Gears offline storage. 
     4 * 
     5 * @package WordPress 
     6 * @subpackage Administration 
     7 */ 
     8 
     9/** 
     10 * Disable error reporting 
     11 * 
     12 * Set this to error_reporting( E_ALL ) or error_reporting( E_ALL | E_STRICT ) for debugging 
     13 */ 
     14error_reporting(0); 
     15 
     16/** Set ABSPATH for execution */ 
     17define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' ); 
     18define( 'WPINC', 'wp-includes' ); 
     19 
     20/** 
     21 * @ignore 
     22 */ 
     23function __() {} 
     24 
     25/** 
     26 * @ignore 
     27 */ 
     28function _c() {} 
     29 
     30/** 
     31 * @ignore 
     32 */ 
     33function _x() {} 
     34 
     35 
     36/** 
     37 * @ignore 
     38 */ 
     39function add_filter() {} 
     40 
     41/** 
     42 * @ignore 
     43 */ 
     44function attribute_escape() {} 
     45 
     46/** 
     47 * @ignore 
     48 */ 
     49function apply_filters() {} 
     50 
     51/** 
     52 * @ignore 
     53 */ 
     54function get_option() {} 
     55 
     56/** 
     57 * @ignore 
     58 */ 
     59function is_lighttpd_before_150() {} 
     60 
     61/** 
     62 * @ignore 
     63 */ 
     64function add_action() {} 
     65 
     66/** 
     67 * @ignore 
     68 */ 
     69function do_action_ref_array() {} 
     70 
     71/** 
     72 * @ignore 
     73 */ 
     74function get_bloginfo() {} 
     75 
     76/** 
     77 * @ignore 
     78 */ 
     79function is_admin() {return true;} 
     80 
     81/** 
     82 * @ignore 
     83 */ 
     84function site_url() {} 
     85 
     86/** 
     87 * @ignore 
     88 */ 
     89function admin_url() {} 
     90 
     91/** 
     92 * @ignore 
     93 */ 
     94function wp_guess_url() {} 
     95 
     96require(ABSPATH . '/wp-includes/script-loader.php'); 
     97require(ABSPATH . '/wp-includes/version.php'); 
     98require(ABSPATH . '/wp-admin/includes/manifest.php'); 
     99 
     100$wp_scripts = new WP_Scripts(); 
     101wp_default_scripts($wp_scripts); 
     102 
     103$wp_styles = new WP_Styles(); 
     104wp_default_styles($wp_styles); 
     105 
     106$files = array(); 
     107$man_version = ''; 
     108 
     109$files = get_manifest($man_version); 
     110 
     111$man_version = md5($man_version); 
     112 
     113header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' ); 
     114header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); 
     115header( 'Cache-Control: no-cache, must-revalidate, max-age=0' ); 
     116header( 'Pragma: no-cache' ); 
     117header( 'Content-Type: text/cache-manifest; charset=UTF-8' );  
     118?> 
     119CACHE MANIFEST  
     120#  
     121# Version: <?php echo $man_version; ?>_20080710  
     122#  
     123<?php 
     124foreach ( $files as $file ) { 
     125        // If version is not set, just output the file 
     126        if ( !isset($file[1]) ) 
     127                echo $file[0] . "\n"; 
     128        // If ver is set but ignoreQuery is not, output file with ver tacked on 
     129        else 
     130                echo $file[0] . '?ver=' . $file[1] . "\n"; 
     131} 
     132?> 
  • wp-admin/includes/manifest.php

     
     1<?php 
     2 
     3/** 
     4 * Retrieve list of all cacheable WP files 
     5 * 
     6 * Array format: file, version (optional), bool (whether to use src and set ignoreQuery) 
     7 */ 
     8function &get_manifest(&$man_ver) { 
     9    global $wp_scripts, $wp_styles, $wp_version; 
     10 
     11    $files = array(); 
     12    foreach ( $wp_scripts->registered as $script ) { 
     13        if ( empty($script->src) ) continue; 
     14        $ver = empty($script->ver) ? $wp_version : $script->ver; 
     15        if ( 'editor' == $script->handle ) $mce_ver = $script->ver; 
     16        $src = str_replace( array( '/wp-admin/', '/wp-includes/' ), array( '', '../wp-includes/' ), $script->src ); 
     17        $files[] = array($src, $ver); 
     18        $man_ver .= $ver; 
     19    } 
     20 
     21    foreach ( $wp_styles->registered as $style ) { 
     22        if ( empty($style->src) ) continue; 
     23 
     24        $ver = empty($style->ver) ? $wp_version : $style->ver; 
     25        $src = str_replace( array( '/wp-admin/', '/wp-includes/' ), array( '', '../wp-includes/' ), $style->src ); 
     26        if ( 'colors' == $style->handle ) $src = 'css/colors-classic.css'; 
     27        $files[] = array($src, $ver); 
     28         $man_ver .= $ver; 
     29 
     30        if ( isset($style->extra['rtl']) && $style->extra['rtl'] ) { 
     31                if ( is_bool( $style->extra['rtl'] ) ) 
     32                        $rtl_href = str_replace( '.css', '-rtl.css', $src ); 
     33                else 
     34                        $rtl_href = str_replace( array( '/wp-admin/', '/wp-includes/' ), array( '', '../wp-includes/' ), $style->extra['rtl'] ); 
     35 
     36                $files[] = array($rtl_href, $ver); 
     37             $man_ver .= $ver; 
     38        } 
     39    } 
     40 
     41    $images = array( 
     42        array('images/align-center.png'), 
     43        array('images/align-left.png'), 
     44        array('images/align-none.png'), 
     45        array('images/align-right.png'), 
     46        array('images/archive-link.png'), 
     47        array('images/blue-grad.png'), 
     48        array('images/browse-happy.gif'), 
     49        array('images/bubble_bg.gif'), 
     50        array('images/bubble_bg-rtl.gif'), 
     51        array('images/button-grad.png'), 
     52        array('images/button-grad-active.png'), 
     53        array('images/comment-grey-bubble.png'), 
     54        array('images/date-button.gif'), 
     55        array('images/ed-bg.gif'), 
     56        array('images/fade-butt.png'), 
     57        array('images/fav.png'), 
     58        array('images/fav-arrow.gif'), 
     59        array('images/fav-arrow-rtl.gif'), 
     60        array('images/fav-top.png'), 
     61        array('images/generic.png'), 
     62        array('images/gray-grad.png'), 
     63        array('images/icons32.png'), 
     64        array('images/icons32-vs.png'), 
     65        array('images/list.png'), 
     66        array('images/list-vs.png'), 
     67        array('images/loading.gif'), 
     68        array('images/loading-publish.gif'), 
     69        array('images/logo.gif'), 
     70        array('images/logo-ghost.png'), 
     71        array('images/logo-login.gif'), 
     72        array('images/media-button-image.gif'), 
     73        array('images/media-button-music.gif'), 
     74        array('images/media-button-other.gif'), 
     75        array('images/media-button-video.gif'), 
     76        array('images/menu.png'), 
     77        array('images/menu-vs.png'), 
     78        array('images/menu-arrows.gif'), 
     79        array('images/menu-bits.gif'), 
     80        array('images/menu-bits-rtl.gif'), 
     81        array('images/menu-dark.gif'), 
     82        array('images/menu-dark-rtl.gif'), 
     83        array('images/no.png'), 
     84        array('images/required.gif'), 
     85        array('images/resize.gif'), 
     86        array('images/screen-options-left.gif'), 
     87        array('images/screen-options-right.gif'), 
     88        array('images/screen-options-right-up.gif'), 
     89        array('images/se.png'), 
     90        array('images/star.gif'), 
     91        array('images/toggle-arrow.gif'), 
     92        array('images/toggle-arrow-rtl.gif'), 
     93        array('images/white-grad.png'), 
     94        array('images/white-grad-active.png'), 
     95        array('images/wordpress-logo.png'), 
     96        array('images/wp-logo.gif'), 
     97        array('images/xit.gif'), 
     98        array('images/yes.png'), 
     99        array('../wp-includes/images/crystal/archive.png'), 
     100        array('../wp-includes/images/crystal/audio.png'), 
     101        array('../wp-includes/images/crystal/code.png'), 
     102        array('../wp-includes/images/crystal/default.png'), 
     103        array('../wp-includes/images/crystal/document.png'), 
     104        array('../wp-includes/images/crystal/interactive.png'), 
     105        array('../wp-includes/images/crystal/text.png'), 
     106        array('../wp-includes/images/crystal/video.png'), 
     107        array('../wp-includes/images/crystal/spreadsheet.png'), 
     108        array('../wp-includes/images/rss.png'), 
     109        array('../wp-includes/js/thickbox/loadingAnimation.gif'), 
     110        array('../wp-includes/js/thickbox/tb-close.png'), 
     111    ); 
     112 
     113    $files = array_merge($files, $images); 
     114 
     115    if ( @is_file('../wp-includes/js/tinymce/tiny_mce.js') ) : 
     116    $mce = array( 
     117        array('../wp-includes/js/tinymce/tiny_mce.js', $mce_ver, true), 
     118        array('../wp-includes/js/tinymce/langs/wp-langs-en.js', $mce_ver, true), 
     119        array('../wp-includes/js/tinymce/utils/mctabs.js', $mce_ver, true), 
     120        array('../wp-includes/js/tinymce/utils/validate.js', $mce_ver, true), 
     121        array('../wp-includes/js/tinymce/utils/form_utils.js', $mce_ver, true), 
     122        array('../wp-includes/js/tinymce/utils/editable_selects.js', $mce_ver, true), 
     123        array('../wp-includes/js/tinymce/tiny_mce_popup.js', $mce_ver, true), 
     124 
     125        array('../wp-includes/js/tinymce/themes/advanced/editor_template.js', $mce_ver, true), 
     126        array('../wp-includes/js/tinymce/themes/advanced/source_editor.htm', $mce_ver, true), 
     127        array('../wp-includes/js/tinymce/themes/advanced/anchor.htm', $mce_ver, true), 
     128        array('../wp-includes/js/tinymce/themes/advanced/image.htm', $mce_ver, true), 
     129        array('../wp-includes/js/tinymce/themes/advanced/link.htm', $mce_ver, true), 
     130        array('../wp-includes/js/tinymce/themes/advanced/color_picker.htm', $mce_ver, true), 
     131        array('../wp-includes/js/tinymce/themes/advanced/charmap.htm', $mce_ver, true), 
     132        array('../wp-includes/js/tinymce/themes/advanced/js/color_picker.js', $mce_ver, true), 
     133        array('../wp-includes/js/tinymce/themes/advanced/js/charmap.js', $mce_ver, true), 
     134        array('../wp-includes/js/tinymce/themes/advanced/js/image.js', $mce_ver, true), 
     135        array('../wp-includes/js/tinymce/themes/advanced/js/link.js', $mce_ver, true), 
     136        array('../wp-includes/js/tinymce/themes/advanced/js/source_editor.js', $mce_ver, true), 
     137        array('../wp-includes/js/tinymce/themes/advanced/js/anchor.js', $mce_ver, true), 
     138        array('../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/ui.css', $mce_ver, true), 
     139        array('../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css', $mce_ver, true), 
     140        array('../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/dialog.css', $mce_ver, true), 
     141 
     142        array('../wp-includes/js/tinymce/plugins/autosave/editor_plugin.js', $mce_ver, true), 
     143 
     144        array('../wp-includes/js/tinymce/plugins/fullscreen/editor_plugin.js', $mce_ver, true), 
     145        array('../wp-includes/js/tinymce/plugins/fullscreen/fullscreen.htm', $mce_ver, true), 
     146 
     147        array('../wp-includes/js/tinymce/plugins/inlinepopups/editor_plugin.js', $mce_ver, true), 
     148        array('../wp-includes/js/tinymce/plugins/inlinepopups/template.htm', $mce_ver, true), 
     149        array('../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css', $mce_ver, true), 
     150 
     151        array('../wp-includes/js/tinymce/plugins/media/editor_plugin.js', $mce_ver, true), 
     152        array('../wp-includes/js/tinymce/plugins/media/js/media.js', $mce_ver, true), 
     153        array('../wp-includes/js/tinymce/plugins/media/media.htm', $mce_ver, true), 
     154        array('../wp-includes/js/tinymce/plugins/media/css/content.css', $mce_ver, true), 
     155        array('../wp-includes/js/tinymce/plugins/media/css/media.css', $mce_ver, true), 
     156 
     157        array('../wp-includes/js/tinymce/plugins/paste/editor_plugin.js', $mce_ver, true), 
     158        array('../wp-includes/js/tinymce/plugins/paste/js/pasteword.js', $mce_ver, true), 
     159        array('../wp-includes/js/tinymce/plugins/paste/js/pastetext.js', $mce_ver, true), 
     160        array('../wp-includes/js/tinymce/plugins/paste/pasteword.htm', $mce_ver, true), 
     161        array('../wp-includes/js/tinymce/plugins/paste/blank.htm', $mce_ver, true), 
     162        array('../wp-includes/js/tinymce/plugins/paste/pastetext.htm', $mce_ver, true), 
     163        array('../wp-includes/js/tinymce/plugins/paste/css/pasteword.css', $mce_ver, true), 
     164        array('../wp-includes/js/tinymce/plugins/paste/css/blank.css', $mce_ver, true), 
     165 
     166        array('../wp-includes/js/tinymce/plugins/safari/editor_plugin.js', $mce_ver, true), 
     167 
     168        array('../wp-includes/js/tinymce/plugins/spellchecker/editor_plugin.js', $mce_ver, true), 
     169        array('../wp-includes/js/tinymce/plugins/spellchecker/css/content.css', $mce_ver, true), 
     170 
     171        array('../wp-includes/js/tinymce/plugins/tabfocus/editor_plugin.js', $mce_ver, true), 
     172 
     173        array('../wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js', $mce_ver, true), 
     174        array('../wp-includes/js/tinymce/plugins/wordpress/css/content.css', $mce_ver, true), 
     175 
     176        array('../wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.js', $mce_ver, true), 
     177        array('../wp-includes/js/tinymce/plugins/wpeditimage/editimage.html', $mce_ver, true), 
     178        array('../wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js', $mce_ver, true), 
     179        array('../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage.css', $mce_ver, true), 
     180        array('../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage-rtl.css', $mce_ver, true), 
     181 
     182        array('../wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.js', $mce_ver, true), 
     183 
     184        array('../wp-includes/js/tinymce/themes/advanced/img/icons.gif'), 
     185        array('../wp-includes/js/tinymce/themes/advanced/img/colorpicker.jpg'), 
     186        array('../wp-includes/js/tinymce/themes/advanced/img/fm.gif'), 
     187        array('../wp-includes/js/tinymce/themes/advanced/img/gotmoxie.png'), 
     188        array('../wp-includes/js/tinymce/themes/advanced/img/sflogo.png'), 
     189        array('../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/butt2.png'), 
     190        array('../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/fade-butt.png'), 
     191        array('../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/tabs.gif'), 
     192        array('../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/down_arrow.gif'), 
     193        array('../wp-includes/js/tinymce/themes/advanced/skins/default/img/progress.gif'), 
     194        array('../wp-includes/js/tinymce/themes/advanced/skins/default/img/menu_check.gif'), 
     195        array('../wp-includes/js/tinymce/themes/advanced/skins/default/img/menu_arrow.gif'), 
     196        array('../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/drag.gif'), 
     197        array('../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif'), 
     198        array('../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif'), 
     199        array('../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif'), 
     200        array('../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif'), 
     201        array('../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif'), 
     202        array('../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif'), 
     203        array('../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif'), 
     204        array('../wp-includes/js/tinymce/plugins/media/img/flash.gif'), 
     205        array('../wp-includes/js/tinymce/plugins/media/img/flv_player.swf'), 
     206        array('../wp-includes/js/tinymce/plugins/media/img/quicktime.gif'), 
     207        array('../wp-includes/js/tinymce/plugins/media/img/realmedia.gif'), 
     208        array('../wp-includes/js/tinymce/plugins/media/img/shockwave.gif'), 
     209        array('../wp-includes/js/tinymce/plugins/media/img/windowsmedia.gif'), 
     210        array('../wp-includes/js/tinymce/plugins/media/img/trans.gif'), 
     211        array('../wp-includes/js/tinymce/plugins/spellchecker/img/wline.gif'), 
     212        array('../wp-includes/js/tinymce/plugins/wordpress/img/more.gif'), 
     213        array('../wp-includes/js/tinymce/plugins/wordpress/img/more_bug.gif'), 
     214        array('../wp-includes/js/tinymce/plugins/wordpress/img/page.gif'), 
     215        array('../wp-includes/js/tinymce/plugins/wordpress/img/page_bug.gif'), 
     216        array('../wp-includes/js/tinymce/plugins/wordpress/img/toolbars.gif'), 
     217        array('../wp-includes/js/tinymce/plugins/wordpress/img/help.gif'), 
     218        array('../wp-includes/js/tinymce/plugins/wordpress/img/image.gif'), 
     219        array('../wp-includes/js/tinymce/plugins/wordpress/img/media.gif'), 
     220        array('../wp-includes/js/tinymce/plugins/wordpress/img/video.gif'), 
     221        array('../wp-includes/js/tinymce/plugins/wordpress/img/audio.gif'), 
     222        array('../wp-includes/js/tinymce/plugins/wpeditimage/img/image.png'), 
     223        array('../wp-includes/js/tinymce/plugins/wpeditimage/img/delete.png'), 
     224        array('../wp-includes/js/tinymce/plugins/wpgallery/img/delete.png'), 
     225        array('../wp-includes/js/tinymce/plugins/wpgallery/img/edit.png'), 
     226        array('../wp-includes/js/tinymce/plugins/wpgallery/img/gallery.png') 
     227    ); 
     228    $files = array_merge($files, $mce); 
     229    endif; 
     230 
     231    return $files; 
     232} 
     233 No newline at end of file 
  • wp-admin/gears-manifest.php

     
    9595 
    9696require(ABSPATH . '/wp-includes/script-loader.php'); 
    9797require(ABSPATH . '/wp-includes/version.php'); 
     98require(ABSPATH . '/wp-admin/includes/manifest.php'); 
    9899 
    99100$wp_scripts = new WP_Scripts(); 
    100101wp_default_scripts($wp_scripts); 
     
    102103$wp_styles = new WP_Styles(); 
    103104wp_default_styles($wp_styles); 
    104105 
    105 $defaults = $man_version = ''; 
    106 foreach ( $wp_scripts->registered as $script ) { 
    107         if ( empty($script->src) ) continue; 
    108         $ver = empty($script->ver) ? $wp_version : $script->ver; 
    109         if ( 'editor' == $script->handle ) $mce_ver = $script->ver; 
    110         $src = str_replace( array( '/wp-admin/', '/wp-includes/' ), array( '', '../wp-includes/' ), $script->src ); 
    111         $defaults .= '{ "url" : "' . $src . '?ver=' . $ver . '" },' . "\n"; 
    112         $man_version .= $ver; 
    113 } 
     106$files = array(); 
     107$man_version = ''; 
    114108 
    115 foreach ( $wp_styles->registered as $style ) { 
    116         if ( empty($style->src) ) continue; 
     109$files = get_manifest($man_version); 
    117110 
    118         $ver = empty($style->ver) ? $wp_version : $style->ver; 
    119         $src = str_replace( array( '/wp-admin/', '/wp-includes/' ), array( '', '../wp-includes/' ), $style->src ); 
    120         if ( 'colors' == $style->handle ) $src = 'css/colors-classic.css'; 
    121         $defaults .= '{ "url" : "' . $src . '?ver=' . $ver . '" },' . "\n"; 
    122  
    123         if ( isset($style->extra['rtl']) && $style->extra['rtl'] ) { 
    124                 if ( is_bool( $style->extra['rtl'] ) ) 
    125                         $rtl_href = str_replace( '.css', '-rtl.css', $src ); 
    126                 else 
    127                         $rtl_href = str_replace( array( '/wp-admin/', '/wp-includes/' ), array( '', '../wp-includes/' ), $style->extra['rtl'] ); 
    128  
    129                 $defaults .= '{ "url" : "' . $rtl_href . '?ver=' . $ver . '" },' . "\n"; 
    130         } 
    131         $man_version .= $ver; 
    132 } 
    133  
    134111$man_version = md5($man_version); 
    135112 
    136113header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' ); 
     
    143120"betaManifestVersion" : 1, 
    144121"version" : "<?php echo $man_version; ?>_20081201", 
    145122"entries" : [ 
    146 <?php echo $defaults; ?> 
    147  
    148 { "url" : "images/align-center.png" }, 
    149 { "url" : "images/align-left.png" }, 
    150 { "url" : "images/align-none.png" }, 
    151 { "url" : "images/align-right.png" }, 
    152 { "url" : "images/archive-link.png" }, 
    153 { "url" : "images/blue-grad.png" }, 
    154 { "url" : "images/browse-happy.gif" }, 
    155 { "url" : "images/bubble_bg.gif" }, 
    156 { "url" : "images/bubble_bg-rtl.gif" }, 
    157 { "url" : "images/button-grad.png" }, 
    158 { "url" : "images/button-grad-active.png" }, 
    159 { "url" : "images/comment-grey-bubble.png" }, 
    160 { "url" : "images/date-button.gif" }, 
    161 { "url" : "images/ed-bg.gif" }, 
    162 { "url" : "images/fade-butt.png" }, 
    163 { "url" : "images/fav.png" }, 
    164 { "url" : "images/fav-arrow.gif" }, 
    165 { "url" : "images/fav-arrow-rtl.gif" }, 
    166 { "url" : "images/fav-top.png" }, 
    167 { "url" : "images/generic.png" }, 
    168 { "url" : "images/gray-grad.png" }, 
    169 { "url" : "images/icons32.png" }, 
    170 { "url" : "images/icons32-vs.png" }, 
    171 { "url" : "images/list.png" }, 
    172 { "url" : "images/list-vs.png" }, 
    173 { "url" : "images/loading.gif" }, 
    174 { "url" : "images/loading-publish.gif" }, 
    175 { "url" : "images/logo.gif" }, 
    176 { "url" : "images/logo-ghost.png" }, 
    177 { "url" : "images/logo-login.gif" }, 
    178 { "url" : "images/media-button-image.gif" }, 
    179 { "url" : "images/media-button-music.gif" }, 
    180 { "url" : "images/media-button-other.gif" }, 
    181 { "url" : "images/media-button-video.gif" }, 
    182 { "url" : "images/menu.png" }, 
    183 { "url" : "images/menu-vs.png" }, 
    184 { "url" : "images/menu-arrows.gif" }, 
    185 { "url" : "images/menu-bits.gif" }, 
    186 { "url" : "images/menu-bits-rtl.gif" }, 
    187 { "url" : "images/menu-dark.gif" }, 
    188 { "url" : "images/menu-dark-rtl.gif" }, 
    189 { "url" : "images/no.png" }, 
    190 { "url" : "images/required.gif" }, 
    191 { "url" : "images/resize.gif" }, 
    192 { "url" : "images/screen-options-left.gif" }, 
    193 { "url" : "images/screen-options-right.gif" }, 
    194 { "url" : "images/screen-options-right-up.gif" }, 
    195 { "url" : "images/se.png" }, 
    196 { "url" : "images/star.gif" }, 
    197 { "url" : "images/toggle-arrow.gif" }, 
    198 { "url" : "images/toggle-arrow-rtl.gif" }, 
    199 { "url" : "images/white-grad.png" }, 
    200 { "url" : "images/white-grad-active.png" }, 
    201 { "url" : "images/wordpress-logo.png" }, 
    202 { "url" : "images/wp-logo.gif" }, 
    203 { "url" : "images/xit.gif" }, 
    204 { "url" : "images/yes.png" }, 
    205  
    206 <?php if ( @is_file('../wp-includes/js/tinymce/tiny_mce.js') ) { ?> 
    207 { "url" : "../wp-includes/js/tinymce/tiny_mce.js", "src" : "../wp-includes/js/tinymce/tiny_mce.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    208 { "url" : "../wp-includes/js/tinymce/langs/wp-langs-en.js", "src" : "../wp-includes/js/tinymce/langs/wp-langs-en.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    209 { "url" : "../wp-includes/js/tinymce/utils/mctabs.js", "src" : "../wp-includes/js/tinymce/utils/mctabs.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    210 { "url" : "../wp-includes/js/tinymce/utils/validate.js", "src" : "../wp-includes/js/tinymce/utils/validate.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    211 { "url" : "../wp-includes/js/tinymce/utils/form_utils.js", "src" : "../wp-includes/js/tinymce/utils/form_utils.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    212 { "url" : "../wp-includes/js/tinymce/utils/editable_selects.js", "src" : "../wp-includes/js/tinymce/utils/editable_selects.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    213 { "url" : "../wp-includes/js/tinymce/tiny_mce_popup.js", "src" : "../wp-includes/js/tinymce/tiny_mce_popup.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    214  
    215 { "url" : "../wp-includes/js/tinymce/themes/advanced/editor_template.js", "src" : "../wp-includes/js/tinymce/themes/advanced/editor_template.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    216 { "url" : "../wp-includes/js/tinymce/themes/advanced/source_editor.htm", "src" : "../wp-includes/js/tinymce/themes/advanced/source_editor.htm?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    217 { "url" : "../wp-includes/js/tinymce/themes/advanced/anchor.htm", "src" : "../wp-includes/js/tinymce/themes/advanced/anchor.htm?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    218 { "url" : "../wp-includes/js/tinymce/themes/advanced/image.htm", "src" : "../wp-includes/js/tinymce/themes/advanced/image.htm?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    219 { "url" : "../wp-includes/js/tinymce/themes/advanced/link.htm", "src" : "../wp-includes/js/tinymce/themes/advanced/link.htm?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    220 { "url" : "../wp-includes/js/tinymce/themes/advanced/color_picker.htm", "src" : "../wp-includes/js/tinymce/themes/advanced/color_picker.htm?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    221 { "url" : "../wp-includes/js/tinymce/themes/advanced/charmap.htm", "src" : "../wp-includes/js/tinymce/themes/advanced/charmap.htm?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    222 { "url" : "../wp-includes/js/tinymce/themes/advanced/js/color_picker.js", "src" : "../wp-includes/js/tinymce/themes/advanced/js/color_picker.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    223 { "url" : "../wp-includes/js/tinymce/themes/advanced/js/charmap.js", "src" : "../wp-includes/js/tinymce/themes/advanced/js/charmap.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    224 { "url" : "../wp-includes/js/tinymce/themes/advanced/js/image.js", "src" : "../wp-includes/js/tinymce/themes/advanced/js/image.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    225 { "url" : "../wp-includes/js/tinymce/themes/advanced/js/link.js", "src" : "../wp-includes/js/tinymce/themes/advanced/js/link.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    226 { "url" : "../wp-includes/js/tinymce/themes/advanced/js/source_editor.js", "src" : "../wp-includes/js/tinymce/themes/advanced/js/source_editor.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    227 { "url" : "../wp-includes/js/tinymce/themes/advanced/js/anchor.js", "src" : "../wp-includes/js/tinymce/themes/advanced/js/anchor.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    228 { "url" : "../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/ui.css", "src" : "../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/ui.css?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    229 { "url" : "../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css", "src" : "../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    230 { "url" : "../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/dialog.css", "src" : "../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/dialog.css?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    231  
    232 { "url" : "../wp-includes/js/tinymce/plugins/autosave/editor_plugin.js", "src" : "../wp-includes/js/tinymce/plugins/autosave/editor_plugin.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    233  
    234 { "url" : "../wp-includes/js/tinymce/plugins/fullscreen/editor_plugin.js", "src" : "../wp-includes/js/tinymce/plugins/fullscreen/editor_plugin.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    235 { "url" : "../wp-includes/js/tinymce/plugins/fullscreen/fullscreen.htm", "src" : "../wp-includes/js/tinymce/plugins/fullscreen/fullscreen.htm?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    236  
    237 { "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/editor_plugin.js", "src" : "../wp-includes/js/tinymce/plugins/inlinepopups/editor_plugin.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    238 { "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/template.htm", "src" : "../wp-includes/js/tinymce/plugins/inlinepopups/template.htm?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    239 { "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css", "src" : "../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    240  
    241 { "url" : "../wp-includes/js/tinymce/plugins/media/editor_plugin.js", "src" : "../wp-includes/js/tinymce/plugins/media/editor_plugin.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    242 { "url" : "../wp-includes/js/tinymce/plugins/media/js/media.js", "src" : "../wp-includes/js/tinymce/plugins/media/js/media.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    243 { "url" : "../wp-includes/js/tinymce/plugins/media/media.htm", "src" : "../wp-includes/js/tinymce/plugins/media/media.htm?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    244 { "url" : "../wp-includes/js/tinymce/plugins/media/css/content.css", "src" : "../wp-includes/js/tinymce/plugins/media/css/content.css?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    245 { "url" : "../wp-includes/js/tinymce/plugins/media/css/media.css", "src" : "../wp-includes/js/tinymce/plugins/media/css/media.css?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    246  
    247 { "url" : "../wp-includes/js/tinymce/plugins/paste/editor_plugin.js", "src" : "../wp-includes/js/tinymce/plugins/paste/editor_plugin.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    248 { "url" : "../wp-includes/js/tinymce/plugins/paste/js/pasteword.js", "src" : "../wp-includes/js/tinymce/plugins/paste/js/pasteword.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    249 { "url" : "../wp-includes/js/tinymce/plugins/paste/js/pastetext.js", "src" : "../wp-includes/js/tinymce/plugins/paste/js/pastetext.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    250 { "url" : "../wp-includes/js/tinymce/plugins/paste/pasteword.htm", "src" : "../wp-includes/js/tinymce/plugins/paste/pasteword.htm?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    251 { "url" : "../wp-includes/js/tinymce/plugins/paste/blank.htm", "src" : "../wp-includes/js/tinymce/plugins/paste/blank.htm?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    252 { "url" : "../wp-includes/js/tinymce/plugins/paste/pastetext.htm", "src" : "../wp-includes/js/tinymce/plugins/paste/pastetext.htm?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    253 { "url" : "../wp-includes/js/tinymce/plugins/paste/css/pasteword.css", "src" : "../wp-includes/js/tinymce/plugins/paste/css/pasteword.css?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    254 { "url" : "../wp-includes/js/tinymce/plugins/paste/css/blank.css", "src" : "../wp-includes/js/tinymce/plugins/paste/css/blank.css?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    255  
    256 { "url" : "../wp-includes/js/tinymce/plugins/safari/editor_plugin.js", "src" : "../wp-includes/js/tinymce/plugins/safari/editor_plugin.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    257  
    258 { "url" : "../wp-includes/js/tinymce/plugins/spellchecker/editor_plugin.js", "src" : "../wp-includes/js/tinymce/plugins/spellchecker/editor_plugin.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    259 { "url" : "../wp-includes/js/tinymce/plugins/spellchecker/css/content.css", "src" : "../wp-includes/js/tinymce/plugins/spellchecker/css/content.css?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    260  
    261 { "url" : "../wp-includes/js/tinymce/plugins/tabfocus/editor_plugin.js", "src" : "../wp-includes/js/tinymce/plugins/tabfocus/editor_plugin.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    262  
    263 { "url" : "../wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js", "src" : "../wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    264 { "url" : "../wp-includes/js/tinymce/plugins/wordpress/css/content.css", "src" : "../wp-includes/js/tinymce/plugins/wordpress/css/content.css?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    265  
    266 { "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.js", "src" : "../wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    267 { "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/editimage.html", "src" : "../wp-includes/js/tinymce/plugins/wpeditimage/editimage.html?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    268 { "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js", "src" : "../wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    269 { "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage.css", "src" : "../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage.css?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    270 { "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage-rtl.css", "src" : "../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage-rtl.css?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    271  
    272 { "url" : "../wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.js", "src" : "../wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true }, 
    273  
    274 { "url" : "../wp-includes/js/tinymce/themes/advanced/img/icons.gif" }, 
    275 { "url" : "../wp-includes/js/tinymce/themes/advanced/img/colorpicker.jpg" }, 
    276 { "url" : "../wp-includes/js/tinymce/themes/advanced/img/fm.gif" }, 
    277 { "url" : "../wp-includes/js/tinymce/themes/advanced/img/gotmoxie.png" }, 
    278 { "url" : "../wp-includes/js/tinymce/themes/advanced/img/sflogo.png" }, 
    279 { "url" : "../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/butt2.png" }, 
    280 { "url" : "../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/fade-butt.png" }, 
    281 { "url" : "../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/tabs.gif" }, 
    282 { "url" : "../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/down_arrow.gif" }, 
    283 { "url" : "../wp-includes/js/tinymce/themes/advanced/skins/default/img/progress.gif" }, 
    284 { "url" : "../wp-includes/js/tinymce/themes/advanced/skins/default/img/menu_check.gif" }, 
    285 { "url" : "../wp-includes/js/tinymce/themes/advanced/skins/default/img/menu_arrow.gif" }, 
    286 { "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/drag.gif" }, 
    287 { "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif" }, 
    288 { "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif" }, 
    289 { "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif" }, 
    290 { "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif" }, 
    291 { "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif" }, 
    292 { "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif" }, 
    293 { "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif" }, 
    294 { "url" : "../wp-includes/js/tinymce/plugins/media/img/flash.gif" }, 
    295 { "url" : "../wp-includes/js/tinymce/plugins/media/img/flv_player.swf" }, 
    296 { "url" : "../wp-includes/js/tinymce/plugins/media/img/quicktime.gif" }, 
    297 { "url" : "../wp-includes/js/tinymce/plugins/media/img/realmedia.gif" }, 
    298 { "url" : "../wp-includes/js/tinymce/plugins/media/img/shockwave.gif" }, 
    299 { "url" : "../wp-includes/js/tinymce/plugins/media/img/windowsmedia.gif" }, 
    300 { "url" : "../wp-includes/js/tinymce/plugins/media/img/trans.gif" }, 
    301 { "url" : "../wp-includes/js/tinymce/plugins/spellchecker/img/wline.gif" }, 
    302 { "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/more.gif" }, 
    303 { "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/more_bug.gif" }, 
    304 { "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/page.gif" }, 
    305 { "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/page_bug.gif" }, 
    306 { "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/toolbars.gif" }, 
    307 { "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/help.gif" }, 
    308 { "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/image.gif" }, 
    309 { "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/media.gif" }, 
    310 { "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/video.gif" }, 
    311 { "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/audio.gif" }, 
    312 { "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/img/image.png" }, 
    313 { "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/img/delete.png" }, 
    314 { "url" : "../wp-includes/js/tinymce/plugins/wpgallery/img/delete.png" }, 
    315 { "url" : "../wp-includes/js/tinymce/plugins/wpgallery/img/edit.png" }, 
    316 { "url" : "../wp-includes/js/tinymce/plugins/wpgallery/img/gallery.png" }, 
    317 <?php } ?> 
    318  
    319 { "url" : "../wp-includes/images/crystal/archive.png" }, 
    320 { "url" : "../wp-includes/images/crystal/audio.png" }, 
    321 { "url" : "../wp-includes/images/crystal/code.png" }, 
    322 { "url" : "../wp-includes/images/crystal/default.png" }, 
    323 { "url" : "../wp-includes/images/crystal/document.png" }, 
    324 { "url" : "../wp-includes/images/crystal/interactive.png" }, 
    325 { "url" : "../wp-includes/images/crystal/text.png" }, 
    326 { "url" : "../wp-includes/images/crystal/video.png" }, 
    327 { "url" : "../wp-includes/images/crystal/spreadsheet.png" }, 
    328 { "url" : "../wp-includes/images/rss.png" }, 
    329 { "url" : "../wp-includes/js/thickbox/loadingAnimation.gif" }, 
    330 { "url" : "../wp-includes/js/thickbox/tb-close.png" } 
     123<?php 
     124foreach ( $files as $file ) { 
     125        // If version is not set, just output the file 
     126        if ( !isset($file[1]) ) 
     127                echo '{ "url" : "' . $file[0] . '" },' . "\n"; 
     128        // If ver is set but ignoreQuery is not, output file with ver tacked on 
     129        elseif ( !isset($file[2]) ) 
     130                echo '{ "url" : "' . $file[0] . '?ver=' . $file[1] . '" },' . "\n"; 
     131        // Output url, src, and ignoreQuery 
     132        else 
     133                echo '{ "url" : "' . $file[0] . '", "src" : "' . $file[0] . '?ver=' . $file[1] . '", "ignoreQuery" : true },' . "\n"; 
     134} 
     135?> 
    331136]}