Permalink
Browse files

Fix end of line

  • Loading branch information...
LeoColomb committed Apr 7, 2013
1 parent 37d0d35 commit 3daf6593d89c608a6660a6c0b872eeb2607548ba
Showing with 13,806 additions and 13,804 deletions.
  1. +2 βˆ’0 .gitattributes
  2. +95 βˆ’95 CHANGELOG.md
  3. +26 βˆ’26 LICENSE.md
  4. +15 βˆ’15 README.md
  5. +51 βˆ’51 admin/admin-ajax.php
  6. +294 βˆ’294 admin/index.php
  7. +75 βˆ’75 admin/install.php
  8. +164 βˆ’164 admin/plugins.php
  9. +117 βˆ’117 admin/tools.php
  10. +86 βˆ’86 admin/upgrade.php
  11. +13 βˆ’13 css/cal.css
  12. +113 βˆ’113 css/infos.css
  13. +65 βˆ’65 css/share.css
  14. +330 βˆ’330 css/style.css
  15. +103 βˆ’103 css/tablesorter.css
  16. +925 βˆ’925 includes/class-mysql.php
  17. +182 βˆ’182 includes/functions-api.php
  18. +205 βˆ’205 includes/functions-auth.php
  19. +171 βˆ’171 includes/functions-compat.php
  20. +489 βˆ’489 includes/functions-formatting.php
  21. +851 βˆ’851 includes/functions-html.php
  22. +167 βˆ’167 includes/functions-http.php
  23. +250 βˆ’250 includes/functions-install.php
  24. +779 βˆ’779 includes/functions-kses.php
  25. +1,133 βˆ’1,133 includes/functions-l10n.php
  26. +579 βˆ’579 includes/functions-plugins.php
  27. +296 βˆ’296 includes/functions-upgrade.php
  28. +81 βˆ’81 includes/functions-xml.php
  29. +1,693 βˆ’1,693 includes/functions.php
  30. +177 βˆ’177 includes/load-yourls.php
  31. +77 βˆ’77 includes/pomo/entry.php
  32. +256 βˆ’256 includes/pomo/mo.php
  33. +384 βˆ’384 includes/pomo/po.php
  34. +208 βˆ’208 includes/pomo/streams.php
  35. +275 βˆ’275 includes/pomo/translations.php
  36. +4 βˆ’4 includes/version.php
  37. +157 βˆ’157 js/common.js
  38. +47 βˆ’47 js/infos.js
  39. +202 βˆ’202 js/insert.js
  40. +1 βˆ’1 js/jquery-1.8.2.min.js
  41. +318 βˆ’318 js/jquery.cal.js
  42. +46 βˆ’46 js/jquery.tablesorter.min.js
  43. +11 βˆ’11 js/jquery.zclip.min.js
  44. +57 βˆ’57 js/share.js
  45. +23 βˆ’23 pages/examplepage.php
  46. +830 βˆ’830 readme.html
  47. +12 βˆ’12 sample-public-api.txt
  48. +116 βˆ’116 sample-public-front-page.txt
  49. +46 βˆ’46 sample-remote-api-call.txt
  50. +9 βˆ’9 sample-robots.txt
  51. +85 βˆ’85 user/config-sample.php
  52. +3 βˆ’3 user/plugins/hyphens-in-urls/README.txt
  53. +19 βˆ’19 user/plugins/hyphens-in-urls/plugin.php
  54. +3 βˆ’3 user/plugins/random-bg/README.txt
  55. +27 βˆ’27 user/plugins/random-bg/plugin.php
  56. +3 βˆ’3 user/plugins/sample-page/README.txt
  57. +62 βˆ’62 user/plugins/sample-page/plugin.php
  58. +3 βˆ’3 user/plugins/sample-plugin/README.txt
  59. +61 βˆ’61 user/plugins/sample-plugin/plugin.php
  60. +3 βˆ’3 user/plugins/sample-toolbar/README.txt
  61. +79 βˆ’79 user/plugins/sample-toolbar/css/toolbar.css
  62. +22 βˆ’22 user/plugins/sample-toolbar/js/toolbar.js
  63. +125 βˆ’125 user/plugins/sample-toolbar/plugin.php
  64. +50 βˆ’50 yourls-api.php
  65. +45 βˆ’45 yourls-go.php
  66. +549 βˆ’549 yourls-infos.php
  67. +61 βˆ’61 yourls-loader.php
