diff --git a/.settings/org.eclipse.php.formatter.core.prefs b/.settings/org.eclipse.php.formatter.core.prefs index dd455e5..4dab866 100644 --- a/.settings/org.eclipse.php.formatter.core.prefs +++ b/.settings/org.eclipse.php.formatter.core.prefs @@ -35,10 +35,10 @@ 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.blank_lines_before_field=1 +org.eclipse.php.formatter.core.formatter.blank_lines_before_member_type=1 +org.eclipse.php.formatter.core.formatter.blank_lines_before_method=1 +org.eclipse.php.formatter.core.formatter.blank_lines_between_type_declarations=1 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 @@ -197,12 +197,12 @@ 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_at_beginning_of_method_body=1 +org.eclipse.php.formatter.core.formatter.number_of_blank_lines_at_end_of_class_body=1 +org.eclipse.php.formatter.core.formatter.number_of_blank_lines_at_end_of_method_body=1 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_namespaces=1 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 diff --git a/docroot/index.php b/docroot/index.php index 0936e25..8e5121b 100755 --- a/docroot/index.php +++ b/docroot/index.php @@ -9,7 +9,9 @@ Header ( "Location: http://www.Zirror.com" ); exit ( 0 ); } + function processPost($jData) { + $pData = json_decode ( $jData ); if (! isset ( $pData->module )) { @@ -37,8 +39,11 @@ $rData ['accessToken'] = 0; print (json_encode ( $rData )) ; } + } + function userModule($pData) { + if (! isset ( $pData->cmd )) { Header ( "Location: http://www.Zirror.com" ); exit ( 0 ); @@ -79,8 +84,11 @@ } print (json_encode ( $rData )) ; + } + function sessionModule($pData) { + $rData = array (); switch ($pData->cmd) { @@ -99,6 +107,7 @@ $rData ['accessToken'] = 0; } print (json_encode ( $rData )) ; + } ?>