[ create a new paste ] login | about

Link: http://codepad.org/GZWCM7Bd    [ raw code | fork ]

PHP, pasted on Feb 16:
1
2
3
4
5
6
if($_POST['ref']) {
require "global_func.php";
$db->query("UPDATE users SET crystals=crystals+2 WHERE userid={$_POST['ref']}");
event_add($_POST['ref'],"For refering $username to the game, you have earnt 2 valuable crystals!",$c);
$db->query("INSERT INTO referals VALUES('', {$_POST['ref']}, $i, unix_timestamp(),'{$r['lastip']}','$IP')");
}


Create a new paste based on this one


Comments: