Skip to content

Commit

Permalink
Update my_func.inc.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Sep 23, 2024
1 parent ce65d52 commit f6a2e79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trunk/web/include/my_func.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function create_subdomain($user_id,$template="bs3",$friendly="0"){
pdo_query("create database `jol_$user_id`;\n");
pdo_query("drop USER '$NEW_USER'@'localhost';");
pdo_query("create USER '$NEW_USER'@'localhost' identified by '$NEW_PASS';");
pdo_query("grant all privileges on jol_$user_id.* to '$NEW_USER'@'localhost' ;");
pdo_query("grant all privileges on jol\\_".str_replace("_","\\_",$user_id).".* to '$NEW_USER'@'localhost' ;");
pdo_query("flush privileges;\n");
$sql="use `jol_$user_id`;\n";
$csql=file_get_contents("/home/judge/src/install/db.sql");
Expand Down

0 comments on commit f6a2e79

Please sign in to comment.