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
$(document).ready(function() { | |
$('img[data^=maxsize_]').each(function(){ | |
var size = $(this).attr('data').substring(8); | |
max = Math.min(this.width, this.height); | |
$(this).css({'width':this.width/max*size,'height':this.height/max*size}); | |
}); | |
}); | |
jQuery(document).ready(function ($) { | |
$('.goods-detail-pic-thumbnail a').click(function(){ | |
$('#showimage').attr('src', $(this).children('img').attr('c_src')); |
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 | |
class ascii | |
{ | |
function decode($str) { | |
preg_match_all("/(\d{2,5})/", $str,$a); | |
$a = $a[0]; | |
foreach ($a as $dec){ | |
if ($dec < 128) { | |
$utf .= chr($dec); | |
} else if ($dec < 2048) { |
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 | |
//==================================================== | |
// FileName: cache.inc.php | |
// Summary: update cache to file or database | |
// Author: millken(迷路林肯) | |
// LastModifed:2009-2-15 | |
// copyright (c)2009 [email protected] | |
//==================================================== | |
if(!defined('OK'))exit(__FILE__.'Access Denied'); | |
function updateConfig(){ |
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 | |
//==================================================== | |
// FileName: cache.inc.php | |
// Summary: update cache to file or database | |
// Author: millken(迷路林肯) | |
// LastModifed:2009-2-15 | |
// copyright (c)2009 [email protected] | |
//==================================================== | |
if(!defined('OK'))exit(__FILE__.'Access Denied'); | |
function updateConfig(){ |
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
/* | |
**************图片预加载插件****************** | |
///作者:没剑(2008-06-23) http://regedit.cnblogs.com | |
///参数设置: | |
scaling 是否等比例自动缩放 | |
width 图片最大高 | |
height 图片最大宽 | |
loadpic 加载中的图片路径 | |
*/ | |
jQuery.fn.LoadImage=function(scaling,width,height,loadpic){ |
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
修改时区 | |
找到相应的时区文件 /usr/share/zoneinfo/Asia/Shanghai | |
替换当前的/etc/localtime。 | |
修改/etc/sysconfig/clock文件的内容为: | |
ZONE="Asia/Shanghai" | |
UTC=false |
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 | |
//==================================================== | |
// FileName: webremote.php | |
// Summary: Web Service | |
// Author: millken | |
// LastModifed:2009-06-19 9:51 | |
// copyright (c)2009 [email protected] | |
//==================================================== | |
error_reporting(7); | |
if ( !function_exists( "json_decode" ) ) |
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 | |
class Scrape { | |
public $headers = array(); | |
public $result; | |
public $error; |
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
jQuery(function () { | |
if (!(typeof isStating == "undefined" || !isStating)) { | |
var a = $("#hd .header").eq(0).offset().left; | |
$(window).resize(function () { | |
a = $("#hd .header").eq(0).offset().left | |
}); | |
$(document).mousedown(function (c) { | |
var d = {}; | |
d.r = encodeURIComponent(window.location.href); | |
c = c || window.event; |
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 | |
/* | |
*a small MVC framework written by [email protected] | |
*last modifed 2010-8-31 17:43 | |
*/ | |
if(!defined('__controller_path__')) | |
define('__controller_path__', dirname(__FILE__) . '/controller/'); | |
if(!defined('__model_path__')) | |
define('__model_path__', dirname(__FILE__) . '/model/'); | |
if(!defined('__config_path__')) |
OlderNewer