Valentin CARRUESCO 5 years ago
parent
commit
2c3ce9247c
5 changed files with 27 additions and 608 deletions
  1. 3 3
      constant.php
  2. 18 565
      css/theme.css
  3. 1 1
      header.php
  4. 2 1
      install.php
  5. 3 38
      plugin/hackpoint/css/main.css

+ 3 - 3
constant.php

@@ -14,10 +14,10 @@ define('BASE_SGBD','Mysql');
 define('BASE_HOST','localhost');
 define('BASE_NAME','hackpoint');
 define('BASE_LOGIN','root');
-define('BASE_PASSWORD','');
+define('BASE_PASSWORD','root');
 
-define('ROOT_URL','http://127.0.0.1/hackpoint');
-define('CRYPTKEY','MTU1NDQ3Nzg0M3Jvb3QyMzQ=');
+define('ROOT_URL','http://127.0.0.1/perso/hackpoint');
+define('CRYPTKEY','MTU1NDc5OTI1N3Jvb3QxODA=');
 //logs toutes les requetes sans formattage
 define('BASE_DEBUG',false);
 

+ 18 - 565
css/theme.css

@@ -1,578 +1,31 @@
-/* OVERRIDE - À MODIFIER POUR CHANGER LE THÈME GÉNÉRAL */
-/*Sélection avec la souris*/
-::selection {
-    color: #fff;
-    background: #993352; /* WebKit/Blink Browsers */
-}
-::-moz-selection {
-    color: #fff;
-    background: #993352; /* Gecko Browsers */
-}
-/* Toast Javascript pour les messages renvoyés */
-.toast-error {
-    background: #ca023e !important;
-}
-.toast-info {
-    background: #9d948b !important;
-}
-.toast-success {
-    background: #1e998d !important;
-}
-.toast-warning {
-    color: #212529 !important;
-    background: #cea75d !important;
-}
 
