Try: ca/tecreations/ViewFile.php
<?php
function logUnauthorizedAccess($uri = "", $query = "") {
//$this->setDebug(true);
return $this->issue("INSERT INTO unauthorized (address,target, query) VALUES('" . $_SERVER['REMOTE_ADDR'] . "','$uri','$query')");
}
function getUnauthorized() {
return $this->select("SELECT * FROM unauthorized");
}
function deleteUnauthorized() {
return $this->issue("DELETE FROM unauthorized");
}
function deleteUnauthorizedById($id = "") {
return $this->issue("DELETE FROM unauthorized WHERE id='$id'");
}