'; $fftp = ''; include_once('ftpvars.php'); include_once('ftpconnect.php'); ftpconnect(); if ($ftpconn) { $ftpdoc = tmpfile(); if (!$ftpdoc) { $ftpdocp = tempnam(dirname(__FILE__) . '/../settings/tmp', 'Ftpdoc'); chmod($ftpdocp, 0777); $ftpdoc = fopen($ftpdocp, 'w+'); } fwrite($ftpdoc, $ftpvars); rewind($ftpdoc); $path = urldissect($_SERVER['SCRIPT_NAME'], false, 1); $remotefile = $ftpwd . $path . 'ftpvars.php'; if (ftp_fput($ftpconn, $remotefile, $ftpdoc, FTP_BINARY)) { $getmessage = "Your FTP information has been successfully cleared."; $savescript = ''; echo $savescript; } else { $getmessage = 'Error: neocms could not find this page: ' . $remotefile . ''; $savescript = ''; echo $savescript; } fclose($ftpdoc); if (isset($ftpdocp)) unlink($ftpdocp); } echo ''; } } ?>