Add php files
This commit is contained in:
15
modules/EcmFkVats/updateYear.php
Executable file
15
modules/EcmFkVats/updateYear.php
Executable file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
if (!defined('sugarEntry') || !sugarEntry)
|
||||
die('Not A Valid Entry Point');
|
||||
|
||||
session_start();
|
||||
|
||||
$yearDateTime = DateTime::createFromFormat('Y', $_GET['year']);
|
||||
|
||||
if($yearDateTime) {
|
||||
$_SESSION['fk_year'] = $yearDateTime->format('Y');
|
||||
}
|
||||
|
||||
echo $_SESSION['fk_year'];
|
||||
die();
|
||||
Reference in New Issue
Block a user