mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
Merge branch 'master' of https://github.com/FH-Complete/FHC-Core
Signed-off-by: cris-technikum <hainberg@technikum-wien.at> # Conflicts: # locale/de-AT/global.php # locale/en-US/global.php
This commit is contained in:
@@ -260,6 +260,9 @@ define('KOLLISIONSFREIE_USER',serialize(array('_DummyLektor')));
|
||||
//Wenn auf 'true' gesetzt, dann wird im FAS beim Konto das Feld fuer die CreditPoints angezeigt
|
||||
define('FAS_KONTO_SHOW_CREDIT_POINTS','false');
|
||||
|
||||
//Wenn auf true gesetzt, dann wird im FAS beim Konto das Feld fuer die Mahnspanne angezeigt
|
||||
define('FAS_KONTO_SHOW_MAHNSPANNE', true);
|
||||
|
||||
// Wenn definiert, wird bei der Vorrückung der Lehreinheiten nicht der Stundensatz des Vorjahres eingetragen.
|
||||
// Erlaubt sind numerische Werte oder der Wert "default".
|
||||
// Bei "default" wird der Standard-Stundensatz des Lektors (aus tbl_mitarbeiter) ermittelt, und dieser eingetragen.
|
||||
|
||||
@@ -96,7 +96,14 @@ echo '<?xml-stylesheet href="'.APP_ROOT.'content/datepicker/datepicker.css" type
|
||||
<label value="Buchungstext" control="student-konto-neu-textbox-buchungstext"/>
|
||||
<textbox id="student-konto-neu-textbox-buchungstext" maxlength="256"/>
|
||||
</row>
|
||||
<row>
|
||||
<?php
|
||||
// Mahnspanne wird nur angezeigt, wenn diese im Config aktiviert wurden
|
||||
if(!defined('FAS_KONTO_SHOW_MAHNSPANNE') || FAS_KONTO_SHOW_MAHNSPANNE===true)
|
||||
$hidden='';
|
||||
else
|
||||
$hidden='hidden="true"';
|
||||
?>
|
||||
<row <?php echo $hidden;?>>
|
||||
<label value="Mahnspanne" control="student-konto-neu-textbox-mahnspanne"/>
|
||||
<hbox>
|
||||
<textbox id="student-konto-neu-textbox-mahnspanne" value="30" maxlength="4" size="4"/>
|
||||
@@ -144,4 +151,4 @@ echo '<?xml-stylesheet href="'.APP_ROOT.'content/datepicker/datepicker.css" type
|
||||
</hbox>
|
||||
</groupbox>
|
||||
</vbox>
|
||||
</window>
|
||||
</window>
|
||||
|
||||
@@ -237,7 +237,14 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
<label value="Buchungstext" control="student-konto-textbox-buchungstext"/>
|
||||
<textbox id="student-konto-textbox-buchungstext" disabled="true" maxlength="256"/>
|
||||
</row>
|
||||
<row>
|
||||
<?php
|
||||
// Mahnspanne wird nur angezeigt, wenn diese im Config aktiviert wurden
|
||||
if(!defined('FAS_KONTO_SHOW_MAHNSPANNE') || FAS_KONTO_SHOW_MAHNSPANNE===true)
|
||||
$hidden='';
|
||||
else
|
||||
$hidden='hidden="true"';
|
||||
?>
|
||||
<row <?php echo $hidden; ?>>
|
||||
<label value="Mahnspanne" control="student-konto-textbox-mahnspanne"/>
|
||||
<hbox>
|
||||
<textbox id="student-konto-textbox-mahnspanne" disabled="true" maxlength="4" size="4"/>
|
||||
@@ -346,4 +353,4 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
</grid>
|
||||
</hbox>
|
||||
</vbox>
|
||||
</overlay>
|
||||
</overlay>
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
/* Copyright (C) 2020 Technikum-Wien
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Andreas Oesterreicher < andreas.oesterreicher@technikum-wien.at >
|
||||
*/
|
||||
/**
|
||||
* Prueft ob aktuelle Jobs sich im Status running befinden.
|
||||
* Falls dies der Fall ist wird ein Warn Mail an den Admin verschickt.
|
||||
* Dies soll verhindern dass Jobs die stecken geblieben sind nicht mehr gestartet werden da diese im
|
||||
* Running Status hängen und daher nicht erneut gestartet werden.
|
||||
*/
|
||||
require_once(dirname(__FILE__).'/../../config/vilesci.config.inc.php');
|
||||
require_once(dirname(__FILE__).'/../../include/mail.class.php');
|
||||
require_once(dirname(__FILE__).'/../../include/cronjob.class.php');
|
||||
|
||||
//ID des Cronjobs holen
|
||||
$cj = new cronjob();
|
||||
if($cj->isJobRunning())
|
||||
{
|
||||
$cj->getAll();
|
||||
|
||||
$text = '';
|
||||
$found = false;
|
||||
|
||||
foreach($cj->result as $row)
|
||||
{
|
||||
if($row->running && (mb_strstr($row->file, 'jobwatcher.php')===false))
|
||||
{
|
||||
$found = true;
|
||||
$text.="Der Cronjob \"$row->titel\" mit ID $row->cronjob_id ist im Status RUNNING\n";
|
||||
$text.="Er wurde zuletzt am \"$row->last_execute\" Uhr gestartet.\n";
|
||||
}
|
||||
}
|
||||
|
||||
if ($found)
|
||||
{
|
||||
$text.="Der Status muss gegebenenfalls manuell zurückgesetzt werden da der Job sonst nicht erneut startet\n";
|
||||
|
||||
$mail = new mail(MAIL_ADMIN, 'no-reply@'.DOMAIN,'CronJob - RUNNING ALERT',$text);
|
||||
|
||||
if(!$mail->send())
|
||||
die('Fehler beim Senden des Mails!');
|
||||
else
|
||||
echo 'Cronjob Running Alert verschickt';
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user