fix show page

This commit is contained in:
themohooks 2025-02-11 21:17:35 +03:00
parent 33ce890c07
commit 3b3efb4c84
2 changed files with 3 additions and 6 deletions

View file

@ -1,8 +1,5 @@
-- Migration script to update database schema
-- Drop tables that are no longer needed
-- (No tables to drop as all tables in 111.sql exist in 222.sql)
-- Add new tables from 222.sql that don't exist in 111.sql
CREATE TABLE IF NOT EXISTS `contests` (
`id` int(10) NOT NULL AUTO_INCREMENT,
@ -29,8 +26,8 @@ CREATE TABLE IF NOT EXISTS `servicekeys` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Modify existing tables to add new columns
ALTER TABLE `photos`
ADD COLUMN IF NOT EXISTS `pinnedcomment_id` int(10) NOT NULL DEFAULT 0 AFTER `entitydata_id`;
-- Using proper ALTER TABLE syntax for MySQL
ALTER TABLE `photos` ADD COLUMN `pinnedcomment_id` int(10) NOT NULL DEFAULT 0 AFTER `entitydata_id`;
-- Set AUTO_INCREMENT values for the new tables
ALTER TABLE `contests` AUTO_INCREMENT = 1;

View file

@ -43,7 +43,7 @@ $user = new User(Auth::userid());
var pub_pid = 0;
</script>
<td class="main">
<?php if (NGALLERY['root']['registration']['emailverify'] != true || $user->i('status') === 3) {
<?php if (NGALLERY['root']['registration']['emailverify'] != false || $user->i('status') === 3) {
die('Чтобы публиковать Фотографии и Видео, нужно подтвердить почту.');
} ?>
<h1>Предложить медиа на публикацию</h1>