Commit 6b03245b authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms

fix phpcas ticket problem, fixes #1

parent 69c6be43
......@@ -412,7 +412,7 @@ class GruppenkalenderPlugin extends AbstractStudIPStandardPlugin {
$msg = "";
if ($GLOBALS['perm']->have_studip_perm('autor', $range_id)) {
if ($modus == "delete_termin_really" && check_ticket($_REQUEST['ticket'])) {
if ($modus == "delete_termin_really" && check_ticket($_REQUEST['studip_ticket'])) {
$t = new DateObject();
$t->load($_REQUEST['termin_id']);
$serie_delete_mode = trim($_REQUEST['serie_delete_mode']);
......
pluginclassname=GruppenkalenderPlugin
pluginname=GruppenkalenderPlugin
origin=ZMML
version=1.2.9
version=1.2.9.1
dbscheme=gruppenkalender.sql
studipMinVersion=1.9
......@@ -7,7 +7,7 @@
<INPUT TYPE="hidden" NAME="modus2" VALUE="<?=$GLOBALS['modus2']?>">
<INPUT TYPE="hidden" NAME="termin_id" VALUE="<?=$termin_id?>">
<INPUT TYPE="hidden" NAME="ticket" VALUE="<?=$studipticket?>">
<INPUT TYPE="hidden" NAME="studip_ticket" VALUE="<?=$studipticket?>">
<TABLE BORDER="0" STYLE="font-size:smaller;">
<TR>
......
......@@ -73,7 +73,7 @@ function updateAbstandText() {
<? if ($t->getTerminId() != "" && $_REQUEST['modus'] == "delete_termin") {
echo "<FORM NAME=\"delete_termin\" METHOD=\"POST\" ACTION=\"".PluginEngine::getLink($this,array("datum"=>$datum, "plugin_subnavi_params"=>$_REQUEST['modus2'], "modus"=>"delete_termin_really"))."\">\n";
echo "<INPUT TYPE=\"hidden\" NAME=\"termin_id\" VALUE=\"".$t->getTerminId()."\">\n";
echo "<INPUT TYPE=\"hidden\" NAME=\"ticket\" VALUE=\"".$studipticket."\">\n";
echo "<INPUT TYPE=\"hidden\" NAME=\"studip_ticket\" VALUE=\"".$studipticket."\">\n";
echo "<TABLE BORDER=\"0\">\n";
echo " <TR>\n";
echo " <TD WIDTH=\"1%\" VALIGN=\"TOP\">\n";
......@@ -315,7 +315,7 @@ if ($tt['gruppen'])
<TABLE BORDER="0"><TR>
<TD><?=Studip\Button::create('speichern')?></TD>
<? if ($t->getTerminId() != "") { ?>
<TD><a href="<?=PluginEngine::getLink($this,array("datum"=>$datum, "plugin_subnavi_params"=>$_REQUEST['modus2'], "modus2"=>$_REQUEST['modus2'], "modus"=>$del_modus,"termin_id"=>$t->getTerminId(),"ticket"=>$studipticket))?>">lschen</a></TD>
<TD><a href="<?=PluginEngine::getLink($this,array("datum"=>$datum, "plugin_subnavi_params"=>$_REQUEST['modus2'], "modus2"=>$_REQUEST['modus2'], "modus"=>$del_modus,"termin_id"=>$t->getTerminId(),"studip_ticket"=>$studipticket))?>">lschen</a></TD>
<? } ?>
<TD><?=Studip\LinkButton::create('abbrechen',PluginEngine::getLink($this,array("datum"=>$datum, "plugin_subnavi_params"=>$_REQUEST['modus2'])))?></TD>
</TR></TABLE>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment