Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added option to disable cheat guard #58

Closed
wants to merge 6 commits into from
Closed

Conversation

Canx
Copy link
Contributor

@Canx Canx commented Feb 19, 2017

Fixes #57

// Check if the user can capture this event, anti cheater method.
if (!$this->can_capture_event($event)) {
return;
if (get_config('enablecheatguard')) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this working? This looks like it would check for a site-wide setting rather than the manager's instance setting. I think this should be using $this->get_config('enablecheatguard').

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<XMLDB PATH="blocks/xp/db" VERSION="20160224" COMMENT="XMLDB file for Moodle blocks/xp"
<XMLDB PATH="blocks/xp/db" VERSION="20170214" COMMENT="XMLDB file for Moodle blocks/xp"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you used the XMLDB Editor tool under Site administration > Development. The latter takes care of maintaining that XML file, it also providers the PHP upgrade code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I wish I had known before... I could not agree more with the XMDLB Editor page:

"It makes the editing of tables/fields/keys/indexes almost a trivial task, allowing developers to spend the time coding and improving things instead of fighting with XML files and the errors caused by manual editing (of course, developers are free to use such extra time as desired - beers, dance, books, music...) ;-)"

@FMCorz
Copy link
Owner

FMCorz commented Feb 20, 2017

Thanks for your pull request :). That would also be nice if you could merge your commits, if not I'll do it myself.

@Canx
Copy link
Contributor Author

Canx commented Feb 20, 2017

What you mean by merging it myself? Giving me access to the repo? Are you sure? :)

@FMCorz
Copy link
Owner

FMCorz commented Feb 20, 2017

Heh, I meant rebase. Don't worry, I'll get it sorted.

Hopefully I'll merge this soon. I'd just like to test it first.

Thanks!

@TheWildHorse
Copy link

TheWildHorse commented Mar 26, 2017

I just re-implemented this myself, before I realized there was already a pull request for it. 🤦‍♂️

Anyways, when will this get merged? It is a feature that we could really use. Thanks!

@FMCorz
Copy link
Owner

FMCorz commented Mar 29, 2017

This has been manually merged. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants