View .gitignore
##### Windows
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
# Folder config file
View build.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- Conventions/Standards:
* Filenames consist of no more or less than two elements: name and extension
* Choose short descriptive filenames (must be less than 31 chars)
* Names must not contain dots
* Files containing PHP code must end with the extension .php
* The name portion of the file must be named exactly like the class it contains
* Buildfiles and configure rulesets must end with the extension .xml
* There must be only one class per file (no procedural methods allowed, use a
View .gitattributes
* text=auto
###### Git
.gitattributes text
.gitignore text
.gitconfig text
.gitmodules text
##### Windows
*.bat text eol=crlf
View SystemCleanup.bat
@echo off
%SYSTEMDRIVE%
cd %TMP%
cd %TEMP%
del *.* /s /f /q
cd %USERPROFILE%\AppData\Local\Temp
del *.* /s /f /q
cd %SYSTEMDRIVE%\Windows\Temp
del *.* /s /f /q
%SYSTEMDRIVE%\Windows\SoftwareDistribution\Download
View .gitattributes
* text=auto
###### Git
.gitattributes text
.gitignore text
.gitconfig text
.gitmodules text
##### Windows
*.bat text eol=crlf
View .gitattributes
* text=auto
###### Git
.gitattributes text
.gitignore text
.gitconfig text
.gitmodules text
##### Windows
*.bat text eol=crlf
View .gitattributes
* text=auto
###### Git
.gitattributes text
.gitignore text
.gitconfig text
.gitmodules text
##### Windows
*.bat text eol=crlf
View .gitignore
##### Windows
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
# Folder config file
View gist:fca7e1cdc0c83611fe2f4e3e5a1b0398
// TODO: Add 'filter_var' for IPv4/IPv6.
function getClientIP()
{
static $_list = array
(
'REMOTE_ADDR', 'HTTP_CLIENT_IP'/* Shared internet/ISP IP */, 'CLIENT_IP', 'HTTP_X_REAL_IP', 'HTTP_PROXY_CONNECTION', 'HTTP_FORWARDED', 'HTTP_CF_CONNECTING_IP', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_X_FORWARDED', 'HTTP_X_FORWARDED_HOST', 'HTTP_X_FORWARDED_SERVER', 'FORWARDED_FOR_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED_FOR_IP', 'HTTP_X_FORWARDED_FOR', 'FORWARDED', 'X_FORWARDED_FOR', 'FORWARDED_FOR', 'X_FORWARDED', 'HTTP_VIA', 'VIA'
);
foreach ($_list as $_value)
{
View .gitignore
##### Windows
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
# Folder config file