+if ( $limit_view ) {
+ $plc_constants = array('PLC_API_HOST', 'PLC_API_PATH', 'PLC_API_PORT',
+ 'PLC_WWW_HOST', 'PLC_BOOT_HOST', 'PLC_PLANETFLOW_HOST',
+ 'PLC_NAME', 'PLC_SLICE_PREFIX', 'PLC_MONITOR_HOST',
+ 'PLC_MAIL_SUPPORT_ADDRESS',
+ 'PLC_MAIL_MOM_LIST_ADDRESS',
+ 'PLC_MAIL_SLICE_ADDRESS');
+} else {
+ $plc_constants = array();
+ $const = get_defined_constants(true);
+ foreach ( $const['user'] as $name => $v ){
+ if ( preg_match('/^PLC_/', $name) == 1 ){
+ $plc_constants[] = $name;
+ }
+ }
+}
+
+foreach ($plc_constants as $name) {
+ if (defined($name)) {
+ // Perl, PHP, Python, and sh all support strong single quoting
+ $value = "'" . str_replace("'", "\\'", constant($name)) . "'";
+ printf($format, $name, $value);
+ }
+}