Project

General

Profile

« Previous | Next » 

Revision 1468

Added by Dietmar over 13 years ago

update jquery-min to version 1.6.2
update jquery-ui-min to version 1.8.14
fix index error in media upload (Tks to DBS)
add missing nopreview.jpg
update media browser not to show forbidden files
remove unused jquery archiv folder

View differences:

functions.php
702 702
	}
703 703
}
704 704

  
705
// Create a new file in the pages directory
705
// Create a new directory and/or protected file in the given directory
706 706
function createFolderProtectFile($relative='',$make_dir=true)
707 707
{
708 708
	global $admin, $MESSAGE;
......
713 713
		// Check to see if the folder already exists
714 714
		if(file_exists($relative)) {
715 715
			// $admin->print_error($MESSAGE['MEDIA_DIR_EXISTS']);
716
			$retVal[] = $MESSAGE['MEDIA_DIR_EXISTS'];
716
			$retVal[] = basename($relative).'::'.$MESSAGE['MEDIA_DIR_EXISTS'];
717 717
		}
718 718
		if ( !make_dir($relative) ) {
719 719
			// $admin->print_error($MESSAGE['MEDIA_DIR_NOT_MADE']);
720
			$retVal[] = $MESSAGE['MEDIA_DIR_NOT_MADE'];
720
			$retVal[] = basename($relative).'::'.$MESSAGE['MEDIA_DIR_NOT_MADE'];
721 721
		}
722 722
	}
723 723

  
......
750 750
		// $admin->print_success($MESSAGE['MEDIA']['DIR_MADE']);
751 751
	} else {
752 752
		// $admin->print_error($MESSAGE['GENERIC_BAD_PERMISSIONS']);
753
			$retVal[] = '::'.$MESSAGE['GENERIC_BAD_PERMISSIONS'];
753
			$retVal[] = $MESSAGE['GENERIC_BAD_PERMISSIONS'];
754 754
	}
755 755
	return $retVal;
756 756
}
757 757

  
758
// Rebuild a new file in the pages directory
758
// Rebuild new protected files in the given directory and subs
759 759
function rebuildFolderProtectFile($dir='')
760 760
{
761 761
	$retVal = array();

Also available in: Unified diff