From 46715e5ca1451de2faa32b5866c37a40c8051423 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Wed, 5 Oct 2011 17:36:22 -0500 Subject: fixing code spacing in Common and CLI docs --- user_guide_src/source/general/common_functions.rst | 24 +++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'user_guide_src/source/general/common_functions.rst') diff --git a/user_guide_src/source/general/common_functions.rst b/user_guide_src/source/general/common_functions.rst index 73b6bccb1..70563b8d2 100644 --- a/user_guide_src/source/general/common_functions.rst +++ b/user_guide_src/source/general/common_functions.rst @@ -14,7 +14,10 @@ supplied version_number. :: - if (is_php('5.3.0')) {     $str = quoted_printable_encode($str); } + if (is_php('5.3.0')) + { + $str = quoted_printable_encode($str); + } Returns boolean TRUE if the installed version of PHP is equal to or greater than the supplied version number. Returns FALSE if the installed @@ -31,7 +34,14 @@ recommended on platforms where this information may be unreliable. :: - if (is_really_writable('file.txt')) {     echo "I could write to this if I wanted to"; } else {     echo "File is not writable"; } + if (is_really_writable('file.txt')) + { + echo "I could write to this if I wanted to"; + } + else + { + echo "File is not writable"; + } config_item('item_key') ========================= @@ -41,18 +51,18 @@ accessing configuration information, however config_item() can be used to retrieve single keys. See Config library documentation for more information. -show_error('message'), show_404('page'), log_message('level', -'message') -========== +show_error('message'), show_404('page'), log_message('level', 'message') +======================================================================== These are each outlined on the :doc:`Error Handling ` page. set_status_header(code, 'text'); -================================== +================================ Permits you to manually set a server status header. Example:: - set_status_header(401); // Sets the header as: Unauthorized + set_status_header(401); + // Sets the header as: Unauthorized `See here `_ for a full list of headers. -- cgit v1.2.3-24-g4f1b