B2C Service – Detect Production vs. Test
This snippet of code is great for CPMs, widgets, and File Manager files to detect the interface name.
<?php
if (cfg_get((120)) == "interfaceName")
{
// production
}
else
{
// test site like TST1
}
?>
This snippet of code is great for CPMs, widgets, and File Manager files to detect the interface name.
<?php
if (cfg_get((120)) == "interfaceName")
{
// production
}
else
{
// test site like TST1
}
?>