Revision 40
Added by stefan about 20 years ago
| add.php | ||
|---|---|---|
| 1 | 1 |
<?php |
| 2 | 2 |
|
| 3 |
// $Id: add.php,v 1.5 2005/04/02 06:25:53 rdjurovich Exp $
|
|
| 3 |
// $Id$ |
|
| 4 | 4 |
|
| 5 | 5 |
/* |
| 6 | 6 |
|
| ... | ... | |
| 71 | 71 |
} |
| 72 | 72 |
|
| 73 | 73 |
// Check if the email already exists |
| 74 |
$results = $database->query("SELECT user_id FROM ".TABLE_PREFIX."users WHERE email = '".addslashes($_POST['email'])."'");
|
|
| 74 |
$results = $database->query("SELECT user_id FROM ".TABLE_PREFIX."users WHERE email = '".$admin->add_slashes($_POST['email'])."'");
|
|
| 75 | 75 |
if($results->numRows() > 0) {
|
| 76 | 76 |
if(isset($MESSAGE['USERS']['EMAIL_TAKEN'])) {
|
| 77 | 77 |
$admin->print_error($MESSAGE['USERS']['EMAIL_TAKEN'], $js_back); |
Also available in: Unified diff
Change addslashes,stripslashes to (wb class) method calls add_slashes,strip_slashes