function AD_call_silent()
{
    $proc = func_get_arg(0);
    $args = array_slice(func_get_args(), 1);
    $die = FALSE;
    return AD_call($proc, $args, $die);
}
<?php

session_start();
include 'db_config.php';
include 'include/query.php';
include 'include/users.php';
// Interpret the Request
$username = $AD_SQL->real_escape_string($_REQUEST['username']);
$password = $AD_SQL->real_escape_string($_REQUEST['password']);
$salt = AD_random_salt();
$hash = AD_hash_password($password, $salt);
// Query the Database and Log In
AD_call('create_user', $username, $hash, $salt);
$_SESSION['username'] = $username;
<?php

session_start();
if (!isset($_SESSION['username'])) {
    die('You are not logged in.');
}
include 'db_config.php';
include 'include/query.php';
// Interpret the Request
$username = $AD_SQL->real_escape_string($_SESSION['username']);
$description = $AD_SQL->real_escape_string($_REQUEST['description']);
$state = $AD_SQL->real_escape_string($_REQUEST['state']);
// Query the Database
AD_call('create_save', $username, $description, $state);
?>

<?php

session_start();
if (!isset($_SESSION['username'])) {
    die('You are not logged in.');
}
include 'db_config.php';
include 'include/query.php';
include 'include/users.php';
// Interpret the Request
$username = $AD_SQL->real_escape_string($_SESSION['username']);
$password = $AD_SQL->real_escape_string($_REQUEST['password']);
$salt = AD_random_salt();
$hash = AD_hash_password($password, $salt);
// Query the Database
AD_call('update_user', $username, $hash, $salt);
<?php

session_start();
if (!isset($_SESSION['username'])) {
    die('You are not logged in.');
}
include 'db_config.php';
include 'include/query.php';
include 'include/ownership.php';
// Interpret the Request
$save_id = $AD_SQL->real_escape_string($_REQUEST['save_id']);
// Query the Database
if (AD_can_modify_save($save_id)) {
    AD_call('delete_save', $save_id);
}
<?php

session_start();
if (!isset($_SESSION['username'])) {
    die('You are not logged in.');
}
include 'db_config.php';
include 'include/query.php';
// Interpret the Request
$username = $AD_SQL->real_escape_string($_SESSION['username']);
// Query the Database
AD_call('delete_user', $username);
?>

<?php

session_start();
if (!isset($_SESSION['username'])) {
    die('You are not logged in.');
}
include 'db_config.php';
include 'include/query.php';
// Interpret the Request
$username = $AD_SQL->real_escape_string($_SESSION['username']);
// Query the Database
$rows = AD_call('read_save_list', $username);
// Generate Output
include 'include/xml_headers.php';
echo "<saves>\n";
for ($i = 0; $i < count($rows); $i++) {
    echo "  <save" . " id=\"{$rows[$i]['id']}\"" . " username=\"" . rawurlencode($rows[$i]['username']) . "\"" . " description=\"" . rawurlencode($rows[$i]['description']) . "\"" . " time_stamp=\"{$rows[$i]['time_stamp']}\"" . "/>\n";
}
echo "</saves>\n";
<?php

session_start();
if (!isset($_SESSION['username'])) {
    die('You are not logged in.');
}
include 'db_config.php';
include 'include/query.php';
// Interpret the Request
$save_id = $AD_SQL->real_escape_string($_REQUEST['save_id']);
// Query the Database
$rows = AD_call('read_save', $save_id);
// Generate Output
include 'include/xml_headers.php';
echo $rows[0]['state'];
<?php

session_start();
include 'db_config.php';
include 'include/query.php';
include 'include/ownership.php';
// Interpret the Request
$save_id = $AD_SQL->real_escape_string($_REQUEST['save_id']);
$description = $AD_SQL->real_escape_string($_REQUEST['description']);
$state = $AD_SQL->real_escape_string($_REQUEST['state']);
// Query the Database
if (AD_can_modify_save($save_id)) {
    AD_call('update_piece', $save_id, $description, $state);
}