This is an OpenPGP proof that connects my OpenPGP key to this Github account. For details check out https://keyoxide.org/guides/openpgp-proofs
[Verifying my OpenPGP key: openpgp4fpr:AED52F32870CB1D3B7A4670DAB75E92968566C6E]
Verifying that I control the following Nostr public key: npub1lqulkec5tx98yv7snk759tuzejtcr5865468fuvyrtuskhynpyush5qaf3 |
did:3:kjzl6cwe1jw147srb275qwwp3il249myw671lvgncyqb64ctkwstpn2m36rz8oo |
This is an OpenPGP proof that connects my OpenPGP key to this Github account. For details check out https://keyoxide.org/guides/openpgp-proofs
[Verifying my OpenPGP key: openpgp4fpr:AED52F32870CB1D3B7A4670DAB75E92968566C6E]
<?php | |
$ldap_dn = "uid=".$_POST["username"].",dc=example,dc=com"; | |
$ldap_password = $_POST["password"]; | |
$ldap_con = ldap_connect("ldap.forumsys.com"); | |
ldap_set_option($ldap_con, LDAP_OPT_PROTOCOL_VERSION, 3); | |
if(@ldap_bind($ldap_con,$ldap_dn,$ldap_password)) | |
echo "Authenticated"; |
<?php | |
$ldap_dn = "cn=read-only-admin,dc=example,dc=com"; | |
$ldap_password = "password"; | |
$ldap_con = ldap_connect("ldap.forumsys.com"); | |
ldap_set_option($ldap_con, LDAP_OPT_PROTOCOL_VERSION, 3); | |
if(ldap_bind($ldap_con, $ldap_dn, $ldap_password)) { |
<?php | |
$ldap_dn = "cn=read-only-admin,dc=example,dc=com"; | |
$ldap_password = "password"; | |
$ldap_con = ldap_connect("ldap.forumsys.com"); | |
ldap_set_option($ldap_con, LDAP_OPT_PROTOCOL_VERSION, 3); | |
if(ldap_bind($ldap_con, $ldap_dn, $ldap_password)) { |
PHP | |
// place here your database connection code | |
if (isset($_GET['id']) && intval($_GET['id']) > 0) { | |
$delay = 12*3600; // change here the number of hours how often a unique click must be counted | |
$sql_check = sprintf("SELECT COUNT(*) AS test FROM clicks WHERE link_id = %d AND visitor_ip = '%s' AND UNIX_TIMESTAMP(click_at) + %d > UNIX_TIMESTAMP(NOW())", $_GET['id'], $_SERVER['REMOTE_ADDR'], $delay); | |
if (mysql_result(mysql_query($sql_check), 0, "test") == 0) { | |
$country_sql = "SELECT country FROM ip2nation WHERE ip < INET_ATON('".$_SERVER['REMOTE_ADDR']."') ORDER BY ip DESC LIMIT 0,1"; | |
$country = mysql_result(mysql_query($country_sql), 0, "country"); |
#!/usr/bin/env python | |
import requests | |
from os import environ | |
# Mastodon information | |
token = "another32bytehexdump" | |
postURL = 'https://mastodon.cloud/api/v1/statuses' | |
# The snowman prefix. |
<?php | |
function auth($username, $password, $domain = 'RABOTA', $endpoint = 'ldap://rabota.local', $dc = 'dc=rabota,dc=local') { | |
$ldap = @ldap_connect($endpoint); | |
if(!$ldap) return false; | |
ldap_set_option($ldap, LDAP_OPT_PROTOCOL_VERSION, 3); | |
ldap_set_option($ldap, LDAP_OPT_REFERRALS, 0); | |
$bind = @ldap_bind($ldap, "$domain\\$username", $password); | |
if(!$bind) return false; |
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 |