File: config.html

package info (click to toggle)
moodle 1.6.3-2%2Betch3
  • links: PTS
  • area: main
  • in suites: etch
  • size: 37,172 kB
  • ctags: 51,688
  • sloc: php: 231,916; sql: 5,631; xml: 2,688; sh: 1,185; perl: 638; makefile: 48; pascal: 36
file content (134 lines) | stat: -rw-r--r-- 4,167 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<form method="post" action="module.php" name="form">
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">

<table cellpadding="9" cellspacing="0" >
<tr valign="top">
    <td align="right">resource_framesize:</td>
    <td>
    <input name="resource_framesize" type="text" size="5" value="<?php p($CFG->resource_framesize) ?>" />
    </td>
    <td>
    <?php print_string("configframesize", "resource") ?>
    </td>
</tr>
<tr valign="top">
    <td align="right">resource_websearch:</td>
    <td>
    <input name="resource_websearch" type="text" size="30" value="<?php p($CFG->resource_websearch) ?>" />
    </td>
    <td>
    <?php print_string("configwebsearch", "resource") ?>
    </td>
</tr>
<tr valign="top">
    <td align="right">resource_defaulturl:</td>
    <td>
    <input name="resource_defaulturl" type="text" size="30" value="<?php p($CFG->resource_defaulturl) ?>" />
    </td>
    <td>
    <?php print_string("configdefaulturl", "resource") ?>
    </td>
</tr>
<tr valign="top">
    <td align="right">resource_secretphrase:</td>
    <td>
    <input name="resource_secretphrase" type="text" size="30" value="<?php p($CFG->resource_secretphrase) ?>" />
    </td>
    <td>
    <?php print_string("configsecretphrase", "resource") ?>
    </td>
</tr>
<tr valign="top">
    <td align="right">resource_allowlocalfiles:</td>
    <td>
    <?php
        unset($choices);
        $choices["0"] = get_string("no");
        $choices["1"] = get_string("yes");
        choose_from_menu ($choices, "resource_allowlocalfiles", $CFG->resource_allowlocalfiles, "");
    ?>
    </td>
    <td>
    <?php print_string("configallowlocalfiles", "resource") ?>
    </td>
</tr>
<tr valign="top">
    <td align="right">resource_filterexternalpages:</td>
    <td>
    <?php
        unset($choices);
        $choices["0"] = get_string("no");
        $choices["1"] = get_string("yes");
        choose_from_menu ($choices, "resource_filterexternalpages", $CFG->resource_filterexternalpages, "");
    ?>
    </td>
    <td>
    <?php print_string("configfilterexternalpages", "resource") ?>
    </td>
</tr>
<tr valign="top">
    <td align="right">resource_popup:</td>
    <td>
    <?php
        unset($choices);
        $choices[""] = get_string("no");
        $choices["checked"] = get_string("yes");
        choose_from_menu ($choices, "resource_popup", $CFG->resource_popup, "");
    ?>
    </td>
    <td>
    <?php print_string("configpopup", "resource") ?>
    </td>
</tr>
<?php foreach ($RESOURCE_WINDOW_OPTIONS as $optionname) {
          $defaultvalue = "resource_popup$optionname";
          echo "<tr valign=\"top\">";
          echo "<td align=\"right\">$defaultvalue:</td>";
          echo "<td>";
          if ($optionname == "height" or $optionname == "width") {
              echo "<input name=$defaultvalue type=\"text\" size=\"5\" value=\"".$CFG->$defaultvalue."\" />";
          } else {
              choose_from_menu ($choices, $defaultvalue, $CFG->$defaultvalue, "");
          }
          echo "</td>";
          echo "<td>";
          print_string("configpopup$optionname", "resource");
          echo "</td>";
          echo "</tr>";
      }
?>
<tr valign="top">
    <td align="right">resource_windowsettings:</td>
    <td>
    <?php
        unset($choices);
        $choices["0"] = get_string("hidesettings");
        $choices["1"] = get_string("showsettings");
        choose_from_menu ($choices, "resource_windowsettings", $CFG->resource_windowsettings, "");
    ?>
    </td>
    <td>
    <?php print_string("configwindowsettings", "resource") ?>
    </td>
</tr>
<tr valign="top">
    <td align="right">resource_parametersettings:</td>
    <td>
    <?php
        unset($choices);
        $choices["0"] = get_string("hidesettings");
        $choices["1"] = get_string("showsettings");
        choose_from_menu ($choices, "resource_parametersettings", $CFG->resource_parametersettings, "");
    ?>
    </td>
    <td>
    <?php print_string("configparametersettings", "resource") ?>
    </td>
</tr>
<tr>
    <td colspan="3" align="center">
        <input type="submit" value="<?php print_string("savechanges") ?>" /></td>
</tr>
</table>

</form>