<?php $dir = dirname(__FILE__); $dir = str_replace('include', '', $dir); include_once $dir . "config.php"; include_once $dir . "class/Database.class.php"; $settings = Database::getAllSetting(); foreach ($settings as $row) { extract($row); } ?> <h2 class="settings-title">Настройки монитора</h2> <form id="setting"> <p> <label class="label-name">Путь сохранения .torrent файлов</label> <input type="text" name="path" value="<?php echo $path; ?> "><br> <span class="subinput-text">Например: /var/torrent/upload/</span> </p> <p> <label class="label-name"></label> <label><input type="checkbox" name="download" <?php if ($download) { echo "checked"; } ?> > Загружать .torrent файлы</label> </p>