(03-09-2016, 06:54 PM)kai91 Wrote: Hi,
I decided to create another topic with just this question. I need to hack sentora's file, so it won't check if domain name is unique (necessary in my case, you can read about it here: http://forums.sentora.org/showthread.php?tid=2649)
Can someone tell me, in which file I have to change true to false (or false to true)?
Big thanks and regards!
//can those threads help me?
http://forums.sentora.org/showthread.php?tid=2058
https://github.com/sentora/sentora-core/issues/246
isn't that about changing that If?
The check is within the controller file of the Domain Module:
PHP Code:
// Check to see if the domain already exists in Sentora somewhere and redirect if it does....
$sql = "SELECT COUNT(*) FROM x_vhosts WHERE vh_name_vc=:domain AND vh_deleted_ts IS NULL";
$numrows = $zdbh->prepare($sql);
$numrows->bindParam(':domain', $domain);
if ($numrows->execute()) {
if ($numrows->fetchColumn() > 0) {
self::$alreadyexists = TRUE;
return FALSE;
}
}