コード例 #1
0
                }
                $ImagesOptions .= sprintf("<option value=\"%1\$d\"%7\$s>%2\$s - %5\$s.%6\$s</option>", $Image->getID(), htmlentities($Image->getSet()->getModel()->GetFullName()), htmlentities($Image->getSet()->getPrefix()), htmlentities($Image->getSet()->getName()), htmlentities($Image->getFileName()), htmlentities($Image->getFileExtension()), in_array($Image->getID(), $SelectedImageIDs) ? ' selected="selected"' : NULL);
            }
            if ($SelectedImageIDs) {
                header(sprintf('location:download_zip.php?image_ids=%1$s&usesub=%2$s', join(',', $SelectedImageIDs), $UseSubfoldersInDownload ? 'true' : 'false'));
                exit;
            }
        }
    }
} else {
    /* @var $Model Model */
    foreach ($Models as $Model) {
        $ModelsOptions .= sprintf("<option value=\"%1\$d\">%2\$s</option>", $Model->getID(), htmlentities($Model->GetFullName()));
    }
}
echo HTMLstuff::HtmlHeader('Download', $CurrentUser);
?>

<h2><?php 
echo sprintf('<a href="index.php">%1$s</a> - %2$s', $lang->g('NavigationHome'), $lang->g('NavigationMultiDownload'));
?>
</h2>

<form action="<?php 
echo htmlentities($_SERVER['REQUEST_URI']);
?>
" method="post">
<fieldset>

<input type="hidden" id="hidAction" name="hidAction" value="DownloadMulti" />
コード例 #2
0
ファイル: user.php プロジェクト: laiello/candydolldb
include 'cd.php';
$CurrentUser = Authentication::Authenticate();
HTMLstuff::RefererRegister($_SERVER['REQUEST_URI']);
$UserRows = '';
$UserCount = 0;
$Users = User::GetUsers();
if ($Users) {
    /* @var $User User */
    foreach ($Users as $User) {
        $UserCount++;
        $UserRows .= sprintf("\n<tr class=\"Row%10\$d\">" . "<td>%12\$s</td>" . "<td>%3\$s</td>" . "<td class=\"Center\">%4\$s</td>" . "<td class=\"Center\"%6\$s>%5\$s</td>" . "<td class=\"Center\">%7\$s</td>" . "<td class=\"Center\">%8\$s</td>" . "<td class=\"Center\">%13\$s</td>" . "</tr>", $User->getID(), htmlentities($User->getUserName()), htmlentities($User->GetFullName()), $User->getGender() == GENDER_FEMALE ? 'f' : ($User->getGender() == GENDER_MALE ? 'm' : '?'), $User->getBirthdate() > 0 ? date('j-m-Y', $User->getBirthdate()) : '&nbsp;', $User->getBirthdate() > 0 ? ' title="' . date('l', $User->getBirthdate()) . '"' : NULL, $User->getLastActive() > 0 ? date('j-n-Y G:i', $User->getLastActive()) : '&nbsp;', $User->getLastLogin() > 0 ? date('j-n-Y G:i', $User->getLastLogin()) : '&nbsp;', COMMAND_DELETE, $UserCount % 2 == 0 ? 2 : 1, $lang->g('LabelDeleteUser'), $CurrentUser->hasPermission(RIGHT_USER_EDIT) ? sprintf("<a href=\"user_view.php?user_id=%1\$d\">%2\$s</a>", $User->getID(), $User->getUserName()) : sprintf("<a href=\"#\">%1\$s</a>", $User->getUserName()), $CurrentUser->hasPermission(RIGHT_USER_DELETE) ? sprintf("<a href=\"user_view.php?user_id=%1\$d&amp;cmd=%2\$s\" title=\"%3\$s\"><img src=\"images/button_delete.png\" width=\"16\" height=\"16\" alt=\"%3\$s\" /></a>", $User->getID(), COMMAND_DELETE, $lang->g('LabelDeleteUser')) : sprintf("<a href=\"#\"><img src=\"images/button_delete_invalid.png\" width=\"16\" height=\"16\" title=\"%1\$s\" alt=\"%1\$s\"/></a>", $lang->g('LabelNotAllowed')));
    }
    unset($User);
}
echo HTMLstuff::HtmlHeader($lang->g('NavigationUsers'), $CurrentUser);
?>

<h2><?php 
echo sprintf('<a href="index.php">%2$s</a> - %1$s', $lang->g('NavigationUsers'), $lang->g('NavigationHome'));
?>
</h2>

