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
https://forums.phpfreaks.com/topic/215152-most-efficient-method-of-this/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.