Revision 40
Added by stefan about 19 years ago
uninstall.php | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 |
// $Id: uninstall.php,v 1.2 2005/04/02 06:25:37 rdjurovich Exp $
|
|
3 |
// $Id$ |
|
4 | 4 |
|
5 | 5 |
/* |
6 | 6 |
|
... | ... | |
45 | 45 |
if($_POST['code'] == DEFAULT_LANGUAGE OR $_POST['code'] == LANGUAGE) { |
46 | 46 |
$admin->print_error($MESSAGE['GENERIC']['CANNOT_UNINSTALL_IN_USE']); |
47 | 47 |
} else { |
48 |
$query_users = $database->query("SELECT user_id FROM ".TABLE_PREFIX."users WHERE language = '".addslashes($_POST['code'])."' LIMIT 1");
|
|
48 |
$query_users = $database->query("SELECT user_id FROM ".TABLE_PREFIX."users WHERE language = '".$admin->add_slashes($_POST['code'])."' LIMIT 1");
|
|
49 | 49 |
if($query_users->numRows() > 0) { |
50 | 50 |
$admin->print_error($MESSAGE['GENERIC']['CANNOT_UNINSTALL_IN_USE']); |
51 | 51 |
} |
Also available in: Unified diff
Change addslashes,stripslashes to (wb class) method calls add_slashes,strip_slashes