' . base64_decode('TmV3IFN1Ym1pc3Npb25zIG1heSBub3QgYmUgb3BlbmVkIGFzIHRoZSBsaWNlbnNlIGhhcyBleHBpcmVkLiAgRXh0ZW5kIHRoZSBzdXBwb3J0IHBlcmlvZCBvZiBwdXJjaGFzZSBhIG5ldyBsaWNlbnNlIGlmIHRoaXMgaXMgYSBuZXcgZXZlbnQu') . '

'; } foreach (array_keys($_POST) as $p) { if (preg_match("/^[\w-]+/",$p) && isset($OC_statusAR[$p]) && preg_match("/^[01]$/i",$_POST[$p]) && ($OC_statusAR[$p] != $_POST[$p])) { updateStatusSetting($p, $_POST[$p]); $OC_statusAR[$p] = $_POST[$p]; } } // Success - if install, redirect, else let user know if (isset($_REQUEST['install']) && ($_REQUEST['install'] == 1)) { header("Location: install-complete.php"); exit; } else { print '

Status saved

'; } } if (isset($_REQUEST['install']) && ($_REQUEST['install'] == 1)) { printHeader($hdr,$hdrfn); print '

Step 5 of 5: Open Submissions & Sign-Up/In

'; } $ocq = "SELECT * FROM `" . OCC_TABLE_STATUS . "` WHERE `module`='OC' ORDER BY `order`, `setting`"; $ocr = ocsql_query($ocq) or err('Unable to retrieve status settings'); $nonocq = "SELECT * FROM `" . OCC_TABLE_STATUS . "` WHERE `module`!='OC' ORDER BY `module`, `order`, `setting`"; $nonocr = ocsql_query($nonocq) or err('Unable to retrieve additional status settings'); print '
'; if (isset($_REQUEST['install']) && ($_REQUEST['install'] == 1)) { print ''; } print '
General'; while ($l = ocsql_fetch_assoc($ocr)) { if (!isset($l['dependency']) || empty($l['dependency']) || $OC_configAR[$l['dependency']]) { print '
' . generateRadioOptions($l['setting'], $OC_statusValueAR, $l['status']) . '
' . safeHTMLstr($l['description']) . '
'; } } $module = ''; while ($l = ocsql_fetch_assoc($nonocr)) { // skip inactive modules if (!oc_moduleActive($l['module'])) { continue; } // show module heading if ($module != $l['module']) { $module = $l['module']; print '
' . safeHTMLstr($OC_modulesAR[$module]['name']) . ' Module'; } if (!isset($l['dependency']) || empty($l['dependency']) || $OC_configAR[$l['dependency']]) { print '
' . generateRadioOptions($l['setting'], $OC_statusValueAR, $l['status']) . '
' . safeHTMLstr($l['description']) . '
'; } } print '

'; printFooter(); ?>