Changeset 130 for trunk/lib/action.php
- Timestamp:
- 04/20/08 13:30:00 (7 months ago)
- Files:
-
- 1 modified
-
trunk/lib/action.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/action.php
r124 r130 2 2 // action.php -- perform an action that renders an output to the browser 3 3 4 //force browser to disable caching to make action.php dynamic 5 header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 6 header("Expires: Mon, 22 Jun 2007 05:00:00 GMT"); // Date in the past 4 //force browser to disable caching to make action.php work as an ajax request 5 header("Expires: Fri, 22 Jun 2007 05:00:00 GMT"); // Date in the past 6 header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); // always modified 7 // HTTP/1.1 8 header('Cache-Control: no-store, no-cache, must-revalidate'); 9 header('Cache-Control: post-check=0, pre-check=0', false); 7 10 //#debug... 8 11 //error_reporting(E_ALL | E_STRICT); //debug, E_STRICT=php5 only 9 12 //ini_set('display_errors','On'); //debug 13 //echo "\n"; //debug 10 14 11 15 //#check for required files and include them … … 20 24 include_once(ABSPATH.'wp-config.php'); 21 25 } else { 22 echo '<span style="font-color:red;">Action.php '.__( "ERROR: file not found","wassup").', '.ABSPATH.'wp-config.php</span>';26 echo '<span style="font-color:red;">Action.php '.__('ERROR: file not found','wassup').', '.ABSPATH.'wp-config.php</span>'; 23 27 exit(); 24 28 }
