mirror of
https://github.com/claradex/nativegallery.git
synced 2024-11-15 03:31:10 +03:00
fixes
This commit is contained in:
parent
837d784487
commit
7462e952e9
4 changed files with 6 additions and 2 deletions
|
@ -28,6 +28,7 @@ class Routes
|
|||
Router::get('/update', 'MainController@update');
|
||||
Router::get('/top30', 'MainController@top30');
|
||||
Router::get('/photoext', 'PhotoController@photoext');
|
||||
Router::get('/api/photo/compress', 'ApiController@photocompress');
|
||||
|
||||
|
||||
|
||||
|
@ -47,7 +48,6 @@ class Routes
|
|||
Router::post('/api/profile/update', 'ApiController@updateprofile');
|
||||
Router::post('/api/photo/comment', 'ApiController@photocomment');
|
||||
Router::get('/api/subscribe', 'ApiController@subscribeuser');
|
||||
Router::get('/api/photo/compress', 'ApiController@photocompress');
|
||||
Router::post('/api/photo/getcomments/$id', 'ApiController@photocommentload');
|
||||
Router::get('/api/photo/vote', 'ApiController@photovote');
|
||||
Router::get('/api/photo/checkall', 'ApiController@checkallphotos');
|
||||
|
|
|
@ -36,7 +36,7 @@ class Upload
|
|||
$fileext = pathinfo($file, PATHINFO_EXTENSION);
|
||||
}
|
||||
$cstrong = True;
|
||||
$filecdn = bin2hex(openssl_random_pseudo_bytes(64, $cstrong)) . '.' . $fileext;
|
||||
$filecdn = bin2hex(openssl_random_pseudo_bytes(64, $cstrong)) . '.' . $fileext['extension'];
|
||||
$folder = $location . $filecdn;
|
||||
|
||||
if (strtolower (NGALLERY['root']['storage']['type']) == "s3")
|
||||
|
|
|
@ -62,6 +62,10 @@ body {
|
|||
<i class="bx bx-news nav__icon"></i>
|
||||
<span class="nav__name">Новости сайта</span>
|
||||
</a>
|
||||
<a href="/admin?type=Entities" class="nav__link">
|
||||
<i class="bx bx-package nav__icon"></i>
|
||||
<span class="nav__name">Сущности</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
|
0
views/pages/Admin/Entities.php
Normal file
0
views/pages/Admin/Entities.php
Normal file
Loading…
Reference in a new issue