This commit is contained in:
themohooks 2024-09-14 22:57:33 +03:00
parent 837d784487
commit 7462e952e9
4 changed files with 6 additions and 2 deletions

View file

@ -28,6 +28,7 @@ class Routes
Router::get('/update', 'MainController@update'); Router::get('/update', 'MainController@update');
Router::get('/top30', 'MainController@top30'); Router::get('/top30', 'MainController@top30');
Router::get('/photoext', 'PhotoController@photoext'); 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/profile/update', 'ApiController@updateprofile');
Router::post('/api/photo/comment', 'ApiController@photocomment'); Router::post('/api/photo/comment', 'ApiController@photocomment');
Router::get('/api/subscribe', 'ApiController@subscribeuser'); Router::get('/api/subscribe', 'ApiController@subscribeuser');
Router::get('/api/photo/compress', 'ApiController@photocompress');
Router::post('/api/photo/getcomments/$id', 'ApiController@photocommentload'); Router::post('/api/photo/getcomments/$id', 'ApiController@photocommentload');
Router::get('/api/photo/vote', 'ApiController@photovote'); Router::get('/api/photo/vote', 'ApiController@photovote');
Router::get('/api/photo/checkall', 'ApiController@checkallphotos'); Router::get('/api/photo/checkall', 'ApiController@checkallphotos');

View file

@ -36,7 +36,7 @@ class Upload
$fileext = pathinfo($file, PATHINFO_EXTENSION); $fileext = pathinfo($file, PATHINFO_EXTENSION);
} }
$cstrong = True; $cstrong = True;
$filecdn = bin2hex(openssl_random_pseudo_bytes(64, $cstrong)) . '.' . $fileext; $filecdn = bin2hex(openssl_random_pseudo_bytes(64, $cstrong)) . '.' . $fileext['extension'];
$folder = $location . $filecdn; $folder = $location . $filecdn;
if (strtolower (NGALLERY['root']['storage']['type']) == "s3") if (strtolower (NGALLERY['root']['storage']['type']) == "s3")

View file

@ -62,6 +62,10 @@ body {
<i class="bx bx-news nav__icon"></i> <i class="bx bx-news nav__icon"></i>
<span class="nav__name">Новости сайта</span> <span class="nav__name">Новости сайта</span>
</a> </a>
<a href="/admin?type=Entities" class="nav__link">
<i class="bx bx-package nav__icon"></i>
<span class="nav__name">Сущности</span>
</a>

View file