Web Hosting Talk







View Full Version : /home/username/cpanel3-skel


EssEss
02-02-2002, 10:27 AM
Hi,

(Hope that I'm posting in the right forum....)

I use WHM/Cpanel.

There's a folder named /home/username/cpanel3-skel and I can put HTML and image files there, so that, whenever I set up a new domain, WHM copies the files from that folder to the public_html folder of the new domain.

Can anybody please help about what to put in the index.html file there in that cpanel3-skel folder, so that, when it places in the domain's public_html folder, it gets changed to something like :

"The domain : TheActualDomainName.com is Under Construction"

Thanks in advance...

:beer:

JapAniManga.ch
02-02-2002, 11:23 AM
Hi,

Interesting Question, want also make soon a own Skel.

The best is when you make a Search or post this Question at the Forum of CPanel -) http://www.cpanel.net/ !

method5
02-02-2002, 01:50 PM
<?php
$data = explode(".", $GLOBALS["HTTP_HOST"]);
$domain = $data[1] . "." . $data[2];
echo "The domain: <B>" . $domain . "</B> is Under Construction";
?>

EssEss
02-03-2002, 01:27 AM
T H A N K Y O U ! ! ! Method5....

It works fine...thank you again..

The only thing is that the file is to be named as index.php, instead of index.html.

How to put the domain name in <TITLE></TITLE>?

:beer:

bert
02-04-2002, 08:32 PM
Just do this:

<?php
$data = explode(".", $GLOBALS["HTTP_HOST"]);
$domain = $data[1] . "." . $data[2];
echo "<html><title>$domain</title><body>";
echo "The domain <B>$domain</B> is Under Construction </body></html>";
?>

Lats
02-04-2002, 09:29 PM
Bert,

You're a legend :cool:

Thanks.


Lats...