summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_modules.php
diff options
context:
space:
mode:
Diffstat (limited to 'pts-core/functions/pts-functions_modules.php')
-rw-r--r--pts-core/functions/pts-functions_modules.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions_modules.php b/pts-core/functions/pts-functions_modules.php
index 18384b8..b64a87f 100644
--- a/pts-core/functions/pts-functions_modules.php
+++ b/pts-core/functions/pts-functions_modules.php
@@ -378,5 +378,13 @@ function pts_module_activity($process, $value = null)
return $return;
}
+function pts_set_environment_variable($name, $value)
+{
+ // Sets an environmental variable
+ if(getenv($name) == false)
+ {
+ putenv($name . "=" . $value);
+ }
+}
?>