echo "<p><input type='submit' name='setdir' value='Set directory' disabled=1> <i>Torrent must be stopped before changing directory.</i></p>\n"; } else { echo "<input type='hidden' name='hash' value='" . $thistorrent['hash'] . "'>\n"; echo "<input type='hidden' name='newdir' value=''>\n"; echo "<input type='submit' name='setdir' value='Set directory'>\n"; } echo "</fieldset>\n"; echo "</form>\n"; echo "<iframe frameborder=0 src='dirbrowser.php?dir=" . urlencode($seldir) . "&hilitedir=" . urlencode($torrentdir) . "' width=100% height=300px>iFrame</iframe>"; echo "<br> </div>"; // end container div echo "<div class='bottomthin' style='width:552px;'> </div>\n"; } // Debug info if ($r_select == "debug") { echo "<pre class='medtext'>"; echo "<h2>Torrent</h2>"; echo nl2br(print_r($thistorrent)); echo "<h2>Files</h2>"; echo nl2br(print_r(get_file_list($r_hash))); echo "<h2>Peers</h2>"; echo nl2br(print_r(get_peer_list($r_hash))); echo "<h2>Tracker</h2>"; echo nl2br(print_r(get_tracker_list($r_hash))); echo "</pre>"; } ?> </div> </body> </html>
if ($debug_mode && $r_select == 'debug') { ?> <pre class="medtext"> <h2>Torrent</h2> <?php print_r($this_torrent); ?> <h2>Files</h2> <?php print_r(get_file_list($r_hash)); ?> <h2>Peers</h2> <?php print_r(get_peer_list($r_hash)); ?> <h2>Tracker</h2> <?php print_r(get_tracker_list($r_hash)); ?> </pre> <?php } echo <<<HTML </div><!-- id="tab-{$r_select}" -->