Hacking sentora's unique domain
#3
RE: Hacking sentora's unique domain
(03-09-2016, 10:22 PM)bbspike Wrote: 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;
 
           }
 
       



Is that possible to change it via phpmyadmin? (true false) or I have to dig into files?

Ok, I found it. Shall I remove whole select? cause if I remove only if, that would be senseless to check every domain for nothing, right?

//I removed whole select (excatly that what you have quoted), and now I have 'you cannot add a subdomain here' :/
Reply


Messages In This Thread
Hacking sentora's unique domain - by kai91 - 03-09-2016, 06:54 PM
RE: Hacking sentora's unique domain - by bbspike - 03-09-2016, 10:22 PM
RE: Hacking sentora's unique domain - by kai91 - 03-10-2016, 05:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Sentora cp steps 421darren 6 17 ,443 06-12-2025, 03:29 PM
Last Post: AnthonyDillard
Improving Security on Your Sentora Panel: Best Practices DylanForeman 0 488 05-27-2025, 06:10 PM
Last Post: DylanForeman
Is Sentora dead? rajeevrrs 2 5 ,753 12-17-2022, 09:20 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)