本文整理匯總了PHP中ImageManager::goToFolder方法的典型用法代碼示例。如果您正苦於以下問題:PHP ImageManager::goToFolder方法的具體用法?PHP ImageManager::goToFolder怎麽用?PHP ImageManager::goToFolder使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ImageManager
的用法示例。
在下文中一共展示了ImageManager::goToFolder方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Authentification
session_write_close();
$auth = new Authentification();
if ($auth->getEnableContent()) {
echo '<ul class="vertical medium-horizontal menu center">
<li><a href="?p=back&opt=mailer">Mailer</a></li>
<li><a href="?p=back&opt=imgs">Image System</a></li>
</ul>';
if ($_GET && $_GET['opt']) {
if ($_GET['opt'] == 'mailer') {
$mailer = new Mailer();
$mailer->init();
}
if ($_GET['opt'] == 'imgs') {
$imageManager = new ImageManager();
// $imageManager->goToFolder('compute');
// $imageManager->createImageFolder('compute');
$imageManager->getTreeMap();
// $imageManager->interfaceTreeFolder();
$imageManager->interfaceInputUrlBar();
$imageManager->interfaceAccordion();
// $imageManager->interfaceImageData();
// echo '<p id="currentPosition">'.$imageManager->getFolderPosition().'</p>';
$imageManager->goToFolder();
// $imageManager->createImageFolder('myfilename');
$imageManager->interfaceUpload();
}
}
}
?>
示例2: ImageManager
<?php
//security POST
if ($_POST['submit'] = 'Upload Image') {
//load class
include_once '../classes/ImageManager.class.php';
//instance of class
$im = new ImageManager();
$im->goToFolder();
//var
$pattern = '/^image/';
$accepted_files_index = array();
$upload_size_limit = 5242880;
//5Mo
$moving_url = $im->interfaceFolderPosition();
//is file img
foreach ($_FILES['fileUpload']['type'] as $key => $d) {
preg_match($pattern, $d, $match);
if ($match) {
array_push($accepted_files_index, $key);
}
}
//if file size too big, upper max upload time
foreach ($_FILES['fileUpload']['size'] as $k => $s) {
if ($s >= $upload_size_limit) {
unset($upload_size_limit, $k);
}
}
foreach ($_FILES['fileUpload']['error'] as $k => $e) {
if ($e != 0) {
unset($upload_size_limit, $e);