Browse Source

Maj acces Médias

stany.ferer 1 year ago
parent
commit
b99aeec715
2 changed files with 3 additions and 25 deletions
  1. 3 23
      maj/sql/maj.sql
  2. 0 2
      public-cms/jwt.medias.php

+ 3 - 23
maj/sql/maj.sql

@@ -1,25 +1,5 @@
 
-/*
-CREATE TABLE `jwt` (
-    `id_user` int NOT NULL,
-    `md5` varchar(32) NOT NULL,
-    `jwt` text NOT NULL,
-    `creer` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+INSERT INTO `access` (`id`, `label`, `show`, `add`, `access`, `noAccess`) VALUES (NULL, 'Médias (streaming)', '1', '1', 'medias', '');
 
-ALTER TABLE `jwt`
-    ADD KEY `user_jwt` (`id_user`);
-
-ALTER TABLE `jwt`
-    ADD CONSTRAINT `user_jwt` FOREIGN KEY (`id_user`) REFERENCES `user` (`id`);
-
-UPDATE `access` SET `access` = 'document*\r\ndocuments*', `add` = '0' WHERE `access`.`id` = 16;
-
-INSERT INTO `access` (`id`, `label`, `show`, `add`, `access`, `noAccess`) VALUES
-(17, 'Documents', 0, 1, 'add-document', '');
-
-INSERT INTO `type_access` (`id`, `id_type`, `id_access`, `exception`) VALUES ('7#16', '7', '16', NULL);
-INSERT INTO `type_access` (`id`, `id_type`, `id_access`, `exception`) VALUES ('6#17', '6', '17', 'salaire');
-INSERT INTO `type_access` (`id`, `id_type`, `id_access`, `exception`) VALUES ('5#17', '5', '17', 'salaire');
-INSERT INTO `type_access` (`id`, `id_type`, `id_access`, `exception`) VALUES ('4#17', '4', '17', 'salaire');
-*/
+INSERT INTO `type_access` (`id`, `id_type`, `id_access`, `exception`) VALUES ('4#18', '4', '18', NULL);
+INSERT INTO `type_access` (`id`, `id_type`, `id_access`, `exception`) VALUES ('5#18', '5', '18', NULL);

+ 0 - 2
public-cms/jwt.medias.php

@@ -30,7 +30,6 @@ session::setValue($newToken, "token");
     <title>Open Média</title>
 </head>
 <body>
-    <h1>Open Média</h1>
     <script>
         function envoyerPost(url, data) {
             var form = document.createElement("form");
@@ -60,7 +59,6 @@ session::setValue($newToken, "token");
         var url = "https://<?php echo DOMAIN_MEDIA ?>";
         envoyerPost(url, postData);
     </script>
-
 </body>
 </html>