diff options
| author | cassiopc <cassiopc@gmail.com> | 2014-10-30 13:06:31 +0000 |
|---|---|---|
| committer | cassiopc <cassiopc@gmail.com> | 2014-10-30 13:06:31 +0000 |
| commit | 299167dab2835fd91ce67a84deb515fea76246a3 (patch) | |
| tree | ae698bf68bdffedd735b443ac90fc13d2a6b7a3f /src | |
| parent | c00c84f2b36aabc95370bca8004f170c2d28ce60 (diff) | |
| parent | 6692c1b3d36449575ae669131c782d4a48aa8c8f (diff) | |
| download | boca-299167dab2835fd91ce67a84deb515fea76246a3.tar.gz boca-299167dab2835fd91ce67a84deb515fea76246a3.zip | |
Merge branch 'master' of https://code.google.com/p/boca
Diffstat (limited to 'src')
| -rw-r--r-- | src/admin/user.php | 7 | ||||
| -rw-r--r-- | src/fcontest.php | 11 |
2 files changed, 13 insertions, 5 deletions
diff --git a/src/admin/user.php b/src/admin/user.php index 3a1c032..b19c0d0 100644 --- a/src/admin/user.php +++ b/src/admin/user.php @@ -1,7 +1,7 @@ <?php //////////////////////////////////////////////////////////////////////////////// //BOCA Online Contest Administrator -// Copyright (C) 2003-2013 by BOCA Development Team (bocasystem@gmail.com) +// Copyright (C) 2003-2014 by BOCA Development Team (bocasystem@gmail.com) // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -15,7 +15,9 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. //////////////////////////////////////////////////////////////////////////////// -// Last modified 20/sep/2013 by cassio@ime.usp.br +// Last modified 26/oct/2014 by cassio@ime.usp.br +// allow passwords to be changed by default +// require('header.php'); if (isset($_GET["site"]) && isset($_GET["user"]) && is_numeric($_GET["site"]) && is_numeric($_GET["user"]) && @@ -49,6 +51,7 @@ if (isset($_POST["username"]) && isset($_POST["userfullname"]) && isset($_POST[" $param['type'] = htmlspecialchars($_POST["usertype"]); $param['permitip'] = htmlspecialchars($_POST["userip"]); $param['contest'] = $_SESSION["usertable"]["contestnumber"]; + $param['changepass']='t'; /* $param['user'] = myhtmlspecialchars($_POST["usernumber"]); $param['site'] = myhtmlspecialchars($_POST["usersitenumber"]); diff --git a/src/fcontest.php b/src/fcontest.php index a36141e..7adbaab 100644 --- a/src/fcontest.php +++ b/src/fcontest.php @@ -1,7 +1,7 @@ <?php //////////////////////////////////////////////////////////////////////////////// //BOCA Online Contest Administrator -// Copyright (C) 2003-2013 by BOCA System (bocasystem@gmail.com) +// Copyright (C) 2003-2014 by BOCA System (bocasystem@gmail.com) // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -15,8 +15,9 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. //////////////////////////////////////////////////////////////////////////////// -//Last updated 12/sep/2013 by cassio@ime.usp.br - +//Last updated 26/oct/2014 by cassio@ime.usp.br +// inclusion of default extra language C++11 +// function DBDropContestTable() { $c = DBConnect(); $r = DBExec($c, "drop table \"contesttable\"", "DBDropContestTable(drop table)"); @@ -990,6 +991,10 @@ function insertlanguages($n,$c=null) { $param['name']='Java'; $param['extension']='java'; DBNewLanguage($n, $param, $c); + $param['number']=4; + $param['name']='C++11'; + $param['extension']='cc'; + DBNewLanguage($n, $param, $c); } function insertanswers($n,$c) { DBExec($c, "insert into answertable (contestnumber, answernumber, runanswer, yes, fake) values ". |