($sid) { session_delete(array('sid' => $sid)); session_data_delete(array('sid' => $sid)); return TRUE; } function sess_gc($maxlifetime) { global $time; $expiry = $time - $maxlifetime; $arrlist = session_find(array('last_date' => array('<' => $expiry)), array(), 1, 10000, '', array('sid', 'bigdata', 'last_date')); if (!$arrlist) return TRUE; $expiry = $time - 21600; // 超6小时未提交丢弃上传图片和附件 $sidarr = array(); foreach ($arrlist as $val) { if ($val['last_date'] > $expiry && $val['bigdata']) continue; $sidarr[] = $val['sid']; } if (empty($sidarr)) return TRUE; session_delete(array('sid' => $sidarr)); session_data_delete(array('sid' => $sidarr)); return TRUE; } function sess_start() { global $conf, $sid, $g_session; ini_set('session.name', $conf['cookie_pre'] . 'sid'); ini_set('session.use_cookies', TRUE); ini_set('session.use_only_cookies', TRUE); ini_set('session.cookie_domain', $conf['cookie_domain']); // 为空则表示当前目录和子目录 ini_set('session.cookie_path', $conf['cookie_path']); // 打开后只有通过 https 才有效 ini_set('session.cookie_secure', FALSE); ini_set('session.cookie_lifetime', 8640000); // 打开后 js 获取不到 HTTP 设置的 cookie, 有效防止 XSS,对于安全很重要,除非有 BUG,否则不要关闭。 ini_set('session.cookie_httponly', TRUE); // 活动时间 ini_set('session.gc_maxlifetime', $conf['online_hold_time']); // 垃圾回收概率 = gc_probability/gc_divisor ini_set('session.gc_probability', 1); // 垃圾回收时间 5 秒,在线人数 * 10 / 每1000个请求回收一次垃圾 ini_set('session.gc_divisor', 1000); session_set_save_handler('sess_open', 'sess_close', 'sess_read', 'sess_write', 'sess_destroy', 'sess_gc'); // register_shutdown_function 会丢失当前目录,需要 chdir(APP_PATH) $conf['url_rewrite_on'] > 1 and function_exists('chdir') and chdir(APP_PATH); // 这个必须有,否则 ZEND 会提前释放 $db 资源 register_shutdown_function('session_write_close'); session_start(); $sid = session_id(); return $sid; } // 刷新页面清理附件缓存 废弃 function sess_clear_attach() { global $sid, $time; $arr = session_read($sid); if (!$arr || 0 == $arr['bigdata']) return TRUE; session_update($sid, array('bigdata' => 0, 'last_date' => $time)); session_data_delete(array('sid' => $sid)); return TRUE; } function online_count() { return session_count(); } function online_list_cache() { static $cache = array(); $key = 'online_list'; if (isset($cache[$key])) return $cache[$key]; $cache[$key] = cache_get($key); if (NULL === $cache[$key]) { $cache[$key] = session_find(array('uid' => array('>' => 0)), array('last_date' => -1), 1, 1000); foreach ($cache[$key] as &$online) { $user = user_read_cache($online['uid']); $online['username'] = $user['username']; $online['gid'] = $user['gid']; $online['ip_fmt'] = safe_long2ip($online['ip']); $online['last_date_fmt'] = date('Y-n-j H:i', $online['last_date']); } cache_set('online_list', $cache[$key], 300); } return $cache[$key]; } function online_user_list_cache() { static $cache = array(); $key = 'online_user_list'; if (isset($cache[$key])) return $cache[$key]; $cache[$key] = cache_get($key); if (NULL === $cache[$key]) { $cache[$key] = session_find(array('uid' => array('>' => 0)), array(), 1, 1000, 'uid', array('uid')); cache_set('online_user_list', $cache[$key], 300); } return $cache[$key]; } ?>高中英语单词天天记witness素材|江阴雨辰互联

高中英语单词天天记witness素材

高中英语单词天天记witness素材


2024年4月7日发(作者:)

精品资料

· witness

· v. ['wɪtnəs] ( witnesses; witnessed; witnessing )

·

· 双解释义

·

vt.

亲眼看见; 目击 see or notice (sth) by being present when it happens

·

vt.

作证,证明 evidence (in a law court); give evidence of

·

vt.

表示; 说明 show; be a sign or proof of

· 基本要点

s的基本意思是“亲眼看见”“目击”某事件的发生,也可表示“作

证”“证明”,还有“表示”“说明”的意思。

s一般用作及物动词,接名词、代词、动名词或that从句作宾语。

· 词汇搭配

~+名词

witness one's signing documents 在…签署的文件旁连署

witness sb's will 在某人的遗嘱上签名作证

~+介词

witness against 对…作不利的证明

witness for 对…作有利的证明

witness to 对…作证,证明,表明

· 常用短语

精品资料

witness to(v.+prep.)

▲witness to sth/v-ing

1.对…作证 declare the truth of (sth), as in court

She brought several persons of good credit to witness to her reputation.

她带来几位很有声誉的人物为她的名誉作证。

He witnessed to having seen the man enter the building.他作证说看见那人走

进那幢房子。

Who witnessed to his signing the documents?谁是他签署这些文件的证人?

2.证明; 表明 prove (sth) by showing it clearly

Her actions witness to her trustworthiness.她的行为证明她是可以信赖的。

The material he wrote witnesses to his abilities.他写的材料表明了他的才能。

· 句型例句

用作及物动词

▲S+~+n./pron.

I witnessed the accident.我亲眼目睹了这场事故。

He witnessed a change in her.他注意到了她的变化。

The park witnessed a number of duels.这个公园发生过许多次决斗。

The 1980s have witnessed increasing unemployment.20世纪80年代发生了不断

增长的失业现象。

Severe damage witnessed the destructive force of the storm.严重的损失表明

了这场暴风雨巨大的破坏力。

▲S+~+that-clause

None could witness that he was present.没有人能证明他在现场。

My wife will witness that I was at home all night.我妻子会证明那天我整夜

都在家。

精品资料

· 补充资料

[词源]<中古英语witnesse(目击者,证人)

· · witness

· n. ['wɪtnəs] ( witnesses )

·

· 双解释义

·

C

目击者; 证人 person who sees an event take place; person who gives

evidence in a law court after swearing to tell the truth

·

S U

证词,证据 what is said about an event, etc., especially in a law court;

evidence

· 词汇搭配

动词+~

bear〔stand〕 witness 作证

examine〔summon〕 a witness 讯问〔传唤〕证人

形容词+~

false witness 伪证

key witness 关键的证人

powerful witness 有力的证据

名词+~

defense〔prosecution〕 witness 被告〔原告〕方证人

eye witness 目击者

精品资料

介词+~

in witness of 作为…的证据

~+介词

witness against 不利于…的证人

witness to the accident 事件的目击者

· 句型例句

She was a witness of the incident.她是这起事件的目击者。

A witness was examined by him in a court of law.他在法庭上询问一个证人。

He gave witness on behalf of an accused person.他为被告作证。

His clothes are a witness to his poverty.他的穿着可以证明他穷。


发布者:admin,转转请注明出处:http://www.yc00.com/web/1712496566a2070152.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信