init
This commit is contained in:
18
modules/EcmServices/realizationListSetSession.php
Normal file
18
modules/EcmServices/realizationListSetSession.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
|
||||
if ($_REQUEST['temp_id']) {
|
||||
session_start();
|
||||
$temp_id = $_REQUEST['temp_id'];
|
||||
$_SESSION[$temp_id] = array();
|
||||
|
||||
$_POST = $_REQUEST;
|
||||
|
||||
$json = getJSONobj();
|
||||
$pll = array(); $i=0; while(isset($_POST['p_'.$i])) { $pll[] = $json->decode(htmlspecialchars_decode($_POST['p_'.$i])); $_POST['p_'.$i] = ''; $i++;}
|
||||
|
||||
|
||||
$_SESSION[$temp_id] = $pll;
|
||||
die();;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user