Extra server load ? That file was hosted on my own site ...
any way .. my website , the one which i'm having prolems with is at
http://triway.x10hosting.com/ so you can ckeck it out if you want ...
"The Files"(Complete Listing)
---------
index.php
[PHP]<html>
<head>
<title>
<?php
if($_get[pg])
{
echo "Triway Software - " + $_get[pg];
}
else
{
echo "Triway Software - Homepage";
}
?>
</title>
<link rel="stylesheet" type="text/css" href="<?php require 'php/styleget.php'; ?>">
<script language="JavaScript" type="Text/JavaScript">
<!--
function info()
{
}
-->
</script>
</head>
<body>
<span class="head">
<h1>
<?php
if ($_get[pg]!=0)
{
echo "Triway Software - " + $_get[pg];
}
else
{
echo "Triway Software - Homepage";
}
?>
</h1>
</span>
<span class="bar">
<span class="subhead">NaviBar</span>
<hr />
<?php require "php/navgen.php"; ?>
</span>
<span class="main">
<?php
$errurl=substr_count($_get[pg],".");
$errurl=$errurl+substr_count($_get[pg],"/");
$errurl=$errurl+substr_count($_get[pg],"\\");
if ($errurl>0)
{
echo "Terminal error ! V[".errurl."]";
}
else
{
require "php/contentgen.php";
}
?>
</span>
<span class="foot">
© Aviral Dasgupta 2007<?php require "php/infogen.php"; ?>
</span>
</body>
</html>[/PHP]
php/contentgen.php
[PHP]<?php
$path=$_GET["pg"];
if ($path==0)
{
$path="home";
}
if (file_exists("txt/".strtolower($path)))
{
################# File Content Retrieve ################
require "txt/".$path;
}
else
{
echo "Terminal error ! P[".$path."]";
}
?>[/PHP]
I don't think that the rest of the files deserve listing...
Now the problem that I'm having is that visiting
http://triway.x10hosting.com/index.p...&style=default
still shows the homepage...and even if pg is set in the URL , the code doesn't have it ...