Top Menu

AF Tools update to V1.2

今天在更新店铺的时候发现一个问题,就是抓取到的店铺其实已经没有了,在获取店铺id的时候报错,遂加入判断,没有找到指定div就跳过循环。

if($html->find('#LineZing',0)) $e = $html->find('#LineZing',0)->getAttribute ('shopid'); else continue; $shopid = $e;//}

Continue Reading 0

相声

这几天在看相声瓦舍的相声,感觉和国内的相声差别很大,首先是表现形式更接近于舞台剧,没有明显的捧逗分工。其次是很多笑点的逻辑都比较好,都倾向于表演

Continue Reading 0

上海建工LOGO

前段时间做了一个展板的设计,用到了上海建工的LOGO,由于网上没有现成的用于印刷的ppi等级的图片,只能自己弄,尝试了很久,才研究出来,现在整理一下,提供出来。

Continue Reading 2

Imagevue 去除未授权提示

由于Imagevue是一款非常棒的php相册,所以一直在使用,但是没有购买许可在上方会有一个Imagevue的广告,所以一直使用PHP.NULL-DGT的破解版,但是有一个缺点就是更新不及时,而且下载比较难找,http://xtu2.com/有提供最新的Imagevue下载,遂准备通过Beyond Compare 3对比,自己破解。

对比发现主要的差异在functions.inc.php和imagevue-check.php

首先是iv-includes\include\functions.inc.php,对比发现其中515行的authCheck()这个函数主要负责进行授权检查工作,检查的方法是通过cookie的authcheck参数,在函数开头手动设置cookie,并返回true,骗过检查程序。

function authCheck() { setcookie('authCheck', 'good'); $_COOKIE['authCheck'] = 'good'; return true; if (false == strpos($_SERVER['SERVER_NAME'], '.') || preg_match('/^[\d\.]+$/', $_SERVER['SERVER_NAME'])) { return true; } if (!isset($_COOKIE['authCheck'])) { $url = getHost() . $_SERVER['REQUEST_URI']; if (false !== strpos($url, '?')) { $url = substr($url, 0, strpos($url, '?')); } $options = array( 'http' => array( 'method' => 'POST', 'header' => array("Content-type: application/x-www-form-urlencoded"), 'content' => http_build_query(array( 'v' => '2.8.10.3', 'url' => $url, )), 'timeout' => 3, 'ignore_errors' => true ) ); $context = stream_context_create($options); ivErrors::disable(); $response = file_get_contents('http://auth.imagevuex.com/check.php', false, $context); ivErrors::enable(); if (!headers_sent()) { setcookie('authCheck', $response); } $_COOKIE['authCheck'] = $response; } return in_array($_COOKIE['authCheck'], array('good', false)); }

Continue Reading 9

Powered by WordPress. Designed by WooThemes