Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 06:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



PHP - Account creation mit Sicherheitsfrage

Discussion on PHP - Account creation mit Sicherheitsfrage within the Web Development forum part of the Coders Den category.

Closed Thread
 
Old   #1
 
marcopolo1990's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,632
Received Thanks: 8,492
PHP - Account creation mit Sicherheitsfrage

Der Script ist nicht direkt für mich, möchte ihn aber dennoch vervollständigen

Es soll eine Accountname und ein Pass zusammen gespeichert werden, und abgefragt werden soll, ob diese schon vergeben sind

außerdem soll ähnlich wie bei einem captcha eine sicherheitsfrage auftauchen, die beantwortet werden muss

da ich mich mit php so gut wie garnicht auskenne frage ich euch ob ihr dies könnt

hier der schon bestehende script:
marcopolo1990 is offline  
Old 06/01/2009, 12:43   #2
 
scbiz's Avatar
 
elite*gold: 196
Join Date: Nov 2005
Posts: 625
Received Thanks: 192
Vorweg: ist vom Genus her Neutrum :P

Ernsthaft, hast du schon einmal Google befragt? Simple Login-Skripte gibt es doch bereits in rauen Mengen im Internet (Ergebnisse 1 - 10 von ungefähr 73.200.000 für login script. (0,14 Sekunden)). Du kannst dir übrigens auch die ganze Chose mit den Regular Expressions sparen, indem du die Funktion filter_var benutzt. Sie existiert zwar erst seit der Version 5.2.0 des PHP Interpreters, doch mir fällt momentan kein guter Grund ein, warum man nicht auf die aktuellste Version updaten sollte, falls man dies noch nicht getan hat. Als ich mit PHP angefangen habe, hat mir neben der offiziellen PHP Funktionsreferenz sehr geholfen, und, obwohl ich inzwischen Vieles nicht mehr so machen würde, wie dort beschrieben, kann ich sie trotzdem wärmstens empfehlen. PHP ist nicht besonders komplex und bietet dabei eine Vielzahl an Funktionen, die dir den Umgang mit (My)SQL Datensätzen erleichtern sollten. Zunächst musst du natürlich eine Verbindung zum Server aufbauen, das geschieht mit mysql_connect. Um Werte in bereits vorhandene Tabellen zu schreiben, benutzt man die INSERT (INTO)- und um sie auszulesen die SELECT (... FROM)-Anweisung. Strings, die der Tabelle hinzugefügt werden sollen, sollten zuvor unbedingt maskiert werden (z.B. mit mysql_real_escape_string).Die Querys werden mit Hilfe von mysql_query an den Datenbankserver gesendet. Die Funktion mysql_fetch_object liefert die Ergebniszeile des Querys als Objekt, sodass der Zugriff darauf und der Umgang damit relativ einfach sein sollte. Nach dem Spielen räumt man dann das Spielzeug weg (mysql_free_result) und schließt die Spielzeugkiste (mysql_close). Wie man Kontrollstrukturen und Vergleichsoperatoren umgeht, solltest du ja bereits wissen. Anstatt ein (möglicherweise fehlerhaftes) CAPTCHA selbst zu skripten, kannst du dich auf registrieren und dessen Quelltext in dein eigenes Skript implementieren.




Vielleicht werde ich dir, nachdem ich etwas geschlafen habe, etwas dahinklatschen - falls überhaupt noch Interesse besteht.
scbiz is offline  
Old 06/01/2009, 14:58   #3
 
°~Dennis~°'s Avatar
 
elite*gold: 2
Join Date: Jan 2008
Posts: 531
Received Thanks: 234
Also hat sich erledigt. Aber danke
°~Dennis~° is offline  
Old 06/02/2009, 01:26   #4
 
marcopolo1990's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,632
Received Thanks: 8,492
wie gesagt, ich hab null damit zu tun und daher auch null ahnugn wie php funktioniert
google hat mir auch nix auf die suche nach sicherheitsfrage was ausgespukt

wir können uns gerne in einem assemblergefecht wiedersehen =P

#closed da script durch kompetente hilfe vervollständigt wurde
marcopolo1990 is offline  
Old 06/02/2009, 01:29   #5

 
x]vIrus[x's Avatar
 
elite*gold: 37
Join Date: Apr 2004
Posts: 2,154
Received Thanks: 250
#closed fake D;

;asm battle start
bla: bra bla
;asm battle end
x]vIrus[x is offline  
Old 06/02/2009, 01:43   #6
 
elite*gold: 0
Join Date: Apr 2009
Posts: 67
Received Thanks: 83
Quote:
Originally Posted by marcopolo1990
wir können uns gerne in einem assemblergefecht wiedersehen =P
Wtf?
RDTSC is offline  
Old 06/02/2009, 01:47   #7
 
marcopolo1990's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,632
Received Thanks: 8,492
weil ich von php kein plan hab ^^
pls closed its done
marcopolo1990 is offline  
Closed Thread


Similar Threads Similar Threads
Account Creation
09/03/2010 - CO2 Private Server - 1 Replies
Hey guys! At first im looking now around some hours for a working registerpage for 5165, I don't really see a sense to have appserver when everything runs over the oldcodb, only for website it should be usefull. Well If I maybe overlooked an existing RegPAge then tell me please. THe way with /newacc blahblahblah I already know but wont make accounts for people who dont get on the console right... Another Idea I got is from a system far before the ninjas got released, I mean it was...
Account Creation
08/09/2010 - Battle of the Immortals - 1 Replies
I live in Australia, is it possible to create another account for PW and be able to play? I can play right now because this PW account was created before the restrictions were laid on. edit: I think I may have been mistaken about this, I just created an account and it works perfectly fine... where in the name of the lord almighty did I get the idea that I can't play since I live in Australia hmm? Delete this thread please. However if you're here, then I might aswell ask. Has anyone...
[HELP!!!] Account Creation
04/02/2010 - CO2 Private Server - 5 Replies
Ok, i have my server running top shape, unfortunately i can only create accounts through BetaCo. Not only that but the database is virtually useless. I make an account in database and the BetaCo.exe is getting them from C:\OldCODB\Users Basically what im saying is i would like to be able to make a script (batch, php, whatever) to let me send the command to BetaCo.exe like so: PHP registration page sends the username and pass to a batch file. the batch file then sends the command /newacc...
Account creation.
05/26/2009 - S4 League - 5 Replies
Hi all, Its just me or is the account creation stopped? I can create a account but the activation key isnt sent to my email. if somebody have the same problem, post it here. btw. back to s4 league .



All times are GMT +1. The time now is 06:27.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.