-/* Textes bootstrap */
-.text-info { color: #9c948b!important; }
-.text-success { color: #1e998d!important; }
-.text-danger { color: #ca023e!important; }
-.text-dark { color: #373b3c!important; }
-.text-primary { color: #847a71!important; }
 
-.btn .text-info:hover,
-.btn .text-info:focus {
-    color: #847a71!important;
-    transition: color .1s ease-in-out;
-}
-.btn .text-success:hover,
-.btn .text-success:focus {
-    color: #166f66!important;
-    transition: color .1s ease-in-out;
+body{
+     background: #3e4750!important;
 }
-.btn .text-danger:hover,
-.btn .text-danger:focus {
-    color: #97022f!important;
-    transition: color .1s ease-in-out;
-}
-.btn .text-dark:hover,
-.btn .text-dark:focus {
-    color: #202222!important;
-    transition: color .1s ease-in-out;
-}
-.btn .text-primary:hover,
-.btn .text-primary:focus {
-    color: #4d4742!important;
-    transition: color .1s ease-in-out;
-}
-
-/*.text-warning { color: #28a745!important; }
-.text-light { color: #28a745!important; }
-.text-secondary { color: #28a745!important; }*/
 
-/*Bouton de retour en haut*/
-#toTheTop{
-    background-color: #8d1136;
-}
-#toTheTop:after{
-    color: #fff;
-}
-/*Barre de menu en haut de page*/
-#mainMenu {
-    border-top: 3px solid #8d1136;
-    background: #373b3c;
-}
-/* Liens navbar*/
-.navbar-nav .nav-link {
-    padding-right: 1rem !important; 
-    padding-left: 1rem !important; 
-}
-.navbar-dark .navbar-nav .nav-link,
-.navbar-dark .navbar-nav .nav-link {
-    color: #9c9c9c;
-}
-.navbar-dark .navbar-nav .active > .nav-link,
-.navbar-dark .navbar-nav .nav-link.active,
-.navbar-dark .navbar-nav .nav-link.show,
-.navbar-dark .navbar-nav .show > .nav-link {
-    color: #ffffff;
-}
-.navbar-dark .navbar-nav .nav-link:focus,
-.navbar-dark .navbar-nav .nav-link:hover {
-    color: #ffffff;
-    transition: all .1s ease-out;
-}
-/* Inputs */
-input:required,
-textarea:required,
-select:required {
-    border-left: 0.25rem solid #993352 !important;
+.input-group-text{
+     background: #2e363e;
+     color:#fefefe;
+     border-color:#2e363e;
 }
 
-/*Boutons & Badges*/
-.btn-success {
-    background-color: #1e998d;
-    border-color: #1e998d;
-}
-.btn-success:hover,
-.btn-success:focus,
-.btn-success:active,
-.btn-success:not(:disabled):not(.disabled).active,
-.btn-success:not(:disabled):not(.disabled):active,
-.show > .btn-success.dropdown-toggle {
-    box-shadow: none !important;
-    background-color: #166f66;
-    border-color: #166f66;
-}
-.btn-success:not(:disabled):not(.disabled).active:focus,
-.btn-success:not(:disabled):not(.disabled):active:focus,
-.show > .btn-success.dropdown-toggle:focus {
-    box-shadow: none;
-}
-.btn-success.disabled,
-.btn-success:disabled {
-    color: #fff;
-    background-color: #1e998d;
-    border-color: #1e998d;
-}
-.badge-success {
-    color: #fff;
-    background-color: #1e998d;
-}
-.badge-success[href]:focus,
-.badge-success[href]:hover {
-    background-color: #166f66;
-}
-.border-success {
-    border-color: #1e998d !important;
-}
-.btn-primary {
-    background-color: #ffffff;
-    border-color: #847a71;
-    color: #847a71;
-}
-.btn-primary:hover,
-.btn-primary:focus,
-.btn-primary:active,
-.btn-primary:not(:disabled):not(.disabled).active,
-.btn-primary:not(:disabled):not(.disabled):active,
-.show > .btn-primary.dropdown-toggle {
-    box-shadow: none;
-    background-color: #e3e0de;
-    border-color: #4d4742;
-    color: #4d4742;
-}
-.btn-primary:not(:disabled):not(.disabled).active:focus,
-.btn-primary:not(:disabled):not(.disabled):active:focus,
-.show > .btn-primary.dropdown-toggle:focus {
-    box-shadow: none;
-}
-.btn-primary.disabled,
-.btn-primary:disabled {
-    color: #fff;
-    background-color: #847a71;
-    border-color: #847a71;
-}
-.badge-primary {
-    color: #847a71;
-    border: 1px solid;
-    border-color: #847a71;
-    background-color: #ffffff;
-}
-.badge-primary[href]:focus,
-.badge-primary[href]:hover {
-    color: #4d4742;
-    border-color: #4d4742;
-    background-color: #e3e0de;
-}
-.border-primary {
-    border-color: #847a71 !important;
-}
-.btn-dark {
-    color: #ffffff;
-    background-color: #373b3c;
-    border-color: #373b3c;
-}
-.btn-dark:hover,
-.btn-dark:focus,
-.btn-dark:active,
-.btn-dark:not(:disabled):not(.disabled).active,
-.btn-dark:not(:disabled):not(.disabled):active,
-.show > .btn-dark.dropdown-toggle {
-    box-shadow: none;
-    background-color: #202222;
-    border-color: #202222;
-}
-.btn-dark:not(:disabled):not(.disabled).active:focus,
-.btn-dark:not(:disabled):not(.disabled):active:focus,
-.show > .btn-dark.dropdown-toggle:focus {
-    box-shadow: none;
-}
-.btn-dark.disabled,
-.btn-dark:disabled {
-    color: #ffffff;
-    background-color: #373b3c;
-    border-color: #373b3c;
-}
-.badge-dark {
-    color: #ffffff;
-    background-color: #373b3c;
-}
-.badge-dark[href]:focus,
-.badge-dark[href]:hover {
-    background-color: #202222;
-}
-.border-dark {
-    border-color: #373b3c !important;
-}
-.btn-info {
-    background-color: #9c948b;
-    border-color: #9c948b;
-}
-.btn-info:hover,
-.btn-info:focus,
-.btn-info:active,
-.btn-info:not(:disabled):not(.disabled).active,
-.btn-info:not(:disabled):not(.disabled):active,
-.show > .btn-info.dropdown-toggle {
-    box-shadow: none;
-    background-color: #847a71;
-    border-color: #847a71;
-}
-.btn-info:not(:disabled):not(.disabled).active:focus,
-.btn-info:not(:disabled):not(.disabled):active:focus,
-.show > .btn-info.dropdown-toggle:focus {
-    box-shadow: none;
-}
-.btn-info.disabled,
-.btn-info:disabled {
-    color: #fff;
-    background-color: #9c948b;
-    border-color: #9c948b;
-}
-.badge-info {
-    color: #fff;
-    background-color: #847a71;
-}
-.badge-info[href]:focus,
-.badge-info[href]:hover {
-    background-color: #847a71;
-}
-.border-info {
-    border-color: #9c948b !important;
-}
-.btn-danger {
-    background-color: #ca023e;
-    border-color: #ca023e;
-}
-.btn-danger:hover,
-.btn-danger:focus,
-.btn-danger:active,
-.btn-danger:not(:disabled):not(.disabled).active,
-.btn-danger:not(:disabled):not(.disabled):active,
-.show > .btn-danger.dropdown-toggle {
-    box-shadow: none;
-    background-color: #97022f;
-    border-color: #97022f;
-}
-.btn-danger:not(:disabled):not(.disabled).active:focus,
-.btn-danger:not(:disabled):not(.disabled):active:focus,
-.show > .btn-danger.dropdown-toggle:focus {
-    box-shadow: none;
-}
-.btn-danger.disabled,
-.btn-danger:disabled {
-    color: #fff;
-    background-color: #ca023e;
-    border-color: #ca023e;
-}
-.badge-danger {
-    color: #fff;
-    background-color: #ca023e;
-}
-.badge-danger[href]:focus,
-.badge-danger[href]:hover {
-    background-color: #97022f;
-}
-.border-danger {
-    border-color: #ca023e !important;
-}
-.btn-warning {
-    background-color: #cea75d;
-    border-color: #cea75d;
-    color: #212529;
-}
-.btn-warning:hover,
-.btn-warning:focus,
-.btn-warning:active,
-.btn-warning:not(:disabled):not(.disabled).active,
-.btn-warning:not(:disabled):not(.disabled):active,
-.show > .btn-warning.dropdown-toggle {
-    box-shadow: none !important;
-    background-color: #c09139;
-    border-color: #c09139;
-}
-.btn-warning:not(:disabled):not(.disabled).active:focus,
-.btn-warning:not(:disabled):not(.disabled):active:focus,
-.show > .btn-warning.dropdown-toggle:focus {
-    box-shadow: none;
-}
-.btn-warning.disabled,
-.btn-warning:disabled {
-    color: #fff;
-    background-color: #cea75d;
-    border-color: #cea75d;
-}
-.badge-warning {
-    color: #fff;
-    background-color: #cea75d;
-}
-.badge-warning[href]:focus,
-.badge-warning[href]:hover {
-    background-color: #c09139;
-}
-.border-warning {
-    border-color: #cea75d !important;
-}
-
-/*Dropdown*/
-.dropdown-item.bg-green:focus,
-.dropdown-item.bg-pink:focus,
-.dropdown-item.bg-dark-grey:focus,
-.dropdown-item.bg-light-grey:focus,
-.dropdown-item.bg-bordeaux:focus,
-.dropdown-item.bg-golden:focus,
-.dropdown-item.bg-green:hover,
-.dropdown-item.bg-pink:hover,
-.dropdown-item.bg-dark-grey:hover,
-.dropdown-item.bg-light-grey:hover,
-.dropdown-item.bg-bordeaux:hover,
-.dropdown-item.bg-golden:hover {
-    color: #fff;
-}
-.dropdown-item.active,
-.dropdown-item:active {
-    background-color: #1e998d;
-    color: #fff;
-}
-
-/*Override append input-group*/
-.input-group>.input-group-append:last-child>.btn:not(:last-child):not(.dropdown-toggle) {
-     border-top-right-radius: 3px; 
-     border-bottom-right-radius: 3px; 
+#mainMenu .navbar-brand {
+    padding-left: 99px;
 }
 
-/*Pagination*/
-.pagination {
-    flex-wrap: wrap;
-}
-.page-item.active .page-link {
-    color: #fff;
-    background-color: #9c948b;
-    border-color: #9c948b;
-}
-.page-link {
-    color: #9c948b;
-    background-color: #fff;
-    border: 1px solid #9c948b;
-}
-.page-link:focus, .page-link:hover {
-    color: #847a71;
-    background-color: #e9ecef;
-    border-color: #9c948b;
-}
-
-/*Menus généraux*/
-.list-group-item.active {
-    color: #fff;
-    background-color: #1e998d;
-    border-color: #1e998d;
-}
-a {
-    color: #1e998d;
-}
-a:hover {
-    color: #166f66;
+.footer{
+    display: none;
 }
 
-/*Datepicker jQuery UI*/
-/*Pour les icône précédent/suivant il faut changer la couleur ud fichier d'icone de jQuery*/
-.ui-datepicker select.ui-datepicker-month,
-.ui-datepicker select.ui-datepicker-year {
-    width: 45%;
-    display: inline-block;
-    padding: 0 .75rem;
-    line-height: 1;
-    height: auto !important;
-}
-.ui-datepicker select.ui-datepicker-month.form-control {
-    margin-right: 5px;
-}
-.ui-datepicker select.ui-datepicker-year.form-control {
-    margin-left: 5px;
-}
-.ui-widget-header {
-    border: none;
-    background: #ffffff; 
-    color: #444;
-    font-weight: bold;
-}
-.ui-datepicker .ui-datepicker-prev {
-    left: 2px;
-    border-radius: 3px;
-    cursor: pointer;
-}
-.ui-datepicker .ui-datepicker-next {
-    right: 2px;
-    border-radius: 3px;
-    cursor: pointer;
-}
-div#ui-datepicker-div {
-    /*z-index: 20 !important;*/
-    background-color: #ffffff;
-    border: 1px solid #ddd;
-    border-radius: .25rem;
-}
-.ui-datepicker th {
-    padding: 0;
-    text-align: center;
-    font-weight: bold;
-    border: 0;
-}
-.ui-datepicker th > span {
-    border-bottom: 1px solid #d8d8d8;
-    color: #5f5f5f;
-    width: 100%;
-    display: block;
-    padding: .7em .3em;
-    padding-bottom: .35em;
-    margin-bottom: 5px;
-}
-.ui-state-default,
-.ui-widget-content .ui-state-default,
-.ui-widget-header .ui-state-default {
-    margin: .15rem 0;
-    border: 1px solid #eaeaea;
-    background: #ffffff;
-    font-weight: normal; 
-    color: #1e998d;
-    font-size: 0.9em;
-    text-align: center;
-    width: 35px;
-    height: 35px;
-    vertical-align: middle;
-    border-radius: 5px;
-    padding-top: 7px;
-}
-.ui-state-highlight,
-.ui-widget-content .ui-state-highlight,
-.ui-widget-header .ui-state-highlight {
-    border: 1px solid #ccc;
-    background: #fff;
-    color: #444;
-}
-.ui-state-active,
-.ui-widget-content .ui-state-active,
-.ui-widget-header .ui-state-active {
-    border: 1px solid #ddd;
-    font-weight: bold;
-    color: #ca023e;
-    background: #ca023a36;
-}
-.ui-state-hover,
-.ui-widget-content .ui-state-hover,
-.ui-widget-header .ui-state-hover,
-.ui-state-focus,
-.ui-widget-content .ui-state-focus,
-.ui-widget-header .ui-state-focus {
-    border: 1px solid #97022f;
-    background: #97022f;
-     font-weight: normal; 
-    color: #fff;
+ul, li{
+    margin:0;
+    padding:0;
+    list-style-type: none;
 }
 
-/* Page de maintenance */
-.maintenance-page,
-.maintenance-page body {
-    font-family: 'Lato';
-    background-color: #34495E;
-    color:#fff;
-}
-.maintenance-page .icon{
-    background-color: #ffffff;
-}
-.maintenance-page .icon i{
-    color:#ca023e;
-}
-.maintenance-page .content-block {
-    background: #ffffff33;
-    border: 1px solid #fff;
-}
-.maintenance-page .admin-access a {
-    color:#E9CA78;
-}
-
-/* COMPOSANTS */
-/* Composant Image */
-.type-image-bloc .btn-delete-img {
-    color: #ca023e !important;
-}
-
-/* Composant checkbox */
-.check-component {
-    border: 1px solid #bbbbbb;
-}
-.check-component input:checked + .box {
-    background-color: #d4f7f3;
-}
-.check-component input:checked + .box:after {
-    border-color: #1e998d;
-}
-.check-component input:indeterminate + .box {
-    background-color: #fad6e1;
-}
-.check-component input:indeterminate + .box:after {
-    border-color: #ca023e;
-}
-
-/* Composant radio */
-.radio-component:checked + label,
-.radio-component:not(:checked) + label
-{
-    color: #666;
-}
-.radio-component:checked + label:before,
-.radio-component:not(:checked) + label:before {
-    border: 1px solid #cccccc;
-}
-.radio-component:checked + label:after,
-.radio-component:not(:checked) + label:after {
-    background: #58b1a7;
-}
-
-/* Composant cards */
-*[data-type="card"].card-component-container {
-    color: #1e998d;
-}
-*[data-type="card"].card-component-container:hover {
-    color: #176e65;
-}
-
-/* Composant icônes */
-.component-icon .dropdown-item > span:focus,
-.component-icon .dropdown-item > span:active,
-.component-icon .dropdown-item > span:hover {
-    color: ##fff;
-    background-color: #1e998d;
-}
-
-
-/* PLUGINS */
-/* Notifications */
-ul.notifications.mid-pane > li.unread {
-    border-left: 5px solid #1e998d;
-}
-.notification_menu .dropdown-item.notification-unread:before {
-    border-left: 3px solid #1e998d;
-}
-.notification_menu .notification-item-options > li.notification-read:hover {
-    color: #9c948b;
-}
-.notification_menu .notification-item-options > li.notification-delete:hover {
-    color: #ca023e;
-}
-.notification_menu.dropdown .all-as-read, 
-.notification_menu.dropdown .see-all-link {
-    color: #1e998d;
+input.form-control,input.form-control:active,input.form-control:focus{
+    background-color: #343940;
+    border-color: #343940;
+    color:#fefefe;
 }
-/* FIN OVERRIDE */

+ 1 - 1
header.php

@@ -72,7 +72,7 @@ if(!isset($_['admin_login']) && file_exists('enabled.maintenance') && !$myUser->
 		<!-- Custom styles for this template -->
 		<link href="<?php echo $mediaRoot ?>/css/main.css?v=<?php echo $cacheVersion; ?>" rel="stylesheet">
 		<!-- Décommenter la ligne d'après pour override le thème général -->
-		<!-- <link href="css/theme.css" rel="stylesheet"> -->
+		<link href="css/theme.css" rel="stylesheet">
 		<!-- Plugin css files -->
 		<?php echo Plugin::callCss($mediaRoot,$cacheVersion); ?>
 	</head>

+ 2 - 1
install.php

@@ -1,6 +1,7 @@
 <?php
 
 try {
+	date_default_timezone_set('Europe/paris');
 	mb_internal_encoding('UTF-8');
 	require_once(__DIR__.'/function.php');
 	spl_autoload_register('app_autoloader');
@@ -140,7 +141,7 @@ try {
 				$right->save();
 			}
 			//Activation des plugins par défaut
-			foreach (array('fr.idleman.factory','fr.idleman.dashboard','fr.idleman.notification') as  $plugin) {
+			foreach (array('fr.idleman.hackpoint','fr.idleman.wiki','fr.idleman.dashboard','fr.idleman.notification') as  $plugin) {
 				Plugin::state($plugin,true);
 			} ?>
 

+ 3 - 38
plugin/hackpoint/css/main.css

@@ -5,27 +5,13 @@
 	height: 100%;
 }
 
-#hackpoints {
 
-}
-
-/* formulaire d'édition de part */
-.hackpoint .part-form {
-	
-}
-
-#part-form {
-
-}
 #sketchs {
-
 	margin:0;
 	padding:0;
-	
 }
 
 /* liste des sketchs */
-
 #sketchs li{
 	display: inline-block;
 	margin:0;
@@ -36,7 +22,6 @@
 
 
 /* fiche sketch */
-
 .page-sheet-sketch,.page-sheet-sketch body,.page-sheet-sketch .container-fluid{
 	height: 100%;
 	min-height: 100%;
@@ -48,13 +33,8 @@
 	background: #2e363e;
 }
 
-.page-sheet-sketch #mainMenu .navbar-brand {
-    padding-left: 99px;
-}
 
-.page-sheet-sketch .footer{
-	display: none;
-}
+
 .page-sheet-sketch .container-fluid{
     padding: 50px 0px 0 0px;
 }
@@ -68,15 +48,10 @@
 	height: 100%;
 }
 
-#sketch-workspace .form-control-plaintext {
+#sketch-workspace .form-control-plaintext{
     color: #8e8e8e;
 }
 
-#sketch-workspace .input-group-text{
-	 background: #2e363e;
-	 color:#fefefe;
-	 border-color:#2e363e;
-}
 
 #resources-toolbar{
 	width:120px;
@@ -89,14 +64,9 @@
 #sketch-workspace{
 	flex: 1;
 	padding:15px;
-	 background: #3e4750;
 	box-sizing: border-box;
 }
-#resources-toolbar ul,#resources-toolbar li{
-	margin:0;
-	padding:0;
-	list-style-type: none;
-}
+
 #resources-toolbar ul li{
 	padding:10px;
 	cursor: pointer;
@@ -284,11 +254,6 @@ div.hackpoint-type-image[data-type="dropzone"] > ul > li > i.pointer{
 	position: relative;
 }
 
-#parts li .part input{
-	background-color: #343940;
-	border-color: #343940;
-	color:#fefefe;
-}
 
 
 #sketch-workspace .part .part-image{