31 if (isset($args[0]) && !empty($args[0]) && isset($args[1]) && !empty($args[1])) {
34 $bearsamppWinbinder->messageBoxError(
43 if (isset($settingsValues[$args[0]])) {
44 $onContent = $args[0] .
' = ' . $settingsValues[$args[0]][0];
45 $offContent = $args[0] .
' = ' . $settingsValues[$args[0]][1];
48 $phpiniContent = file_get_contents(
$bearsamppBins->getPhp()->getConf());
49 if ($args[1] == self::SWITCH_ON) {
51 $phpiniContent = str_replace($offContent, $onContent, $phpiniContent);
52 } elseif ($args[1] == self::SWITCH_OFF) {
54 $phpiniContent = str_replace($onContent, $offContent, $phpiniContent);
58 file_put_contents(
$bearsamppBins->getPhp()->getConf(), $phpiniContent);