Beispiel #1
0
function export()
{
    global $app, $domainname, $dosyacikti, $impexp;
    $app->output .= __FUNCTION__ . " basliyor.. <br>";
    $app->getVariable(array("domainname", 'impexp'));
    $domainname = $app->chooseDomain(__FUNCTION__, $domainname);
    $app->requireMyDomain($domainname);
    $app->output .= "Domain export ediliyor: {$domainname}";
    exportDomain($domainname);
    $app->output .= "<pre>{$dosyacikti}</pre>";
}
Beispiel #2
0
<?php

if (isset($_REQUEST["action"]) && $_REQUEST["action"] == "export_my_account") {
    checkLoginPass($adm_login, $adm_pass);
    $file_name = "dtcuser_" . $adm_login . ".dtc.xml";
    $xml = exportAllDomain($adm_login);
    header('Content-type: application/dtc+xml');
    header('Content-Disposition: attachment; filename="' . $file_name . '"');
    echo $xml;
    die;
}
if (isset($_REQUEST["action"]) && $_REQUEST["action"] == "export_domain") {
    checkLoginPassAndDomain($adm_login, $adm_pass, $edit_domain);
    $file_name = $edit_domain . '.dtc.xml';
    $xml = exportDomain($edit_domain, $adm_login);
    header('Content-type: application/dtc+xml');
    header('Content-Disposition: attachment; filename="' . $file_name . '"');
    echo $xml;
    die;
}
if (isset($_REQUEST["set_domain_parcking"]) && $_REQUEST["set_domain_parcking"] == "Ok") {
    checkLoginPassAndDomain($adm_login, $adm_pass, $edit_domain);
    if ($_REQUEST["domain_parking_value"] != "no-parking") {
        // Check for mysql insertion and that the user owns the domain he wants to send it's domain to parking to
        if (!isHostname($_REQUEST["domain_parking_value"]) || $_REQUEST["domain_parking_value"] == $edit_domain) {
            if ($_REQUEST["domain_parking_value"] == $edit_domain) {
                echo "You cannot set a domain to be parked to itself";
            } else {
                echo "Not a hostname: " . $_REQUEST["domain_parking_value"];
            }
            $set_to = "no-parking";