0) { // Update ref counter SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET ref_clicks=ref_clicks+1 WHERE userid=%s LIMIT 1", array(bigintval($ref)), __FILE__, __LINE__); } // END - if } else { // No refid and we add our refid (don't forget to set $def_refid!) $URL = "index.php"; } // Load the URL LOAD_URL($URL); } else { // You have to install first! LOAD_URL("install.php"); } // Really all done here... ;-) ?>