Project

General

Profile

« Previous | Next » 

Revision 2095

Added by darkviper almost 11 years ago

! /functions::make_thumb() set JPG-compression to 100%
! /database::showError() output text corrected
! ../captcha.php::call_captcha() imagesize corected
! droplet >> [[SiteModified]] recoded
! droplet >> [[ModifiedWhen]] recoded
! install/index length of password restricted to 30 chars

View differences:

save.php
356 356
if(!isset($_POST['admin_email']) OR $_POST['admin_email'] == '') {
357 357
	set_error('Please enter an email for the Administrator account','admin_email');
358 358
} else {
359
	if(preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/i', $_POST['admin_email'])) {
359
	if(preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/i', $_POST['admin_email'])) {
360 360
		$admin_email = $_POST['admin_email'];
361 361
	} else {
362 362
		set_error('Please enter a valid email address for the Administrator account','admin_email');
......
376 376
if($admin_password != $admin_repassword) {
377 377
	set_error('Sorry, the two Administrator account passwords you entered do not match','admin_repassword');
378 378
}
379
if (mb_strlen($admin_password) < 6) {
380
	set_error('Sorry, the password must have 6 chars at last','admin_password');
381
}
382

  
379 383
// End admin user details code
380 384

  
381 385
// Try and write settings to config file

Also available in: Unified diff