echo ROOT_PHP;
?>
"><span class="glyphicon glyphicon-chevron-left"></span>Back - <?php 
echo CAM_STRING;
?>
</a>
            </div>
         </div>
      </div>
    
      <div id="progress" style="text-align:center;margin-left:20px;width:500px;border:1px solid #ccc;">&nbsp;</div>
    
      <div class="container-fluid">
      <form action="preview.php" method="POST">
      <?php 
$thumbnails = getThumbnails();
if ($pFile != "") {
    $pIndex = array_search($tFile, $thumbnails);
    echo "<h1>" . TXT_PREVIEW . ":  " . getFileType($tFile) . getFileIndex($tFile);
    if ($pIndex > 0) {
        $attr = 'onclick="location.href=\'preview.php?preview=' . $thumbnails[$pIndex - 1] . '\'"';
    } else {
        $attr = 'disabled';
    }
    echo "&nbsp;&nbsp;<input type='button' value='&larr;' class='btn btn-primary' name='prev' {$attr} >";
    if ($pIndex + 1 < count($thumbnails)) {
        $attr = 'onclick="location.href=\'preview.php?preview=' . $thumbnails[$pIndex + 1] . '\'"';
    } else {
        $attr = 'disabled';
    }
    echo "&nbsp;&nbsp;<input type='button' value='&rarr;' class='btn btn-primary' name='next' {$attr}>";
Exemple #2
0
if ($deletePage == 'yes' && $page != 'index') {
    if ($admin == true) {
        archiveContent($page);
    }
}
if ($editID) {
    if ($admin == true && $page != "all_pics") {
        setContent($editID, $editValue, $page);
    }
} elseif ($page == "upload") {
    if ($admin == true) {
        uploadContent();
    }
} elseif ($page == "thumbnails") {
    if ($admin == true) {
        getThumbnails();
    }
} else {
    ?>
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title><?php 
    $pageTitle = getContent('page_title', $page, $noPageError);
    if ($pageTitle != "") {
        echo $pageTitle . ' - ';