<table>
	<thead>
		<tr>
			<th style="width: 160px;"><?php 
echo $lang->g('LabelUsername');
?>
</th>
			<th><?php 
コード例 #3
0
ファイル: set.php プロジェクト: laiello/candydolldb
            }
            $DatesOutput .= '</ul>';
        }
        $SetRows .= sprintf("<div class=\"SetThumbGalItem\">\n\t\t\t<h3 class=\"Hidden\">%1\$s %13\$s %2\$s</h3>\n\t\t\t\n\t\t\t<div class=\"SetThumbImageWrapper\">\n\t\t\t%27\$s\n\t\t\t</div>\n\t\t\t\n\t\t\t<div class=\"SetThumbDataWrapper\">\n\t\t\t<ul>\n\t\t\t<li>%14\$s: %3\$s</li>\n\t\t\t<li>%15\$s: %2\$s</li>\n\t\t\t<li>%16\$s %9\$s</li>\n\t\t\t<li%11\$s>%17\$s: %4\$d</li>\n\t\t\t<li%12\$s>%18\$s: %5\$d</li>\n\t\t\t</ul>\n\t\t\t</div>\n\t\t\t\n\t\t\t<div class=\"SetThumbButtonWrapper\">\n\t\t\t%28\$s\n\t\t\t%29\$s\n\t\t\t%30\$s\n\t\t\t%31\$s\n\t\t\t%32\$s\n\t\t\t%33\$s\n\t\t\t<a href=\"image.php?model_id=%8\$d&amp;set_id=%6\$d\"><img src=\"images/button_view.png\" width=\"16\" height=\"16\" title=\"%25\$s\" alt=\"%25\$s\"/></a>\n\t\t\t<a href=\"video.php?model_id=%8\$d&amp;set_id=%6\$d\"><img src=\"images/button_view.png\" width=\"16\" height=\"16\" title=\"%26\$s\" alt=\"%26\$s\"/></a>\n\t\t\t</div>\n\t\t\t\n\t\t\t</div>\n\t\t\t\n\t\t\t%10\$s", htmlentities($Model->GetFullName()), htmlentities($Set->getName()), htmlentities($Set->getPrefix()), $Set->getAmountPicsInDB(), $Set->getAmountVidsInDB(), $Set->getID(), COMMAND_DELETE, $Model->getID(), $DatesOutput, $SetCount % 3 == 0 ? "<div class=\"Clear\"></div>" : NULL, $Set->getSetIsDirtyPic() ? " class=\"Dirty\"" : NULL, $Set->getSetIsDirtyVid() ? " class=\"Dirty\"" : NULL, strtolower($lang->g('NavigationSet')), $lang->g('LabelPrefix'), $lang->g('LabelName'), $lang->g('LabelDates'), $lang->g('NavigationImages'), $lang->g('NavigationVideos'), $lang->g('LabelEditSet'), $lang->g('LabelDeleteSet'), $lang->g('ButtonImportImages'), $lang->g('ButtonImportVideos'), $lang->g('LabelDownloadImages'), $lang->g('LabelDownloadVideos'), $lang->g('LabelViewImages'), $lang->g('LabelViewVideos'), $Video && $Set->getContainsWhat() == SET_CONTENT_VIDEO ? sprintf("<a href=\"video.php?model_id=%1\$d&amp;set_id=%2\$d\">" . "<img src=\"download_image.php?video_id=%6\$d&amp;landscape_only=true&amp;width=225&amp;height=150\" height=\"150\" alt=\"%3\$s %4\$s %5\$s\" title=\"%3\$s %4\$s %5\$s\" />" . "</a>", $Model->getID(), $Set->getID(), htmlentities($Model->GetFullName()), strtolower($lang->g('NavigationSet')), htmlentities($Set->getName()), $Video->getID()) : sprintf("<a href=\"image.php?model_id=%1\$d&amp;set_id=%2\$d\">" . "<img src=\"download_image.php?set_id=%2\$d&amp;landscape_only=true&amp;width=225&amp;height=150\" height=\"150\" alt=\"%3\$s %4\$s %5\$s\" title=\"%3\$s %4\$s %5\$s\" />" . "</a>", $Model->getID(), $Set->getID(), htmlentities($Model->GetFullName()), strtolower($lang->g('NavigationSet')), htmlentities($Set->getName())), $CurrentUser->hasPermission(RIGHT_SET_EDIT) ? sprintf("<a href=\"set_view.php?model_id=%1\$d&amp;set_id=%2\$d\"><img src=\"images/button_edit.png\" width=\"16\" height=\"16\" title=\"%3\$s\" alt=\"%3\$s\"/></a>", $ModelID, $Set->getID(), $lang->g('LabelEditSet')) : sprintf("<a href=\"#\"><img src=\"images/button_edit_invalid.png\" width=\"16\" height=\"16\" title=\"%1\$s\" alt=\"%1\$s\"/></a>", $lang->g('LabelNotAllowed')), $CurrentUser->hasPermission(RIGHT_SET_DELETE) ? sprintf("<a href=\"set_view.php?model_id=%1\$d&amp;set_id=%2\$d&amp;cmd=%4\$s\"><img src=\"images/button_delete.png\" width=\"16\" height=\"16\" title=\"%3\$s\" alt=\"%3\$s\"/></a>", $ModelID, $Set->getID(), $lang->g('LabelDeleteSet'), COMMAND_DELETE) : sprintf("<a href=\"#\"><img src=\"images/button_delete_invalid.png\" width=\"16\" height=\"16\" title=\"%1\$s\" alt=\"%1\$s\"/></a>", $lang->g('LabelNotAllowed')), $CurrentUser->hasPermission(RIGHT_IMAGE_ADD) ? sprintf("<a href=\"import_image.php?model_id=%1\$d&amp;set_id=%2\$d\"><img src=\"images/button_upload.png\" width=\"16\" height=\"16\" alt=\"%3\$s\" title=\"%3\$s\" /></a>", $ModelID, $Set->getID(), $lang->g('ButtonImportImages')) : sprintf("<a href=\"#\"><img src=\"images/button_upload_invalid.png\" width=\"16\" height=\"16\" alt=\"%1\$s\" title=\"%1\$s\" /></a>", $lang->g('LabelNotAllowed')), $CurrentUser->hasPermission(RIGHT_VIDEO_ADD) ? sprintf("<a href=\"import_video.php?model_id=%1\$d&amp;set_id=%2\$d\"><img src=\"images/button_upload.png\" width=\"16\" height=\"16\" alt=\"%3\$s\" title=\"%3\$s\" /></a>", $ModelID, $Set->getID(), $lang->g('ButtonImportVideos')) : sprintf("<a href=\"#\"><img src=\"images/button_upload_invalid.png\" width=\"16\" height=\"16\" alt=\"%1\$s\" title=\"%1\$s\" /></a>", $lang->g('LabelNotAllowed')), $CurrentUser->hasPermission(RIGHT_EXPORT_ZIP) ? sprintf("<a href=\"download_zip.php?model_id=%1\$d&amp;set_id=%2\$d\"><img src=\"images/button_download.png\" width=\"16\" height=\"16\" alt=\"%3\$s\" title=\"%3\$s\" /></a>", $ModelID, $Set->getID(), $lang->g('LabelDownloadImages')) : sprintf("<a href=\"#\"><img src=\"images/button_download_invalid.png\" width=\"16\" height=\"16\" title=\"%1\$s\" alt=\"%1\$s\"/></a>", $lang->g('LabelNotAllowed')), $CurrentUser->hasPermission(RIGHT_EXPORT_VIDEO) ? sprintf("<a href=\"download_vid.php?set_id=%1\$d\"><img src=\"images/button_download.png\" width=\"16\" height=\"16\" title=\"%2\$s\" alt=\"%2\$s\"/></a>", $Set->getID(), $lang->g('LabelDownloadVideo')) : sprintf("<a href=\"#\"><img src=\"images/button_download_invalid.png\" width=\"16\" height=\"16\" title=\"%1\$s\" alt=\"%1\$s\"/></a>", $lang->g('LabelNotAllowed')));
    }
} else {
    $Models = Model::GetModels(new ModelSearchParameters($ModelID));
    if ($Models) {
        $Model = $Models[0];
    }
}
if (!$Model) {
    header('location:index.php');
    exit;
}
echo HTMLstuff::HtmlHeader(sprintf('%1$s - %2$s', $Model->GetShortName(TRUE), $lang->g('NavigationSets')), $CurrentUser);
?>

