I made a small script for a skin that I'm making to get the resellers domain name so that it links to the resellers site.
This is pretty much all done with a small config file inside their /home/username/cpanelbranding/skinname/variable.php which has 3 variables that the reseller can set. (domain, link text, and the title of the link)
My question is this, is it possible to have this script run on .html pages? Currently it is displaying the source code when the pages are .html
I am including this file by using <cpanel include="/home/username/rconf.php"> inside the stdfooter.html page. (works)PHP Code:<?PHP
$owner = <cpanel print="$CPDATA{'OWNER'}">;
if(file_exists("/home/$owner/cpanelbranding/skinname/variable.php")) {
include ("/home/$owner/cpanelbranding/skinname/variable.php");
echo "© 2004-2005 <a href=\"$domain\" title=\"$alt\">$name</a>. All Rights Reserved.";
} else {
echo "<font color=\"red\"><b>Error opening configuration file, please contact the server administrator.</b></font>";
}
?>
I'm quite new to how cPanel has it's variables setup.![]()
Thanks alot to anyone who helps![]()
Justin M.



LinkBack URL
About LinkBacks


Reply With Quote
Thanks, I guess I will be doing it manually then.





