Commit Graph

92 Commits

Author SHA1 Message Date
David Todd 6a398e6041
Add the Chrome WebStore badge that's on the main page 2014-10-20 20:39:04 -05:00
David Todd d269b39832
Remove button color changing code from AJAX request
It's not needed and doesn't really work anyways.
2014-10-20 20:38:15 -05:00
David Todd f72ec8f685
Make generated tokens expire now.
These don't do anything other than slow down the requests by a little bit. They store no information and are not needed.
2014-10-20 20:36:15 -05:00
alopexc0de fb02307b20
Add link chrome extension
I'm also launching the chrome extension today
2014-08-29 20:33:27 -04:00
alopexc0de 6eb32ed84f
Minor mod to API, make chrome extension work with beta
@Doridian recommended being able to change expiring time, so I did that
Chrome extension now shortens links with the beta right in the browser
2014-08-29 17:54:26 -04:00
alopexc0de 26d460b173
Re-add body.copy (for update page) 2014-08-29 15:42:17 -04:00
alopexc0de da6837fdad
Copy of lobli.ico, renamed to favicon.ico 2014-08-29 15:32:01 -04:00
alopexc0de 7972971ee0
Remove placeholder code for resolving, make links resolve, remove token from get on process
Fairly straightforward. Commit 298b2606ea also resolves #1 (http://lob.li/mk6)
The messages are finally where they belong and link resolution for ids and long urls added - I might want to work on lob.li/linkid in the future too
2014-08-29 15:23:09 -04:00
alopexc0de 298b2606ea
Reload page if token invalid
This isn't the most graceful way to do it, but better than nothing I guess.
2014-08-29 14:24:02 -04:00
alopexc0de cb3008536d
Test for valid token.
Whoops. http://lob.li/8pg
While functional in theory, header(location:index.php) will load the index again in the message field with non-functioning javascript
2014-08-29 14:14:49 -04:00
alopexc0de 28e0ce013a
Move token data to token.php
Since token requires db.php, I don't require it again. The token is no longer included in a GET request to process.php, use sessions instead.
2014-08-29 14:11:35 -04:00
alopexc0de f825c6bd29
New token generation and fix output on shorten
This token generation should prevent the same token from being used, also considering using a type of cooldown timer.
Short links were returning as (shortid)$, which didn't work
2014-08-29 14:08:50 -04:00
alopexc0de ea1a3a4c10
Quick and dirty API for the chrome/firefox extension.
Probably buggy, untested.
2014-08-18 20:48:43 -04:00
alopexc0de b40c3206f8
Remove more title stuff 2014-08-18 20:36:37 -04:00
alopexc0de 6c64f12366
Remove the background image that's nolonger used 2014-08-18 20:35:04 -04:00
alopexc0de e0f15f6d51
New design for lobli logo and remove backup copy
This version of the logo was made in a vector program instead of circles inside gimp, looks brighter too
2014-08-16 19:33:55 -04:00
alopexc0de cacd80a024
Remove title grabbing.
This thing is just a big pain and isn't really needed, so I'm removing it.
Really the options for getting the title or even the description involved downloading the whole file.
2014-08-15 19:35:35 -04:00
alopexc0de f5f143d2e6
Attempt begin resolving links and testing code.
This is still incomplete, but should be finished soon
2014-08-15 18:34:46 -04:00
alopexc0de 1846388b01
tell process.php that we want to resolve links, not shorten 2014-08-15 18:33:22 -04:00
alopexc0de 89dda7ae4a
Add lobli links to the linkid field 2014-08-10 21:12:19 -04:00
alopexc0de a2baa09376
Fix the date outputtoday's date 2014-08-10 21:00:38 -04:00
alopexc0de 39baade2e4
Fix check to see if link exists in db or not.
This seemed like the most friendly way to do this since my other option is checking all links:id for the string of the url
2014-08-10 20:37:34 -04:00
alopexc0de 9e1035fde3
Change l59 if to or instead of and, remove echo 2014-08-10 19:54:41 -04:00
alopexc0de 5d41d3adb8
Grab links from list and start redirecting again.
get links:id doesn't work since I moved it into a list.
That break doesn't do anything, removing it.
2014-08-10 18:46:39 -04:00
alopexc0de 41a6684ccc
Add missing parenthesis that I forgot.
Whoops. PHP errors, yay.
2014-08-10 18:44:40 -04:00
alopexc0de 4ad0f8ce74
Change click tracking to sorted set.
Using a sorted set makes it easier to sort from highest to lowest on the stats page.
Minor change how tracking is done on the index and link checking has been updated.
2014-08-10 18:29:17 -04:00
alopexc0de 485f1fa66f
remove diagnostic print_r to test array values.
Checking to see if everything is getting into the array properly in the right place.
2014-08-09 20:32:53 -04:00
alopexc0de 7c71c5744e
Move stat table generation to stats.php.
This page is mostly static and it shouldn't require a call to process just to make a table.
2014-08-09 20:30:10 -04:00
alopexc0de da266cce1a
Change link expire time to future (in secs)
expire() and setex() store as a countdown from now and doesn't persist it between server reboots and repopulation.
This is fixed by setting the keys to expire at a time in the future
2014-08-09 19:35:09 -04:00
alopexc0de 169fe0fc23
remove misplaced bang that prevented stat gathering from working.
Was getting short link error when attempting to view the stats. This was fixed by checking if getstats was set instead of wasn't set
2014-08-09 19:32:45 -04:00
alopexc0de 9cd6c9ca7e
hide #theLoader by default.
This was commented out for testing of the loading transition when the site does something through AJAX
2014-08-09 19:30:41 -04:00
alopexc0de 469f453605
Fix the Include path on Operating Systems that use a case-sensitive FS (*nix)
Yeah, I thought I fixed this a while ago, but apparently not. Fixed now though
2014-08-09 18:26:50 -04:00
alopexc0de 12df81bd3c
Escape class 'res' for the echo statement. 2014-07-25 20:34:51 -04:00
alopexc0de 052a0a751c
Put link data into a list instead of storing seperate values for everything.
This is silly to store everything seperatly when I can just query and get an array for everything that I need.
2014-07-25 17:48:46 -04:00
alopexc0de adfcc57e00
Redis-only version of lob.li - Almost complete.
This version removes all the mysql stuff and uses a redis db for everything.
2014-07-25 17:41:51 -04:00
alopexc0de e52c236e47
Add link age select box.
The vast majority of short links are only used once and forgotten about.
This gives people a choice to have links that expire (default 24 hours after creation).
This is also the first time that we use either coloumn other than the center one.
2014-07-24 21:30:01 -04:00
alopexc0de c1f5a2eee8
Add linkage css and make input box 47px tall instead of % 2014-07-24 21:25:40 -04:00
alopexc0de 09280b93fa
Add rudimentary AJAX call for the stat table.
This might be temporary as I might decide to do the logic for this to happen on this page totally.
2014-07-24 21:23:29 -04:00
alopexc0de 173b977aaf
Fix my stupidity when naming my directories.
My naming convention put caps on everything and I was calling them without such capital letters
Which breaks on pretty much any OS other than Windows...
2014-07-24 20:41:14 -04:00
alopexc0de e068995839
Align the page head to top of navbar 2014-07-22 22:05:35 -04:00
alopexc0de f0f858950d
Move Redis connection to db.php and change shorten icon.
Since I will be using Redis from multiple files, the connection to the server should be in the same file as the other DB connection.
This icon looks a little bit better I think.
2014-07-22 22:02:17 -04:00
alopexc0de 4a66e9aa3b
Change user agent of isonline 'bot' to look more bot-like.
This is purely asthetic. I may implement a robots.txt parser for this in the future if it doesn't spend
    too much time parsing through to follow robots.txt rules. This also isn't technically a crawler
    as it only checks if the remote server is online
