Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 1452 → Rev 1451

/trunk/plugins/viathinksoft/adminPages/401_backup/OIDplusPageAdminDatabaseBackup.class.php
615,9 → 615,9
$row["title"]??null,
$row["description"]??null,
$row["ra_email"]??null,
(bool)($row["confidential"]??false),
$row["created"]??'1900-01-01 00:00:00',
$row["updated"]??'1900-01-01 00:00:00',
$row["confidential"]??false,
$row["created"]??null,
$row["updated"]??null,
$row["comment"]??null)
);
 
626,8 → 626,8
OIDplus::db()->query("insert into ###asn1id (oid, name, standardized, well_known) values (?, ?, ?, ?)",
array($row["id"]??null, // sic: $row, not $row2
$row2["name"]??null,
(bool)($row2["standardized"]??false),
(bool)($row2["well_known"]??false))
$row2["standardized"]??false,
$row2["well_known"]??false)
);
}
 
636,13 → 636,11
OIDplus::db()->query("insert into ###iri (oid, name, longarc, well_known) values (?, ?, ?, ?)",
array($row["id"]??null, // sic: $row, not $row2
$row2["name"]??null,
(bool)($row2["longarc"]??false),
(bool)($row2["well_known"]??false))
$row2["longarc"]??false,
$row2["well_known"]??false)
);
}
}
OIDplus::db()->query("update ###objects set created = null where created = '1900-01-01 00:00:00';");
OIDplus::db()->query("update ###objects set updated = null where updated = '1900-01-01 00:00:00';");
}
 
// Restore RAs (Table ra)
668,16 → 666,13
$row["phone"]??null,
$row["mobile"]??null,
$row["fax"]??null,
(bool)($row["privacy"]??false),
$row["privacy"]??false,
$row["authkey"]??null,
$row["registered"]??'1900-01-01 00:00:00',
$row["updated"]??'1900-01-01 00:00:00',
$row["last_login"]??'1900-01-01 00:00:00')
$row["registered"]??null,
$row["updated"]??null,
$row["last_login"]??null)
);
}
OIDplus::db()->query("update ###ra set registered = null where registered = '1900-01-01 00:00:00';");
OIDplus::db()->query("update ###ra set updated = null where updated = '1900-01-01 00:00:00';");
OIDplus::db()->query("update ###ra set last_login = null where last_login = '1900-01-01 00:00:00';");
}
 
// Restore configuration (Table config)
696,8 → 691,8
array($row["name"]??null,
$row["value"]??null,
$row["description"]??null,
(bool)($row["protected"]??false),
(bool)($row["visible"]??false))
$row["protected"]??false,
$row["visible"]??false)
);
}