<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
formula21 / yourls-qr-thumbnail-plugin-with-preview-redirect example snippets
# Defining the constant to disable QR feature
define('F21_QR_PLUGIN', true); // true -> enabled, false -> disabled (default).
# Defining the constant to disable thumbnail feature.
define('F21_THUMB_PLUGIN', true); // true -> enabled, false -> disabled (default).
# Defining the constant to enable preview before redirect
define('F21_PREVIEW_REDIRECT', true); // false -> disabled (default), true -> enabled.
# Modifying the wait time (0) means disabled, i.e. the user needs to click to redirect same as adding ~
define('F21_PREVIEW_TIME', 12); // Value is an integer in seconds, 0 -> disabled. By default it is 0 seconds, so disabled.
# Defining the API Key.
define('F21_API_KEY', 'xxxxxxxxxxxxxxxxxxxxx');
# Do we add the referrer header
# By default NO (by false)
define('F21_API_REF', true);
/* Code Before */
// Past this point this is a request the loader could not understand : not a valid shorturl, not a bookmarklet
--> yourls_do_action( 'redirect_keyword_not_found', $keyword );
--> yourls_do_action( 'loader_failed', $request );
/* Code After */
/** @ yourls_loader.php nearly end of file **/
yourls_do_action('loader_failed', $request);
yourls_do_action('redirect_keyword_not_found', $keyword);