2024-05-20 14:40:53 +03:00
|
|
|
<?php
|
2024-05-21 11:53:40 +03:00
|
|
|
|
|
|
|
namespace src;
|
|
|
|
|
2024-06-14 15:55:36 +03:00
|
|
|
use src\debug\Debug;
|
|
|
|
use src\file_db_driver\FileDatabaseDriver;
|
|
|
|
use src\Information;
|
2024-05-21 11:53:40 +03:00
|
|
|
|
2024-06-14 15:55:36 +03:00
|
|
|
require_once "vendor/autoload.php";
|
2024-05-20 15:11:17 +03:00
|
|
|
|
2024-06-26 11:10:17 +03:00
|
|
|
//$fileName = "Information.txt";
|
|
|
|
//$fileModeOpen = "a";
|
2024-05-20 15:11:17 +03:00
|
|
|
|
2024-05-21 17:06:42 +03:00
|
|
|
$fullInformation = new Information();
|
|
|
|
$fullInformation->load($_REQUEST);
|
2024-05-20 15:11:17 +03:00
|
|
|
|
2024-05-21 17:06:42 +03:00
|
|
|
$string = $fullInformation->toString();
|
2024-05-20 15:11:17 +03:00
|
|
|
|
2024-06-14 15:55:36 +03:00
|
|
|
$obj = new FileDatabaseDriver();
|
|
|
|
$obj->connect(__DIR__ . "/Information.txt");
|
2024-06-26 11:10:17 +03:00
|
|
|
//$obj->updateServiceInfo($string);
|
2024-06-14 15:55:36 +03:00
|
|
|
$obj->save($string);
|
|
|
|
$obj->close();
|
2024-05-21 17:06:42 +03:00
|
|
|
|
2024-06-14 15:55:36 +03:00
|
|
|
require "views/search.php";
|