aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-17 22:27:51 -0700
committerfriendica <info@friendica.com>2013-09-17 22:27:51 -0700
commitd3aa31be4d84764e4d119343d8bc5eba5a84272b (patch)
tree68522f122490ecf1971c9f2ebff1c8340466cb7f /include
parentff2ada207a7c90f095d1fad1513440eb08d3840a (diff)
downloadvolse-hubzilla-d3aa31be4d84764e4d119343d8bc5eba5a84272b.tar.gz
volse-hubzilla-d3aa31be4d84764e4d119343d8bc5eba5a84272b.tar.bz2
volse-hubzilla-d3aa31be4d84764e4d119343d8bc5eba5a84272b.zip
site sellpage links
Diffstat (limited to 'include')
-rw-r--r--include/zot.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/zot.php b/include/zot.php
index 74ac6d015..c416d18f9 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -1567,24 +1567,27 @@ function import_site($arr,$pubkey) {
$directory_url = htmlentities($arr['directory_url'],ENT_COMPAT,'UTF-8',false);
$url = htmlentities($arr['url'],ENT_COMPAT,'UTF-8',false);
+ $sellpage = htmlentities($arr['sellpage'],ENT_COMPAT,'UTF-8',false);
if($exists) {
if(($siterecord['site_flags'] != $site_directory)
|| ($siterecord['site_access'] != $access_policy)
|| ($siterecord['site_directory'] != $directory_url)
+ || ($siterecord['site_sellpage'] != $sellpage)
|| ($siterecord['site_register'] != $register_policy)) {
$update = true;
// logger('import_site: input: ' . print_r($arr,true));
// logger('import_site: stored: ' . print_r($siterecord,true));
- $r = q("update site set site_flags = %d, site_access = %d, site_directory = '%s', site_register = %d, site_update = '%s'
+ $r = q("update site set site_flags = %d, site_access = %d, site_directory = '%s', site_register = %d, site_update = '%s', site_sellpage = '%s'
where site_url = '%s' limit 1",
intval($site_directory),
intval($access_policy),
dbesc($directory_url),
intval($register_policy),
dbesc(datetime_convert()),
+ dbesc($sellpage),
dbesc($url)
);
if(! $r) {
@@ -1594,14 +1597,15 @@ function import_site($arr,$pubkey) {
}
else {
$update = true;
- $r = q("insert into site ( site_url, site_access, site_flags, site_update, site_directory, site_register )
- values ( '%s', %d, %d, '%s', '%s', %d )",
+ $r = q("insert into site ( site_url, site_access, site_flags, site_update, site_directory, site_register, site_sellpage )
+ values ( '%s', %d, %d, '%s', '%s', %d, '%s' )",
dbesc($url),
intval($site_directory),
intval($access_policy),
dbesc(datetime_convert()),
dbesc($directory_url),
- intval($register_policy)
+ intval($register_policy),
+ dbesc($sellpage)
);
if(! $r) {
logger('import_site: record create failed. ' . print_r($arr,true));