17 lines
427 B
PHP
17 lines
427 B
PHP
|
<?php
|
||
|
|
||
|
require '../config/function.php';
|
||
|
|
||
|
$archivedStudents = getArchivedStudentsWithActiveClasses();
|
||
|
$studentReactivateRes = reactivateArchivedStudentsWithActiveClasses($archivedStudents);
|
||
|
if($studentReactivateRes)
|
||
|
{
|
||
|
redirect('archive.php','Schüler:innen wurden erfolgreich freigegeben','success');
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
redirect('archive.php','Ein Fehler ist aufgetreten','danger');
|
||
|
}
|
||
|
|
||
|
|
||
|
?>
|