You'll need:
- A web server (hosting static sites)
- Your GDPS
- A brain
Note
Latest versions of DindeGDPS now support web hosts that add blank new lines! GitHub Pages can now be used!
<?php | |
function xorCipher($string, $key) { | |
$keyLength = strlen($key); | |
$result = ''; | |
for ($i = 0; $i < strlen($string); $i++) { | |
$char = $string[$i]; | |
$keyChar = $key[$i % $keyLength]; | |
$result .= chr(ord($char) ^ ord($keyChar)); |
Notification.requestPermission().then(permission => { | |
if(permission !== "granted") return; // User refused notifications | |
const image = "https://dgdps.ix.tc/gd.png"; // Logo for notification | |
const target = "https://dgdps.us.to"; // Website to open if user clicks on it | |
const title = "Test"; // Notification title | |
const msg = "Salut"; // Notification body message | |
const notify = new Notification(title, { body: msg, icon: image }); // Builds notification | |
notify.onclick = function () { | |
window.open(target); // Open site | |
notify.close(); // Closes notification (x) |