no downloads books
This commit is contained in:
@@ -176,7 +176,17 @@ function promo_kuri($hash, $page = 0, $promo = true){
|
||||
|
||||
# test url http://klan.dv/promo/bac343b41b357fdc8243373a429caa62 (742.pdf source)
|
||||
|
||||
$price = db_get("SELECT `price_id`, `pricename`, `BeginDate` FROM `price` WHERE `pricehash` = '$hash' LIMIT 1");
|
||||
$pricesql = "
|
||||
SELECT
|
||||
`price_id`, `pricename`, `BeginDate`, `category_id`
|
||||
FROM
|
||||
`price`
|
||||
WHERE
|
||||
`pricehash` = '$hash'
|
||||
LIMIT 1
|
||||
";
|
||||
|
||||
$price = db_get($pricesql);
|
||||
|
||||
if (!isset($price['price_id'])){
|
||||
header("HTTP/1.0 404 Not Found");
|
||||
@@ -214,7 +224,10 @@ function promo_kuri($hash, $page = 0, $promo = true){
|
||||
else {
|
||||
$filedown = True;
|
||||
$baseurl = "/read/$hash/";
|
||||
}
|
||||
}
|
||||
|
||||
if ($price['category_id'] == 3)
|
||||
$filedown = False;
|
||||
|
||||
$endurl = "$baseurl$count";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user