* responsive and breakpoints
* tag management. Edit, update and unused ones.
* imdb collector. Number storage -> runtime
-* clickable image in card view
* stats overview page. amount of entries. file and db storage.
+* Export of an entry, collection or everything. Stored on disk.
+* Import of the export
--- /dev/null
+Self hosted media management. Runs on a raspberry or any webserver (see requirements).
+Supports multiple collections. Eg. movies, games and music.
+Each collection has their own fields, which can freely arranged.
+Multiple user accounts and rights on collection and each entry.
+Theme support.
+Export and import of everything, collection or only selective entries.
+Search within default field and advanced search in every field.
+Lightwight.
/**
* Create part of the insert statement for field type number
+ * Strips everything what is not a digit from it.
+ *
* @param array $data
* @param array $queryData
* @return mixed
if(empty($data['valueToSave'])) {
$data['valueToSave'] = 0;
}
+ $data['valueToSave'] = preg_replace('/[^\p{N}]/u', '', $data['valueToSave']);
$queryData['init'][] = "`".$data['identifier']."` = '".$this->_DB->real_escape_string($data['valueToSave'])."'";
return $queryData;
}
case 'digit':
// only numbers and digit
// warning with negative numbers...
- $pattern = '/[\p{N}\-]/';
+ $pattern = '/[\p{N}\-]/u';
break;
case 'pageTitle':
<div class="uk-card uk-card-default uk-card-small">
<div class="uk-card-media-top">
<?php if(Summoner::ifset($entry['fields'], 'coverimage')) { ?>
+ <a href="<?php echo $TemplateData['entryLinkPrefix']; ?>&id=<?php echo $entryK; ?>">
<img src="<?php echo $TemplateData['storagePath'].'/'.$entryK.'/'.$entry['fields']['coverimage']['value']; ?>"
alt="<?php echo $entry['fields']['coverimage']['displayname']; ?>">
-
+ </a>
<?php } ?>
</div>
<div class="uk-card-body uk-visible@l">
<div class="uk-card uk-card-default uk-grid-collapse uk-child-width-1-2@s uk-margin" uk-grid>
<div class="uk-card-media-left uk-cover-container">
<?php if(Summoner::ifset($entry['fields'], 'coverimage')) { ?>
+ <a href="index.php?p=entry&collection=<?php echo $k ?>&id=<?php echo $entryK; ?>">
<img src="<?php echo PATH_WEB_STORAGE.'/'.$k.'/'.$entryK.'/'.$entry['fields']['coverimage']['value']; ?>"
alt="<?php echo $entry['fields']['coverimage']['displayname']; ?>" uk-cover>
<canvas width="600" height="400"></canvas>
+ </a>
<?php } ?>
</div>
<div>