Location: PHPKode > scripts > Create Your Own Directory > cms/admin/code.php
<?php
include "authheader.php";

if($block != true)
{
?>

<!-- Welcome to the scripts database of HIOX INDIA      -->
<!-- This tool is developed and a copyright             -->
<!-- product of HIOX INDIA.				        -->
<!-- For more information visit http://www.hscripts.com -->

<html>
<head>
<style>
.ta{background-color: ffff44;}
.rad{color:red; font-weight:bold; background-color: ffff44;}
.head{font-size: 17px; color: white; font-family: verdana, arial, san-serif;}
.links{font-size: 13px; color: white; font-family: verdana, arial, san-serif; text-decoration:none;}
.maintext{font-size: 13px; color: #fefefe; font-family: verdana, arial, san-serif; padding:20px;}
</style>
</head>
<body style="margin: 0px;">
<?php include "heade.php" ?>
<div height=20></div>
<table width=80% height=100% cellpadding=0 cellspacing=0 align=center>
<tr><td height=20></td></tr>
<tr ><td class=maintext valign=top bgcolor=#f8f8ff   >
<div align=center style="color: 000000">

<br>Copy the below code in to the pages where you want rating to be displayed<br><br>
<table width=400 height=150 align=center bgcolor=white>
<tr><td style="color: green; font-size: 13px;">
<?php
$url = $_SERVER['SCRIPT_FILENAME'];
$pp = strrpos($url,"/");
$url = substr($url,0,$pp);

$ura = $_SERVER['SCRIPT_NAME'];
$host = $_SERVER['SERVER_NAME'];
$ser = "http://$host";
$ura= $ser.$ura;
$pp1 = strrpos($ura,"/");
$ura = substr($ura,0,$pp1);

echo "&lt?php<br>
$"."hm = \"$url\";<br>
$"."hm2 = \"$ura\";<br>
include \"$"."hm/addcode.php\";<br>
?&gt;";
?>

</td></td></table>


</div>
</td></tr>
<!-- content row -->

<tr><td width=100% align=right>
a product by &copy; <a href="http://www.hscripts.com" 
style="font-size: 14px; color: 347777; text-decoration:none;">hscripts.com</a> 
&nbsp; &nbsp; &nbsp; &nbsp;
</td></tr>
</table>
<!-- main table -->

</td></tr>
</table>
<tr><td height=20 bgcolor=white>
</td></tr></table>

</body>
</html>

<!-- Welcome to the scripts database of HIOX INDIA      -->
<!-- This tool is developed and a copyright             -->
<!-- product of HIOX INDIA.				        -->
<!-- For more information visit http://www.hscripts.com -->

<?php
}
?>
Return current item: Create Your Own Directory