| 1 |
1457
|
Luisehahne
|
<?php
|
| 2 |
|
|
if (!defined('WB_PATH')) die(header('Location: index.php'));
|
| 3 |
|
|
|
| 4 |
|
|
/*
|
| 5 |
|
|
$DB_HOST = DB_HOST;
|
| 6 |
|
|
$DB_NAME = DB_NAME ;
|
| 7 |
|
|
$DB_USER = DB_USERNAME;
|
| 8 |
|
|
$DB_PASS = DB_PASSWORD;
|
| 9 |
|
|
$link = mysql_connect($DB_HOST, $DB_USER, $DB_PASS);
|
| 10 |
|
|
mysql_select_db ( $DB_NAME, $link );
|
| 11 |
|
|
*/
|
| 12 |
|
|
require_once(WB_PATH.'/framework/DseTwo.php');
|
| 13 |
|
|
|
| 14 |
|
|
$CachePath = WB_PATH.'/temp/mediacache';
|
| 15 |
|
|
// $ListFile = ADMIN_PATH.'/media/MediaBlackList'; // WhiteList BlackList
|
| 16 |
|
|
$ListFile = ADMIN_PATH.'/media/MediaWhiteList'; // WhiteList BlackList
|
| 17 |
|
|
|
| 18 |
|
|
$link = $database->db_handle;
|
| 19 |
|
|
$Dse = new DseTwo();
|
| 20 |
|
|
$Dse->db_handle = $link;
|
| 21 |
|
|
$Dse->db_name = DB_NAME;
|
| 22 |
|
|
$Dse->base_dir = WB_PATH.MEDIA_DIRECTORY;
|
| 23 |
|
|
$Dse->table_prefix = TABLE_PREFIX;
|
| 24 |
|
|
$Dse->cache_dir = $CachePath;
|
| 25 |
|
|
|
| 26 |
|
|
$Dse->addControllList($ListFile, DseTwo::USE_WHITELIST ); // $type const USE_ALL / USE_BLACKLIST / USE_WHITELIST
|
| 27 |
|
|
|
| 28 |
|
|
if(!empty($directory)) {
|
| 29 |
|
|
$usedFiles = $Dse->getMatchesFromDir( $directory, DseTwo::RETURN_USED);
|
| 30 |
|
|
}
|