Languages :: PHP :: movie server script |
|||
| By: zdhqz |
Date: 29/09/2008 14:01:59 |
Points: 20 | Status: Open |
|
Index.php -> Categories.php -> catalog.php (dynamic page) -> stream.php (dynamic page) Here is the list of features I need. 1- Script should be fully customizable. e.g. themeable. 2- Catalog.php and stream.php should be build on demand e.g. user choose a category form Categories.php (for example horror videos) script should list only videos with horror tag on catalog page, and user click on horror video to watch stream.php should load that particuler video 3- Stream.php should have full description of the movie also a place for flash or wmp activex. (i need both) 4- stream.php should be fully protected with passwords and none cacheable the user should only watch the video once with a timer on the page after timer reach 0 he should be redirected to catalog and if he want to watch it again the script should subtract points from his profile. 5- User manager, user should be able to join and upload videos to server. There should be points system, when user first join, script should allocate him some points, these points should be displayed in a block on every page. The user would watch videos with these points and the videos should be tagged with points e.g. horrorvideo.wmv has 20 points tag to watch so if user decides to watch it and clicked on the watch button these points should transfer to the user who uploaded this video. 6- user would earn points either if someone has watched their videos or either would buy points from admin also should be able to subscribe to premium groups. In simple the more he uploads videos the more chance people would watch, thus points for him to watch others interesting videos. 7- Admin panel where admin should have full control on script. Making groups granting theme permissions adding or removing users organizing videos and more. it would be an amazing movie server script if someone is interested to write it and release it with gpl license thank you, zdhqz |
|||
| By: VGR | Date: 30/09/2008 19:59:12 | Type : Comment |
|
| sorry, this is not a question 8-) | |||
| By: zdhqz | Date: 01/10/2008 11:30:54 | Type : Comment |
|
| OK let me ask a question now... How to automatically remove user from the list upon his first login?. here is the login script... <? // load settings include_once('settings.php'); // list of users $users = @file(USERS_LIST_FILE); if (!$users) die('Cannot find users list!'); // remove php "die" statement (hackers protection) unset($users[0]); // prepare users list and redirects $LOGIN_INFORMATION = array(); $REDIRECTS = array(); foreach ($users as $user) { $u = explode(',',$user); if (USE_USERNAME) { $LOGIN_INFORMATION[trim($u[0])] = trim($u[1]); $REDIRECTS[trim($u[0])] = isset($u[3]) ? trim($u[3]) : ''; } else { $LOGIN_INFORMATION[] = trim($u[0]); } } // timeout in seconds $timeout = (TIMEOUT_MINUTES == 0 ? 0 : time() + TIMEOUT_MINUTES * 1); // logout? if(isset($_GET['logout'])) { setcookie("verify", '', $timeout, '/'); // clear password; header('Location: ' . LOGOUT_URL); exit(); } if(!function_exists('showLoginPasswordProtect')) { // show login form function showLoginPasswordProtect($error_msg) { include('login_header.php'); include('login_form.php'); include('login_footer.php'); // stop at this point die(); } } // user provided password if (isset($_POST['access_password'])) { $login = isset($_POST['access_login']) ? $_POST['access_login'] : ''; $pass = $_POST['access_password']; if (!USE_USERNAME && !in_array($pass, $LOGIN_INFORMATION) || (USE_USERNAME && ( !array_key_exists($login, $LOGIN_INFORMATION) || $LOGIN_INFORMATION[$login] != $pass ) ) ) { showLoginPasswordProtect("Incorrect password."); } else { // set cookie if password was validated setcookie("verify", md5($login.'%'.$pass), $timeout, '/'); // Some programs (like Form1 Bilder) check $_POST array to see if parameters passed // So need to clear password protector variables unset($_POST['access_login']); unset($_POST['access_password']); unset($_POST['Submit']); // need to be redirected? if (isset($REDIRECTS[$login]) && !empty($REDIRECTS[$login])) { header('Location: ' . ((REDIRECT_PREFIX != '') && (strpos($REDIRECTS[$login], 'http') !== false) ? '' : REDIRECT_PREFIX) . $REDIRECTS[$login]); exit(); } } } else { // check if password cookie is set if (!isset($_COOKIE['verify'])) { showLoginPasswordProtect(""); } // check if cookie is good $found = false; foreach($LOGIN_INFORMATION as $key=>$val) { $lp = (USE_USERNAME ? $key : '') .'%'.$val; if ($_COOKIE['verify'] == md5($lp)) { $found = true; // prolong timeout if (TIMEOUT_CHECK_ACTIVITY) { setcookie("verify", md5($lp), $timeout, '/'); } break; } } if (!$found) { showLoginPasswordProtect(""); } } ?> and here is the user list aka user.php <? die(); ?> // these user are able to login on protected pages user1,pass1 user2,pass2 |
|||
|
Do register to be able to answer |
|||
| Add This Article To: | |||
| |
|
|
|
| |
|
|
|








