Skip to content
Snippets Groups Projects
Commit 01ee9691 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch 'task-1538-fgix-multiple-hosts' into 'master'

Task 1538 fgix multiple hosts

See merge request !50
parents 21b0077b 7f32bf57
No related branches found
No related tags found
No related merge requests found
...@@ -116,14 +116,14 @@ if(is_array($aData) && count($aData)){ ...@@ -116,14 +116,14 @@ if(is_array($aData) && count($aData)){
// echo '<pre>' . print_r($aData, 1); // echo '<pre>' . print_r($aData, 1);
foreach ($aData as $aRow){ foreach ($aData as $aRow){
$sItemUrl='index.php?project='.$aRow['project'].'&package='.$aRow['package'].'&phase='.$aRow['phase'].'&host='.$aRow['host'].'&variable='.$aRow['variable'].''; $sItemUrl='index.php?project='.$aRow['project'].'&package='.$aRow['package'].'&phase='.$aRow['phase'].'&host='.$aRow['host'].'&variable='.$aRow['variable'].'';
// $sTable.='<tr onclick="location.href=\''.$sUrl.'\'">'; $sTable.='<tr onclick="location.href=\''.$sUrl.'\'">';
$sTable.='<tr>'; // $sTable.='<tr>';
foreach ($aRow as $sKey=>$sValue){ foreach ($aRow as $sKey=>$sValue){
// $sTable.='<td class="'.$sKey.'"><a href="'.$sUrl.'">'.$sValue.'</a></td>'; // $sTable.='<td class="'.$sKey.'"><a href="'.$sUrl.'">'.$sValue.'</a></td>';
$sTable.='<td class="'.$sKey.'">'.htmlentities($sValue).'</td>'; $sTable.='<td class="'.$sKey.'">'.htmlentities($sValue).'</td>';
} }
$sTable.='<td>' $sTable.='<td>'
. '<button onclick="location.href=\''.$sItemUrl.'&action=get\'">View</button>' // . '<button onclick="location.href=\''.$sItemUrl.'&action=get\'">View</button>'
. '<form method="POST" action="'.$sItemUrl.'">' . '<form method="POST" action="'.$sItemUrl.'">'
. '<input type="hidden" name="action" value="delete">' . '<input type="hidden" name="action" value="delete">'
. '<button>Delete</button>' . '<button>Delete</button>'
......
...@@ -124,7 +124,9 @@ class valuestore { ...@@ -124,7 +124,9 @@ class valuestore {
echo $this->_bDebug ? "removing existing file $this->_dbfile ...<br>\n" : ''; echo $this->_bDebug ? "removing existing file $this->_dbfile ...<br>\n" : '';
unlink($this->_dbfile); unlink($this->_dbfile);
} }
// after deleting the db file we need to re instantiate
echo $this->_bDebug ? "create database as file $this->_dbfile ...<br>\n" : ''; echo $this->_bDebug ? "create database as file $this->_dbfile ...<br>\n" : '';
$this->_oDB = new PDO("sqlite:" . $this->_dbfile);
$this->_makeQuery($this->_sCreate); $this->_makeQuery($this->_sCreate);
if (!file_exists($this->_dbfile)) { if (!file_exists($this->_dbfile)) {
$this->_quit(__FUNCTION__ , "ERROR: unable to create sqlite database " . $this->_dbfile); $this->_quit(__FUNCTION__ , "ERROR: unable to create sqlite database " . $this->_dbfile);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment