Browse Source

Minor changes

spesk 2 years ago
parent
commit
8df380dd4a
1 changed files with 55 additions and 47 deletions
  1. 55 47
      foobar.cgi

+ 55 - 47
foobar.cgi

@@ -64,55 +64,63 @@ if ( defined $ENV{'QUERY_STRING'} && $ENV{'QUERY_STRING'} eq "plain" ) {
 
 # GOPHERMAP GEN HERE
 if ( defined $ENV{'QUERY_STRING'} && $ENV{'QUERY_STRING'} eq "plain" ) {
-	print("i                        CHATE.IO\n");
+	print("i                        CHATE.IO\tchate.io\t70\n");
 } else {
-	print("i ▄████▄   ██░ ██  ▄▄▄     ▄▄▄█████▓▓█████       ██▓ ▒█████\n");
-	print("i▒██▀ ▀█  ▓██░ ██▒▒████▄   ▓  ██▒ ▓▒▓█   ▀      ▓██▒▒██▒  ██▒\n");
-	print("i▒▓█    ▄ ▒██▀▀██░▒██  ▀█▄ ▒ ▓██░ ▒░▒███        ▒██▒▒██░  ██▒\n");
-	print("i▒▓▓▄ ▄██▒░▓█ ░██ ░██▄▄▄▄██░ ▓██▓ ░ ▒▓█  ▄      ░██░▒██   ██░\n");
-	print("i▒ ▓███▀ ░░▓█▒░██▓ ▓█   ▓██▒ ▒██▒ ░ ░▒████▒ ██▓ ░██░░ ████▓▒░\n");
-	print("i░ ░▒ ▒  ░ ▒ ░░▒░▒ ▒▒   ▓▒█░ ▒ ░░   ░░ ▒░ ░ ▒▓▒ ░▓  ░ ▒░▒░▒░\n");
-	print("i  ░  ▒    ▒ ░▒░ ░  ▒   ▒▒ ░   ░     ░ ░  ░ ░▒   ▒ ░  ░ ▒ ▒░\n");
-	print("i░         ░  ░░ ░  ░   ▒    ░         ░    ░    ▒ ░░ ░ ░ ▒\n");
-	print("i░ ░       ░  ░  ░      ░  ░           ░  ░  ░   ░      ░ ░\n");
-	print("i░                                           ░\n");
-	print("i\n");
+	print("i ▄████▄   ██░ ██  ▄▄▄     ▄▄▄█████▓▓█████       ██▓ ▒█████\tchate.io\t70\n");
+	print("i▒██▀ ▀█  ▓██░ ██▒▒████▄   ▓  ██▒ ▓▒▓█   ▀      ▓██▒▒██▒  ██▒\tchate.io\t70\n");
+	print("i▒▓█    ▄ ▒██▀▀██░▒██  ▀█▄ ▒ ▓██░ ▒░▒███        ▒██▒▒██░  ██▒\tchate.io\t70\n");
+	print("i▒▓▓▄ ▄██▒░▓█ ░██ ░██▄▄▄▄██░ ▓██▓ ░ ▒▓█  ▄      ░██░▒██   ██░\tchate.io\t70\n");
+	print("i▒ ▓███▀ ░░▓█▒░██▓ ▓█   ▓██▒ ▒██▒ ░ ░▒████▒ ██▓ ░██░░ ████▓▒░\tchate.io\t70\n");
+	print("i░ ░▒ ▒  ░ ▒ ░░▒░▒ ▒▒   ▓▒█░ ▒ ░░   ░░ ▒░ ░ ▒▓▒ ░▓  ░ ▒░▒░▒░\tchate.io\t70\n");
+	print("i  ░  ▒    ▒ ░▒░ ░  ▒   ▒▒ ░   ░     ░ ░  ░ ░▒   ▒ ░  ░ ▒ ▒░\tchate.io\t70\n");
+	print("i░         ░  ░░ ░  ░   ▒    ░         ░    ░    ▒ ░░ ░ ░ ▒\tchate.io\t70\n");
+	print("i░ ░       ░  ░  ░      ░  ░           ░  ░  ░   ░      ░ ░\tchate.io\t70\n");
+	print("i░                                           ░\tchate.io\t70\n");
+	print("i\tchate.io\t70\n");
 }
-printer("        _.-^ Thanks for visiting The Chateau ^-._","i","");
-print("i\n");
-printer("   Last Modification: $f_mod UTC","i","");
-print("i\n");
+printer("        _.-^ Thanks for visiting The Chateau ^-._","i","\tchate.io\t70");
+print("i\tchate.io\t70\n");
+printer("   Last Modification: $f_mod UTC","i","\tchate.io\t70");
+my $uniq_ips = `cat ./existing_ips | wc -l`;
+chomp $uniq_ips;
+printer("             Uniq Visitors since Jan 2022 : $uniq_ips","i","\tchate.io\t70");
+print("i\tchate.io\t70\n");
 printer("About Me","0","\tblogs/about-me.org.txt\tchate.io\t70");
 printer("Ramblings and Phlog","1","\tblogs\tchate.io\t70");
-print("i --> All posts are .org mode formatted,\n");
-print("i     so elpher users can use M-x org-mode\n");
-print("i     for nicer formatting\n");
-print("i\n");
+print("i --> All posts are .org mode formatted,\tchate.io\t70\n");
+print("i     so elpher users can use M-x org-mode\tchate.io\t70\n");
+print("i     for nicer formatting\tchate.io\t70\n");
+print("i\tchate.io\t70\n");
 printer("Warez","1","\t$HOME_PATH\tchate.io\t70");
-print("i  --> http://ntfy.sh\n");
-print("i      - Awesome and very easy to use PUT/POST\n");
-print("i        based notification system\n");
-print("i\n");
-printer("Cool Places","i","");
-printer("  --> baud.baby","1","\t/\tbaud.baby");
-printer("  --> hngopher.com (HN Gopher Proxy)","1","\t/\thngopher.com");
-printer("  --> Linkerror","1","\t/\tgopher.linkerror.com");
-printer("  --> gopher.black","1","\t/\tgopher.black");
-printer("  --> tilde.club","1","\t/\ttilde.club");
-printer("  --> RPoD (1436.ninja)","1","\t/\t1436.ninja");
-printer("  --> gopherpedia (Wikipedia Gopher Proxy)","1","\t/\tgopherpedia.com");
-printer("  --> thelambdalab.xyz","1","\t/\tthelambdalab.xyz");
-print("i\n");
-printer("WhackyCGI","i","");
-print("i\n");
-printer("Script that generates this page","0","\t/foobar.txt\tchate.io\t70\n");
-print("i\n");
-print("1Plain\t/foobar.cgi?plain\tchate.io\t70\n");
-print("1Colorized\t/foobar.cgi\tchate.io\t70\n");
-print("iIf the site looks weird, use the Plain entry above\n");
-print("iThis gopher site expects a client that either supports or\n");
-print("ifilters ANSI escape sequences. I recommend:\n");
-print("i--> cgo\n");
-print("i--> phetch\n");
-print("i--> curl (use gopher://)\n");
-print("i--> Elpher (filters ANSI)\n");
+print("i  --> http://ntfy.sh\tchate.io\t70\n");
+print("i      - Awesome and very easy to use PUT/POST\tchate.io\t70\n");
+print("i        based notification system\tchate.io\t70\n");
+print("i\tchate.io\t70\n");
+printer("Cool Places","i","\tchate.io\t70");
+printer("  --> baud.baby","1","\t/\tbaud.baby\t70");
+printer("  --> hngopher.com (HN Gopher Proxy)","1","\t/\thngopher.com\t70");
+printer("  --> Linkerror","1","\t/\tgopher.linkerror.com\t70");
+printer("  --> gopher.black","1","\t/\tgopher.black\t70");
+printer("  --> tilde.club","1","\t/\ttilde.club\t70");
+printer("  --> RPoD (1436.ninja)","1","\t/\t1436.ninja\t70");
+printer("  --> gopherpedia (Wikipedia Gopher Proxy)","1","\t/\tgopherpedia.com\t70");
+printer("  --> thelambdalab.xyz","1","\t/\tthelambdalab.xyz\t70");
+print("i\tchate.io\t70\n");
+printer("Git Proxy","1","\t/git/go_git.cgi\tchate.io\t70");
+print("i  --> This takes you to a CGI script that will proxy\tchate.io\t70\n");
+print("i      HTTP requests to my git server, so that you can\tchate.io\t70\n");
+print("i      browse my git repos\tchate.io\t70\n");
+print("i      --> Note: Some clients won't render certain file exts,\tchate.io\t70\n");
+print("i          which may cause some repos to appear empty.\tchate.io\t70\n");
+print("i\tchate.io\t70\n");
+printer("Script that generates this page","0","\t/foobar.txt\tchate.io\t70");
+print("i\tchate.io\t70\n");
+print("1Plain\t/foobar.cgi?plain\tchate.io\t70\tchate.io\t70\n");
+print("1Colorized\t/\tchate.io\t70\tchate.io\t70\n");
+print("iIf the site looks weird, use the Plain entry above\tchate.io\t70\n");
+print("iThis gopher site expects a client that either supports or\tchate.io\t70\n");
+print("ifilters ANSI escape sequences. I recommend:\tchate.io\t70\n");
+print("i--> cgo\tchate.io\t70\n");
+print("i--> phetch\tchate.io\t70\n");
+print("i--> curl (use gopher://)\tchate.io\t70\n");
+print("i--> Elpher (filters ANSI)\tchate.io\t70\n");