Project

General

Profile

« Previous | Next » 

Revision 36

Added by stefan about 19 years ago

Created new stripslashes method in class wb. Changed stripslashes() calls to method calls.

View differences:

index.php
24 24
require('../../config.php');
25 25
require_once(WB_PATH.'/framework/class.admin.php');
26 26
$admin = new admin('Pages', 'pages');
27

  
27
echo "hier: ".get_magic_quotes_gpc();
28 28
// Include the WB functions file
29 29
require_once(WB_PATH.'/framework/functions.php');
30 30

  
......
151 151
				</td>
152 152
				<?php if($admin->get_permission('pages_modify') == true AND $can_modify == true) { ?>
153 153
				<td>
154
					<a href="<?php echo ADMIN_URL; ?>/pages/modify.php?page_id=<?php echo $page['page_id']; ?>" title="<?php echo $TEXT['MODIFY']; ?>"><?php echo stripslashes($page['page_title']); ?></a>
154
					<a href="<?php echo ADMIN_URL; ?>/pages/modify.php?page_id=<?php echo $page['page_id']; ?>" title="<?php echo $TEXT['MODIFY']; ?>"><?php echo $admin->stripslashes($page['page_title']); ?></a>
155 155
				</td>
156 156
				<?php } else { ?>
157 157
				<td>
158
					<?php	echo stripslashes($page['page_title']); ?>
158
					<?php	echo $admin->stripslashes($page['page_title']); ?>
159 159
				</td>
160 160
				<?php } ?>
161 161
				<td align="left" width="232">
162
					<font color="#999999"><?php echo $page['menu_title']; ?></font>
162
					<font color="#999999"><?php echo $admin->stripslashes($page['menu_title']); ?></font>
163 163
				</td>
164 164
				<td align="center" valign="middle" width="90">
165 165
				<?php if($page['visibility'] == 'public') { ?>
......
447 447
			for($i = 1; $i <= $page['level']; $i++) { $title_prefix .= ' - '; }
448 448
				$template->set_var(array(
449 449
												'ID' => $page['page_id'],
450
												'TITLE' => stripslashes($title_prefix.$page['page_title'])
450
												'TITLE' => $admin->stripslashes($title_prefix.$page['page_title'])
451 451
												)
452 452
										);
453 453
				if($can_modify == true) {

Also available in: Unified diff