1
1
mirror of https://github.com/renbaoshuo/S2OJ.git synced 2025-03-28 14:07:02 +00:00

fix: 61aebec03ec3328972276e33b2a19ba58b430bdc

This commit is contained in:
Baoshuo Ren 2022-11-06 13:21:04 +08:00
parent 61aebec03e
commit db6b0ffdb4
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 2 additions and 2 deletions
web
app/upgrade/14_sync_from_uoj.ac
install.sh

@ -15,7 +15,7 @@ return function (string $type) {
$extra['social']['codeforces'] = $user['codeforces_handle'];
$extra['social']['github'] = $user['github'];
$extra['social']['website'] = $user['website'];
$extra['image_hosting']['total_size_limit'] = $user['images_size_limit'];
$extra['image_hosting']['total_size_limit'] = (int)$user['images_size_limit'];
DB::update([
"update user_info",

@ -66,7 +66,7 @@ setWebConf(){
\$config['database']['host']='$_database_host_';
\$config['database']['password']='$_database_password_';
\$config['judger']['socket']['port']='$_judger_socket_port_';
file_put_contents('/var/www/uoj/app/.config.php', "<?php\nreturn ".str_replace('\'_httpHost_\'','UOJContext::httpHost()',var_export(\$config, true)).";\n");
file_put_contents('/var/www/uoj/app/.config.php', "<?php\nreturn ".str_replace('\'_httpHost_\'','UOJContext::requestDomain()',var_export(\$config, true)).";\n");
UOJEOF
# Prepare local sandbox
cd /opt/uoj/judger/uoj_judger