$smarty->assign('comment', comment('create', $image, $album));
                        $smarty->display('cMessage.tpl');
                    } else {
                        $smarty->assign('etype', 'error');
                        $smarty->assign('error', 'You must provide at least your name and a comment.');
                        $smarty->display('message.tpl');
                    }
                } else {
                    $smarty->assign('etype', 'error');
                    $smarty->assign('error', 'Commenting has been disabled by the administrator.');
                    $smarty->display('message.tpl');
                }
            }
        } else {
            if (empty($album)) {
                $smarty->assign('data', albumList());
                $smarty->display('albumList.tpl');
            } else {
                if (empty($image)) {
                    $smarty->assign('data', album($album));
                    $smarty->display('album.tpl');
                } else {
                    $smarty->assign('data', image($album, $image));
                    $smarty->assign('comment', comment('view', $image, $album));
                    $smarty->display('image.tpl');
                }
            }
        }
    }
} else {
    die('<html><head><title>Snaps! Gallery :: Security Violation</title></head><body><div style="width: 600px; margin: 0 auto; padding: 5px; text-align: center; background: #EEE; border: 1px solid #666;"><h2 style="text-align: left; font-family: Verdana, Arial, Helvetica, sans-serif; padding: 5px; margin: 0;">Security Violation!</h2><p style="text-align: left; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold;">If you are seeing this message, one of the following has occured:</p><p style="padding-left: 10px; color: #F00; text-align: left; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold;">&bull; Snaps! has not been installed<br />&bull; You have not deleted the "install" directory after installing Snaps!<br />&bull; A security breach</p></div><br /></body></html>');
Example #2
0
                    getroot();
                } else {
                    if ($superCage->get->getRAW('getcat') == 1) {
                        getAlbums($superCage->get->getRAW('cat'));
                    } else {
                        if ($superCage->get->getRAW('albumlisting') == 1) {
                            treeBuilder();
                        } else {
                            if ($superCage->get->getRAW('getimg') == 1) {
                                getimg($superCage->get->getRAW('img'));
                            } else {
                                if ($superCage->get->getRAW('photoinfo') == 1) {
                                    getPhotoInfo($superCage->get->getRAW('photo'));
                                } else {
                                    if ($superCage->get->getRAW('albumList') == 1) {
                                        albumList();
                                    } else {
                                        if ($superCage->get->getRAW('move') == 1) {
                                            processMove();
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        } else {
            ?>
						<html>
						<body bgcolor="#000000">