add apiconnent

This commit is contained in:
Andrey Kuvshinov
2020-05-22 10:40:50 +03:00
parent 5b8368a242
commit aefbc51b1f
3 changed files with 41 additions and 11 deletions

33
app/api/apicontent.php Normal file
View File

@@ -0,0 +1,33 @@
<?php
function api_pricehash($hash){
$pricesql = "
SELECT
`price_id`, `pricename`, `BeginDate`, `category_id`, `pages`
FROM
`price`
WHERE
`pricehash` = '$hash'
LIMIT 1
";
$price = db_get($pricesql);
if (!isset($price['price_id']))
return false;
else
return $price;
}
function api_pagenews($number_id, $page){
}