string, altfel => bare). */ if (!function_exists('tz_config_set')) { function tz_config_detect_type($text, $placeholder) { $q = preg_quote($placeholder, '/'); // %X% intre ghilimele simple sau duble => context de sir if (preg_match('/["\']\s*' . $q . '\s*["\']/', $text)) { return 'string'; } return 'bare'; } function tz_config_sanitize($value, $type) { if ($type === 'bare') { if (is_bool($value)) { return $value ? 'true' : 'false'; } $v = trim((string) $value); // Booleeni. Formularele din panou trimit "True"/"False" cu majuscula // (asa sunt scrise