add site_dead flag to prevent delivery to dead sites. Allow sys channel webpages to be viewed even if site is configured "block public".

This commit is contained in:
redmatrix
2015-06-08 16:55:17 -07:00
parent 5b482c1daf
commit 39f0e6fe62
8 changed files with 52 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
<?php
define( 'UPDATE_VERSION' , 1142 );
define( 'UPDATE_VERSION' , 1143 );
/**
*
@@ -1645,4 +1645,15 @@ function update_r1141() {
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
function update_r1142() {
$r1 = q("alter table site add site_dead smallint not null default '0' ");
$r2 = q("create index site_dead on site ( site_dead ) ");
if($r1 && $r2)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}