- Eigenes Attribut für die Sperre von Mailverteilern hinzugefügt

- diverse Security Fixes
This commit is contained in:
Andreas Österreicher
2012-06-11 15:28:19 +00:00
parent 77a4d3a8c6
commit e7bfbfd27c
6 changed files with 163 additions and 90 deletions
+8 -6
View File
@@ -216,6 +216,9 @@ if(!$is_lector)
$zeile=0;
foreach($grp_obj->result as $row1)
{
if(!$row1->aktiv)
continue;
$zeile++;
if ($zeile%2)
{
@@ -232,18 +235,17 @@ if(!$is_lector)
// display the open-link only when its a closed dispatcher and if the user has status lector
// if dispatcher has attribute aktiv=true no opening action is needed
echo "<td width=\"23\">";
if(!$row1->aktiv && MAILVERTEILER_SPERRE)
if($row1->gesperrt && MAILVERTEILER_SPERRE)
{
//Studentenvertreter duerfen den Verteiler fuer alle Studenten oeffnen
if($is_lector || ($is_stdv && mb_strtolower($row1->gruppe_kurzbz)=='tw_std'))
{
/* open a popup containing the final dispatcher address */
if(MAILVERTEILER_SPERRE)
echo '<a href="#" onClick="javascript:window.open(\'open_grp.php?grp='.strtolower($row1->gruppe_kurzbz).'&amp;desc='.$row1->beschreibung.'\',\'_blank\',\'width=500,height=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes, resizable=1\');return false;" class="Item"><img alt="'.$p->t('mailverteiler/verteilerOeffnen').'" src="../../skin/images/open.gif" title="'.$p->t('mailverteiler/verteilerOeffnen').'"></a>';
echo '<a href="#" onClick="javascript:window.open(\'open_grp.php?grp='.strtolower($row1->gruppe_kurzbz).'&amp;desc='.$row1->beschreibung.'\',\'_blank\',\'width=500,height=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes, resizable=1\');return false;" class="Item"><img alt="'.$p->t('mailverteiler/verteilerOeffnen').'" src="../../skin/images/open.gif" title="'.$p->t('mailverteiler/verteilerOeffnen').'"></a>';
echo "&nbsp;</td>";
echo " <td width='200'>";
echo "<a href='mailto:".$row1->gruppe_kurzbz."@".DOMAIN."' class='Item'>".strtolower($row1->gruppe_kurzbz)."@".DOMAIN."</a>";
echo "<a href='mailto:".$row1->gruppe_kurzbz."@".DOMAIN."' class='Item'>".strtolower($row1->gruppe_kurzbz)."@".DOMAIN."</a>";
echo "&nbsp;</td>";
}
else
@@ -379,10 +381,10 @@ if(!$is_lector)
echo "</table>";
//Menue oeffnen wenn kurzbz uebergeben wird
if(isset($_GET['kbzl']) AND $_GET['kbzl']!='')
if(isset($_GET['kbzl']) && $_GET['kbzl']!='')
{
echo "<script language='javascript'>
js_toggle_container('".$_GET['kbzl']."');
js_toggle_container('".$db->convert_html_chars($_GET['kbzl'])."');
</script>";
}
?>
+25 -6
View File
@@ -22,11 +22,31 @@
require_once('../../config/cis.config.inc.php');
require_once('../../include/functions.inc.php');
require_once('../../include/phrasen.class.php');
require_once('../../include/basis_db.class.php');
require_once('../../include/gruppe.class.php');
$sprache = getSprache();
$p = new phrasen($sprache);
$uid = get_uid();
$db = new basis_db();
if(!isset($_REQUEST['grp']))
die('Falsche Parameter');
if(mb_strlen($_REQUEST['grp'])>32)
die('Grp ungueltig');
//Pruefen ob es eine gueltige Gruppe ist
$gruppe = new gruppe();
if(!$gruppe->exists($_REQUEST['grp']))
{
//Wenn es keine Gruppe in der DB ist, kann es
//noch ein Studierendenverteiler sein
//bif_std
if(!preg_match('/^\D\D\D_std$/', $_REQUEST['grp']))
{
die('Ungueltige Gruppe');
}
}
function mail_id_generator()
{
mt_srand((double)microtime()*1000000);
@@ -63,8 +83,7 @@ function mail_id_generator()
return $mail_id;
}
echo '
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
@@ -99,14 +118,14 @@ if(isset($_REQUEST['token']) && isset($_REQUEST['grp']))
// for the users
echo "
<tr>
<td><a href='mailto:".$_REQUEST['grp'].$mail_id."@technikum-wien.at'>".$_REQUEST['desc']."</a></td>
<td><a href='mailto:".$_REQUEST['grp'].$mail_id."@".DOMAIN."'>".$db->convert_html_chars($_REQUEST['desc'])."</a></td>
<td>".$p->t('mailverteiler/geoeffnet')." (Code: ".$mail_id.")</td>
</tr>
<tr>
<td colspan='2'>
<p>".$p->t('mailverteiler/klickenZumSchicken')."</p>
<p>".$p->t('mailverteiler/infoBenutzung',array($_REQUEST['grp'].$mail_id."@technikum-wien.at"))."</p>
<p>".$p->t('mailverteiler/infoBenutzung',array($_REQUEST['grp'].$mail_id."@".DOMAIN))."</p>
</td>
</tr>
</table>
@@ -120,7 +139,7 @@ else
}
else
{
echo $p->t('mailverteiler/bestaetigeOeffnen',array($_REQUEST['grp']))." : <a href=\"".$_SERVER['SCRIPT_NAME']."?grp=".$_REQUEST['grp']."&desc=".$_REQUEST['desc']."&token=1\">".$p->t('mailverteiler/bestaetige')."</a>";
echo $p->t('mailverteiler/bestaetigeOeffnen',array($_REQUEST['grp']))." : <a href=\"".$_SERVER['SCRIPT_NAME']."?grp=".$_REQUEST['grp']."&desc=".$db->convert_html_chars($_REQUEST['desc'])."&token=1\">".$p->t('mailverteiler/bestaetige')."</a>";
}
}
+68 -62
View File
@@ -44,6 +44,7 @@ class gruppe extends basis_db
public $insertamum; // timestamp
public $insertvon; // varchar(16)
public $orgform_kurzbz;
public $gesperrt=false; // boolean
/**
* Konstruktor - Laedt optional eine Gruppe
@@ -64,7 +65,7 @@ class gruppe extends basis_db
*/
public function delete($gruppe_kurzbz)
{
$qry ="DELETE FROM public.tbl_gruppe WHERE gruppe_kurzbz='".addslashes($gruppe_kurzbz)."'";
$qry ="DELETE FROM public.tbl_gruppe WHERE gruppe_kurzbz=".$this->db_add_param($gruppe_kurzbz);
if($this->db_query($qry))
return true;
@@ -82,7 +83,7 @@ class gruppe extends basis_db
*/
public function exists($gruppe_kurzbz)
{
$qry = "SELECT count(*) as anzahl FROM public.tbl_gruppe WHERE gruppe_kurzbz='".addslashes(mb_strtoupper($gruppe_kurzbz))."'";
$qry = "SELECT count(*) as anzahl FROM public.tbl_gruppe WHERE gruppe_kurzbz=".$this->db_add_param(mb_strtoupper($gruppe_kurzbz));
if($this->db_query($qry))
{
@@ -112,7 +113,7 @@ class gruppe extends basis_db
*/
public function load($gruppe_kurzbz)
{
$qry = "SELECT * FROM public.tbl_gruppe WHERE gruppe_kurzbz='".addslashes($gruppe_kurzbz)."'";
$qry = "SELECT * FROM public.tbl_gruppe WHERE gruppe_kurzbz=".$this->db_add_param($gruppe_kurzbz);
if($this->db_query($qry))
{
@@ -123,18 +124,19 @@ class gruppe extends basis_db
$this->bezeichnung = $row->bezeichnung;
$this->semester = $row->semester;
$this->sort = $row->sort;
$this->mailgrp = ($row->mailgrp=='t'?true:false);
$this->lehre = ($row->lehre=='t'?true:false);
$this->mailgrp = $this->db_parse_bool($row->mailgrp);
$this->lehre = $this->db_parse_bool($row->lehre);
$this->beschreibung = $row->beschreibung;
$this->sichtbar = ($row->sichtbar=='t'?true:false);
$this->aktiv = ($row->aktiv=='t'?true:false);
$this->content_visible = ($row->content_visible=='t'?true:false);
$this->generiert = ($row->generiert=='t'?true:false);
$this->sichtbar = $this->db_parse_bool($row->sichtbar);
$this->aktiv = $this->db_parse_bool($row->aktiv);
$this->content_visible = $this->db_parse_bool($row->content_visible);
$this->generiert = $this->db_parse_bool($row->generiert);
$this->updateamum = $row->updateamum;
$this->updatevon = $row->updatevon;
$this->insertamum = $row->insertamum;
$this->insertvon = $row->insertvon;
$this->orgform_kurzbz = $row->orgform_kurzbz;
$this->gesperrt = $this->db_parse_bool($row->gesperrt);
return true;
}
else
@@ -170,18 +172,19 @@ class gruppe extends basis_db
$grp_obj->bezeichnung = $row->bezeichnung;
$grp_obj->semester = $row->semester;
$grp_obj->sort = $row->sort;
$grp_obj->lehre = ($row->lehre=='t'?true:false);
$grp_obj->mailgrp = ($row->mailgrp=='t'?true:false);
$grp_obj->lehre = $this->db_parse_bool($row->lehre);
$grp_obj->mailgrp = $this->db_parse_bool($row->mailgrp);
$grp_obj->beschreibung = $row->beschreibung;
$grp_obj->sichtbar = ($row->sichtbar=='t'?true:false);
$grp_obj->aktiv = ($row->aktiv=='t'?true:false);
$grp_obj->content_visible = ($row->content_visible=='t'?true:false);
$grp_obj->generiert = ($row->generiert=='t'?true:false);
$grp_obj->sichtbar = $this->db_parse_bool($row->sichtbar);
$grp_obj->aktiv = $this->db_parse_bool($row->aktiv);
$grp_obj->content_visible = $this->db_parse_bool($row->content_visible);
$grp_obj->generiert = $this->db_parse_bool($row->generiert);
$grp_obj->updateamum = $row->updateamum;
$grp_obj->updatevon = $row->updatevon;
$grp_obj->insertamum = $row->insertamum;
$grp_obj->insertvon = $row->insertvon;
$grp_obj->orgform_kurzbz = $row->orgform_kurzbz;
$grp_obj->gesperrt = $this->db_parse_bool($row->gesperrt);
$this->result[] = $grp_obj;
}
@@ -203,7 +206,7 @@ class gruppe extends basis_db
public function countStudenten($gruppe_kurzbz)
{
$qry = "SELECT count(*) as anzahl FROM public.tbl_benutzergruppe
WHERE gruppe_kurzbz='".addslashes($gruppe_kurzbz)."'";
WHERE gruppe_kurzbz=".$this->db_add_param($gruppe_kurzbz);
if($this->db_query($qry))
{
@@ -235,15 +238,15 @@ class gruppe extends basis_db
{
$qry = 'SELECT * FROM public.tbl_gruppe WHERE 1=1';
if(!is_null($studiengang_kz) && $studiengang_kz!='')
$qry .= " AND studiengang_kz='".addslashes($studiengang_kz)."'";
$qry .= " AND studiengang_kz=".$this->db_add_param($studiengang_kz);
if(!is_null($semester) && $semester!='')
$qry .= " AND semester='".addslashes($semester)."'";
$qry .= " AND semester=".$this->db_add_param($semester);
if(!is_null($mailgrp) && $mailgrp!='')
$qry .= " AND mailgrp=".($mailgrp?'true':'false');
$qry .= " AND mailgrp=".$this->db_add_param($mailgrp, FHC_BOOLEAN);
if(!is_null($sichtbar))
$qry .= " AND sichtbar=".($sichtbar?'true':'false');
$qry .= " AND sichtbar=".$this->db_add_param($sichtbar, FHC_BOOLEAN);
if(!is_null($content_visible))
$qry .= " AND content_visible=".($content_visible?'true':'false');
$qry .= " AND content_visible=".$this->db_add_param($content_visible, FHC_BOOLEAN);
$qry.=" ORDER BY beschreibung";
if($this->db_query($qry))
{
@@ -256,18 +259,19 @@ class gruppe extends basis_db
$grp_obj->bezeichnung = $row->bezeichnung;
$grp_obj->semester = $row->semester;
$grp_obj->sort = $row->sort;
$grp_obj->mailgrp = ($row->mailgrp=='t'?true:false);
$grp_obj->lehre = ($row->lehre=='t'?true:false);
$grp_obj->mailgrp = $this->db_parse_bool($row->mailgrp);
$grp_obj->lehre = $this->db_parse_bool($row->lehre);
$grp_obj->beschreibung = $row->beschreibung;
$grp_obj->sichtbar = ($row->sichtbar=='t'?true:false);
$grp_obj->aktiv = ($row->aktiv=='t'?true:false);
$grp_obj->content_visible = ($row->content_visible=='t'?true:false);
$grp_obj->generiert = ($row->generiert=='t'?true:false);
$grp_obj->sichtbar = $this->db_parse_bool($row->sichtbar);
$grp_obj->aktiv = $this->db_parse_bool($row->aktiv);
$grp_obj->content_visible = $this->db_parse_bool($row->content_visible);
$grp_obj->generiert = $this->db_parse_bool($row->generiert);
$grp_obj->updateamum = $row->updateamum;
$grp_obj->updatevon = $row->updatevon;
$grp_obj->insertamum = $row->insertamum;
$grp_obj->insertvon = $row->insertvon;
$grp_obj->orgform_kurzbz = $row->orgform_kurzbz;
$grp_obj->gesperrt = $this->db_parse_bool($row->gesperrt);
$this->result[] = $grp_obj;
}
@@ -275,7 +279,7 @@ class gruppe extends basis_db
}
else
{
$this->errormsg = 'Fehler beim Laden der Gruppen'.$qry;
$this->errormsg = 'Fehler beim Laden der Gruppen';
return false;
}
}
@@ -375,43 +379,45 @@ class gruppe extends basis_db
$qry = 'INSERT INTO public.tbl_gruppe (gruppe_kurzbz, studiengang_kz, bezeichnung, semester, sort,
mailgrp, beschreibung, sichtbar, generiert, aktiv, lehre, content_visible,
updateamum, updatevon, insertamum, insertvon, orgform_kurzbz)
VALUES('.$this->addslashes($kurzbz).','.
$this->addslashes($this->studiengang_kz).','.
$this->addslashes($this->bezeichnung).','.
$this->addslashes($this->semester).','.
$this->addslashes($this->sort).','.
($this->mailgrp?'true':'false').','.
$this->addslashes($this->beschreibung).','.
($this->sichtbar?'true':'false').','.
($this->generiert?'true':'false').','.
($this->aktiv?'true':'false').','.
($this->lehre?'true':'false').','.
($this->content_visible?'true':'false').','.
$this->addslashes($this->updateamum).','.
$this->addslashes($this->updatevon).','.
$this->addslashes($this->insertamum).','.
$this->addslashes($this->insertvon).','.
$this->addslashes($this->orgform_kurzbz).');';
updateamum, updatevon, insertamum, insertvon, orgform_kurzbz, gesperrt)
VALUES('.$this->db_add_param($kurzbz).','.
$this->db_add_param($this->studiengang_kz).','.
$this->db_add_param($this->bezeichnung).','.
$this->db_add_param($this->semester).','.
$this->db_add_param($this->sort).','.
$this->db_add_param($this->mailgrp, FHC_BOOLEAN).','.
$this->db_add_param($this->beschreibung).','.
$this->db_add_param($this->sichtbar, FHC_BOOLEAN).','.
$this->db_add_param($this->generiert, FHC_BOOLEAN).','.
$this->db_add_param($this->aktiv, FHC_BOOLEAN).','.
$this->db_add_param($this->lehre, FHC_BOOLEAN).','.
$this->db_add_param($this->content_visible, FHC_BOOLEAN).','.
$this->db_add_param($this->updateamum).','.
$this->db_add_param($this->updatevon).','.
$this->db_add_param($this->insertamum).','.
$this->db_add_param($this->insertvon).','.
$this->db_add_param($this->orgform_kurzbz).','.
$this->db_add_param($this->gesperrt, FHC_BOOLEAN).');';
}
else
{
$qry = 'UPDATE public.tbl_gruppe SET'.
' studiengang_kz='.$this->addslashes($this->studiengang_kz).','.
' bezeichnung='.$this->addslashes($this->bezeichnung).','.
' semester='.$this->addslashes($this->semester).','.
' sort='.$this->addslashes($this->sort).','.
' mailgrp='.($this->mailgrp?'true':'false').','.
' beschreibung='.$this->addslashes($this->beschreibung).','.
' sichtbar='.($this->sichtbar?'true':'false').','.
' generiert='.($this->generiert?'true':'false').','.
' aktiv='.($this->aktiv?'true':'false').','.
' lehre='.($this->lehre?'true':'false').','.
' content_visible='.($this->content_visible?'true':'false').','.
' updateamum='.$this->addslashes($this->updateamum).','.
' updatevon='.$this->addslashes($this->updatevon).','.
' orgform_kurzbz='.$this->addslashes($this->orgform_kurzbz).
" WHERE gruppe_kurzbz=".$this->addslashes($this->gruppe_kurzbz).";";
' studiengang_kz='.$this->db_add_param($this->studiengang_kz).','.
' bezeichnung='.$this->db_add_param($this->bezeichnung).','.
' semester='.$this->db_add_param($this->semester).','.
' sort='.$this->db_add_param($this->sort).','.
' mailgrp='.$this->db_add_param($this->mailgrp, FHC_BOOLEAN).','.
' beschreibung='.$this->db_add_param($this->beschreibung).','.
' sichtbar='.$this->db_add_param($this->sichtbar, FHC_BOOLEAN).','.
' generiert='.$this->db_add_param($this->generiert, FHC_BOOLEAN).','.
' aktiv='.$this->db_add_param($this->aktiv, FHC_BOOLEAN).','.
' lehre='.$this->db_add_param($this->lehre, FHC_BOOLEAN).','.
' content_visible='.$this->db_add_param($this->content_visible, FHC_BOOLEAN).','.
' updateamum='.$this->db_add_param($this->updateamum).','.
' updatevon='.$this->db_add_param($this->updatevon).','.
' orgform_kurzbz='.$this->db_add_param($this->orgform_kurzbz).', '.
' gesperrt='.$this->db_add_param($this->gesperrt, FHC_BOOLEAN).' '.
" WHERE gruppe_kurzbz=".$this->db_add_param($this->gruppe_kurzbz).";";
}
if($this->db_query($qry))
@@ -421,7 +427,7 @@ class gruppe extends basis_db
}
else
{
$this->errormsg = 'Fehler beim Speichern der Gruppe:'.$qry;
$this->errormsg = 'Fehler beim Speichern der Gruppe';
return false;
}
}
+56 -15
View File
@@ -26800,7 +26800,7 @@
<FontStyle>0</FontStyle>
<FormatLocked>0</FormatLocked>
<FontHeight>-28</FontHeight>
<Top>1650</Top>
<Top>1665</Top>
<Left>249</Left>
<z>0</z>
<Width>598</Width>
@@ -27515,7 +27515,7 @@
<Left>155</Left>
<z>0</z>
<Width>905</Width>
<Height>824</Height>
<Height>863</Height>
<dz>0</dz>
<RecalculateSizes>1</RecalculateSizes>
<UseWorkSpaceRecalculateSizes>1</UseWorkSpaceRecalculateSizes>
@@ -29040,7 +29040,7 @@
<Id>{EAD621D5-0EBD-4125-AE53-DBB7C5736895}</Id>
</WorkSpaceShape2>
<NamePositionX>884</NamePositionX>
<NamePositionY>1719</NamePositionY>
<NamePositionY>1726</NamePositionY>
<Points>
<Point>
<x>1361</x>
@@ -29052,11 +29052,11 @@
</Point>
<Point>
<x>878</x>
<y>1750</y>
<y>1765</y>
</Point>
<Point>
<x>847</x>
<y>1750</y>
<y>1765</y>
</Point>
</Points>
</WorkSpaceLinePERRelationPG83>
@@ -29297,8 +29297,8 @@
<WorkSpaceShape2>
<Id>{20CDAA08-460E-4DFC-BFA0-02CCFEC43F1D}</Id>
</WorkSpaceShape2>
<NamePositionX>1113</NamePositionX>
<NamePositionY>1170</NamePositionY>
<NamePositionX>1114</NamePositionX>
<NamePositionY>1180</NamePositionY>
<Points>
<Point>
<x>1361</x>
@@ -29310,11 +29310,11 @@
</Point>
<Point>
<x>1091</x>
<y>1207</y>
<y>1226</y>
</Point>
<Point>
<x>1060</x>
<y>1207</y>
<y>1226</y>
</Point>
</Points>
</WorkSpaceLinePERRelationPG83>
@@ -49060,7 +49060,7 @@
<Company>Technikum Wien</Company>
<Version>2.0</Version>
<CreatedDate>2009-04-17T11:15:21.000+02:00</CreatedDate>
<ModifiedDate>2012-06-05T16:21:25.633+02:00</ModifiedDate>
<ModifiedDate>2012-06-11T17:23:22.384+02:00</ModifiedDate>
<Project>FH-Complete 2.0</Project>
<Description>&lt;?xml-stylesheet type="text/xsl" href="FHCompleteTDM3PG83.xsl"?&gt;
</Description>
@@ -98115,6 +98115,47 @@ art=tbl_benutzerrolle.art &amp; tbl_rolleberechtigung.art</Comments>
<ArrDims></ArrDims>
<IsArray>0</IsArray>
</PERAttributePG83>
<PERAttributePG83 ObjectType="2003" CSAOName="PERAttributePG83">
<Id>{7A011C4D-D9EF-4441-85DF-529E4E313A27}</Id>
<Name>gesperrt</Name>
<Ordinal>0</Ordinal>
<HistoryID>{723FF578-5D03-4B75-9DE4-D5B247DB0AE5}</HistoryID>
<GlobalOrder>0</GlobalOrder>
<RNOffset>0</RNOffset>
<RNLength>0</RNLength>
<IgnoreNC>0</IgnoreNC>
<GenerateCode>1</GenerateCode>
<BeforeScript></BeforeScript>
<AfterScript></AfterScript>
<Notes></Notes>
<Comments></Comments>
<DataTypeParam1></DataTypeParam1>
<DataTypeParam2></DataTypeParam2>
<KeepForeignKey>0</KeepForeignKey>
<DefaultValue></DefaultValue>
<NotNull>1</NotNull>
<Migrated>0</Migrated>
<Caption>gesperrt</Caption>
<Unique>0</Unique>
<OriginalName></OriginalName>
<CheckConstraint></CheckConstraint>
<CheckConstraintName></CheckConstraintName>
<KeyConstraintItems/>
<PKForeignKeys/>
<FKForeignKeys/>
<DictType/>
<Domain/>
<DataType>
<Id>{D64069A5-B04A-490B-B0A2-5144DEA81A2E}</Id>
</DataType>
<UserDataType/>
<IndexItems/>
<Default/>
<CheckConstraints/>
<KeyConstraint/>
<ArrDims></ArrDims>
<IsArray>0</IsArray>
</PERAttributePG83>
</Attributes>
<Keys>
<PERKeyConstraintPG83 ObjectType="2010" CSAOName="PERKeyConstraintPG83">
@@ -109028,7 +109069,7 @@ ALTER TABLE tbl_mitarbeiter ALTER COLUMN personalnummer DROP NOT NULL;</Comments
</PERAttributePG83>
<PERAttributePG83 ObjectType="2003" CSAOName="PERAttributePG83">
<Id>{7EC34B37-9010-4C66-8563-DAA3AACE6162}</Id>
<Name>zugangscode</Name>
<Name>freigeschaltet</Name>
<Ordinal>0</Ordinal>
<HistoryID>{BCE7DB0D-E8EA-4378-96C1-6A4D8224B1E5}</HistoryID>
<GlobalOrder>0</GlobalOrder>
@@ -109040,13 +109081,13 @@ ALTER TABLE tbl_mitarbeiter ALTER COLUMN personalnummer DROP NOT NULL;</Comments
<AfterScript></AfterScript>
<Notes></Notes>
<Comments></Comments>
<DataTypeParam1>16</DataTypeParam1>
<DataTypeParam1></DataTypeParam1>
<DataTypeParam2></DataTypeParam2>
<KeepForeignKey>0</KeepForeignKey>
<DefaultValue></DefaultValue>
<NotNull>0</NotNull>
<NotNull>1</NotNull>
<Migrated>0</Migrated>
<Caption>zugangscode</Caption>
<Caption>freigeschaltet</Caption>
<Unique>0</Unique>
<OriginalName></OriginalName>
<CheckConstraint></CheckConstraint>
@@ -109057,7 +109098,7 @@ ALTER TABLE tbl_mitarbeiter ALTER COLUMN personalnummer DROP NOT NULL;</Comments
<DictType/>
<Domain/>
<DataType>
<Id>{ECB8F02F-B683-4252-8508-ED9D064C9AF3}</Id>
<Id>{D64069A5-B04A-490B-B0A2-5144DEA81A2E}</Id>
</DataType>
<UserDataType/>
<IndexItems/>
+4 -1
View File
@@ -3645,7 +3645,10 @@ if(!@$db->db_query("SELECT * FROM testtool.vw_auswertung_kategorie_semester LIMI
// Gesperrt Attribut fuer Tabelle Gruppe
if(!@$db->db_query("SELECT gesperrt FROM public.tbl_gruppe LIMIT 1"))
{
$qry = "ALTER TABLE public.tbl_gruppe ADD COLUMN gesperrt boolean;";
$qry = "ALTER TABLE public.tbl_gruppe ADD COLUMN gesperrt boolean;
UPDATE public.tbl_gruppe SET gesperrt=true WHERE aktiv=false AND sichtbar=true AND semester is null;
UPDATE public.tbl_gruppe SET aktiv=true WHERE gesperrt=true;
";
if(!$db->db_query($qry))
echo '<strong>public.tbl_gruppe: '.$db->db_last_error().'</strong><br>';
+2
View File
@@ -157,6 +157,7 @@ function doSave()
$e->sichtbar=isset($_POST['sichtbar']);
$e->generiert=isset($_POST['generiert']);
$e->aktiv=isset($_POST['aktiv']);
$e->gesperrt = isset($_POST['gesperrt']);
$e->sort=$_POST['sort'];
$e->content_visible=isset($_POST['content_visible']);
@@ -220,6 +221,7 @@ function doEdit($kurzbz,$new=false)
<tr><td><i>Generiert</i></td><td><input type='checkbox' name='generiert' <?php echo ($e->generiert?'checked':'');?>>
<tr><td><i>Aktiv</i></td><td><input type='checkbox' name='aktiv' <?php echo ($e->aktiv?'checked':'');?>>
<tr><td><i>ContentVisible</i></td><td><input type='checkbox' name='content_visible' <?php echo ($e->content_visible?'checked':'');?>>
<tr><td><i>Gesperrt</i></td><td><input type='checkbox' name='gesperrt' <?php echo ($e->gesperrt?'checked':'');?>>
<tr>
<td><i>Sort</i></td><td><input type='text' name='sort' maxlength="4" value="<?php echo $e->sort;?>">
</td>