Mercurial > hg > ywww
diff us/index.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 |
line wrap: on
line diff
--- a/us/index.php Sun Jan 06 12:46:24 2019 -0500 +++ b/us/index.php Wed Jan 16 13:42:15 2019 -0500 @@ -1,5 +1,5 @@ <?PHP -include_once "ywww/dlog.php"; +include_once "dlog.php"; session_start(); @@ -15,7 +15,7 @@ return $return; } - include "ywww/mdetect.php"; + include "mdetect.php"; $uagent_obj = new uagent_info(); $iPhone = $uagent_obj->DetectSmartphone(); $iPad = $uagent_obj->DetectIpad(); @@ -30,7 +30,7 @@ if($pos !== false || isset($_GET['facebook'])) { //we are in facebook canvas so react appropriately - include_once 'ywww/facebook.php'; + include_once 'facebook.php'; $facebook = new Facebook(array( 'appId' => '128245333876633', @@ -100,7 +100,7 @@ $ret = 1; - $bookLists = include "ywww/php/read/getAllSavedBooks.php"; + $bookLists = include "php/read/getAllSavedBooks.php"; $xml = new SimpleXMLElement($bookLists); $numOfLists = sizeof($xml->List) - 1; //-1 for zero indexing @@ -126,12 +126,12 @@ $ret = 1; $countryCode = 0; - include "private/db.php"; + include "db.php"; $query = "CALL b_getBookInfo('$isbn', $countryCode)"; //echo $query; $res = mysqli_query($link, $query) or exit( mysqli_error( $link )); - include "ywww/xml/aws_signed_request.php"; - include "ywww/xml/getAmazonInfo.php"; + include "xml/aws_signed_request.php"; + include "xml/getAmazonInfo.php"; if ( mysqli_num_rows( $res ) > 0 ) { $rows=mysqli_fetch_array($res, MYSQLI_ASSOC); @@ -179,7 +179,7 @@ } } - $linkedBooks = include "ywww/php/read/getLinkedBooks.php"; + $linkedBooks = include "php/read/getLinkedBooks.php"; try { $xml = new SimpleXMLElement($linkedBooks); } @@ -191,7 +191,7 @@ $linkedRecommended = ""; for($i=0;$i<sizeof($xml->isbn);$i++){ $linkedISBN = $xml->isbn[$i]; - include "private/db.php"; + include "db.php"; $query = "CALL b_getBookInfo('$linkedISBN', $countryCode)"; //echo $query; $res = mysqli_query($link, $query) or exit( mysqli_error( $link ));