Advertisement
Guest User

Combine Js

a guest
Aug 6th, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.60 KB | None | 0 0
  1. <?php
  2. /*
  3.  * combine js
  4.  */
  5. define('WP_USE_THEMES', false);
  6. if (file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'wp-blog-header.php')) {
  7.     require($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'wp-blog-header.php');
  8. } else {
  9.     while (! file_exists('wp-blog-header.php') )
  10.     chdir('..');
  11.     require ("wp-blog-header.php");
  12. }
  13. // Exit if accessed directly without wp-blog-header.php
  14. if ( !defined( 'ABSPATH' ) ) exit;
  15.  
  16. status_header(200);
  17. header('Content-type: text/javascript');
  18. header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + 3600 * 24));
  19.  
  20. do_action("firmasite_combine_js");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement