Browse Source

when an event is added, redirect to index.php

master
AmarOk 10 years ago
parent
commit
3114d0fe8d
2 changed files with 4 additions and 1 deletions
  1. +2
    -0
      addEvent.php
  2. +2
    -1
      databaseOperations.php

+ 2
- 0
addEvent.php View File

@ -1,9 +1,11 @@
<?php <?php
/** /
require_once('./CAS-1.3.4/CAS.php'); require_once('./CAS-1.3.4/CAS.php');
phpCAS::client(CAS_VERSION_2_0, 'sso-cas.univ-rennes1.fr', 443, '', false); phpCAS::client(CAS_VERSION_2_0, 'sso-cas.univ-rennes1.fr', 443, '', false);
phpCAS::setNoCasServerValidation(); phpCAS::setNoCasServerValidation();
phpCAS::forceAuthentication(); phpCAS::forceAuthentication();
$uid = phpCAS::getUser(); $uid = phpCAS::getUser();
/**/
include_once('databaseOperations.php'); include_once('databaseOperations.php');
include('datetimeOperations.php'); include('datetimeOperations.php');


+ 2
- 1
databaseOperations.php View File

@ -251,8 +251,9 @@ function addEvent($db, $titre, $localisation, $dtstart, $dtend, $description, $u
'url'=>$url, 'url'=>$url,
'urlImage'=>$urlImage, 'urlImage'=>$urlImage,
'contact'=>$contact)); 'contact'=>$contact));
echo("debug");
$request->closeCursor(); $request->closeCursor();
header("Location:index.php");
exit;
} }
catch(PDOException $e) catch(PDOException $e)
{ {


Loading…
Cancel
Save