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
No edit summary
No edit summary
Line 7: Line 7:
     dob) # user_name -> date_of_birth                                                                                                                                         
     dob) # user_name -> date_of_birth                                                                                                                                         
         mariadb -p"${wgDBpassword}" "${wgDBname}" <<<"SELECT date_of_birth FROM user WHERE user_name = '$2';"
         mariadb -p"${wgDBpassword}" "${wgDBname}" <<<"SELECT date_of_birth FROM user WHERE user_name = '$2';"
echo test
         ;;
         ;;
     *)
     *)

Revision as of 21:16, 16 September 2026

#!/usr/bin/env bash

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