| version 1.19, 2018/03/24 23:24:19 |
version 1.20, 2024/11/20 15:48:03 |
| Line 48 function ezin_admin_maintenance_main($re |
|
| Line 48 function ezin_admin_maintenance_main($re |
|
| * 1.7 2012-05-15 12:47 - link redirect |
* 1.7 2012-05-15 12:47 - link redirect |
| * 1.8 2013-07-24 08:32 - feedback flood timeout |
* 1.8 2013-07-24 08:32 - feedback flood timeout |
| * 2015-01-15 16:56 - datetime filter for article |
* 2015-01-15 16:56 - datetime filter for article |
| |
* 2024-11-20 15:05 - vyzadovane polozky feedback formulara |
| * |
* |
| */ |
*/ |
| |
|
| Line 64 function ezin_admin_maintenance_main($re |
|
| Line 65 function ezin_admin_maintenance_main($re |
|
| 'type' => 'comment', |
'type' => 'comment', |
| 'description' => 'Update 0.8.13' |
'description' => 'Update 0.8.13' |
| ); |
); |
| |
|
| // ID fields resize |
// ID fields resize |
| $tests[] = array( |
$tests[] = array( |
| 'type' => 'update', |
'type' => 'update', |
| Line 100 function ezin_admin_maintenance_main($re |
|
| Line 101 function ezin_admin_maintenance_main($re |
|
| 'description' => 'Clear "lang" where is null - ezin_sections', |
'description' => 'Clear "lang" where is null - ezin_sections', |
| 'repair' => 'update ezin_sections set lang = "" where lang is null' |
'repair' => 'update ezin_sections set lang = "" where lang is null' |
| ); |
); |
| |
|
| $tests[] = array( |
$tests[] = array( |
| 'type' => 'update', |
'type' => 'update', |
| 'description' => 'Add "type" - ezin_authors', |
'description' => 'Add "type" - ezin_authors', |
| Line 179 function ezin_admin_maintenance_main($re |
|
| Line 180 function ezin_admin_maintenance_main($re |
|
| 'correct_answer' => 'changed_dt', |
'correct_answer' => 'changed_dt', |
| 'repair' => 'alter table ezin_articles add column changed_dt datetime' |
'repair' => 'alter table ezin_articles add column changed_dt datetime' |
| ); |
); |
| |
|
| // credentials - ezin_authors |
// credentials - ezin_authors |
| $tests[] = array( |
$tests[] = array( |
| 'type' => 'update', |
'type' => 'update', |
| Line 289 function ezin_admin_maintenance_main($re |
|
| Line 290 function ezin_admin_maintenance_main($re |
|
| 'correct_answer' => 'changed_dt', |
'correct_answer' => 'changed_dt', |
| 'repair' => 'alter table ezin_sections add column changed_dt datetime' |
'repair' => 'alter table ezin_sections add column changed_dt datetime' |
| ); |
); |
| |
|
| // credentials - ezin_editorials |
// credentials - ezin_editorials |
| $tests[] = array( |
$tests[] = array( |
| 'type' => 'update', |
'type' => 'update', |
| Line 399 function ezin_admin_maintenance_main($re |
|
| Line 400 function ezin_admin_maintenance_main($re |
|
| 'correct_answer' => 'changed_dt', |
'correct_answer' => 'changed_dt', |
| 'repair' => 'alter table ezin_users add column changed_dt datetime' |
'repair' => 'alter table ezin_users add column changed_dt datetime' |
| ); |
); |
| |
|
| // credentials - ezin_roles |
// credentials - ezin_roles |
| $tests[] = array( |
$tests[] = array( |
| 'type' => 'update', |
'type' => 'update', |
| Line 509 function ezin_admin_maintenance_main($re |
|
| Line 510 function ezin_admin_maintenance_main($re |
|
| 'correct_answer' => 'changed_dt', |
'correct_answer' => 'changed_dt', |
| 'repair' => 'alter table ezin_polls add column changed_dt datetime' |
'repair' => 'alter table ezin_polls add column changed_dt datetime' |
| ); |
); |
| |
|
| // ----[ UPDATE 0.9.0 ]---- |
// ----[ UPDATE 0.9.0 ]---- |
| $tests[] = array( |
$tests[] = array( |
| 'type' => 'comment', |
'type' => 'comment', |
| Line 769 function ezin_admin_maintenance_main($re |
|
| Line 770 function ezin_admin_maintenance_main($re |
|
| 'description' => 'transform value from old type to new - 5', |
'description' => 'transform value from old type to new - 5', |
| 'repair' => 'UPDATE `ezin_sections` SET `type2` = "", `display` = "", `select` = "" WHERE `type` = "disabled"' |
'repair' => 'UPDATE `ezin_sections` SET `type2` = "", `display` = "", `select` = "" WHERE `type` = "disabled"' |
| ); |
); |
| |
|
| // ----[ UPDATE 0.9.1 ]---- |
// ----[ UPDATE 0.9.1 ]---- |
| $tests[] = array( |
$tests[] = array( |
| 'type' => 'comment', |
'type' => 'comment', |
| Line 823 function ezin_admin_maintenance_main($re |
|
| Line 824 function ezin_admin_maintenance_main($re |
|
| UNIQUE KEY `theme` (`theme`,`name`) |
UNIQUE KEY `theme` (`theme`,`name`) |
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8;' |
) ENGINE=InnoDB DEFAULT CHARSET=utf8;' |
| ); |
); |
| |
|
| // Access key redirects table |
// Access key redirects table |
| $tests[] = array( |
$tests[] = array( |
| 'type' => 'update', |
'type' => 'update', |
| Line 1126 function ezin_admin_maintenance_main($re |
|
| Line 1127 function ezin_admin_maintenance_main($re |
|
| "Place where appears popup window from day cell" |
"Place where appears popup window from day cell" |
| WHERE a_key = "calendar_popup_display"' |
WHERE a_key = "calendar_popup_display"' |
| ); |
); |
| |
|
| // Enabled SOAP server |
// Enabled SOAP server |
| $tests[] = array( |
$tests[] = array( |
| 'type' => 'update', |
'type' => 'update', |
| Line 1156 function ezin_admin_maintenance_main($re |
|
| Line 1157 function ezin_admin_maintenance_main($re |
|
| 'correct_answer' => 'link_redirect', |
'correct_answer' => 'link_redirect', |
| 'repair' => 'INSERT INTO ezin_config_info (a_key) VALUES ("link_redirect")' |
'repair' => 'INSERT INTO ezin_config_info (a_key) VALUES ("link_redirect")' |
| ); |
); |
| |
|
| $tests[] = array( |
$tests[] = array( |
| 'type' => 'repair', |
'type' => 'repair', |
| 'description' => 'Link redirect - ezin_config_info', |
'description' => 'Link redirect - ezin_config_info', |
| Line 1167 function ezin_admin_maintenance_main($re |
|
| Line 1168 function ezin_admin_maintenance_main($re |
|
| "Other types of links redirect to a selected type" |
"Other types of links redirect to a selected type" |
| WHERE a_key = "link_redirect"' |
WHERE a_key = "link_redirect"' |
| ); |
); |
| |
|
| // Type of antispam |
// Type of antispam |
| $tests[] = array( |
$tests[] = array( |
| 'type' => 'update', |
'type' => 'update', |
| Line 1188 function ezin_admin_maintenance_main($re |
|
| Line 1189 function ezin_admin_maintenance_main($re |
|
| "Selected type of antispam." |
"Selected type of antispam." |
| WHERE a_key = "antispam_type"' |
WHERE a_key = "antispam_type"' |
| ); |
); |
| |
|
| // Redirect equal URL |
// Redirect equal URL |
| $tests[] = array( |
$tests[] = array( |
| 'type' => 'update', |
'type' => 'update', |
| Line 1302 function ezin_admin_maintenance_main($re |
|
| Line 1303 function ezin_admin_maintenance_main($re |
|
| "Access Platon Newsletter source extension" |
"Access Platon Newsletter source extension" |
| WHERE a_key = "platon_newsletter_enabled"' |
WHERE a_key = "platon_newsletter_enabled"' |
| ); |
); |
| |
|
| // Password for Platon Newsletter Source |
// Password for Platon Newsletter Source |
| $tests[] = array( |
$tests[] = array( |
| 'type' => 'update', |
'type' => 'update', |
| Line 1366 function ezin_admin_maintenance_main($re |
|
| Line 1367 function ezin_admin_maintenance_main($re |
|
| WHERE a_key = "article_items_loadmore"' |
WHERE a_key = "article_items_loadmore"' |
| ); |
); |
| |
|
| |
// Required feedback items |
| |
$tests[] = array( |
| |
'type' => 'update', |
| |
'description' => 'Required feedback items', |
| |
'test' => 'select a_key from ezin_config_info where a_key = "feedback_required_items"', |
| |
'method' => 'one', |
| |
'correct_answer' => 'feedback_required_items', |
| |
'repair' => 'INSERT INTO ezin_config_info (a_key) VALUES ("feedback_required_items")' |
| |
); |
| |
|
| |
$tests[] = array( |
| |
'type' => 'repair', |
| |
'description' => 'Required feedback items - ezin_config_info', |
| |
'repair' => 'UPDATE ezin_config_info SET |
| |
ord = 237, |
| |
name = "Required feedback items", |
| |
description = |
| |
"Required fields in the feedback form. Enter the name of the fields |
| |
separated by a space. Leave the input empty for no required fields." |
| |
WHERE a_key = "feedback_required_items"' |
| |
); |
| |
|
| // ---- CONFIG - DATA ---- |
// ---- CONFIG - DATA ---- |
| $tests[] = array( |
$tests[] = array( |
| 'type' => 'comment', |
'type' => 'comment', |
| Line 1491 function ezin_admin_maintenance_main($re |
|
| Line 1514 function ezin_admin_maintenance_main($re |
|
| 'correct_answer' => 'calendar_popup_display', |
'correct_answer' => 'calendar_popup_display', |
| 'repair' => 'INSERT INTO ezin_config (a_key, value) VALUES ("calendar_popup_display", "right")' |
'repair' => 'INSERT INTO ezin_config (a_key, value) VALUES ("calendar_popup_display", "right")' |
| ); |
); |
| |
|
| // SOAP server |
// SOAP server |
| $tests[] = array( |
$tests[] = array( |
| 'type' => 'update', |
'type' => 'update', |
| Line 1521 function ezin_admin_maintenance_main($re |
|
| Line 1544 function ezin_admin_maintenance_main($re |
|
| 'correct_answer' => 'antispam_type', |
'correct_answer' => 'antispam_type', |
| 'repair' => 'INSERT INTO ezin_config (a_key, value) VALUES ("antispam_type", "default")' |
'repair' => 'INSERT INTO ezin_config (a_key, value) VALUES ("antispam_type", "default")' |
| ); |
); |
| |
|
| // Redirect equal URL |
// Redirect equal URL |
| $tests[] = array( |
$tests[] = array( |
| 'type' => 'update', |
'type' => 'update', |
| Line 1531 function ezin_admin_maintenance_main($re |
|
| Line 1554 function ezin_admin_maintenance_main($re |
|
| 'correct_answer' => 'redirect_equal_url', |
'correct_answer' => 'redirect_equal_url', |
| 'repair' => 'INSERT INTO ezin_config (a_key, value) VALUES ("redirect_equal_url", "0")' |
'repair' => 'INSERT INTO ezin_config (a_key, value) VALUES ("redirect_equal_url", "0")' |
| ); |
); |
| |
|
| // HTTPS redirect for ADMIN |
// HTTPS redirect for ADMIN |
| $tests[] = array( |
$tests[] = array( |
| 'type' => 'update', |
'type' => 'update', |
| Line 1571 function ezin_admin_maintenance_main($re |
|
| Line 1594 function ezin_admin_maintenance_main($re |
|
| 'correct_answer' => 'platon_newsletter_enabled', |
'correct_answer' => 'platon_newsletter_enabled', |
| 'repair' => 'INSERT INTO ezin_config (a_key, value) VALUES ("platon_newsletter_enabled", "0")' |
'repair' => 'INSERT INTO ezin_config (a_key, value) VALUES ("platon_newsletter_enabled", "0")' |
| ); |
); |
| |
|
| // Password for Platon Newsletter Source |
// Password for Platon Newsletter Source |
| $tests[] = array( |
$tests[] = array( |
| 'type' => 'update', |
'type' => 'update', |
| Line 1602 function ezin_admin_maintenance_main($re |
|
| Line 1625 function ezin_admin_maintenance_main($re |
|
| 'repair' => 'INSERT INTO ezin_config (a_key, value) VALUES ("article_items_loadmore", "1")' |
'repair' => 'INSERT INTO ezin_config (a_key, value) VALUES ("article_items_loadmore", "1")' |
| ); |
); |
| |
|
| |
// Required items for feedback |
| |
$tests[] = array( |
| |
'type' => 'update', |
| |
'description' => 'Required items for feedback - default value', |
| |
'test' => 'select a_key from ezin_config where a_key = "feedback_required_items"', |
| |
'method' => 'one', |
| |
'correct_answer' => 'feedback_required_items', |
| |
'repair' => 'INSERT INTO ezin_config (a_key, value) VALUES ("feedback_required_items", "")' |
| |
); |
| |
|
| |
|
| // ====[ Koniec definovania jednotlivych update ]=============================== |
// ====[ Koniec definovania jednotlivych update ]=============================== |
| |
|
| Line 1646 function ezin_admin_maintenance_main($re |
|
| Line 1679 function ezin_admin_maintenance_main($re |
|
| obj.style.display = "none"; |
obj.style.display = "none"; |
| } |
} |
| } |
} |
| |
|
| function showhide_table(id) { |
function showhide_table(id) { |
| var obj = document.getElementById(id); |
var obj = document.getElementById(id); |
| if (obj == null) { |
if (obj == null) { |
| Line 1698 function ezin_admin_maintenance_main($re |
|
| Line 1731 function ezin_admin_maintenance_main($re |
|
| document.getElementById(id).value = value; |
document.getElementById(id).value = value; |
| document.getElementById(id).disabled = true; |
document.getElementById(id).disabled = true; |
| } |
} |
| |
|
| function button_enable(id, value) { |
function button_enable(id, value) { |
| document.getElementById(id).value = value; |
document.getElementById(id).value = value; |
| document.getElementById(id).disabled = false; |
document.getElementById(id).disabled = false; |
| } |
} |
| |
|
| </script> |
</script> |
| |
|
| '; |
'; |
| |
|
| $row_ident = 0; |
$row_ident = 0; |
| function get_row_id() { |
function get_row_id() { |
| global $row_ident; |
global $row_ident; |
| Line 1887 function ezin_admin_maintenance_main($re |
|
| Line 1920 function ezin_admin_maintenance_main($re |
|
| $exists_table = 0; |
$exists_table = 0; |
| global $last_point; $last_point = 1; |
global $last_point; $last_point = 1; |
| global $test_counter; $test_counter = 0; |
global $test_counter; $test_counter = 0; |
| |
|
| |
|
| function begin_table($table_id = null, $display = true) { |
function begin_table($table_id = null, $display = true) { |
| global $exists_table; |
global $exists_table; |
| Line 1917 function ezin_admin_maintenance_main($re |
|
| Line 1950 function ezin_admin_maintenance_main($re |
|
| '; |
'; |
| $exists_table++; |
$exists_table++; |
| } |
} |
| |
|
| function end_table() { |
function end_table() { |
| global $exists_table; |
global $exists_table; |
| global $test_counter; |
global $test_counter; |
| Line 1955 function ezin_admin_maintenance_main($re |
|
| Line 1988 function ezin_admin_maintenance_main($re |
|
| } |
} |
| } |
} |
| echo ' |
echo ' |
| |
|
| function all_tests_'.$last_point.'_'.$test_counter.'() { |
function all_tests_'.$last_point.'_'.$test_counter.'() { |
| button_disable("button_test_'.$last_point.'_'.$test_counter.'", "Tests running..."); |
button_disable("button_test_'.$last_point.'_'.$test_counter.'", "Tests running..."); |
| '; |
'; |
| Line 1997 function ezin_admin_maintenance_main($re |
|
| Line 2030 function ezin_admin_maintenance_main($re |
|
| id="button_update_'.$last_point.'_'.$test_counter.'" |
id="button_update_'.$last_point.'_'.$test_counter.'" |
| onclick="all_updates_'.$last_point.'_'.$test_counter.'();"> |
onclick="all_updates_'.$last_point.'_'.$test_counter.'();"> |
| <script type="text/javascript"> |
<script type="text/javascript"> |
| |
|
| '; |
'; |
| $last_update_id = null; |
$last_update_id = null; |
| for ($b = $last_point; $b <= $test_counter; $b++) { |
for ($b = $last_point; $b <= $test_counter; $b++) { |
| Line 2072 function ezin_admin_maintenance_main($re |
|
| Line 2105 function ezin_admin_maintenance_main($re |
|
| if ($tests[0]['type'] != 'comment') { |
if ($tests[0]['type'] != 'comment') { |
| begin_table(); |
begin_table(); |
| } |
} |
| |
|
| for($a = 0; $a < count($tests); $a++) { |
for($a = 0; $a < count($tests); $a++) { |
| $tests[$a]['id'] = $a; |
$tests[$a]['id'] = $a; |
| switch($tests[$a]['type']) { |
switch($tests[$a]['type']) { |