Example #1
0
function printBaseSlideShowLink($linktext = null)
{
    global $_zp_gallery, $_zp_current_image, $_zp_current_album, $_zp_current_search, $slideshow_instance, $_zp_gallery_page;
    if (is_null($linktext)) {
        $linktext = gettext('View Slideshow');
    }
    if (empty($_GET['page'])) {
        $pagenr = 1;
    } else {
        $pagenr = sanitize_numeric($_GET['page']);
    }
    $slideshowhidden = '';
    $numberofimages = 0;
    if (in_context(ZP_SEARCH)) {
        $imagenumber = '';
        $imagefile = '';
        $albumnr = 0;
        $slideshowlink = rewrite_path('/' . _PAGE_ . '/slideshow', "index.php?p=slideshow");
        $slideshowhidden = '<input type="hidden" name="preserve_search_params" value="' . html_encode($_zp_current_search->getSearchParams()) . '" />';
    } else {
        if (in_context(ZP_IMAGE)) {
            $imagenumber = imageNumber();
            $imagefile = $_zp_current_image->filename;
        } else {
            $imagenumber = '';
            $imagefile = '';
        }
        if (in_context(ZP_SEARCH_LINKED)) {
            $albumnr = -$_zp_current_album->getID();
            $slideshowhidden = '<input type="hidden" name="preserve_search_params" value="' . html_encode($_zp_current_search->getSearchParams()) . '" />';
        } else {
            $albumnr = $_zp_current_album->getID();
        }
        if ($albumnr) {
            $slideshowlink = rewrite_path(pathurlencode($_zp_current_album->getFileName()) . '/' . _PAGE_ . '/slideshow', "index.php?p=slideshow&amp;album=" . urlencode($_zp_current_album->getFileName()));
        } else {
            $slideshowlink = rewrite_path('/' . _PAGE_ . '/slideshow', "index.php?p=slideshow");
            $slideshowhidden = '<input type="hidden" name="favorites_page" value="1" />';
        }
    }
    //$numberofimages = getNumImages();
    $slideshow_instance = 0;
    if (checkForImages()) {
        ?>
			<!-- <form name="slideshow_<?php 
        echo $slideshow_instance;
        ?>
" method="post"	action="<?php 
        echo $slideshowlink;
        ?>
">
				<?php 
        echo $slideshowhidden;
        ?>
				<input type="hidden" name="pagenr" value="<?php 
        echo html_encode($pagenr);
        ?>
" />
				<input type="hidden" name="albumid" value="<?php 
        echo $albumnr;
        ?>
" />
				<input type="hidden" name="numberofimages" value="<?php 
        echo $numberofimages;
        ?>
" />
				<input type="hidden" name="imagenumber" value="<?php 
        echo $imagenumber;
        ?>
" />
				<input type="hidden" name="imagefile" value="<?php 
        echo html_encode($imagefile);
        ?>
" />
				<a class="slideshowlink" id="slideshowlink_<?php 
        echo $slideshow_instance;
        ?>
" 	href="javascript:document.slideshow_<?php 
        echo $slideshow_instance;
        ?>
.submit()"><?php 
        echo $linktext;
        ?>
</a>
			</form> -->
		<?php 
    }
}
Example #2
0
    if ($_zp_gallery_page == 'album.php') {
        if (getOption('zpbase_social')) {
            include 'inc/socialshare.php';
        }
        if (class_exists('RSS') && getOption('RSS_album_image')) {
            ?>
						<span><?php 
            printRSSLink('Collection', '', gettext('Album RSS'), '', false);
            ?>
</span>
						<?php 
        }
    }
    ?>
						<?php 
    if (getOption('zpbase_galss') && checkForImages()) {
        ?>
						<span><?php 
        printBaseSlideShowLink();
        ?>
</span>
						<?php 
    } elseif (function_exists('printSlideShowLink')) {
        ?>
						<span><?php 
        printSlideShowLink();
        ?>
</span>
						<?php 
    }
    ?>
<?php

// Installation script for the Txt-Db-API (www.c-worker.ch)
//
// This script will search for Txt-Db-API zip-packages in the current
// directory and will guide you through the installation. If there are
// more versions of Txt-Db-API packages in the current directory the
// most current version will be installed.
//
// Author: Mario Sansone
// Email: msansone@gmx.de
$VERSION = "1.0.1";
checkForImages();
session_start();
$SID = '';
if (!ini_get('session.use_trans_sid')) {
    $SID = "&" . session_name() . "=" . session_id();
}
$lang = isset($_GET['lang']) ? $_GET['lang'] : 'de';
initLanguages($lang);
$step = isset($_GET['step']) ? $_GET['step'] : 0;
$lastStep = isset($_GET['laststep']) ? $_GET['laststep'] : 0;
if ($lastStep == 6 && $step == 5 && @$_SESSION['webgui'] == 0) {
    $step = 4;
}
if (isset($_POST['install']) && $lastStep == 4 && $step == 5) {
    if (!in_array('webgui', $_POST['install'])) {
        $step = 6;
    }
}
$nextStep = $step + 1;