$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;">• Snaps! has not been installed<br />• You have not deleted the "install" directory after installing Snaps!<br />• A security breach</p></div><br /></body></html>'); }
<div id="title" > <a href="album.php" onMouseOver="window.parent.document.getElementById('img_cambia').src=('core/img/back.png');" onMouseOut="window.parent.document.getElementById('img_cambia').src=('core/img/xbmc.png');">    Album </a></div> <div id="playlist"><a href="album.php"></a></div> <div id="type" ><a href="album.php"><img src="img/back.png" width="28" height="28"/></a></div> </div> !--> <?php album(); $curl = album("{$json}"); //echo $curl; $array = json_decode($curl, true); $results = $array['result']["albums"]; foreach ($results as $value) { if ($value['albumid'] == $_GET['albumid']) { if (preg_match("/^special/", $value['thumbnail']) or preg_match("/^images/", $value['thumbnail'])) { $img_thumb = '<img src="http://' . $host_img . '/' . $value['thumbnail'] . '" width="28" height="28" align="top" />'; } else { $img_thumb = '<img src="core/img/DefaultAlbumCover.png" width="28" height="28" />'; } echo ' <div id="info_file">
<!--------------------------------------center starts ------------------------------------------- --> <div id="center"> <!-- center --> <?php // $linkPath= "../libs/aAjaxClass/photoAjax.php";//main ajax link path if (isset($_GET['pageC']) && isset($_GET['user'])) { paginateG($_GET['album'], $_GET['pageC'], $_GET['aUID']); } elseif (isset($_GET['op']) && $_GET['op'] == "allPhotos" && isset($_GET['user'])) { //***************ALL PHOTOS OP************ allPhotos(); } elseif (isset($_GET['op']) && $_GET['op'] == "album" && isset($_GET['user'])) { // **********************ALBUM-------------------- album(); } elseif (isset($_GET['album']) && isset($_GET['user']) && !empty($_GET['album'])) { insideAlbumAll(); } elseif (isset($_GET['user'])) { allPhotos(); } showUsers(); // show users ?> </div> <!--<div id="bottom" > bottom</div> --> </div> </div>
* @author Carlo Joerges <*****@*****.**> * * @copyright Copyright 2008 Peter Gassner * @license http://www.opensource.org/licenses/gpl-3.0.html GPLv3 */ require_once './system/spyc.php'; require_once './system/pclzip.php'; require_once './system/image.php'; require_once './system/system.php'; require_once './system/application.php'; require_once './system/helpers.php'; /* Define Filesystem Anchors ------------------------------------------------ */ define('WEB_ROOT', dirname($_SERVER['PHP_SELF'])) . '/'; define('ALBUMS_ROOT', dirname(__FILE__) . '/albums/'); /* Load Configuration ------------------------------------------------ */ $params = Spyc::YAMLLoad('albums/config.yml'); define('USE_MOD_REWRITE', $params['nice_urls']); /* Start Application ------------------------------------------------ */ if (array_key_exists('q', $_GET)) { $args = split('/', $_GET['q']); switch ($args[0]) { case 'album': return isset($args[1]) ? album($args[1]) : index(); case 'rss': return isset($args[1]) ? rss($args[1]) : rss(); } } return index();