mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
parent
a68626ba80
commit
f3428b6572
1226 changed files with 138 additions and 3 deletions
0
.gitignore
vendored
Executable file → Normal file
0
.gitignore
vendored
Executable file → Normal file
|
@ -125,7 +125,11 @@ if(empty($_POST['salt'])){
|
|||
$content = "<?php
|
||||
\$global['disableAdvancedConfigurations'] = 0;
|
||||
\$global['videoStorageLimitMinutes'] = 0;
|
||||
\$global['webSiteRootURL'] = '{$_POST['webSiteRootURL']}';
|
||||
//\$global['webSiteRootURL'] = '{$_POST['webSiteRootURL']}';
|
||||
// get the subdirectory, if exists
|
||||
\$subDir = str_replace(array(\$_SERVER[\"DOCUMENT_ROOT\"], 'videos/configuration.php'), array('',''), __FILE__);
|
||||
\$global['webSiteRootURL'] = \"http\".(!empty(\$_SERVER['HTTPS'])?\"s\":\"\").\"://\".\$_SERVER['SERVER_NAME'].\$subDir;
|
||||
|
||||
\$global['systemRootPath'] = '{$_POST['systemRootPath']}';
|
||||
\$global['salt'] = '{$_POST['salt']}';
|
||||
|
||||
|
|
0
plugin/AD_Server/AD_Server.php
Executable file → Normal file
0
plugin/AD_Server/AD_Server.php
Executable file → Normal file
0
plugin/AD_Server/Objects/VastCampaigns.php
Executable file → Normal file
0
plugin/AD_Server/Objects/VastCampaigns.php
Executable file → Normal file
0
plugin/AD_Server/Objects/VastCampaignsLogs.php
Executable file → Normal file
0
plugin/AD_Server/Objects/VastCampaignsLogs.php
Executable file → Normal file
0
plugin/AD_Server/Objects/VastCampaignsVideos.php
Executable file → Normal file
0
plugin/AD_Server/Objects/VastCampaignsVideos.php
Executable file → Normal file
0
plugin/AD_Server/VAST.php
Executable file → Normal file
0
plugin/AD_Server/VAST.php
Executable file → Normal file
0
plugin/AD_Server/VMAP.php
Executable file → Normal file
0
plugin/AD_Server/VMAP.php
Executable file → Normal file
0
plugin/AD_Server/footer.php
Executable file → Normal file
0
plugin/AD_Server/footer.php
Executable file → Normal file
0
plugin/AD_Server/index.php
Executable file → Normal file
0
plugin/AD_Server/index.php
Executable file → Normal file
0
plugin/AD_Server/install/install.sql
Executable file → Normal file
0
plugin/AD_Server/install/install.sql
Executable file → Normal file
0
plugin/AD_Server/log.php
Executable file → Normal file
0
plugin/AD_Server/log.php
Executable file → Normal file
0
plugin/AD_Server/pluginMenu.html
Executable file → Normal file
0
plugin/AD_Server/pluginMenu.html
Executable file → Normal file
0
plugin/AD_Server/videojs-ima/videojs.ima.css
Executable file → Normal file
0
plugin/AD_Server/videojs-ima/videojs.ima.css
Executable file → Normal file
0
plugin/AD_Server/videojs-ima/videojs.ima.js
Executable file → Normal file
0
plugin/AD_Server/videojs-ima/videojs.ima.js
Executable file → Normal file
0
plugin/AD_Server/videojs-ima/videojs.ima.min.js
vendored
Executable file → Normal file
0
plugin/AD_Server/videojs-ima/videojs.ima.min.js
vendored
Executable file → Normal file
0
plugin/AD_Server/videojs-ima/videojs.ima.scss
Executable file → Normal file
0
plugin/AD_Server/videojs-ima/videojs.ima.scss
Executable file → Normal file
0
plugin/AD_Server/videojs-markers/videojs-markers.js
Executable file → Normal file
0
plugin/AD_Server/videojs-markers/videojs-markers.js
Executable file → Normal file
0
plugin/AD_Server/videojs-markers/videojs-markers.js.map
Executable file → Normal file
0
plugin/AD_Server/videojs-markers/videojs-markers.js.map
Executable file → Normal file
0
plugin/AD_Server/videojs-markers/videojs-markers.min.js
vendored
Executable file → Normal file
0
plugin/AD_Server/videojs-markers/videojs-markers.min.js
vendored
Executable file → Normal file
0
plugin/AD_Server/videojs-markers/videojs.markers.css
Executable file → Normal file
0
plugin/AD_Server/videojs-markers/videojs.markers.css
Executable file → Normal file
0
plugin/AD_Server/videojs-markers/videojs.markers.min.css
vendored
Executable file → Normal file
0
plugin/AD_Server/videojs-markers/videojs.markers.min.css
vendored
Executable file → Normal file
0
plugin/AD_Server/view/addCampaign.php
Executable file → Normal file
0
plugin/AD_Server/view/addCampaign.php
Executable file → Normal file
0
plugin/AD_Server/view/addCampaignVideo.php
Executable file → Normal file
0
plugin/AD_Server/view/addCampaignVideo.php
Executable file → Normal file
0
plugin/AD_Server/view/campaigns.json.php
Executable file → Normal file
0
plugin/AD_Server/view/campaigns.json.php
Executable file → Normal file
0
plugin/AD_Server/view/campaignsVideos.json.php
Executable file → Normal file
0
plugin/AD_Server/view/campaignsVideos.json.php
Executable file → Normal file
0
plugin/AD_Server/view/deleteCampaign.json.php
Executable file → Normal file
0
plugin/AD_Server/view/deleteCampaign.json.php
Executable file → Normal file
0
plugin/AD_Server/view/deleteCampaignVideo.json.php
Executable file → Normal file
0
plugin/AD_Server/view/deleteCampaignVideo.json.php
Executable file → Normal file
0
plugin/AD_Server_Location/AD_Server_Location.php
Executable file → Normal file
0
plugin/AD_Server_Location/AD_Server_Location.php
Executable file → Normal file
0
plugin/AD_Server_Location/Objects/CampaignLocations.php
Executable file → Normal file
0
plugin/AD_Server_Location/Objects/CampaignLocations.php
Executable file → Normal file
0
plugin/AD_Server_Location/campaignPanel.php
Executable file → Normal file
0
plugin/AD_Server_Location/campaignPanel.php
Executable file → Normal file
0
plugin/AD_Server_Location/install/install.sql
Executable file → Normal file
0
plugin/AD_Server_Location/install/install.sql
Executable file → Normal file
0
plugin/Audit/Audit.php
Executable file → Normal file
0
plugin/Audit/Audit.php
Executable file → Normal file
0
plugin/Audit/Objects/AuditTable.php
Executable file → Normal file
0
plugin/Audit/Objects/AuditTable.php
Executable file → Normal file
0
plugin/Audit/install/audit.mwb
Executable file → Normal file
0
plugin/Audit/install/audit.mwb
Executable file → Normal file
0
plugin/Audit/install/audit.mwb.bak
Executable file → Normal file
0
plugin/Audit/install/audit.mwb.bak
Executable file → Normal file
0
plugin/Audit/install/install.sql
Executable file → Normal file
0
plugin/Audit/install/install.sql
Executable file → Normal file
0
plugin/Audit/page/audits.json.php
Executable file → Normal file
0
plugin/Audit/page/audits.json.php
Executable file → Normal file
0
plugin/Audit/page/editor.php
Executable file → Normal file
0
plugin/Audit/page/editor.php
Executable file → Normal file
0
plugin/Audit/pluginMenu.html
Executable file → Normal file
0
plugin/Audit/pluginMenu.html
Executable file → Normal file
0
plugin/Cache/Cache.php
Executable file → Normal file
0
plugin/Cache/Cache.php
Executable file → Normal file
0
plugin/CloneSite/CloneLog.php
Executable file → Normal file
0
plugin/CloneSite/CloneLog.php
Executable file → Normal file
0
plugin/CloneSite/CloneSite.php
Executable file → Normal file
0
plugin/CloneSite/CloneSite.php
Executable file → Normal file
0
plugin/CloneSite/Objects/Clones.php
Executable file → Normal file
0
plugin/CloneSite/Objects/Clones.php
Executable file → Normal file
0
plugin/CloneSite/Objects/cloneSiteModel.mwb
Executable file → Normal file
0
plugin/CloneSite/Objects/cloneSiteModel.mwb
Executable file → Normal file
0
plugin/CloneSite/changeStatus.json.php
Executable file → Normal file
0
plugin/CloneSite/changeStatus.json.php
Executable file → Normal file
0
plugin/CloneSite/cloneClient.json.php
Executable file → Normal file
0
plugin/CloneSite/cloneClient.json.php
Executable file → Normal file
0
plugin/CloneSite/cloneServer.json.php
Executable file → Normal file
0
plugin/CloneSite/cloneServer.json.php
Executable file → Normal file
0
plugin/CloneSite/clones.json.php
Executable file → Normal file
0
plugin/CloneSite/clones.json.php
Executable file → Normal file
0
plugin/CloneSite/delete.json.php
Executable file → Normal file
0
plugin/CloneSite/delete.json.php
Executable file → Normal file
0
plugin/CloneSite/functions.php
Executable file → Normal file
0
plugin/CloneSite/functions.php
Executable file → Normal file
0
plugin/CloneSite/index.php
Executable file → Normal file
0
plugin/CloneSite/index.php
Executable file → Normal file
0
plugin/CloneSite/install/install.sql
Executable file → Normal file
0
plugin/CloneSite/install/install.sql
Executable file → Normal file
0
plugin/CloneSite/pluginMenu.html
Executable file → Normal file
0
plugin/CloneSite/pluginMenu.html
Executable file → Normal file
0
plugin/CookieAlert/CookieAlert.php
Executable file → Normal file
0
plugin/CookieAlert/CookieAlert.php
Executable file → Normal file
0
plugin/CookieAlert/cookiealert-standalone.js
Executable file → Normal file
0
plugin/CookieAlert/cookiealert-standalone.js
Executable file → Normal file
0
plugin/CookieAlert/cookiealert.css
Executable file → Normal file
0
plugin/CookieAlert/cookiealert.css
Executable file → Normal file
0
plugin/CookieAlert/cubes.png
Executable file → Normal file
0
plugin/CookieAlert/cubes.png
Executable file → Normal file
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
0
plugin/CookieAlert/demo.html
Executable file → Normal file
0
plugin/CookieAlert/demo.html
Executable file → Normal file
0
plugin/CookieAlert/footer.php
Executable file → Normal file
0
plugin/CookieAlert/footer.php
Executable file → Normal file
0
plugin/CustomizeAdvanced/CustomizeAdvanced.php
Executable file → Normal file
0
plugin/CustomizeAdvanced/CustomizeAdvanced.php
Executable file → Normal file
0
plugin/CustomizeAdvanced/advancedCustom.json.php
Executable file → Normal file
0
plugin/CustomizeAdvanced/advancedCustom.json.php
Executable file → Normal file
0
plugin/FBTube/FBTube.php
Executable file → Normal file
0
plugin/FBTube/FBTube.php
Executable file → Normal file
0
plugin/FBTube/view/getVideos.php
Executable file → Normal file
0
plugin/FBTube/view/getVideos.php
Executable file → Normal file
0
plugin/FBTube/view/modeFacebook.php
Executable file → Normal file
0
plugin/FBTube/view/modeFacebook.php
Executable file → Normal file
0
plugin/FBTube/view/player.css
Executable file → Normal file
0
plugin/FBTube/view/player.css
Executable file → Normal file
0
plugin/FBTube/view/style.css
Executable file → Normal file
0
plugin/FBTube/view/style.css
Executable file → Normal file
0
plugin/FloatVideo/FloatVideo.php
Executable file → Normal file
0
plugin/FloatVideo/FloatVideo.php
Executable file → Normal file
0
plugin/Gallery/Gallery.php
Executable file → Normal file
0
plugin/Gallery/Gallery.php
Executable file → Normal file
0
plugin/Gallery/fullscreen.css
Executable file → Normal file
0
plugin/Gallery/fullscreen.css
Executable file → Normal file
0
plugin/Gallery/fullscreen.js
Executable file → Normal file
0
plugin/Gallery/fullscreen.js
Executable file → Normal file
0
plugin/Gallery/functions.php
Executable file → Normal file
0
plugin/Gallery/functions.php
Executable file → Normal file
0
plugin/Gallery/script.js
Executable file → Normal file
0
plugin/Gallery/script.js
Executable file → Normal file
0
plugin/Gallery/style.css
Executable file → Normal file
0
plugin/Gallery/style.css
Executable file → Normal file
0
plugin/Gallery/view/BigVideo.php
Executable file → Normal file
0
plugin/Gallery/view/BigVideo.php
Executable file → Normal file
0
plugin/Gallery/view/Category.php
Executable file → Normal file
0
plugin/Gallery/view/Category.php
Executable file → Normal file
0
plugin/Gallery/view/modeGallery.php
Executable file → Normal file
0
plugin/Gallery/view/modeGallery.php
Executable file → Normal file
0
plugin/Hotkeys/Hotkeys.php
Executable file → Normal file
0
plugin/Hotkeys/Hotkeys.php
Executable file → Normal file
0
plugin/Hotkeys/videojs.hotkeys.min.js
vendored
Executable file → Normal file
0
plugin/Hotkeys/videojs.hotkeys.min.js
vendored
Executable file → Normal file
0
plugin/IMDbScrape/.gitignore
vendored
Executable file → Normal file
0
plugin/IMDbScrape/.gitignore
vendored
Executable file → Normal file
0
plugin/IMDbScrape/IMDbScrape.php
Executable file → Normal file
0
plugin/IMDbScrape/IMDbScrape.php
Executable file → Normal file
0
plugin/IMDbScrape/cache/.gitkeep
vendored
Executable file → Normal file
0
plugin/IMDbScrape/cache/.gitkeep
vendored
Executable file → Normal file
0
plugin/IMDbScrape/cast/not-found.jpg
Executable file → Normal file
0
plugin/IMDbScrape/cast/not-found.jpg
Executable file → Normal file
Before Width: | Height: | Size: 423 B After Width: | Height: | Size: 423 B |
0
plugin/IMDbScrape/footer.php
Executable file → Normal file
0
plugin/IMDbScrape/footer.php
Executable file → Normal file
0
plugin/IMDbScrape/get.json.php
Executable file → Normal file
0
plugin/IMDbScrape/get.json.php
Executable file → Normal file
0
plugin/IMDbScrape/imdb.class.php
Executable file → Normal file
0
plugin/IMDbScrape/imdb.class.php
Executable file → Normal file
0
plugin/IMDbScrape/posters/not-found.jpg
Executable file → Normal file
0
plugin/IMDbScrape/posters/not-found.jpg
Executable file → Normal file
Before Width: | Height: | Size: 462 B After Width: | Height: | Size: 462 B |
14
plugin/Live/Live.php
Executable file → Normal file
14
plugin/Live/Live.php
Executable file → Normal file
|
@ -24,7 +24,19 @@ class Live extends PluginAbstract {
|
|||
}
|
||||
|
||||
public function getPluginVersion() {
|
||||
return "1.0";
|
||||
return "2.0";
|
||||
}
|
||||
|
||||
public function updateScript() {
|
||||
global $global;
|
||||
//update version 2.0
|
||||
$sql = "SELECT 1 FROM live_transmitions_history LIMIT 1;";
|
||||
$res = sqlDAL::readSql($sql);
|
||||
$fetch=sqlDAL::fetchAssoc($res);
|
||||
if(!$fetch){
|
||||
sqlDal::writeSql(file_get_contents($global['systemRootPath'] . 'plugin/Live/install/updateV2.0.sql'));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getEmptyDataObject() {
|
||||
|
|
0
plugin/Live/Objects/LiveTransmition.php
Executable file → Normal file
0
plugin/Live/Objects/LiveTransmition.php
Executable file → Normal file
77
plugin/Live/Objects/LiveTransmitionHistory.php
Normal file
77
plugin/Live/Objects/LiveTransmitionHistory.php
Normal file
|
@ -0,0 +1,77 @@
|
|||
<?php
|
||||
|
||||
require_once dirname(__FILE__) . '/../../../videos/configuration.php';
|
||||
require_once dirname(__FILE__) . '/../../../objects/bootGrid.php';
|
||||
require_once dirname(__FILE__) . '/../../../objects/user.php';
|
||||
|
||||
class LiveTransmitionHistory extends ObjectYPT {
|
||||
|
||||
protected $id, $title, $description, $key, $created, $modified, $users_id;
|
||||
|
||||
static function getSearchFieldsNames() {
|
||||
return array('title', 'description');
|
||||
}
|
||||
|
||||
static function getTableName() {
|
||||
return 'live_transmitions_history';
|
||||
}
|
||||
|
||||
function getId() {
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
function getTitle() {
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
function getDescription() {
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
function getKey() {
|
||||
return $this->key;
|
||||
}
|
||||
|
||||
function getCreated() {
|
||||
return $this->created;
|
||||
}
|
||||
|
||||
function getModified() {
|
||||
return $this->modified;
|
||||
}
|
||||
|
||||
function getUsers_id() {
|
||||
return $this->users_id;
|
||||
}
|
||||
|
||||
function setId($id) {
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
function setTitle($title) {
|
||||
$this->title = $title;
|
||||
}
|
||||
|
||||
function setDescription($description) {
|
||||
$this->description = $description;
|
||||
}
|
||||
|
||||
function setKey($key) {
|
||||
$this->key = $key;
|
||||
}
|
||||
|
||||
function setCreated($created) {
|
||||
$this->created = $created;
|
||||
}
|
||||
|
||||
function setModified($modified) {
|
||||
$this->modified = $modified;
|
||||
}
|
||||
|
||||
function setUsers_id($users_id) {
|
||||
$this->users_id = $users_id;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
0
plugin/Live/getImage.php
Executable file → Normal file
0
plugin/Live/getImage.php
Executable file → Normal file
0
plugin/Live/index.php
Executable file → Normal file
0
plugin/Live/index.php
Executable file → Normal file
17
plugin/Live/install/install.sql
Executable file → Normal file
17
plugin/Live/install/install.sql
Executable file → Normal file
|
@ -64,6 +64,23 @@ CREATE TABLE IF NOT EXISTS `live_transmitions_has_users_groups` (
|
|||
ENGINE = InnoDB;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `live_transmitions_history` (
|
||||
`id` INT NOT NULL AUTO_INCREMENT,
|
||||
`title` VARCHAR(255) NULL,
|
||||
`description` TEXT NULL,
|
||||
`key` VARCHAR(255) NOT NULL,
|
||||
`created` DATETIME NULL,
|
||||
`modified` DATETIME NULL,
|
||||
`users_id` INT(11) NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
INDEX `fk_live_transmitions_history_users_idx` (`users_id` ASC),
|
||||
CONSTRAINT `fk_live_transmitions_history_users`
|
||||
FOREIGN KEY (`users_id`)
|
||||
REFERENCES `users` (`id`)
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE)
|
||||
ENGINE = InnoDB
|
||||
|
||||
|
||||
SET SQL_MODE=@OLD_SQL_MODE;
|
||||
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
|
||||
|
|
0
plugin/Live/install/nginx.conf
Executable file → Normal file
0
plugin/Live/install/nginx.conf
Executable file → Normal file
0
plugin/Live/install/nginx.old.conf
Executable file → Normal file
0
plugin/Live/install/nginx.old.conf
Executable file → Normal file
16
plugin/Live/install/updateV2.0.sql
Normal file
16
plugin/Live/install/updateV2.0.sql
Normal file
|
@ -0,0 +1,16 @@
|
|||
CREATE TABLE IF NOT EXISTS `live_transmitions_history` (
|
||||
`id` INT NOT NULL AUTO_INCREMENT,
|
||||
`title` VARCHAR(255) NULL,
|
||||
`description` TEXT NULL,
|
||||
`key` VARCHAR(255) NOT NULL,
|
||||
`created` DATETIME NULL,
|
||||
`modified` DATETIME NULL,
|
||||
`users_id` INT(11) NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
INDEX `fk_live_transmitions_history_users_idx` (`users_id` ASC),
|
||||
CONSTRAINT `fk_live_transmitions_history_users`
|
||||
FOREIGN KEY (`users_id`)
|
||||
REFERENCES `users` (`id`)
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE)
|
||||
ENGINE = InnoDB
|
0
plugin/Live/on_play.php
Executable file → Normal file
0
plugin/Live/on_play.php
Executable file → Normal file
7
plugin/Live/on_publish.php
Executable file → Normal file
7
plugin/Live/on_publish.php
Executable file → Normal file
|
@ -2,6 +2,7 @@
|
|||
|
||||
require_once '../../videos/configuration.php';
|
||||
require_once './Objects/LiveTransmition.php';
|
||||
require_once './Objects/LiveTransmitionHistory.php';
|
||||
$obj = new stdClass();
|
||||
$obj->error = true;
|
||||
|
||||
|
@ -21,6 +22,12 @@ if (!empty($_GET['p'])) {
|
|||
if(!$user->thisUserCanStream()){
|
||||
error_log("User [{$obj->row['users_id']}] can not stream");
|
||||
}else if ($_GET['p'] === $user->getPassword()) {
|
||||
$lth = new LiveTransmitionHistory();
|
||||
$lth->setTitle($obj->row['title']);
|
||||
$lth->setDescription($obj->row['description']);
|
||||
$lth->setKey($_POST['name']);
|
||||
$lth->setUsers_id($user->getBdId());
|
||||
$lth->save();
|
||||
$obj->error = false;
|
||||
} else {
|
||||
error_log("Stream Publish error, Password does not match");
|
||||
|
|
0
plugin/Live/on_record_done.php
Executable file → Normal file
0
plugin/Live/on_record_done.php
Executable file → Normal file
0
plugin/Live/sample-player.zip
Executable file → Normal file
0
plugin/Live/sample-player.zip
Executable file → Normal file
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue