本文整理匯總了PHP中Install::getFullApplicationVersion方法的典型用法代碼示例。如果您正苦於以下問題:PHP Install::getFullApplicationVersion方法的具體用法?PHP Install::getFullApplicationVersion怎麽用?PHP Install::getFullApplicationVersion使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Install
的用法示例。
在下文中一共展示了Install::getFullApplicationVersion方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: phpinfo
$action = Misc::findSubmitButton();
switch ($action) {
case 'phpinfo':
phpinfo();
exit;
break;
case 'back':
Debug::Text('Back', __FILE__, __LINE__, __METHOD__, 10);
Redirect::Page(URLBuilder::getURL(NULL, 'install.php'));
break;
case 'next':
Debug::Text('Next', __FILE__, __LINE__, __METHOD__, 10);
if ($external_installer == 1) {
Redirect::Page(URLBuilder::getURL(array('external_installer' => $external_installer), 'DatabaseSchema.php'));
} else {
Redirect::Page(URLBuilder::getURL(NULL, 'DatabaseConfig.php'));
}
break;
default:
break;
}
$handle = @fopen('http://www.timetrex.com/' . URLBuilder::getURL(array_merge(array('v' => $install_obj->getFullApplicationVersion(), 'page' => 'require'), $install_obj->getFailedRequirements()), 'pre_install.php'), "r");
@fclose($handle);
$check_all_requirements = $install_obj->checkAllRequirements();
if ($external_installer == 1 and $check_all_requirements == 0 and $install_obj->checkTimeTrexVersion() == 0) {
//Using external installer and there is no missing requirements, automatically send to next page.
Redirect::Page(URLBuilder::getURL(array('external_installer' => $external_installer, 'action:next' => 'next'), $_SERVER['SCRIPT_NAME']));
}
$smarty->assign_by_ref('install_obj', $install_obj);
$smarty->assign_by_ref('external_installer', $external_installer);
$smarty->display('install/Requirements.tpl');
示例2: SystemSettingListFactory
} else {
$obj = new SystemSettingListFactory();
}
$obj->setName('anonymous_update_notify');
if (isset($data['anonymous_update_notify']) and $data['anonymous_update_notify'] == 1) {
$obj->setValue(1);
} elseif (getTTProductEdition() == TT_PRODUCT_PROFESSIONAL) {
$obj->setValue(0);
} else {
$obj->setValue(0);
}
if ($obj->isValid()) {
$obj->Save();
}
$ttsc = new TimeTrexSoapClient();
$ttsc->saveRegistrationKey();
$handle = fopen('http://www.timetrex.com/' . URLBuilder::getURL(array('v' => $install_obj->getFullApplicationVersion(), 'page' => 'system_setting', 'update_notify' => (int) $data['update_notify'], 'anonymous_update_notify' => (int) $data['anonymous_update_notify']), 'pre_install.php'), "r");
fclose($handle);
Redirect::Page(URLBuilder::getURL(array('external_installer' => $external_installer), 'Company.php'));
break;
default:
Debug::Text('Request URI: ' . $_SERVER['REQUEST_URI'], __FILE__, __LINE__, __METHOD__, 10);
$data = array('host_name' => $_SERVER['HTTP_HOST'], 'base_url' => str_replace('/install', '', dirname($_SERVER['REQUEST_URI'])), 'log_dir' => $config_vars['path']['log'], 'storage_dir' => $config_vars['path']['storage'], 'cache_dir' => $config_vars['cache']['dir']);
$smarty->assign_by_ref('data', $data);
break;
}
$handle = @fopen('http://www.timetrex.com/' . URLBuilder::getURL(array('v' => $install_obj->getFullApplicationVersion(), 'page' => 'system_setting'), 'pre_install.php'), "r");
@fclose($handle);
$smarty->assign_by_ref('install_obj', $install_obj);
$smarty->assign_by_ref('external_installer', $external_installer);
$smarty->display('install/SystemSettings.tpl');
示例3: array
}
//Test priv user.
if ($data['priv_user'] != '' and $data['priv_password'] != '') {
Debug::Text('Testing connection as priv user', __FILE__, __LINE__, __METHOD__, 10);
$test_priv_connection = $install_obj->setNewDatabaseConnection($data['final_type'], $data['final_host'], $data['priv_user'], $data['priv_password'], '');
} else {
$test_priv_connection = TRUE;
}
} else {
$test_connection = NULL;
$test_priv_connection = NULL;
}
$data['test_connection'] = $test_connection;
$data['test_priv_connection'] = $test_priv_connection;
$data['database_engine'] = $database_engine;
//Get DB settings from INI file.
if ($action != 'test_connection') {
$data = array('type' => $config_vars['database']['type'], 'host' => $config_vars['database']['host'], 'database_name' => $config_vars['database']['database_name'], 'user' => $config_vars['database']['user'], 'password' => $config_vars['database']['password'], 'test_connection' => $test_connection, 'test_priv_connection' => $test_priv_connection, 'database_engine' => $database_engine);
}
$data['type_options'] = $install_obj->getDatabaseTypeArray();
$smarty->assign_by_ref('data', $data);
break;
}
if (!isset($data['priv_user'])) {
$data['priv_user'] = NULL;
}
$handle = @fopen('http://www.timetrex.com/' . URLBuilder::getURL(array('v' => $install_obj->getFullApplicationVersion(), 'page' => 'database_config', 'priv_user' => $data['priv_user']), 'pre_install.php'), "r");
@fclose($handle);
$smarty->assign_by_ref('install_obj', $install_obj);
$smarty->assign_by_ref('external_installer', $external_installer);
$smarty->display('install/DatabaseConfig.tpl');
示例4: SystemSettingListFactory
$sslf->getByName('valid_install_requirements');
if ($sslf->getRecordCount() == 1) {
$obj = $sslf->getCurrent();
} else {
$obj = new SystemSettingListFactory();
}
$obj->setName('valid_install_requirements');
$obj->setValue(1);
if ($obj->isValid()) {
$obj->Save();
}
$action = Misc::findSubmitButton();
switch ($action) {
case 'back':
Debug::Text('Back', __FILE__, __LINE__, __METHOD__, 10);
Redirect::Page(URLBuilder::getURL(NULL, 'User.php'));
break;
case 'next':
Debug::Text('Next', __FILE__, __LINE__, __METHOD__, 10);
Redirect::Page(URLBuilder::getURL(NULL, '../Login.php'));
break;
default:
break;
}
$cache->clean();
//Clear all cache.
$handle = @fopen('http://www.timetrex.com/' . URLBuilder::getURL(array('v' => $install_obj->getFullApplicationVersion(), 'page' => 'done'), 'pre_install.php'), "r");
@fclose($handle);
$smarty->assign_by_ref('upgrade', $upgrade);
$smarty->assign_by_ref('install_obj', $install_obj);
$smarty->display('install/Done.tpl');
示例5: phpinfo
$action = Misc::findSubmitButton();
switch ($action) {
case 'phpinfo':
phpinfo();
exit;
break;
case 'back':
Debug::Text('Back', __FILE__, __LINE__, __METHOD__, 10);
Redirect::Page(URLBuilder::getURL(NULL, 'install.php'));
break;
case 'next':
Debug::Text('Next', __FILE__, __LINE__, __METHOD__, 10);
if ($external_installer == 1) {
Redirect::Page(URLBuilder::getURL(array('external_installer' => $external_installer), 'DatabaseSchema.php'));
} else {
Redirect::Page(URLBuilder::getURL(NULL, 'DatabaseConfig.php'));
}
break;
default:
break;
}
$handle = @fopen('http://www.timetrex.com/' . URLBuilder::getURL(array_merge(array('v' => $install_obj->getFullApplicationVersion(), 'page' => 'require'), $install_obj->getFailedRequirements(FALSE, array('clean_cache', 'file_permissions', 'file_checksums'))), 'pre_install.php'), "r");
@fclose($handle);
$check_all_requirements = $install_obj->checkAllRequirements();
if ($external_installer == 1 and $check_all_requirements == 0 and $install_obj->checkTimeTrexVersion() == 0) {
//Using external installer and there is no missing requirements, automatically send to next page.
Redirect::Page(URLBuilder::getURL(array('external_installer' => $external_installer, 'action:next' => 'next'), $_SERVER['SCRIPT_NAME']));
}
$smarty->assign_by_ref('install_obj', $install_obj);
$smarty->assign_by_ref('external_installer', $external_installer);
$smarty->display('install/Requirements.tpl');