This website works better with JavaScript.
Home
Help
Sign In
ESIR
/
KiWi-Calendar
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
when an event is added, redirect to index.php
master
AmarOk
10 years ago
parent
755d14d855
commit
3114d0fe8d
2 changed files
with
4 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
addEvent.php
+2
-1
databaseOperations.php
+ 2
- 0
addEvent.php
View File
@ -1,9 +1,11 @@
<
?
php
/**
/
require_once
(
'./CAS-1.3.4/CAS.php'
);
phpCAS
::
client
(
CAS_VERSION_2_0
,
'sso-cas.univ-rennes1.fr'
,
443
,
''
,
false
);
phpCAS
::
setNoCasServerValidation
();
phpCAS
::
forceAuthentication
();
$uid
=
phpCAS
::
getUser
();
/**/
include_once
(
'databaseOperations.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
,
'urlImage'
=>
$urlImage
,
'contact'
=>
$contact
));
echo
(
"
debug
"
);
$request
->
closeCursor
();
header
(
"
Location:index.php
"
);
exit
;
}
catch
(
PDOException
$e
)
{
Write
Preview
Loading…
Cancel
Save