comparison contrib/web/php-admin/htdocs/index.php @ 759:73c8715367fb

Better techniques for locating support files in php-admin - existing installations will need to have their conf/config.php altered to set the variable $confdir
author Ben Schmidt
date Wed, 06 Oct 2010 10:35:04 +1100
parents 6d354f3a8d90
children 331115b58da4
comparison
equal deleted inserted replaced
752:c02582939bbc 759:73c8715367fb
24 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 24 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 25 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
26 * IN THE SOFTWARE. 26 * IN THE SOFTWARE.
27 */ 27 */
28 28
29 require("class.rFastTemplate.php"); 29 require(dirname(dirname(__FILE__))."/conf/config.php");
30 require("../conf/config.php"); 30 require(dirname(__FILE__)."/class.rFastTemplate.php");
31 31
32 $tpl = new rFastTemplate($templatedir); 32 $tpl = new rFastTemplate($templatedir);
33 33
34 $tpl->define(array("main" => "index.html")); 34 $tpl->define(array("main" => "index.html"));
35 35