- 页头: header
- 登录条: login-bar
- 标志: logo
- 侧栏: side-bar
- 广告: banner
- 导航: nav
- 子导航: sub-nav
- 菜单: menu
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
SQLite: sqlite:/path/to/dbfile | |
MySQL: mysql:host=localhost;dbname=testdb | |
PostgreSQL: pgsql:host=localhost;port=5432;dbname=testdb | |
SQL Server: mssql:host=localhost;dbname=testdb | |
Oracle: oci:dbname=//localhost:1521/testdb | |
'emulatePrepare' => true, | |
'username' => 'username', | |
'password' => 'password', | |
'charset' => 'utf8', |
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 GzipBehavior extends CBehavior | |
{ | |
public function events () | |
{ | |
return array ( 'onBeginRequest' => 'beginRequest','onEndRequest' => 'endRequest' ); | |
} | |
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
dim objDoc, objSOAPClient | |
set objDoc = Server.CreateObject("Msxml2.DomDocument.4.0") | |
set objSOAPClient = Server.CreateObject("MSSOAP.SoapClient30") | |
sPath = "http://192.168.0.1/services/webService?wsdl" | |
objSOAPClient.ClientProperty("ServerHTTPRequest") = true | |
objSOAPClient.MSSoapInit(sPath) | |
if err.number <> 0 then | |
Response.Write("<script type=""text/javascript"">alert('Web Services 调用失败。');location.href='?';</script>") | |
else |
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
<% | |
' Array Helper | |
Class Class_ArrayHelper | |
'************************************************** | |
'函数名:isNoneArray | |
'作 用:检测是空数组 | |
'************************************************** | |
Public Function isNoneArray(Byval Arr) | |
If NOT IsArray(Arr) Then | |
isNoneArray = True |
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
<% | |
'##################### | |
' 数据验证 | |
' author: hiscaler | |
' create date: 2012-5-29 | |
'##################### | |
Class Class_ValidatorHelper | |
Public Function isRequired(ByVal value) | |
If (UtilHelper.checkNull(value)) Then |
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
Dim filePath, fileContents, dFileContents | |
filePath = "C:\" | |
' 查找所有 .lst 扩展名文件 | |
Dim fs, f, array1, f1 | |
Set fs = CreateObject("Scripting.FileSystemObject") | |
Set f = fs.GetFolder("C:\") | |
Set fc = f.Files | |
For Each f1 in fc |
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
function uuid() { | |
$node = (isset($_SERVER['SERVER_ADDR'])) ? $_SERVER['SERVER_ADDR'] : null; | |
$pid = null; | |
if (strpos($node, ':') !== false) { | |
if (substr_count($node, '::')) { | |
$node = str_replace('::', str_repeat(':0000', 8 - substr_count($node, ':')) . ':', $node); | |
} | |
$node = explode(':', $node); | |
$ipv6 = ''; |
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
[auth] | |
bb.prefix = http://bitbucket.org | |
bb.username = username | |
bb.password = password | |
bbs.prefix = https://bitbucket.org | |
bbs.username = username | |
bbs.password = password | |
[ui] |
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
@echo off | |
color 0a | |
title 清理win7系统垃圾--- | |
echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★ | |
echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★ | |
echo.★☆ ☆★ | |
echo.★☆ ☆★ | |
echo.★☆ ☆★ | |
echo ★☆ 正在清除系统垃圾文件,请稍等..... ☆★ | |
echo.★☆ ☆★ |
OlderNewer