Sindbad~EG File Manager

Current Path : /usr/home/beeson/public_html/michaelbeeson/photos/2017/brokenhip/
Upload File :
Current File : /usr/home/beeson/public_html/michaelbeeson/photos/2017/brokenhip/index.php

<?php

    // Include the UberGallery class
    include('resources/UberGallery.php');

    // Initialize the UberGallery object
    $gallery = new UberGallery();

    // Initialize the gallery array
    $galleryArray = $gallery->readImageDirectory('gallery-images');

    // Define theme path
    if (!defined('THEMEPATH')) {
        define('THEMEPATH', $gallery->getThemePath());
    }

    // Set path to theme index
    $themeIndex = $gallery->getThemePath(true) . '/index.php';

    // Initialize the theme
    if (file_exists($themeIndex)) {
        include($themeIndex);
    } else {
        die('ERROR: Failed to initialize theme');
    }

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists