예제 #1
0
if ($configuration['process_emailadmin']) {
    $administrators =& $DB->FetchAll('SELECT * FROM `tx_administrators`');
    $t = new Template();
    $t->assign_by_ref('config', $C);
    $t->assign('total', $total_galleries);
    $t->assign('scanned', $current_gallery);
    $t->assign('config_id', $config_id);
    foreach ($administrators as $administrator) {
        if ($administrator['notifications'] & E_SCANNER_COMPLETE) {
            SendMail($administrator['email'], 'email-admin-scanner.tpl', $t);
        }
    }
}
// Rebuild TGP pages
if ($configuration['process_rebuild']) {
    BuildAll();
}
$DB->Disconnect();
exit;
function GetPreviewDimensions($scan_format, &$format)
{
    global $configuration;
    $height = 0;
    $width = 0;
    if ($scan_format == FMT_PICTURES) {
        // Use default
        if (empty($configuration['pics_preview_size'])) {
            list($width, $height) = explode('x', $format['preview_size']);
        } else {
            list($width, $height) = explode('x', $configuration['pics_preview_size']);
        }
예제 #2
0
파일: index.php 프로젝트: hackingman/TGPX
function txShBuildAll()
{
    global $DB;
    VerifyAdministrator();
    $buffering = @ini_get('output_buffering');
    include_once 'includes/header.php';
    include_once 'includes/pages-build.php';
    if ($buffering) {
        echo '<span style="display: none">' . str_repeat('x', $buffering) . '</span>';
    }
    flush();
    BuildAll('txBuildCallback');
    echo "</div>\n<div id=\"done\"></div>\n</body>\n</html>";
}