1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00

New version

This commit is contained in:
Daniel Neto 2023-07-20 10:41:06 -03:00
parent 495114edb9
commit 8c9dbf15e6
7 changed files with 31 additions and 6 deletions

1
.gitignore vendored
View file

@ -68,6 +68,7 @@
/plugin/FansSubscriptions/
/plugin/MessageOfTheDay/
/plugin/InteractiveVideo/
getPaidPlugisList.php
/videos/
*.zip
sitemap.xml

View file

@ -4,7 +4,7 @@ if (file_exists("../videos/configuration.php")) {
exit;
}
$installationVersion = "12.7";
$installationVersion = "12.8";
error_log("Installation: ".__LINE__." ". json_encode($_POST));
header('Content-Type: application/json');

View file

@ -298,7 +298,7 @@ CREATE TABLE IF NOT EXISTS `configurations` (
`users_id` INT NOT NULL,
`version` VARCHAR(10) NOT NULL,
`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,
`modified` DATETIME NOT NULL,
`created` DATETIME NOT NULL,

View file

@ -25,13 +25,13 @@ require_once '../locale/function.php';
<body>
<?php
if (file_exists('../videos/configuration.php')) {
require_once '../videos/configuration.php'; ?>
//require_once '../videos/configuration.php'; ?>
<div class="container">
<h3 class="alert alert-success">
<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>
<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>
</div>
<?php

View 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;

View file

@ -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">
<ul class="nav navbar btn-group-vertical" style="width:100%;">

View file

@ -216,6 +216,7 @@ async function YPTSidebarOpen() {
$("#sidebar").removeClass('animate__bounceOutLeft');
$("#sidebar").show();
$("#sidebar").addClass('animate__animated animate__bounceInLeft');
Cookies.set("menuOpen", true, { expires: 365, path: '/' });
setTimeout(function () {
$('body').addClass('youtube');
}, 500);
@ -224,6 +225,7 @@ async function YPTSidebarOpen() {
async function YPTSidebarClose() {
$("#sidebar").removeClass('animate__bounceInLeft');
$("#sidebar").addClass('animate__bounceOutLeft');
Cookies.set("menuOpen", false, { expires: 365, path: '/' });
setTimeout(function () {
$('body').removeClass('youtube');
$("#sidebar").hide();
@ -243,3 +245,12 @@ async function YPTHidenavbar() {
}
}
}
$(document).ready(function() {
var menuOpen = Cookies.get("menuOpen");
if (menuOpen === "true") {
YPTSidebarOpen();
} else {
YPTSidebarClose();
}
});