Skip to content

Instantly share code, notes, and snippets.

@tanmaydesai89
Last active June 27, 2020 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanmaydesai89/9eb0aa746f3212746527a75f512667d6 to your computer and use it in GitHub Desktop.
Save tanmaydesai89/9eb0aa746f3212746527a75f512667d6 to your computer and use it in GitHub Desktop.
Vintage Facebook code sample
my $id = $input{id};
my $user = $input{user};
my $code = $input{code};
my $course = 0;#$input{course};
my @node;my @edge;
#my $db_data = Mysql->connect("69.28.179.12", "login", "mark", $pass);
my $db_data = Mysql->connect("$cookies{host}", "$cookies{db}", "mark", $pass);
my $map;
if ($ENV{'HTTP_HOST'} =~ m/^(.*)\.thefacebook\.com/) { $map = $1;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment