* A bit of understanding what it does and what you can do with it ;-)
* A bit of understanding what it does and what you can do with it ;-)
Installation
<!-- footer -->
------------
---
* Navigate to the folder `./user/plugins/` inside your YOURLS-install directory
## 🧑💻 Consulting and technical support
* For personal support and queries, please submit a new issue to have it addressed.
* For commercial related questions, please [**contact me**][ivancarlos] for consulting costs.
* Use any of these two ways to install:
| 🩷 Project support |
- **Either** clone this repo using `git`
| :---: |
- **or** create a new folder named ´Upload-and-Shorten´, then download all files from here *into that directory*.
If you found this project helpful, consider [**buying me a coffee**][buymeacoffee]
|Thanks for your support, it is much appreciated!|
* Prepare your configuration:
* If necessary create a directory where your files can be accessed from the webserver (i.e '/full/path/to/httpd/directory/')
* Depending on your webserver´s setup you may have to modify the permissions of that directory:
- Make sure your webserver has read+write permissions for it. Explaining that is beyond the scope of this readme, please refer to the manual of your server, operating system or hosting provider. On a Linux box something like
* Go to the Plugins Administration Page (eg. `http://sho.rt/admin/plugins.php`) and activate the plugin.
* Have fun!
* Consider helping with translations.
Bugs & Issues
-------------
No critical misbehaviour known, most issues are caused by configuration errors.
Beware of scripts and plugins which validate URLs or intercept the data flow. ~~Namely the plugin "Check URL" can interfere with this plugin,~~ (This issue has been fixed for basic setups, see [issue #11](https://github.com/fredl99/YOURLS-Upload-and-Shorten/issues/11).) However, there might still occur interferences with plugins which check target URLs or manipulate the database by themselves. So, when you notice a strange behaviour always think about this and if you report an issue please include a list of installed and activated plugins.
Localization (l10n)
--------------------
This plugin supports **localization** (translations into your language).
**For this to work you need at least YOURLS v1.7 from March 1, 2015**. It will basically work fine with earlier versions, except that translations won't work because of a minor bug in the YOURLS-code. Just upgrade to the latest YOURLS version and it will do.
The default language is English. Translation files for French, German, Spanish and Simplified Chinese are included in the folder `l10n/`. To use this feature you just have to define your locale in `user/config.php` like this:
`define( 'YOURLS_LANG', 'de_DE' );`
(can be found within the standard YOURLS options there)
Looking for translators
-----------------------
If you're willing to provide translations, please [read this](http://blog.yourls.org/2013/02/workshop-how-to-create-your-own-translation-file-for-yourls/). If necessary you can contact me for further instructions. Any help is appreciated, at most by your fellow countrymen!
Donations
---------
There are many ways to integrate this plugin into your daily routines. The more you use it the more you will discover. The more you discover the more you will like it.
If you do, remember someone spends his time for improving it. If you want say thanks for that, just [buy him a coffee](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=H5B9UKVYP88X4). That will certainly motivate him to make further enhancements. Just for You! ...
 and him :)
License
-------
**Free for personal use only.**
If you want to make money with it you have to contact me first.
@@ -673,6 +673,8 @@ function icc_upload_and_shorten_local_file_manager($dir, $url)
}
}
}
}
}
// Recursive directory removal
// Recursive directory removal
functionicc_rrmdir($dir)
functionicc_rrmdir($dir)
{
{
@@ -715,7 +717,6 @@ function icc_upload_and_shorten_local_file_manager($dir, $url)
}
}
}
}
}
}
}
// Check for AWS SDK
// Check for AWS SDK
functionicc_get_aws_client($key,$secret,$region)
functionicc_get_aws_client($key,$secret,$region)
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.