diff --git a/.htaccess b/.htaccess new file mode 100644 index 00000000..952ded2a --- /dev/null +++ b/.htaccess @@ -0,0 +1,12 @@ +Options +FollowSymLinks +RewriteEngine on +RewriteBase / +RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] +RewriteRule ^(.*)$ http://%1/$1 [R=301,L] + +RewriteCond %{REQUEST_URI} !(/$|\.) +RewriteRule (.*) %{REQUEST_URI}/ [R=301,L] + +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule /(.*)$ /$1 [L] \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index 670e71a2..00000000 --- a/README.md +++ /dev/null @@ -1,19 +0,0 @@ -Zoff -==== - -The shared youtube radio - -## About the specific files - -### change.php -Does all the serverside handling, updating lists, voting, serving the list, adding songs etc. - -### Everything else -Is pretty much self explanatory. :D -The important files are: - * youtube.js - * list.js - * search.js - * change.php - * index.php - diff --git a/change.php b/change.php index 9ea81167..b9dd4856 100644 --- a/change.php +++ b/change.php @@ -75,7 +75,8 @@ else if(isset($_GET['vote'])){ //add vote unset($data[3][$i]); unset($data[0][$i]); unset($data[2][$i]); - $underVote = array_search($votes-1, $data[2]); + $underVote = array_search($votes-1, $data[2]); #nenennenenen feiiiiiiiiiiiiiiiiil + if($underVote == 0)$underVote=1; else if($underVote == false)$underVote=count($data[2]); array_splice($data[3], $underVote, 0, array($name)); diff --git a/channel.php b/channel.php deleted file mode 100644 index 64afe2d7..00000000 --- a/channel.php +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file diff --git a/index.php b/index.php index 50661cb6..e60b78ce 100644 --- a/index.php +++ b/index.php @@ -9,12 +9,13 @@