View
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
View
@@ -1,96 +1,96 @@
YOURLS Changelog
================
This file attempts to list the main changes through all versions of YOURLS. For a much more detailed
list, simply refer to the commit messages: http://code.google.com/p/yourls/source/list
1.0
---
- initial release
1.0.1
-----
- don't remember. Trivial stuff probably.
1.1
---
- don't remember. Some little bugs I guess.
1.2
---
- don't remember. A few tiny stuff for sure.
1.3-RC1
-------
- added bookmarklet and tools page
- improved XSS filter when adding new URL
- code cleanup in admin/index.php to separate code and display
- added favicon
- stricter coding to prevent notices with undefined indexes
- hide PHP notices & SQL errors & warnings, unless YOURLS_DEBUG constant set to true
1.4
---
- added an upgrader from 1.3 to 1.4
- change in logic: now using a global object $ydb for everything related to DB and other globally needed stuff
- change in logic: include "load-yourls.php" instead of "config.php" to start engine
- change in DB schema: now storing URLs with their keyword as used in shorturl, allowing for any keyword length
- change in DB schema: new table for storing various options including next_id, dropping table of the same name
- change in DB schema: new table for storing hits (for stats)
- improved the installer, with .htaccess file creation
- layout tweak: now prettier, isn't it?
- stats! OMG stats!
1.4.1
-----
- fixed base 62 URLs (keywords with MiXeD CaSe)
- new & secure auth method for API calls, with no need to use login & password combo
- allow SSL enforcement for admin pages
- new API method: stats for individual URL.
- prevent internal redirection loops
- filter and search URLs & short URLs by date
1.4.2
-----
- fixed bug in auth function
- added sample public API file
- added check in API requests for WordPress plugin when adding a new short URL
- prettier sample public interface
1.4.3
-----
- fixed bug no-stats-showing-ffs due to inconsistency in DB schema
- improve error reporting with API method url-stat
1.5
---
- added: plugin architecture! OMG plugins!!1!!1!
- added: directory /user, config.php can be moved there
- added: new "instant bookmarklets"
- added: 1 click copy-to-clipboard a la bitly
- change in logic: now all request are handled by PHP and don't rely on .htaccess
- added: saving URL titles
- added: support for prefix-n-shorten: sho.rt/http://example.com/
- added: core plugin to allow hyphens in URLs
- added: core sample plugin to wrap redirected URLs in a social toolbar
- added: core sample plugin to show how to create administration page in plugins
- added: core plugin to display a random pretty background
- changed: layout now using a more consistent palette, see http://yourls.org/palette
- added: anti XSS and anti CSRF measures
- added: interactive map if possible in stat traffic by countries
- fixed: lots of bugs
1.5.1
-----
- added: full jsonp support
- added: ability to use encrypted passwords in the config file
- fixed: support for http://www.sho.rt/bleh and http://sho.rt/bleh
- added: support for any favicon dropped in the /user directory
- updated: Google Visualization API instead of deprecated Google Charts
- fixed: bugs, bugs, bugs
- added: hooks, hooks, hooks
- improved: things, things, things
1.6
---
YOURLS Changelog
================
This file attempts to list the main changes through all versions of YOURLS. For a much more detailed
list, simply refer to the commit messages: http://code.google.com/p/yourls/source/list
1.0
---
- initial release
1.0.1
-----
- don't remember. Trivial stuff probably.
1.1
---
- don't remember. Some little bugs I guess.
1.2
---
- don't remember. A few tiny stuff for sure.
1.3-RC1
-------
- added bookmarklet and tools page
- improved XSS filter when adding new URL
- code cleanup in admin/index.php to separate code and display
- added favicon
- stricter coding to prevent notices with undefined indexes
- hide PHP notices & SQL errors & warnings, unless YOURLS_DEBUG constant set to true
1.4
---
- added an upgrader from 1.3 to 1.4
- change in logic: now using a global object $ydb for everything related to DB and other globally needed stuff
- change in logic: include "load-yourls.php" instead of "config.php" to start engine
- change in DB schema: now storing URLs with their keyword as used in shorturl, allowing for any keyword length
- change in DB schema: new table for storing various options including next_id, dropping table of the same name
- change in DB schema: new table for storing hits (for stats)
- improved the installer, with .htaccess file creation
- layout tweak: now prettier, isn't it?
- stats! OMG stats!
1.4.1
-----
- fixed base 62 URLs (keywords with MiXeD CaSe)
- new & secure auth method for API calls, with no need to use login & password combo
- allow SSL enforcement for admin pages
- new API method: stats for individual URL.
- prevent internal redirection loops
- filter and search URLs & short URLs by date
1.4.2
-----
- fixed bug in auth function
- added sample public API file
- added check in API requests for WordPress plugin when adding a new short URL
- prettier sample public interface
1.4.3
-----
- fixed bug no-stats-showing-ffs due to inconsistency in DB schema
- improve error reporting with API method url-stat
1.5
---
- added: plugin architecture! OMG plugins!!1!!1!
- added: directory /user, config.php can be moved there
- added: new "instant bookmarklets"
- added: 1 click copy-to-clipboard a la bitly
- change in logic: now all request are handled by PHP and don't rely on .htaccess
- added: saving URL titles
- added: support for prefix-n-shorten: sho.rt/http://example.com/
- added: core plugin to allow hyphens in URLs
- added: core sample plugin to wrap redirected URLs in a social toolbar
- added: core sample plugin to show how to create administration page in plugins
- added: core plugin to display a random pretty background
- changed: layout now using a more consistent palette, see http://yourls.org/palette
- added: anti XSS and anti CSRF measures
- added: interactive map if possible in stat traffic by countries
- fixed: lots of bugs
1.5.1
-----
- added: full jsonp support
- added: ability to use encrypted passwords in the config file
- fixed: support for http://www.sho.rt/bleh and http://sho.rt/bleh
- added: support for any favicon dropped in the /user directory
- updated: Google Visualization API instead of deprecated Google Charts
- fixed: bugs, bugs, bugs
- added: hooks, hooks, hooks
- improved: things, things, things
1.6
---
- added: custom API actions
View
@@ -1,26 +1,26 @@
__ ______ _ _ _____ _ _____
\ \ / / __ \| | | | __ \| | / ____|
\ \_/ / | | | | | | |__) | | | (___
\ /| | | | | | | _ /| | \___ \
| | | |__| | |__| | | \ \| |____ ____) |
|_| \____/ \____/|_| \_\______|_____/
YOURLS - Your Own URL Shortener - A URL shortening script
---------------------------------------------------------------
This program is free software. Do whatever the hell you want with it.
This program is distributed in the hope that it will be useful and/or
fun to use. There is absolutely no guarantee of any kind about anything.
For more text, have a look at http://www.gnu.org/licenses/gpl.txt
---------------------------------------------------------------
This software incorporates code stolen from WordPress, as shown by
comments in source where applicable.
---------------------------------------------------------------
By Lester CHAN (initial idea), Ozh RICHARD (development) and contributors.
__ ______ _ _ _____ _ _____
\ \ / / __ \| | | | __ \| | / ____|
\ \_/ / | | | | | | |__) | | | (___
\ /| | | | | | | _ /| | \___ \
| | | |__| | |__| | | \ \| |____ ____) |
|_| \____/ \____/|_| \_\______|_____/
YOURLS - Your Own URL Shortener - A URL shortening script
---------------------------------------------------------------
This program is free software. Do whatever the hell you want with it.
This program is distributed in the hope that it will be useful and/or
fun to use. There is absolutely no guarantee of any kind about anything.
For more text, have a look at http://www.gnu.org/licenses/gpl.txt
---------------------------------------------------------------
This software incorporates code stolen from WordPress, as shown by
comments in source where applicable.
---------------------------------------------------------------
By Lester CHAN (initial idea), Ozh RICHARD (development) and contributors.
View
@@ -1,16 +1,16 @@
![yourls](http://yourls.org/images/yourls-logo.png)
[YOURLS](http://yourls.org)
======
**YOURLS** is a set of PHP script that will allow you to run your own URL shortener. You'll have full control over your data, detailed stats and analytics, plugins, and more. It's free.
Useful links
------------
* [Project home & doc](http://yourls.org)
* [Official blog](http://blog.yourls.org)
* [Wiki documentation](https://github.com/YOURLS/YOURLS/wiki/)
* [Issue tracker](https://github.com/YOURLS/YOURLS/issues)
* [Release archive](https://github.com/YOURLS/YOURLS/tags)
License
-------
![yourls](http://yourls.org/images/yourls-logo.png)
[YOURLS](http://yourls.org)
======
**YOURLS** is a set of PHP script that will allow you to run your own URL shortener. You'll have full control over your data, detailed stats and analytics, plugins, and more. It's free.
Useful links
------------
* [Project home & doc](http://yourls.org)
* [Official blog](http://blog.yourls.org)
* [Wiki documentation](https://github.com/YOURLS/YOURLS/wiki/)
* [Issue tracker](https://github.com/YOURLS/YOURLS/issues)
* [Release archive](https://github.com/YOURLS/YOURLS/tags)
License
-------
Free software. Do whatever the hell you want with it.
View
@@ -1,51 +1,51 @@
<?php
define( 'YOURLS_ADMIN', true );
define( 'YOURLS_AJAX', true );
require_once( dirname( dirname( __FILE__ ) ) .'/includes/load-yourls.php' );
yourls_maybe_require_auth();
// This file will output a JSON string
header( 'Content-type: application/json' );
if( !isset( $_REQUEST['action'] ) )
die();
// Pick action
$action = $_REQUEST['action'];
switch( $action ) {
case 'add':
yourls_verify_nonce( 'add_url', $_REQUEST['nonce'], false, 'omg error' );
$return = yourls_add_new_link( $_REQUEST['url'], $_REQUEST['keyword'] );
echo json_encode($return);
break;
case 'edit_display':
yourls_verify_nonce( 'edit-link_'.$_REQUEST['id'], $_REQUEST['nonce'], false, 'omg error' );
$row = yourls_table_edit_row ( $_REQUEST['keyword'] );
echo json_encode( array('html' => $row) );
break;
case 'edit_save':
yourls_verify_nonce( 'edit-save_'.$_REQUEST['id'], $_REQUEST['nonce'], false, 'omg error' );
$return = yourls_edit_link( $_REQUEST['url'], $_REQUEST['keyword'], $_REQUEST['newkeyword'], $_REQUEST['title'] );
echo json_encode($return);
break;
case 'delete':
yourls_verify_nonce( 'delete-link_'.$_REQUEST['id'], $_REQUEST['nonce'], false, 'omg error' );
$query = yourls_delete_link_by_keyword( $_REQUEST['keyword'] );
echo json_encode(array('success'=>$query));
break;
case 'logout':
// unused for the moment
yourls_logout();
break;
default:
yourls_do_action( 'yourls_ajax_'.$action );
}
die();
<?php
define( 'YOURLS_ADMIN', true );
define( 'YOURLS_AJAX', true );
require_once( dirname( dirname( __FILE__ ) ) .'/includes/load-yourls.php' );
yourls_maybe_require_auth();
// This file will output a JSON string
header( 'Content-type: application/json' );
if( !isset( $_REQUEST['action'] ) )
die();
// Pick action
$action = $_REQUEST['action'];
switch( $action ) {
case 'add':
yourls_verify_nonce( 'add_url', $_REQUEST['nonce'], false, 'omg error' );
$return = yourls_add_new_link( $_REQUEST['url'], $_REQUEST['keyword'] );
echo json_encode($return);
break;
case 'edit_display':
yourls_verify_nonce( 'edit-link_'.$_REQUEST['id'], $_REQUEST['nonce'], false, 'omg error' );
$row = yourls_table_edit_row ( $_REQUEST['keyword'] );
echo json_encode( array('html' => $row) );
break;
case 'edit_save':
yourls_verify_nonce( 'edit-save_'.$_REQUEST['id'], $_REQUEST['nonce'], false, 'omg error' );
$return = yourls_edit_link( $_REQUEST['url'], $_REQUEST['keyword'], $_REQUEST['newkeyword'], $_REQUEST['title'] );
echo json_encode($return);
break;
case 'delete':
yourls_verify_nonce( 'delete-link_'.$_REQUEST['id'], $_REQUEST['nonce'], false, 'omg error' );
$query = yourls_delete_link_by_keyword( $_REQUEST['keyword'] );
echo json_encode(array('success'=>$query));
break;
case 'logout':
// unused for the moment
yourls_logout();
break;
default:
yourls_do_action( 'yourls_ajax_'.$action );
}
die();
Oops, something went wrong.

0 comments on commit 3daf659

Please sign in to comment.