<?php
    /*
        *****************************************************************************
        * MEGA Digital Space - by MEGA Digital Studio                               *
        * ------------------------------------------------------------------------- *
        * CMS Website:  https://megadigital.space                                   *
        * License:  https://megadigital.space/license                               *
        * Owner:  Giorgi Basharuli                                                  *
        * Contact:  online@megadigital.studio                                       *
        * MEGA Digital Studio – Official Development Studio for MEGA Digital Space  *
        * Website:  https://megadigital.studio                                      *
        * ------------------------------------------------------------------------- *
        * Description: This file is a part of the MEGA Digital Space CMS system.    *
        * Unauthorized distribution, modification, or commercial use is strictly -  *
        * prohibited without prior written permission.                              *
        * ------------------------------------------------------------------------- *
        * Copyright (c) 2023-2025 MEGA Digital Studio.                              *
        * All rights reserved.                                                      *
        *****************************************************************************
    */

    function resetAutoIncrement($db_connect, $tableName) {
        /*// Получаем максимальное значение id из указанной таблицы
        $sql = "SELECT MAX(id) AS max_id FROM " . $tableName;
        $result = $db_connect->query($sql);
        if ($result && $result->num_rows > 0) {
            $row = $result->fetch_assoc();
            $max_id = $row["max_id"];
            $page_id = $max_id + 1;
        } else {
            $page_id = 1;
            $max_id = 0;
        }
        // Сбрасываем счетчик автоинкремента к максимальному значению id
        $sql_reset_auto_increment = "ALTER TABLE " . $tableName . " AUTO_INCREMENT = " . ($max_id + 1);
        $db_connect->query($sql_reset_auto_increment);*/
        return [0, 0]; // Return both values as an array
    }