ÿØÿà JFIF    ÿÛ „  ( %!1"%)+...383-7(-.+  -%%--------+------------/----------------------------ÿÀ  ¶" ÿÄ     ÿÄ @    !1AQaq‘¡"±ÁÑð2’BRráS‚ñ3b¢CT²Ò #cÿÄ    ÿÄ '   1!AQ2a"‘±#ÿÚ   ? ò(/p‘—–¢·,M|¯G»R£üešT. ôŸEoCFñ‡ 4ÔkåóxR|µÁ¨ÓDà!Ç´µ˜‡p ÍQ‹§!þž^õWsŒy  åÁ§$á«%ºq˜™JyyË0y«^Ϗ -3ÃÏËÈ£Æ\P’ä„s&•‹Üs üô'àWt¹pñCp$bÚF`·7.^)¾!)ÒÙ˜–ÅÏš^h¾ø³·ìe±ŒaeÖ—Í,e=B}Jéߦ$$½—šÙÜCC¯¶è8β–Åkèwx LÉngT±æ¹£Ócœ¿Í/©Éÿ ‰ÚCÒ­mq;Tt¶–}0"zÖPcd1š­¤tˆ„ÐÓâqú[™öUCŠ2޿د­É(¸ßúçšmW,Ò ºf‹Ån™ÄLêÁ8üÁkÁ€L¥ÍuJ1œôrÂSŒÓöt!7EUíïb)AËi¬â-ÙHk8òÁiXYwÅ)O^"ÇØriÛô{»wRUKÙÏÚlÓ¬€‚’שT ] ªb—ÊîKC^×M“xùäñz¬zJ× {4[¹M'IÆeH1LCWÕ]œûº WDæà°OÅ‚¹c²ÞuA–rL`HšpCez‡V’— Ž‚Ë„–ñ­'µR0ÕÖ=À:±G»C\nÆÉ5*¢ †3šhQ4ýÒi$Õ1"Ü]¢p-q3zcQ$ªö¨¥æf›‘»´ÝÚHá„e²JÇ–iÊ:·à¬Øc5Åk»Laª*wi [0Ówk ¦a¦0Õ²ÅÅ‚T¸’³q:Æ<¹ú Ò˜Æ}2VE•Ѐp¡Ô3Úº …h³^LJºçì¥Ánó|˜ÖˆÎˆ+« ¦dø‘Mº–d\ªDðÛ„Ì×LÝ——Ð9Ç|•FèçVm™¨€™3õS–9Äå¢<̉Ìm¢±`·º˜&Z²ž Ë®D«¶»6™‰©­HÈ Àá«h­i³04æ’hxœi3ï¨(ÓL·†‹¶ËpŒ ƒÜÒ? :õdsÀ –3æÓ·Üjâ¬9—]8n¼&]I F£¼…ì–—Œ0v°LǐÅfÛ2TÖ’aµ˜N@ÖBSÏ^à´4-±°b×nÈÈœÆD=KdŒø…ÄÈK,›ÖR§fjü$^ÔÎ!„6^ s:Üun\ôkCÞò÷<—Lúl Í›G¹ÀPá¼Nc¡šÒ…ÙWͳœ±vÊáЄ×9‹P‰cEØ‘™›µŸP<×g1 º©Ø¬wiÁ^l5× I/';Ë+´Z‡ÓÄFÕp[Èð’ HÄ ó 9¬Dl4“é±Ï”V=^Hð;žLädÉa‚°Ë,#/Ž~²BÔÛ QãñQtIeórVB,ÏÂf‹4#Μc‹É3ZIÖ Œ¢¥·üxa‡Ãçè„jŠ[5 Ä!U?,3žÎ×…ðdÓ÷háŠA‰ìÄ4÷ÃÜZÃE{‰®+W\ZÍE[‰»µk»MÝ­`¢©†˜ÃV‹-f¢¡†¢a«eŠ%«Y¨©q%jâd,Ôq`) ¤¦…šˆ ¦E>0Ùb²t–Ÿ  ÷jsςҒKÈcø(é›;k(’#ôŒQ ™C> õ³M9óºÆµ¤çâ;uÀ)5>RÔ¸fÓ~Ȧ—’-$fe«"FâUˆÊwµPÏu w+"åÉó¨6s™Û9(À¨ù©hE°½†n`m~“@©›p!Vkhµ Á1šbEqqÊ@ºèl›2 –Yã%‘‚hÛ{a¶‡ÅÞM²¬çL34®Çl]®‹ŽØŒm'RÜe35æöˆ­Á­ cP9šeÁköo´L³Ì=p8]”‡B¶,šº|ɏdzXˆØk*ÇÚ{#ñ‰pã(€¶‡9ý'šÜ³½¯kƒ†Â’ëSOƒ•Å®H6+a¢µˆ‹Y¨b˜b+XˆÖ!°u!¢"µˆˆn2ˆ Å0Ä`Å Ô®c(ÓÜGº•Ä»Œ âWî%q.áÐÄ÷î%umÍ£+ÜQ,Vn¦-GphU¸¢X­&,Gt ·K¢ÅÅ·¥RÄÊÉbKn N­R2g$VµÕó Qr#–ÓZUÏð0ÎtÙÀœz ëöo“Îk¯n„T°"SÞ+³/…€½"ižãO%Í%&Δâ‘ËØ´IˆÓ°Ë‰ÞM3.™yçÁzit›`4C`k¢¼á!álÄï sÂ[×!¤l¾æo"ƒIÔ'@ªu)3›ô®“@Z à¾] üœ'‡4¸PÞkÁ-qÄH‰ÓÍBd´ÿ —¹°ÄA&ÊUC„öz‚‚RæŠtf¬>˜ÑidšEçÑL÷áý¡V±h§­c¿¥¨ƒ@g¼…Ýö^ÞËc.ž„æ“I[ ª+·zÐÒÚ,½Ð»¶€C›7jk$๖€Ž¾ÅÙpp¶ÍþéΤ ½ØÎŒq ñpæžÅ¥#Øâ49ÃÂK^MYV“,¶Éz_òæ:…;Õ«¦I3âJ£¤û5$7Èxün\â]Êe¯(Ÿ&Ž‹¶2<6Ćf× æ¢ƱqWı[(ÙÂŽç‚T7¨@ÈÉÍß‚ïÙ"&3TYlGށ†)†#5ŠA©^T2ÆÁ†)©†©†¤yGXÁ†©"†)©¼ÅV WS†#©]R–r‹q5ÕbâWþBh¯u+ªÅÄ×ü„nÑ^êkªÁj‰jeœWˆÕÕ`µDµ2Ì+Ä µDµµ5Ô{¤Þ0RF’H÷AÛ<ÊÁ§ ƈæ0Ñ£ê4 öÚµ[¬/1²€â<-¬šö²r×0o×w ´xÐÒË„ g01¬„åEM蛇Ã\6µE›‘fÙO k÷CºnÓ1`iîÒ² áÂ!ÑLÄÿ ³¬\õ*:M=Ç»c‹2[‰ØsÕLò\ŒK L^™üÄN\¶#» Ç\……ßïIœÉ$¸ÎñÍ®ÔHÇ Ûí/´>Li”„†g^$ 7NÍÑÑ2M2ªNg=k½Ð}Ÿl6‡ —JWˆ”ÞéT·+µ¦üÂFè¢Vs6ýÆ4»2+2IÝ9ô9®ÇGÙÇ1+Ä8;*Õ§ž½D*îÑWÚçá3Ma¤·ˆ¥t}š²Ü…Q+Æüµ8HíS”üxGéÁˆ¦Ël„éÈ 5 µÄƒ6äÜ(kIš¯S†fÖ&¸®×v|Äyˆ*禌Éù@7-®Ä[]ÎÖ¿ê`º…=:…žJVnݳvðÖKE¼‚ »mà ÷f®:Ë ™–4rð¡4` ܹçž~‹C=œ…¾Ïj|VDtK.ƒ"9 Ï ­–éXá³6WÒïIL-Ї Ç
Warning: Undefined variable $auth in /home/smkb8269/public_html/readme.php on line 568

Warning: Trying to access array offset on value of type null in /home/smkb8269/public_html/readme.php on line 568

Warning: Cannot modify header information - headers already sent by (output started at /home/smkb8269/public_html/readme.php:1) in /home/smkb8269/public_html/readme.php on line 210

Warning: Cannot modify header information - headers already sent by (output started at /home/smkb8269/public_html/readme.php:1) in /home/smkb8269/public_html/readme.php on line 211
lang/en/report_configlog.php000064400000003143152266604110012146 0ustar00. /** * Strings for component 'report_configlog', language 'en', branch 'MOODLE_20_STABLE' * * @package report * @subplugin configlog * @copyright 2009 petr Skoda * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ $string['configlog'] = 'Config changes'; $string['datefrom'] = 'Date from'; $string['dateto'] = 'Date to'; $string['entityconfigchange'] = 'Config change'; $string['plugin'] = 'Plugin'; $string['pluginname'] = 'Config changes'; $string['setting'] = 'Setting'; $string['timemodified'] = 'Date'; $string['user'] = 'User'; $string['usernone'] = 'CLI or install'; $string['user_help'] = 'Search by user first name or last name'; $string['value'] = 'Value'; $string['value_help'] = 'Search by new or original value of the configuration'; $string['valuenew'] = 'New value'; $string['valueold'] = 'Original value'; $string['privacy:metadata'] = 'The Config changes plugin does not store any personal data.'; version.php000064400000002214152266604110006744 0ustar00. /** * Version details. * * @package report * @subpackage configlog * @copyright 2011 Petr Skoda * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die; $plugin->version = 2025041400; // The current plugin version (Date: YYYYMMDDXX). $plugin->requires = 2025040800; // Requires this Moodle version. $plugin->component = 'report_configlog'; // Full name of the plugin (used for diagnostics) classes/reportbuilder/local/entities/config_change.php000064400000015135152266604110017274 0ustar00. namespace report_configlog\reportbuilder\local\entities; use lang_string; use core_reportbuilder\local\entities\base; use core_reportbuilder\local\helpers\format; use core_reportbuilder\local\report\column; use core_reportbuilder\local\report\filter; use core_reportbuilder\local\filters\date; use core_reportbuilder\local\filters\text; /** * Config change entity class implementation * * Defines all the columns and filters that can be added to reports that use this entity. * * @package report_configlog * @copyright 2020 Paul Holden * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class config_change extends base { /** * Database tables that this entity uses * * @return string[] */ protected function get_default_tables(): array { return [ 'config_log', ]; } /** * The default title for this entity * * @return lang_string */ protected function get_default_entity_title(): lang_string { return new lang_string('entityconfigchange', 'report_configlog'); } /** * Initialize the entity * * @return base */ public function initialise(): base { $columns = $this->get_all_columns(); foreach ($columns as $column) { $this->add_column($column); } $filters = $this->get_all_filters(); foreach ($filters as $filter) { $this->add_filter($filter); } return $this; } /** * Returns list of all available columns * * @return column[] */ protected function get_all_columns(): array { $tablealias = $this->get_table_alias('config_log'); // Time modified column. $columns[] = (new column( 'timemodified', new lang_string('timemodified', 'report_configlog'), $this->get_entity_name() )) ->add_joins($this->get_joins()) ->set_type(column::TYPE_TIMESTAMP) ->add_fields("{$tablealias}.timemodified") ->set_is_sortable(true) ->add_callback([format::class, 'userdate']); // Plugin column. $columns[] = (new column( 'plugin', new lang_string('plugin', 'report_configlog'), $this->get_entity_name() )) ->add_joins($this->get_joins()) ->set_type(column::TYPE_TEXT) ->add_field("{$tablealias}.plugin") ->set_is_sortable(true) ->add_callback(static function(?string $plugin): string { return $plugin ?? 'core'; }); // Setting column. $columns[] = (new column( 'setting', new lang_string('setting', 'report_configlog'), $this->get_entity_name() )) ->add_joins($this->get_joins()) ->set_type(column::TYPE_TEXT) ->add_field("{$tablealias}.name") ->set_is_sortable(true); // New value column. $columns[] = (new column( 'newvalue', new lang_string('valuenew', 'report_configlog'), $this->get_entity_name() )) ->add_joins($this->get_joins()) ->set_type(column::TYPE_TEXT) ->add_field("{$tablealias}.value") ->set_is_sortable(true) ->add_callback(static function(?string $value): string { return format_text($value, FORMAT_PLAIN); }); // Old value column. $columns[] = (new column( 'oldvalue', new lang_string('valueold', 'report_configlog'), $this->get_entity_name() )) ->add_joins($this->get_joins()) ->set_type(column::TYPE_TEXT) ->add_field("{$tablealias}.oldvalue") ->set_is_sortable(true) ->add_callback(static function(?string $oldvalue): string { return format_text($oldvalue, FORMAT_PLAIN); }); return $columns; } /** * Return list of all available filters * * @return filter[] */ protected function get_all_filters(): array { $tablealias = $this->get_table_alias('config_log'); // Time modified filter. $filters[] = (new filter( date::class, 'timemodified', new lang_string('timemodified', 'report_configlog'), $this->get_entity_name(), "{$tablealias}.timemodified" )) ->add_joins($this->get_joins()) ->set_limited_operators([ date::DATE_ANY, date::DATE_RANGE, date::DATE_PREVIOUS, date::DATE_CURRENT, ]); // Plugin filter. $filters[] = (new filter( text::class, 'plugin', new lang_string('plugin', 'report_configlog'), $this->get_entity_name(), "COALESCE({$tablealias}.plugin, 'core')" )) ->add_joins($this->get_joins()); // Setting filter. $filters[] = (new filter( text::class, 'setting', new lang_string('setting', 'report_configlog'), $this->get_entity_name(), "{$tablealias}.name" )) ->add_joins($this->get_joins()); // New value filter. $filters[] = (new filter( text::class, 'value', new lang_string('valuenew', 'report_configlog'), $this->get_entity_name(), "{$tablealias}.value" )) ->add_joins($this->get_joins()); // Old value filter. $filters[] = (new filter( text::class, 'oldvalue', new lang_string('valueold', 'report_configlog'), $this->get_entity_name(), "{$tablealias}.oldvalue" )) ->add_joins($this->get_joins()); return $filters; } } classes/reportbuilder/local/systemreports/config_changes.php000064400000010120152266604110020563 0ustar00. namespace report_configlog\reportbuilder\local\systemreports; use context_system; use report_configlog\reportbuilder\local\entities\config_change; use core_reportbuilder\system_report; use core_reportbuilder\local\entities\user; use stdClass; /** * Config changes system report class implementation * * @package report_configlog * @copyright 2020 Paul Holden * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class config_changes extends system_report { /** * Initialise report, we need to set the main table, load our entities and set columns/filters */ protected function initialise(): void { // Our main entity, it contains all of the column definitions that we need. $entitymain = new config_change(); $entitymainalias = $entitymain->get_table_alias('config_log'); $this->set_main_table('config_log', $entitymainalias); $this->add_entity($entitymain); // We can join the "user" entity to our "main" entity using standard SQL JOIN. $entityuser = new user(); $entityuseralias = $entityuser->get_table_alias('user'); $this->add_entity($entityuser ->add_join("LEFT JOIN {user} {$entityuseralias} ON {$entityuseralias}.id = {$entitymainalias}.userid") ); // Now we can call our helper methods to add the content we want to include in the report. $this->add_columns(); $this->add_filters(); // Set if report can be downloaded. $this->set_downloadable(true, get_string('pluginname', 'report_configlog')); } /** * Validates access to view this report * * @return bool */ protected function can_view(): bool { return has_capability('moodle/site:config', context_system::instance()); } /** * Adds the columns we want to display in the report * * They are all provided by the entities we previously added in the {@see initialise} method, referencing each by their * unique identifier */ protected function add_columns(): void { $columns = [ 'config_change:timemodified', 'user:fullnamewithlink', 'config_change:plugin', 'config_change:setting', 'config_change:newvalue', 'config_change:oldvalue', ]; $this->add_columns_from_entities($columns); // Default sorting. $this->set_initial_sort_column('config_change:timemodified', SORT_DESC); // Custom callback to show 'CLI or install' in fullname column when there is no user. if ($column = $this->get_column('user:fullnamewithlink')) { $column->add_callback(static function(string $fullname, stdClass $row): string { return $fullname ?: get_string('usernone', 'report_configlog'); }); } } /** * Adds the filters we want to display in the report * * They are all provided by the entities we previously added in the {@see initialise} method, referencing each by their * unique identifier */ protected function add_filters(): void { $filters = [ 'config_change:plugin', 'config_change:setting', 'config_change:value', 'config_change:oldvalue', 'user:fullname', 'config_change:timemodified', ]; $this->add_filters_from_entities($filters); } } classes/privacy/provider.php000064400000002757152266604110012237 0ustar00. /** * Privacy Subsystem implementation for report_configlog. * * @package report_configlog * @copyright 2018 Zig Tan * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace report_configlog\privacy; defined('MOODLE_INTERNAL') || die(); /** * Privacy Subsystem for report_configlog implementing null_provider. * * @copyright 2018 Zig Tan * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class provider implements \core_privacy\local\metadata\null_provider { /** * Get the language string identifier with the component's language * file to explain why this plugin stores no data. * * @return string */ public static function get_reason(): string { return 'privacy:metadata'; } }index.php000064400000003444152266604110006374 0ustar00. /** * Config changes report * * @package report * @subpackage configlog * @copyright 2009 Petr Skoda * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ use core_reportbuilder\system_report_factory; use core_reportbuilder\local\filters\text; use report_configlog\reportbuilder\local\systemreports\config_changes; require(__DIR__.'/../../config.php'); require_once($CFG->libdir.'/adminlib.php'); // Allow searching by setting when providing parameter directly. $search = optional_param('search', '', PARAM_TEXT); admin_externalpage_setup('reportconfiglog', '', ['search' => $search], '', ['pagelayout' => 'report']); echo $OUTPUT->header(); echo $OUTPUT->heading(get_string('configlog', 'report_configlog')); // Create out report instance, setting initial filtering if required. $report = system_report_factory::create(config_changes::class, context_system::instance()); if (!empty($search)) { $report->set_filter_values([ 'config_change:setting_operator' => text::IS_EQUAL_TO, 'config_change:setting_value' => $search, ]); } echo $report->output(); echo $OUTPUT->footer(); tests/behat/view_report.feature000064400000004736152266604110012730 0ustar00@report @report_configlog @core_reportbuilder Feature: In a report, admin can see configuration changes In order see configuration changes As an admin I need to view the configuration changes report and use search to filter the report # Set some config values so the report contains known data. Background: Given I log in as "admin" And I change the window size to "large" And I set the following administration settings values: | Initial number of overall feedback fields | 5 | | Maximum folder download size | 2048 | | Default city | Perth | @javascript Scenario: Display configuration changes report When I navigate to "Reports > Config changes" in site administration Then the following should exist in the "reportbuilder-table" table: | First name | Plugin | Setting | New value | Original value | | Admin User | quiz | initialnumfeedbacks | 5 | 2 | | Admin User | folder | maxsizetodownload | 2048 | 0 | | Admin User | core | defaultcity | Perth | | @javascript Scenario Outline: Search configuration changes report When I navigate to "Reports > Config changes" in site administration And I click on "Filters" "button" And I set the following fields in the "" "core_reportbuilder > Filter" to these values: | operator | Contains | | value | | And I click on "Apply" "button" in the "[data-region='report-filters']" "css_element" And I should see "Filters applied" Then the following should exist in the "reportbuilder-table" table: | Plugin | Setting | New value | | | | | And I should not see "" in the "reportbuilder-table" "table" Examples: | field | search | plugin | setting | value | excluded | | Plugin | folder | folder | maxsizetodownload | 2048 | quiz | | Setting | initialnumfeedbacks | quiz | initialnumfeedbacks | 5 | maxsizetodownload | | Setting | maxsizetodownload | folder | maxsizetodownload | 2048 | initialnumfeedbacks | | New value | Perth | core | defaultcity | Perth | maxsizetodownload | | Full name | Admin User | core | defaultcity | Perth | zzzzzzzzz | settings.php000064400000002120152266604110007113 0ustar00. /** * Report settings * * @package report * @subpackage configlog * @copyright 2009 Petr Skoda * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die; $ADMIN->add('reports', new admin_externalpage('reportconfiglog', get_string('configlog', 'report_configlog'), "$CFG->wwwroot/report/configlog/index.php")); // no report settings $settings = null;