Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-17777

Improve $FULLME, $ME and add $SCRIPT and $FULLSCRIPT

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Administration
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      The major problems here are:

      • reverse proxies
      • SSL accelerators

      $FULLME - should always contain full url starting with wwwroot (and https: if https enabled) including page parameters and slasharguments
      $ME - like FULLME but without the query part
      $SCRIPT - relative me, like ME without wwwroot - ex: "/course/view.php", "/admin/cron.php"

      the cron should stop using FULLME == 'cron' and instead use $SCRIPT == "/$CFG->admin/cron.php"

      -------
      This is just the first step towards reversed proxy and SSL accel support
      This will also help with detection of incorrect access addresses.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              skodak Petr Skoda added a comment -

              done :-D

              Show
              skodak Petr Skoda added a comment - done :-D

                People

                • Assignee:
                  skodak Petr Skoda
                  Reporter:
                  skodak Petr Skoda
                  Participants:
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    24/Nov/10