Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2018-12-10, 05:49


Vxen







Wiek: 27
Na forum: 4086 dni
Posty: 293

Piwa: 1299

Respekt: 130,5
Respekt: 130,5

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:dgsCreateEdit0.0350.550.220.05""true,_,tocolor 00,0255 ),_,_,_,tocolor 255255,255190 ) )
zaloguj DGS:dgsCreateButton0.0350.750.220.05"Zaloguj"true )
    addEventHandler "onDgsMouseClick"zalogujoutputEditBox )

editBoxhaslo DGS:dgsCreateEdit0.0350.650.220.05"R"true,_,tocolor 00,0255 ),_,_,_,tocolor 255255,255190 ))
DGS:dgsSetProperty(editBoxhaslo,"masked",true)
rejestruj DGS:dgsCreateButton0.0350.850.220.05"Rejestruj"true)
    addEventHandler "onDgsMouseClick"rejestrujoutputEditBox1 )

end
addEventHandler"onClientResourceStart"getResourceRootElementgetThisResource( ) ), buttonUI )


function outputEditBox buttonstate )
    if button == "left" and state == "down" then
        local users DGS:dgsGetTexteditBoxlogin )-- Get the text from the edit box
        local password DGS:dgsGetTexteditBoxhaslo )-- Get the text from the edit box
        triggerServerEvent("registerRequest",getLocalPlayer(),users,password)
    elseif button == "left" and state == "down" then
    
    end
end


function outputEditBox1 buttonstate )
    if button == "left" and state == "down" then
        local text DGS:dgsGetTexteditBoxhaslo )-- 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

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-12-10, 17:55


Wilq







Wiek: 24
Na forum: 4429 dni
Posty: 3410

Piwa: 739

Respekt: 1225,8
Respekt: 1225,8

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'.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-12-10, 19:01


Vxen







Wiek: 27
Na forum: 4086 dni
Posty: 293

Piwa: 1299

Respekt: 130,5
Respekt: 130,5



[ 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??

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-12-10, 20:10


Krzemo1234







Wiek: 26
Na forum: 3751 dni
Posty: 387
Nick w MP: Krzemo

Piwa: 16

Respekt: 40

to tak chyba domy?lnie jest ,zabezpieczenie

Podpis
Jeśli ci pomogłem zostaw zimne :piwo:
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-12-10, 20:57


Vxen







Wiek: 27
Na forum: 4086 dni
Posty: 293

Piwa: 1299

Respekt: 130,5
Respekt: 130,5

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 buttonstate )
    if button == "left" and state == "down" then
        local users DGS:dgsGetTexteditBoxlogin )-- Get the text from the edit box
        local password DGS:dgsGetTexteditBoxhaslo )-- Get the text from the edit box
        triggerServerEvent("registerRequest",getLocalPlayer(),users,password)
    elseif button == "left" and state == "down" then
    
    end
end


na


function outputEditBox buttonstate )
    if button == "left" and state == "down" then
        local users DGS:dgsGetTexteditBoxlogin )-- Get the text from the edit box
        local password DGS:dgsGetTexteditBoxhaslo )-- 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

Postaw piwo autorowi tego posta
 

 
Tagi: mysql
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku