Lines Matching +full:style +full:. +full:local +full:. +full:ini

6  * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
7 * @author Andreas Gohr <andi@splitbrain.org>
31 * their CSS tags except pagenames won't be links.
33 * @author Matthias Grimm <matthiasgrimm@users.sourceforge.net>
41 echo '<h1>' . $lang['reference'] . ' <code>' . hsc(noNS($id)) . '</code></h1>';
42 echo '<p>' . hsc($lang['ref_inuse']) . '</p>';
48 echo '<span class="mediaref_ref">' . hsc($row) . '</span>';
53 echo '<div class="mediaref_hidden">' . $lang['ref_hidden'] . '</div>';
60 * @author Andreas Gohr <andi@splitbrain.org>
61 * @author Kate Arzamastseva <pshns@ukr.net>
115 * @author Gerrit Uitslag <klapinklapin@gmail.com>
129 * @author Andreas Gohr <andi@splitbrain.org>
138 if (auth_aclcheck(getNS($id) . ':*', '', []) >= AUTH_READ) return true;
145 * @author Andreas Gohr <andi@splitbrain.org>
146 * @author Kate Arzamastseva <pshns@ukr.net>
157 echo '<div class="nothing">' . $lang['media_perm_upload'] . '</div>' . DOKU_LF;
191 'id' => 'meta__' . $key,
192 'name' => 'meta[' . $field[0] . ']'
199 ($lang[$field[1]] ?: $field[1] . ':')
222 * @author Michael Klier <chi@chimeric.de>
248 * @author Andreas Gohr <andi@splitbrain.org>
261 $auth = auth_quickaclcheck(ltrim(getNS($id) . ':*', ':'));
318 $path = $tmp . '/' . md5($id);
330 $ns . ':' . $id,
347 * @author Andreas Gohr <andi@splitbrain.org>
348 * @author Michael Klier <chi@chimeric.de>
366 // check for errors (messages are done in lib/exe/mediamanager.php)
374 $id .= '.' . $fext;
387 $ns . ':' . $id,
419 * This generates an action event and delegates to _media_upload_action().
420 * Action plugins are allowed to pre/postprocess the uploaded file.
421 * (The triggered event is preventable.)
429 * $data[5] move: name of function that performs move/copy/..
437 * @param string $move name of functions that performs move/copy/..
443 return ["You don't have permissions to upload files.", -1];
471 if (!preg_match('/\.(' . $regex . ')$/i', $fn)) {
484 return [sprintf($lang['uploadbadcontent'], '.' . $file['ext']), -1];
507 * @author Michael Klier <chi@chimeric.de>
525 * @author Andreas Gohr <andi@splitbrain.org>
526 * @author Michael Klier <chi@chimeric.de>
527 * @author Kate Arzamastseva <pshns@ukr.net>
557 // Set the correct permission here.
558 // Always chmod media because they may be saved with different permissions than expected from the php umask.
559 // (Should normally chmod to $conf['fperm'] only if $conf['fperm'] is set.)
591 * @author Kate Arzamastseva <pshns@ukr.net>
610 if (!file_exists(mediaMetaFN($id, '.changes'))) {
625 // Set the correct permission here.
626 // Always chmod media because they may be saved with different permissions than expected from the php umask.
627 // (Should normally chmod to $conf['fperm'] only if $conf['fperm'] is set.)
635 * mimetype says it is. We also do spam checking for text types here.
638 * to do this check correctly. Yes, IE is broken as usual.
640 * @author Andreas Gohr <andi@splitbrain.org>
641 * @link http://www.splitbrain.org/blog/2007-02/12-internet_explorer_facilitates_cross_site_scripting
684 * @author Andreas Gohr <andi@splitbrain.org>
718 if (!$fullscreenview) echo '<h1 id="media__ns">:' . hsc($ns) . '</h1>' . NL;
722 echo '<div class="nothing">' . $lang['nothingfound'] . '</div>' . NL;
742 echo '<div class="nothing">' . $lang['nothingfound'] . '</div>' . NL;
745 echo '<ul class="' . _media_get_list_type() . '">';
762 if ($fullscreenview) echo '</ul>' . NL;
770 * @author Kate Arzamastseva <pshns@ukr.net>
771 * @author Adrian Lang <mail@adrianlang.de>
799 * @author Kate Arzamastseva <pshns@ukr.net>
833 * @author Kate Arzamastseva <pshns@ukr.net>
855 $form->addHTML('<ul>' . NL);
865 $form->addHTML('<li class="' . $content[0] . '">');
872 $group . '_dwmedia',
873 $lang['media_' . $group . '_' . $option]
874 )->val($option)->id($content[0] . '__' . $option)->addClass($option);
877 $form->addHTML('</li>' . NL);
881 $form->addHTML('</li>' . NL);
882 $form->addHTML('</ul>' . NL);
890 * @author Kate Arzamastseva <pshns@ukr.net>
902 * @author Kate Arzamastseva <pshns@ukr.net>
936 * @author Kate Arzamastseva <pshns@ukr.net>
948 echo '<div class="nothing">' . $lang['media_perm_read'] . '</div>' . NL;
957 * @author Kate Arzamastseva <pshns@ukr.net>
968 echo '<div class="upload">' . NL;
970 echo '<p>' . $lang['mediaupload'] . '</p>';
973 echo '</div>' . NL;
979 * @author Kate Arzamastseva <pshns@ukr.net>
990 echo '<div class="search">' . NL;
996 echo '</div>' . NL;
1002 * @author Kate Arzamastseva <pshns@ukr.net>
1020 echo '<div class="nothing">' . $lang['media_perm_read'] . '</div>' . NL;
1027 * @author Kate Arzamastseva <pshns@ukr.net>
1046 * @author Kate Arzamastseva <pshns@ukr.net>
1068 echo '<div class="nothing">' . $lang['media_perm_read'] . '</div>' . NL;
1080 * @author Kate Arzamastseva <pshns@ukr.net>
1103 echo '<a href="' . $src . '" target="_blank" title="' . $lang['mediaview'] . '">';
1104 echo '<img src="' . $src . '" alt="" style="max-width: ' . $size[0] . 'px;" />';
1114 * @author Kate Arzamastseva <pshns@ukr.net>
1177 * @author Kate Arzamastseva <pshns@ukr.net>
1187 !preg_match("/\.(jpe?g|gif|png)$/", $image)
1206 * @author Kate Arzamastseva <pshns@ukr.net>
1224 * @author Kate Arzamastseva <pshns@ukr.net>
1256 * @author Kate Arzamastseva <pshns@ukr.net>
1270 echo '<dl>' . NL;
1274 echo '<dt>' . $lang[$tag['tag'][1]] . '</dt><dd>';
1277 echo '</dd>' . NL;
1280 echo '</dl>' . NL;
1281 echo '<dl>' . NL;
1282 echo '<dt>' . $lang['reference'] . ':</dt>';
1286 echo '<dd>' . html_wikilink($path) . '</dd>';
1289 echo '<dd>' . $lang['nothingfound'] . '</dd>';
1291 echo '</dl>' . NL;
1297 * @author Kate Arzamastseva <pshns@ukr.net>
1308 dbg_deprecated('see ' . MediaDiff::class . '::show()');
1320 dbg_deprecated('see ' . MediaDiff::class . '::show()');
1326 * @author Kate Arzamastseva <pshns@ukr.net>
1338 dbg_deprecated('see ' . MediaDiff::class . '::showFileDiff()');
1345 * @author Kate Arzamastseva <pshns@ukr.net>
1357 dbg_deprecated('see ' . MediaDiff::class . '::showImageDiff()');
1368 * @author Kate Arzamastseva <pshns@ukr.net>
1374 $removed = (!file_exists(mediaFN($image)) && file_exists(mediaMetaFN($image, '.changes')));
1396 * @author Tobias Sarnowski <sarnowski@cosmocode.de>
1397 * @author Andreas Gohr <gohr@cosmocode.de>
1398 * @author Kate Arzamastseva <pshns@ukr.net>
1424 $quoted = str_replace(['\*', '\?'], ['.*', '.'], $quoted, $count);
1427 if ($count > 0) $quoted = '^([^:]*:)*' . $quoted . '$';
1429 $pattern = '/' . $quoted . '/i';
1445 echo '<h1 id="media__ns">' . sprintf($lang['searchmedia_in'], hsc($ns) . ':*') . '</h1>' . NL;
1450 echo '<div class="nothing">' . $lang['nothingfound'] . '</div>' . NL;
1453 echo '<ul class="' . _media_get_list_type() . '">';
1470 if ($fullscreen) echo '</ul>' . NL;
1485 if (file_exists(DOKU_INC . 'lib/images/fileicons/' . $size . '/' . $ext . '.png')) {
1486 $icon = DOKU_BASE . 'lib/images/fileicons/' . $size . '/' . $ext . '.png';
1488 $icon = DOKU_BASE . 'lib/images/fileicons/' . $size . '/file.png';
1491 return '<img src="' . $icon . '" alt="' . $filename . '" class="icon" />';
1497 * @author Kate Arzamastseva <pshns@ukr.net>
1533 * @author Andreas Gohr <andi@splitbrain.org>
1534 * @author Kate Arzamastseva <pshns@ukr.net>
1547 echo '<div class="nothing">' . $lang['media_perm_upload'] . '</div>' . NL;
1565 : DOKU_BASE . 'lib/exe/mediamanager.php',
1589 echo '<div class="upload">' . $lang['mediaupload'] . '</div>' . DOKU_LF;
1594 echo '<div id="mediamanager__uploader">' . DOKU_LF;
1596 echo '</div>' . DOKU_LF;
1600 echo ' <a class="allowedmime" href="#">' . $lang['allowedmime'] . '</a>';
1601 echo ' <span>' . implode(', ', array_keys(getMimeTypes())) . '</span>';
1602 echo '</p>' . DOKU_LF;
1609 * in any of the limiting ini settings
1618 $suho = php_to_byte(@ini_get('suhosin.post.max_value_length'));
1631 * @author Tobias Sarnowski <sarnowski@cosmocode.de>
1632 * @author Kate Arzamastseva <pshns@ukr.net>
1647 : DOKU_BASE . 'lib/exe/mediamanager.php',
1655 ->attr('title', sprintf($lang['searchmedia_in'], hsc($ns) . ':*'))
1667 * @author Andreas Gohr <andi@splitbrain.org>
1689 array_unshift($data, ['level' => 0, 'id' => '', 'open' => 'true', 'label' => '[' . $lang['mediaroot'] . ']']);
1696 if ($tmp_ns) $tmp_ns .= ':' . $part;
1720 * @author Andreas Gohr <andi@splitbrain.org>
1734 $ret .= '<a href="' . DOKU_BASE . 'lib/exe/mediamanager.php?ns=' . idfilter($item['id']) . '" class="idx_dir">';
1735 else $ret .= '<a href="' . media_managerURL(['ns' => idfilter($item['id'], false), 'tab_files' => 'files'])
1736 . '" class="idx_dir">';
1737 $ret .= $item['label'];
1738 $ret .= '</a>';
1747 * @author Andreas Gohr <andi@splitbrain.org>
1754 $class = 'media level' . $item['level'];
1756 $class .= ' open';
1757 $img = DOKU_BASE . 'lib/images/minus.gif';
1760 $class .= ' closed';
1761 $img = DOKU_BASE . 'lib/images/plus.gif';
1764 // TODO: only deliver an image if it actually has a subtree...
1765 return '<li class="' . $class . '">' .
1766 '<img src="' . $img . '" alt="' . $alt . '" />';
1772 * @author Andreas Gohr <andi@splitbrain.org>
1815 * @author Andreas Gohr <andi@splitbrain.org>
1831 * @author Andreas Gohr <andi@splitbrain.org>
1849 * @author Christopher Smith <chris@jalakai.co.uk>
1861 if ($w) $token .= '.' . $w;
1862 if ($h) $token .= '.' . $h;
1871 * Download a remote file and return local filename
1873 * returns false if download fails. Uses cached file if available and
1876 * @author Andreas Gohr <andi@splitbrain.org>
1877 * @author Pavel Vitis <Pavel.Vitis@seznam.cz>
1892 $local = getCacheName(strtolower($url), ".media.$ext");
1893 $mtime = @filemtime($local); // 0 if not exists
1900 if (media_image_download($url, $local)) {
1901 return $local;
1908 if ($mtime) return $local;
1917 * @author Andreas Gohr <andi@splitbrain.org>
1930 $http->timeout = 25; //max. 25 sec
1956 * @author Pavel Vitis <Pavel.Vitis@seznam.cz>
1957 * @author Andreas Gohr <andi@splitbrain.org>
1977 $cmd .= ' -resize ' . $to_w . 'x' . $to_h . '!';
1979 $cmd .= ' -quality ' . $conf['jpg_quality'];
1981 $cmd .= " $from $to";
1991 * @author Andreas Gohr <andi@splitbrain.org>
2015 $cmd .= ' -crop ' . $to_w . 'x' . $to_h . '+' . $ofs_x . '+' . $ofs_y;
2017 $cmd .= ' -quality ' . $conf['jpg_quality'];
2019 $cmd .= " $from $to";
2029 * @author Andreas Gohr <andi@splitbrain.org>
2030 * @author Sebastian Wienecke <s_wienecke@web.de>
2149 * but different extensions.
2155 * @author Anika Henke <anika@selfthinker.org>
2165 $fileid = $filebase . '.' . $ext;
2176 * Check if video/audio is supported to be embedded.
2182 * @author Anika Henke <anika@selfthinker.org>
2208 * but extensions that indicate kind and lang.
2209 * ie for foo.webm search foo.sub.lang.vtt, foo.cap.lang.vtt...
2214 * @author Schplurtz le Déboulonné <Schplurtz@laposte.net>
2227 $re = '/\\.(sub|cap|des|cha|met)\\.([^.]+)\\.vtt$/';
2229 $pattern = mediaFN($baseid) . '.*.*.vtt';
2233 $files[$baseid . '.' . $matches[1] . '.' . $matches[2] . '.vtt'] = [$kinds[$matches[1]], $matches[2]];