-
Notifications
You must be signed in to change notification settings - Fork 7
/
nuligiferion.php
executable file
·22 lines (21 loc) · 892 Bytes
/
nuligiferion.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?
include "db.inc.php";
malfermidatumbazon();
// ER 05.10.2015 : correction pour passage en PHP 5.4
//session_register("persono_id");
$_SESSION['persono_id']=$persono_id;
if ($persono_id=="") {header("Location:index.php?erarkodo=4");} else {
$demando = "select persono from ferioj where id=".$idferion;
mysql_select_db( "ikurso");
$result = mysql_query($demando) or die ( "INSERT : malbona demando :".$demando);
while($row = mysql_fetch_array($result)) {
$havanto_da_ferio=$row["persono"];
}
if ($havanto_da_ferio!=$persono_id) {header("Location:index.php?erarkodo=4");} else {
$demando = "DELETE from ferioj where id=".$idferion;
mysql_select_db( "ikurso");
$result = mysql_query($demando) or die ( "INSERT : malbona demando :".$demando);
header("Location:aldoniferion.php");
}
}
?>