Mercurial > hg > ywww
diff php/read/getBookDetails.php @ 49:a67bf725e87b
put both paths in include_path and depend on that
author | Charlie Root |
---|---|
date | Wed, 16 Jan 2019 13:42:15 -0500 |
parents | da133c130c1d |
children | dd93cb4b77ad |
line wrap: on
line diff
--- a/php/read/getBookDetails.php Sun Jan 06 12:46:24 2019 -0500 +++ b/php/read/getBookDetails.php Wed Jan 16 13:42:15 2019 -0500 @@ -1,7 +1,7 @@ <?php -include_once "ywww/dlog.php"; +include_once "dlog.php"; -include_once "private/web.php"; +include_once "web.php"; function findGenre($browseNode, &$ID, &$gen) { if($browseNode->Name == "Subjects") @@ -61,7 +61,7 @@ $output .= "<BookDetails>"; $proceed = true; - include "private/db.php"; + include "db.php"; $query = "CALL b_getBookInfo('$isbn', $loc)"; //select Timestamp,Title,Author,Binding,DeweyDecimal,ImageURL,SalesRank,PublicationDate,Publisher,Genre1,Genre2,Genre3 from books where ISBN = '$isbn'"; @@ -107,7 +107,7 @@ if($proceed == true) { include "aws_signed_request.php"; - include_once "ywww/xml/doAmazonRequest.php"; + include_once "xml/doAmazonRequest.php"; //book does not exist already so look up all the info from browse nodes.... @@ -154,7 +154,7 @@ dl("Caught one bd: $isbn\n"); dl(print_r($out, TRUE)."\n"); } ); - include "private/db.php"; + include "db.php"; $title=""; $author=""; @@ -262,7 +262,7 @@ $salesRank = "null"; mysqli_close($link); //do not remove. reset is needed otherwise mysqli_fetch_array doesn't work after first loop - include "private/db.php"; + include "db.php"; $title = strtr($title, '"', "'"); $queryInsert = "CALL b_addNewBook(\"$isbn\",\"$title\", \"$author\",\"$binding\",\"$imageURL\", $dewey, $salesRank,$pubDate,\"$publisher\",$g1,$g2,$g3,$loc)";