Comment added'; } else if($_db_operation == 'update'){ //Update the record to the database. $query = "UPDATE $TABLENAME SET comment = '$c' , title = '$t', image = '$filename', time = '$time', postedBy = '$un' WHERE $editCol = '$uid'"; $result = @mysql_query ($query); echo '

Comment added

'; } //****UPLOAD IMAGES************************************************************************ //split the filenames into an array $filesArray = split(", ", $filename); if ($result) { //Move file(s) over //loop through the filesArray and upload files for($i=0; $i<$imagesPerEntry; $i++){ $curImageFile = "upload$i"; if(!empty($filesArray[$i])){ if (move_uploaded_file($_FILES[$curImageFile]['tmp_name'], "$baseURL/blogImages/$filesArray[$i]")) { //moving to the 'blogImages' directory chmod("$baseURL/blogImages/$filesArray[$i]", 0755); //added to ensure that the files are readable echo '

The file has been uploaded!

'; } else { echo '

The file could not be moved.

'; } }else{/*no file in here*/} } //end of for loop } else { // If the query did not run OK. echo '

Your submission could not be processed due to a system error. We apologize for any inconvenience.

'; echo 'this is the error: '. mysql_error(); } //refresh the page to clear out the POSTback }//end of username and password check else{ echo '

The Username/Password that you entered does not match.

'; } //****GENERATE RSS FEED******************************************************************** include('feed_maker.php'); $makerss = new GenerateFeed; $genFile = $makerss->makeFeed($TABLENAME,$websiteRoot, $pageTitle, $rssDesc, $rssLink, $rssFileName); //***************************************************************************************** } // End of the main Submit conditional. ?> <?echo $pageTitle ?>

$dateTime

"; //anchor tag set for easier linking echo "

{$row[2]}

\n"; $ima = split(", ", $row[1]); //build array out of images list for($i=0; $i\n"; }else{ //handle PDFs echo "\"PDF\" $ima[$i]"; } } } } //**************************************************************************************** //****DISPLAY COMMENT********************************************************************* $com = nl2br($row[0]); for($i=0; $i\n", $com); }else{ //handle PDFs $com = str_replace("[$j]", "\"PDF\" $ima[$i]\n", $com); } } } echo "

$com

"; //**************************************************************************************** //****DISPLAY POSTED BY****************************************************************** //if multiUsers is turned on in settings.php, display the username that wrote the entry if($MULTIUSERS){ echo "

Posted By: $row[6]

"; } //*************************************************************************************** //****DISPLAY COMMENTS******************************************************************* //you must have comments turned on (in settings.php) for this to display if($COMMENTS){ if($row[5] != 0){ echo "

$row[5] comments | Commentpermalink

"; }else{ echo "

$row[5] comments | Commentpermalink

"; } } //*************************************************************************************** echo "

"; //this is the break line. set it's appearance in the CSS file. } echo "
"; if(!$_entryview){ //if not the entry view, show pagination $pages = ceil($totally/$perPage); //divides the total posts by the posts per page then rounds up. This sets the total pages. //if on page 1, dont give a page back link if($page != 1){ echo "

<<   "; } echo $pages." total pages"; //if on the last page, dont link ahead if($page != $pages && $totally != 0){ echo "   >>

 

"; } }else{ //this is an entry page echo "

View all entries>>

"; } echo "
\"super"; echo " \"super"; echo "
"; ?>