Ejemplo n.º 1
0
function drop_user($uname, $s_sysdba_pw)
{
    global $s_login, $ib_error;
    if (($service = fbird_service_attach($s_login['host'], 'SYSDBA', $s_sysdba_pw)) == FALSE) {
        $ib_error = fbird_errmsg();
    } elseif (fbird_delete_user($service, $uname) == FALSE) {
        $ib_error = fbird_errmsg();
    } else {
        fbird_service_detach($service);
    }
    return empty($ib_error);
}
Ejemplo n.º 2
0
                $options |= $option;
            }
        }
        if ($s_restore['overwrite']) {
            $options |= IBASE_RES_REPLACE;
        } else {
            $options |= IBASE_RES_CREATE;
        }
        if (empty($error)) {
            $source_file = defined('BACKUP_DIR') && BACKUP_DIR !== '' ? BACKUP_DIR . $s_restore['source'] : $s_restore['source'];
            if ($s_restore['verbose']) {
                // remove pending backup-jobs from session
                $s_iframejobs = array_filter($s_iframejobs, create_function('$a', '$a["job"]!="restore";'));
                $iframekey_restore = md5(uniqid('restore'));
                $s_iframejobs[$iframekey_restore] = array('job' => 'restore', 'source' => $source_file, 'target' => $s_restore['target'], 'options' => $options, 'connect' => $s_restore['connect'], 'timestamp' => time());
            } elseif (($service = fbird_service_attach($s_login['host'], $s_login['user'], $s_login['password'])) != FALSE) {
                fbird_restore($service, $source_file, $s_restore['target'], $options, $s_restore['verbose']);
                $message = 'restore started';
                fbird_service_detach($service);
            } else {
                $ib_error = fbird_errmsg();
            }
        }
    }
}
// print out all the panels
//
$s_page = 'Admin';
$panels = $s_admin_panels;
require './inc/script_end.inc.php';
function get_backup_filename($pname)