本文整理匯總了PHP中Flyspray::absoluteURI方法的典型用法代碼示例。如果您正苦於以下問題:PHP Flyspray::absoluteURI方法的具體用法?PHP Flyspray::absoluteURI怎麽用?PHP Flyspray::absoluteURI使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Flyspray
的用法示例。
在下文中一共展示了Flyspray::absoluteURI方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: define
define('BASEDIR', dirname(__FILE__));
define('APPLICATION_PATH', dirname(BASEDIR));
define('OBJECTS_PATH', APPLICATION_PATH . '/includes');
define('TEMPLATE_FOLDER', BASEDIR . '/templates/');
$conf['general']['syntax_plugin'] = '';
require_once OBJECTS_PATH . '/fix.inc.php';
require_once OBJECTS_PATH . '/class.gpc.php';
require_once OBJECTS_PATH . '/class.flyspray.php';
require_once OBJECTS_PATH . '/class.tpl.php';
require_once OBJECTS_PATH . '/constants.inc.php';
require_once OBJECTS_PATH . '/class.database.php';
@(require_once OBJECTS_PATH . '/class.tpl.php');
// ---------------------------------------------------------------------
// Application Web locations
// ---------------------------------------------------------------------
define('APPLICATION_SETUP_INDEX', Flyspray::absoluteURI());
class Setup extends Flyspray
{
var $mPhpRequired;
var $mSupportedDatabases;
var $mAvailableDatabases;
var $mProceed;
var $mPhpVersionStatus;
var $mDatabaseStatus;
var $xmlStatus;
var $mConfigText;
var $mHtaccessText;
var $mWriteStatus;
var $mDbConnection;
var $mProductName;
/**
示例2: dirname
// Change this line if you move flyspray.conf.php elsewhere
$conf = @parse_ini_file(Flyspray::get_config_path(), true);
// $baseurl
if (isset($conf['general']['force_baseurl']) && $conf['general']['force_baseurl'] != '') {
$baseurl = $conf['general']['force_baseurl'];
} else {
if (!isset($webdir)) {
$webdir = dirname($_SERVER['SCRIPT_NAME']);
if (!$webdir) {
$webdir = dirname(htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'utf-8'));
}
if (substr($webdir, -9) == 'index.php') {
$webdir = dirname($webdir);
}
}
$baseurl = rtrim(Flyspray::absoluteURI($webdir), '/\\') . '/';
}
define('NOTIFY_TASK_OPENED', 1);
define('NOTIFY_TASK_CHANGED', 2);
define('NOTIFY_TASK_CLOSED', 3);
define('NOTIFY_TASK_REOPENED', 4);
define('NOTIFY_DEP_ADDED', 5);
define('NOTIFY_DEP_REMOVED', 6);
define('NOTIFY_COMMENT_ADDED', 7);
define('NOTIFY_REL_ADDED', 9);
define('NOTIFY_OWNERSHIP', 10);
define('NOTIFY_CONFIRMATION', 11);
define('NOTIFY_PM_REQUEST', 12);
define('NOTIFY_PM_DENY_REQUEST', 13);
define('NOTIFY_NEW_ASSIGNEE', 14);
define('NOTIFY_REV_DEP', 15);