diff --git a/.settings/org.eclipse.php.formatter.core.prefs b/.settings/org.eclipse.php.formatter.core.prefs new file mode 100644 index 0000000..dd455e5 --- /dev/null +++ b/.settings/org.eclipse.php.formatter.core.prefs @@ -0,0 +1,210 @@ +eclipse.preferences.version=1 +formatterProfile=_MrOlsen-PHP +indentationChar=\ +insert_space_after_opening_paren_in_declare=false +insert_space_before_closing_paren_in_declare=false +insert_space_before_opening_paren_in_declare=false +org.eclipse.php.core.formatter.insert_new_line_in_function_invoke=0 +org.eclipse.php.formatter.core.formatter.alignment_for_arguments_in_allocation_expression_force_split=false +org.eclipse.php.formatter.core.formatter.alignment_for_arguments_in_allocation_expression_indent_policy=0 +org.eclipse.php.formatter.core.formatter.alignment_for_arguments_in_allocation_expression_line_wrap_policy=0 +org.eclipse.php.formatter.core.formatter.alignment_for_arguments_in_method_invocation_force_split=false +org.eclipse.php.formatter.core.formatter.alignment_for_arguments_in_method_invocation_indent_policy=0 +org.eclipse.php.formatter.core.formatter.alignment_for_arguments_in_method_invocation_line_wrap_policy=0 +org.eclipse.php.formatter.core.formatter.alignment_for_assignment_force_split=false +org.eclipse.php.formatter.core.formatter.alignment_for_assignment_indent_policy=0 +org.eclipse.php.formatter.core.formatter.alignment_for_assignment_line_wrap_policy=0 +org.eclipse.php.formatter.core.formatter.alignment_for_binary_expression_force_split=false +org.eclipse.php.formatter.core.formatter.alignment_for_binary_expression_indent_policy=0 +org.eclipse.php.formatter.core.formatter.alignment_for_binary_expression_line_wrap_policy=0 +org.eclipse.php.formatter.core.formatter.alignment_for_compact_if_force_split=false +org.eclipse.php.formatter.core.formatter.alignment_for_compact_if_indent_policy=0 +org.eclipse.php.formatter.core.formatter.alignment_for_compact_if_line_wrap_policy=0 +org.eclipse.php.formatter.core.formatter.alignment_for_conditional_expression_force_split=false +org.eclipse.php.formatter.core.formatter.alignment_for_conditional_expression_indent_policy=0 +org.eclipse.php.formatter.core.formatter.alignment_for_conditional_expression_line_wrap_policy=0 +org.eclipse.php.formatter.core.formatter.alignment_for_expressions_in_array_initializer_force_split=true +org.eclipse.php.formatter.core.formatter.alignment_for_expressions_in_array_initializer_indent_policy=0 +org.eclipse.php.formatter.core.formatter.alignment_for_expressions_in_array_initializer_line_wrap_policy=3 +org.eclipse.php.formatter.core.formatter.alignment_for_parameters_in_method_declaration_force_split=false +org.eclipse.php.formatter.core.formatter.alignment_for_parameters_in_method_declaration_indent_policy=0 +org.eclipse.php.formatter.core.formatter.alignment_for_parameters_in_method_declaration_line_wrap_policy=0 +org.eclipse.php.formatter.core.formatter.alignment_for_superclass_in_type_declaration_force_split=false +org.eclipse.php.formatter.core.formatter.alignment_for_superclass_in_type_declaration_indent_policy=0 +org.eclipse.php.formatter.core.formatter.alignment_for_superclass_in_type_declaration_line_wrap_policy=0 +org.eclipse.php.formatter.core.formatter.alignment_for_superinterfaces_in_type_declaration_force_split=false +org.eclipse.php.formatter.core.formatter.alignment_for_superinterfaces_in_type_declaration_indent_policy=0 +org.eclipse.php.formatter.core.formatter.alignment_for_superinterfaces_in_type_declaration_line_wrap_policy=0 +org.eclipse.php.formatter.core.formatter.blank_lines_before_field=0 +org.eclipse.php.formatter.core.formatter.blank_lines_before_member_type=0 +org.eclipse.php.formatter.core.formatter.blank_lines_before_method=0 +org.eclipse.php.formatter.core.formatter.blank_lines_between_type_declarations=0 +org.eclipse.php.formatter.core.formatter.brace_position_for_block=0 +org.eclipse.php.formatter.core.formatter.brace_position_for_lambda_function_declaration=0 +org.eclipse.php.formatter.core.formatter.brace_position_for_method_declaration=0 +org.eclipse.php.formatter.core.formatter.brace_position_for_switch=0 +org.eclipse.php.formatter.core.formatter.brace_position_for_type_declaration=0 +org.eclipse.php.formatter.core.formatter.comment.clear_blank_lines_in_block_comment=false +org.eclipse.php.formatter.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false +org.eclipse.php.formatter.core.formatter.comment.format_block_comments=true +org.eclipse.php.formatter.core.formatter.comment.format_header=false +org.eclipse.php.formatter.core.formatter.comment.format_html=true +org.eclipse.php.formatter.core.formatter.comment.format_javadoc_comments=true +org.eclipse.php.formatter.core.formatter.comment.format_line_comments=true +org.eclipse.php.formatter.core.formatter.comment.format_source_code=true +org.eclipse.php.formatter.core.formatter.comment.indent_parameter_description=true +org.eclipse.php.formatter.core.formatter.comment.indent_root_tags=true +org.eclipse.php.formatter.core.formatter.comment.insert_new_line_before_root_tags=true +org.eclipse.php.formatter.core.formatter.comment.insert_new_line_for_parameter=true +org.eclipse.php.formatter.core.formatter.comment.keep_empty_line_for_empty_description=true +org.eclipse.php.formatter.core.formatter.comment.line_length=9999 +org.eclipse.php.formatter.core.formatter.comment.never_format_unknown_tags=true +org.eclipse.php.formatter.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.php.formatter.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.php.formatter.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.php.formatter.core.formatter.continuation_indentation=2 +org.eclipse.php.formatter.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.php.formatter.core.formatter.disabling_tag=@formatter\:off +org.eclipse.php.formatter.core.formatter.enabling_tag=@formatter\:on +org.eclipse.php.formatter.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.php.formatter.core.formatter.format_line_comment_starting_on_first_column=true +org.eclipse.php.formatter.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.php.formatter.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.php.formatter.core.formatter.indent_empty_lines=false +org.eclipse.php.formatter.core.formatter.indent_statements_compare_to_block=true +org.eclipse.php.formatter.core.formatter.indent_statements_compare_to_body=true +org.eclipse.php.formatter.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.php.formatter.core.formatter.indent_switchstatements_compare_to_switch=true +org.eclipse.php.formatter.core.formatter.indentation.size=2 +org.eclipse.php.formatter.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=false +org.eclipse.php.formatter.core.formatter.insert_new_line_before_catch_in_try_statement=false +org.eclipse.php.formatter.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=true +org.eclipse.php.formatter.core.formatter.insert_new_line_before_else_in_if_statement=false +org.eclipse.php.formatter.core.formatter.insert_new_line_before_finally_in_try_statement=false +org.eclipse.php.formatter.core.formatter.insert_new_line_before_while_in_do_statement=false +org.eclipse.php.formatter.core.formatter.insert_new_line_in_empty_block=true +org.eclipse.php.formatter.core.formatter.insert_new_line_in_empty_method_body=true +org.eclipse.php.formatter.core.formatter.insert_new_line_in_empty_type_declaration=true +org.eclipse.php.formatter.core.formatter.insert_space_after_arrow_in_array_creation=true +org.eclipse.php.formatter.core.formatter.insert_space_after_arrow_in_field_access=false +org.eclipse.php.formatter.core.formatter.insert_space_after_arrow_in_foreach=true +org.eclipse.php.formatter.core.formatter.insert_space_after_arrow_in_method_invocation=false +org.eclipse.php.formatter.core.formatter.insert_space_after_arrow_in_yield=true +org.eclipse.php.formatter.core.formatter.insert_space_after_assignment_operator=true +org.eclipse.php.formatter.core.formatter.insert_space_after_binary_operator=true +org.eclipse.php.formatter.core.formatter.insert_space_after_closing_brace_in_block=true +org.eclipse.php.formatter.core.formatter.insert_space_after_closing_paren_in_cast=true +org.eclipse.php.formatter.core.formatter.insert_space_after_colon_in_conditional=true +org.eclipse.php.formatter.core.formatter.insert_space_after_coloncolon_in_field_access=false +org.eclipse.php.formatter.core.formatter.insert_space_after_coloncolon_in_method_invocation=false +org.eclipse.php.formatter.core.formatter.insert_space_after_comma_in_array_creation=false +org.eclipse.php.formatter.core.formatter.insert_space_after_comma_in_echo=true +org.eclipse.php.formatter.core.formatter.insert_space_after_comma_in_for_inits=true +org.eclipse.php.formatter.core.formatter.insert_space_after_comma_in_global=true +org.eclipse.php.formatter.core.formatter.insert_space_after_comma_in_list=true +org.eclipse.php.formatter.core.formatter.insert_space_after_comma_in_method_declaration_parameters=true +org.eclipse.php.formatter.core.formatter.insert_space_after_comma_in_method_invocation_arguments=true +org.eclipse.php.formatter.core.formatter.insert_space_after_comma_in_multiple_constant_declarations=true +org.eclipse.php.formatter.core.formatter.insert_space_after_comma_in_multiple_field_declarations=true +org.eclipse.php.formatter.core.formatter.insert_space_after_comma_in_static=true +org.eclipse.php.formatter.core.formatter.insert_space_after_comma_in_superinterfaces=true +org.eclipse.php.formatter.core.formatter.insert_space_after_opening_bracket_in_array_reference=false +org.eclipse.php.formatter.core.formatter.insert_space_after_opening_paren_in_array_creation=false +org.eclipse.php.formatter.core.formatter.insert_space_after_opening_paren_in_cast=true +org.eclipse.php.formatter.core.formatter.insert_space_after_opening_paren_in_catch=true +org.eclipse.php.formatter.core.formatter.insert_space_after_opening_paren_in_for=false +org.eclipse.php.formatter.core.formatter.insert_space_after_opening_paren_in_foreach=true +org.eclipse.php.formatter.core.formatter.insert_space_after_opening_paren_in_if=false +org.eclipse.php.formatter.core.formatter.insert_space_after_opening_paren_in_list=true +org.eclipse.php.formatter.core.formatter.insert_space_after_opening_paren_in_method_declaration=false +org.eclipse.php.formatter.core.formatter.insert_space_after_opening_paren_in_method_invocation=true +org.eclipse.php.formatter.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=false +org.eclipse.php.formatter.core.formatter.insert_space_after_opening_paren_in_switch=false +org.eclipse.php.formatter.core.formatter.insert_space_after_opening_paren_in_while=true +org.eclipse.php.formatter.core.formatter.insert_space_after_postfix_operator=false +org.eclipse.php.formatter.core.formatter.insert_space_after_prefix_operator=true +org.eclipse.php.formatter.core.formatter.insert_space_after_question_in_conditional=true +org.eclipse.php.formatter.core.formatter.insert_space_after_semicolon_in_for=true +org.eclipse.php.formatter.core.formatter.insert_space_after_unary_operator=true +org.eclipse.php.formatter.core.formatter.insert_space_before_arrow_in_array_creation=true +org.eclipse.php.formatter.core.formatter.insert_space_before_arrow_in_field_access=false +org.eclipse.php.formatter.core.formatter.insert_space_before_arrow_in_foreach=true +org.eclipse.php.formatter.core.formatter.insert_space_before_arrow_in_method_invocation=false +org.eclipse.php.formatter.core.formatter.insert_space_before_arrow_in_yield=true +org.eclipse.php.formatter.core.formatter.insert_space_before_assignment_operator=true +org.eclipse.php.formatter.core.formatter.insert_space_before_binary_operator=true +org.eclipse.php.formatter.core.formatter.insert_space_before_closing_bracket_in_array_reference=false +org.eclipse.php.formatter.core.formatter.insert_space_before_closing_paren_in_array_creation=true +org.eclipse.php.formatter.core.formatter.insert_space_before_closing_paren_in_cast=true +org.eclipse.php.formatter.core.formatter.insert_space_before_closing_paren_in_catch=true +org.eclipse.php.formatter.core.formatter.insert_space_before_closing_paren_in_for=false +org.eclipse.php.formatter.core.formatter.insert_space_before_closing_paren_in_foreach=true +org.eclipse.php.formatter.core.formatter.insert_space_before_closing_paren_in_if=false +org.eclipse.php.formatter.core.formatter.insert_space_before_closing_paren_in_list=true +org.eclipse.php.formatter.core.formatter.insert_space_before_closing_paren_in_method_declaration=false +org.eclipse.php.formatter.core.formatter.insert_space_before_closing_paren_in_method_invocation=true +org.eclipse.php.formatter.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=false +org.eclipse.php.formatter.core.formatter.insert_space_before_closing_paren_in_switch=false +org.eclipse.php.formatter.core.formatter.insert_space_before_closing_paren_in_while=true +org.eclipse.php.formatter.core.formatter.insert_space_before_colon_in_case=true +org.eclipse.php.formatter.core.formatter.insert_space_before_colon_in_conditional=true +org.eclipse.php.formatter.core.formatter.insert_space_before_colon_in_default=true +org.eclipse.php.formatter.core.formatter.insert_space_before_coloncolon_in_field_access=false +org.eclipse.php.formatter.core.formatter.insert_space_before_coloncolon_in_method_invocation=false +org.eclipse.php.formatter.core.formatter.insert_space_before_comma_in_array_creation=false +org.eclipse.php.formatter.core.formatter.insert_space_before_comma_in_echo=false +org.eclipse.php.formatter.core.formatter.insert_space_before_comma_in_for_inits=false +org.eclipse.php.formatter.core.formatter.insert_space_before_comma_in_global=false +org.eclipse.php.formatter.core.formatter.insert_space_before_comma_in_list=false +org.eclipse.php.formatter.core.formatter.insert_space_before_comma_in_method_declaration_parameters=false +org.eclipse.php.formatter.core.formatter.insert_space_before_comma_in_method_invocation_arguments=false +org.eclipse.php.formatter.core.formatter.insert_space_before_comma_in_multiple_constant_declarations=false +org.eclipse.php.formatter.core.formatter.insert_space_before_comma_in_multiple_field_declarations=false +org.eclipse.php.formatter.core.formatter.insert_space_before_comma_in_static=false +org.eclipse.php.formatter.core.formatter.insert_space_before_comma_in_superinterfaces=false +org.eclipse.php.formatter.core.formatter.insert_space_before_opening_brace_in_block=true +org.eclipse.php.formatter.core.formatter.insert_space_before_opening_brace_in_method_declaration=true +org.eclipse.php.formatter.core.formatter.insert_space_before_opening_brace_in_switch=true +org.eclipse.php.formatter.core.formatter.insert_space_before_opening_brace_in_type_declaration=true +org.eclipse.php.formatter.core.formatter.insert_space_before_opening_bracket_in_array_reference=true +org.eclipse.php.formatter.core.formatter.insert_space_before_opening_paren_in_array_creation=true +org.eclipse.php.formatter.core.formatter.insert_space_before_opening_paren_in_catch=true +org.eclipse.php.formatter.core.formatter.insert_space_before_opening_paren_in_for=false +org.eclipse.php.formatter.core.formatter.insert_space_before_opening_paren_in_foreach=true +org.eclipse.php.formatter.core.formatter.insert_space_before_opening_paren_in_if=true +org.eclipse.php.formatter.core.formatter.insert_space_before_opening_paren_in_list=true +org.eclipse.php.formatter.core.formatter.insert_space_before_opening_paren_in_method_declaration=false +org.eclipse.php.formatter.core.formatter.insert_space_before_opening_paren_in_method_invocation=true +org.eclipse.php.formatter.core.formatter.insert_space_before_opening_paren_in_switch=true +org.eclipse.php.formatter.core.formatter.insert_space_before_opening_paren_in_while=true +org.eclipse.php.formatter.core.formatter.insert_space_before_postfix_operator=true +org.eclipse.php.formatter.core.formatter.insert_space_before_prefix_operator=false +org.eclipse.php.formatter.core.formatter.insert_space_before_question_in_conditional=true +org.eclipse.php.formatter.core.formatter.insert_space_before_semicolon=false +org.eclipse.php.formatter.core.formatter.insert_space_before_semicolon_in_for=false +org.eclipse.php.formatter.core.formatter.insert_space_before_unary_operator=false +org.eclipse.php.formatter.core.formatter.insert_space_between_brackets_in_array_type_reference=false +org.eclipse.php.formatter.core.formatter.insert_space_between_empty_parens_in_method_declaration=false +org.eclipse.php.formatter.core.formatter.insert_space_between_empty_parens_in_method_invocation=false +org.eclipse.php.formatter.core.formatter.join_lines_in_comments=true +org.eclipse.php.formatter.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.php.formatter.core.formatter.keep_elseif_statement_on_same_line=true +org.eclipse.php.formatter.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.php.formatter.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.php.formatter.core.formatter.keep_trailing_comma_in_list=false +org.eclipse.php.formatter.core.formatter.lineSplit=300 +org.eclipse.php.formatter.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.php.formatter.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.php.formatter.core.formatter.number_of_blank_lines_after_namespace=1 +org.eclipse.php.formatter.core.formatter.number_of_blank_lines_after_use_statements=1 +org.eclipse.php.formatter.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.php.formatter.core.formatter.number_of_blank_lines_at_end_of_class_body=0 +org.eclipse.php.formatter.core.formatter.number_of_blank_lines_at_end_of_method_body=0 +org.eclipse.php.formatter.core.formatter.number_of_blank_lines_before_namespace=1 +org.eclipse.php.formatter.core.formatter.number_of_blank_lines_before_use_statements=0 +org.eclipse.php.formatter.core.formatter.number_of_blank_lines_between_namespaces=0 +org.eclipse.php.formatter.core.formatter.number_of_blank_lines_between_use_statements=0 +org.eclipse.php.formatter.core.formatter.number_of_empty_lines_to_preserve=1 +org.eclipse.php.formatter.core.formatter.put_empty_statement_on_new_line=true +org.eclipse.php.formatter.core.formatter.tabulation.size=4 +org.eclipse.php.formatter.core.formatter.use_on_off_tags=false diff --git a/.settings/org.eclipse.php.ui.prefs b/.settings/org.eclipse.php.ui.prefs new file mode 100644 index 0000000..3e2035c --- /dev/null +++ b/.settings/org.eclipse.php.ui.prefs @@ -0,0 +1,7 @@ +cleanup.format.on.save=true +cleanup.organize.on.save=true +cleanup.remove_trailing_whitespaces=true +cleanup.remove_trailing_whitespaces_all=true +cleanup.remove_trailing_whitespaces_ignore_empty=false +eclipse.preferences.version=1 +org.eclipse.php.ui.text.custom_code_templates= diff --git a/docroot/index.php b/docroot/index.php index d4c24ed..0936e25 100755 --- a/docroot/index.php +++ b/docroot/index.php @@ -1,98 +1,104 @@ module )) { + $rData = array (); + $rData ['result'] = 'EXCEPTION'; + $rData ['errorCode'] = - 1; + $rData ['errorString'] = 'FOOBAR'; + $rData ['accessToken'] = 0; + print (json_encode ( $rData )) ; + exit ( 0 ); + } - if (! isset($pData->module)) { - $rData = array(); - $rData['result'] = 'EXCEPTION'; - $rData['errorCode'] = -1; - $rData['errorString'] = 'FOOBAR'; - $rData['accessToken'] = 0; - print(json_encode($rData)); - exit(0); - } - - switch ($pData->module) { - case 'user': - userModule($pData); - break; - case 'session': - sessionModule($pData); - break; - default: - $rData = array(); - $rData['result'] = 'EXCEPTION'; - $rData['errorCode'] = -1; - $rData['errorString'] = 'INVALID MODULE: ' . $pData->module; - $rData['accessToken'] = 0; - print(json_encode($rData)); - } + switch ($pData->module) { + case 'user' : + userModule ( $pData ); + break; + case 'session' : + sessionModule ( $pData ); + break; + default : + $rData = array (); + $rData ['result'] = 'EXCEPTION'; + $rData ['errorCode'] = - 1; + $rData ['errorString'] = 'INVALID MODULE: ' . $pData->module; + $rData ['accessToken'] = 0; + print (json_encode ( $rData )) ; + } } +function userModule($pData) { + if (! isset ( $pData->cmd )) { + Header ( "Location: http://www.Zirror.com" ); + exit ( 0 ); + } -function userModule($pData) -{ - if (! isset($pData->cmd)) { - Header("Location: http://www.Zirror.com"); - exit(0); - } + $rData = array (); - $rData = array(); - - switch ($pData->cmd) { - case "register": - if ($pData->username != "test@zirror.com") { - $rData['result'] = 'GRANTED'; - $rData['errorCode'] = 0; - $rData['errorString'] = "Account " . $pData->username . " created."; - } else { - $rData['result'] = 'DENIED'; - $rData['errorCode'] = 2; - $rData['errorString'] = "Account " . $pData->username . " already exissts."; - } - break; - case "login": - if ($pData->username == "test@zirror.com" && $pData->password == "osx") { - $rData['result'] = 'GRANTED'; - $rData['errorCode'] = 0; - $rData['errorString'] = "Access Granted"; - $rData['accessToken'] = time(); - } else { - $rData['result'] = 'DENIED'; - $rData['errorCode'] = 1; - $rData['errorString'] = "Access Denied"; - $rData['accessToken'] = 0; - } - break; - default: - $rData['result'] = 'EXCEPTION'; - $rData['errorCode'] = - 1; - $rData['errorString'] = 'FOOBAR'; - $rData['accessToken'] = 0; - } + switch ($pData->cmd) { + case "register" : + if ($pData->username != "test@zirror.com") { + $rData ['result'] = 'GRANTED'; + $rData ['errorCode'] = 0; + $rData ['errorString'] = "Account " . $pData->username . " created."; + } else { + $rData ['result'] = 'DENIED'; + $rData ['errorCode'] = 2; + $rData ['errorString'] = "Account " . $pData->username . " already exissts."; + } + break; + case "login" : + if ($pData->username == "test@zirror.com" && $pData->password == "osx") { + $rData ['result'] = 'GRANTED'; + $rData ['errorCode'] = 0; + $rData ['errorString'] = "Access Granted"; + $rData ['accessToken'] = time (); + } else { + $rData ['result'] = 'DENIED'; + $rData ['errorCode'] = 1; + $rData ['errorString'] = "Access Denied"; + $rData ['accessToken'] = 0; + } + break; + default : + $rData ['result'] = 'EXCEPTION'; + $rData ['errorCode'] = - 1; + $rData ['errorString'] = 'FOOBAR'; + $rData ['accessToken'] = 0; + } - print(json_encode($rData)); + print (json_encode ( $rData )) ; } +function sessionModule($pData) { + $rData = array (); -function sessionModule($pData) -{ - $rData = array(); - $rData['result'] = 'EXCEPTION'; - $rData['errorCode'] = - 1; - $rData['errorString'] = 'FOOBAR'; - $rData['accessToken'] = 0; - print(json_encode($rData)); + switch ($pData->cmd) { + case 'newSession' : + $rData ['result'] = 'GRANTED'; + $rData ['errorCode'] = 0; + $rData ['errorString'] = 'Number Sequence'; + $rData ['accessToken'] = time (); + break; + + default : + + $rData ['result'] = 'EXCEPTION'; + $rData ['errorCode'] = - 1; + $rData ['errorString'] = 'FOOBAR'; + $rData ['accessToken'] = 0; + } + print (json_encode ( $rData )) ; } ?>