Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 21 additions & 0 deletions New-V2/50x.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<title>Error</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head>
<body>
<h1>An error occurred.</h1>
<p>Sorry, the page you are looking for is currently unavailable.<br/>
Please try again later.</p>
<p>If you are the system administrator of this resource then you should check
the <a href="http://nginx.org/r/error_log">error log</a> for details.</p>
<p><em>Faithfully yours, nginx.</em></p>
</body>
</html>
24 changes: 24 additions & 0 deletions New-V2/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
The MIT License (MIT)

Copyright (c) 2016-2018 Aysad Kozanoglu

repect the coder and you can do anything with the code.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

60 changes: 60 additions & 0 deletions New-V2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# HLSSERVER Live streamig Panel
## Features:
- Maas start and stop trancode Streaming
- Streaming and restreaming (authentication, m3u8)
- Manage users (overview, add, edit, delete, enable, disable)
- Manage categories (overview, add, edit, delete)
- Manage streams (overview, add, edit, delete,start,stop)
- Manage settings (configuration)
- Autorestart (cron_check_start_stream.sh need to set manual)
- Last IP connected
- play stream
- Playlist import
- Limit streams on users
- IP Block
- predefined transcode profiles

## Security fixes:
- playlist link parameter for password md5 encrypted
- form dashboard download playlist for user seperatly with own usename as filename - password crypted
- playlist content links password crypted

## defaults
- Default login: user: hlsserver.com / pass: admin
- Add user
- Add stream and use defined transcode profile 1 called **Default 1**
- You can use it also in proxy mode, but that depends on how you want to use it.
- The most stable way is using transcode profile: **Default 1** without proxy mode ticket

##changes
playlist link to download m3u or e2 files changed to

changed with rewrite in nginx
http://ipadress:8000/plist/<username>/<md5pass>/m3u

live stream link changed to
http://ipadress:10101/live/<username>/<md5pass>/stream

#cron
*/5 * * * * php /usr/local/nginx/html/streaming/cron_check_start_stream.sh

#functions.php
a lot of things changed

#playlists
only m3u8 and e2

## to do
- change the ip of the server, path of ffmpeg and ffprobe above panel men� > settings
- install installer/install-hlsserver.sh
- cron_check_start_stream.sh
- mysqldump restore
- update admins set password="MD5hash" where username="admin";
- nginx.conf
- set chmod 777 for cache and hl
- edit config.php to change the webpath
- download https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz
- panel settings > web port and server ip


Aysad Kozanoglu
27 changes: 27 additions & 0 deletions New-V2/activities.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
include('config.php');
$message = [];
if(isset($_GET['delete_all'])) {
$del_activities = Activity::all();
foreach($del_activities as $del_activity) {
$del_activity->delete();
}
$message['type'] = "success";
$message['message'] = "Old activities deleted";
}
if(isset($_GET['delete'])) {
$de_activity= Activity::find($_GET['delete']);
$de_activity->delete();
$mssage['type'] = "success";
$message['message'] = "Activity deleted";
}
//$activity = Activity::where('date_end','=', '0000-00-00 00:00:00')->get();
$activity = Activity::take(100)->get();

//die(var_dump($activity));

echo $template->view()->make('activities')
->with('activities', $activity)
->with('message', $message)
->render();
?>
24 changes: 24 additions & 0 deletions New-V2/admins.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
/**
* Created by Tyfix 2015
*/
include('config.php');
logincheck();
$message = [];

if(isset($_GET['delete'])) {
if($_GET['delete'] == 1) {
$message['type'] = "error";
$message['message'] = "You cannot remove the main admin account";
} else {
$admin = Admin::find($_GET['delete']);
$admin->delete();

$message['type'] = "success";
$message['message'] = "Admin deleted";
}
}

$admins = Admin::all();

echo $template->view()->make('admins')->with('admins', $admins)->with('message', $message)->render();
19 changes: 19 additions & 0 deletions New-V2/categories.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php
/**
* Created by Tyfix 2015
*/
include('config.php');
logincheck();
$message = [];

if(isset($_GET['delete'])) {
$category = Category::find($_GET['delete']);
$category->delete();

$message['type'] = "success";
$message['message'] = "Category deleted";
}

$categories = Category::all();

echo $template->view()->make('categories')->with('categories', $categories)->with('message', $message)->render();
14 changes: 14 additions & 0 deletions New-V2/clientsgen.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
include('config.php');
logincheck();

$message = [];
$title = "Client";
$user = User::find($_GET['uid']);
$setting = Setting::first();

echo $template->view()->make('clientsgen')
->with('user', $user)
->with('title', $title)
->with('setting', $setting)
->render();
12 changes: 12 additions & 0 deletions New-V2/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"require": {
"philo/laravel-blade": "3.*",
"nesbot/carbon": "^1.20",
"illuminate/database": "^5.3"
},
"autoload": {
"classmap": [
"models"
]
}
}
Loading