fixed function_exists() for proc_open

This commit is contained in:
Roland Gruber 2005-03-05 12:20:43 +00:00
parent f77928641d
commit 1a0378f600
1 changed files with 5 additions and 5 deletions

View File

@ -208,7 +208,7 @@ function getquotas($users) {
if ($return[$i]->general_username!='') $userstring .= $return[$i]->general_username." quota get ".$return[$i]->type."\n";
else $userstring .= "+ quota get ".$return[$i]->type."\n";
}
if (function_exists(proc_open)) {
if (function_exists('proc_open')) {
// New Code, requires PHP 4.3
$towrite = escapeshellarg($_SESSION['config']->scriptServer)." ".escapeshellarg($_SESSION['config']->scriptPath)." - -";
$descriptorspec = array(
@ -331,7 +331,7 @@ function setquotas($values2) {
$userstring = $values2->general_username." quota set ".$values2->type." ".$quotastring."\n";
}
if (function_exists(proc_open)) {
if (function_exists('proc_open')) {
// New Code, requires PHP 4.3
$towrite = escapeshellarg($_SESSION['config']->scriptServer)." ".escapeshellarg($_SESSION['config']->scriptPath)." - -";
$descriptorspec = array(
@ -396,7 +396,7 @@ function remquotas($users, $type) {
}
else $userstring = "$users quota rem $type\n";
if (function_exists(proc_open)) {
if (function_exists('proc_open')) {
// New Code, requires PHP 4.3
$towrite = escapeshellarg($_SESSION['config']->scriptServer)." ".escapeshellarg($_SESSION['config']->scriptPath)." - -";
$descriptorspec = array(
@ -461,7 +461,7 @@ function addhomedir($users) {
}
else $userstring = "$users home add\n";
if (function_exists(proc_open)) {
if (function_exists('proc_open')) {
// New Code, requires PHP 4.3
$towrite = escapeshellarg($_SESSION['config']->scriptServer)." ".escapeshellarg($_SESSION['config']->scriptPath)." - -";
$descriptorspec = array(
@ -527,7 +527,7 @@ function remhomedir($users) {
}
else $userstring = "$users home rem\n";
if (function_exists(proc_open)) {
if (function_exists('proc_open')) {
// New Code, requires PHP 4.3
$towrite = escapeshellarg($_SESSION['config']->scriptServer)." ".escapeshellarg($_SESSION['config']->scriptPath)." - -";
$descriptorspec = array(