add types rss
This commit is contained in:
@@ -15,6 +15,7 @@ define('PDFDIR', '/vhosts/anpdf/app/pub/files/pdf/');
|
||||
define('PGDIR', '/vhosts/anpdf/app/pub/files/pages/');
|
||||
define('VIEWPATH', SITEPATH.'views/');
|
||||
define('API', 'http://api.argumenti.ru/');
|
||||
define('IMGSRV', 'https://imgurl.argumenti.ru/');
|
||||
|
||||
db_config('argumentiru', 'mysql:host=mysql;dbname=argumentiru', 'newser', 'Chjk90yuiREY');
|
||||
db_config('reader', 'mysql:host=mysql;dbname=argumentiru', 'reader', 'ghjyjkUIOhg56Fh');
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
<?php
|
||||
|
||||
ini_set('display_errors','on');
|
||||
error_reporting(E_ALL);
|
||||
|
||||
require 'vendor/autoload.php';
|
||||
require 'confg.php';
|
||||
|
||||
#routes
|
||||
require 'routes/price.php';
|
||||
require 'routes/client.php';
|
||||
require 'routes/anpdf.php';
|
||||
|
||||
#api
|
||||
require 'api/client.php';
|
||||
|
||||
_kuri();
|
||||
|
||||
function index_kuri(){
|
||||
|
||||
@@ -79,3 +79,19 @@ function addcard($id, $date) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
function mybooks_kuri($clienthash, $page = 1){
|
||||
|
||||
$client = api_client_kuri($clienthash);
|
||||
|
||||
if (!$client) {
|
||||
echo 'Пользователь не найден';
|
||||
return;
|
||||
}
|
||||
|
||||
$books = clientbooks_kuri($client['client_id']);
|
||||
|
||||
print_r($books);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user