Use PHP's file handling functions rather than shell_exec
git-svn-id: file:///home/shish/svn/shimmie2/trunk@636 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
		
							parent
							
								
									c85b5e0742
								
							
						
					
					
						commit
						cfb1bcb9e0
					
				@ -80,13 +80,13 @@ class ExtManager extends Extension {
 | 
				
			|||||||
		if($enabled) {
 | 
							if($enabled) {
 | 
				
			||||||
			// enable if currently disabled
 | 
								// enable if currently disabled
 | 
				
			||||||
			if(!file_exists("ext/$fname")) {
 | 
								if(!file_exists("ext/$fname")) {
 | 
				
			||||||
				shell_exec("ln -s ../contrib/$fname ext/$fname");
 | 
									symlink("../contrib/$fname", "ext/$fname");
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else {
 | 
							else {
 | 
				
			||||||
			// disable if currently enabled
 | 
								// disable if currently enabled
 | 
				
			||||||
			if(file_exists("ext/$fname")) {
 | 
								if(file_exists("ext/$fname")) {
 | 
				
			||||||
				shell_exec("rm ext/$fname");
 | 
									unlink("ext/$fname");
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user