<h2><?php 
echo sprintf('<a href="index.php">%3$s</a> - <a href="model_view.php?model_id=%1$d">%2$s</a> - %4$s', $ModelID, htmlentities($Model->GetShortName(TRUE)), $lang->g('NavigationHome'), $lang->g('NavigationSets'));
?>
</h2>

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

<?php 
echo $SetRows . "<div class=\"Clear\"></div>";
echo $CurrentUser->hasPermission(RIGHT_SET_ADD) ? HTMLstuff::Button(sprintf('set_view.php?model_id=%1$d', $ModelID), $lang->g('ButtonNewSet')) : '';
echo $CurrentUser->hasPermission(RIGHT_IMAGE_ADD) ? HTMLstuff::Button(sprintf('import_image.php?model_id=%1$d', $ModelID), $lang->g('ButtonImportImages')) : '';
echo $CurrentUser->hasPermission(RIGHT_VIDEO_ADD) ? HTMLstuff::Button(sprintf('import_video.php?model_id=%1$d', $ModelID), $lang->g('ButtonImportVideos')) : '';
echo HTMLstuff::Button('index.php');
コード例 #4
0
ファイル: video.php プロジェクト: laiello/candydolldb
            $Model = $Set->getModel();
        }
        $VideoRows .= sprintf("\n<tr class=\"Row%10\$d\">" . "<td>%17\$s</td>" . "<td class=\"Center\">%5\$s</td>" . "<td class=\"Center\">%6\$s</td>" . "<td><code>%7\$s</code></td>" . "<td><code>%14\$s</code></td>" . "<td class=\"Center\">%15\$s</td>" . "<td class=\"Center\"><a href=\"download_image.php?video_id=%1\$d&amp;width=800&amp;height=600\" rel=\"lightbox-thumb\" title=\"Thumbnails of %4\$s\"><img src=\"images/button_view.png\" width=\"16\" height=\"16\" alt=\"Thumbnails of %4\$s\" /></a></td>" . "<td class=\"Center\">%16\$s</td>" . "</tr>", $Video->getID(), $Set->getID(), $Model->getID(), htmlentities($Video->getFileName()), htmlentities($Video->getFileExtension()), Utils::ReadableFilesize($Video->getFileSize()), htmlentities($Video->getFileCheckSum()), NULL, COMMAND_DELETE, $VideoCount % 2 == 0 ? 2 : 1, $lang->g('LabelDownloadVideo'), $lang->g('ButtonDelete'), $lang->g('LabelDeleteVideo'), $Video->getFileCRC32(), $CurrentUser->hasPermission(RIGHT_EXPORT_VIDEO) ? sprintf("<a href=\"download_vid.php?video_id=%1\$d\"><img src=\"images/button_download.png\" width=\"16\" height=\"16\" alt=\"%2\$s\" title=\"%2\$s\" /></a>", $Video->getID(), $Video->getFileName()) : sprintf("<a href=\"#\"><img src=\"images/button_download_invalid.png\" width=\"16\" height=\"16\" alt=\"%1\$s\" title=\"%1\$s\" /></a>", $lang->g('LabelNotAllowed')), $CurrentUser->hasPermission(RIGHT_VIDEO_DELETE) ? sprintf("<a href=\"video_view.php?model_id=%1\$d&amp;set_id=%2\$d&amp;video_id=%3\$d&amp;cmd=%4\$s\" title=\"%5\$s\"><img src=\"images/button_delete.png\" width=\"16\" height=\"16\" alt=\"%5\$s\" /></a>", $ModelID, $SetID, $Video->getID(), COMMAND_DELETE, $lang->g('ButtonDelete')) : sprintf("<a href=\"#\"><img src=\"images/button_delete_invalid.png\" width=\"16\" height=\"16\" alt=\"%1\$s\" title=\"%1\$s\" /></a>", $lang->g('LabelNotAllowed')), $CurrentUser->hasPermission(RIGHT_VIDEO_EDIT) ? sprintf("<a href=\"video_view.php?model_id=%1\$d&amp;set_id=%2\$d&amp;video_id=%3\$d\">%4\$s</a>", $ModelID, $SetID, $Video->getID(), $Video->getFileName()) : sprintf("<a href=\"#\">%1\$s</a>", $Video->getFileName()));
    }
}
if (!$Set) {
    $Set = Set::GetSets(new SetSearchParameters($SetID, FALSE, $ModelID));
    if ($Set) {
        $Set = $Set[0];
        $Model = $Set->getModel();
    } else {
        header('location:index.php');
        exit;
    }
}
echo HTMLstuff::HtmlHeader(sprintf('%1$s - %3$s %2$s - %4$s', $Model->GetShortName(TRUE), $Set->getName(), $lang->g('NavigationSet'), $lang->g('NavigationVideos')), $CurrentUser);
?>

<h2><?php 
echo sprintf('<a href="index.php">%5$s</a> - <a href="model_view.php?model_id=%1$d">%3$s</a> - <a href="set.php?model_id=%1$d">%6$s</a> - <a href="set_view.php?model_id=%1$d&amp;set_id=%2$d">%7$s %4$s</a> - %8$s', $ModelID, $SetID, htmlentities($Model->GetShortName(TRUE)), htmlentities($Set->getName()), $lang->g('NavigationHome'), $lang->g('NavigationSets'), $lang->g('NavigationSet'), $lang->g('NavigationVideos'));
?>
</h2>

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

<table>
	<thead>
		<tr>
			<th><?php 
echo $lang->g('LabelFilename');
?>
コード例 #5
0
ファイル: admin_panel.php プロジェクト: laiello/candydolldb
/* @var $it RecursiveDirectoryIterator */
$it = new RecursiveDirectoryIterator($CacheFolder, FileSystemIterator::SKIP_DOTS | FileSystemIterator::CURRENT_AS_FILEINFO);
$PhysicalCacheImageCount = 0;
/* @var $file SplFileInfo */
foreach ($it as $file) {
    if ($file->isFile()) {
        $PhysicalCacheImageCount++;
    }
}
$CacheInSync = sprintf('<span>%1$s</span>', $lang->g('LabelOrphanFiles0'));
if ($PhysicalCacheImageCount > count($CacheImages)) {
    $CacheInSync = '<span class="WarningRed">' . sprintf($PhysicalCacheImageCount - count($CacheImages) == 1 ? $lang->g('LabelOrphanFiles1') : $lang->g('LabelOrphanFilesX'), $PhysicalCacheImageCount - count($CacheImages)) . '</span>';
} elseif ($PhysicalCacheImageCount < count($CacheImages)) {
    $CacheInSync = '<span class="WarningRed">' . sprintf(count($CacheImages) - $PhysicalCacheImageCount == 1 ? $lang->g('LabelMissingFiles1') : $lang->g('LabelMissingFilesX'), count($CacheImages) - $PhysicalCacheImageCount) . '</span>';
}
echo HTMLstuff::HtmlHeader($lang->g('NavigationAdminPanel'), $CurrentUser);
?>

<script type="text/javascript">
//<![CDATA[
           
	$(function(){
		SwitchTab('1');
	});
           
	function RedirToSFV(){
		var modelIdSfv = parseInt( $('#selModelSfv').val() );
		var includePath = $('input[name=radSfvPath]:checked').val();
		var url = 'download_sfv.php';

		url += '?model_id=' + (isNaN(modelIdSfv) || modelIdSfv <= 0 ? '' : modelIdSfv); 
コード例 #6
0
ファイル: import_xml.php プロジェクト: laiello/candydolldb
                header('location:setup_data.php?file=' . urlencode($tempFilename));
                exit;
            } else {
                $e = new XMLerror(XML_ERR_SCHEMA_VALID);
                Error::AddError($e);
            }
        } else {
            $e = new XMLerror(XML_ERR_XML_VALID);
            Error::AddError($e);
        }
    } else {
        $e = new UploadError($f['error']);
        Error::AddError($e);
    }
}
echo HTMLstuff::HtmlHeader($lang->g('NavigationImportXML'), $CurrentUser);
?>

<h2><?php 
echo sprintf('<a href="index.php">%1$s</a> - %2$s', $lang->g('NavigationHome'), $lang->g('NavigationImportXML'));
?>
</h2>

<form action="<?php 
echo htmlentities($_SERVER['REQUEST_URI']);
?>
" method="post" enctype="multipart/form-data">
<fieldset>

<script type="text/javascript">
//<![CDATA[
コード例 #7
0
            if (is_dir('cache') || mkdir('cache', 0700, TRUE)) {
                $i = new Info($lang->g('MessageDataseUpdated'));
                Info::AddInfo($i);
                header('location:login.php');
                exit;
            } else {
                $e = new Error(NULL, $lang->g('ErrorSetupCreatingCacheDir'));
                Error::AddError($e);
            }
        }
    } else {
        $e = new Error(NULL, $lang->g('ErrorUpdateTryAgain'));
        Error::AddError($e);
    }
}
echo HTMLstuff::HtmlHeader($lang->g('LabelSetup'));
?>

<h2 class="Hidden"><?php 
echo $lang->g('LabelSetup');
?>
</h2>

<div class="CenterForm">

