| [ PHPXref.com ] | [ Generated: Sun Aug 30 09:19:12 2009 ] | [ Textpattern 4.2.0 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 $HeadURL: https://textpattern.googlecode.com/svn/releases/4.2.0/source/index.php $ 4 $LastChangedRevision: 3189 $ 5 */ 6 7 // Make sure we display all errors that occur during initialization 8 error_reporting(E_ALL); 9 @ini_set("display_errors","1"); 10 11 if (@ini_get('register_globals')) 12 foreach ( $_REQUEST as $name => $value ) 13 unset($$name); 14 define("txpinterface", "public"); 15 16 if (!defined('txpath')) 17 { 18 define("txpath", dirname(__FILE__).'/textpattern'); 19 } 20 21 // save server path to site root 22 if (!isset($here)) 23 { 24 $here = dirname(__FILE__); 25 } 26 27 // pull in config unless configuration data has already been provided (multi-headed use). 28 if (!isset($txpcfg['table_prefix'])) 29 { 30 // Use buffering to ensure bogus whitespace in config.php is ignored 31 ob_start(NULL, 2048); 32 include txpath.'/config.php'; 33 ob_end_clean(); 34 } 35 36 include txpath.'/lib/constants.php'; 37 include txpath.'/lib/txplib_misc.php'; 38 if (!isset($txpcfg['table_prefix'])) 39 { 40 txp_status_header('503 Service Unavailable'); 41 exit('config.php is missing or corrupt. To install Textpattern, visit <a href="./textpattern/setup/">textpattern/setup/</a>'); 42 } 43 44 include txpath.'/publish.php'; 45 textpattern(); 46 47 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |