示例#1
0
                if ($VideosInDB) {
                    $VideoInDB = $VideosInDB[0];
                    $cis = CacheImage::Filter($CacheImages, NULL, NULL, NULL, NULL, NULL, $VideoInDB->getID());
                    CacheImage::DeleteMulti($cis, $CurrentUser);
                } else {
                    $VideoInDB = new Video();
                    $VideoInDB->setSet($Set);
                }
                $VideoInDB->setFileName($matches['Prefix'] . $matches['Name'] . $matches['Number'] . $matches['Suffix']);
                $VideoInDB->setFileExtension($matches['Extension']);
                $VideoInDB->setFileSize($FileInfo->getSize());
                $VideoInDB->setFileCheckSum(Utils::CalculateMD5($FileInfo->getRealPath()));
                $VideoInDB->setFileCRC32(Utils::CalculateCRC32($FileInfo->getRealPath()));
                if (!$VideoInDB->getID() && $CurrentUser->hasPermission(RIGHT_VIDEO_ADD)) {
                    Video::Insert($VideoInDB, $CurrentUser);
                } else {
                    if ($CurrentUser->hasPermission(RIGHT_VIDEO_EDIT)) {
                        Video::Update($VideoInDB, $CurrentUser);
                    }
                }
            }
        }
    }
    $infoSuccess = new Info($lang->g('MessageVideosImported'));
    Info::AddInfo($infoSuccess);
    if (isset($argv) && $argc > 0) {
        $bi->Finish();
    }
}
HTMLstuff::RefererRedirect();
示例#2
0
<h2 class="Center"><?php 
echo sprintf($lang->g('LabelUpdateToVersionX'), CANDYDOLLDB_VERSION);
?>
</h2>

<?php 
echo sprintf($lang->g('MessageSureUpdateToX'), CANDYDOLLDB_VERSION);
?>

<div class="Separator"></div>

<div class="Center">
<input type="submit" id="btnSubmit" name="btnSubmit" value="<?php 
echo $lang->g('ButtonYesPleaseUpdate');
?>
" />
<input type="button" id="btnCancel" name="btnCancel" value="<?php 
echo $lang->g('ButtonNoThanks');
?>
" onclick="return false;" />
</div>

</fieldset>
</form>

</div>

<?php 
echo HTMLstuff::HtmlFooter();
示例#3
0
echo $lang->g('LabelMultiDownloadUseSubfolders');
?>
</label>&nbsp;<input type="checkbox" id="chkSubfolders" name="chkSubfolders"<?php 
echo HTMLstuff::CheckedStr($UseSubfoldersInDownload);
?>
 />
</div>

<div class="Clear Separator"></div>

<div class="FormRow">
<input type="submit" class="FormButton" value="<?php 
echo $ButtonText;
?>
" />
<input type="button" class="FormButton" value="<?php 
echo $lang->g('ButtonReset');
?>
" onclick="window.location='download_multi.php';" />
<input type="button" class="FormButton" value="<?php 
echo $lang->g('ButtonCancel');
?>
" onclick="window.location='index.php';" />
</div>

</fieldset>
</form>

<?php 
echo HTMLstuff::HtmlFooter($CurrentUser);
示例#4
0
    /**
     * Returns a HTML-snippet providing a HTML textinput for the given DateKind.
     * @param string $UniqueId
     * @param string $Value
     * @param int $DateKind
     * @param bool $Disabled 
     * @return string
     */
    public static function DateFormField($UniqueId, $Value = NULL, $DateKind = DATE_KIND_UNKNOWN, $Disabled = FALSE)
    {
        global $lang;
        $template = <<<GYtguefggefegfgefgegfgfuguf
\t\t<div class="FormRow">
\t\t<label for="txtDate%2\$s%3\$d">%7\$s%1\$s:</label>
\t\t<input type="text" id="txtDate%2\$s%3\$d" name="txtDate%2\$s%3\$d" class="DatePicker" maxlength="10" value="%4\$s"%5\$s />
\t\t%6\$s
\t\t</div>
\t\t
GYtguefggefegfgefgegfgfuguf;
        return sprintf($template, $DateKind == DATE_KIND_IMAGE ? ' ' . $lang->g('LabelImagesParentheses') : ($DateKind == DATE_KIND_VIDEO ? ' ' . $lang->g('LabelVideosParentheses') : ''), $DateKind == DATE_KIND_IMAGE ? 'Pic' : ($DateKind == DATE_KIND_VIDEO ? 'Vid' : ''), $UniqueId, $Value, HTMLstuff::DisabledStr($Disabled), $UniqueId && !$Disabled ? sprintf("<a href=\"date_delete.php?date_id=%1\$d\" onclick=\"if(!confirm('%2\$s')){return false;}\">" . "<img src=\"images/button_delete.png\" title=\"%3\$s\" alt=\"%3\$s\"/></a>", $UniqueId, $lang->g('MessageSureDeleteDate'), $lang->g('LabelDeleteDate')) : NULL, $lang->g('LabelDate'));
    }