fix: 61aebec03e
All checks were successful
continuous-integration/drone/push Build is passing

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

View File

@ -15,7 +15,7 @@ return function (string $type) {
$extra['social']['codeforces'] = $user['codeforces_handle']; $extra['social']['codeforces'] = $user['codeforces_handle'];
$extra['social']['github'] = $user['github']; $extra['social']['github'] = $user['github'];
$extra['social']['website'] = $user['website']; $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([ DB::update([
"update user_info", "update user_info",

View File

@ -66,7 +66,7 @@ setWebConf(){
\$config['database']['host']='$_database_host_'; \$config['database']['host']='$_database_host_';
\$config['database']['password']='$_database_password_'; \$config['database']['password']='$_database_password_';
\$config['judger']['socket']['port']='$_judger_socket_port_'; \$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 UOJEOF
# Prepare local sandbox # Prepare local sandbox
cd /opt/uoj/judger/uoj_judger cd /opt/uoj/judger/uoj_judger