+ add getWebRoot function.
This commit is contained in:
@@ -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__)));
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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
5
bin/php/info.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
function getWebRoot()
|
||||
{
|
||||
return '/';
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
include 'info.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . "/config/my.php";
|
||||
|
||||
if($config->requestType == 'PATH_INFO')
|
||||
|
||||
Reference in New Issue
Block a user