Skip to content

Instantly share code, notes, and snippets.

@ozh
Last active December 17, 2015 00:10
Show Gist options
  • Select an option

  • Save ozh/5518761 to your computer and use it in GitHub Desktop.

Select an option

Save ozh/5518761 to your computer and use it in GitHub Desktop.
List of YOURLS "phone home" stuff

List of stuff the "phone home" YOURLS function will report:

Internal: what to store in yourls_options

  • time of last check. Define minimum delay between 2 requests (24 hours if success, 1 hour if failure?)
  • number of previous consecutive failed attempts to join api.yourls.org (monitor performance of the system)
  • return of previous successful requrest to api.yourls.org (nag about new version even if host unreachable)

Server & YOURLS config

  • md5 of YOURLS_SITE . YOURLS_ABSPATH as key (uniquish, can handle localhost & 127.1)
  • YOURLS_SITE to eventually provide fun stats: top level domain names, domain length, share of people using https...
  • number of previous consecutive failed attempts to join api.yourls.org - monitor performance of the system
  • mysql extensions installed: extension_loaded( '*' ) with pdo_mysql, mysqli, mysql
  • YOURLS_DB_DRIVER
  • other PHP extensions (curl)
  • phpversion()
  • $ydb->mysql_version()
  • yourls_get_locale()
  • YOURLS_VERSION
  • number of users (count( $yourls_user_passwords ))
  • location of config.php (in /user or in /includes?)
  • YOURLS_PRIVATE
  • YOURLS_UNIQUE_URLS
  • YOURLS_URL_CONVERT

Plugin stats

  • number of plugins installed
  • number of plugins activated
  • list of plugins and versions? Future feature?

Theme stats

Future feature, same as plugins

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