Revision 36
Added by stefan about 19 years ago
class.wb.php | ||
---|---|---|
73 | 73 |
} |
74 | 74 |
} |
75 | 75 |
|
76 |
function stripslashes($input) { |
|
77 |
if ( !get_magic_quotes_gpc() || ( !is_string($input) ) ) { |
|
78 |
return $input; |
|
79 |
} |
|
80 |
$output = stripslashes($input); |
|
81 |
return $output; |
|
82 |
} |
|
83 |
|
|
76 | 84 |
// Get POST data |
77 | 85 |
function get_post($field) { |
78 | 86 |
if(isset($_POST[$field])) { |
... | ... | |
131 | 139 |
|
132 | 140 |
// Get the current users display name |
133 | 141 |
function get_display_name() { |
134 |
return stripslashes($_SESSION['DISPLAY_NAME']); |
|
142 |
return $this->stripslashes($_SESSION['DISPLAY_NAME']);
|
|
135 | 143 |
} |
136 | 144 |
|
137 | 145 |
// Get the current users email address |
Also available in: Unified diff
Created new stripslashes method in class wb. Changed stripslashes() calls to method calls.