This repository has been archived by the owner on May 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a1ebde3
commit 7d2243c
Showing
10 changed files
with
46 additions
and
19 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!DOCTYPE html> | ||
<html><head><meta charset="utf-8"><title>云颜文字·源商店:内容分发</title></head><body> | ||
<center>云颜文字·源商店<h1>内容分发</h1></center> | ||
<hr> | ||
<?php | ||
ini_set('display_errors', true); | ||
error_reporting(E_ALL); | ||
$starturl = "https://yoooooooooo.com/emoticon/store/"; | ||
$localdir = getcwd()."/"; | ||
$files = ["emostore.xml","emostore.json","emostore.ylt","updatetime.txt","phparray.txt","index.html"]; | ||
echo "<hr><p>开始下载资料到".$localdir."...</p>"; | ||
$debug = false; | ||
if (isset($_GET["debug"])) { | ||
$debug = true; | ||
} | ||
for ($i = 0; $i < count($files); $i++) { | ||
$nowfilename = $files[$i]; | ||
$url = $starturl.$nowfilename; | ||
$local = $localdir.$nowfilename; | ||
if (!$debug) { | ||
file_put_contents($local,file_get_contents($url)) | ||
or die("<hr><p><b>接收分发缓存 <a href=\"".$nowfilename."\" target=\"_blank\">".$nowfilename."</a> 失败。</b></p>"); | ||
echo "<hr><p><b>接收分发缓存 <a href=\"".$nowfilename."\" target=\"_blank\">".$nowfilename."</a> 成功。</b></p>"; | ||
} else { | ||
echo "<hr><p><b>显示读取缓存 <a href=\"".$nowfilename."\" target=\"_blank\">".$nowfilename."</a> :</b></p>"; | ||
echo "<p>需要复制文件 ".$url." 到 ".$local." :</p><p>"; | ||
echo file_get_contents($url)."</p>"; | ||
} | ||
} | ||
//兼容性: 1.0 商店路径 | ||
$cdir = getcwd()."/../"; | ||
$files = ["emostore.xml","emostore.json"]; | ||
$tfiles = ["store.xml","store.json"]; | ||
for ($i = 0; $i < count($files); $i++) { | ||
$nowfile = $localdir.$files[$i]; | ||
$tofile = $cdir.$tfiles[$i]; | ||
if (!$debug) { | ||
copy($nowfile,$tofile) | ||
or die("<hr><p><b>兼容分发缓存 ".$tfiles[$i]." 失败。</b></p>"); | ||
echo "<hr><p><b>兼容分发缓存 ".$tfiles[$i]." 成功。</b></p>"; | ||
} else { | ||
echo "<hr><p><b>需要兼容分发缓存 ".$nowfile." 到 ".$tofile." 。</b></p>"; | ||
} | ||
} | ||
//兼容性 结束 | ||
?></body></html> |
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.