mirror of
https://github.com/moodle/moodle.git
synced 2025-02-22 02:49:53 +01:00
AMOS BEGIN MOV [xmldbeditor,moodle],[pluginname,tool_xmldb] MOV [actual,core_xmldb],[actual,tool_xmldb] MOV [aftertable,core_xmldb],[aftertable,tool_xmldb] MOV [back,core_xmldb],[back,tool_xmldb] MOV [backtomainview,core_xmldb],[backtomainview,tool_xmldb] MOV [binaryincorrectlength,core_xmldb],[binaryincorrectlength,tool_xmldb] MOV [cannotuseidfield,core_xmldb],[cannotuseidfield,tool_xmldb] MOV [completelogbelow,core_xmldb],[completelogbelow,tool_xmldb] MOV [confirmdeletefield,core_xmldb],[confirmdeletefield,tool_xmldb] MOV [confirmdeleteindex,core_xmldb],[confirmdeleteindex,tool_xmldb] MOV [confirmdeletekey,core_xmldb],[confirmdeletekey,tool_xmldb] MOV [confirmdeletetable,core_xmldb],[confirmdeletetable,tool_xmldb] MOV [confirmdeletexmlfile,core_xmldb],[confirmdeletexmlfile,tool_xmldb] MOV [confirmcheckbigints,core_xmldb],[confirmcheckbigints,tool_xmldb] MOV [confirmcheckdefaults,core_xmldb],[confirmcheckdefaults,tool_xmldb] MOV [confirmcheckforeignkeys,core_xmldb],[confirmcheckforeignkeys,tool_xmldb] MOV [confirmcheckindexes,core_xmldb],[confirmcheckindexes,tool_xmldb] MOV [confirmrevertchanges,core_xmldb],[confirmrevertchanges,tool_xmldb] MOV [create,core_xmldb],[create,tool_xmldb] MOV [createtable,core_xmldb],[createtable,tool_xmldb] MOV [defaultincorrect,core_xmldb],[defaultincorrect,tool_xmldb] MOV [delete,core_xmldb],[delete,tool_xmldb] MOV [delete_field,core_xmldb],[delete_field,tool_xmldb] MOV [delete_index,core_xmldb],[delete_index,tool_xmldb] MOV [delete_key,core_xmldb],[delete_key,tool_xmldb] MOV [delete_table,core_xmldb],[delete_table,tool_xmldb] MOV [delete_xml_file,core_xmldb],[delete_xml_file,tool_xmldb] MOV [doc,core_xmldb],[doc,tool_xmldb] MOV [docindex,core_xmldb],[docindex,tool_xmldb] MOV [documentationintro,core_xmldb],[documentationintro,tool_xmldb] MOV [down,core_xmldb],[down,tool_xmldb] MOV [duplicate,core_xmldb],[duplicate,tool_xmldb] MOV [duplicatefieldname,core_xmldb],[duplicatefieldname,tool_xmldb] MOV [duplicatekeyname,core_xmldb],[duplicatekeyname,tool_xmldb] MOV [edit,core_xmldb],[edit,tool_xmldb] MOV [edit_field,core_xmldb],[edit_field,tool_xmldb] MOV [edit_field_save,core_xmldb],[edit_field_save,tool_xmldb] MOV [edit_index,core_xmldb],[edit_index,tool_xmldb] MOV [edit_index_save,core_xmldb],[edit_index_save,tool_xmldb] MOV [edit_key,core_xmldb],[edit_key,tool_xmldb] MOV [edit_key_save,core_xmldb],[edit_key_save,tool_xmldb] MOV [edit_table,core_xmldb],[edit_table,tool_xmldb] MOV [edit_table_save,core_xmldb],[edit_table_save,tool_xmldb] MOV [edit_xml_file,core_xmldb],[edit_xml_file,tool_xmldb] MOV [enumvaluesincorrect,core_xmldb],[enumvaluesincorrect,tool_xmldb] MOV [expected,core_xmldb],[expected,tool_xmldb] MOV [extensionrequired,core_xmldb],[extensionrequired,tool_xmldb] MOV [field,core_xmldb],[field,tool_xmldb] MOV [fieldnameempty,core_xmldb],[fieldnameempty,tool_xmldb] MOV [fields,core_xmldb],[fields,tool_xmldb] MOV [fieldsnotintable,core_xmldb],[fieldsnotintable,tool_xmldb] MOV [fieldsusedinkey,core_xmldb],[fieldsusedinkey,tool_xmldb] MOV [filenotwriteable,core_xmldb],[filenotwriteable,tool_xmldb] MOV [fkviolationdetails,core_xmldb],[fkviolationdetails,tool_xmldb] MOV [floatincorrectdecimals,core_xmldb],[floatincorrectdecimals,tool_xmldb] MOV [floatincorrectlength,core_xmldb],[floatincorrectlength,tool_xmldb] MOV [float2numbernote,core_xmldb],[float2numbernote,tool_xmldb] MOV [generate_all_documentation,core_xmldb],[generate_all_documentation,tool_xmldb] MOV [generate_documentation,core_xmldb],[generate_documentation,tool_xmldb] MOV [gotolastused,core_xmldb],[gotolastused,tool_xmldb] MOV [change,core_xmldb],[change,tool_xmldb] MOV [charincorrectlength,core_xmldb],[charincorrectlength,tool_xmldb] MOV [checkbigints,core_xmldb],[checkbigints,tool_xmldb] MOV [check_bigints,core_xmldb],[check_bigints,tool_xmldb] MOV [checkdefaults,core_xmldb],[checkdefaults,tool_xmldb] MOV [check_defaults,core_xmldb],[check_defaults,tool_xmldb] MOV [checkforeignkeys,core_xmldb],[checkforeignkeys,tool_xmldb] MOV [check_foreign_keys,core_xmldb],[check_foreign_keys,tool_xmldb] MOV [checkindexes,core_xmldb],[checkindexes,tool_xmldb] MOV [check_indexes,core_xmldb],[check_indexes,tool_xmldb] MOV [incorrectfieldname,core_xmldb],[incorrectfieldname,tool_xmldb] MOV [index,core_xmldb],[index,tool_xmldb] MOV [indexes,core_xmldb],[indexes,tool_xmldb] MOV [integerincorrectlength,core_xmldb],[integerincorrectlength,tool_xmldb] MOV [key,core_xmldb],[key,tool_xmldb] MOV [keys,core_xmldb],[keys,tool_xmldb] MOV [listreservedwords,core_xmldb],[listreservedwords,tool_xmldb] MOV [load,core_xmldb],[load,tool_xmldb] MOV [main_view,core_xmldb],[main_view,tool_xmldb] MOV [masterprimaryuniqueordernomatch,core_xmldb],[masterprimaryuniqueordernomatch,tool_xmldb] MOV [missing,core_xmldb],[missing,tool_xmldb] MOV [missingindexes,core_xmldb],[missingindexes,tool_xmldb] MOV [mustselectonefield,core_xmldb],[mustselectonefield,tool_xmldb] MOV [mustselectoneindex,core_xmldb],[mustselectoneindex,tool_xmldb] MOV [mustselectonekey,core_xmldb],[mustselectonekey,tool_xmldb] MOV [mysqlextracheckbigints,core_xmldb],[mysqlextracheckbigints,tool_xmldb] MOV [newfield,core_xmldb],[newfield,tool_xmldb] MOV [newindex,core_xmldb],[newindex,tool_xmldb] MOV [newkey,core_xmldb],[newkey,tool_xmldb] MOV [newtable,core_xmldb],[newtable,tool_xmldb] MOV [newtablefrommysql,core_xmldb],[newtablefrommysql,tool_xmldb] MOV [new_table_from_mysql,core_xmldb],[new_table_from_mysql,tool_xmldb] MOV [nomasterprimaryuniquefound,core_xmldb],[nomasterprimaryuniquefound,tool_xmldb] MOV [nomissingindexesfound,core_xmldb],[nomissingindexesfound,tool_xmldb] MOV [noviolatedforeignkeysfound,core_xmldb],[noviolatedforeignkeysfound,tool_xmldb] MOV [nowrongdefaultsfound,core_xmldb],[nowrongdefaultsfound,tool_xmldb] MOV [nowrongintsfound,core_xmldb],[nowrongintsfound,tool_xmldb] MOV [numberincorrectdecimals,core_xmldb],[numberincorrectdecimals,tool_xmldb] MOV [numberincorrectlength,core_xmldb],[numberincorrectlength,tool_xmldb] MOV [pendingchanges,core_xmldb],[pendingchanges,tool_xmldb] MOV [pendingchangescannotbesaved,core_xmldb],[pendingchangescannotbesaved,tool_xmldb] MOV [pendingchangescannotbesavedreload,core_xmldb],[pendingchangescannotbesavedreload,tool_xmldb] MOV [reserved,core_xmldb],[reserved,tool_xmldb] MOV [reservedwords,core_xmldb],[reservedwords,tool_xmldb] MOV [revert,core_xmldb],[revert,tool_xmldb] MOV [revert_changes,core_xmldb],[revert_changes,tool_xmldb] MOV [save,core_xmldb],[save,tool_xmldb] MOV [searchresults,core_xmldb],[searchresults,tool_xmldb] MOV [selectaction,core_xmldb],[selectaction,tool_xmldb] MOV [selectdb,core_xmldb],[selectdb,tool_xmldb] MOV [selectfieldkeyindex,core_xmldb],[selectfieldkeyindex,tool_xmldb] MOV [selectonecommand,core_xmldb],[selectonecommand,tool_xmldb] MOV [selectonefieldkeyindex,core_xmldb],[selectonefieldkeyindex,tool_xmldb] MOV [selecttable,core_xmldb],[selecttable,tool_xmldb] MOV [table,core_xmldb],[table,tool_xmldb] MOV [tables,core_xmldb],[tables,tool_xmldb] MOV [textincorrectlength,core_xmldb],[textincorrectlength,tool_xmldb] MOV [unload,core_xmldb],[unload,tool_xmldb] MOV [up,core_xmldb],[up,tool_xmldb] MOV [view,core_xmldb],[view,tool_xmldb] MOV [viewedited,core_xmldb],[viewedited,tool_xmldb] MOV [vieworiginal,core_xmldb],[vieworiginal,tool_xmldb] MOV [viewphpcode,core_xmldb],[viewphpcode,tool_xmldb] MOV [view_reserved_words,core_xmldb],[view_reserved_words,tool_xmldb] MOV [viewsqlcode,core_xmldb],[viewsqlcode,tool_xmldb] MOV [view_structure_php,core_xmldb],[view_structure_php,tool_xmldb] MOV [view_structure_sql,core_xmldb],[view_structure_sql,tool_xmldb] MOV [view_table_php,core_xmldb],[view_table_php,tool_xmldb] MOV [view_table_sql,core_xmldb],[view_table_sql,tool_xmldb] MOV [viewxml,core_xmldb],[viewxml,tool_xmldb] MOV [violatedforeignkeys,core_xmldb],[violatedforeignkeys,tool_xmldb] MOV [violatedforeignkeysfound,core_xmldb],[violatedforeignkeysfound,tool_xmldb] MOV [violations,core_xmldb],[violations,tool_xmldb] MOV [wrong,core_xmldb],[wrong,tool_xmldb] MOV [wrongdefaults,core_xmldb],[wrongdefaults,tool_xmldb] MOV [wrongints,core_xmldb],[wrongints,tool_xmldb] MOV [wronglengthforenum,core_xmldb],[wronglengthforenum,tool_xmldb] MOV [wrongreservedwords,core_xmldb],[wrongreservedwords,tool_xmldb] MOV [yesmissingindexesfound,core_xmldb],[yesmissingindexesfound,tool_xmldb] MOV [yeswrongdefaultsfound,core_xmldb],[yeswrongdefaultsfound,tool_xmldb] MOV [yeswrongintsfound,core_xmldb],[yeswrongintsfound,tool_xmldb] AMOS END
83 lines
5.9 KiB
PHP
83 lines
5.9 KiB
PHP
<?php
|
|
|
|
// * Miscellaneous settings
|
|
|
|
if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
|
|
|
|
// Experimental settings page
|
|
$ADMIN->add('development', new admin_category('experimental', get_string('experimental','admin')));
|
|
|
|
require_once($CFG->dirroot .'/search/lib.php');
|
|
$temp = new admin_settingpage('experimentalsettings', get_string('experimentalsettings', 'admin'));
|
|
$englobalsearch = new admin_setting_configcheckbox('enableglobalsearch', get_string('enableglobalsearch', 'admin'), get_string('configenableglobalsearch', 'admin'), 0);
|
|
$englobalsearch->set_updatedcallback('search_updatedcallback');
|
|
$temp->add($englobalsearch);
|
|
//TODO: Re-enable cc-import once re-implemented in 2.0.x
|
|
//$temp->add(new admin_setting_configcheckbox('enableimsccimport', get_string('enable_cc_import', 'imscc'), get_string('enable_cc_import_description', 'imscc'), 0));
|
|
$temp->add(new admin_setting_configcheckbox('enablesafebrowserintegration', get_string('enablesafebrowserintegration', 'admin'), get_string('configenablesafebrowserintegration', 'admin'), 0));
|
|
$temp->add(new admin_setting_configcheckbox('enablegroupmembersonly', get_string('enablegroupmembersonly', 'admin'), get_string('configenablegroupmembersonly', 'admin'), 0));
|
|
|
|
$ADMIN->add('experimental', $temp);
|
|
|
|
// "debugging" settingpage
|
|
$temp = new admin_settingpage('debugging', get_string('debugging', 'admin'));
|
|
$temp->add(new admin_setting_special_debug());
|
|
$temp->add(new admin_setting_configcheckbox('debugdisplay', get_string('debugdisplay', 'admin'), get_string('configdebugdisplay', 'admin'), ini_get_bool('display_errors')));
|
|
$temp->add(new admin_setting_configcheckbox('xmlstrictheaders', get_string('xmlstrictheaders', 'admin'), get_string('configxmlstrictheaders', 'admin'), 0));
|
|
$temp->add(new admin_setting_configcheckbox('debugsmtp', get_string('debugsmtp', 'admin'), get_string('configdebugsmtp', 'admin'), 0));
|
|
$temp->add(new admin_setting_configcheckbox('perfdebug', get_string('perfdebug', 'admin'), get_string('configperfdebug', 'admin'), '7', '15', '7'));
|
|
$temp->add(new admin_setting_configcheckbox('debugstringids', get_string('debugstringids', 'admin'), get_string('configdebugstringids', 'admin'), 0));
|
|
$temp->add(new admin_setting_configcheckbox('debugvalidators', get_string('debugvalidators', 'admin'), get_string('configdebugvalidators', 'admin'), 0));
|
|
$temp->add(new admin_setting_configcheckbox('debugpageinfo', get_string('debugpageinfo', 'admin'), get_string('configdebugpageinfo', 'admin'), 0));
|
|
$ADMIN->add('development', $temp);
|
|
|
|
// "profiling" settingpage (conditionally if the 'xhprof' extension is available only)
|
|
if (extension_loaded('xhprof') && function_exists('xhprof_enable')) {
|
|
$temp = new admin_settingpage('profiling', get_string('profiling', 'admin'));
|
|
// Main profiling switch
|
|
$temp->add(new admin_setting_configcheckbox('profilingenabled', get_string('profilingenabled', 'admin'), get_string('profilingenabled_help', 'admin'), false));
|
|
// List of URLs that will be automatically profiled
|
|
$temp->add(new admin_setting_configtextarea('profilingincluded', get_string('profilingincluded', 'admin'), get_string('profilingincluded_help', 'admin'), ''));
|
|
// List of URLs that won't be profiled ever
|
|
$temp->add(new admin_setting_configtextarea('profilingexcluded', get_string('profilingexcluded', 'admin'), get_string('profilingexcluded_help', 'admin'), ''));
|
|
// Allow random profiling each XX requests
|
|
$temp->add(new admin_setting_configtext('profilingautofrec', get_string('profilingautofrec', 'admin'), get_string('profilingautofrec_help', 'admin'), 0, PARAM_INT));
|
|
// Allow PROFILEME/DONTPROFILEME GPC
|
|
$temp->add(new admin_setting_configcheckbox('profilingallowme', get_string('profilingallowme', 'admin'), get_string('profilingallowme_help', 'admin'), false));
|
|
// Allow PROFILEALL/PROFILEALLSTOP GPC
|
|
$temp->add(new admin_setting_configcheckbox('profilingallowall', get_string('profilingallowall', 'admin'), get_string('profilingallowall_help', 'admin'), false));
|
|
// TODO: Allow to skip PHP functions (XHPROF_FLAGS_NO_BUILTINS)
|
|
// TODO: Allow to skip call_user functions (ignored_functions array)
|
|
// Specify the life time (in minutes) of profiling runs
|
|
$temp->add(new admin_setting_configselect('profilinglifetime', get_string('profilinglifetime', 'admin'), get_string('profilinglifetime_help', 'admin'), 24*60, array(
|
|
0 => get_string('neverdeleteruns', 'admin'),
|
|
30*24*60 => get_string('numdays', '', 30),
|
|
15*24*60 => get_string('numdays', '', 15),
|
|
7*24*60 => get_string('numdays', '', 7),
|
|
4*24*60 => get_string('numdays', '', 4),
|
|
2*24*60 => get_string('numdays', '', 2),
|
|
24*60 => get_string('numhours', '', 24),
|
|
16*80 => get_string('numhours', '', 16),
|
|
8*60 => get_string('numhours', '', 8),
|
|
4*60 => get_string('numhours', '', 4),
|
|
2*60 => get_string('numhours', '', 2),
|
|
60 => get_string('numminutes', '', 60),
|
|
30 => get_string('numminutes', '', 30),
|
|
15 => get_string('numminutes', '', 15))));
|
|
|
|
// Add the 'profiling' page to admin block
|
|
$ADMIN->add('development', $temp);
|
|
}
|
|
|
|
|
|
// Web service test clients DO NOT COMMIT : THE EXTERNAL WEB PAGE IS NOT AN ADMIN PAGE !!!!!
|
|
$ADMIN->add('development', new admin_externalpage('testclient', get_string('testclient', 'webservice'), "$CFG->wwwroot/$CFG->admin/webservice/testclient.php"));
|
|
|
|
|
|
if ($CFG->mnet_dispatcher_mode !== 'off') {
|
|
$ADMIN->add('development', new admin_externalpage('mnettestclient', get_string('testclient', 'mnet'), "$CFG->wwwroot/$CFG->admin/mnet/testclient.php"));
|
|
}
|
|
|
|
$ADMIN->add('development', new admin_externalpage('purgecaches', get_string('purgecaches','admin'), "$CFG->wwwroot/$CFG->admin/purgecaches.php"));
|
|
} // end of speedup
|