Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Initiliaze and do initial cache test
- function __construct() {
- $this->db_host = 'localhost';
- $this->db_user = '';
- $this->db_pass = '';
- $this->db_name = '';
- $this->user = $_GET['user'];
- $this->filename = '/tmp/tmp.png';
- // Check to see if Image is already cached. If not, begin generation process.
- // Else, begin recall process.
- $this->cached = $this->Cached();
- if(!$this->cached) {
- // Create the image (not cached)
- $this->createImage();
- }
- else {
- // Recall the image (cached and does not need to be updated).
- $this->recallImage();
- }
- }
Add Comment
Please, Sign In to add comment