opentape / opentape

a free way to make and host your own web mixtape

This URL has Read+Write access

commit  43ac38f26d1efe514b0a3f3815cd7b5aafcea766
tree    39c7886dfbec9eb3afa0bc1e378a80af993095f0
parent  285d53a1ba56c47f845d991b5e8508a6ab7e4d43
opentape / index.php
100755 26 lines (18 sloc) 0.821 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
 
// Welcome to Opentape!
// This file is kept intentionally simple. If you are seeing it in your web browser, you probably do not have PHP installed :(
 
set_include_path(get_include_path() . PATH_SEPARATOR . "./code/");
 
// check if critical directories are writeable
if ( !is_writeable('settings') || !is_writeable('songs') ) {
include ("code/warning.php");
 
// Current version designed for PHP5+, though we may update to support 4.X.X
} elseif (phpversion() < '5.0.0') {
include ("code/warning.php");
 
// If no password is set, show password creation screen
} elseif ( file_exists ('settings/.opentape_password.php') === false || filesize ('settings/.opentape_password.php') == 0) {
include ("code/welcome.php");
 
// otherwise, all is well!
} else {
include("code/mixtape.php");
 
}
 
?>