We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 4dd8bd4c authored by mattl's avatar mattl

remove all references to print_r -- this seems to dump things, including...

remove all references to print_r -- this seems to dump things, including passwords, to the screen. not good.
parent d0c5db68
......@@ -55,7 +55,7 @@ class Group {
if(PEAR::isError($res)) {
header("Content-Type: text/plain");
//print_r($res);
////($res);
exit;
}
......@@ -227,7 +227,7 @@ class Group {
if(PEAR::isError($res))
{
header("Content-Type: text/plain");
//print_r($res);
////($res);
exit;
}
......@@ -266,7 +266,7 @@ class Group {
if(PEAR::isError($res)) {
header("Content-Type: text/plain");
//print_r($res);
////($res);
exit;
}
......
......@@ -139,7 +139,7 @@ class User {
if(PEAR::isError($res)) {
header("Content-Type: text/plain");
print_r($res);
//($res);
exit;
}
......
......@@ -28,7 +28,7 @@ if ($logged_in == false) {
$code = $_GET['code'];
$res = $mdb2->query("SELECT * FROM Delete_Request WHERE username = ".$mdb2->quote($username, 'text').' AND code = '.$mdb2->quote($code, 'text'));
if (PEAR::isError($res)) {
print_r($res);
//($res);
exit ;
}
if (!$res->numRows()) {
......
......@@ -132,7 +132,7 @@ if ($_POST['submit'])
if (isset($errors[0]))
{
header("Content-Type: text/plain");
print_r($errors);
//($errors);
exit;
}
}
......
......@@ -126,7 +126,7 @@ if ($_POST['submit'])
if (isset($errors[0]))
{
header("Content-Type: text/plain");
print_r($errors);
//($errors);
exit;
}
}
......
......@@ -103,7 +103,7 @@ class ARC2_PoshRdfExtractor extends ARC2_RDFExtractor {
/* new s */
if ($this->hasClass($n, 'rdf-s')) {
$lct['next_s'] = array($n['a']['class'], $this->getSubject($n, $lct));
//echo "\ns: " . print_r($lct['next_s'], 1);
//echo "\ns: " . //($lct['next_s'], 1);
}
/* p */
if ($this->hasClass($n, 'rdf-p') || $this->hasRel($n, 'rdf-p')) {
......
......@@ -183,7 +183,7 @@ class ARC2_RDFExtractor extends ARC2_Class {
}
function getContent($n, $outer = 0, $trim = 1) {
//echo '<pre>' . htmlspecialchars(print_r($n, 1)) . '</pre>';
//echo '<pre>' . htmlspecialchars(//($n, 1)) . '</pre>';
if ($n['tag'] == 'comment') {
$r = '<!-- ' . $n['a']['value'] . ' -->';
}
......
......@@ -27,7 +27,7 @@ class ARC2_RdfaExtractor extends ARC2_RDFExtractor {
/* */
function extractRDF() {
//echo '<pre>' . htmlspecialchars(print_r($this->nodes, 1)) . '</pre>';
//echo '<pre>' . htmlspecialchars(//($this->nodes, 1)) . '</pre>';
if (!isset($this->caller->detected_formats['rdfa'])) return 0;
$root_node = $this->getRootNode();
//$base = $this->v('xml:base', $this->getDocBase(), $root_node['a']);
......
......@@ -53,7 +53,7 @@ class ARC2_AtomParser extends ARC2_LegacyXMLParser {
function addT($t) {
//if (!isset($t['o_datatype']))
if ($this->skip_dupes) {
//$h = md5(print_r($t, 1));
//$h = md5(//($t, 1));
$h = md5(serialize($t));
if (!isset($this->added_triples[$h])) {
$this->triples[$this->t_count] = $t;
......@@ -83,7 +83,7 @@ class ARC2_AtomParser extends ARC2_LegacyXMLParser {
function extractRDF() {
$index = $this->getNodeIndex();
//print_r($index);
////($index);
$this->rdf = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#';
$this->atom = 'http://www.w3.org/2005/atom';
$this->rss = 'http://purl.org/rss/1.0/';
......
......@@ -43,7 +43,7 @@ class ARC2_CBJSONParser extends ARC2_JSONParser {
/* explicit triples */
$this->extractResourceRDF($struct, $s);
}
//print_r($struct);
////($struct);
}
function getStructType($struct, $rel = '') {
......
......@@ -142,7 +142,7 @@ class ARC2_LegacyXMLParser extends ARC2_Class {
}
function getNodeContent($n, $outer = 0, $trim = 1) {
//echo '<pre>' . htmlspecialchars(print_r($n, 1)) . '</pre>';
//echo '<pre>' . htmlspecialchars(//($n, 1)) . '</pre>';
if ($n['tag'] == 'cdata') {
$r = $n['a']['value'];
}
......@@ -214,7 +214,7 @@ class ARC2_LegacyXMLParser extends ARC2_Class {
/* */
function open($p, $t, $a) {
//echo "<br />\n".'opening '.$t . ' ' . print_r($a, 1); flush();
//echo "<br />\n".'opening '.$t . ' ' . //($a, 1); flush();
//echo "<br />\n".'opening '.$t; flush();
$t = strtolower($t);
/* base check */
......
......@@ -223,7 +223,7 @@ class ARC2_StoreEndpoint extends ARC2_Store {
}
else {
$this->setHeader('content-type', 'Content-type: text/plain; charset=utf-8');
$this->result = 'Result serializer not available, dumping raw data:' . "\n" . print_r($r, 1);
$this->result = 'Result serializer not available, dumping raw data:' . "\n" . //($r, 1);
}
}
......@@ -439,7 +439,7 @@ class ARC2_StoreEndpoint extends ARC2_Store {
function getPlainSelectResultDoc($r) {
$this->setHeader('content-type', 'Content-Type: text/plain');
return print_r($r['result'], 1);
return //($r['result'], 1);
}
function getHTMLTableSelectResultDoc($r) {
......
......@@ -649,7 +649,7 @@ class ARC2_StoreSelectQueryHandler extends ARC2_StoreQueryHandler {
return 1;
}
$d_tbls = $this->getDependentJoins($id2);
//echo $id . ' :: ' . $id2 . '=>' . print_r($d_tbls, 1);
//echo $id . ' :: ' . $id2 . '=>' . //($d_tbls, 1);
foreach ($d_tbls as $d_tbl) {
if (preg_match('/^T_' .$id. '\./', $d_tbl)) {
return 1;
......@@ -768,7 +768,7 @@ class ARC2_StoreSelectQueryHandler extends ARC2_StoreQueryHandler {
$d_joins = $this->getDependentJoins($id);
$added = array();
$d_aliases = array();
//echo $id . ' =>' . print_r($d_joins, 1);
//echo $id . ' =>' . //($d_joins, 1);
$id_alias = 'T_' . $id . '.s';
foreach ($d_joins as $alias) {
if (preg_match('/^(T|V|G)_([0-9\_]+)(_[spo])?\.([a-z\_]+)/', $alias, $m)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment