1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-12 21:43:06 +01:00

step 1 for cibuild php

This commit is contained in:
andreas
2023-09-03 16:24:10 +02:00
parent 8e70ce3112
commit abf87f1955
6 changed files with 317 additions and 156 deletions

26
webinstall/config.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
$allowed=array(
'user'=> array('wellenvogel'),
'repo'=> array('esp32-nmea2000')
);
function fillUserAndRepo($vars=null){
global $allowed;
if ($vars == null) {
$vars=array();
}
foreach (array('user','repo') as $n){
if (! isset($_REQUEST[$n])){
die("missing parameter $n");
}
$v=$_REQUEST[$n];
$av=$allowed[$n];
if (! in_array($v,$av)){
die("value $v for $n not allowed");
}
$vars[$n]=$v;
}
return $vars;
}
?>