View cookie.txt
View Init.php
<?php
/**
* YOURLS actions upon instantiating
*/
namespace YOURLS\Config;
class Init {
View funcdefined.php
<?php
$reflFunc = new ReflectionFunction('function_name');
print $reflFunc->getFileName() . ':' . $reflFunc->getStartLine();
// eg /home/you/includes/file.php:60
View plugin.php
<?php
/*
Plugin Name: RESET URLS
Plugin URI: http://yourls.org/
Description: OMG
Version: 1.0
Author: Ozh
Author URI: http://ozh.org/
*/
View yourls-propel.php
<?php
/* For the record: I played with Propel2 ORM and checked how I could use it with YOURLS.
*
* Setting up isn't complicated:
* - install Propel with composer
* - `vendor/bin/propel init` and answer quetions to generate the schema.xml, config file and mapped classes,
* based on an existing DB
*
* Using isn't very complicated, but there are quite many functions to tame.
View enable-query-log.php
<?php
// Needs YOURLS 1.7.3+ with PDO/AuraSQL
$sql = "SET GLOBAL log_output = 'FILE';";
$ydb->exec($sql);
$sql = "SET GLOBAL general_log_file = '/path/to/logfile.log';";
$ydb->exec($sql);
$sql = "SET GLOBAL general_log = 'ON';";
$ydb->exec($sql);
View aura-fetch.php
<?php
/**
* Table is :
* +-----------+-------------+--------------+
* | option_id | option_name | option_value |
* +-----------+-------------+--------------+
* | 1 | version | 1.7.2 |
* | 2 | db_version | 1337 |
* | 3 | next_id | 69 |
* +-----------+-------------+--------------+
View allplugins.php
<?php
define('PLUGIN_DIR', str_replace('\\', '/', __DIR__.'/plugins'));
require __DIR__ . '/simplehtmldom/simple_html_dom.php';
/**
* Mirror plugins maintainted via Git on Github or Bitbuckets
*/
$html = file_get_html('https://github.com/YOURLS/YOURLS/wiki/Plugin-List');
foreach($html->find('h4') as $link) {
View Facebook-xoxo-Congrats.md

Hearts & kisses :

  • xo
  • xoxo
  • xoxoxo
  • Besos y abrazos
  • bisou
  • bisous
  • baci
  • 꽁냥꽁냥
View plugin.php
<?php
/*
Plugin Name: Keep Query String
Description: Adds short URL query string, if any, to the long URL
Version: 0.1
Author: Ozh
*/
yourls_add_filter('redirect_location', 'ozh_kqs');