aboutsummaryrefslogtreecommitdiffstats
path: root/include/dir_fns.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-11-22 14:15:33 -0800
committerzotlabs <mike@macgirvin.com>2016-11-22 14:15:33 -0800
commit6e016c439caa444c4b3aca55e39a5dfa7294c684 (patch)
tree19dd2acf5cb448f26d402bb5ba41b42a75b58354 /include/dir_fns.php
parentbc95b2fc77678be44a9ef4cafb440fe475d9f18a (diff)
downloadvolse-hubzilla-6e016c439caa444c4b3aca55e39a5dfa7294c684.tar.gz
volse-hubzilla-6e016c439caa444c4b3aca55e39a5dfa7294c684.tar.bz2
volse-hubzilla-6e016c439caa444c4b3aca55e39a5dfa7294c684.zip
db update required for Zot2
Diffstat (limited to 'include/dir_fns.php')
-rw-r--r--include/dir_fns.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/dir_fns.php b/include/dir_fns.php
index 03cc2706a..3922730fc 100644
--- a/include/dir_fns.php
+++ b/include/dir_fns.php
@@ -192,17 +192,19 @@ function sync_directories($dirmode) {
'site_update' => NULL_DATE,
'site_directory' => DIRECTORY_FALLBACK_MASTER . '/dirsearch',
'site_realm' => DIRECTORY_REALM,
- 'site_valid' => 1
+ 'site_valid' => 1,
+ 'site_crypto' => 'aes256cbc'
);
- $x = q("insert into site ( site_url, site_flags, site_update, site_directory, site_realm, site_valid )
- values ( '%s', %d, '%s', '%s', '%s', %d ) ",
+ $x = q("insert into site ( site_url, site_flags, site_update, site_directory, site_realm, site_valid, site_crypto )
+ values ( '%s', %d, '%s', '%s', '%s', %d, '%s' ) ",
dbesc($r[0]['site_url']),
intval($r[0]['site_flags']),
dbesc($r[0]['site_update']),
dbesc($r[0]['site_directory']),
dbesc($r[0]['site_realm']),
- intval($r[0]['site_valid'])
+ intval($r[0]['site_valid']),
+ dbesc($r[0]['site_crypto'])
);
$r = q("select * from site where site_flags in (%d, %d) and site_url != '%s' and site_type = %d ",