mirror of
https://github.com/WerySkok/nativegallery.git
synced 2024-11-15 11:39:13 +03:00
18 lines
No EOL
396 B
PHP
18 lines
No EOL
396 B
PHP
<?php
|
|
|
|
namespace App\Controllers\Api\Admin\Images;
|
|
|
|
|
|
|
|
use App\Services\{Auth, Router, GenerateRandomStr, DB, Json, EXIF};
|
|
use App\Models\{User, Vote};
|
|
|
|
|
|
class SetVisibility
|
|
{
|
|
public function __construct()
|
|
{
|
|
DB::query('UPDATE photos SET moderated=:mod WHERE id=:id', array(':id'=>$_GET['id'], ':mod'=>$_GET['mod']));
|
|
header('Location: ' . $_SERVER['HTTP_REFERER']);
|
|
}
|
|
} |