-
Notifications
You must be signed in to change notification settings - Fork 1
/
add2fav.php
36 lines (31 loc) · 990 Bytes
/
add2fav.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* Allomani E-Store v1.0
*
* @package Allomani.E-Store
* @version 1.0
* @copyright (c) 2006-2018 Allomani , All rights reserved.
* @author Ali Allomani <[email protected]>
* @link http://allomani.com
* @license GNU General Public License version 3.0 (GPLv3)
*
*/
include "global.php" ;
print "<html dir=\"$settings[html_dir]\">
<head>
<META http-equiv=Content-Language content=\"$settings[site_pages_lang]\">
<META http-equiv=Content-Type content=\"text/html; charset=$settings[site_pages_encoding]\">";
print "<title> $phrases[add2favorite] </title>";
print "<LINK href='css.php' type=text/css rel=StyleSheet>
</head>
<body>";
open_table();
if(check_member_login()){
db_query("insert into store_clients_favorites (userid,product_id) values('$member_data[id]','$id')");
print "<center> $phrases[add2fav_success] </center>";
}else{
print "<center> $phrases[please_login_first] </center>";
}
close_table();
print "</body></html>";
?>