From 775470473875d7b81fe9abcada807f447b5c635b Mon Sep 17 00:00:00 2001 From: atutor Date: Sat, 11 Jan 2014 12:52:42 -0500 Subject: [PATCH] moved accessibility panel for content editor into editor_tabs/ dir --- mods/_core/editor/accessibility.php | 123 ---------------------------- 1 file changed, 123 deletions(-) delete mode 100644 mods/_core/editor/accessibility.php diff --git a/mods/_core/editor/accessibility.php b/mods/_core/editor/accessibility.php deleted file mode 100644 index 4194b4e89..000000000 --- a/mods/_core/editor/accessibility.php +++ /dev/null @@ -1,123 +0,0 @@ -addError(array('EMPTY_FIELDS', $missing_fields)); - require (AT_INCLUDE_PATH.'footer.inc.php'); - exit; -} - -$rows_content = $contentManager->getContentPage($cid); - -foreach($rows_content as $content_row){ - if(!isset($content_row['content_id'])){ - require(AT_INCLUDE_PATH.'header.inc.php'); - $msg->printErrors('PAGE_NOT_FOUND'); - require (AT_INCLUDE_PATH.'footer.inc.php'); - exit; - } -} -$course_base_href = ''; -$content_base_href = ''; - -//make decisions -if ($_POST['make_decision']) -{ - //get list of decisions - $desc_query = ''; - if (is_array($_POST['d'])) { - foreach ($_POST['d'] as $sequenceID => $decision) { - $desc_query .= '&'.$sequenceID.'='.$decision; - } - } - - $checker_url = AT_ACHECKER_URL. 'decisions.php?' - .'uri='.urlencode($_POST['pg_url']).'&id='.AT_ACHECKER_WEB_SERVICE_ID - .'&session='.$_POST['sessionid'].'&output=html'.$desc_query; - - if (@file_get_contents($checker_url) === false) { - $msg->addInfo('DECISION_NOT_SAVED'); - } -} -else if (isset($_POST['reverse'])) -{ - $reverse_url = AT_ACHECKER_URL. 'decisions.php?' - .'uri='.urlencode($_POST['pg_url']).'&id='.AT_ACHECKER_WEB_SERVICE_ID - .'&session='.$_POST['sessionid'].'&output=html&reverse=true&'.key($_POST['reverse']).'=N'; - - if (@file_get_contents($reverse_url) === false) { - $msg->addInfo('DECISION_NOT_REVERSED'); - } else { - $msg->addInfo('DECISION_REVERSED'); - } -} - -require(AT_INCLUDE_PATH.'header.inc.php'); -?> -
-
-'; - echo ' '; - - if (!$cid) { - $msg->printInfos('SAVE_CONTENT'); - - echo '
'; - - return; - } - -$msg->printInfos(); -if ($_POST['body_text'] != '') { - //save temp file - $_POST['content_path'] = $content_row['content_path']; - write_temp_file(); - - $pg_url = AT_BASE_HREF.'get_acheck.php/'.$_POST['cid'] . '.html'; - $checker_url = AT_ACHECKER_URL.'checkacc.php?uri='.urlencode($pg_url).'&id='.AT_ACHECKER_WEB_SERVICE_ID - . '&guide=WCAG2-L2&output=html'; - - $report = @file_get_contents($checker_url); - - if (stristr($report, '
')) { - $msg->printErrors('INVALID_URL'); - } else if ($report === false) { - $msg->printInfos('SERVICE_UNAVAILABLE'); - } else { - echo ' '; - echo $report; - - echo '

'._AT('access_credit').'

'; - } - //delete file - @unlink(AT_CONTENT_DIR . $_POST['cid'] . '.html'); - -} else { - $msg->printInfos('NO_PAGE_CONTENT'); -} -?> -
-
- \ No newline at end of file