Jump to content
Toggle menu
  • 6 users
  • 271 edits
The Commonwealth of Acropolis
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

The Constitution is blocked from ratification due to the standing appointment of the Recruiter-General

Away:Module-get: Difference between revisions

From The Commonwealth of Acropolis
Created page with "#!/usr/bin/env bash case $1 in name) # user_name -> user_real_name mariadb -password xca <<<"SELECT user_real_name FROM user WHERE user_name = '$2';" ;; dob) # user_name -> date_of_birth..."
 
No edit summary
Line 2: Line 2:
case $1 in
case $1 in
     name) # user_name -> user_real_name                                                                                                                                       
     name) # user_name -> user_real_name                                                                                                                                       
         mariadb -password xca <<<"SELECT user_real_name FROM user WHERE user_name = '$2';"
         mariadb -p"${wgDBpassword}" xca <<<"SELECT user_real_name FROM user WHERE user_name = '$2';"
         ;;
         ;;
     dob) # user_name -> date_of_birth                                                                                                                                         
     dob) # user_name -> date_of_birth                                                                                                                                         
         mariadb -password xca <<<"SELECT date_of_birth FROM user WHERE user_name = '$2';"
         mariadb -p"${wgDBpassword}" xca <<<"SELECT date_of_birth FROM user WHERE user_name = '$2';"
         ;;
         ;;
     *)
     *)

Revision as of 20:56, 16 September 2026

#!/usr/bin/env bash
case $1 in
    name) # user_name -> user_real_name                                                                                                                                       
        mariadb -p"${wgDBpassword}" xca <<<"SELECT user_real_name FROM user WHERE user_name = '$2';"
        ;;
    dob) # user_name -> date_of_birth                                                                                                                                         
        mariadb -p"${wgDBpassword}" xca <<<"SELECT date_of_birth FROM user WHERE user_name = '$2';"
        ;;
    *)
        /root/away/help.sh
        ;;
esac