Beispiel #1
0
 public function init()
 {
     if (!empty($_POST['rebuild'])) {
         require_once e_PLUGIN . 'log/consolidate.php';
         $lgc = new logConsolidate();
         $file = $_POST['rebuild'] . "_SiteStats.log";
         $lgc->processRawBackupLog($file, true);
     }
     if (!empty($_POST['rebuildTotal'])) {
         require_once e_PLUGIN . 'log/consolidate.php';
         $lgc = new logConsolidate();
         if ($lgc->collatePageTotalDB()) {
             e107::getMessage()->addSuccess(LAN_UPDATED);
         } else {
             e107::getMessage()->addError(LAN_UPDATED_FAILED);
         }
     }
     // Set drop-down values (if any).
     if (isset($_POST['updatesettings'])) {
         $this->prefsPageSubmit();
     }
     if (isset($_POST['remSelP'])) {
         $this->rempagePageSubmit();
         // Do the deletions - then redisplay the list of pages
     }
     if (isset($_POST['wipeSubmit'])) {
         $this->wipe();
     }
 }