<?php

/* ######################################################################

  IML DEPLOYMENT

  webgui - cleanup

  Maybe we can delete file (see inc_functions.php there is the menu).
  Cleanup will be done in build method.

  ---------------------------------------------------------------------
  2013-11-08  Axel <axel.hahn@iml.unibe.ch>
  ###################################################################### */

require_once("./classes/project.class.php");

$oPrj = new project($sPrj);

$sOut = '
    
    <h3>' . t("dir-archive") . ': ' . $aConfig['archiveDir'] . '</h3>
        ' . t("page-cleanup-info-archives-deleted") . ':<br>
        <pre>' . print_r($oPrj->cleanupArchive(), true) . '</pre>
        ' . t("page-cleanup-info-archives-left") . ':<br>
        <pre>' . print_r($oPrj->getVersions(), true) . '</pre>
            
    <h3>' . t("dir-builds") . ': ' . $aConfig['buildDir'] . '/[project]/</h3>
        ' . t("page-cleanup-info-builds-left") . ':<br>
        <pre>' . print_r($oPrj->cleanupBuilds(), true) . '</pre>

    <h3>'.t("dir-cache").'</h3>
        <pre>' . $oPrj->cleanupVcsCache() . '</pre>

        <div id="navbuttom">' . aPrjHome() . '</div>';

// -- Ausgabe
echo $sOut;
?>
