Project

General

Profile

« Previous | Next » 

Revision 238

Added by stefan over 18 years ago

Fixed inconsistent line ending styles

View differences:

class.wb.php
36 36
class wb
37 37
{
38 38
	// General initialization function 
39
	// performed when frontend or backend is loaded.
39
	// performed when frontend or backend is loaded.

40 40
	function wb() {
41
	}
42

  
41
	}

42

  
43 43
	// Check whether we should show a page or not (for front-end)
44 44
	function show_page($page) {
45 45
		// First check if the page is set to private
......
72 72
			return false;
73 73
		}
74 74
	}
75

  
76
	// Modified addslashes function which takes into account magic_quotes
77
	function add_slashes($input) {
75
	// Modified addslashes function which takes into account magic_quotes
76
	function add_slashes($input) {
78 77
		if ( get_magic_quotes_gpc() || ( !is_string($input) ) ) {
79 78
			return $input;
80 79
		}
......
82 81
		return $output;
83 82
	}
84 83

  
85
	// Ditto for stripslashes
84
	// Ditto for stripslashes

86 85
	function strip_slashes($input) {
87 86
		if ( !get_magic_quotes_gpc() || ( !is_string($input) ) ) {
88 87
			return $input;
......
91 90
		return $output;
92 91
	}
93 92

  
94
	// Escape backslashes for use with mySQL LIKE strings
93
	// Escape backslashes for use with mySQL LIKE strings

95 94
	function escape_backslashes($input) {
96 95
		return str_replace("\\","\\\\",$input);
97 96
	}

Also available in: Unified diff