mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-19 16:02:15 +00:00
Config Konstante für den Startcontent im CIS Menü hinzugefügt
Mailverteiler anpassung an Phrasenmodul
This commit is contained in:
+34
-29
@@ -21,6 +21,11 @@
|
||||
*/
|
||||
require_once('../../config/cis.config.inc.php');
|
||||
require_once('../../include/functions.inc.php');
|
||||
require_once('../../include/phrasen.class.php');
|
||||
|
||||
$sprache = getSprache();
|
||||
$p = new phrasen($sprache);
|
||||
$uid = get_uid();
|
||||
|
||||
function mail_id_generator()
|
||||
{
|
||||
@@ -57,23 +62,24 @@ 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">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<title>Öffnen eines Mailverteilers</title>
|
||||
<title>'.$p->t('mailverteiler/oeffnenEinesVerteilers').'</title>
|
||||
</head>
|
||||
<body id="inhalt">
|
||||
<?php
|
||||
if(isset($_REQUEST['token']) && isset($_REQUEST['grp']))
|
||||
{
|
||||
echo '
|
||||
<table class="tabcontent">
|
||||
<body>';
|
||||
|
||||
if(isset($_REQUEST['token']) && isset($_REQUEST['grp']))
|
||||
{
|
||||
echo '
|
||||
<table class="tabcontent">
|
||||
<tr>
|
||||
<td class="ContentHeader"><font class="ContentHeader">Mailverteiler</font></td>
|
||||
<td class="ContentHeader"><font class="ContentHeader">Status</font></td>
|
||||
<td class="ContentHeader"><font class="ContentHeader">'.$p->t('mailverteiler/mailverteiler').'</font></td>
|
||||
<td class="ContentHeader"><font class="ContentHeader">'.$p->t('mailverteiler/status').'</font></td>
|
||||
</tr>';
|
||||
|
||||
/* Generate an random String */
|
||||
@@ -84,7 +90,7 @@ function mail_id_generator()
|
||||
exec($command);
|
||||
|
||||
/* ffe, 20051020 - do a little logging */
|
||||
$message= date("F j G:i:s") . " mailgroup: [" . $_REQUEST['grp'] . "] (using " . $mail_id . ") requested by [" . $_SERVER['PHP_AUTH_USER'] . "]\n";
|
||||
$message= date("F j G:i:s") . " mailgroup: [" . $_REQUEST['grp'] . "] (using " . $mail_id . ") requested by [" . $uid . "]\n";
|
||||
|
||||
$filet = fopen(LOG_PATH.'.htmlistopen.log', "a");
|
||||
fwrite($filet, $message, mb_strlen($message));
|
||||
@@ -94,31 +100,30 @@ function mail_id_generator()
|
||||
echo "
|
||||
<tr>
|
||||
<td><a href='mailto:".$_REQUEST['grp'].$mail_id."@technikum-wien.at'>".$_REQUEST['desc']."</a></td>
|
||||
<td>Geöffnet (Code: ".$mail_id.")</td>
|
||||
<td>".$p->t('mailverteiler/geoeffnet')." (Code: ".$mail_id.")</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
<p>Um ein Mail an den Verteiler zu senden klicken Sie bitte auf den obigen Link. Ihr Mailprogramm öffnet automatisch eine Vorlage für ein neues Mail, welche bereits die korrekte Adresse enthält.</p>
|
||||
<p>".$p->t('mailverteiler/klickenZumSchicken')."</p>
|
||||
|
||||
<p>Das Senden ist für den Zeitraum von <b>2 Stunden</b> bzw. für die <b>einmalige</b> Benutzung unter der Adresse <a href='mailto:".$_REQUEST['grp'].$mail_id."@technikum-wien.at'>".$_REQUEST['grp'].$mail_id."@technikum-wien.at</a> möglich.</p>
|
||||
<p>".$p->t('mailverteiler/infoBenutzung',array($_REQUEST['grp'].$mail_id."@technikum-wien.at"))."</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
";
|
||||
}
|
||||
else
|
||||
{
|
||||
if($_REQUEST['grp']=="")
|
||||
{
|
||||
exit();
|
||||
}
|
||||
else
|
||||
{
|
||||
//Fixed for https
|
||||
//echo"Bitte bestätigen Sie das Öffnen des Verteilers ".$_REQUEST['grp'].": <a href=\"http://".$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME']."?grp=".$_REQUEST['grp']."&desc=".$_REQUEST['desc']."&token=1\">Bestätige</a>";
|
||||
echo"Bitte bestätigen Sie das Öffnen des Verteilers ".$_REQUEST['grp'].": <a href=\"".$_SERVER['SCRIPT_NAME']."?grp=".$_REQUEST['grp']."&desc=".$_REQUEST['desc']."&token=1\">Bestätige</a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
if($_REQUEST['grp']=="")
|
||||
{
|
||||
exit();
|
||||
}
|
||||
}
|
||||
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 '</body>
|
||||
</html>';
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
+28
-23
@@ -20,25 +20,20 @@
|
||||
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
|
||||
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
|
||||
*/
|
||||
?>
|
||||
<!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">
|
||||
<link href="../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<title>Personen im Mailverteiler</title>
|
||||
</head>
|
||||
<body id="inhalt">
|
||||
<?php
|
||||
require_once('../../config/cis.config.inc.php');
|
||||
require_once('../../include/basis_db.class.php');
|
||||
require_once('../../include/functions.inc.php');
|
||||
require_once('../../include/studiensemester.class.php');
|
||||
require_once('../../include/phrasen.class.php');
|
||||
|
||||
$sprache = getSprache();
|
||||
$p = new phrasen($sprache);
|
||||
|
||||
if (!$db = new basis_db())
|
||||
die('Fehler beim Oeffnen der Datenbankverbindung');
|
||||
die($p->t('global/fehlerBeimOeffnenDerDatenbankverbindung'));
|
||||
|
||||
if (!$user=get_uid())
|
||||
die('Sie sind nicht angemeldet. Es wurde keine Benutzer UID gefunden ! <a href="javascript:history.back()">Zurück</a>');
|
||||
die($p->t('global/fehlerBeimErmittelnDerUID'));
|
||||
|
||||
$stsem_obj = new studiensemester();
|
||||
$stsem = $stsem_obj->getaktorNext();
|
||||
@@ -48,17 +43,26 @@
|
||||
else
|
||||
$is_lector=false;
|
||||
|
||||
?>
|
||||
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">
|
||||
<link href="../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<title>'.$p->t('mailverteiler/personenImVerteiler').'</title>
|
||||
</head>
|
||||
<body id="inhalt">
|
||||
|
||||
<table class="tabcontent">
|
||||
<tr>
|
||||
<td class="ContentHeader"><font class="ContentHeader">Nachname</font></td>
|
||||
<td class="ContentHeader"><font class="ContentHeader">Vorname</font></td>
|
||||
<td class="ContentHeader"><font class="ContentHeader">E-Mail</font></td>
|
||||
</tr>
|
||||
<td class="ContentHeader"><font class="ContentHeader">'.$p->t('global/nachname').'</font></td>
|
||||
<td class="ContentHeader"><font class="ContentHeader">'.$p->t('global/vorname').'</font></td>
|
||||
<td class="ContentHeader"><font class="ContentHeader">'.$p->t('global/mail').'</font></td>
|
||||
</tr>';
|
||||
|
||||
|
||||
<?php
|
||||
//$sql_query = "SELECT vornamen AS vn,nachname AS nn,a.uid as uid FROM public.tbl_personmailgrp AS a, public.tbl_person AS b WHERE a.uid=b.uid AND a.mailgrp_kurzbz='$grp' ORDER BY nachname";
|
||||
$qry = "SELECT uid, vorname, nachname FROM campus.vw_benutzer JOIN tbl_benutzergruppe USING (uid) WHERE gruppe_kurzbz='".addslashes($_GET['grp'])."' AND (studiensemester_kurzbz IS NULL OR studiensemester_kurzbz='$stsem') ORDER BY nachname, vorname";
|
||||
$qry = "SELECT uid, vorname, nachname FROM campus.vw_benutzer JOIN tbl_benutzergruppe USING (uid) WHERE gruppe_kurzbz='".addslashes($_GET['grp'])."' AND (studiensemester_kurzbz IS NULL OR studiensemester_kurzbz='".addslashes($stsem)."') ORDER BY nachname, vorname";
|
||||
if($result=$db->db_query($qry))
|
||||
{
|
||||
while($row = $db->db_fetch_object($result))
|
||||
@@ -70,7 +74,8 @@
|
||||
echo "</tr>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
echo '
|
||||
</table>
|
||||
</body>
|
||||
</html>';
|
||||
?>
|
||||
+83
-55
@@ -1,61 +1,89 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<?php
|
||||
/* Copyright (C) 2011 FH 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>
|
||||
*/
|
||||
|
||||
require_once('../../config/cis.config.inc.php');
|
||||
require_once('../../include/basis_db.class.php');
|
||||
require_once('../../include/phrasen.class.php');
|
||||
require_once('../../include/functions.inc.php');
|
||||
|
||||
$sprache = getSprache();
|
||||
$p = new phrasen($sprache);
|
||||
|
||||
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">
|
||||
<link href="../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<title>Personen im Mailverteiler</title>
|
||||
<body id="inhalt">
|
||||
<?php
|
||||
require_once('../../config/cis.config.inc.php');
|
||||
require_once('../../include/basis_db.class.php');
|
||||
if (!$db = new basis_db())
|
||||
die('Fehler beim Oeffnen der Datenbankverbindung');
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<title>'.$p->t('mailverteiler/personenImVerteiler').'</title>
|
||||
<body>';
|
||||
|
||||
if(!isset($_GET['kz']))
|
||||
die('Fehlerhafte parameteruebergabe');
|
||||
?>
|
||||
<table class="tabcontent">
|
||||
if (!$db = new basis_db())
|
||||
die($p->t('global/fehlerBeimOeffnenDerDatenbankverbindung'));
|
||||
|
||||
if(!isset($_GET['kz']))
|
||||
die($p->t('global/fehlerBeiDerParameteruebergabe'));
|
||||
|
||||
echo '
|
||||
<table class="tabcontent">
|
||||
<tr>
|
||||
<td class="ContentHeader"><font class="ContentHeader">Nachname</font></td>
|
||||
<td class="ContentHeader"><font class="ContentHeader">Vorname</font></td>
|
||||
<td class="ContentHeader"><font class="ContentHeader">E-Mail</font></td>
|
||||
</tr>
|
||||
<?php
|
||||
if(isset($_GET['all']))
|
||||
<td class="ContentHeader"><font class="ContentHeader">'.$p->t('global/nachname').'</font></td>
|
||||
<td class="ContentHeader"><font class="ContentHeader">'.$p->t('global/vorname').'</font></td>
|
||||
<td class="ContentHeader"><font class="ContentHeader">'.$p->t('global/mail').'</font></td>
|
||||
</tr>';
|
||||
|
||||
if(isset($_GET['all']))
|
||||
{
|
||||
$qry = "SELECT vorname, nachname, uid FROM campus.vw_student WHERE aktiv=true AND studiengang_kz='".addslashes($_GET['kz'])."' AND semester<10 AND semester>0 ORDER BY nachname, vorname";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry = "SELECT vorname, nachname, uid FROM campus.vw_student WHERE aktiv=true AND studiengang_kz='".addslashes($_GET['kz'])."'";
|
||||
|
||||
if(isset($_GET['sem']))
|
||||
$qry.=" AND semester='".addslashes($_GET['sem'])."'";
|
||||
|
||||
if(isset($_GET['verband']))
|
||||
$qry.=" AND verband='".addslashes($_GET['verband'])."'";
|
||||
|
||||
if(isset($_GET['grp']))
|
||||
$qry.=" AND gruppe='".addslashes($_GET['grp'])."'";
|
||||
|
||||
$qry.= ' ORDER BY nachname, vorname';
|
||||
}
|
||||
|
||||
if($result=$db->db_query($qry))
|
||||
{
|
||||
while($row=$db->db_fetch_object($result))
|
||||
{
|
||||
$qry = "SELECT vorname, nachname, uid FROM campus.vw_student WHERE aktiv=true AND studiengang_kz='".addslashes($_GET['kz'])."' AND semester<10 AND semester>0 ORDER BY nachname, vorname";
|
||||
echo "<tr>";
|
||||
echo " <td>$row->nachname</td>";
|
||||
echo " <td>$row->vorname</td>";
|
||||
echo " <td><a href='mailto:$row->uid@".DOMAIN."' class='Item'>$row->uid@".DOMAIN."</a></td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry = "SELECT vorname, nachname, uid FROM campus.vw_student WHERE aktiv=true AND studiengang_kz='".addslashes($_GET['kz'])."'";
|
||||
}
|
||||
else
|
||||
echo $p->t('global/fehlerBeimLesenAusDatenbank');
|
||||
|
||||
if(isset($_GET['sem']))
|
||||
$qry.=" AND semester='".addslashes($_GET['sem'])."'";
|
||||
|
||||
if(isset($_GET['verband']))
|
||||
$qry.=" AND verband='".addslashes($_GET['verband'])."'";
|
||||
|
||||
if(isset($_GET['grp']))
|
||||
$qry.=" AND gruppe='".addslashes($_GET['grp'])."'";
|
||||
|
||||
$qry.= ' ORDER BY nachname, vorname';
|
||||
}
|
||||
|
||||
if($result=$db->db_query($qry))
|
||||
{
|
||||
while($row=$db->db_fetch_object($result))
|
||||
{
|
||||
echo "<tr>";
|
||||
echo " <td>$row->nachname</td>";
|
||||
echo " <td>$row->vorname</td>";
|
||||
echo " <td><a href='mailto:$row->uid@".DOMAIN."' class='Item'>$row->uid@".DOMAIN."</a></td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
}
|
||||
else
|
||||
echo 'Fehler beim Auslesen der Studentendaten';
|
||||
?>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
echo ' </table>
|
||||
</body>
|
||||
</html>';
|
||||
?>
|
||||
@@ -47,6 +47,9 @@ define('DOC_ROOT','/var/www/cis/htdocs');
|
||||
// Externe Funktionen - Unterordner im Include-Verzeichnis
|
||||
define('EXT_FKT_PATH','tw');
|
||||
|
||||
//ID des CMS-Contents bei dem das CIS Menue beginnt
|
||||
define('CIS_MENU_ENTRY_CONTENT',1);
|
||||
|
||||
//Zusaetzliches Menue bei Lehrveranstaltungen anzeigen (Lektorenbereich, Info u. Kommunikation, etc)
|
||||
define('CIS_EXT_MENU',true);
|
||||
|
||||
|
||||
@@ -14,4 +14,12 @@ $this->phrasen['mailverteiler/studentenverteiler']='Studentenverteiler';
|
||||
$this->phrasen['mailverteiler/keineVerteilerVorhanden']='Keine Verteiler vorhanden';
|
||||
$this->phrasen['mailverteiler/fehlerBeimLadenDerStudenten']='Fehler beim Laden der Studenten';
|
||||
$this->phrasen['mailverteiler/mailverteiler']='Mailverteiler';
|
||||
?>
|
||||
$this->phrasen['mailverteiler/oeffnenEinesVerteilers']='Öffnen eines Mailverteilers';
|
||||
$this->phrasen['mailverteiler/status']='Status';
|
||||
$this->phrasen['mailverteiler/geoeffnet']='Geöffnet';
|
||||
$this->phrasen['mailverteiler/klickenZumSchicken']='Um ein Mail an den Verteiler zu senden klicken Sie bitte auf den obigen Link. Ihr Mailprogramm öffnet automatisch eine Vorlage für ein neues Mail, welche bereits die korrekte Adresse enthält.';
|
||||
$this->phrasen['mailverteiler/infoBenutzung']='Das Senden ist für den Zeitraum von <b>2 Stunden</b> bzw. für die <b>einmalige</b> Benutzung unter der Adresse <a href="mailto:%1$s">%1$s</a> möglich.';
|
||||
$this->phrasen['mailverteiler/bestaetigeOeffnen']='Bitte bestätigen Sie das Öffnen des Verteilers %1$s';
|
||||
$this->phrasen['mailverteiler/bestaetige']='Bestätige';
|
||||
$this->phrasen['mailverteiler/personenImVerteiler']='Personen im Mailverteiler';
|
||||
?>
|
||||
|
||||
@@ -3,7 +3,7 @@ $this->phrasen['mailverteiler/titel']='Communication - Mailing lists';
|
||||
$this->phrasen['mailverteiler/absatz1']='<strong><font class="error">Notice: </font></strong>These mailing lists may only be used for university-related purposes!';
|
||||
$this->phrasen['mailverteiler/absatz2']='<strong><font class="error">Info: </font></strong>Information regarding the <a class="Item" href="../cisdocs/Mailverteiler.pdf" target="_blank">authorization concept </a> for mailing lists, <a class="Item" href="../cisdocs/bedienung_mailverteiler.pdf" target="_blank"> instructions</a> for mailing lists';
|
||||
$this->phrasen['mailverteiler/absatz3']='<h3>To display the mailing list, please click on [ <img src="../../skin/images/bullet_arrow_right.png" title="anzeigen" alt="anzeigen" border="0"> ] or to hide it, click on [ <img src="../../skin/images/bullet_arrow_down.png" title="Ausblenden" alt="Ausblenden" border="0"> ]</h3>';
|
||||
$this->phrasen['mailverteiler/verteilerOeffnen']='Open mailing list';
|
||||
$this->phrasen['mailverteiler/verteilerOeffnen']='Unlock mailing list';
|
||||
$this->phrasen['mailverteiler/anzeigen']='show';
|
||||
$this->phrasen['mailverteiler/ausblenden']='fade out';
|
||||
$this->phrasen['mailverteiler/gesperrt']='blocked';
|
||||
@@ -14,4 +14,12 @@ $this->phrasen['mailverteiler/studentenverteiler']='Students mailing list';
|
||||
$this->phrasen['mailverteiler/keineVerteilerVorhanden']='No mailing list is existing';
|
||||
$this->phrasen['mailverteiler/fehlerBeimLadenDerStudenten']='Error: Loading Students';
|
||||
$this->phrasen['mailverteiler/mailverteiler']='Mailing list';
|
||||
?>
|
||||
$this->phrasen['mailverteiler/oeffnenEinesVerteilers']='Unlock a Mailing list';
|
||||
$this->phrasen['mailverteiler/status']='Status';
|
||||
$this->phrasen['mailverteiler/geoeffnet']='Unlocked';
|
||||
$this->phrasen['mailverteiler/klickenZumSchicken']='To send a Mail to this List click on the link above.';
|
||||
$this->phrasen['mailverteiler/infoBenutzung']='You can use the Mailinglist during a period of <b>2 hours</b> or a <b>single</b> Usage under the adress <a href="mailto:%1$s">%1$s</a>.';
|
||||
$this->phrasen['mailverteiler/bestaetigeOeffnen']='Please confirm to unlock the Mailing list %1$s';
|
||||
$this->phrasen['mailverteiler/bestaetige']='Confirm';
|
||||
$this->phrasen['mailverteiler/personenImVerteiler']='People in this mailing list';
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user