Change this line
Code: Select all
$spaw_base_url = $phpwcms["site"].$phpwcms["root"];
to
$spaw_base_url = $phpwcms["site"];
Code: Select all
// allowed extentions for uploaded image files
$spaw_valid_imgs = array('gif', 'jpg', 'jpeg', 'png');
// allow upload in image library
$spaw_upload_allowed = true;
// allow delete in image library
$spaw_img_delete_allowed = true;
// image libraries
$spaw_imglibs = array();
$spaw_imglibs[0]['value'] = $phpwcms["root"].$phpwcms["content_path"].$phpwcms["cimage_path"];
$spaw_imglibs[0]['text'] = 'phpwcms';
$spaw_imglibs[1]['value'] = $phpwcms["root"].$phpwcms["file_path"];
$spaw_imglibs[1]['text'] = 'picture';
I hope that help someone with my favorite editor
andy