Try: ca/tecreations/ViewFile.php
<?php
require_once $_SERVER['DOCUMENT_ROOT'] . "/Base.php";
GLOBAL $DOCROOT;
$db->setDebug(true);
$path = $count = "";
if (isset($_REQUEST['path'])) {
$path = str_replace(";","SEMI_COLON",$_REQUEST['path']);
}
$result = $db->select("SELECT copy_count FROM copies WHERE path='$path'");
$count = $result['count']; $count = $result['count'];
if ($count == 1) {
$row = $result['rows'];
$copy_count = $row['copy_count'];
$copy_count++;
$db->issue("UPDATE copies SET copy_count='$copy_count' WHERE path='$path'");
header("Location: $path?height=" . $_REQUEST['height'] . "&no_hit=true");
} else {
die("incrementCopyCount.php: Invalid number of rows returned for path.");
}