Editing Talk:Environments
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
== | == get_datasheet.cgi == | ||
<pre># !/usr/local/bin/perl | |||
< | |||
# !/usr/local/bin/perl | |||
# http://products.sel.sony.com/cgi-bin/semi/get_datasheet.cgi | # http://products.sel.sony.com/cgi-bin/semi/get_datasheet.cgi | ||
Line 278: | Line 211: | ||
# end | # end | ||
</ | </pre>http://pastie.org/private/a10xmqhjufcfvvrtmuns7w | ||
http://pastie.org/private/a10xmqhjufcfvvrtmuns7w | |||
http://pastebin.com/pdBgSBBD | http://pastebin.com/pdBgSBBD | ||
Line 1,114: | Line 1,044: | ||
$_LISTS{$w} = "" if $_LISTS{$w} eq " # "; | $_LISTS{$w} = "" if $_LISTS{$w} eq " # "; | ||
} | } | ||
dbmclose(%_LISTS); | |||
} | } | ||
sub setCookie { | sub setCookie { | ||
my($q, $_id) | my($q, $_id) = @_; | ||
my $cookie = $q->cookie(-name=>'wishlistID', | my $cookie = $q->cookie(-name=>'wishlistID', | ||
-value=>$_id, | -value=>$_id, | ||
Line 1,132: | Line 1,057: | ||
sub login { | sub login { | ||
my($q, $_id, $_pw) = @_; | my($q, $_id, $_pw) = @_; | ||
my(%_U); | |||
if(-e "${dbPath}.accounts") { | if(-e "${dbPath}.accounts") { | ||
dbmopen(%_U, "${dbPath}.accounts", undef) | dbmopen(%_U, "${dbPath}.accounts", undef) | ||
|| &error("login", $q, "Can't read golbal accounts database\n"); | || &error("login", $q, "Can't read golbal accounts database\n"); | ||
} else | } else { | ||
dbmopen(%_U, "${dbPath}.accounts", 0664) | dbmopen(%_U, "${dbPath}.accounts", 0664) | ||
|| &error("login", $q, "Can't read golbal accounts database\n"); | || &error("login", $q, "Can't read golbal accounts database\n"); | ||
Line 1,449: | Line 1,369: | ||
---- | ---- | ||