Project

General

Profile

« Previous | Next » 

Revision 1551

Added by Dietmar almost 13 years ago

+ add languages vars in languages files
+ add upload error mesages moduleinstall
+ add index.php if not exists in function createFolderProtectFile
! corrected changed coding between login_form and forgot_form

View differences:

functions.php
680 680
		$filename = $sAbsDir.'/index.php';
681 681

  
682 682
		// write content into file
683
		if(is_writable($filename)) {
684
		    if(file_put_contents($filename, $content)) {
685
				print 'create => '.str_replace( $wb_path,'',$filename).'<br />';
686
		        change_mode($filename, 'file');
687
		    }
688
		}
689
	} else {
690
			$retVal[] = $MESSAGE['GENERIC_BAD_PERMISSIONS'];
691
	}
692
	return $retVal;
683
		  if(is_writable($filename) || !file_exists($filename)) {
684
		      if(file_put_contents($filename, $content)) {
685
		//    print 'create => '.str_replace( $wb_path,'',$filename).'<br />';
686
		          change_mode($filename, 'file');
687
		      }else {
688
		    $retVal[] = $MESSAGE['GENERIC_BAD_PERMISSIONS'].' :: '.$filename;
689
		   }
690
		  }
691
		 } else {
692
		   $retVal[] = $MESSAGE['GENERIC_BAD_PERMISSIONS'];
693
		 }
694
		 return $retVal;
693 695
}
694 696

  
695 697
function rebuildFolderProtectFile($dir='')

Also available in: Unified diff