mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
New version
This commit is contained in:
parent
495114edb9
commit
8c9dbf15e6
7 changed files with 31 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -68,6 +68,7 @@
|
||||||
/plugin/FansSubscriptions/
|
/plugin/FansSubscriptions/
|
||||||
/plugin/MessageOfTheDay/
|
/plugin/MessageOfTheDay/
|
||||||
/plugin/InteractiveVideo/
|
/plugin/InteractiveVideo/
|
||||||
|
getPaidPlugisList.php
|
||||||
/videos/
|
/videos/
|
||||||
*.zip
|
*.zip
|
||||||
sitemap.xml
|
sitemap.xml
|
||||||
|
|
|
@ -4,7 +4,7 @@ if (file_exists("../videos/configuration.php")) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$installationVersion = "12.7";
|
$installationVersion = "12.8";
|
||||||
|
|
||||||
error_log("Installation: ".__LINE__." ". json_encode($_POST));
|
error_log("Installation: ".__LINE__." ". json_encode($_POST));
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/json');
|
||||||
|
|
|
@ -298,7 +298,7 @@ CREATE TABLE IF NOT EXISTS `configurations` (
|
||||||
`users_id` INT NOT NULL,
|
`users_id` INT NOT NULL,
|
||||||
`version` VARCHAR(10) NOT NULL,
|
`version` VARCHAR(10) NOT NULL,
|
||||||
`webSiteTitle` VARCHAR(45) NOT NULL DEFAULT 'AVideo',
|
`webSiteTitle` VARCHAR(45) NOT NULL DEFAULT 'AVideo',
|
||||||
`language` VARCHAR(6) NOT NULL DEFAULT 'en',
|
`language` VARCHAR(25) NOT NULL DEFAULT 'en',
|
||||||
`contactEmail` VARCHAR(254) NOT NULL,
|
`contactEmail` VARCHAR(254) NOT NULL,
|
||||||
`modified` DATETIME NOT NULL,
|
`modified` DATETIME NOT NULL,
|
||||||
`created` DATETIME NOT NULL,
|
`created` DATETIME NOT NULL,
|
||||||
|
|
|
@ -25,13 +25,13 @@ require_once '../locale/function.php';
|
||||||
<body>
|
<body>
|
||||||
<?php
|
<?php
|
||||||
if (file_exists('../videos/configuration.php')) {
|
if (file_exists('../videos/configuration.php')) {
|
||||||
require_once '../videos/configuration.php'; ?>
|
//require_once '../videos/configuration.php'; ?>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h3 class="alert alert-success">
|
<h3 class="alert alert-success">
|
||||||
<span class="glyphicon glyphicon-ok-circle"></span>
|
<span class="glyphicon glyphicon-ok-circle"></span>
|
||||||
Your system is installed, remove the <code><?php echo $global['systemRootPath']; ?>install</code> directory to continue
|
Your system is installed
|
||||||
<hr>
|
<hr>
|
||||||
<a href="<?php echo getHomePageURL(); ?>" class="btn btn-success btn-lg center-block">Go to the main page</a>
|
<a href="../" class="btn btn-success btn-lg center-block">Go to the main page</a>
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
|
|
3
updatedb/updateDb.v12.8.sql
Normal file
3
updatedb/updateDb.v12.8.sql
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
ALTER TABLE `configurations`
|
||||||
|
CHANGE COLUMN `language` `language` VARCHAR(25) NOT NULL DEFAULT 'en_US';
|
||||||
|
UPDATE configurations SET version = '12.8', modified = now() WHERE id = 1;
|
|
@ -1,4 +1,14 @@
|
||||||
<div id="sidebar" class="list-group-item" style="<?php echo $sidebarStyle; ?>">
|
<?php
|
||||||
|
/*
|
||||||
|
$navbarIsOpen = !empty($_COOKIE['menuOpen']) && $_COOKIE['menuOpen'] == 'true';
|
||||||
|
$navbarClass = '';
|
||||||
|
if($navbarIsOpen){
|
||||||
|
$navbarClass = 'show animate__animated animate__bounceInLeft';
|
||||||
|
$sidebarStyle = '';
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
?>
|
||||||
|
<div id="sidebar" class="list-group-item <?php echo $navbarClass; ?>" style="<?php echo $sidebarStyle; ?>">
|
||||||
<div id="sideBarContainer">
|
<div id="sideBarContainer">
|
||||||
<ul class="nav navbar btn-group-vertical" style="width:100%;">
|
<ul class="nav navbar btn-group-vertical" style="width:100%;">
|
||||||
|
|
||||||
|
|
|
@ -216,6 +216,7 @@ async function YPTSidebarOpen() {
|
||||||
$("#sidebar").removeClass('animate__bounceOutLeft');
|
$("#sidebar").removeClass('animate__bounceOutLeft');
|
||||||
$("#sidebar").show();
|
$("#sidebar").show();
|
||||||
$("#sidebar").addClass('animate__animated animate__bounceInLeft');
|
$("#sidebar").addClass('animate__animated animate__bounceInLeft');
|
||||||
|
Cookies.set("menuOpen", true, { expires: 365, path: '/' });
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
$('body').addClass('youtube');
|
$('body').addClass('youtube');
|
||||||
}, 500);
|
}, 500);
|
||||||
|
@ -224,6 +225,7 @@ async function YPTSidebarOpen() {
|
||||||
async function YPTSidebarClose() {
|
async function YPTSidebarClose() {
|
||||||
$("#sidebar").removeClass('animate__bounceInLeft');
|
$("#sidebar").removeClass('animate__bounceInLeft');
|
||||||
$("#sidebar").addClass('animate__bounceOutLeft');
|
$("#sidebar").addClass('animate__bounceOutLeft');
|
||||||
|
Cookies.set("menuOpen", false, { expires: 365, path: '/' });
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
$('body').removeClass('youtube');
|
$('body').removeClass('youtube');
|
||||||
$("#sidebar").hide();
|
$("#sidebar").hide();
|
||||||
|
@ -243,3 +245,12 @@ async function YPTHidenavbar() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
var menuOpen = Cookies.get("menuOpen");
|
||||||
|
if (menuOpen === "true") {
|
||||||
|
YPTSidebarOpen();
|
||||||
|
} else {
|
||||||
|
YPTSidebarClose();
|
||||||
|
}
|
||||||
|
});
|
Loading…
Add table
Add a link
Reference in a new issue