mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-26 09:04:28 +00:00
- LV-Plan Link ohne Authentifizierung
- Gruppenverwaltung Attribut für Zutrittssystem hinzguefügt
This commit is contained in:
@@ -190,6 +190,7 @@ $(document).ready(function()
|
||||
<tr>
|
||||
<td class="cmscontent" rowspan="3" valign="top">
|
||||
|
||||
<table><tr><td valign="top" width="30%">
|
||||
<?php
|
||||
if (isset($uid))
|
||||
echo '<h2>'.$titelpre.' '.$vornamen." ".$nachname.' '.$titelpost.'</h2>';
|
||||
@@ -197,7 +198,23 @@ $(document).ready(function()
|
||||
echo $p->t('lvplan/nichtVorhanden').' '.$p->t('lvplan/bitteWendenSieSichAn').'<A href="mailto:'.MAIL_ADMIN.'">Admin</A>!';
|
||||
?>
|
||||
<a class="Item" href="stpl_week.php?pers_uid=<?php echo $uid; ?>"><?php echo $p->t("lvplan/persoenlicherLvPlan");?></a>
|
||||
<BR><BR>
|
||||
</td><td> </td><td valign="top">
|
||||
<?php
|
||||
echo'
|
||||
<h2>'.$p->t('lvplan/persoenlichenAbonnieren').'</h2>
|
||||
<div>
|
||||
<a class="Item" href="../../../cms/content.php?content_id='.$p->t('dms_link/lvplanSyncFAQ').'" target="_blank">'.$p->t('lvplan/anleitungLVPlanSync').'</a>
|
||||
<br>';
|
||||
|
||||
echo '<ul>';
|
||||
$caldavurl = APP_ROOT.'webdav/lvplan.php/calendars/'.$uid.'/LVPlan-'.$uid;
|
||||
echo '<li><a class="Item" href="'.$caldavurl.'">'.$p->t('lvplan/caldavURL').'</a></li>';
|
||||
echo '<li><a class="Item" href="'.APP_ROOT.'webdav/lvplan.php/principals/'.$uid.'">'.$p->t('lvplan/caldavURLMac').'</a></li>';
|
||||
echo '<li><a class="Item" href="'.APP_ROOT.'webdav/google.php?cal='.encryptData($uid,LVPLAN_CYPHER_KEY).'">'.$p->t('lvplan/googleURL').'</a></li>';
|
||||
echo '</ul>';
|
||||
echo ' </div>';
|
||||
?>
|
||||
</td></tr></table>
|
||||
<FORM name="Auswahl" action="stpl_week.php">
|
||||
<table class="tabcontent">
|
||||
<tr>
|
||||
|
||||
@@ -29,12 +29,12 @@
|
||||
* Update: 10.9.2005 von Christian Paminger
|
||||
*****************************************************************************/
|
||||
|
||||
require_once('../../../config/cis.config.inc.php');
|
||||
require_once('../../../include/functions.inc.php');
|
||||
require_once('../../../include/wochenplan.class.php');
|
||||
require_once('../../../include/datum.class.php');
|
||||
require_once('../../../include/studiensemester.class.php');
|
||||
require_once('../../../include/phrasen.class.php');
|
||||
require_once(dirname(__FILE__).'/../../../config/cis.config.inc.php');
|
||||
require_once(dirname(__FILE__).'/../../../include/functions.inc.php');
|
||||
require_once(dirname(__FILE__).'/../../../include/wochenplan.class.php');
|
||||
require_once(dirname(__FILE__).'/../../../include/datum.class.php');
|
||||
require_once(dirname(__FILE__).'/../../../include/studiensemester.class.php');
|
||||
require_once(dirname(__FILE__).'/../../../include/phrasen.class.php');
|
||||
|
||||
if(!$db = new basis_db())
|
||||
die($p->t('global/fehlerBeimOeffnenDerDatenbankverbindung'));
|
||||
@@ -74,8 +74,33 @@ $version=(isset($_GET['version'])?$_GET['version']:2);
|
||||
$target=(isset($_GET['target'])?$_GET['target']:null);
|
||||
|
||||
$stsem=(isset($_GET['stsem'])?$_GET['stsem']:'');
|
||||
// UID bestimmen
|
||||
$uid = get_uid();
|
||||
|
||||
|
||||
if(isset($_GET["cal"]))
|
||||
{
|
||||
// Nicht authentifizierter Zugriff per Codierter UID
|
||||
// fuer Abonnierung im Google ueber /webdav/google.php
|
||||
$cal = $_GET["cal"];
|
||||
$uid=decryptData($cal,LVPLAN_CYPHER_KEY);
|
||||
//Wenn der Key manuell geaendert wird koennen Fehlerhaft kodierte Zeichen
|
||||
//entstehen und fuehren zu DB fehlern deshalb werden falsch kodierte uids hier aussortiert
|
||||
if(!check_utf8($uid))
|
||||
die('Fehlerhafter Parameter');
|
||||
|
||||
//Pruefen ob dieser Benutzer auch wirklich existiert
|
||||
$benutzer = new benutzer();
|
||||
if(!$benutzer->load($uid))
|
||||
die('Ungueltiger Benutzername');
|
||||
|
||||
//Output-Format wird auf ical geaendert
|
||||
$target='ical';
|
||||
$format='ical';
|
||||
}
|
||||
else
|
||||
{
|
||||
// UID bestimmen
|
||||
$uid = get_uid();
|
||||
}
|
||||
|
||||
// Beginn Ende setzen
|
||||
if(!isset($begin))
|
||||
|
||||
Reference in New Issue
Block a user