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
793747c
commit a1ebde3
Showing
10 changed files
with
108 additions
and
58 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,33 @@ | ||
# 云颜文字·源商店 | ||
|
||
云颜文字源商店的后台管理脚本,适用于 PHP7 。 | ||
|
||
## 功能说明 | ||
|
||
- emostore_admin_add_do.php:添加数据 | ||
- emostore_admin_alldata.php:数据库内容管理 | ||
- emostore_admin_cache.php:创建APP接口缓存 | ||
- emostore_admin_delete_do.php:删除数据 | ||
- emostore_admin_edit_do.php:修改数据 | ||
- emostore_admin_login_do.php:用户登录信息 | ||
- emostore_admin_login_ui.php:用户登录页面 | ||
- emostore_admin_loginstatus.php:检查登录状态 | ||
- emostore_admin_logout.php:登出用户 | ||
- emostore_admin_md5test.php:(测试用)MD5测试 | ||
- emostore_admin_sqlsetting.php:数据库连接设定 | ||
- emostore_user_regcheck.php:注册新用户 | ||
- index.php:自动登录和跳转 | ||
- login.html:登录页 | ||
- pagenumber.php:页码分割 | ||
- signup.html:注册新用户 | ||
- sqlnote.sql:数据库命令笔记 | ||
- validate_code.class.php、validate_image.php:验证码库 | ||
|
||
## 操作步骤 | ||
|
||
- 前往后台管理服务器中的 admin.php 页。 | ||
- 登录并在各模块中进行源条目的 增、删、改、查 。 | ||
- 点击刷新缓存,emostore.xml、emostore.json、emostore.ylt、updatetime.txt、phparray.txt、index.html 将被创建。 | ||
- 点击分发,这些内容将被复制到生产服务器。 | ||
|
||
备注:后台管理页面目前没有头像上传功能,目前请用FTP手动传图代替。 |
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,13 +1,42 @@ | ||
<?php | ||
$db_host="uuumoedb.mysql.rds.aliyuncs.com:3838"; | ||
$db_user="emoticonuser"; | ||
$db_password="t7_PBTWzTbnUG0pEHUFcmEbN8zPhM_TS"; | ||
$db_name="emoticonstore"; | ||
$user_table="emostoreadmin"; | ||
$data_table="emostore"; | ||
$query="set names 'utf-8'"; | ||
$keys = ["id","name","iconurl","postedon","introduction","creator","creatorurl","server","serverurl","dataformat","installurl","codeurl","usergroup"]; | ||
$keynames = ["内部ID(只读)","颜文字源名称","图标网址","登记日期","简介","维护者","维护者网站","服务器","服务器提供网址","云颜文字数据格式","软件调用网址","源代码网址","呈现给用户组"]; | ||
//<?php echo $footer; ? > | ||
$footer="<hr><center>源商店管理员后台 © 云颜文字团队 2015.<br>源商店 by 神楽坂雅詩,0wew0,神楽坂紫,KT.<br><a href=\"http://www.miitbeian.gov.cn/\" target=\"_blank\" title=\"此处为域名拥有者资料,并非内容提供者信息,请勿使用这些信息干扰他的生活,谢谢理解。如有问题请联系[email protected]。\">京ICP备15023313号</a></center>"; | ||
$footer="<hr><center>源商店管理员后台 © 云颜文字团队 2015.<br>源商店 by 神楽坂雅詩,0wew0,神楽坂紫,KT</center>"; | ||
|
||
function db_connect() { | ||
$db_host="_____"; | ||
$db_port=3000; | ||
$db_user="_____"; | ||
$db_password="_____"; | ||
$db_name="_____"; | ||
|
||
/* $con=mysql_connect($db_host,$db_user,$db_password,$db_name,$db_port); | ||
$sqlerrno = mysqli_connect_errno($con); | ||
if ($sqlerrno) { | ||
die('数据库操作失败。'); | ||
} | ||
return $con; */ | ||
|
||
/* $con = mysqli_init(); | ||
mysqli_real_connect($con,$db_host,$db_user,$db_password,false,$db_port); | ||
mysqli_errno($con)!=0 && die('数据库连接失败。'.$mysqli->error); | ||
if (!$con) { | ||
die('数据库操作失败。'.$mysqli->error); | ||
} | ||
if (!@mysqli_select_db($con,$db_name)) { | ||
die('无法使用数据库。'.$mysqli->error); | ||
} | ||
return $con; */ | ||
|
||
$con = mysqli_connect($db_host.":".$db_port,$db_user,$db_password,$db_name); | ||
if (mysqli_connect_errno($con)) | ||
{ | ||
echo "连接数据库失败: ".mysqli_connect_error(); | ||
} | ||
return $con; | ||
} | ||
?> |
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
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