Example #1
0
function showGallery()
{
    // Builds main gallery page
    global $file, $gallery_address, $gallery_root, $user_level, $lg_text_domain;
    get_currentuserinfo();
    echo "<div id='gallery'>";
    // get_image_comments();
    if (!validateFile()) {
        echo "<div class='error'>";
        echo "<p><b>" . __('WARNING', $lg_text_domain) . ": </b>" . __('Unable to access to the Gallery Folder', $lg_text_domain);
        echo "</p>";
        echo "<p>" . __('Check your settings', $lg_text_domain);
        if ($user_level >= 8) {
            echo "<a href='" . get_option('siteurl') . "/wp-admin/" . LG_ADM_PAGE . "'>";
            _e('here', $lg_text_domain);
            echo "</a>";
        }
        echo "</p></div>";
        return;
    }
    createNavigation();
    $path = pathinfo($file);
    if ($path['extension'] == '') {
        //Display Dir(s) (if any)
        showDirs();
        //Display Thumb(s) (if any)
        showThumbs();
    } else {
        showSlide($file);
    }
    if ($user_level >= 8) {
        echo "<div class='lg_admin'>";
        echo "<a href='" . get_option('siteurl') . "/wp-admin/" . LG_ADM_PAGE . "'>";
        _e('&raquo; Administrate Gallery', $lg_text_domain);
        echo "</a>";
        echo "</div>";
    }
    //echo "<div id='lg_powered'>
    //			<div class='lgpow'>Powered by <a href='http://lazyest.keytwo.net'>Lazyest Gallery ". LG_VERSION ."</a> - Copyright (C) <a href='http://www.keytwo.net'>Keytwo.net</a></div>
    //		</div>";
    // 	comments_template();
    echo "</div>";
}
Example #2
0
        getThumb();
        break;
    case 'ratePic':
        ratePic();
        break;
    case 'recentMoves':
        recentMoves();
        break;
    case 'showAlbum':
        showAlbum();
        break;
    case 'showPic':
        showPic();
        break;
    case 'showSlide':
        showSlide();
        break;
    case 'topPics':
        topPics();
        break;
    case 'uploadMove':
        uploadMove();
        break;
    case 'uploadMoveAjax':
        uploadMove($ajaxForm = 1);
        break;
}
/* This is the gallery index */
function galIndex()
{
    global $moduleName, $iConfig;