echo $continue;
        ?>
" style="font-size: 15pt; font-weight: bold;">
			<?php 
        echo gettext("Continue!");
        ?>
</a>
		</p>
		<?php 
    }
} else {
    if (db_connect()) {
        echo "<h3>" . gettext("database connected") . "</h3>";
        if ($type !== 'prune&amp;') {
            if (!empty($id)) {
                $sql = "UPDATE " . prefix('albums') . " SET `mtime`=0" . ($gallery->getAlbumUseImagedate() ? ", `date`=NULL" : '') . " WHERE `id`={$id}";
                query($sql);
            }
            $sql = "UPDATE " . prefix('albums') . " SET `mtime`=0 {$albumwhere}";
            query($sql);
            $sql = "UPDATE " . prefix('images') . " SET `mtime`=0 {$imagewhere};";
            query($sql);
        }
        if (!empty($folder) && empty($id)) {
            echo "<p> " . sprintf(gettext("<em>%s</em> not found"), $folder) . "</p>";
        } else {
            if (empty($r)) {
                echo "<p>" . $allset . "</p>";
            } else {
                echo "<p>" . sprintf(gettext("We're all set to refresh the metadata for <em>%s</em>"), $r) . "</p>";
            }
Ejemplo n.º 2
0
    echo gettext('<strong>NOTE:</strong> enabling this feature is not recommended as it is susceptible to Cross Site Request Forgeries.');
    ?>
</p>
					</td>
				</tr>
				<tr>
					<td><?php 
    echo gettext("Gallery behavior:");
    ?>
</td>
					<td>
						<p>
							<label>
								<input type="checkbox" name="album_use_new_image_date" id="album_use_new_image_date"
										value="1" <?php 
    echo checked('1', $gallery->getAlbumUseImagedate());
    ?>
 />
								<?php 
    echo gettext("use latest image date as album date");
    ?>
							</label>
						</p>
						<?php 
    if (GALLERY_SECURITY == 'public') {
        $disable = $gallery->getUser() || getOption('search_user') || getOption('protected_image_user');
        ?>
							<p class="public_gallery"<?php 
        if (GALLERY_SECURITY == 'private') {
            echo ' style="display:none"';
        }