*/
    public static function showredirect()
    {
        // delete own file
        @unlink($_SERVER['SCRIPT_FILENAME']);
        // redirect to ownCloud
        header("Location: owncloud");
    }
}
// read the step get variable
if (isset($_GET['step'])) {
    $step = $_GET['step'];
} else {
    $step = 0;
}
// show the header
oc_setup::showheader();
// show the right step
if ($step == 0) {
    oc_setup::showwelcome();
} elseif ($step == 1) {
    oc_setup::showcheckdependencies();
} elseif ($step == 2) {
    oc_setup::showinstall();
} elseif ($step == 3) {
    oc_setup::showredirect();
} else {
    echo 'Internal error. Please try again.';
}
// show the footer
oc_setup::showfooter();
Exemplo n.º 2
0
	*/ 
	static public function showredirect(){
		// delete own file
		@unlink($_SERVER['SCRIPT_FILENAME']);
		
		// redirect to ownCloud
		header("Location: ".$_GET['directory']);	
	}
	
}


// read the step get variable
if(isset($_GET['step'])) $step=$_GET['step']; else $step=0;

// show the header
oc_setup::showheader();

// show the right step
if     ($step==0) oc_setup::showwelcome();
elseif ($step==1) oc_setup::showcheckdependencies();
elseif ($step==2) oc_setup::showinstall();
elseif ($step==3) oc_setup::showredirect();
else  echo('Internal error. Please try again.'); 

// show the footer
oc_setup::showfooter();


?>