View Single Post
Old 2nd June 2013, 13:35
buffus buffus is offline
Junior Member
Join Date: Nov 2011
Posts: 21
Thanks: 9
Thanked 1 Time in 1 Post

Thank you. I have this code and symlink in plugins-enabled is created.

But not working (It doesn't create the directory test.). What is wrong please?

PHP Code:

class customapache2_plugin
$plugin_name 'customapache2_plugin';
$class_name 'customapache2_plugin';

    This function is called when the plugin is loaded
function onLoad() {

//    Register for the events

add_dir_test($event_name,$data) {

//    Create folder test
if(!is_dir($data['new']['document_root'].'/test')) $app->system->mkdirpath($data['new']['document_root'].'/test');
Reply With Quote