Пример #1
0
function buggy()
{
    echo '<br>DEBUG INFO:<br>';
    global $mo_request, $user;
    //$_POST['auto_login'] = True;
    //$user->login('moycat', '123456');
    //echo password_hash('123456', PASSWORD_DEFAULT, ['cost' => 5 ] ) . "<br>";
    //echo serialize( $mo_settings );
    //mo_del_user( 21 );
    //mo_add_user('asdf553', 'dsfdffdff', 'g24g234g');
    //$user->refresh_login();
    //mo_set_option( '123', array());
    //$p = mo_list_problems(1, 2, 'qwertyuio');
    //mo_add_new_discussion( 4, 'cha', 'dsfsdfg发发', $pid = 0 );
    //$p = mo_list_solutions(1, 2);
    //var_dump($p);
    //echo mo_get_problem_count('qwertyuio');
    var_dump($_POST);
    //var_dump($user);
    print_r($mo_request);
    echo "\n<br>" . mo_time();
}
Пример #2
0
<br>
<p> <a href="https://github.com/moycat/MoyOJ">MoyOJ@GitHub</a></p>
<p>Page processed in <?php 
echo mo_time(0) / 1000;
?>
 second(s)</p>
</body>
</html>
Пример #3
0
function mo_write_note($note)
{
    if (defined('DEBUG') && DEBUG && defined('OUTPUT') && OUTPUT) {
        echo "\n<!-- Note: " . $note . ' Time:' . mo_time() . " -->\n";
    }
}