It is a side box that was added in the past by someone no loner around. It adds metals prices in a sidebox. I had totally forgotten it had been added.
<?php
/**
* blank sidebox - allows a blank sidebox to be added to your site
*
* @package templateSystem
* @copyright 2007 Kuroi Web Design
* @copyright Portions Copyright 2003-2007 Zen Cart Development Team
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: blank_sidebox.php 2007-05-26 kuroi $
*/
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
// Replace the text and HTML tags between the apostophes on lines 19 and 20.
// Use as many or as few lines using this model as you need for your custom content.
// If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox_defines.php and include it as shown in line 19.
// If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!)
$content .= '<center><p><a href=index.php?main_page=page_4>' . TEXT_SPOTS_SIDEBOX . '</a></p></center>';
$gold = 0;
$silver = 0;
$platinum = 0;
$palladium = 0;
$file = fopen("http://a.coinnet.com/cgi-bin/freebie" , "r");
$content .= "<table><tr><td></td><td>Last</td><td>Change</td></tr>";
while(!feof($file)){
$line = fgets($file);
$line = preg_replace("/<.*?>/", "", $line);
if(preg_match("/Gold/", $line)&& $gold == 0){
$s1 = fgets($file);
$s1 = preg_replace("/<.*?>/", "", $s1);
$s2 = fgets($file);
$s2 = preg_replace("/<.*?>/", "", $s2);
$s3 = fgets($file);
$s3 = preg_replace("/<.*?>/", "", $s3);
$content .= "<tr><td>". $line . "</td><td>". $s1 . "</td><td>". $s3 . "</td></tr>";
$gold ++;
}elseif (preg_match("/Silver/", $line) && $silver == 0){
$s1 = fgets($file);
$s1 = preg_replace("/<.*?>/", "", $s1);
$s2 = fgets($file);
$s2 = preg_replace("/<.*?>/", "", $s2);
$s3 = fgets($file);
$s3 = preg_replace("/<.*?>/", "", $s3);
$content .= "<tr><td>". $line . "</td><td>". $s1 . "</td><td>". $s3 . "</td></tr>";
$silver ++;
}elseif (preg_match("/Platinum/", $line) && $platinum == 0){
$s1 = fgets($file);
$s1 = preg_replace("/<.*?>/", "", $s1);
$s2 = fgets($file);
$s2 = preg_replace("/<.*?>/", "", $s2);
$s3 = fgets($file);
$s3 = preg_replace("/<.*?>/", "", $s3);
$content .= "<tr><td>". $line . "</td><td>". $s1 . "</td><td>". $s3 . "</td></tr>";
$platinum ++;
}elseif (preg_match("/Palladium/", $line) && $palladium == 0){
$s1 = fgets($file);
$s1 = preg_replace("/<.*?>/", "", $s1);
$s2 = fgets($file);
$s2 = preg_replace("/<.*?>/", "", $s2);
$s3 = fgets($file);
$s3 = preg_replace("/<.*?>/", "", $s3);
$content .= "<tr><td>". $line . "</td><td>". $s1 . "</td><td>". $s3 . "</td></tr>";
$palladium ++;
}
}
$content .= "</table>";
//$content .= '<p><a href=index.php?main_page=page_4>Click Here</a></p></center>';
$content .= '</div>';


Reply With Quote
