<% '########################## system-wide functions ################ ' this file contains global variables & functions dim fixedstr,strwd,formitem,reggie function goIrish(oldstr) ' takes care of apostrophy problem in txt fields fixedstr = replace(oldstr,"'","''") goIrish = fixedstr end function 'functions stripQuotes() and killChars() remove sql for insertion attacks 'stripQuotes() also solves stand-alone apostrophe problem function stripQuotes(strWords) stripQuotes = replace(strWords, "'", "''") end function function addBr(strwd) ' if instr(strwd,vbcrlf) > 0 then ' strwd = replace(strwd,vbcrlf,"
") ' end if addBr = strwd end function function stripSp(spword) Set reggie = New RegExp reggie.Pattern = "^ +" ' Set pattern. stripsp = reggie.Replace(spword, "") ' Make replacement. end function function killChars(strWords) dim badChars,newChars,i badChars = array("select", "drop", ";", "--", "insert", "delete", "xp_","update") 'newChars = strWords newChars = replace(strWords, "'", "''") for i = 0 to uBound(badChars) newChars = replace(newChars, badChars(i), "") next killChars = newChars end function function die(dieword) response.write dieword response.end end function function echo(echoword) response.write echoword end function function echoLn(echoword) response.write echoword & "
" end function function get_moname(monthnum,siz) if monthnum=1 then moname= "January" elseif monthnum=2 then moname= "February" elseif monthnum=3 then moname= "March" elseif monthnum=4 then moname= "April" elseif monthnum=5 then moname= "May" elseif monthnum = 6 then moname= "June" elseif monthnum = 7 then moname= "July" elseif monthnum = 8 then moname = "August" elseif monthnum = 9 then moname= "September" elseif monthnum = 10 then moname= "October" elseif monthnum = 11 then moname= "November" elseif monthnum = 12 then moname= "December" end if if siz = "short" then moname = left(moname,3) end if get_moname = moname end function function getvars() for each formitem in Request.Form 'update response.write formitem & "='"" & "& formitem & " & ""', " next response.write "

dim" for each formitem in Request.Form 'vars response.write formitem & ", " next response.write "

" 'insert response.write "insert into (" for each formitem in Request.Form response.write formitem & ", " next response.write ") values(" for each formitem in Request.Form response.write " '"" & " & formitem & " & ""', " next response.write ")"" " response.write "

" 'print out querystring vars for each formitem in Request.Form response.write formitem & "=request.form("""&formitem&""")
" next end function function forDate(sDate) dim fdmonth,fdyear,fdmoname,fdday,fddate fdday = DatePart("d",sDate) fdyear = DatePart("yyyy",sDate) fdmonth =DatePart("m",sDate) if fdmonth = 1 then fdmoname = "January" elseif fdmonth = 2 then fdmoname = "February" elseif fdmonth = 3 then fdmoname = "March" elseif fdmonth = 4 then fdmoname = "April" elseif fdmonth = 5 then fdmoname = "May" elseif fdmonth = 6 then fdmoname = "June" elseif fdmonth = 7 then fdmoname = "July" elseif fdmonth = 8 then fdmoname = "August" elseif fdmonth = 9 then fdmoname = "September" elseif fdmonth = 10 then fdmoname = "October" elseif fdmonth = 11 then fdmoname = "November" elseif fdmonth = 12 then fdmoname = "December" end if fddate = fdmoname & " " & fdday & ", " & fdyear forDate = fddate end function '########################## system-wide variables ################ dim orgname,deflocation,evmailto,donormailto,orgaddress, webroot,ylpmailto, conTAmailto,wkTAmailto,ctdbmailto,qamailto,homepage,metataglist,metatagdesc, bigseven 'bigseven defines the pacific, anadromaous salmon bigseven = "2,3,4,6,7,9,18" 'webroot is default, top level web directory webroot = "c:\inetpub\wwwroot" 'orgname is organization default name orgname= "State of the Salmon " ' orgaddress is main address for organization orgaddress = "1903 SE Ankeny
Portland, OR 97214" ' deflocation is default address for events in event calendar deflocation = "Ecotrust
721 NW Ninth Avenue,Suite 200
Portland, OR 97209" 'evmailto is the default email address for events registration evmailto = "training@tacs.org" 'evmailto = "ekr@tacs.org" 'donormailto is for donations 'donormailto = "ekr@tacs.org" 'ylpmailto is for workshop ta application ylpmailto = "legal@tacs.org" 'ylpmailto = "ekr@tacs.org" 'contamailto is for consulting project ta application conTAmailto = "tafund@tacs.org" 'conTAmailto = "ekr@tacs.org" 'wktamailto is for workshop ta application wkTAmailto = "tafund@tacs.org" 'wkTAmailto = "ekr@tacs.org" ' qamailto receives questions for q & a qamailto = "info@tacs.org" 'ctdbmailto is who gets consultant form updates ctdbmailto = "info@tacs.org" ' to include to a page, use metataglist = "salmon, steelhead, monitoring, monitoring protocols, stock status, Alaska salmon, conservation, fisheries, science, research, education, Russian, Kamchatka, Russian Far East, magadan, chukotka, primorye, khabarovsk, Sakhalin, Pacific Rim, Washington, Oregon, Cascadia, Olympic Peninsula, Hoh River, salmonid, fishing expeditions, river, rivers, fish, chinook, coho, cherry, masu, rainbow trout, trout, lenok, taimen, GIS, endangered, sockeye, chum, charr, pink, humpback, red, dog, silver, king, cutthroat, bull trout, Dolly Varden, State of the Salmon:An Atlas of Pacific Salmon" metatagdesc = "The State of the Salmon program, a joint effort of the Wild Salmon Center and Ecotrust, is building the world’s most credible, comprehensive source of data and information on North Pacific salmon to foster informed and collaborative policy that secures a future in which wild salmon, and all life that depends on them, prosper." homepage = "/index.asp" echo "" %><% dim conn 'setting dbase parameters for select only user set conn = server.CreateObject("adodb.connection") conn.open "DSN=CONTENT;uid=;pwd=;Trusted_Connection=yes" %><%dim scrname,fname,rs,sql,lastname,firstname,nameID,organizationID,orgtypename,sqlst,sqlcn,rsst,rscn,rcst,countryID,nationID,ap,apname,actionaction= session("durl")%>State of the Salmon - Data License Agreement

State of the Salmon

Data License Agreement

Although substantial efforts are made to ensure the accuracy of data and documentation, complete accuracy cannot be guaranteed. All data are made available "as is". Datasets are subject to change. The State of the Salmon Consortium, Ecotrust, and Wild Salmon Center shall not be liable for any damages resulting from use or interpretation of data sets.

Please click here for more information, sourcing, and metadata.

Creative Commons License
This work is licensed under a Creative Commons License.
If you agree to the terms stated above, press 'continue' to download the data.

YOU ARE HERE: stateofthesalmon.org » Resources » SoS Database » License Agreement