Elgg  Version 1.11
Namespaces | Variables
upgrade.php File Reference

Go to the source code of this file.

Namespaces

 Elgg\Core
 Activate a plugin or plugins.
 

Variables

const UPGRADING 'upgrading'
 
 $site_url = elgg_get_config('url')
 
 $site_host = parse_url($site_url, PHP_URL_HOST) . '/'
 
 $forward_url = get_input('forward', '/admin', false)
 
if(strpos($forward_url, '/')!==0) if(get_input('upgrade')== 'upgrade') else
 
 $url = elgg_get_site_url() . "__testing_rewrite?__testing_rewrite=1"
 
if(!$rewriteTester->runRewriteTest($url)) $welcome = dirname(__FILE__) . '/views/default/welcome.php'
 
if(file_exists($welcome)) $vars
 
 exit
 

Variable Documentation

$forward_url = get_input('forward', '/admin', false)

Definition at line 31 of file upgrade.php.

$site_host = parse_url($site_url, PHP_URL_HOST) . '/'

Definition at line 28 of file upgrade.php.

$site_url = elgg_get_config('url')

Definition at line 27 of file upgrade.php.

$url = elgg_get_site_url() . "__testing_rewrite?__testing_rewrite=1"

Definition at line 52 of file upgrade.php.

if (file_exists($welcome)) $vars
Initial value:
= array(
'forward' => $forward_url
)
$forward_url
Definition: upgrade.php:31
Examples:
/root/Elgg/engine/lib/output.php, and /root/Elgg/engine/lib/views.php.

Definition at line 93 of file upgrade.php.

if (!$rewriteTester->runRewriteTest($url)) $welcome = dirname(__FILE__) . '/views/default/welcome.php'

Definition at line 82 of file upgrade.php.

if (strpos($forward_url, '/')!==0) if (get_input('upgrade')== 'upgrade') else
Initial value:
{
if (!class_exists('ElggRewriteTester')) {
require dirname(__FILE__) . '/install/ElggRewriteTester.php';
}
$rewriteTester = new \ElggRewriteTester()
elgg require
Throw an error if the required package isn't present.
Definition: elgglib.js:164

Definition at line 46 of file upgrade.php.

exit

Definition at line 100 of file upgrade.php.

const UPGRADING 'upgrading'

Definition at line 24 of file upgrade.php.