if (!$torrent->write(time(), './INSTALL_LOCK')) { echo "<span class=\"error\">Writing Error</span>"; } else { echo "<span class=\"success\">Complete</span>"; $stage[] = 1; chmod('./INSTALL_LOCK', 0666); } ?> </li> <?php } ?> </ul> <?php if (count($stage) > 2) { echo "<div id=\"confirmInstalled\"><a href=\"" . $torrent->linker() . "\">Continue</a> to your new installation!<br /></div>"; echo "<div id=\"confirmInstalled\" class=\"warn\">It is recommended that you now CHMOD this directory to 0755.</div>"; } ?> </div> <?php break; case NULL: ?> <div id="torrentUpload"> <h1><?php echo $torrent->setTitle($CONFIG['torrent_name']); ?> </h1> <?php echo $torrent->setTagLine($CONFIG['torrent_tagline']);