cvs: pearweb /include pear-prepend.php

From: Date: Tue, 01 Mar 2005 16:43:28 +0000
Subject: cvs: pearweb /include pear-prepend.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-29953@lists.php.net to get a copy of this message
mj Tue Mar 1 11:43:28 2005 EDT Modified files: /pearweb/include pear-prepend.php Log: * Moved the including of the database code behind the inclusion point for the format specific files. This way the heavy code does not get included when the page is pulled from the cache. http://cvs.php.net/diff.php/pearweb/include/pear-prepend.php?r1=1.54&r2=1.55&ty=u Index: pearweb/include/pear-prepend.php diff -u pearweb/include/pear-prepend.php:1.54 pearweb/include/pear-prepend.php:1.55 --- pearweb/include/pear-prepend.php:1.54 Wed Feb 23 10:59:34 2005 +++ pearweb/include/pear-prepend.php Tue Mar 1 11:43:28 2005 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: pear-prepend.php,v 1.54 2005/02/23 15:59:34 cellog Exp $ + $Id: pear-prepend.php,v 1.55 2005/03/01 16:43:28 mj Exp $ */ require_once "pear-config.php"; if ($_SERVER['SERVER_NAME'] != PEAR_CHANNELNAME) { @@ -26,10 +26,7 @@ define('DEVBOX', false); } -require_once "DB.php"; -require_once "DB/storage.php"; -require_once "pear-auth.php"; -require_once "pear-database.php"; +require_once "PEAR.php"; if (empty($format)) { if (basename($_SERVER['PHP_SELF']) == "xmlrpc.php") { @@ -43,6 +40,11 @@ include_once "pear-format-$format.php"; +require_once "DB.php"; +require_once "DB/storage.php"; +require_once "pear-auth.php"; +require_once "pear-database.php"; + function get($name) { if (!empty($_GET[$name])) {

« previous php.pear.cvs (#29953) next »