mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 10:22:18 +00:00
This commit is contained in:
@@ -490,6 +490,21 @@ if(!$error)
|
||||
$errormsg = 'Falsche Paramenteruebergabe';
|
||||
}
|
||||
}
|
||||
elseif(isset($_POST['type']) && $_POST['type']=='getvariable')
|
||||
{
|
||||
$variable = new variable($conn, null, null, true);
|
||||
|
||||
if($variable->load($user, $_POST['name']))
|
||||
{
|
||||
$return = true;
|
||||
$data = $variable->wert;
|
||||
}
|
||||
else
|
||||
{
|
||||
$return = false;
|
||||
$errormsg = 'Fehler: '.$variable->errormsg;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$return = false;
|
||||
|
||||
Reference in New Issue
Block a user