Permalink
Browse files

Make authorize.net config page secure.

  • Loading branch information...
1 parent 8327b31 commit fffe36691f464cc3ce79395ccca3cea2e90d711e ethem committed Nov 1, 2006
Showing with 11 additions and 2 deletions.
  1. +11 −2 enrol/authorize/enrol.php
View
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php // $Id$
require_once($CFG->dirroot.'/enrol/enrol.class.php');
require_once($CFG->dirroot.'/enrol/authorize/const.php');
@@ -420,7 +420,16 @@ function config_form($frm)
}
if (empty($CFG->loginhttps) and substr($CFG->wwwroot, 0, 5) !== 'https') {
- notify('loginhttps must be ON');
+ $a = new stdClass;
+ $a->url = "$CFG->wwwroot/$CFG->admin/config.php#configsectionsecurity";
+ notice(get_string('adminconfighttps', 'enrol_authorize', $a));
+ }
+ elseif (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off') {
+ $wwwsroot = qualified_me();
+ $wwwsroot = str_replace('http:', 'https:', $wwwsroot);
+ $a = new stdClass;
+ $a->url = $wwwsroot;
+ notice(get_string('adminconfighttpsgo', 'enrol_authorize', $a));
}
if (!empty($frm->an_review)) {

0 comments on commit fffe366

Please sign in to comment.