Post Pacific  

Go Back   Post Pacific > Lineage 2 Russian > Помощь
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 18.07.2006, 12:42   #9
incorrect
Архивный участник
 
Join Date: Jul 2006
Posts: 7
Default

Quote:
Originally Posted by FANatik
<%
'************************************************* *************************
' Setting Info
'
' ms_sql_server_host_addr = MS SQL database address
' sql_server_username = MS SQL account
' sql_server_password = MS SQL password
' lin2db = Account database
' lin2world = Player information database
'
'************************************************* *************************

dim sql_server_username,sql_server_password,lin2db,lin e2world
dim lin2db_conn,lin2world_conn
dim sys_type

'---------------------------------------------------------------------------
'-------------------------------Change below--------------------------------

'MS SQL Database address
ms_sql_server_host_addr = "твой IP"

'MS SQL account
sql_server_username = "sa"

'MS SQL password
sql_server_password = "Твой пароль на SQL"

'Lin2db database(user_auth)
lin2db = "lin2db"

'Lin2world database(user_data)
lin2world = "lin2world"

' Encrypt or decrypt L2AuthD(otherwise will say password not match)
' 1) When using L2AuthD_encrypt.zip then set sys_type = "encrypt"
' 2) When using L2AuthD_decrypt.zip then set sys_type = "none"
sys_type = "encrypt"

'------------------------------DO NOT Change below--------------------------
'---------------------------------------------------------------------------

if checkZuJian <> 1 then
response.write "<font color=blue>Please run 'reg.bat' in the ActiveX folder!"
response.end 'exit
end if
set lin2db_conn = Server.CreateObject("ADODB.CONNECTION")
lin2db_conn.open "driver={SQL Server};server="&ms_sql_server_host_addr&"; uid="&sql_server_username&";pwd="&sql_server_passw ord&";database="&lin2db

set lin2world_conn = Server.CreateObject("ADODB.CONNECTION")
lin2world_conn.open "driver={SQL Server};server="&ms_sql_server_host_addr&"; uid="&sql_server_username&";pwd="&sql_server_passw ord&";database="&lin2world

sub close_conn()
lin2db_conn.close
set lin2db_conn = nothing
lin2world_conn.close
set lin2world_conn = nothing
end sub

function checkstr(oldstr)
checkstr = replace(oldstr & "", Chr(39), Chr(39)&Chr(39))
end function

function checkZuJian()
dim obj
on error resume next
set obj=CreateObject("shotgraph.image")
if -2147221005 = Err then
response.write "<font color=red>Please run 'install.exe' in the ActiveX folder!</font>
"
checkZuJian = -1 'not support
else
checkZuJian = 1 'supprot success
end if
set obj = nothing
end function
%>
Я заменил текст своего conn.asp на твой...ничего не изменилось :cry:
incorrect is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:47.