]> git.pld-linux.org Git - packages/coppermine-gallery.git/blobdiff - coppermine-gallery-pld.patch
- some hints on how to use CPG in safe_mode without SILLY_SAFE_MODE
[packages/coppermine-gallery.git] / coppermine-gallery-pld.patch
index 04631049f948c29af69584bd0148a0e8fd101aa4..9d4d635e892b689d54def786adf8ff85fd86eeff 100644 (file)
            </td>
           </tr>
           <tr>
+@@ -472,8 +472,8 @@
+     $sql_query .= "REPLACE INTO CPG_config VALUES ('gallery_admin_email', '{$_POST['admin_email']}');\n";
+     // Test write permissions for main dir
+     if (!is_writable('.')) {
+-        $sql_query .= "REPLACE INTO CPG_config VALUES ('default_dir_mode', '0777');\n";
+-        $sql_query .= "REPLACE INTO CPG_config VALUES ('default_file_mode', '0666');\n";
++        $sql_query .= "REPLACE INTO CPG_config VALUES ('default_dir_mode', '0300');\n";
++        $sql_query .= "REPLACE INTO CPG_config VALUES ('default_file_mode', '0600');\n";
+     }
+     // Update table prefix
+     $sql_query = preg_replace('/CPG_/', $_POST['table_prefix'], $sql_query);
 @@ -536,10 +536,12 @@
  set_magic_quotes_runtime(0);
  // The defaults values
This page took 0.172331 seconds and 4 git commands to generate.