/
task_Add.php
30 lines (27 loc) · 1.05 KB
/
task_Add.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/*
* Practical Agile Scrum tool
*
* Copyright 2013-2017, P.P. Labuschagne
* Released under the MIT license.
* https://github.com/paul-lab/practical-agile/blob/master/_Licence.txt
*
* Homepage:
* http://practicalagile.co.uk
* http://practicalagile.uk
*
*/
require_once('include/dbconfig.inc.php');
require_once('include/common.php');
$user_details = check_user($_SESSION['user_identifier']);
if(!$user_details){
exit();
}
if (empty($_REQUEST['user'])) $_REQUEST['user']='""';
if (empty($_REQUEST['exph'])) $_REQUEST['exph']=0;
if (empty($_REQUEST['acth'])) $_REQUEST['acth']=0;
$sql= 'INSERT INTO task (Story_AID, User_ID,`Rank`,`Desc`,Done,Expected_Hours,Actual_Hours) VALUES('.
$_REQUEST['AID'].', '.$_REQUEST['user'].', '.'30000'.', "'.htmlentities($_REQUEST['desc']).'", '.'0'.', '.$_REQUEST['exph'].', '.$_REQUEST['acth'].')';
$DBConn->directsql($sql);
auditit($_REQUEST['PID'],$_REQUEST['AID'],$_SESSION['Email'],'Added task',$_GET['desc'].' Assign to:'.Get_User($_REQUEST['user']).' Expect. h:'.$_REQUEST['exph'].' Act. h:'.$_REQUEST['acth']);
?>