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 | |
if(!isset($_POST['submit'])){ | |
exit('非法访问!'); | |
} | |
session_start(); | |
include ("./manyoudb/conn.php"); | |
//开始获取ip | |
$ip=get_ip(); | |
function get_ip() { | |
if(getenv('HTTP_CLIENT_IP')) $client_ip = getenv('HTTP_CLIENT_IP'); |
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
#################################################### | |
###欢迎您选用 WWW.HOST700.com VPS 低价 稳定 实惠 ### | |
#################################################### | |
#开始先配置shadowsocks这个就大概说下 | |
git clone git://github.com/clowwindy/shadowsocks.git | |
#然后进入 | |
cd shadowsocks | |
#然后配置下config.json文件 | |
vim config.json #具体的配置自己看很简单 | |
#运行服务端 |
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
####nginx 反向代理 HOST700.COM | |
#### 先修改 nginx.conf文件 | |
server | |
{ | |
listen 80; | |
server_name 你的域名; | |
location / { | |
proxy_pass http://leekfar.yundar.com/; | |
proxy_redirect off; |
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
/** | |
* Copyright (c) 2011 Muh Hon Cheng | |
* Created by honcheng on 28/4/11. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files (the | |
* "Software"), to deal in the Software without restriction, including | |
* without limitation the rights to use, copy, modify, merge, publish, | |
* distribute, sublicense, and/or sell copies of the Software, and to | |
* permit persons to whom the Software is furnished to do so, subject |
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
服务器资源由 www.host700.com 提供 欢迎选购host700 vps | |
服务器ip:198.35.44.61 | |
服务器端口:8338 | |
服务密码:host700 | |
加密方式:aes-256-cfb" | |
客户端下载: http://sourceforge.net/projects/shadowsocksgui/files/dist/ #注意里面有win 跟 mac linux的是什么系统就选什么就好了 |
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
/** | |
* 异步下载图片 | |
*/ | |
class ImageDownloaderTask extendsAsyncTask<String, Void, Bitmap> { | |
private static final int IO_BUFFER_SIZE= 4 * 1024; | |
private String url; | |
private finalWeakReference<ImageView> imageViewReference; | |
public ImageDownloaderTask(ImageViewimageView) { | |
imageViewReference = newWeakReference<ImageView>(imageView); | |
} |
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 include 'header.php'; ?> | |
<script type="text/javascript" language="javascript"> | |
function ChangeTxt(obj){ | |
var val = obj.options[obj.selectedIndex].value; //获取下接框选择的值 | |
document.getElementById("menu").value=val; //将获取的值填写到文本框 | |
} | |
</script> | |
<form action="action.php?kind=<?php echo $_GET["kind"]?> | |
&come=addziliao" method="post"> | |
<div class="container"> |
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
Debian with Popobox v1.0 | |
原文链接:http://pear.xiaojiublog.net/2013/11/debian-with-popobox-v1-0/ | |
## 部分内容由 felix021 修正、简化 ## | |
1: 制作Debian系统 | |
mkdir chroot && cd chroot | |
sudo debootstrap --foreign --arch=armel wheezy debian http://ftp.debian.org/debian | |
打包: |
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 | |
$url = 'https://my.frantech.ca/cart.php?a=add&pid=1'; | |
$content = file_get_contents($url); | |
if (preg_match("/Out of Stock/i", $content)) { | |
echo "我擦,没货!"; | |
} else { | |
echo "我勒个去,终于有货了!"; | |
sendMail(); |
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
db.<?php | |
require './lib/dibi.min.php'; | |
// DB | |
try { | |
$dsn = new PDO("mysql:host=localhost;dbname=runtime", 'root', '****', array( | |
PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8" | |
)); | |
dibi::connect(array( |