cleanup and sync
This commit is contained in:
+7
-2
@@ -13,10 +13,13 @@ define('USER', $db_user);
|
||||
define('PASS', $db_pass);
|
||||
define('DB', 'vintagecodingdotnet');
|
||||
|
||||
// **************** ACCOUNT QUERIES *************** //
|
||||
|
||||
/*
|
||||
* For use by an administrator.
|
||||
* IMPORTANT: This should only be called once a user has been authorized as an
|
||||
* administrator.
|
||||
*
|
||||
* TODO: Use JOIN to get role, profile picture, etc.
|
||||
* TODO: Use JOIN to get other columns like roles and profile pictures.
|
||||
*/
|
||||
function get_all_accounts()
|
||||
{
|
||||
@@ -50,6 +53,8 @@ function get_account_role($username)
|
||||
return $results;
|
||||
}
|
||||
|
||||
// **************** ARTICLE QUERIES *************** //
|
||||
|
||||
function get_all_article_cards()
|
||||
{
|
||||
$conn = mysqli_connect(HOST, USER, PASS, DB);
|
||||
|
||||
Reference in New Issue
Block a user