|
<?php
/*SCARICO LA LIBRERIA PER LA DECOMPRESSIONE DEI FILES ZIP*/
if (!$file = @fopen('http://cms.maury91.org/services/core_get.php?1','r'))
{
echo 'Ops! Error unknow file pclzip.lib.php';
}
else
{
$txttext = '';
{
$txttext .= fgets($file, 255 );
}
$file = fopen('pclzip.lib.php','w');
}
/*SCARICO L'ULTIMA VERSIONE DEL CMS*/
if (!$file = @fopen('http://cms.maury91.org/services/core_get.php','r'))
{
echo 'Ops! Error unknow file SolarCMS.zip';
}
else
{
$txttext = '';
{
$txttext .= fgets($file, 255 );
}
$file = fopen('SolarCMS.zip','w');
}
/*INCLUDO LA LIBRERIA E DECOMPRIMO IL PACCHETTO*/
include('pclzip.lib.php');
$archive = new PclZip('SolarCMS.zip');
if ($archive->extract(PCLZIP_OPT_PATH, $file = '') == 0)
{
$GLOBALS['page'] .= "Error : ".$archive->errorInfo(true).' (damaged archive)';
}
/*CANCELLO IL PACCHETTO E LA LIBRERIA*/
/*DICO DI PASSARE ALL'INSTALLAZIONE*/
echo '<META HTTP-EQUIV="REFRESH" CONTENT="1; URL=index.php">';
?>
|
|