Merge branch 'wkParticipo' of https://gitea.cwsvjudo.dedyn.io/marko/cwsvJudo into wkParticipo
This commit is contained in:
@@ -18,6 +18,31 @@ setlocale (LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge');
|
||||
if ($mysqlConn->connect_error) {
|
||||
$sqlMessage['error'] .= 'Datenbankverbindung fehlgeschlagen: ' . $mysqlConn->connect_error;
|
||||
}
|
||||
// var_dump($_SESSION);
|
||||
|
||||
/// Stellt den cssCode mit den Variablendefinitionen bereit
|
||||
/*
|
||||
function colorThemeCss($colorArray = array('backgroundColor'=>"#FFAE00", 'highlightColor'=>"#FF8100", 'buttonColor'=>"#291670")){
|
||||
//$colorTypes = ["backgroundColor", "highlightColor", "buttonColor"];
|
||||
$defaultColors =['backgroundColor'=> "#FFAE00", 'highlightColor'=>"#FF8100", 'buttonColor'=>"#291670"];
|
||||
|
||||
//echo("DBG: colorArray:"); var_dump($colorArray);
|
||||
|
||||
// Inputdatenvalidierung
|
||||
foreach($defaultColors as $key=>$value){
|
||||
if( !preg_match("/^#(?:[0-9a-fA-F]{3}){1,2}$/", $colorArray[$key]) ){
|
||||
$colorArray[$key] = $defaultColors[$key];
|
||||
}
|
||||
}
|
||||
|
||||
$ret = ":root{";
|
||||
|
||||
foreach($colorArray as $key=>$value){
|
||||
$ret .= "--".$key.": ".$value."; ";
|
||||
}
|
||||
$ret .= "}";
|
||||
return $ret;
|
||||
}*/
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
Reference in New Issue
Block a user