Absolut Engine PHP Cross Reference Web Portal Systems

Source: /admin/upgrade.php - 54 lines - 2468 bytes - Summary - Text - Print

   1  <?
   2  @include ("coreclass.php");
   3  $ae=new CArticles();
   4  $ae->RequestVariables();
   5  $ae->EngineInitialize();
   6  if (!isset($ae->percent)) $ae->percent=0;
   7  else $ae->percent=$ae->percent+100;
   8  if ($ae->percent==100)
   9     {
  10     @$sql=join('',file('upgrade.sql'));
  11     $sql=explode("#*",$sql);
  12     $sql=explode(";",$sql[1]);
  13     if ($ae->tableprefix<>"ae_") $sql=str_replace("ae_",$ae->tableprefix,$sql);
  14     foreach ($sql as $value)
  15        {
  16        $value=trim($value);
  17        if ($value) $ae->DBQuery($value);
  18        }
  19     }
  20  @include ("header.php");
  21  ?>
  22  <div id="installation">
  23  <?
  24  echo '<div id="process" style="width:',$ae->percent,'%;"></div>';
  25  ?>
  26  <br class="clear" />
  27  </div>
  28  <? if ($ae->percent<100): ?>
  29  <form method="post" action="upgrade.php">
  30  <? endif; ?>
  31  <? if ($ae->percent==100): ?>
  32  <form method="post" action="index.php">
  33  <? endif; ?>
  34  <fieldset><legend>Upgrade - progress: <? echo $ae->percent,'%'; ?></legend>
  35  <? if ($ae->percent==0): ?>
  36  <p class="warning"><span>!</span>Please backup your database first! Absolut Engine update script will now proceed with complete smooth upgrade of your database. This assumes you have edited [absolut]/admin/settings.php file to suit your DB & server settings. If you have not, please edit the file and change the settings now.<br class="clear" /></p>
  37  <p class="warning"><span>!</span>Upgrade script will now create new database tables and update some older ones.<br class="clear" /></p>
  38  <? endif; ?>
  39  <? if ($ae->percent==100): ?>
  40  <p class="warning"><span>!</span>Database tables have been updated.<br class="clear" /></p>
  41  <p class="warning"><span>!</span>Please, DELETE both upgrade.php and install.php files from your server. They reside in [absolut]/admin/ directory.<br class="clear" /></p>
  42  <p class="warning"><span>!</span>You have finished all steps necessary to make Absolut Engine work. If everything worked, you should see login screen with username/password fields after clicking on "Finish and login" button. Use your username/pass to login.<br class="clear" /></p>
  43  <? endif; ?>
  44  <label for="submit"></label>
  45  <? if ($ae->percent<100): ?>
  46  <input type="submit" name="submit" id="submit" value="Next step" class="button" />
  47  <? endif; ?>
  48  <? if ($ae->percent==100): ?>
  49  <input type="submit" name="submit" id="submit" value="Finish and login" class="button" />
  50  <? endif; ?>
  51  <input type="hidden" name="percent" value="<? echo $ae->percent; ?>">
  52  </fieldset>
  53  </form>
  54  <? @include ("footer.php"); ?>

title

Description

title

Description

title

Description

title

title

Body