This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Script à insérer dans une page statique de PluXml pour vérifier les fonctions critiques de PHP | |
* encore actives. | |
* les fonctions à désactiver peuvent être listées dans la directive disable_functions du fichier php.ini | |
* | |
* https://pluxml.org/ | |
* https://forum.pluxml.org/discussion/7232/pluxml-5-8-8-released | |
* https://www.php.net/manual/fr/ini.core.php#ini.disable-functions | |
* https://www.tarlogic.com/blog/disable_functions-bypasses-and-php-exploitation/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gc | |
import uos | |
from flashbdev import bdev | |
from machine import Pin, Timer, Signal | |
from time import sleep_ms | |
# For ESP32-C3 LilyGo-T-OI-PLUS | |
LED_IN = Pin(3, Pin.OUT, 1) | |
LED_IN.off() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if(!defined('PLX_ROOT')) exit; ?> | |
<?php if($plxShow->plxMotor->plxRecord_coms): ?> | |
<?php | |
/* | |
* Rajouter la règle suivante dans theme.css : | |
.comment.avatar { | |
display: grid; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<?php | |
// https://forum.pluxml.org/discussion/6935/image-personnalisee-pour-chaque-commentaire | |
// https://fr.wikipedia.org/wiki/Armorial_des_communes_de_France | |
// Demo : https://kazimentou.fr/divers/parthenay/ | |
// wget -x -B https://armorial.cc-parthenay-gatine.fr/data/medias/ -i parthenay.lst | |
const URL_SOURCE = 'https://armorial.cc-parthenay-gatine.fr/'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!defined('PLX_ROOT')) { exit; } | |
if(version_compare(PLX_VERSION, '6.0.0', '<')) { | |
include_once PLX_CORE . 'lib/class.plx.token.php'; | |
if($plxShow->plxMotor->aConf['capcha']) { | |
include_once PLX_CORE . 'lib/class.plx.capcha.php'; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict' | |
const $ = function(id) { return document.getElementById(id);} | |
$('setTime').onclick = function(event) { | |
const d = new Date(); | |
ws.send('setTime=' + d.getTime()); | |
}; | |
$('relayBtn').onclick = function(event) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thead, | |
tbody tr:not(.new) td:first-of-type:not([colspan]), | |
table[data-rows-num] tr[draggable] td:first-of-type, | |
form .sidebar { | |
background-color: #e0e0e0; | |
color: #000; | |
} | |
.menu.expanded li { | |
margin-left: 0.75rem; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=Edge" /> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<title>sans titre</title> | |
<style> | |
* { margin: 0; padding: 0; } | |
table { width: 100%; border-collapse: collapse; border: 1px solid #444; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A modifier dans le fichier core/lib/class.plx.admin.php | |
public function sendLostPasswordEmail($loginOrMail) { | |
if (!empty($loginOrMail) and plxUtils::testMail(false)) { | |
foreach($this->aUsers as $user_id => $user) { | |
if(!$user['active'] or $user['delete'] or empty($user['email'])) { continue; } | |
if($user['login'] == $loginOrMail OR $user['email'] == $loginOrMail) { | |
// Attention à l'unicité des logins !!! | |
// token and e-mail creation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
''' | |
Listen on Ka-Radio your .pls or .m3u file from : | |
- your computer | |
- https://laradiofm.com (choose pls format for streaming) | |
- https://directory.shoutcast.com/ (choose downloading) | |
- https://www.internet-radio.com | |
- https://dirble.com |
NewerOlder