From 9b064ba06037634527711784c20e7c0bd46b8a44 Mon Sep 17 00:00:00 2001 From: Sergey <31823239+SeAnSolovev@users.noreply.github.com> Date: Sun, 5 Mar 2023 14:39:48 +0300 Subject: [PATCH] Update index.php --- index.php | 68 +++++++++++++++++++++++++++---------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/index.php b/index.php index a2c1682..62e9a20 100644 --- a/index.php +++ b/index.php @@ -1,29 +1,29 @@ connect('127.0.0.1', 11211) or exit('Ошибка подключения Memcache'); + $mcache = new Memcache; + $mcache->connect('127.0.0.1', 11211) or exit('Ошибка подключения Memcache'); // Composer if (!file_exists(ROOT.'vendor/autoload.php')) { @@ -31,22 +31,22 @@ } require(ROOT.'vendor/autoload.php'); - // Настройки - include(DATA.'config.php'); - include(DATA.'engine.php'); - include(DATA.'mysql.php'); - include(DATA.'params.php'); + // Настройки + include(DATA.'config.php'); + include(DATA.'engine.php'); + include(DATA.'mysql.php'); + include(DATA.'params.php'); - // Библиотеки - include(LIB.'sql.php'); - include(LIB.'html.php'); - include(LIB.'system.php'); + // Библиотеки + include(LIB.'sql.php'); + include(LIB.'html.php'); + include(LIB.'system.php'); - $uip = sys::ip(); + $uip = sys::ip(); - // Распределитель - include(SYS.'distributor.php'); + // Распределитель + include(SYS.'distributor.php'); - // Выхлоп - echo $html->arr['all']; + // Выхлоп + echo $html->arr['all']; ?> \ No newline at end of file