cPanel Home Loaders

Last time, we discussed the interfaces in cPanel to manage Programming Language modules, such as PEAR packages. We were left with this problem:

Once the particular module is installed to the user’s home directory, it is available for use in his application. However, the application must be modified, or the environment configured, to inform the [...]

cPanel Language Module Interfaces

Scripting languages often provide a central location to obtain modules   for use in user applications. For example, Perl has CPAN and PHP has   PEAR. cPanel 11 provides an easy to use interface for managing modules   for Perl, PHP and Ruby, both from WHM and cPanel. In this first of a   two [...]

Securing PHP in Shared Hosting Environment

One of the problems inherent to using an Apache Module in a shared web hosting environment is the fact Apache modules gain all the permissions of Apache. Hence, using something like PHP as an Apache module can create serious security vulnerabilities. Since the PHP scripts run in the Apache context, users can easily cause problems [...]

Can you spot the bug

Found in bBlog code: function maketimestamp($day,$month,$year,$hour,$minute) { // make timestamp format of YYYYMMDDHHMMSS $string = $year.$month.$day.$hour.$minute.’00′; $timestamp = mktime(substr($string,8,2), substr($string,10,2), substr($string,12,2), substr($string,4,2), substr($string,6,2), substr($string,0,4)); return $timestamp; }

Where in there is the bug? Ok, let me help you. Imagine that somewhere in the bBlog code, maketimestamp function is called with the following parameters: maketimestamp(1, [...]

Lessons learned

This past weekend working with the “bBlog”:http://www.bblog.com codebase I was reminded of an important principle when it comes to multiple developers on one code base: test your fixes before merging. In trying to fix a problem of spam html sneaking through comment moderation, I changed a regex to a more comprehensive expression. However I used [...]