agid])) {
foreach ($g_flag_thread[$flagid] as &$val) {
flag_thread_filter($val);
}
flag_thread_set($flagid, $g_flag_thread[$flagid]);
}
}
return $g_flag_thread[$flagid];
}
// 设置缓存 $key = flagid / $val = flagid下tid数组
function flag_thread_set($key, $val)
{
global $g_flag_thread;
FALSE === $g_flag_thread and $g_flag_thread = website_get('flag_thread');
empty($g_flag_thread) and $g_flag_thread = array();
$g_flag_thread[$key] = $val;
return website_set('flag_thread', $g_flag_thread);
}
// 删除flag下tid缓存
function flag_thread_delete_cache($flagid)
{
global $g_flag_thread;
FALSE === $g_flag_thread and $g_flag_thread = website_get('flag_thread');
empty($g_flag_thread) and $g_flag_thread = array();
if (isset($g_flag_thread[$flagid])) {
unset($g_flag_thread[$flagid]);
website_set('flag_thread', $g_flag_thread);
}
return TRUE;
}
// Delete by tid / 通过tid删除flag下的主题和对应flagid缓存
function flag_thread_delete_by_tid($tid)
{
global $g_flag_thread;
FALSE === $g_flag_thread and $g_flag_thread = website_get('flag_thread');
if (empty($g_flag_thread)) {
$g_flag_thread = array();
} else {
$thread = well_thread_read_cache($tid);
$arrlist = flag_thread_find($tid, 1, $thread['flags']);
$flagarr = $ids = array();
foreach ($arrlist as $val) {
$flagarr[] = $val['flagid'];
$ids[] = $val['id'];
if (isset($g_flag_thread[$val['flagid']])) unset($g_flag_thread[$val['flagid']]);
}
website_set('flag_thread', $g_flag_thread);
// 主键更新
flag_update($flagarr, array('count-' => 1));
// 主键删除
flag_thread_delete($ids);
}
return TRUE;
}
// 主键删除 通过$flagid删除flag下的主题和对应flagid缓存
function flag_thread_delete_by_flagid($flagid)
{
global $g_flag_thread;
FALSE === $g_flag_thread and $g_flag_thread = website_get('flag_thread');
$read = flag_read_cache($flagid);
if (empty($read)) return TRUE;
$arrlist = flag_thread_find_by_flagid($flagid, 1, $read['count']);
if (empty($arrlist)) return TRUE;
$flagarr = $ids = array();
$n = 0;
foreach ($arrlist as $val) {
++$n;
$flagarr[] = $val['flagid'];
$ids[] = $val['id'];
if (isset($g_flag_thread[$flagid])) unset($g_flag_thread[$flagid]);
}
website_set('flag_thread', $g_flag_thread);
// 主键更新
flag_update($flagarr, array('count-' => $n));
// 主键删除
$r = flag_thread_delete($ids);
return $r;
}
?>break;
}
$r = array('filesize' => filesize($tmpfile), 'width' => $des_width, 'height' => $des_height);;
copy($tmpfile, $destfile);
is_file($tmpfile) && unlink($tmpfile);
imagedestroy($img_dst);
return $r;
}
/**
* 图片裁切
*
* @param string $sourcefile 原图片路径(绝对路径/abc.jpg)
* @param string $destfile 裁切后生成新名称(绝对路径/rename.jpg)
* @param int $clipx 被裁切图片的X坐标
* @param int $clipy 被裁切图片的Y坐标
* @param int $clipwidth 被裁区域的宽度
* @param int $clipheight 被裁区域的高度
* image_clip('xxx/x.jpg', 'xxx/newx.jpg', 10, 40, 150, 150)
*/
function well_image_clip($sourcefile, $destfile, $clipx, $clipy, $clipwidth, $clipheight, $getimgsize = '')
{
global $conf;
empty($getimgsize) AND $getimgsize = getimagesize($sourcefile);
if (empty($getimgsize)) {
return 0;
} else {
$imgwidth = $getimgsize[0];
$imgheight = $getimgsize[1];
if (0 == $imgwidth || 0 == $imgheight) {
return 0;
}
}
if (!function_exists('imagecreatefromjpeg')) {
copy($sourcefile, $destfile);
return filesize($destfile);
}
switch ($getimgsize[2]) {
case 1 :
$imgcolor = imagecreatefromgif($sourcefile);
break;
case 2 :
$imgcolor = imagecreatefromjpeg($sourcefile);
break;
case 3 :
$imgcolor = imagecreatefrompng($sourcefile);
break;
case 15: // WBMP
$imgcolor = imagecreatefromwbmp($sourcefile);
break;
case 18: // WEBP
$imgcolor = imagecreatefromwebp($sourcefile);
break;
}
if (!$imgcolor) return 0;
$img_dst = imagecreatetruecolor($clipwidth, $clipheight);
imagefill($img_dst, 0, 0, 0xFFFFFF);
imagecopyresampled($img_dst, $imgcolor, 0, 0, $clipx, $clipy, $imgwidth, $imgheight, $imgwidth, $imgheight);
$tmppath = isset($conf['tmp_path']) ? $conf['tmp_path'] : ini_get('upload_tmp_dir') . '/';
'/' == $tmppath AND $tmppath = './tmp/';
$tmpfile = $tmppath . md5($destfile) . '.tmp';
imagejpeg($img_dst, $tmpfile, 75);
$n = filesize($tmpfile);
copy($tmpfile, $destfile);
is_file($tmpfile) && unlink($tmpfile);
return $n;
}
function well_image_ext($filename) {
return strtolower(substr(strrchr($filename, '.'), 1));
}
?>
【Win7旗舰版系统下载 官方MSDN原版】无第三方软件 纯净32&64位安装教程-软件玩家 - 软件改变生活!
近一周以来很多网友不是发帖就是在回复中询问各种关于Win7安装或者安装之后的各种问题的,介于论坛发布的第三方修改版本众多不能一一帮大家解决遇到的问题,故特开此贴。分享微软官方MSDN版的Win7旗舰版系统下载,分32位及64位。此次汇总为原生安装版系统汇总,无任何第三方插件、软件。当然,系统为Windows 7 Ultimate SP1。此贴分享镜像为官方原版,非破解直接激活版。
产品描述
《Windows 7旗舰版》集各版本功能之大全,Windows 7 旗舰版具备 Windows 7 家庭高级版和专业版的所有功能,同时增加了高级安全功能以及在多语言环境下工作的灵活性。《Windows 7 简体中文 旗舰版》使您的日常操作变得更快、更简单,《Windows 7 简体中文 旗舰版》可以帮助您更快、更简单地找到和打开最常使用的应用程序和文档,为您带来更便捷的电脑使用体验。
可以使用软碟通(UltraISO ) 下载地址:http://xiazai.zol/detail/6/50186.shtml
载入镜像之后,点击“启动”——“写入硬盘镜像”。
选择我们的U盘盘符,格式化之后,写入。
之后主板BIOS设置从U盘启动就可以安装了。
安装过程详细截图:
如果提示下图缺少驱动的话,请尝试这样的方法:
遇到这种问题的用户只要把U盘拔了重插即可。如果仍然没有解决,则可能是你将U盘插在扩展USB插槽中了,只要将优盘插在主USB插槽(例如台式机的机箱后侧直接连接在主板上的USB插槽)即可正常安装了。而若是笔记本电脑,可以尝试更换USB插槽来解决。
最后补充:除了使用U盘安装Windows 7会出现这种问题外,一些老式台式机在安装时也会出现类似问题,这主要是由于Windows 7安装程序无法识别IDE物理光驱或硬盘所造成的,Windows 7没集成南桥芯片的驱动,而主板上的IDE接口就是由南桥提供的。这种情况下下载你的主板南桥或者北桥芯片驱动,然后拷贝/解压到一个U盘中,在安装的时候插入U盘添加驱动即可。希望对大家有所帮助。
确定为旗舰版SP1的!
还可以使用OneKey Ghost来安装Win7,也挺快的,新版支持镜像安装了!
声明,此Win7镜像不包含破解激活,请自动搜索方法,仅为喜欢原生系统的朋友做一个汇总。其次,原生都为安装版的,非Ghost版,不带PE等其他小工具!
汇总下载地址如下:
Windows 7 Ultimate SP1版
32位版:http://pan.baidu/share/link?shareid=310980124&uk=2013592655 (百度网盘)
64位版:http://pan.baidu/share/link?shareid=314504836&uk=2013592655
标签:
下载
本文标签:
原版纯净旗舰版第三方软件教程
发表评论