| @@ 183-186 (lines=4) @@ | ||
| 180 | $PEDIGREE_ROOT_ID = $WT_TREE->getPreference('PEDIGREE_ROOT_ID'); |
|
| 181 | $gedcomid = $WT_TREE->getUserPreference(Auth::user(), 'gedcomid'); |
|
| 182 | ||
| 183 | if (Filter::postBool('save') && Filter::checkCsrf()) { |
|
| 184 | $this->setBlockSetting($block_id, 'type', Filter::post('type', 'pedigree|descendants|hourglass|treenav', 'pedigree')); |
|
| 185 | $this->setBlockSetting($block_id, 'pid', Filter::post('pid', WT_REGEX_XREF)); |
|
| 186 | } |
|
| 187 | ||
| 188 | $type = $this->getBlockSetting($block_id, 'type', 'pedigree'); |
|
| 189 | $pid = $this->getBlockSetting($block_id, 'pid', Auth::check() ? ($gedcomid ? $gedcomid : $PEDIGREE_ROOT_ID) : $PEDIGREE_ROOT_ID); |
|
| @@ 143-147 (lines=5) @@ | ||
| 140 | * @return void |
|
| 141 | */ |
|
| 142 | public function configureBlock($block_id): void { |
|
| 143 | if (Filter::postBool('save') && Filter::checkCsrf()) { |
|
| 144 | $this->setBlockSetting($block_id, 'show_other', Filter::postBool('show_other')); |
|
| 145 | $this->setBlockSetting($block_id, 'show_unassigned', Filter::postBool('show_unassigned')); |
|
| 146 | $this->setBlockSetting($block_id, 'show_future', Filter::postBool('show_future')); |
|
| 147 | } |
|
| 148 | ||
| 149 | $show_other = $this->getBlockSetting($block_id, 'show_other', self::DEFAULT_SHOW_OTHER); |
|
| 150 | $show_unassigned = $this->getBlockSetting($block_id, 'show_unassigned', self::DEFAULT_SHOW_UNASSIGNED); |
|
| @@ 180-183 (lines=4) @@ | ||
| 177 | * @return void |
|
| 178 | */ |
|
| 179 | public function configureBlock($block_id): void { |
|
| 180 | if (Filter::postBool('save') && Filter::checkCsrf()) { |
|
| 181 | $this->setBlockSetting($block_id, 'days', Filter::postInteger('num', 1, 180, 1)); |
|
| 182 | $this->setBlockSetting($block_id, 'sendmail', Filter::postBool('sendmail')); |
|
| 183 | } |
|
| 184 | ||
| 185 | $sendmail = $this->getBlockSetting($block_id, 'sendmail', '1'); |
|
| 186 | $days = $this->getBlockSetting($block_id, 'days', '1'); |
|