first commit

This commit is contained in:
Your Name
2021-04-20 11:13:47 +05:30
parent b76859a3f1
commit 0a18b88eba
408 changed files with 47723 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
deny from all
View File
View File
+73
View File
@@ -0,0 +1,73 @@
<?php
// +----------------------------------------------------------------------+
// | OpenConf |
// +----------------------------------------------------------------------+
// | Copyright (c) 2002-2020 Zakon Group LLC. All Rights Reserved. |
// +----------------------------------------------------------------------+
// | This source file is subject to the OpenConf License, available on |
// | the OpenConf web site: www.OpenConf.com |
// +----------------------------------------------------------------------+
$upgradeModulesAR = array('oc_adv_assign');
ocsql_query("ALTER TABLE `" . OCC_TABLE_AUTHOR . "` CHANGE `name_last` `name_last` VARCHAR(255) NOT NULL DEFAULT '', CHANGE `name_first` `name_first` VARCHAR(255) NOT NULL DEFAULT '', CHANGE `country` `country` VARCHAR(255) NULL DEFAULT NULL, CHANGE `email` `email` VARCHAR(255) NULL DEFAULT NULL, CHANGE `honorific` `honorific` VARCHAR(255) NULL DEFAULT NULL, CHANGE `suffix` `suffix` VARCHAR(255) NULL DEFAULT NULL, CHANGE `postcode` `postcode` VARCHAR(255) NULL DEFAULT NULL, CHANGE `phone` `phone` VARCHAR(255) NULL DEFAULT NULL, CHANGE `presenter` `presenter` VARCHAR(255) NULL DEFAULT NULL, CHANGE `orcid` `orcid` VARCHAR(255) NULL DEFAULT NULL");
if (!oc_moduleActive('oc_subtype')) {
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`=CONCAT(`value`, ',fs_general:type') WHERE `module`='OC' AND `setting`='OC_hideSubFields' LIMIT 1");
}
if (oc_module_installed('oc_subtype')) {
ocsql_query("ALTER TABLE `" . OCC_TABLE_PAPER . "` CHANGE `module_oc_subtype_type` `type` VARCHAR(255) NULL");
$subtypes = array();
if (($upgrader = ocsql_query("SELECT * FROM `" . OCC_TABLE_MODULE_OC_SUBTYPE . "`")) && (ocsql_num_rows($upgrader) > 0)) {
while ($upgradel = ocsql_fetch_assoc($upgrader)) {
$subtypes[] = preg_replace("/,/", ";", $upgradel['sub_type']);
}
} else {
$subtypes[] = 'Paper';
}
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_subtypes', '" . safeSQLstr(implode(',', $subtypes)) . "', 'Sub. Types', 'Internal Use Only', 0)");
ocsql_query("DELETE FROM `" . OCC_TABLE_MODULES . "` WHERE `moduleId`='oc_subtype' LIMIT 1");
} else {
ocsql_query("ALTER TABLE `" . OCC_TABLE_PAPER . "` ADD `type` VARCHAR(255) NULL");
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_subtypes', 'Paper', 'Sub. Types', 'Internal Use Only', 0)");
}
if ($OC_configAR['OC_includeSubmissionUploadField'] != 1) {
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`=CONCAT(`value`, ',fs_content:file') WHERE `module`='OC' AND `setting`='OC_hideSubFields' LIMIT 1");
}
ocsql_query("ALTER TABLE `" . OCC_TABLE_AUTHOR . "` ADD `orcid` VARCHAR(30) NULL");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`=CONCAT(`value`, ',fs_authors:orcid') WHERE `module`='OC' AND `setting`='OC_hideSubFields' LIMIT 1");
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_editAcceptedOnly', '0', 'Edit Accepted Only', 'Restrict Edit Submission to accepted submissions only (1=Accepted only, 0=All)', 0)");
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_includeReferenceSearchLinks', '1', 'Include Reference Service Links', 'Include reference service links on committee abstract page (1=Yes, 0=No)', 0)");
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_wordForAuthor', 'Author', 'Word for Author', 'English word to be used for Author (e.g., Author, Presenter, Applicant); must pluralize with s at the end', 0)");
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_wordForChair', 'Chair', 'Word for Chair', 'English word to be used for Chair (e.g., Chair, Administrator, Editor)', 0)");
if ($OC_configAR['OC_includeSubmissionUploadLink'] == 1) {
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_subConfirmNotice', '<p><strong>Thank you for your submission. Your submission ID number is [:sid:]. Please write this number down and include it in any communications with us.</strong></p>\n\n<p><strong>Below is the information submitted. We have also emailed a copy to the submission contact. If you notice any problems or do <em>not</em> receive the email within 24 hours, please contact us.</strong></p>\n\n<p><span style=\"font-size:16px\"><strong>&gt;&gt;&gt; <a href=\"upload.php?id=[:sid:]\">Proceed to upload file</a></strong></span></p>\n\n<hr />\n<p>[:formfields:]</p>', 'Sub. Confirm Notice', 'Notice displayed on Make Submission confirmation page. Variables: [:sid:] = submission ID, [:formfields:] = form fields', 0)");
} else {
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_subConfirmNotice', '<p><strong>Thank you for your submission. Your submission ID number is [:sid:]. Please write this number down and include it in any communications with us.</strong></p>\n\n<p><strong>Below is the information submitted. We have also emailed a copy to the submission contact. If you notice any problems or do <em>not</em> receive the email within 24 hours, please contact us.</strong></p>\n\n<p>[:formfields:]</p>', 'Sub. Confirm Notice', 'Notice displayed on Make Submission confirmation page. Variables: [:sid:] = submission ID, [:formfields:] = form fields', 0)");
}
ocsql_query("UPDATE `" . OCC_TABLE_MODULES . "` SET `moduleId`='oc_formfields' WHERE `moduleId`='oc_customforms' LIMIT 1");
if ($OC_configAR['OC_trackStudent'] != 1) {
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`=CONCAT(`value`, ',fs_general:student') WHERE `setting`='OC_hideSubFields' LIMIT 1");
}
ocsql_query("ALTER TABLE `" . OCC_TABLE_PAPERREVIEWER . "` ADD `score` TINYINT UNSIGNED NULL AFTER `updated`");
ocsql_query("ALTER TABLE `" . OCC_TABLE_PAPERREVIEWER . "` CHANGE `recommendation` `recommendation` TINYINT UNSIGNED NULL DEFAULT NULL");
ocsql_query("UPDATE `" . OCC_TABLE_PAPERREVIEWER . "` SET `score`=`recommendation`");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.00' WHERE `setting`='OC_version'");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.00' WHERE `setting`='OC_versionLatest'");
+14
View File
@@ -0,0 +1,14 @@
<?php
// +----------------------------------------------------------------------+
// | OpenConf |
// +----------------------------------------------------------------------+
// | Copyright (c) 2002-2020 Zakon Group LLC. All Rights Reserved. |
// +----------------------------------------------------------------------+
// | This source file is subject to the OpenConf License, available on |
// | the OpenConf web site: www.OpenConf.com |
// +----------------------------------------------------------------------+
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.01' WHERE `setting`='OC_version'");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.01' WHERE `setting`='OC_versionLatest'");
+16
View File
@@ -0,0 +1,16 @@
<?php
// +----------------------------------------------------------------------+
// | OpenConf |
// +----------------------------------------------------------------------+
// | Copyright (c) 2002-2020 Zakon Group LLC. All Rights Reserved. |
// +----------------------------------------------------------------------+
// | This source file is subject to the OpenConf License, available on |
// | the OpenConf web site: www.OpenConf.com |
// +----------------------------------------------------------------------+
$upgradeModulesAR = array('oc_customforms');
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.10' WHERE `setting`='OC_version'");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.10' WHERE `setting`='OC_versionLatest'");
+18
View File
@@ -0,0 +1,18 @@
<?php
// +----------------------------------------------------------------------+
// | OpenConf |
// +----------------------------------------------------------------------+
// | Copyright (c) 2002-2020 Zakon Group LLC. All Rights Reserved. |
// +----------------------------------------------------------------------+
// | This source file is subject to the OpenConf License, available on |
// | the OpenConf web site: www.OpenConf.com |
// +----------------------------------------------------------------------+
$upgradeModulesAR = array('oc_program', 'oc_ieee_copyright');
ocsql_query("ALTER TABLE `" . OCC_TABLE_TEMPLATE . "` ADD `updated` DATE NULL, CHANGE `body` `body` TEXT NULL");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.20' WHERE `setting`='OC_version'");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.20' WHERE `setting`='OC_versionLatest'");
+18
View File
@@ -0,0 +1,18 @@
<?php
// +----------------------------------------------------------------------+
// | OpenConf |
// +----------------------------------------------------------------------+
// | Copyright (c) 2002-2020 Zakon Group LLC. All Rights Reserved. |
// +----------------------------------------------------------------------+
// | This source file is subject to the OpenConf License, available on |
// | the OpenConf web site: www.OpenConf.com |
// +----------------------------------------------------------------------+
$upgradeModulesAR = array('captcha', 'oc_program');
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.30' WHERE `setting`='OC_version'");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.30' WHERE `setting`='OC_versionLatest'");
ocsql_query("ALTER TABLE `" . OCC_TABLE_REVIEWER . "` ADD `lastupdate` DATE NULL , ADD `lastsignin` DATE NULL");
+42
View File
@@ -0,0 +1,42 @@
<?php
// +----------------------------------------------------------------------+
// | OpenConf |
// +----------------------------------------------------------------------+
// | Copyright (c) 2002-2020 Zakon Group LLC. All Rights Reserved. |
// +----------------------------------------------------------------------+
// | This source file is subject to the OpenConf License, available on |
// | the OpenConf web site: www.OpenConf.com |
// +----------------------------------------------------------------------+
$upgradeModulesAR = array('oc_adv_assign', 'oc_program', 'oc_ithenticate', 'oc_ieee_copyright');
ocsql_query("ALTER TABLE `" . OCC_TABLE_TEMPLATE . "` ADD `type` VARCHAR(30) NOT NULL DEFAULT 'email' AFTER `templateid`");
ocsql_query("ALTER TABLE `" . OCC_TABLE_TEMPLATE . "` ADD `variables` TEXT NULL AFTER `updated`");
ocsql_query("ALTER TABLE `" . OCC_TABLE_REVIEWER . "` ADD `orcid` varchar(255) default NULL AFTER `email`");
ocsql_query("INSERT INTO `" . OCC_TABLE_TEMPLATE . "` (`templateid`, `type`, `module`, `name`, `subject`, `body`, `updated`, `variables`) VALUES ('author-edit', 'notification', 'OC', 'Author - Edit Submission', 'Submission Update ID [:sid:]', '[:fields:]', NULL, '{\"fields\":\"Fields\",\"sid\":\"Submission ID\"}')");
ocsql_query("INSERT INTO `" . OCC_TABLE_TEMPLATE . "` (`templateid`, `type`, `module`, `name`, `subject`, `body`, `updated`, `variables`) VALUES ('author-submit', 'notification', 'OC', 'Author - New Submission', 'Submission ID [:sid:]', 'Thank you for your submission to [:OC_confName:]. Below is a copy of the information submitted for your records.\n\n[:fields:]', NULL, '{\"fields\":\"Fields\",\"sid\":\"Submission ID\"}')");
ocsql_query("INSERT INTO `" . OCC_TABLE_TEMPLATE . "` (`templateid`, `type`, `module`, `name`, `subject`, `body`, `updated`, `variables`) VALUES ('author-withdraw', 'notification', 'OC', 'Author - Withdraw Submission', 'Submission Withdraw - ID [:sid:]', 'The submission below has been withdrawn at the author''s request. If you did not intend to withdraw the submission, please reply back.\n\n[:submission:]', NULL, '{\"sid\":\"Submission ID\",\"submission\":\"Submission ID/Title\"}')");
ocsql_query("INSERT INTO `" . OCC_TABLE_TEMPLATE . "` (`templateid`, `type`, `module`, `name`, `subject`, `body`, `updated`, `variables`) VALUES ('chair-assign_reviews', 'notification', 'OC', 'Chair - Manual Review Assignment(s)', 'New Reviewer Assignment(s)', 'New assignments have been made for you to review in the [:OC_confName:] OpenConf system:\n\n\n[:assignments:]\n\nThank you.', NULL, '{\"assignments\":\"New Assignments\",\"name_first\":\"First Name\",\"name_last\":\"Last Name\",\"name\":\"Full Name\",\"reviewerid\":\"Reviewer ID\",\"username\":\"Username\"}')");
ocsql_query("INSERT INTO `" . OCC_TABLE_TEMPLATE . "` (`templateid`, `type`, `module`, `name`, `subject`, `body`, `updated`, `variables`) VALUES ('chair-assign_advocates', 'notification', 'OC', 'Chair - Manual Advocate Assignment(s)', 'New Advocate Assignment(s)', 'New assignments have been made for you to advocate in the [:OC_confName:] OpenConf system:\n\n\n[:assignments:]\n\nThank you.', NULL, '{\"assignments\":\"New Assignments\",\"name_first\":\"First Name\",\"name_last\":\"Last Name\",\"name\":\"Full Name\",\"advocateid\":\"Advocate ID\",\"username\":\"Username\"}')");
ocsql_query("INSERT INTO `" . OCC_TABLE_TEMPLATE . "` (`templateid`, `type`, `module`, `name`, `subject`, `body`, `updated`, `variables`) VALUES ('committee-review', 'notification', 'OC', 'Reviewer - Submit Review', 'Review of submission [:sid:]', 'Following is a copy of your review for submission number [:id:] submitted to [:OC_confName:]. Note that you will receive this email even if an error occurred during submission.\n\n[:fields:]', NULL, '{\"fields\":\"Fields\",\"sid\":\"Submission ID\"}')");
ocsql_query("INSERT INTO `" . OCC_TABLE_TEMPLATE . "` (`templateid`, `type`, `module`, `name`, `subject`, `body`, `updated`, `variables`) VALUES ('committee-signup', 'notification', 'OC', 'Committee - New Signup', 'Committee Signup', 'Thank you for signing up for the [:OC_confName:] [:committee:]. Below is the information you provided. If you have any questions, please contact [:OC_pcemail:] or reply to this email.\n\n[:fields:]', NULL, '{\"committee\":\"Committee Type\",\"fields\":\"Fields\"}')");
ocsql_query("INSERT INTO `" . OCC_TABLE_TEMPLATE . "` (`templateid`, `type`, `module`, `name`, `subject`, `body`, `updated`, `variables`) VALUES ('committee-update', 'notification', 'OC', 'Committee - Profile Update', 'Committee Member Profile Updated', 'Your profile has been updated. The submitted information follows below:\n\n[:fields:]', NULL, '{\"fields\":\"Fields\"}')");
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_fileLimit', '', 'File Limit', 'File upload size limit in MB', 0)");
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_hideCmtFields', 'fs_personal:orcid', 'Hide Cmt. Profile Form Fields', 'Comma-delimited list of committee profile form fields to not display (e.g., fieldset:field,fieldset:field,fieldset:field). Overridden by Custom Forms module if used.', 0)");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.40' WHERE `setting`='OC_version'");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.40' WHERE `setting`='OC_versionLatest'");
+25
View File
@@ -0,0 +1,25 @@
<?php
// +----------------------------------------------------------------------+
// | OpenConf |
// +----------------------------------------------------------------------+
// | Copyright (c) 2002-2020 Zakon Group LLC. All Rights Reserved. |
// +----------------------------------------------------------------------+
// | This source file is subject to the OpenConf License, available on |
// | the OpenConf web site: www.OpenConf.com |
// +----------------------------------------------------------------------+
$upgradeModulesAR = array('oc_adv_assign', 'oc_payment');
ocsql_query("ALTER TABLE `" . OCC_TABLE_PAPERREVIEWER . "` ADD `assigned` DATE NULL DEFAULT NULL AFTER `completed`");
ocsql_query("INSERT INTO `" . OCC_TABLE_STATUS . "` (`module`, `setting`, `description`, `status`, `name`, `open`, `close`, `dependency`, `order`) VALUES ('OC', 'OC_reviewing_open', NULL, 0, 'Reviewing', NULL, NULL, NULL, 12)");
ocsql_query("INSERT INTO `" . OCC_TABLE_STATUS . "` (`module`, `setting`, `description`, `status`, `name`, `open`, `close`, `dependency`, `order`) VALUES ('OC', 'OC_advocating_open', NULL, 0, 'Advocating', NULL, NULL, 'OC_paperAdvocates', 17)");
ocsql_query("UPDATE `" . OCC_TABLE_STATUS . "` SET `description`='If closed but Review Cmt. Sign In is open, Program Cmt. members may still sign in, but will not be able to advocate submissions even if Advocating is open' WHERE `module`='OC' AND `setting`='OC_pc_signin_open' LIMIT 1");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.50' WHERE `setting`='OC_version'");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.50' WHERE `setting`='OC_versionLatest'");
+24
View File
@@ -0,0 +1,24 @@
<?php
// +----------------------------------------------------------------------+
// | OpenConf |
// +----------------------------------------------------------------------+
// | Copyright (c) 2002-2020 Zakon Group LLC. All Rights Reserved. |
// +----------------------------------------------------------------------+
// | This source file is subject to the OpenConf License, available on |
// | the OpenConf web site: www.OpenConf.com |
// +----------------------------------------------------------------------+
ocsql_query("INSERT INTO `" . OCC_TABLE_TEMPLATE . "` VALUES ('author-upload', 'notification', 'OC', 'Author - File Upload', 'Submission ID [:sid:] file uploaded', 'Submission ID [:sid:] has been uploaded.\n\n[:error:]', NULL, '{\"sid\":\"Submission ID\",\"error\":\"Upload Error\"}')");
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_allowEmailConflict', '0', 'Allow Email Conflict', 'Allow a submission author and reviewer to have the same email address', 0)");
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_authorOneContact', '0', 'Set Author 1 as Contact', 'Auto set Author 1 as contact author and hide Contact ID field (1=Yes, 0=No (default)', 0)");
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_authorsRequiredData', '0', 'Authors Required Data', 'Author(s) for whom required sub. form fields must be filled in (0=All, 1=First, 2=Contact)', 0)");
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_emailAuthorRecipients', 0, 'Email Author Recipients', 'Author(s) to include in Chair emails (0: contact only, 1: all)', 0)");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.60' WHERE `setting`='OC_version'");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.60' WHERE `setting`='OC_versionLatest'");
+21
View File
@@ -0,0 +1,21 @@
<?php
// +----------------------------------------------------------------------+
// | OpenConf |
// +----------------------------------------------------------------------+
// | Copyright (c) 2002-2020 Zakon Group LLC. All Rights Reserved. |
// +----------------------------------------------------------------------+
// | This source file is subject to the OpenConf License, available on |
// | the OpenConf web site: www.OpenConf.com |
// +----------------------------------------------------------------------+
$upgradeModulesAR = array('oc_adv_assign', 'oc_proceedings', 'oc_program');
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_reviewerUnassignReviews', '0', 'Allow Rev. to Unassign Own Reviews', 'Allow reviewer to unassign review and delete review data', 0)");
ocsql_query("INSERT INTO `" . OCC_TABLE_TEMPLATE . "` VALUES ('committee-reviewunassign', 'notification', 'OC', 'Reviewer - Unassign Review', 'Review Unassigned [:sid:]-[:reviewerid:]', 'Reviewer [:name:] ([:reviewerid:]) has been unassigned from submission:\n\n[:sid:]. [:title:]', NULL, '{\"sid\":\"Submission ID\",\"title\":\"Submission Title\",\"reviewerid\":\"Reviewer ID\",\"username\":\"Reviewer Username\",\"name\":\"Reviewer Name\"}')");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.70' WHERE `setting`='OC_version'");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.70' WHERE `setting`='OC_versionLatest'");
+14
View File
@@ -0,0 +1,14 @@
<?php
// +----------------------------------------------------------------------+
// | OpenConf |
// +----------------------------------------------------------------------+
// | Copyright (c) 2002-2020 Zakon Group LLC. All Rights Reserved. |
// +----------------------------------------------------------------------+
// | This source file is subject to the OpenConf License, available on |
// | the OpenConf web site: www.OpenConf.com |
// +----------------------------------------------------------------------+
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.71' WHERE `setting`='OC_version'");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.71' WHERE `setting`='OC_versionLatest'");
+28
View File
@@ -0,0 +1,28 @@
<?php
// +----------------------------------------------------------------------+
// | OpenConf |
// +----------------------------------------------------------------------+
// | Copyright (c) 2002-2020 Zakon Group LLC. All Rights Reserved. |
// +----------------------------------------------------------------------+
// | This source file is subject to the OpenConf License, available on |
// | the OpenConf web site: www.OpenConf.com |
// +----------------------------------------------------------------------+
$upgradeModulesAR = array('oc_payment');
ocsql_query("ALTER TABLE `" . OCC_TABLE_AUTHOR . "` ADD `photo` varchar(255) DEFAULT NULL");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`=CONCAT(`value`, ',fs_authors:photo') WHERE `module`='OC' AND `setting`='OC_hideSubFields' LIMIT 1");
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_reviewerSeeAdvocate', '0', 'Allow Rev. See Advocate', 'Allow reviewers to see submission advocate', 0)");
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_authorSeePendingSubReviews', '0', 'Display Reviews to Author if Sub. Decision Pending', 'Allow authors to see reviews when checking status if submission decision is pending', 0)");
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_advocateSeeDecision', '0', 'Allow Adv. See Decision', 'Allow advocates to see acceptance decision', 0)");
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_reviewerSeeDecision', '0', 'Allow Rev. See Decision', 'Allow reviewers to see acceptance decision', 0)");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.80' WHERE `setting`='OC_version'");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.80' WHERE `setting`='OC_versionLatest'");
+73
View File
@@ -0,0 +1,73 @@
<?php
// +----------------------------------------------------------------------+
// | OpenConf |
// +----------------------------------------------------------------------+
// | Copyright (c) 2002-2020 Zakon Group LLC. All Rights Reserved. |
// +----------------------------------------------------------------------+
// | This source file is subject to the OpenConf License, available on |
// | the OpenConf web site: www.OpenConf.com |
// +----------------------------------------------------------------------+
if (!defined('OCC_ENC_KEY')) {
// Setup encryption key -- do it here so if it fails we can notify admin to have them manually do it
$enckeystr = '
// Encryption key
define("OCC_ENC_KEY", "' . oc_idGen(64) . '");
';
$enckeyok = false;
if ($fp = fopen(OCC_CONFIG_FILE, 'a')) {
if (fwrite($fp, $enckeystr) !== false) {
fclose($fp);
$enckeyok = true;
}
}
if (!$enckeyok) {
print '
<div style="margin: 2em 20px; padding: 5px 30px 10px 30px; border: 1px solid #ccc; background-color: #eee;"><p style="color: #f00;">We were unable to edit the config.php file. Please edit the file using a plain text or code editor and add the following lines to the end, then click the <i>Continue with Upgrade</i> button.</p><textarea style="font-family: serif; font-size: 10pt; width: 100%;" rows="3" >' . safeHTMLstr($enckeystr) . '</textarea><p class="note">Be sure to use standard quotes and that they are not converted to smart or curly quotes.</p></div>
<form method="post" action="upgrade.php">
<input type="hidden" name="a" value="u" />
<input type="hidden" name="token" value="' . safeHTMLstr($_SESSION[OCC_SESSION_VAR_NAME]['chairtoken']) . '" />
<p><input type="submit" name="submit" value="Continue with Upgrade" /></p>
</form>
';
printFooter();
exit;
}
} else {
$enckeyok = true;
}
if ($enckeyok) {
$upgradeModulesAR = array('captcha', 'mail', 'oc_ieee_copyright', 'oc_ithenticate', 'oc_payment', 'oc_program', 'oc_revupload', 'oc_subpayment');
ocsql_query("ALTER TABLE `" . OCC_TABLE_PAPER . "` CHANGE `submissiondate` `submissiondate` DATE NOT NULL");
ocsql_query("ALTER TABLE `" . OCC_TABLE_PAPER . "` ADD `consent` text AFTER `lastupdate`");
ocsql_query("ALTER TABLE `" . OCC_TABLE_REVIEWER . "` ADD `signupdate` date DEFAULT NULL AFTER `comments`, ADD `consent` text AFTER `lastsignin`");
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_authorViewSubIfEditClosed', '0', 'View Sub. if Edit Closed', 'Allow author to view submission if editing is closed (1=Yes, 0=No (default)', 0)");
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_privacy_display', '0', 'Privacy Policy Link Display', 'Whether and where to display a Privacy Policy Link (0: none, 1: menu, 2: page footer).', 0)");
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_privacy_link', '', 'Privacy Policy Web Address', 'Full web address for privacy policy on remote site. Leave blank to use built-in privacy template.', 0)");
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_chairMFA', '', 'Chair Multi-Factor Authentication', 'Enter email address to receive authentication code or leave blank to disable', 0)");
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_chairMFAcode', '', 'Chair MFA Code', 'for internal use', 0)");
ocsql_query("INSERT INTO `" . OCC_TABLE_CONFIG . "` (`module`, `setting`, `value`, `name`, `description`, `parse`) VALUES ('OC', 'OC_privacy_banner_options', '{\"display\":0,\"message\":\"This website uses cookies to offer you a better user experience. By using this website, you agree to the placement of these cookies.\",\"dismiss\":\"Accept\",\"link\":\"\",\"href\":\"\"}', 'Cookie Banner Options', 'JSON-encoded list of attributes (display, message, dismiss, link, href)', 0)");
ocsql_query("INSERT INTO `" . OCC_TABLE_TEMPLATE . "` VALUES ('privacy_policy', 'other', 'OC', 'Privacy Policy', '', '<p><strong>What information is being collected?</strong></p>\n\n<p>For anyone browsing our web site, our server records the page visited, IP address where the request came from, and if included the browser type and referring web page.</p>\n\n<p>If you choose to make a submission, become a reviewer or advocate, or serve as a discussant or session chair, we will request your name, email address, and affiliation, along with possibly other information as denoted when filling out the respective form for each role.</p>\n\n<p><strong>Who is collecting it?</strong></p>\n\n<p>Information is collected by the entity and/or activity named atop this page. You may contact us by using the Email menu link above.</p>\n\n<p><strong>How is it collected?</strong></p>\n\n<p>Information used in this system is collected through the forms provided (e.g., submission, account sign up), or automatically through our server logs (e.g., page visited, IP address).</p>\n\n<p><strong>Why is it being collected?</strong></p>\n\n<p>Information is being collected in relation to the activity named atop this page and your optional participation in this activity.</p>\n\n<p><strong>How will it be used?</strong></p>\n\n<p>The information automatically recorded by our server is used to troubleshoot issues and improve our service. Other information collected is used for evaluation, communication, and publishing related to the activity specified above.</p>\n\n<p><strong>Who will it be shared with?</strong></p>\n\n<p>Information collected is shared with the organizers of the above activity. A subset of information may also be shared with other participants in the activity (e.g., reviewers). Some of the information (e.g., name, affiliation) of accepted submitters and other participants may also be made publicly available to meet the goals of the activity.</p>\n\n<p>By virtue of the information being hosted on a server, the information is accessible to our hosting provider and subject to their privacy policy. Additional third-party providers may include: payment processor, plagiarism detection service, copyright processing service, reviewer credit service, publishing service.</p>\n\n<p><strong>How do I correct information or request its erasure?</strong></p>\n\n<p>In order to correct information, submitters and committee members may use the Edit Submission and Update Profile options respectively. If these do not apply to you, are no longer accessible, or you wish to request erasure of your data, use the Email menu link above to contact us. We ask that you contact us as erasure of the data may impact others on the system and the activity specified above, thus requiring manual intervention and notification on our part.</p>\n\n<p><strong>Are cookies or other trackers used?</strong></p>\n\n<p>Cookies are used to maintain language selection and allow you to remain logged into your account without having to keep re-entering credentials. Cookies are removed upon signing out of your account or exiting your browser.</p>', NULL, NULL)");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`=CONCAT(`value`, ',fs_consent:consent') WHERE `module`='OC' AND `setting`='OC_hideSubFields' LIMIT 1");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`=CONCAT(`value`, ',fs_consent:consent') WHERE `module`='OC' AND `setting`='OC_hideCmtFields' LIMIT 1");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.81' WHERE `setting`='OC_version'");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.81' WHERE `setting`='OC_versionLatest'");
}
+18
View File
@@ -0,0 +1,18 @@
<?php
// +----------------------------------------------------------------------+
// | OpenConf |
// +----------------------------------------------------------------------+
// | Copyright (c) 2002-2020 Zakon Group LLC. All Rights Reserved. |
// +----------------------------------------------------------------------+
// | This source file is subject to the OpenConf License, available on |
// | the OpenConf web site: www.OpenConf.com |
// +----------------------------------------------------------------------+
$upgradeModulesAR = array('oc_proceedings', 'oc_program');
ocsql_query("INSERT INTO `" . OCC_TABLE_TEMPLATE . "` VALUES ('committee-withdrawnsub', 'notification', 'OC', 'Committee - Withdrawn Submission', 'Submission [:sid:] Withdrawn', 'The submission below has been withdrawn and is no longer assigned to you.\n\n[:sid:]. [:title:]', NULL, '{\"sid\":\"Submission ID\",\"title\":\"Submission Title\",\"memberid\":\"Member ID\",\"username\":\"Member Username\",\"name\":\"Member Name\"}')");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.90' WHERE `setting`='OC_version'");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='6.90' WHERE `setting`='OC_versionLatest'");
+27
View File
@@ -0,0 +1,27 @@
<?php
// +----------------------------------------------------------------------+
// | OpenConf |
// +----------------------------------------------------------------------+
// | Copyright (c) 2002-2020 Zakon Group LLC. All Rights Reserved. |
// +----------------------------------------------------------------------+
// | This source file is subject to the OpenConf License, available on |
// | the OpenConf web site: www.OpenConf.com |
// +----------------------------------------------------------------------+
$tableAR = getTables();
foreach ($tableAR as $t) {
ocsql_query("ALTER TABLE `" . $t . "` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci");
}
ocsql_query("ALTER TABLE `" . OCC_TABLE_PAPER . "` CHANGE `title` `title` VARCHAR(1000) NOT NULL DEFAULT ''; ");
ocsql_query("ALTER TABLE `" . OCC_TABLE_AUTHOR . "` ADD `role` TEXT DEFAULT NULL");
ocsql_query("ALTER TABLE `" . OCC_TABLE_EMAIL_QUEUE . "` ADD `reference_id` VARCHAR(50) DEFAULT NULL");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`=CONCAT(`value`, ',fs_authors:role') WHERE `module`='OC' AND `setting`='OC_hideSubFields' LIMIT 1");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='7.00' WHERE `setting`='OC_version'");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='7.00' WHERE `setting`='OC_versionLatest'");
+14
View File
@@ -0,0 +1,14 @@
<?php
// +----------------------------------------------------------------------+
// | OpenConf |
// +----------------------------------------------------------------------+
// | Copyright (c) 2002-2020 Zakon Group LLC. All Rights Reserved. |
// +----------------------------------------------------------------------+
// | This source file is subject to the OpenConf License, available on |
// | the OpenConf web site: www.OpenConf.com |
// +----------------------------------------------------------------------+
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='7.10' WHERE `setting`='OC_version'");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='7.10' WHERE `setting`='OC_versionLatest'");
+19
View File
@@ -0,0 +1,19 @@
<?php
// +----------------------------------------------------------------------+
// | OpenConf |
// +----------------------------------------------------------------------+
// | Copyright (c) 2002-2020 Zakon Group LLC. All Rights Reserved. |
// +----------------------------------------------------------------------+
// | This source file is subject to the OpenConf License, available on |
// | the OpenConf web site: www.OpenConf.com |
// +----------------------------------------------------------------------+
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='7.20' WHERE `setting`='OC_version'");
ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='7.20' WHERE `setting`='OC_versionLatest'");
if (isset($OC_configAR['OC_mailParams']) && !empty($OC_configAR['OC_mailParams'])) {
print '<p style="color: #f00; font-weight: bold;">Add the following line to the config.php file on your server:</p><p style="margin-left: 30px;">define(\'OCC_MAILPARAMS\', \'' . safeHTMLstr($OC_configAR['OC_mailParams']) . '\');</p><p>Continuing with upgrade...</p>';
}
ocsql_query("DELETE FROM `" . OCC_TABLE_CONFIG . "` WHERE `module`='OC' AND `setting`='OC_mailParams' LIMIT 1");
+1
View File
@@ -0,0 +1 @@
7.20