|
@@ -2,6 +2,10 @@
|
|
|
if (strpos($_SERVER['PHP_SELF'], "inc.php") !== false)
|
|
|
exit("This file is meant to be included.");
|
|
|
|
|
|
+function regGetSuffix($domain) {
|
|
|
+ return preg_replace("/^[^.]+\./", "", $domain);
|
|
|
+}
|
|
|
+
|
|
|
function regListUserDomains($username) {
|
|
|
$db = new PDO('sqlite:' . DB_PATH);
|
|
|
$usernameArray[0] = $username;
|
|
@@ -24,7 +28,7 @@ function regListUserDomains($username) {
|
|
|
return $domains;
|
|
|
}
|
|
|
|
|
|
-function nicCheckDomainPossession($domain) {
|
|
|
+function regCheckDomainPossession($domain) {
|
|
|
checkAbsoluteDomainFormat($domain);
|
|
|
|
|
|
$db = new PDO('sqlite:' . DB_PATH);
|
|
@@ -37,7 +41,7 @@ function nicCheckDomainPossession($domain) {
|
|
|
|
|
|
$owned = false;
|
|
|
while ($dbDomain != NULL) {
|
|
|
- if ($dbDomain == $domain) {
|
|
|
+ if ($dbDomain === $domain) {
|
|
|
$owned = true;
|
|
|
break;
|
|
|
}
|
|
@@ -48,7 +52,7 @@ function nicCheckDomainPossession($domain) {
|
|
|
exit("Erreur : Vous ne possédez pas ce domaine sur le registre !");
|
|
|
}
|
|
|
|
|
|
-function isFree($domain) {
|
|
|
+function regIsFree($domain) {
|
|
|
|
|
|
$domainArray[0] = $domain;
|
|
|
|