Skip to content
Snippets Groups Projects
Commit 429be7c3 authored by hahn's avatar hahn
Browse files

initial - temp checkin 7

parent f71a29d2
No related branches found
No related tags found
No related merge requests found
Showing
with 194 additions and 4 deletions
RewriteEngine on
# parse htm files
RewriteRule ^(.*)\.htm$ /deployment/shared/parse.php [PT,QSA]
# RewriteRule ^(.*)\.htm$ /deployment/shared/parse.php [PT,QSA]
# rewrite bootstrap-ressources
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /(css|js|img)/(.*)$ /deployment/gfranko-Document-Bootstrap-cf0730d/$1/$2
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule /(css|js|img)/(.*)$ /deployment/gfranko-Document-Bootstrap-cf0730d/$1/$2
# RewriteRule /(css|js|img)/(.*)$ /deployment-gui/bootstrap/$1/$2
RewriteBase /deployment
RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?prj=$1
RewriteRule ^([a-zA-Z0-9_-]+)/$ index.php?prj=$1
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$ index.php?prj=$1&action=$2
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/$ index.php?prj=$1&action=$2
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$ index.php?prj=$1&action=$2&par3=$3
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/$ index.php?prj=$1&action=$2&par3=$3
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$ index.php?prj=$1&action=$2&par3=$3&par4=$4
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/$ index.php?prj=$1&action=$2&par3=$3&par4=$4
<?php
require_once("./config/inc_projects_config.php");
require_once("./classes/project.class.php");
// --- Checks
$oPrj=new project($aParams["prj"]);
if (array_key_exists("par3", $aParams)){
$sPhase=$aParams["par3"];
}
$sOut='<h1>Accept :: '.$oPrj->getLabel().' - '.$sPhase.'</h1><hr>';
if (array_key_exists("confirm", $aParams)) {
$sOut.=$oPrj->accept($sPhase);
} else {
if (!$sPhase){
$sOut.='ERROR: no Phase.';
} else {
$aPhaseData=$oPrj->getPhaseInfos($sPhase);
$sOut.='
<p>
auf dem Server installiert:<br>
<pre>'.print_r($aPhaseData["depoyed"], true).'</pre>
</p>
';
if (!$oPrj->canAcceptPhase($sPhase)){
$sOut.="ERROR: the phase $sPhase cannot be accepted.";
} else {
// Eingabe Kommentare zum Deployment
$sOut.='
<form action="?" method="post" enctype="multipart/form-data">
<input type="hidden" name="confirm" value="1">
<input type="submit" class="btn btn-primary" value="Deploy">
</form>
';
}
}
}
$sOut.=aHome();
// -- Ausgabe
$sPhpOut=$sOut;
?>
<?php
require_once("./config/inc_projects_config.php");
require_once("./classes/project.class.php");
require_once("./classes/formgen.class.php");
// --- Checks
$oPrj=new project($aParams["prj"]);
$sOut='<h1>Build :: '.$oPrj->getLabel().'</h1><hr>';
if (array_key_exists("confirm", $aParams)) {
$sOut.=$oPrj->build();
} else {
$sNext=$oPrj->getNextPhase();
$sOut.='
<p>
Es wird ein neues Paket erstellt und f&uuml; die Phase <em class="'.$sNext.'">'.$sNext.'</em> bereitgestellt.<br>
</p>
';
// Eingabe Kommentare zum Deployment
$sOut.='
<hr>
<form action="?" method="post" enctype="multipart/form-data">
<input type="hidden" name="confirm" value="1">
<!-- ' . enterDeployinfos() . '
<hr>
-->
<input type="submit" class="btn btn-primary" value="Paket f&uuml;r ['.$sNext.'] erstellen">
</form>
';
}
$sOut.=aHome();
// -- Ausgabe
$sPhpOut=$sOut;
?>
<?php
require_once("./config/inc_projects_config.php");
require_once("./classes/project.class.php");
// --- Checks
$oPrj=new project($aParams["prj"]);
$sOut='<h1>Deploy :: '.$oPrj->getLabel().'</h1><hr>';
if (array_key_exists("par3", $aParams)){
$sPhase=$aParams["par3"];
}
if (array_key_exists("confirm", $aParams)) {
$sOut.=$oPrj->deploy($sPhase);
} else {
if ($sPhase){
$sPhase=$aParams["par3"];
$aPhaseData=$oPrj->getPhaseInfos($sPhase);
$sOut.='
<p>
in der Queue:<br>
<pre>'.print_r($aPhaseData["onhold"], true).'</pre>
</p>
';
// Eingabe Kommentare zum Deployment
$sOut.='
<form action="?" method="post" enctype="multipart/form-data">
<input type="hidden" name="confirm" value="1">
<input type="submit" class="btn btn-primary" value="Deploy">
</form>
';
} else {
$sOut.='ERROR: missing name of the phase.';
}
}
$sOut.=aHome();
// -- Ausgabe
$sPhpOut=$sOut;
?>
<?php
require_once("./classes/classinfos.class.php");
$aClasses=array(
"project"=>"project",
"projectlist"=>"projectlist",
);
$sClass=$sPrj;
$sPhpOut='';
foreach ($aClasses as $sClassfile=>$sName){
$sPhpOut.='<a href="/deployment/'.$sClassfile.'/doc/">'.$sClassfile.'</a> | ';
}
$sPhpOut.='<hr>';
require_once("./classes/$sClass.class.php");
$o=new classinfos($sPrj);
$sPhpOut.=$o->render();
?>
<?php
require_once("../config/inc_projects_config.php");
require_once("../classes/projectlist.class.php");
require_once("./config/inc_projects_config.php");
require_once("./classes/projectlist.class.php");
$oPrjList=new projectlist($aProjects);
// $oPrjList->setConfig($aProjects);
$sPhpOut=$oPrjList->renderOverview();
$sPhpOut='<h1>Overview</h1>'.$oPrjList->renderOverview();
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment