Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

本月之星排行中去除管理员的一种方案 #999

Open
duo-liang opened this issue Mar 23, 2024 · 0 comments
Open

本月之星排行中去除管理员的一种方案 #999

duo-liang opened this issue Mar 23, 2024 · 0 comments

Comments

@duo-liang
Copy link

duo-liang commented Mar 23, 2024

index.php中

php include("template/$OJ_TEMPLATE/header.php");

if($NOIP_flag[0]==0)$view_month_rank=mysql_query_cache("select user_id,nick,count(distinct(problem_id)) ac from solution where solution_id>$month_id and problem_id>0 and result=4 group by user_id,nick order by ac desc limit 10");

改为
php include("template/$OJ_TEMPLATE/header.php");
require_once('./include/db_info.inc.php');

if($NOIP_flag[0]==0)$view_month_rank=mysql_query_cache("select user_id,nick,count(distinct(problem_id)) ac from solution where solution_id>$month_id and problem_id>0 and user_id not in (".$OJ_RANK_HIDDEN.") and result=4 group by user_id,nick order by ac desc limit 10");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant