2.4 Image Base
setImgBase - Protect your image folder
| void setImgBase($imgBase) |
Description:
"Image Base" tells the IMGOWL to pretend that the current image
is located at some URL other than where the IMGOWL found it.
This method enables encrypted protection against source hacker, this parameter
will be transfered with 2-level encryption.So that you can hide your real
image path with setImgBase.
In the absence of imgBase setting,the image URL which set by setImage
will be the image path.
Image base can be also set from configuration file. (Please see also chapter
2.1 Configuration) , however it will be overridden by the setting
with setImgBase function.
| [$ImgBase]+$imgUrl
= full path for image |
For example: Here are user's profile system directories
tree:

1) you can set the "userfile/images/" as image base by $imgowl->setImgBase("userfile/images/");
2) set image by $imgowl->setImage("sample1","400","300","sample01.jpg","This
is #1 sample","http://www.propagator.net/img/");
And you can also set them as following:
1) you can set the "userfile/" as image base by $imgowl->setImgBase("userfile/");
2) set image by $imgowl->addImage("sample2","400","300","images/sample02.jpg","This
is #1 sample","http://www.propagator.net/img/");
Parameters:
string $imgBase : Image folder path for individual image.
Tips: You can setup individual image base for individual
slideshow set. I strong recommend that using setImgBase to hide your image
path,if your images are private and important.
|