2014-07-22 15:54:40 -04:00
alopexc0de 9cabd24d19
Add forgotten semicolon on line 52.
I was wondering why my script had suddenly stopped working and thought it was
    a Redis problem.
Turns out that I was getting PHP parse errors and didn't check the logs
2014-07-22 13:08:15 -04:00
alopexc0de c02e6d6f28
Add Regis caching
This is very basic where I check the Regis table to see if a short link exists
If not, query the mysql server and pull that result into Regis as linkID and link
I might make some modifications to this
2014-07-20 19:42:00 -04:00
alopexc0de c24391db9e
Small CSS tweaks, add more contrast to elements.
Trying to make it look a bit less cluttered and still have high contrast.
This works rather well I think.
And fix the revert mistake I just did when trying to commit this the last time
    I did this... >.>
2014-07-20 14:26:58 -04:00
alopexc0de e6247ad601
Small CSS tweaks, add more contrast to elements.
Trying to make it look a bit less cluttered and still have high contrast.
This works rather well I think.
2014-07-20 14:21:46 -04:00
alopexc0de 285633c34f
Small CSS tweaks, add more contrast to elements.\n\nTrying to make it look a bit less cluttered and still have high contrast. This works rather well I think. 2014-07-20 14:18:02 -04:00
alopexc0de 1a3391e487 Move to simpler color scheme
The original background was a little, "busy". This has been traded in favour
	of a light green background and better matching colors for links & navbar
2014-07-20 00:23:18 -04:00
alopexc0de b98d46c5dd Make the navbar slightly bigger
Shouldn't I have this in a responsive way or something?
2014-07-14 23:30:02 -04:00
alopexc0de 92140f083a Add the Montserrat google cdn font to relevant pages
I think I'm going to require a head file that has all this needed info
2014-07-14 18:37:43 -04:00