add apiconnent
This commit is contained in:
33
app/api/apicontent.php
Normal file
33
app/api/apicontent.php
Normal 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){
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user