Wysłany: 2018-12-10, 05:49
Vxen
Wiek: 27 Na forum: 4086 dni Posty: 293
Piwa : 1299
Kiedy daje tu kod z lua wyskakuje mi
ModSecurity zablokowa? zapytanie ze wzgled?w bezpiecze?stwa.
Je?eli strona wymaga tego typu zapyta?, to prosz? wy??czy? ModSecurity w panelu DirectAdmin, opcja "ustawienia mod_security".
[ Dodano : 2018-12-10, 05:57 ]
function buttonUI ( )
-- Create our button
editBoxlogin = DGS : dgsCreateEdit ( 0.035 , 0.55 , 0.22 , 0.05 , "" , true , _ , tocolor ( 0 , 0 , 0 , 255 ), _ , _ , _ , tocolor ( 255 , 255 , 255 , 190 ) )
zaloguj = DGS : dgsCreateButton ( 0.035 , 0.75 , 0.22 , 0.05 , "Zaloguj" , true )
addEventHandler ( "onDgsMouseClick" , zaloguj , outputEditBox )
editBoxhaslo = DGS : dgsCreateEdit ( 0.035 , 0.65 , 0.22 , 0.05 , "R" , true , _ , tocolor ( 0 , 0 , 0 , 255 ), _ , _ , _ , tocolor ( 255 , 255 , 255 , 190 ))
DGS : dgsSetProperty ( editBoxhaslo , "masked" , true )
rejestruj = DGS : dgsCreateButton ( 0.035 , 0.85 , 0.22 , 0.05 , "Rejestruj" , true )
addEventHandler ( "onDgsMouseClick" , rejestruj , outputEditBox1 )
end
addEventHandler ( "onClientResourceStart" , getResourceRootElement ( getThisResource ( ) ), buttonUI )
function outputEditBox ( button , state )
if button == "left" and state == "down" then
local users = DGS : dgsGetText ( editBoxlogin )-- Get the text from the edit box
local password = DGS : dgsGetText ( editBoxhaslo )-- Get the text from the edit box
triggerServerEvent ( "registerRequest" , getLocalPlayer (), users , password )
elseif button == "left" and state == "down" then
end
end
function outputEditBox1 ( button , state )
if button == "left" and state == "down" then
local text = DGS : dgsGetText ( editBoxhaslo )-- Get the text from the edit box
outputChatBox ( text ) -- Output that text
end
end
[ Dodano : 2018-12-10, 05:59 ]
s_mysql https://pastebin.com/pasCZnE4
Wysłany: 2018-12-10, 17:55
Wilq
Wiek: 24 Na forum: 4429 dni Posty: 3410
Piwa : 739
Co do b??dy DB3, dodaj skrypt od rejestrowania si? do grupy ACL: "Admin" w poni?szy spos?b:
- otw?rz ACL i w grupie Admin wklej
Kod: <object name="resource.logowanie"></object>
podmie? oczywi?cie nazw? skryptu.
W MySQL w kolumnie password odznacz opcj? 'null'.
Wysłany: 2018-12-10, 19:01
Vxen
Wiek: 27 Na forum: 4086 dni Posty: 293
Piwa : 1299
[ Dodano : 2018-12-10, 19:23 ]
W?a?nie jak zaznacz? Null to dzia?a i dodaje mi konto ale nie widze w bazie danych hase? a to s?aba opcja. Jak to naprawi??
Wysłany: 2018-12-10, 20:10
Krzemo1234
Wiek: 26 Na forum: 3751 dni Posty: 387
Nick w MP: Krzemo
Piwa : 16
to tak chyba domy?lnie jest ,zabezpieczenie
Podpis
Jeśli ci pomogłem zostaw zimne
Wysłany: 2018-12-10, 20:57
Vxen
Wiek: 27 Na forum: 4086 dni Posty: 293
Piwa : 1299
A jak zrobi? aby pokazywa?o has?o i nie by?o b??du?
[ Dodano : 2018-12-10, 21:09 ]
Dobra da?em sobie rade sam .
tu:
function outputEditBox ( button , state )
if button == "left" and state == "down" then
local users = DGS : dgsGetText ( editBoxlogin )-- Get the text from the edit box
local password = DGS : dgsGetText ( editBoxhaslo )-- Get the text from the edit box
triggerServerEvent ( "registerRequest" , getLocalPlayer (), users , password )
elseif button == "left" and state == "down" then
end
end
na
function outputEditBox ( button , state )
if button == "left" and state == "down" then
local users = DGS : dgsGetText ( editBoxlogin )-- Get the text from the edit box
local password = DGS : dgsGetText ( editBoxhaslo )-- Get the text from the edit box
triggerServerEvent ( "registerRequest" , getLocalPlayer (), getLocalPlayer (), users , password )
elseif button == "left" and state == "down" then
end
end
[ Dodano : 2018-12-17, 07:00 ]
Jak zrobi? aby po wyj?ciu z serwera zapisywa?y si? skiny itp?
s-logowania
https://pastebin.com/Pfcm3JqN
s-mysql
https://pastebin.com/HqXB4tJE
Tagi: mysql
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: