Password generator for TinyWebGallery 1.7

Enter password and press generate:
"; } echo "SHA256 hash value '" . $pas . "': '" . sha2($pas) . "'"; } } ?>

Copy the generated value to your config.php -> $privatepassword or into one of your password files.
If you want to use more than one password for a gallery plese seperate the password with a ',' like
388ad1c312a488ee9e12998fe097f2258fa8d5ee,a17fed27eaa842282862ff7c1b9c8395a26ac320

", "_", $output); $output = str_replace(";", "_", $output); $output = str_replace("'", "_", $output); // we check some other settings too :) if (strpos($output, "cookie(") || strpos($output, "popup(") || strpos($output, "open(") || strpos($output, "alert(") || strpos($output, "reload(") || strpos($output, "refresh(")) { $output = "error"; } // we check for security if a .. is in the path we remove this! and .// like in http:// is invalid too! $output = ereg_replace("\.\.", "__", $output); $output = ereg_replace("://", "___", $output); return $output; } ?>