diff options
Diffstat (limited to 'toj/php/test.php')
-rw-r--r-- | toj/php/test.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/toj/php/test.php b/toj/php/test.php new file mode 100644 index 0000000..a38a8a8 --- /dev/null +++ b/toj/php/test.php @@ -0,0 +1,32 @@ +<?php +ini_set("display_errors", "On"); +error_reporting(E_ALL & ~E_NOTICE); + +require_once('common.inc.php'); +require_once('sqlib.inc.php'); +require_once('user.inc.php'); + +$msqlc = db_connect('toj_mod'); +$sqlc = db_connect(); + +function func($sqid, $proid, $best_score, $best_time, $is_ac, $ac_time, $tries_before_ac, $last_score, $last_status, $last_time, $tries) +{ + return $best_score; +} + +//$a = intval($_GET['a']); +//sqlib_scoreboard::set_last_update($msqlc, 1, 4, false); +//$scb = sqlib_scoreboard::get_scoreboard($sqlc, $msqlc, 1, $a, func, null, null, 1, 20); +//var_dump($scb); +//echo(json_encode($scb)); +//$test = sqlib_scoreboard::get_last_update($msqlc, 1, $a); +//echo($test.'<br>'); +//echo(strtotime($test).'<br>'); +//echo(time()); + +$res = user::reset_password($sqlc, 130); +var_dump($res); + +db_close($sqlc); +db_close($msqlc); +?> |