Server IP : 184.154.167.98 / Your IP : 18.188.92.6 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/public_html/mesa/include/upgrader/streams/core/ |
Upload File : |
<?php /* * Loads the initial sequence from the inital data files */ class SequenceLoader extends MigrationTask { var $description = "Loading initial data for sequences"; function run($max_time) { global $cfg; $i18n = new Internationalization($cfg->get('system_language', 'en_US')); $sequences = $i18n->getTemplate('sequence.yaml')->getData(); foreach ($sequences as $s) { Sequence::__create($s); } db_query('UPDATE '.SEQUENCE_TABLE.' SET `next`= ' .'(SELECT MAX(ticket_id)+1 FROM '.TICKET_TABLE.') ' .'WHERE `id`=1'); // list.yaml and ticket_status.yaml import moved to // core/b26f29a6-1ee831c8.task.php // Initialize MYSQL search backend MysqlSearchBackend::__init(); } } return 'SequenceLoader'; ?>