Project

General

Profile

« Previous | Next » 

Revision 242

Added by stefan about 19 years ago

Moved page_link function to class wb and changed page_link() in functions.php to use the wb class method

View differences:

class.wb.php
95 95
		return str_replace("\\","\\\\",$input);
96 96
	}
97 97

  
98
	function page_link($link){
99
		// Check for :// in the link (used in URL's) as well as mailto:
100
		if(strstr($link, '://') == '' AND substr($link, 0, 7) != 'mailto:') {
101
			return WB_URL.PAGES_DIRECTORY.$link.PAGE_EXTENSION;
102
		} else {
103
			return $link;
104
		}
105
	}
106
	
98 107
	// Get POST data
99 108
	function get_post($field) {
100 109
		if(isset($_POST[$field])) {
......
186 195

  
187 196
	
188 197
}
189
?>

198
?>

Also available in: Unified diff