This file contains hidden or 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 getPHPCurrentUrl(){ | |
$scheme = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http'; | |
$port_str = $_SERVER['SERVER_PORT'] != '80' ? ':' . $_SERVER['SERVER_PORT'] : ''; | |
$url = $scheme . '://' . $_SERVER['HTTP_HOST'] . $port_str . $_SERVER["REQUEST_URI"]; | |
return $url; | |
} | |
function tt_rewrite_short_link(){ | |
// 短链接前缀, 如https://www.webapproach.net/go/xxx中的go,为了便于识别短链接 | |
$prefix = ot_get_option('hop_links_baseurl','go'); |
This file contains hidden or 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 | |
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."wp-load.php"); | |
/** | |
* 验证码 | |
* Class Captcha | |
*/ | |
class Captcha{ | |
/** |
This file contains hidden or 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 | |
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."wp-load.php"); | |
/** | |
* 验证码 | |
* Class Captcha | |
*/ | |
class Captcha{ | |
/** |
This file contains hidden or 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
var nodemailer = require('nodemailer'); | |
var mailerOptions = { | |
transport: "SMTP", | |
host: 'smtp.parser.cc', | |
port: 587, | |
secure: false, | |
requireTLS: true, | |
ignoreTLS:false, | |
requiresAuth: true, |
This file contains hidden or 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
window.addEventListener('beforeunload', onbeforeunload); | |
function onbeforeunload(e) { | |
console.log('>>>> onbeforeunload called'); | |
e.returnValue = "false"; | |
}; |
This file contains hidden or 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
#!/bin/sh | |
# | |
# Download and run the latest release version of the Certbot client. | |
# | |
# NOTE: THIS SCRIPT IS AUTO-GENERATED AND SELF-UPDATING | |
# | |
# IF YOU WANT TO EDIT IT LOCALLY, *ALWAYS* RUN YOUR COPY WITH THE | |
# "--no-self-upgrade" FLAG | |
# | |
# IF YOU WANT TO SEND PULL REQUESTS, THE REAL SOURCE FOR THIS FILE IS |
This file contains hidden or 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 jetpack from 'fs-jetpack'; | |
// The variables have been written to `env.json` by the build process. | |
var env = jetpack.cwd(__dirname).read('env.json', 'json'); | |
export default env; | |
// or |
This file contains hidden or 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
USE DBNAME; | |
SELECT | |
sys.columns.name AS ColumnName, | |
sys.tables.name AS TableName | |
FROM | |
sys.columns | |
JOIN sys.tables | |
ON | |
sys.columns.object_id = sys.tables.object_id | |
WHERE |
This file contains hidden or 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> | |
<title>Loading</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
div#preload { | |
margin: auto; | |
position: fixed; |
OlderNewer