7 | 8 | 9 | 10 |
├── .gitignore ├── CHANGELOG.md ├── LICENSE.md ├── README.md ├── footer.php ├── header.php ├── index.php ├── public ├── config-sample.php ├── functions.php ├── images │ ├── app-icons │ │ ├── android-chrome-144x144.png │ │ ├── android-chrome-192x192.png │ │ ├── android-chrome-36x36.png │ │ ├── android-chrome-48x48.png │ │ ├── android-chrome-72x72.png │ │ ├── android-chrome-96x96.png │ │ ├── apple-touch-icon-114x114.png │ │ ├── apple-touch-icon-120x120.png │ │ ├── apple-touch-icon-144x144.png │ │ ├── apple-touch-icon-152x152.png │ │ ├── apple-touch-icon-180x180.png │ │ ├── apple-touch-icon-57x57.png │ │ ├── apple-touch-icon-60x60.png │ │ ├── apple-touch-icon-72x72.png │ │ ├── apple-touch-icon-76x76.png │ │ ├── apple-touch-icon-precomposed.png │ │ ├── apple-touch-icon.png │ │ ├── browserconfig.xml │ │ ├── favicon-16x16.png │ │ ├── favicon-32x32.png │ │ ├── favicon-96x96.png │ │ ├── favicon.ico │ │ ├── manifest.json │ │ ├── mstile-144x144.png │ │ ├── mstile-150x150.png │ │ ├── mstile-310x150.png │ │ ├── mstile-310x310.png │ │ └── mstile-70x70.png │ ├── appdotnet.svg │ ├── clippy.svg │ ├── facebook.svg │ ├── github.svg │ ├── googleplus.svg │ ├── linkedin.svg │ ├── logo.sketch │ ├── logo.svg │ ├── move.svg │ ├── tumblr.svg │ ├── twitter.svg │ └── vk.svg ├── js │ ├── app.js │ └── clipboard.min.js ├── languages │ ├── isq_translation-de_DE.mo │ ├── isq_translation-de_DE.po │ ├── isq_translation-es_ES.mo │ ├── isq_translation-es_ES.po │ ├── isq_translation-pl_PL.mo │ ├── isq_translation-ru_RU.mo │ ├── isq_translation-ru_RU.po │ ├── isq_translation-source.pot │ ├── isq_translation-zh_CN.mo │ └── isq_translation-zh_CN.po ├── phpqrcode │ ├── qrarea.php │ ├── qrbitstream.php │ ├── qrcanvas.php │ ├── qrconfig.php │ ├── qrconst.php │ ├── qrencode.php │ ├── qrimage.php │ ├── qrinput.php │ ├── qrlib.php │ ├── qrmask.php │ ├── qrrscode.php │ ├── qrspec.php │ ├── qrsplit.php │ ├── qrsvg.php │ └── qrtools.php └── style.css └── result.php /.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore everything 2 | /* 3 | /*/ 4 | 5 | # Except Infinity Squared 6 | !public/ 7 | !index.php 8 | !result.php 9 | !header.php 10 | !footer.php 11 | !.gitignore 12 | !README.md 13 | !LICENSE.md 14 | !CHANGELOG.md 15 | 16 | # But specifically ignore these things 17 | public/config.php 18 | public/.DS_Store 19 | public/custom.css 20 | public/phpqrcode/cache/* 21 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | Infinity Squared changelog 2 | ========================== 3 | 4 | 2.0 (March 2015) 5 | ---------------- 6 | * New, more spaced out design. 7 | * SVG based Retina graphics, based on Font Awesome. 8 | * Custom social sharing buttons. 9 | * Nicer, larger font. 10 | * Mobile first design. 11 | * Improved error page. Now it has an actual footer, and the errors can be more easily displayed using the `display_error()` function. 12 | * Decent antispam system. If the user is logged in, antispam protection is ommited. If not, reCAPTCHA keys can be supplied for Google's new tick-CAPTCHA to be used. If both of those are failed, basic fill-box protection is used. 13 | * Shunned jQuery. 14 | * Shunned the dependency on the soon-to-be deprecated Google Charts API, in favour of PHP QR Code. 15 | * Using a different ZeroClipboard script and updating it's settings to more reliably find copy material. 16 | * Dependency system for scripts, so scripts like ZeroClipboard are not loaded where they're not needed, such as on the index page. Dependencies are added to the `dependencies[]` array, and then if the dependency is in the array during loading, the script is loaded. 17 | * Updated POT. 18 | * Corrected all of the settings code in `index.php` and `results.php`. It should now more reliably detect whether settings are enabled or not. 19 | 20 | 1.6 (January 2014) 21 | ------------------ 22 | * reCAPTCHA support. 23 | * Single new bookmarklet. 24 | * Custom CSS styling which will not be overwritten on upgrade. 25 | 26 | 1.5 (August 2013) 27 | ----------------- 28 | Big changes: 29 | * Internationalisation! See Wiki for instructions on how to use Infinity Squared in your language and translate it for other people to use. 30 | * A proper CSS mobile interface. When I tried to add internationalisation, it quickly became apparent that having two code bases was stupid. 31 | 32 | Bug fixes: 33 | * HTML5 doctype 34 | * Upgraded to qTip2 35 | * Including jQuery and qTip from CDN 36 | * No longer loading G+ code if it's not enabled 37 | * Parallel loading of scripts thanks to Chrome's audits 38 | * Rearranged the CSS so that it's more readable 39 | 40 | Many thanks to [Ozh](http://ozh.org) for help with internationalisation 41 | 42 | 1.4 (February 2013) 43 | ------------------- 44 | * Bookmarklets updated to the code relevant to YOURLS 1.6 45 | * Added CSS animation to the main menu 46 | * Updated jQuery to 1.9.1 (included with YOURLS 1.6) 47 | * Updated qTip² and Formalize.me so they're compatible with the new version of jQuery 48 | * Added a few more comments to the code so it's easier to modify it 49 | * Improved the readability of the documentation by moving over to Markdown 50 | * Usual assortment of bug fixed, cleaned up code etc. 51 | 52 | 1.3 (August 2012) 53 | ----------------- 54 | * Added a mobile version of the theme which can be disabled in the config file 55 | * Discreet gradient in the menu 56 | * New Google+ sharer 57 | * Bookmarklet code updated with code with YOURLS 1.5 58 | * Usual assortment of bug fixes, cleaned up code etc. 59 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | Infinity Squared licensing 2 | ========================== 3 | 4 | This program is distributed under the terms of the MIT license, with absolutely 5 | no guarantee as to whether it works or not. 6 | 7 | Wherever third party code has been used, it will also have been attributed for 8 | clarity. 9 | 10 | The MIT License (MIT) 11 | --------------------- 12 | 13 | Copyright (c) 2015 by the contributors 14 | 15 | Permission is hereby granted, free of charge, to any person obtaining a copy 16 | of this software and associated documentation files (the "Software"), to deal 17 | in the Software without restriction, including without limitation the rights 18 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 19 | copies of the Software, and to permit persons to whom the Software is 20 | furnished to do so, subject to the following conditions: 21 | 22 | The above copyright notice and this permission notice shall be included in all 23 | copies or substantial portions of the Software. 24 | 25 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 26 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 27 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 28 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 29 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 30 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 31 | SOFTWARE. 32 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | This project is no longer supported 2 | =================================== 3 | 4 | Thank you for your support over the years, but as of 10/07/21 this project is no longer supported. It still works perfectly fine, so feel free to download it and use it, but it will no longer receive any updates (and it hasn't done in years anyway!). If anybody would like to fork the repo and continue the project, feel free to do so. 5 | 6 | --- 7 | 8 | Infinity Squared 9 | ================ 10 | 11 | [Download](https://github.com/tomslominski/infinity-squared/releases) 12 | 13 | A beautiful public page theme for YOURLS, carefully crafted by [Tom Slominski](https://slomin.ski/). It can be used to give the public access to your short domain, not just registered users. 14 | 15 |  16 | ###### Front page of Infinity Squared 2.0 17 | 18 | #### **[See more screenshots](http://imgur.com/a/f4g0x)** 19 | 20 | Features 21 | -------- 22 | * A clear design, with a responsive design which looks great across all screen sizes and resolutions. 23 | * Antispam protection: logged in users can shorten freely, otherwise reCAPTCHA keys can be provided or basic antispam protection will be provided. 24 | * Social sharing buttons for Facebook, Twitter, Google+, LinkedIn, Tumblr and App.net. 25 | * User configurable settings which are not overwritten on upgrade. 26 | * Translation ready (Russian and Polish are included). 27 | * Bookmarklets, so that links can be shortened quickly from the bookmarks bar. 28 | 29 | Installation 30 | ------------ 31 | 1. Download the [latest release](https://github.com/tomslominski/infinity-squared/releases/latest) from GitHub and enter the folder which houses `index.php`. 32 | 2. Upload all of the files into the directory where you've installed YOURLS. It doesn't have any additional requirements. If you can run YOURLS, you can run ∞²! Some of the files might collide with the files YOURLS also provides, like `README.md`. You can choose to replace them or not, it doesn't matter. 33 | 3. Rename `public/config-sample.php` to `public/config.php` and make ∞² suit you. 34 | 35 | Upgrade 36 | ------- 37 | 1. Download the [latest release](https://github.com/tomslominski/infinity-squared/releases/latest) from GitHub and enter the folder which houses `index.php`. 38 | 2. Remember to do a backup before you make any changes on your server. 39 | 3. Replace all of the files from the downloaded release with the release on your server. **Remember that if you've made any changes to the core theme files, they will be overwritten, so be careful!** A `config.php` is not provided with the release, so you don't need to worry about loosing your settings. 40 | 4. Copy over any new settings from `config-sample.php` into your own `config.php`. 41 | 42 | Customisation 43 | ------------- 44 | You can customise Infinity Squared by editing the `public/config.php` file. The file explains what each of the settings does and how to modify them. 45 | 46 | You can also create a `public/custom.css` style and change the appropriate setting in `config.php` to enable you to add your own CSS which will not be overwritten on upgrade. 47 | 48 | Translating 49 | ----------- 50 | By default, Infinity Squared comes with Polish, Russian and Spanish translations, as well as it's default English language. To enable any of those languages, you need to edit YOURLS' `config.php`, as described [here](https://github.com/YOURLS/YOURLS/wiki/YOURLS-in-your-language#install-yourls-in-your-language). 51 | 52 | If you want to translate Infinity Squared into your own language, [this blog post](http://blog.yourls.org/2013/02/workshop-how-to-create-your-own-translation-file-for-yourls/) from YOURLS describes how to do it. You can find the latest .pot file in `public/languages/isq_translation-source.pot`. Please follow the contributing guidelines below to add your translation to Infinity Squared. 53 | 54 | Contributing 55 | ------------ 56 | If you have any issues with the way Infinity Squared works, you want to suggest a feature or you believe you have found a bug, please submit an issue using GitHub's [issue system](https://github.com/tomslominski/infinity-squared/issues). However, please remember that the developers work in this project in their spare time. 57 | 58 | If you'd like to contribute some code to Infinity Squared, please open an issue first to discuss whether your patch will be accepted. If it has been agreed that your patch will be accepted, please fork the repository and submit a pull request when ready. 59 | 60 | Licensing 61 | --------- 62 | Just like YOURLS, Infinity Squared is licensed under the MIT license. Basically, you can do whatever you want with it as long as you give attribution wherever you use it. There is no guarantee that this software will work. 63 | 64 | You can find the full license in the root directory of Infinity Squared, under LICENSE.md. 65 | 66 | Clipboard.js is also licensed under the MIT license. 67 | 68 | Donations 69 | --------- 70 | [](https://www.paypal.me/tomslominski) 71 | 72 | Even though Infinity Squared is free, it takes time to build, so I'm more than happy to accept donations at the above link. Thanks! 73 | -------------------------------------------------------------------------------- /footer.php: -------------------------------------------------------------------------------- 1 | 2 |
11 | 12 |