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 | |
//----------------------------- custom block ------------------------- | |
//檢查檔案大小 | |
$size=0; | |
if(is_array($_FILES)) | |
foreach($_FILES as $key=>$file){ | |
$ext = substr($file['name'],-4); | |
$m = substr(md5($file['name']),0,3); | |
$name=date(YmdHis).$m.$ext; //給定你想要的檔案名稱 |
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
<div>.. | |
..</div> |
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
/<div>.*?<\/div>/ims |
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
/<div>(\n|\r|.)*?<\/div>/ig |
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
/<div>[\n\r.]*?<\/div>/ig |
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
application: your_application_name | |
version: 2 | |
runtime: python | |
api_version: 1 | |
handlers: | |
# 指定這個目錄為靜態 | |
- url: /tools | |
static_dir: tools |
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
{ | |
list: "<ul><li><pre><span class="cursor focus">●</span> 15{1}{4}{14}?{5}{2} 3/21 {10}中央社{8} {11}{9}{14}"{12}{6}{13}{3}{4}{14}?{5}"{6}>連勝文遭槍擊案 地院5月宣判{8}{8} {7} | |
{0} 16{1}{4}{15}?{5}{2} 3/21 {10}中廣新聞網 {11}{9}{15}"{12}{6}{13}{3}{4}{15}?{5}"{6}>廣告不實標示錯誤 中興保全遭罰90萬{8} {7} | |
{0} 17{1}{4}{16}?{5}{2} 3/21 {10}中央社{8} {11}{9}{16}"{12}{6}{13}{3}{4}{16}?{5}"{6}>馬總統:TIFA卡在美牛問題{8}{8}{8}{7} | |
{0} 18{1}{4}{17}?{5}{2} 3/21 {10}中央社{8} {11}{9}{17}"{12}{6}{13}{3}{4}{17}?{5}"{6}>博鰲:台灣競爭力亞洲第2{8}{8}{8} {7} | |
{0} 19{1}{4}{18}?{5}{2} 3/21 {10}中廣新聞網 {11}{9}{18}"{12}{6}{13}{3}{4}{18}?{5}"{6}>油電人事成本太高? 施顏祥:燃料才最高{8} {7} | |
{0} 20{1}{4}{19}?{5}{2} 3/21 {10}NOWnews{8} {11}{9}{19}"{12}{6}{13}{3}{4}{19}?{5}"{6}>女神卡卡一票難求 驚爆內線偷跑?{8}{8}{7} | |
{0} 21{1}{4}{20}?{5}{2} 3/21 {10}中央社{8} {11}{9}{20}"{12}{6}{13}{3}{4}{20}?{5}"{6}>昶昕:未賣硫酸銅給飼料商{8}{8}{8}{7} | |
{0} 22{1}{4}{21}?{5}{2} 3/21 {10}中央社{8} {11}{9}{21}"{12}{6}{13}{3}{4}{21}?{5}"{6}>免試入學 方文山:別擔心太多{8}{8} {7} | |
{0} 23{1}{4}{22}?{5}{2} 3/21 {10}路透社{8} {11}{9}{22}"{ |
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 tmpl(tpl, pattern) | |
{ | |
var find; | |
for(var i=0, n=pattern.length; i < n; i++) | |
{ | |
find = new RegExp("\\{"+i+"\\}","g"); | |
tpl = tpl.replace(find, pattern[i]); | |
} | |
return tpl; | |
} |
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
<a href="http://tw.promo.yahoo.com/2009mall/bank_1125/all-00-120501-mid-popcht.htm"><img border=0 src="http://tw.bid.yimg.com/pimg1/ce/f3/beautyfashion-headscarf-0451xf1x0948x0100-m.jpg" /></a> |
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
javascript:$("a[name=attachimg]").trigger('click'); |