<?php
/*
* test_audit_queries_plugin.php
*
* @(#) $Id: test_audit_queries_plugin.php,v 1.1 2021/10/12 11:25:56 mlemos Exp $
*
*/
require("metabase_database.php");
require("metabase_interface.php");
Function Output($message)
{
echo $message,"\n";
}
$arguments = require('configuration.php');
$error = MetabaseSetupDatabase($arguments, $database);
if($error != '')
{
echo "Database setup error: ", $error, "\n";
}
else
{
if(!MetabaseQueryAll($database, "SELECT id, user_name, user_password, reminder, name, email FROM users", $result))
{
echo "Database query error: ", MetabaseError($database), "\n";
}
echo MetabaseDebugOutput($database);
MetabaseCloseSetup($database);
}
?>
|