im can't create a virtualmin plugin script

1 post / 0 new
#1 Sun, 12/23/2007 - 17:43
zodman

im can't create a virtualmin plugin script

Ok im read the docu of plugin script. and create this files. im have a GPL version

root@zod:/usr/share/webmin/virtualmin-wget# ls -al total 36 drwxr-xr-x 4 root root 4096 2007-12-23 21:21 . drwxr-xr-x 124 root root 8192 2007-12-23 20:26 .. d-wx--x--x 2 root root 4096 2007-12-23 20:45 help d-wx--x--x 2 root root 4096 2007-12-23 20:45 lang --wx--x--x 1 root root 42 2007-12-23 20:27 module.info --wx--x--x 1 root root 104 2007-12-23 21:21 virtual_feature.pl --wx--x--x 1 root root 137 2007-12-23 21:21 virtualmin-wget-lib.pl

virtual_feature.pl haves:

[code:1]

!/usr/bin/perl

do 'virtual-wget-lib.pl';

sub feature_name { return "A description of your plugin"; } [/code:1]

virtualmin-wget-lib.pl haves: [code:1]#!/usr/bin/perl

do '../web-lib.pl'; &init_config(); do '../ui-lib.pl'; &foreign_require("virtual-server", "virtual-server-lib.pl"«»); 1; [/code:1]

im delete the webmin cache :) When a i go to system settings>>features and plugins>> im get the error:

require virtualmin-wget/virtual_feature.pl failed : Died at (eval 28) line 4.

Some suggest to fix it ? im wrong ?