find mail in buys
This commit is contained in:
@@ -97,10 +97,15 @@ function test_client_hash_kuri($hash){
|
||||
|
||||
$client = client_find_hash($hash);
|
||||
|
||||
if (isset($client['error'])) {
|
||||
print_r($client);
|
||||
|
||||
if (!isset($client['error'])) {
|
||||
out_kuri();
|
||||
add_user_cookie($client['client_id'],$client['clientpassword']);
|
||||
}
|
||||
exit;
|
||||
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -80,6 +80,10 @@ function addcard($id, $date) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function mybooks_kuri($category = 'gazeta', $filter = 'all', $page = 1){
|
||||
|
||||
$login = check_login_kuri();
|
||||
@@ -104,7 +108,8 @@ function mybooks_kuri($category = 'gazeta', $filter = 'all', $page = 1){
|
||||
return;
|
||||
}
|
||||
|
||||
$items = clientbuys_kuri($client['client_id'], $page, $category_id, $client['clientgroup_id'], $filter);
|
||||
$items = clientbuys_kuri($client['clientmail'], $page, $category_id, $client['clientgroup_id'], $filter);
|
||||
|
||||
$count = $items['count'];
|
||||
|
||||
if ($count > $limit){
|
||||
@@ -136,21 +141,6 @@ function mybooks_kuri($category = 'gazeta', $filter = 'all', $page = 1){
|
||||
|
||||
|
||||
|
||||
function books_client_kuri($id){
|
||||
|
||||
$login = check_login_kuri();
|
||||
|
||||
|
||||
if (!isset($login['client_id'])){
|
||||
header('Location: '.SITE.'login');
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user