<form action="<?php 
echo htmlentities($_SERVER['REQUEST_URI']);
?>
" method="post">
<fieldset>
コード例 #8
0
ファイル: login.php プロジェクト: laiello/candydolldb
                }
                exit;
            } else {
                $e = new LoginError(LOGIN_ERR_PASSWORDINCORRECT);
                Error::AddError($e);
            }
        } else {
            $e = new Error(RIGHTS_ERR_USERNOTALLOWED);
            Error::AddError($e);
        }
    } else {
        $e = new LoginError(LOGIN_ERR_USERNAMENOTFOUND);
        Error::AddError($e);
    }
}
echo HTMLstuff::HtmlHeader($lang->g('NavigationLogIn'));
?>

<div class="CenterForm">

<form method="post" action="<?php 
echo $_SERVER['REQUEST_URI'];
?>
">
<fieldset>

<input type="hidden" id="hidAction" name="hidAction" value="LoginLogin" />

<div class="FormRow">
<label for="txtUserName"><?php 
echo $lang->g('LabelUsername');
コード例 #9
0
ファイル: image_view.php プロジェクト: laiello/candydolldb
        } else {
            if (Image::Update($Image, $CurrentUser)) {
                Tag2All::HandleTags($tags, $TagsThisImage, $TagsInDB, $CurrentUser, $ModelID, $SetID, $Image->getID(), NULL, TRUE);
                header('location:' . $ReturnURL);
                exit;
            }
        }
    } else {
        if (Image::Insert($Image, $CurrentUser)) {
            Tag2All::HandleTags($tags, $TagsThisImage, $TagsInDB, $CurrentUser, $ModelID, $SetID, $Image->getID(), NULL, TRUE);
            header('location:' . $ReturnURL);
            exit;
        }
    }
}
echo HTMLstuff::HtmlHeader(sprintf('%1$s - %2$s - %3$s', $Model->GetShortName(TRUE), $lang->g('NavigationImages'), $Image->getFileName()), $CurrentUser);
if ($ImageID) {
    $width = $Image->getImageWidthToppedOff(400, 600);
    $height = $Image->getImageHeightToppedOff(400, 600);
    echo HTMLstuff::ImageLoading(sprintf('download_image.php?image_id=%1$d&width=%2$d&height=%3$d&portrait_only=true', $ImageID, $width, $height), $width, $height, htmlentities($Model->GetFullName()), htmlentities($Model->GetFullName()));
    echo '<div class="PhotoContainer Loading"></div>';
}
?>

<h2><?php 
echo sprintf('<a href="index.php">%7$s</a> - <a href="model_view.php?model_id=%1$d">%4$s</a> - <a href="set.php?model_id=%1$d">%8$s</a> -  <a href="set_view.php?model_id=%1$d&amp;set_id=%2$d">%9$s %5$s</a> - <a href="image.php?model_id=%1$d&amp;set_id=%2$d">%10$s</a> - %6$s', $ModelID, $SetID, $ImageID, htmlentities($Model->GetShortName(TRUE)), htmlentities($Set->getName()), htmlentities($Image->getFileName()), $lang->g('NavigationHome'), $lang->g('NavigationSets'), $lang->g('NavigationSet'), $lang->g('NavigationImages'));
?>
</h2>

