$value) { $value_length = strlen(\Rhilip\Bencode\Bencode::encode($value)); if (is_iterable($value)) { // It may `dictionary` or `list` $type = is_indexed_array($value) ? 'list' : 'dictionary'; $ret .= "
  • + [" . $item . "] (" . ucfirst($type) . ") [" . $value_length . "]
    "; $ret .= "
  • "; } else { // It may `interger` or `string` $type = is_integer($value) ? 'integer' : 'string'; $value = ($parent == 'info' && $item == 'pieces') ? "0x" . bin2hex(substr($value, 0, 25)) . "..." : $value; // Cut the info pieces.... $ret .= "
  • - [" . $item . "] (" . ucfirst($type) . ") [" . $value_length . "]: " . $value . "
  • "; } } return $ret; } dbconn(); loggedinorreturn(); if (get_user_class() < $torrentstructure_class) { permissiondenied(); } $id = (int)$_GET["id"]; if (!$id) httperr(); $res = sql_query("SELECT name FROM torrents WHERE id = ".sqlesc($id)) or sqlerr(__FILE__, __LINE__); $row = mysql_fetch_assoc($res); $fn = getFullDirectory("$torrent_dir/$id.torrent"); if (!$row || !is_file($fn) || !is_readable($fn)) httperr(); // Standard html headers stdhead("Torrent Info"); ?>

    $row[name]

    "); // Heading print("
    "); // Start table echo "
      "; echo torrent_structure_builder(['root' => $dict]); echo "
    "; print("
    "); // End table // Standard html footers end_main_frame(); stdfoot();