/** * Load the password file or create it */ private static function getPassword() { if (file_exists("update_password.php")) { require_once "update_password.php"; } else { if (!is_writable("./")) { die('The updates/ folder is not writable. Please see <a href="https://raxezdev.zendesk.com/entries/22839206-File-permissions-Installation-problems-fopen-permission-denied-" target="_blank">the FAQ</a> for more information.'); } $file = fopen("update_password.php", "w"); $password = uniqid() . uniqid() . uniqid() . uniqid(); fwrite($file, '<?php $password = "******";'); fclose($file); } self::$password = $password; }