Jump to content

Most efficient method of this..


sphinx

Recommended Posts

<?php
$link ='hits.php?on';
if (isset($_GET['on']))
header('Refresh: 3; url= ' . $link);
?>
<title>Url - Statistics</title>
<body bgcolor="#99E0FF"> 
<STYLE>
<!--
a {text-decoration: none}
//-->
</STYLE>
<div style="text-align: center;"><span style="font-family: Bookman Old Style; font-size: 10pt;"><span style="color: rgb(0, 0, 205);"><img border="0px" src="http://www.bertevers.nl/Statistics/pictures/statistics%20header.gif" title="" alt="" /></span></span><br /><br />
<span style="font-family: Bookman Old Style; font-size: 10pt;"><span style="color: rgb(0, 0, 205);">You've had</span> <span style="font-weight: bold; color: rgb(255, 69, 0);"><?php include "text_file_hit_counter.php"; ?></span> <span style="color: rgb(0, 0, 205);">Unique hits redirected to PrizeLive. </span></span><br><?php
$link ='hits.php?on';
if (!isset($_GET['on']))
echo "<a href=\"?on\">"
?>
<?php
$link ='hits.php?on';
if (isset($_GET['on']))
echo "<a href=\"?off\">"
?>
<span style="font-family: Arial; font-size: 8pt; color: rgb(255, 0, 0);"><?php
$link ='hits.php?on';
if (isset($_GET['on']))
echo "(Click here to turn auto-refresh off)"
?>
<?php
$link ='hits.php?on';
if (!isset($_GET['on']))
echo "(Click here to turn auto-refresh on)"
?></span></a><br /><br />
<span style="font-family: Arial; font-size: 8pt; color: rgb(0, 0, 0);">Copyright Prizelive.net 2010 </span></span></span><span style="font-family: Arial; font-weight: bold; font-size: 8pt; color: rgb(0, 0, 0);">©</span><span style="font-family: Bookman Old Style; font-size: 10pt; color: rgb(255, 0, 0);"><span style="font-family: Arial; font-size: 8pt; color: rgb(0, 0, 0);"></span><br />
</span></div></div>
<center><span style="font-family: Arial; font-size: 8pt; color: rgb(0, 0, 0);">Autofresh is: <?php
$link ='hits.php?on';
if (isset($_GET['on']))
echo "Enabled |<a href=\"?off\"> Disable?</a>"
?>
<?php
$link ='hits.php?on';
if (!isset($_GET['on']))
echo "Disabled |<a href=\"?on\"> Enable?</a>"
?></span></span></span></center>
<br><br>

 

Result: http://www.prizelive.net/hits

 

Is their a way of using less code?

 

thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.