* @param App $a
*/
function admin_page_site_post(App $a) {
- if (!x($_POST,"page_site")) {
+ check_form_security_token_redirectOnErr('/admin/site', 'admin_site');
+
+ if (!empty($_POST['republish_directory'])) {
+ proc_run(PRIORITY_LOW, 'include/directory.php');
return;
}
- check_form_security_token_redirectOnErr('/admin/site', 'admin_site');
+ if (!x($_POST,"page_site")) {
+ return;
+ }
// relocate
if (x($_POST,'relocate') && x($_POST,'relocate_url') && $_POST['relocate_url'] != "") {
'$title' => t('Administration'),
'$page' => t('Site'),
'$submit' => t('Save Settings'),
+ '$republish' => t('Republish users to directory'),
'$registration' => t('Registration'),
'$upload' => t('File upload'),
'$corporate' => t('Policies'),
{{/if}}
{{include file="field_checkbox.tpl" field=$dfrn_only}}
{{include file="field_input.tpl" field=$global_directory}}
+ <div class="submit"><input type="submit" name="republish_directory" value="{{$republish|escape:'html'}}" /></div>
{{include file="field_checkbox.tpl" field=$thread_allow}}
{{include file="field_checkbox.tpl" field=$newuser_private}}
{{include file="field_checkbox.tpl" field=$enotify_no_content}}