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:
shish 2007-12-08 03:18:35 +00:00
parent c85b5e0742
commit cfb1bcb9e0

View File

@ -80,13 +80,13 @@ class ExtManager extends Extension {
if($enabled) {
// enable if currently disabled
if(!file_exists("ext/$fname")) {
shell_exec("ln -s ../contrib/$fname ext/$fname");
symlink("../contrib/$fname", "ext/$fname");
}
}
else {
// disable if currently enabled
if(file_exists("ext/$fname")) {
shell_exec("rm ext/$fname");
unlink("ext/$fname");
}
}
}