cpanel'e dışarıdan kodlar ile müdahale etmek mümkündür:
GMTT Cpanel Subdomain Creator
http://www.gmtt.co.uk/files.php?cat=11 <title>Create Subdomain</title>
<?php
require_once ("../config.php");
$ok = TRUE;
$file = fopen ("http://$cpaneluser:$cpanelpass@$cpanelurl:2082/frontend/x/subdomain/doadddomain.html?rootdomain=$cpanelurl&domain=$chosensubdomainname", "r");
if (!$file) {
$ok = FALSE;
echo "error!";
}
while (!feof ($file)) {
$line = fgets ($file, 1024);
if (ereg ("Domain already exists, it was not added.", $line, $out)) {
$ok = FALSE;
echo "Sorry, this subdomain already exists. Please go back and choose another.";
}
}
fclose($file);
if ($ok) {
$displayurl = str_replace("www", "", $cpanelurl);
mysql_connect($host, $user, $password);
mysql_select_db("$db_name");
mysql_query("INSERT INTO cpt_subdomains (id, installdomain, subdomain, redirect, ownerid) VALUES ('', '$displayurl', '$chosensubdomainname', '', '')") or die ("There was an error writing to the database.");
echo "creation of subdomain successful";
}
?>