/* Decoded by unphp.net */ class C_Utility_pC { public static function add_slashes($str) { if (get_magic_quotes_gpc() == 1) { return $str; } else { return addslashes($str); } } public static function indent_json($json) { $result = ''; $pos = 0; $strLen = strlen($json); $indentStr = "\x20\x20"; $newLine = "\xa"; for ($i = 0; $i <= $strLen; $i++) { $char = substr($json, $i, 1); if ($char == "\175" || $char == "\x5d") { $result .= $newLine; $pos--; for ($j = 0; $j < $pos; $j++) { $result .= $indentStr; } } $result .= $char; if ($char == "\173" || $char == "\x5b") { $result .= $newLine; if ($char == "\173" || $char == "\x5b") { $pos++; } for ($j = 0; $j < $pos; $j++) { $result .= $indentStr; } } } return $result; } public static function literalBool($boolValue) { return $boolValue ? "\164\x72\x75\x65" : "\146\141\x6c\x73\x65"; } }