|
21.
|
|
|
Some site options cannot be set in the administration area but need to be updated directly on the server in the ``config.php`` file. In this section, you see the settings that are possible and why you might want to include them in your ``config.php`` file for your site.
|
|
|
|
一部のサイトオプションは管理エリアでは設定できません。そのため、``config.php`` ファイルをサーバ上で直接更新する必要があります。このセクションでは可能な設定およびサイトの ``config.php`` ファイルに設定を含める理由を理解します。
|
|
Translated and reviewed by
Mitsuhiro Yoshida
|
|
|
|
Located in
../source/administration/config_php.rst:9
|
|
22.
|
|
|
The ``config.php`` file sits in the ``/htdocs`` directory of your site. If you want to view all possible variables and their default values, you can find them in ``/htdocs/lib/config-defaults.php``. You can overwrite any default values by placing the variable in your ``config.php`` file.
|
|
|
|
``config.php`` ファイルはサイトの ``/htdocs`` ディレクトリにあります。可能なすべての変数とそのデフォルト値を見たい場合、 ``/htdocs/lib/config-defaults.php`` に見つけることができます。``config.php`` ファイルに変数を置くことで、デフォルト値を上書きできます。
|
|
Translated and reviewed by
Masayuki Kuwada
|
|
|
|
Located in
../source/administration/config_php.rst:14
|
|
23.
|
|
|
Anatomy of a config variable
|
|
|
|
設定変数分析
|
|
Translated and reviewed by
Mitsuhiro Yoshida
|
|
|
|
Located in
../source/administration/config_php.rst:17
|
|
24.
|
|
|
A configuration variable needs to be written in the correct syntax in order to function. In Mahara, this is done the following way: ``$cfg->variable = value;``.
|
|
|
|
機能するには構成変数を正しい構文で記述する必要があります。Maharaではこれは次のように行われます: ``$cfg->変数 = 値;``
|
|
Translated and reviewed by
Mitsuhiro Yoshida
|
|
|
|
Located in
../source/administration/config_php.rst:19
|
|
25.
|
|
|
.. image:: images/administration/config_variable.*
:alt: A typical configuration variable
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
.. image:: images/administration/config_variable.*
:alt: 標準設定値
|
|
Translated and reviewed by
Mitsuhiro Yoshida
|
|
|
|
Located in
../source/administration/config_php.rst:24
|
|
26.
|
|
|
A typical configuration variable
|
|
|
|
標準設定値
|
|
Translated and reviewed by
Mitsuhiro Yoshida
|
|
|
|
Located in
../source/administration/config_php.rst:24
|
|
27.
|
|
|
**$cfg->**: Stands for "configuration" and indicates that what follows is a configuration variable.
|
|
|
|
**$cfg->**: 「設定」を意味します。後続するものが設定変数であることを示します。
|
|
Translated and reviewed by
Mitsuhiro Yoshida
|
|
|
|
Located in
../source/administration/config_php.rst:26
|
|
28.
|
|
|
**variable =**: Here you see the variable that is to be set. Generally, it consists of one word, or words are joined together with underscores. The variable cannot contain any spaces.
|
|
|
|
**変数 =**: ここで設定されている変数を確認できます。一般的に1語またはアンダースコアで繋がれた単語から成ります。変数にはスペースを含めません。
|
|
Translated and reviewed by
Masayuki Kuwada
|
|
|
|
Located in
../source/administration/config_php.rst:27
|
|
29.
|
|
|
**value;**: The value that the variable takes is displayed. The values can be different things, for example:
|
|
|
|
**value;**: 変数が取得する値が表示されます。値は異なる場合があります。例えば次のようになります:
|
|
Translated and reviewed by
Mitsuhiro Yoshida
|
|
|
|
Located in
../source/administration/config_php.rst:28
|
|
30.
|
|
|
"true" or "false"
|
|
|
|
"true" または "false"
|
|
Translated by
Mitsuhiro Yoshida
|
|
|
|
Located in
../source/administration/config_php.rst:30
|