diff -Nur -x '*.orig' -x '*.rej' smeserver-shared-folders-0.1/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/shares mezzanine_patched_smeserver-shared-folders-0.1/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/shares
--- smeserver-shared-folders-0.1/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/shares 2010-03-08 14:14:10.000000000 +0100
+++ mezzanine_patched_smeserver-shared-folders-0.1/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/shares 2010-03-08 14:09:54.000000000 +0100
@@ -211,7 +211,7 @@
LABEL_DYNAMIC_CONTENT
- Dynamic content execution (PHP, SSI)
+ Dynamic content execution (PHP, CGI, SSI)
diff -Nur -x '*.orig' -x '*.rej' smeserver-shared-folders-0.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-smithAccess50shares mezzanine_patched_smeserver-shared-folders-0.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-smithAccess50shares
--- smeserver-shared-folders-0.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-smithAccess50shares 2010-03-08 14:14:10.000000000 +0100
+++ mezzanine_patched_smeserver-shared-folders-0.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-smithAccess50shares 2010-03-08 14:13:45.000000000 +0100
@@ -112,13 +112,12 @@
$OUT .= " php_admin_flag register_globals on\n" if (($properties{PHPRegisterGlobals} || 'disabled') eq 'enabled');
$OUT .= " php_admin_value memory_limit $properties{PHPMemoryLimit}\n" if ($properties{PHPMemoryLimit});
$OUT .= " php_admin_value max_execution_time $properties{PHPMaxExecutionTime}\n" if ($properties{PHPMaxExecutionTime});
-
}
else
{
$OUT .= " DirectoryIndex index.shtml index.htm index.html\n";
$OUT .= " Options +IncludesNOEXEC\n";
- $OUT .= " \n";
+ $OUT .= " \n";
$OUT .= " order deny,allow\n";
$OUT .= " Deny from all\n";
$OUT .= " \n";
@@ -138,6 +137,17 @@
}
$OUT .= "\n";
-
+ if ($dynamicContent eq 'enabled'){
+ $OUT .= "\n";
+ $OUT .= " SetHandler cgi-script\n";
+ $OUT .= " Options ExecCGI\n";
+ $OUT .= "\n";
+ }
+ else{
+ $OUT .= "\n";
+ $OUT .= " order deny,allow\n";
+ $OUT .= " Deny from all\n";
+ $OUT .= "\n";
+ }
}
}