<form action="<?php 
echo htmlentities($_SERVER['REQUEST_URI']);
コード例 #10
0
ファイル: set_dirty.php プロジェクト: laiello/candydolldb
        }
        $SetCount++;
        $Model = $Set->getModel();
        $ImageCount += $Set->getAmountPicsInDB();
        $VideoCount += $Set->getAmountVidsInDB();
        if (isset($PreviousModel) && $Model->getID() != $PreviousModel->getID()) {
            $SetRows .= "\n<tr><td colspan=\"10\" style=\"height:10px;\"></td></tr>";
            $SetCountModel = 0;
        } else {
            $SetCountModel++;
        }
        $PreviousModel = $Model;
        $SetRows .= sprintf("\n<tr class=\"Row%11\$d\">" . "<td><a href=\"model_view.php?model_id=%10\$d\" title=\"%9\$s\">%8\$s</a></td>" . "<td><a href=\"set_view.php?model_id=%10\$d&amp;set_id=%1\$d\">%6\$s</a></td>" . "<td><a href=\"set_view.php?model_id=%10\$d&amp;set_id=%1\$d\">%7\$s</a></td>" . "<td><a href=\"set_view.php?model_id=%10\$d&amp;set_id=%1\$d\">%12\$s</a></td>" . "<td class=\"Center\"><a href=\"image.php?model_id=%10\$d&amp;set_id=%1\$d\">%2\$d%4\$s</a></td>" . "<td class=\"Center\"><a href=\"import_image.php?set_id=%1\$d\"><img src=\"images/button_upload.png\" width=\"16\" height=\"16\" alt=\"%13\$s\" title=\"%13\$s\" /></a></td>" . "<td class=\"Center\"><a href=\"video.php?model_id=%10\$d&amp;set_id=%1\$d\">%3\$d%5\$s</a></td>" . "<td class=\"Center\"><a href=\"import_video.php?set_id=%1\$d\"><img src=\"images/button_upload.png\" width=\"16\" height=\"16\" alt=\"%14\$s\" title=\"%14\$s\" /></a></td>" . "<td class=\"Center\"><a href=\"https://www.binsearch.info/?q=%9\$s%7\$s&amp;max=100&amp;adv_age=&amp;server=2\" rel=\"external\"><img src=\"images/button_search.png\" width=\"16\" height=\"16\" alt=\"BinSearch.info\" title=\"BinSearch.info\" /></a></td>" . "<td class=\"Center\"><a href=\"https://www.google.com/search?q=%9\$s%7\$s\" rel=\"external\"><img src=\"images/button_search.png\" width=\"16\" height=\"16\" alt=\"Google.com\" title=\"Google.com\" /></a></td>" . "</tr>", $Set->getID(), $Set->getAmountPicsInDB(), $Set->getAmountVidsInDB(), $Set->getSetIsDirtyPic() ? '<em> !</em>' : NULL, $Set->getSetIsDirtyVid() ? '<em> !</em>' : NULL, htmlentities($Set->getPrefix()), htmlentities($Set->getName()), htmlentities($Model->GetFullName()), htmlentities($Model->GetShortName()), $Model->getID(), $SetCount % 2 == 0 ? 2 : 1, Date::FormatDates($DatesThisSet, 'Y-m-d', TRUE), $lang->g('ButtonImportImages'), $lang->g('ButtonImportVideos'));
    }
}
echo HTMLstuff::HtmlHeader('Dirty sets', $CurrentUser);
?>

<form action="<?php 
echo htmlentities($_SERVER['REQUEST_URI']);
?>
" method="post" class="FilterForm" style="text-align:center">
<fieldset>

<input type="hidden" id="hidAction" name="hidAction" value="DirtySetFilter" />

<label for="txtSearchModel"><?php 
echo $lang->g('LabelModel');
?>
</label>
<input type="text" id="txtSearchModel" name="txtSearchModel" maxlength="50" style="width:130px;" value="<?php 
コード例 #11
0
ファイル: search.php プロジェクト: laiello/candydolldb
            foreach ($ToShow as $Image) {
                /* @var $Image Image */
                $ItemCount++;
                $Results .= sprintf("<div class=\"SetThumbGalItem\">\n\t\t\t\t\t\t<h3 class=\"Hidden\">%4\$s.%5\$s</h3>\n\t\t\t\t\t\t<div class=\"SetThumbImageWrapper\">\n\t\t\t\t\t\t\t<a href=\"image_view.php?model_id=%6\$d&amp;set_id=%7\$d&amp;image_id=%8\$d\" title=\"%4\$s.%5\$s\">\n\t\t\t\t\t\t\t\t<img src=\"download_image.php?image_id=%8\$d&amp;width=225&amp;height=150\" height=\"150\" alt=\"%4\$s.%5\$s\" />\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"SearchThumbDataWrapper\">\n\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t<li>%4\$s.%5\$s</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t%9\$s", htmlentities($Image->getSet()->getModel()->GetFullName()), htmlentities($Image->getSet()->getPrefix()), htmlentities($Image->getSet()->getName()), htmlentities($Image->getFileName()), htmlentities($Image->getFileExtension()), $Image->getSet()->getModel()->getID(), $Image->getSet()->getID(), $Image->getID(), $ItemCount % 3 == 0 ? "<div class=\"Clear\"></div>" : NULL);
            }
            break;
        case "VIDEO":
            foreach ($ToShow as $Video) {
                /* @var $Video Video */
                $ItemCount++;
                $Results .= sprintf("<div class=\"SetThumbGalItem\">\n\t\t\t\t\t\t<h3 class=\"Hidden\">%4\$s.%5\$s</h3>\n\t\t\t\t\t\t<div class=\"SetThumbImageWrapper\">\n\t\t\t\t\t\t\t<a href=\"video_view.php?model_id=%6\$d&amp;set_id=%7\$d&amp;video_id=%8\$d\" title=\"%4\$s.%5\$s\">\n\t\t\t\t\t\t\t\t<img src=\"download_image.php?video_id=%8\$d&amp;width=225&amp;height=150\" height=\"150\" alt=\"%4\$s.%5\$s\" />\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"SearchThumbDataWrapper\">\n\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t<li>%4\$s.%5\$s</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t%9\$s", htmlentities($Video->getSet()->getModel()->GetFullName()), htmlentities($Video->getSet()->getPrefix()), htmlentities($Video->getSet()->getName()), htmlentities($Video->getFileName()), htmlentities($Video->getFileExtension()), $Video->getSet()->getModel()->getID(), $Video->getSet()->getID(), $Video->getID(), $ItemCount % 3 == 0 ? "<div class=\"Clear\"></div>" : NULL);
            }
            break;
    }
}
echo HTMLstuff::HtmlHeader($lang->g('NavigationTagSearch'), $CurrentUser);
?>

