From 8e725d2c1057608431d3d1639c948206d5e24869 Mon Sep 17 00:00:00 2001 From: jwarnier <jwarnier@ispconfig3> Date: Sun, 05 Sep 2010 08:54:24 -0400 Subject: [PATCH] fix some strings quoting and remove some execs --- server/plugins-available/webmail_symlink_plugin.inc.php | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/plugins-available/webmail_symlink_plugin.inc.php b/server/plugins-available/webmail_symlink_plugin.inc.php index db5fd26..8530fc4 100644 --- a/server/plugins-available/webmail_symlink_plugin.inc.php +++ b/server/plugins-available/webmail_symlink_plugin.inc.php @@ -106,16 +106,16 @@ elseif($data["new"]["php"] == "fast-cgi" && $data["new"]["suexec"] == "y") $symlink = false; - if(!is_dir($data["new"]["document_root"]."/web")) exec("mkdir -p ".$data["new"]["document_root"]."/web"); + if(!is_dir($data["new"]["document_root"]."/web")) mkdir($data["new"]["document_root"].'/web', 0755, true); if($symlink == false) { - if(is_link($data["new"]["document_root"]."/web/webmail")) exec("rm -f ".$data["new"]["document_root"]."/web/webmail"); + if(is_link($data["new"]["document_root"].'/web/webmail')) unlink($data["new"]["document_root"].'/web/webmail'); } else { - if(!is_link($data["new"]["document_root"]."/web/webmail")) exec("ln -s /var/www/webmail ".$data["new"]["document_root"]."/web/webmail"); - else exec("ln -sf /var/www/webmail ".$data["new"]["document_root"]."/web/webmail"); + if(!is_link($data["new"]["document_root"]."/web/webmail")) symlink('/var/www/webmail',$data["new"]["document_root"].'/web/webmail'); + else symlink('/var/www/webmail',$data["new"]["document_root"].'/web/webmail'); } } } // end class -?> \ No newline at end of file +?> -- Gitblit v1.9.1