Sterge informatiile despre runde din baza de date
Review Request #134 - Created March 12, 2010 and submitted
Information | |
---|---|
Stefan Filip | |
infoarena | |
Reviewers | |
hackers | |
Am adugat un buton in pagina generata de /admin/[round]?action=sterge-runda care sterge toate informatiile legate de round din baza de date. Informatii corelate cu o runda se gasesc in tablele: ia_job_test ia_job ia_parameter_value ia_round_task ia_user_round ia_round_task ia_round Sper ca securitatea actiunii este testata cum trebuie in controllerul de round_delete.
Am scris un script care cauta in baza de date dupa un argument primit ca argument din consola, pentru a testa ca nu raman informatii, insa deocamdata am sters numai runda virtuale.
-
/trunk/scripts/seek-value-in-db.php (Diff revision 1) -
evil empty line
-
/trunk/www/controllers/round.php (Diff revision 1) -
You should check that request method is POST. if (request_is_post())
Review request changed
Change Summary:
Now I also delete the entries from ia_score, forgot about it before.
Diff: |
Revision 4 (+141 -4) |
---|
This is great stuff! You can commit it to svn once somebody gives a Ship It, you don't have to wait for it a second time. :)
-
/trunk/common/db/round.php (Diff revision 4) -
You can remove the "have no ideea what this is" part :))