2.5 Image Base
2.2.1 setImgBase - Protect your image folder
| void setImgBase($imgBase) |
Description:
"Image Base" tells the SlideCrab to pretend that the current
image is located at some URL other than where the SlideCrab 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 addImage
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 $sc->setImgBase("userfile/images/");
2)add image by $sc->addImage("sample01.jpg","This
is #1 sample","http://www.propagator.net/slidecrab/");
And you can also set them as following:
1) you can set the "userfile/" as image base by $sc->setImgBase("userfile/");
2)add image by $sc->addImage("images/sample01.jpg","This
is #1 sample","http://www.propagator.net/slidecrab/");
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.
|