<h2><a href="index.php"><?php 
echo $lang->g('NavigationHome');
?>
</a> - <?php 
echo $lang->g('NavigationTagSearch');
?>
</h2>

<form action="<?php 
echo htmlentities($_SERVER['REQUEST_URI']);
?>
" method="get" class="Search">
<fieldset>
コード例 #12
0
ファイル: password.php プロジェクト: laiello/candydolldb
    } else {
        if (!array_key_exists('hidAction', $_POST) && array_key_exists('Hash', $_GET) && preg_match('/^[0-9a-f]{128}$/i', $_GET['Hash'])) {
            $Hash = $_GET['Hash'];
            $Users = User::GetUsers(new UserSearchParameters(FALSE, FALSE, FALSE, $Hash));
            if ($Users) {
                /* @var $User User */
                $User = $Users[0];
            } else {
                $e = new LoginError(LOGIN_ERR_RESETCODENOTFOUND);
                Error::AddError($e);
                $HashError = TRUE;
            }
        }
    }
}
echo HTMLstuff::HtmlHeader($lang->g('NavigationResetYourPassword'));
?>

<div class="CenterForm">

<form method="post" action="<?php 
echo $_SERVER['REQUEST_URI'];
?>
">
<fieldset>

<?php 
if (!$Hash && is_null($MailSent)) {
    ?>
<input type="hidden" id="hidAction" name="hidAction" value="PasswordPassword" />
コード例 #13
0
ファイル: model_view.php プロジェクト: laiello/candydolldb
        } else {
            if ($CurrentUser->hasPermission(RIGHT_MODEL_EDIT) && Model::Update($Model, $CurrentUser)) {
                Tag2All::HandleTags($tags, $TagsThisModel, $TagsInDB, $CurrentUser, $Model->getID(), NULL, NULL, NULL);
                header('location:index.php');
                exit;
            }
        }
    } else {
        if ($CurrentUser->hasPermission(RIGHT_MODEL_ADD) && Model::Insert($Model, $CurrentUser)) {
            Tag2All::HandleTags($tags, $TagsThisModel, $TagsInDB, $CurrentUser, $Model->getID(), NULL, NULL, NULL);
            header('location:index.php');
            exit;
        }
    }
}
echo HTMLstuff::HtmlHeader($Model->GetFullName(), $CurrentUser);
if ($ModelID) {
    echo HTMLstuff::ImageLoading(sprintf('download_image.php?model_id=%1$d&width=400&height=600&portrait_only=true', $ModelID), 400, 600, htmlentities($Model->GetFullName()), htmlentities($Model->GetFullName()));
    echo '<div class="PhotoContainer Loading"></div>';
}
?>

<h2><?php 
echo sprintf('<a href="index.php">%2$s</a> - %1$s', htmlentities($Model->GetFullName()), $lang->g('NavigationHome'));
?>
</h2>

<form action="<?php 
echo htmlentities($_SERVER['REQUEST_URI']);
?>
" method="post">
コード例 #14
0
ファイル: compose_xml.php プロジェクト: laiello/candydolldb
            //		var_dump($matchesVid);
            //		die();
        }
        /* @var $Model Model
        	foreach ($Models as $Model)
        	{
        		XmlOutputModel($Model);
        	}*/
        $xmlw->endElement();
        $xmlw->endDocument();
        ob_end_flush();
        flush();
        exit;
    }
}
echo HTMLstuff::HtmlHeader('Compose XML', $CurrentUser);
?>

<h2><?php 
echo sprintf('<a href="index.php">%1$s</a> - Compose XML', $lang->g('NavigationHome'));
?>
</h2>

<form action="<?php 
echo htmlentities($_SERVER['REQUEST_URI']);
?>
" method="post">
<fieldset>

<input type="hidden" id="hidAction" name="hidAction" value="ComposeXML" />