Opened 11 years ago

Closed 11 years ago

Last modified 6 years ago

#401 closed new feature (wontfix)

"MOD_env" for environment and system settings

Reported by: lemon-head Owned by:
Priority: major Milestone: Legacy Resolved
Component: FrameWork Keywords:
Cc:

Description

A new module "MOD_env", that will provide access to system settings like the baseuri, the mysql user and pw, etc.

The MOD_env will be responsible for loading the config.inc.php, and processing the contents. This will happen in each request, when the singleton instance of MOD_env is created (the first time a component wants to read data from settings).

Change History (11)

comment:1 Changed 11 years ago by lemon-head

[4044] introduces a first draft of MOD_env.

comment:2 Changed 11 years ago by lemon-head

  • follow_up changed from none to review code

comment:3 Changed 11 years ago by lemon-head

  • freq_reported set to 1
  • show_on_bw set to 0

[4050] - new version for MOD_env.

Now with two alternatives:

  • load the settings from "config.ini" in rox root folder.
  • if "config.ini" doesn't exist, MOD_env will use the "inc/config.inc.php" instead.

comment:4 Changed 11 years ago by lemon-head

[4051] - config.example.ini (to be copied/modified to config.ini).

The new config.ini, can replace the "inc/config.inc.php".

comment:5 Changed 11 years ago by lemon-head

[4052] - new version of "htdocs/index.php", for finally using the MOD_env.

Now with three alternatives:

  • MOD_env will load the settings from "config.ini" in rox root folder.
  • if "config.ini" does not exist, MOD_env will use the "inc/config.inc.php" instead.
  • if MOD_env itself does not exist (for instance, when we don't want to move it to alpha that soon), the new "htdocs/index.php" will use the old "inc/config.inc.php" instead.

All the global variables in PVars do still exist, but we should slowly switch to MOD_env.

comment:6 Changed 11 years ago by lemon-head

Now, what's still missing is someone to configure the config.ini for test.bw!

  • Same settings as in the "inc/config.inc.php"
  • Look at "config.ini.example" !

comment:7 Changed 11 years ago by feuerdaemon

  • Milestone changed from unassigned to BigPicture

comment:8 Changed 11 years ago by lemon-head

MOD_env is NOT the solution.

We now have #478 RoxLauncher? instead!

comment:9 Changed 11 years ago by lemon-head

  • follow_up changed from review code to none
  • Resolution set to wontfix
  • Status changed from new to closed

we can close this.

comment:10 Changed 11 years ago by philipp

  • Milestone changed from BigPicture to unassigned

Milestone BigPicture? deleted

comment:11 Changed 6 years ago by TimLoal

  • Milestone changed from unassigned to Legacy Resolved
Note: See TracTickets for help on using tickets.