add valid link in library
This commit is contained in:
@@ -217,7 +217,7 @@ function clients_arch($page = 1){
|
|||||||
|
|
||||||
$books = db_get($pricesql);
|
$books = db_get($pricesql);
|
||||||
|
|
||||||
$result['books'] = clientbooks($books, $clienthash);
|
$result['books'] = clientbooks($books);
|
||||||
$result['subscript'] = true;
|
$result['subscript'] = true;
|
||||||
$result['count'] = $count['count'];
|
$result['count'] = $count['count'];
|
||||||
|
|
||||||
@@ -226,7 +226,7 @@ function clients_arch($page = 1){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function clientbooks($books, $clienthash){
|
function clientbooks($books){
|
||||||
|
|
||||||
|
|
||||||
if (!is_array($books))
|
if (!is_array($books))
|
||||||
@@ -235,7 +235,7 @@ function clientbooks($books, $clienthash){
|
|||||||
|
|
||||||
foreach($books as $book){
|
foreach($books as $book){
|
||||||
$book['pic'] = IMGSRV."price/180x280/{$book['price_id']}.{$book['priceimg']}";
|
$book['pic'] = IMGSRV."price/180x280/{$book['price_id']}.{$book['priceimg']}";
|
||||||
$book['link'] = 'read/'.$clienthash;
|
$book['link'] = 'read/'.$book['pricehash'];
|
||||||
$result[] = $book;
|
$result[] = $book;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -90,8 +90,6 @@ function mybooks_kuri($page = 1){
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$limit = 25;
|
$limit = 25;
|
||||||
$client = api_client_kuri($login['data']['clienthash']);
|
$client = api_client_kuri($login['data']['clienthash']);
|
||||||
$baseurl = SITE."mybooks/";
|
$baseurl = SITE."mybooks/";
|
||||||
|
|||||||
Reference in New Issue
Block a user