+ add getWebRoot function.

This commit is contained in:
zhujinyong
2013-01-11 03:08:19 +00:00
parent 7b63bcbf61
commit af83f26ba3
5 changed files with 9 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
<?php
/* Backup the db. */
error_reporting(E_ALL ^ E_NOTICE);
include 'info.php';
/* Include my.php and pclzip class. */
$pmsRoot = dirname(dirname(dirname(__FILE__)));

View File

@@ -1,5 +1,6 @@
<?php
error_reporting(E_ERROR);
include 'info.php';
include dirname(dirname(dirname(__FILE__))) . "/config/my.php";
if($config->requestType == 'PATH_INFO')

View File

@@ -1,6 +1,7 @@
#!/usr/bin/env php
<?php
error_reporting(E_ERROR);
include 'info.php';
$pmsRoot = dirname(dirname(dirname(__FILE__)));
include $pmsRoot . '/config/my.php';
include $pmsRoot . '/lib/api/api.class.php';

5
bin/php/info.php Normal file
View File

@@ -0,0 +1,5 @@
<?php
function getWebRoot()
{
return '/';
}

View File

@@ -1,4 +1,5 @@
<?php
include 'info.php';
include dirname(dirname(dirname(__FILE__))) . "/config/my.php";
if($config->requestType == 'PATH_INFO')