| ... | ... |
@@ -185,7 +185,7 @@ class file_upload {
|
| 185 | 185 |
$delete = @unlink($file); |
| 186 | 186 |
clearstatcache(); |
| 187 | 187 |
if (@file_exists($file)) {
|
| 188 |
- $filesys = eregi_replace("/","\\",$file);
|
|
| 188 |
+ $filesys = str_replace("/","\\",$file);
|
|
| 189 | 189 |
$delete = @system("del $filesys");
|
| 190 | 190 |
clearstatcache(); |
| 191 | 191 |
if (@file_exists($file)) {
|
| ... | ... |
@@ -152,7 +152,8 @@ switch($_GET['step']) {
|
| 152 | 152 |
$penname = descript($_POST['newpenname']); |
| 153 | 153 |
if((!$_POST['email']) && !isADMIN) $fail .= "<div style='text-align: center;'>"._EMAILREQUIRED." "._TRYAGAIN."</div>"; |
| 154 | 154 |
if($penname && !preg_match("!^[a-z0-9_ ]{3,30}$!i", $penname)) $fail = "<div style='text-align: center;'>"._BADUSERNAME." "._TRYAGAIN."</div>";
|
| 155 |
- if(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $_POST[email])) $fail = "<div style='text-align: center;'>"._INVALIDEMAIL." "._TRYAGAIN."</div>";
|
|
| 155 |
+// if(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $_POST[email])) $fail = "<div style='text-align: center;'>"._INVALIDEMAIL." "._TRYAGAIN."</div>";
|
|
| 156 |
+ if(!preg_match("^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$", $_POST[email])) $fail = "<div style='text-align: center;'>"._INVALIDEMAIL." "._TRYAGAIN."</div>";
|
|
| 156 | 157 |
if($_POST['password'] == $_POST['password2']) $encryptpassword = md5($_POST[password]); |
| 157 | 158 |
else $fail = write_message(_PASSWORDTWICE); |
| 158 | 159 |
if(!isset($fail)) {
|