Файл: mailist/postinstall.php
Строк: 34
<?php
$data = '<?php
$password = "'.$_POST['pass'].'";
?>';
$file = "inc/config.php";
if (!$file_handle = fopen($file,"w")) {
echo "Cannot open file";
}
if (!fwrite($file_handle, $data)) {
echo "Cannot write to file";
}
echo "You have successfully set the password, you can change it in the administration section.";
fclose($file_handle);
?>
<?php
$myFile = "install.php";
if(unlink($myFile)){
$myFile = "postinstall.php";
unlink($myFile);
echo "<p>Mailist 2 has been installed correctly click <a href="index.php">here</a> to go to the maillist. </p>";
exit;
} else {
echo "<p>>Mailist 2 has been installed correctly delete install.php and postinstall.php, then click <a href="index.php">here</a> to go to the maillist. </p>
";
exit;
}
?>