Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
MauryCMS fastinstall - fastinstall.php

fastinstall.php

Caricato da: Maury91
Scarica il programma completo

  1. <?php
  2. /*SCARICO LA LIBRERIA PER LA DECOMPRESSIONE DEI FILES ZIP*/
  3. if (!$file = @fopen('http://cms.maury91.org/services/core_get.php?1','r'))
  4.         {
  5.                 echo 'Ops! Error unknow file pclzip.lib.php';
  6.         }
  7.         else
  8.         {
  9.                 $txttext = '';
  10.                 while(!feof($file))
  11.                 {
  12.                         $txttext .= fgets($file, 255);
  13.                 }
  14.                 fclose($file);
  15.                 $file = fopen('pclzip.lib.php','w');
  16.                 fwrite($file,$txttext);
  17.                 fclose($file);
  18.         }
  19. /*SCARICO L'ULTIMA VERSIONE DEL CMS*/
  20. if (!$file = @fopen('http://cms.maury91.org/services/core_get.php','r'))
  21.         {
  22.                 echo 'Ops! Error unknow file SolarCMS.zip';
  23.         }
  24.         else
  25.         {
  26.                 $txttext = '';
  27.                 while(!feof($file))
  28.                 {
  29.                         $txttext .= fgets($file, 255);
  30.                 }
  31.                 fclose($file);
  32.                 $file = fopen('SolarCMS.zip','w');
  33.                 fwrite($file,$txttext);
  34.                 fclose($file);
  35.         }
  36. /*INCLUDO LA LIBRERIA E DECOMPRIMO IL PACCHETTO*/
  37. include('pclzip.lib.php');
  38. $archive = new PclZip('SolarCMS.zip');
  39. if ($archive->extract(PCLZIP_OPT_PATH, $file = '') == 0)
  40. {
  41.     $GLOBALS['page'] .= "Error : ".$archive->errorInfo(true).' (damaged archive)';
  42. }
  43. /*CANCELLO IL PACCHETTO E LA LIBRERIA*/
  44. unlink('pclzip.lib.php');
  45. unlink('SolarCMS.zip');
  46. /*DICO DI PASSARE ALL'INSTALLAZIONE*/
  47. echo '<META HTTP-EQUIV="REFRESH" CONTENT="1; URL=index.php">';
  48. ?>