+ add dailyreminder to zentao.

This commit is contained in:
wangyidong
2013-02-20 01:39:44 +00:00
parent 634d78b3bb
commit 58132a7e2a
8 changed files with 236 additions and 4 deletions
+7 -1
View File
@@ -541,7 +541,13 @@ function isLocalIP()
*/
function getWebRoot()
{
return substr($_SERVER['SCRIPT_NAME'], 0, (strrpos($_SERVER['SCRIPT_NAME'], '/') + 1));
$path = $_SERVER['SCRIPT_NAME'];
if(defined('IN_SHELL'))
{
$url = parse_url($_SERVER['argv'][1]);
$path = $url['path'];
}
return substr($path, 0, (strrpos($path, '/') + 1));
}
/**