0) //(substr($returnLink, (strlen($returnLink) - 1), 1) == "&") { $returnLink = substr($returnLink, 0, (strlen($returnLink) - 1)); $returnLink = "archive.php?" . $returnLink; } else { $returnLink = "archive.php"; } // --------------------------------- // if(isset($_REQUEST["ImageID"]) && is_numeric($_REQUEST["ImageID"])) // Is ImageID not blank and numeric? { if(isset($_POST["Hist"]) && $_POST["Hist"]) { $histcount = $_POST["Hist"] + 1; } else { $histcount = 1; } /*if(isset($_POST["ChangeCaption"]) && $_POST["ChangeCaption"] == "True") { if($_POST["Caption"]) { $sql = "UPDATE imagelog SET Caption = '" . $_POST["Caption"] . "', TimeInsert = TimeInsert WHERE ImageID = " . $_POST['ImageID'] . ";"; $db_object->query($sql); } }*/ if(isset($_POST["AddComment"]) && $_POST["AddComment"] == "True") { if($_POST["Comment"]) { $convcomment = str_replace("<", htmlentities("<"), $_POST["Comment"]); // Replace HTML tags $sql = "INSERT INTO comments (ImageID, UserID, Comment) VALUES (" . $_POST['ImageID'] . ", " . $UserID . ", '" . $convcomment ."');"; $db_object->query($sql); $sql = "SELECT COUNT(*) FROM comments WHERE ImageID = " . $_POST['ImageID'] . ";"; $db_object->query($sql); $row = $db_object->fetch_array(); $sql = "UPDATE imagelog SET Num_comments = " . $row[0] . ", TimeInsert = TimeInsert WHERE ImageID = " . $_POST['ImageID'] . ";"; $db_object->query($sql); } } // If user who created image does no longer exist, image will not be displayed, i.e. user will be redirected // to archive.php!!! $sql = "SELECT imagelog.*, user.Screen_name, keys.Key_name FROM imagelog, user, `keys` WHERE imagelog.ImageID = " . $_REQUEST["ImageID"] . " AND imagelog.UserID = user.UserID AND imagelog.KeyID = keys.KeyID AND Screened = 1"; $db_object->query($sql); if( !($row = $db_object->fetch_array()) ) // Does photo with ImageID exist? { echo "1"; //header("Location: archive.php"); // Redirect to archive page exit; } } else { header("Location: archive.php"); // Redirect to archive page exit; } ?>  
query($sql); $row2 = $db_object2->fetch_array(); if($row2["PrevID"] == "") { ?> Previous photo query($sql); $row2 = $db_object2->fetch_array();*/ // javascript:history.go(-<*=$histcount*>) ?>
Notice: Undefined variable: row in /var/www/demonstrate.berkeley.edu/html/photo.php on line 160

Notice: Undefined variable: row in /var/www/demonstrate.berkeley.edu/html/photo.php on line 160


Go back to photos Go back to photos
" . $row["ImageID"] . " AND Screened = 1 AND UserID = '" . $_SESSION['Author'] . "';"; } else { $sql = "SELECT MIN(ImageID) AS NextID FROM imagelog WHERE ImageID > " . $row["ImageID"] . " AND Screened = 1;"; } $db_object2->query($sql); $row2 = $db_object2->fetch_array(); if($row2["NextID"] == "") { ?> Next photo
query($sql); if($db_object->num_rows()) { //$db_object2 = new db(); // Open db connection /*function stars($length) { $replace = false; for(;$length--;) { $replace .= "*"; } return $replace; }*/ for($rowcount = 0; $row = $db_object->fetch_array(); $rowcount++) { $year = substr($row['TimeInsert'], 0, 4); $month = substr($row['TimeInsert'], 4, 2); $day = substr($row['TimeInsert'], 6, 2); $hour = substr($row['TimeInsert'], 8, 2); $min = substr($row['TimeInsert'], 10, 2); $sec = substr($row['TimeInsert'], 12, 2); if($rowcount) { echo ''; } else { echo ''; } ?>
 
Notice: Undefined variable: row in /var/www/demonstrate.berkeley.edu/html/photo.php on line 194
   
Notice: Undefined variable: row in /var/www/demonstrate.berkeley.edu/html/photo.php on line 196
 
 
Notice: Undefined variable: row in /var/www/demonstrate.berkeley.edu/html/photo.php on line 213
 

 
Notice: Undefined variable: row in /var/www/demonstrate.berkeley.edu/html/photo.php on line 254

 
query($sql); $comment = $row["Comment"]; while($row2 = $db_object2->fetch_array()) { $word = "\\b" . $row2["Word"] . "\\b"; $word = str_replace("\b*", "(\b|\.*)", $word); $word = str_replace("*\b", "(\b|\.*)", $word); //print $word . "
"; //$comment = preg_replace("/$word/i",stars(strlen($orgWord)),$comment); $comment = preg_replace("/$word/i","*beep*",$comment); } ?>  
Notice: Undefined variable: comment in /var/www/demonstrate.berkeley.edu/html/photo.php on line 272