1) Function for stripping out malicious bits
<?php
function cleanInput($input) {
$search = array(
'@]*?>.*?@si', // Strip out javascript
'@<[\/\!]*?[^<>]*?>@si', // Strip out HTML tags
'@]*?>.*?@siU', // Strip style tags properly
'@<![\s\S]*?--[ \t\n\r]*>@' // Strip multi-line comments
);
$output = preg_replace($search, '', $input);
return $output;
}
?>
2) Sanitization function
Uses the function above, as well as adds slashes as to not...
Tuesday, September 23, 2014
In
auto ffmpeg,
centos 6,
cpanel,
Enable ffmpeg-php in cpanel,
ffmpeg,
ffmpeg-php
by Unknown
//
10:21 PM
//
Leave a Comment
Auto-FFmpeg-cPanel :: Auto FFMpeg Installer for cPanel
Auto FFMpeg Installer for cPanel
Auto FFMpeg Installer for cPanel w/CentOS 6+
Requirements:
CentOS 6+
PuTTY
cPanel
That's all! Did you expected more?
Why use this ?
Installation of FFMPEG is treated as the toughest installations as it has many dependencies.
So I made this script, to simply the issues.
Check with the below steps for easy installation.
Installation:
$> yum update -y
$> yum install wget -y
$> wget --no-check-certificate "https://raw.githubusercontent.com/itseasy21/auto-ffmpeg-cpanel/master/install-ffmpeg.sh"...
In
centos 6,
cpanel,
Enable ffmpeg-php in linux,
ffmpeg,
ffmpeg-php,
github,
putty,
ssh
by Unknown
//
10:19 PM
//
1 comment
Auto-FFmpeg :: Auto FFMpeg Installer for CentOS 6+
auto-ffmpeg
Auto FFMpeg Installer for CentOS 6+ and other Control Panel that support CentOS 6+ (eg Kloxo, ZPanel etc)
Requirements:
CentOS 6+
PuTTY
That's all! Did you expected more?
Why use this ?
Installation of FFMPEG is treated as the toughest installations as it has many dependencies.
So I made this script, to simply the issues.
Check with the below steps for easy installation.
Installation:
$> yum update...
W3tools-Varnish : Varnish Cache Inegration in cPanel
w3tools-varnish
Varnish Cache Integration in cPanel
Varnish Cache is a web application accelerator also known as a
caching HTTP reverse proxy. You install it in front of any server that
speaks HTTP and configure it to cache the contents.
Installation:
$> yum update -y
$> yum install wget -y
$> wget "https://raw.githubusercontent.com/itseasy21/w3tools-varnish/master/install.sh" -O /root/varnish-install.sh
$> cd /root
$> chmod +x varnish-install.sh
$> ./varnish-install.sh
...
Monday, September 22, 2014
ApacheBooster v2.3
ApacheBooster
NOTE: This is the only working version of ApacheBooster found on GitHub :D
Current Release: V2.3
Nginx Version : 1.6.2
Varnish Version : 3.0.5
ApacheBooster is a integration of nginx and varnish, this Plugin will
reduce the server load spike and memory usage. Also the plugin will
provide the maximum performance of your websites.
Varnish
Varnish Cache is a web application accelerator also known as a
caching HTTP reverse proxy. You install it in front of any server that
speaks HTTP and configure...