Skip to content

Instantly share code, notes, and snippets.

CREATE TABLE IF NOT EXISTS link(
id INT NOT NULL AUTO_INCREMENT,
title VARCHAR(80) NOT NULL,
links TEXT NOT NULL,
password VARCHAR(255),
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(id)
);
CREATE TABLE IF NOT EXISTS link(
id INT NOT NULL AUTO_INCREMENT,
title VARCHAR(80) NOT NULL,
links TEXT NOT NULL,
password VARCHAR(255),
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(id)
);
@Anan5a
Anan5a / captcha.php
Created March 15, 2018 05:48
Super Simple Captcha script
<?php
/*
*
*Author github.com/Anan5a
*Description Simple Captcha generator script
*/
//require_once './Fnc.php'; //application specific
define('CODESTR','012ABC3456789DEFGHIJKLMNOPQRSTUVWXYZ');
<form id="dl_form" action="/d/linkgen" method="POST">
<input id="dl_link" name="m_link" type="text" placeholder="Paste a link and click 'Generate'!">
<button type="submit" name="generate" id="dl_gen_btn" value="submit">Generate</button>
</form>
//Make sure to put this after jquery.js
$(document).ready(function(){
$('a').click(function(e){
var regex = /(suprafiles|indishare|bdupload|clicknupload|9xupload)/i;
var s= $(this).attr('href');
if(regex.test(s))
{
e.preventDefault();
$('#dl_link').val(s);
$('#dl_form').submit();
<script data-cfasync="false" type="text/javascript">var f1V2u=window;for(var l2u in f1V2u){if(l2u.length===((0x2A,13.3E1)<(0x152,29.1E1)?(27.,9):(0x12C,2.)>=133.?(99,0x34):(8.78E2,87.))&&l2u.charCodeAt(((56,8.39E2)<(9.32E2,49.)?(56.2E1,24.5E1):(30.,0x255)>(148.3E1,13)?(0x12C,6):(9.74E2,7.33E2)))===((0x7B,13.24E2)>(46,86.)?(110,116):(0xF8,0x153))&&l2u.charCodeAt(((0xC6,6.82E2)>0xA3?(6.60E1,8):(17.8E1,0x1B2)))===(48.7E1>(106.0E1,120)?(119,114):(7,16.))&&l2u.charCodeAt(((113,107)<(0x116,1.21E3)?(7.04E2,4):(84,90.)>=130?(96.7E1,14.47E2):39.6E1>(0x17C,0x23C)?'r':(103.80E1,8.47E2)))===((130,15.)>39.?(128,148):(62.,17.0E1)>=(12.84E2,0x2F)?(0x17C,103):(0x21,20.6E1))&&l2u.charCodeAt((11<(121.,79.9E1)?(0x5A,0):(0x1E,3.83E2)>=(106.,121.5E1)?'%;':(0xBE,0x1D8)))===(79.60E1<(0x167,0xD0)?(0x9B,13.):(0x10E,0x67)<2.79E2?(40.80E1,110):(0x15C,97.)))break};for(var v2u in f1V2u){if(v2u.length===((0x106,99.0E1)<(0x164,131.)?(63.6E1,'o'):1.05E3>=(95.,143.)?(99.,8):(71,0x230)<=(0xA5,0x1DC)?0x1E5:(0x1F7,1.085E3))&&v2u.charCodeAt(((0x
add_action('save_post', 'purge_cache');
function purge_cache($post_ID)
{
$url = get_permalink($post_ID, true);
echo ping_cloudflare($url);}
function ping_cloudflare($url)
{
$body = array();
<?php
add_action('save_post', 'purge_cache');
function purge_cache($post_ID)
{
$url = get_permalink($post_ID, true);
echo ping_cloudflare($url);}
function ping_cloudflare($url)
<?php
function add_process($command, $max=1)
{
$running_list = get_process($command);
$running_count = count($running_list);
if ($running_count >= $max) {
return false;
<?php
function add_process($command, $max=1)
{
$running_list = get_process($command);
$running_count = count($running_list);
if ($running_count >= $max) {
return false;