Elgg  Version 1.9
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

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

Definition at line 31 of file upgrade.php.

◆ $site_host

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

Definition at line 28 of file upgrade.php.

◆ $site_url

$site_url = elgg_get_config('url')

Definition at line 27 of file upgrade.php.

◆ $url

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

Definition at line 52 of file upgrade.php.

◆ $vars

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.

◆ $welcome

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

Definition at line 82 of file upgrade.php.

◆ else

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()

Definition at line 46 of file upgrade.php.

◆ exit

exit

Definition at line 98 of file upgrade.php.

◆ UPGRADING

const UPGRADING 'upgrading'

Definition at line 24 of file upgrade.php.