Ejemplo n.º 1
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . "/api/CSRSearch.class.php";
$upcCode = NULL;
if (isset($_REQUEST['upcc'])) {
    $upcCode = htmlspecialchars($_REQUEST["upcc"]);
}
$searchMethod = "";
if (isset($_REQUEST['searchtype'])) {
    $searchMethod = strtoupper($_REQUEST['searchtype']);
}
$searcher = new CSRSearch($upcCode, $searchMethod);
$searcher->search();
$searcher->getResults();
Ejemplo n.º 2
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . "/api/CSRSearch.class.php";
$searchStr = "<image>";
if (isset($_REQUEST['info'])) {
    // $error=htmlspecialchars($_REQUEST["info"]);
    $searchStr = htmlspecialchars($_REQUEST["info"]);
}
$failer = new CSRSearch($searchStr, "IMAGE");
$failer->decoderFailure();
// REQUIRE_ONCE($_SERVER['DOCUMENT_ROOT']."/api/ErrorLogs.class.php");
// $file = __FILE__;
// $line = "CLIENT";
// $type = 800;
// $error = "";
// $log = new errorLoger();
// $log->logError($type, $error, $file, $line);