Home
       Sector List
       
        Below is a list of all currently active (claimed or abandoned)
        sectors on Sector Disk. Follow the gopher link for a hexdump
        of that sector!
       
        Note this now uses the web cache so that the disk doesn't
        spin incessantly while bots crawl the server.
       
   DIR Recently Updated
   DIR By User
       
       sectorpath=/usr/share/sectors
       sectors=($(ls -v $sectorpath))
       by_user=0
       
       if [ ! -z "$1" ]; then
       QUERY_STRING="$1"
       fi
       
       if [ "${QUERY_STRING:0:2}" = "u=" ]; then
       by_user=1
       user="${QUERY_STRING:2}"
       user_sectors=()
       for i in "${sectors[@]}"; do
       
       
       
       done
       num_owned=${#user_sectors[@]}
       sectors=("${user_sectors[@]}")
       
       tmpfile=/tmp/$(uuid)
       figlet -w 60 "$user" > $tmpfile
       while IFS= read -r line; do
       
       
       done < $tmpfile
       echo -e "i\t/\tnull.host\t70"
       echo -n "iUser '$user' has $num_owned claimed sectors on Sector Disk!"
       echo -e "\t/\tnull.host\t70"
       echo -e "i\t/\tnull.host\t70"
       fi
       
       if [ "$1" = "-ulist" ]; then
       users=($(members fdisku))
       for i in "${users[@]}"; do
       
       
       
       
       
       
       
       
       
       
       done
       exit 0
       fi
       
       if [ "$1" = "-recent" ]; then
       sectors=($(ls -t $sectorpath))
       fi
       
       for i in "${sectors[@]}"; do
       owner=$(stat -c %U $sectorpath/$i)
       sector_text="Sector $i"
       st_len=${#sector_text}
       to_15=$((15 - st_len))
       
       echo -n "0Sector $i"
       
       for c in `seq 1 $to_15`; do
       
       done
       
       [ "$by_user" -eq 0 ] && echo -n "[ $owner ]"
       
       echo -ne "\t/cgi-bin/sector.cgi?$i"
       echo -e  "\tsectordisk.pw\t70"
       done
       
       if [ "$by_user" -eq 1 ]; then
       echo -e "i\t/\tnull.host\t70"
       echo -n "hView this user's sectors on the World Wide Web"
       echo -ne "\tURL:https://sectordisk.pw/?sectors&byuser=$user"
       echo -e "\tsectordisk.pw\t70"
       fi
       
  TEXT Join Sector Disk and Claim Your Own Sectors!
       ___________________________________________________________________
                     Gophered by Gophernicus/3.0.1 on Ubuntu/22.04 x86_64