Commit graph

177 commits

Author SHA1 Message Date
calzoneman 3a7acd0526 Implement new session system
I replaced the old login system with a more secure one.
Instead of storing cookies containing the username and plaintext password, the password
is submitted once to obtain a session hash, which is valid for a given length of time.
Registering and logging in is now done via an iframe, which prevents custom javascript from having access to the password field.
Site admins need to run the following SQL before updating, or else all of your logins/registrations will fail:

ALTER TABLE `registrations` ADD `session_hash` VARCHAR( 64 ) NOT NULL ,
ADD `expire` BIGINT NOT NULL
2013-04-25 22:50:12 -05:00
calzoneman db2e5e20b9 Add small copyright notice to bottom of index.html 2013-04-25 20:01:34 -05:00
calzoneman ea4ed864c8 Fix content-length bug for api.js
Well, it finally happened.  I made an assumption about text and it bit me in the butt.  Protip: not everything is 1 byte per character!
2013-04-25 16:36:56 -05:00
calzoneman a88088f2d6 Continue working on API 2013-04-25 16:16:53 -05:00
calzoneman 3c2b5fcb2c Start working on darm theme 2013-04-25 11:34:00 -05:00
calzoneman 9786d7eff5 start working on API 2013-04-25 11:00:06 -05:00
calzoneman 3cefdb81bc Fix last commit, change 'l' to '1' 2013-04-24 15:50:43 -05:00
calzoneman 20bcd95e9e Change leniency of queue antiflood 2013-04-24 15:48:29 -05:00
calzoneman 442c75c507 Partial redesign of default layout 2013-04-24 15:47:52 -05:00
calzoneman 623aec89b1 Add playlist length indicator (Issue #51)
It's not exactly pretty, but I'm hoping to have someone help me pretty up the interface this summer
2013-04-24 14:28:20 -05:00
calzoneman 57475d5d3d Show name of who added something (Issue #50)
Hovering over a queue item will now show the name of the person who added it.
If it was added by a guest, or if it was added while the server was running a previous version, it will show up as "unknown".
2013-04-24 13:10:08 -05:00
calzoneman 19d778e8ba Throttle video queues 2013-04-24 12:45:17 -05:00
Calvin Montgomery dc5fa70017 Improve buffer compensation 2013-04-24 08:04:26 +04:00
Calvin Montgomery 35fb504847 Fix channel update function, start working on compensative synch 2013-04-24 06:33:53 +04:00
calzoneman 0d7da77715 Add version update script 2013-04-23 16:16:43 -05:00
calzoneman 6b5466f5ae Add chat antiflood option 2013-04-23 14:17:42 -05:00
calzoneman 3f5ec309e9 Tweak ACL behaviour
ACL is only updated when you first join, when someone's rank changes, or if
you click the Channel Ranks tab
2013-04-23 13:47:09 -05:00
calzoneman ce84b30354 Tweak voteskip (Issue #49) 2013-04-23 10:23:32 -05:00
calzoneman 27c494e450 Implement shuffle/clear (Issue #48) 2013-04-22 15:37:42 -05:00
calzoneman ce34a3efe0 Tweak express instance to support /r/channel form
This means it is no longer necessary to perform a .htaccess hack if you want nice URLs.
By default, hostname:port/r/channel acts the same as hostname:port/index.html?channel=channel.
2013-04-22 14:42:39 -05:00
Calvin Montgomery bb019deeb7 Implement ACL for channel owners (Issue #42) 2013-04-22 22:28:40 +04:00
Calvin Montgomery d7de1fc69e Fix singular words (Issue #46) 2013-04-22 21:39:23 +04:00
calzoneman 7b6bba3697 Fix version number 2013-04-20 20:21:03 -05:00
calzoneman 40ad039a06 Add configurable voteskip ratio, show # voteskips to mods 2013-04-20 20:17:38 -05:00
calzoneman 6e6f6217b0 Document /afk in help.html 2013-04-19 14:58:37 -05:00
calzoneman 05299aabf3 Fix data.meta undefined error 2013-04-19 14:56:00 -05:00
calzoneman 3c4d7073a5 Implement AFK functionality [Issue #37] 2013-04-19 14:50:08 -05:00
calzoneman fb19822eca Beginning to think I should test this locally before I push 2013-04-19 14:24:33 -05:00
calzoneman abe6dbe225 Fix syntax error in previous commit 2013-04-19 14:23:32 -05:00
calzoneman a36d0d022e Support URLs of the form /r/channel for sites with a RewriteRule 2013-04-19 14:21:51 -05:00
calzoneman 9e8ca1ad3a Add ids to various div[class=row] elements 2013-04-19 14:04:51 -05:00
calzoneman eede0b9135 Auto update video width to match responsive layout
This fixes Issue #40
I also fixed the YouTube loader to remove the frameborder
2013-04-19 14:00:10 -05:00
calzoneman f7ed2adb73 Fix Issue #35 2013-04-18 15:36:52 -05:00
calzoneman 5350fa2e93 Add poll editor
Implements the suggestion from Issue #34
2013-04-18 11:42:07 -05:00
calzoneman 9338905519 Minor fix- greentext and escaping youtube queries 2013-04-17 23:24:37 -05:00
calzoneman e5b61ef91c Add button to get playlist URLs 2013-04-17 14:05:45 -05:00
calzoneman a93e7fe3c2 Switch from connect to express 2013-04-17 13:42:29 -05:00
calzoneman 8a8838a58d Registered users now have rank 1, guests' names are grey
Any new registrations will set global_rank=1 in the database
If you wish to upgrade, run "UPDATE `registrations` SET `global_rank`=1 WHERE `global_rank`=0" on your MySQL database
2013-04-17 13:29:52 -05:00
calzoneman e9d3fa83e4 Fix userlist (Issue #31) 2013-04-16 17:23:35 -05:00
calzoneman 4c58506575 Update help page with channel options/chat filters 2013-04-16 14:22:33 -05:00
calzoneman 3cb43717c1 Update help page 2013-04-16 14:06:42 -05:00
calzoneman 1ee3c06213 Implement custom JS
As referenced in Issue #28
2013-04-16 11:11:10 -05:00
calzoneman 78ecc042d6 Allow custom regex flags
Fixes Issue #29
For example, match "word" without case sensitivity, match globally:
word/ig
If you want to match a literal slash, escape it with a backslash: \/
2013-04-16 11:02:00 -05:00
calzoneman 6ae16d5671 Fix "end poll" button for leaders
Fixes Issue #30
2013-04-16 10:43:53 -05:00
calzoneman 7b57e411bb Merge branch 'master' of https://github.com/calzoneman/sync 2013-04-15 20:29:07 -05:00
calzoneman 6807d0b686 Move chat callback to addChatMessage 2013-04-15 20:28:01 -05:00
calzoneman e8dfb616ea Add package.json 2013-04-14 18:16:48 -05:00
calzoneman 4e2e349196 Tweaks to Leaders, add kick messages 2013-04-14 12:38:00 -05:00
calzoneman 78c7a4d77a Fix Issue#27 2013-04-14 12:22:09 -05:00
calzoneman cb9624e523 Scroll playlist to current video 2013-04-13 12:14:44 -05:00