simplification transmission debug

This commit is contained in:
Deltacms 2023-01-31 08:12:30 +01:00
parent d2de0800fb
commit 199ef99f3c
5 changed files with 37 additions and 173 deletions

View File

@ -148,9 +148,13 @@ $text['core_config_view']['setup'][31] = 'PHP modules installed: ';
$text['core_config_view']['setup'][32] = 'Module(s) missing: ';
$text['core_config_view']['setup'][33] = 'The necessary modules are installed.';
$text['core_config_view']['setup'][34] = 'Deltacms modules installed: ';
$text['core_config_view']['setup'][35] = 'Generate a pdf';
$text['core_config_view']['setup'][35] = 'Copy';
$text['core_config_view']['setup'][36] = 'Directive ';
$text['core_config_view']['setup'][37] = 'Function ';
$text['core_config_view']['setup'][38] = "Transmission of a malfunction";
$text['core_config_view']['setup'][39] = "1 - Log in or register at ";
$text['core_config_view']['setup'][40] = "2 - In Configuration or Modules create a new topic, explain your problem";
$text['core_config_view']['setup'][41] = "3 - Copy and paste the information into your post";
$text['core_config_view']['social'][0] = 'Settings';
$text['core_config_view']['social'][1] = 'Disable Open Graph capture mode';
$text['core_config_view']['social'][2] = 'Enable Open Graph capture mode';

View File

@ -148,9 +148,13 @@ $text['core_config_view']['setup'][31] = 'Modules PHP installés: ';
$text['core_config_view']['setup'][32] = 'Module(s) absent(s): ';
$text['core_config_view']['setup'][33] = 'Les modules nécessaires sont installés.';
$text['core_config_view']['setup'][34] = 'Modules Deltacms installés: ';
$text['core_config_view']['setup'][35] = 'Générer un pdf';
$text['core_config_view']['setup'][35] = 'Copier';
$text['core_config_view']['setup'][36] = 'Directive ';
$text['core_config_view']['setup'][37] = 'Fonction ';
$text['core_config_view']['setup'][38] = "Transmission d'un dysfonctionnement";
$text['core_config_view']['setup'][39] = "1 - Connectez-vous ou inscrivez-vous sur ";
$text['core_config_view']['setup'][40] = "2 - Dans Configuration ou Modules créez un nouveau sujet, expliquez votre problème";
$text['core_config_view']['setup'][41] = "3 - Copiez puis collez les informations dans votre message";
$text['core_config_view']['social'][0] = 'Paramètres';
$text['core_config_view']['social'][1] = 'Désactiver le mode de capture Open Graph';
$text['core_config_view']['social'][2] = 'Activer le mode de capture Open Graph';

View File

@ -286,3 +286,17 @@ function getCookie(name) {
function capitalizeFirstLetter(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
// Copie dans le presse papier les informations de debug
$("#buttonHtmlToClipboard").on("click", function() {
var data = "[quote]" + $("#modulesPhp1").text() + "\r\n\r\n";
data += $("#modulesPhp2").text() + "\r\n\r\n";
data += $("#directivesFunctionsPhp").text() + "\r\n\r\n";
data += $("#modulesDeltacms").text() + "[/quote]";
var infoTextarea = document.createElement("textarea");
document.body.appendChild(infoTextarea);
infoTextarea.value = data;
infoTextarea.select();
document.execCommand("copy");
document.body.removeChild(infoTextarea);
});

View File

@ -1,4 +1,3 @@
<script src="core/vendor/jspdf/jspdf.min.js"></script>
<?php
// Lexique
include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_config.php');
@ -161,7 +160,7 @@ include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdm
$listText = $text['core_config_view']['setup'][25]. common::DELTA_VERSION."\n".$text['core_config_view']['setup'][26]. phpversion()."\n".$text['core_config_view']['setup'][27]. $_SERVER['SERVER_SOFTWARE']."\n".$text['core_config_view']['setup'][28].$textRewrite;
echo template::textarea('modulesPhp1',[
'value' => $listText
]); ?>
]); ?>
</div>
</div>
<div class="row">
@ -238,11 +237,18 @@ include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdm
</div>
</div>
<div class="row">
<div class="col2 offset5">
<?php echo template::button('buttonHtmlToPdf', [
'class' => 'buttontopdf',
'value' => $text['core_config_view']['setup'][35]
]); ?>
<div class="col12">
<div class="block">
<div class="blockTitle"><?php echo $text['core_config_view']['setup'][38];?></div>
<p> <?php echo $text['core_config_view']['setup'][39];?><a href="https://forum.deltacms.fr" target="_blank">https://forum.deltacms.fr</a> </p>
<p> <?php echo $text['core_config_view']['setup'][40];?> </p>
<p> <?php echo $text['core_config_view']['setup'][41];?> </p>
<div class="row">
<div class="col2">
<a href="javascript:void(0);" id="buttonHtmlToClipboard" name="buttonHtmlToClipboard" class="button"><?php echo $text['core_config_view']['setup'][35];?></a>
</div>
</div>
</div>
</div>
</div>
</div>

File diff suppressed because one or more lines are too long