KirKMS Posted October 10, 2019 Report Share Posted October 10, 2019 В файле mod.php удалить всё от switch ($go) { до } Добавить вместо этого //Автозагрузчик модулей if($page = str_replace(array("/", "/", "\", "\\"), "", $_GET['go'])){ if(is_file(ROOT_DIR."/system/modules/{$page}.php")) include ROOT_DIR."/system/modules/{$page}.php"; else header('location: /'); } else include ROOT_DIR."/index.php"; Автор Edward Nemirovskiy Взято из одной очень хорошей сборки, но не доделанной Quote Link to comment Share on other sites More sharing options...
Mario Posted October 10, 2019 Report Share Posted October 10, 2019 В вии есть модули, которые не соответствуют названию переменной Quote Link to comment Share on other sites More sharing options...
KirKMS Posted October 10, 2019 Author Report Share Posted October 10, 2019 1 минуту назад, Mario сказал: В вии есть модули, которые не соответствуют названию переменной На голой Vii работает отлично 1 Quote Link to comment Share on other sites More sharing options...
Mario Posted October 10, 2019 Report Share Posted October 10, 2019 6 минут назад, Kir KMS сказал: На голой Vii работает отлично Как раз таки, даже в дефолтной, будут неточности (11 раз) Quote Link to comment Share on other sites More sharing options...
KirKMS Posted October 10, 2019 Author Report Share Posted October 10, 2019 @Mario Значит кто шарит.Тому пригодиться Quote Link to comment Share on other sites More sharing options...
kphp Posted October 10, 2019 Report Share Posted October 10, 2019 1 час назад, Mario сказал: Как раз таки, даже в дефолтной, будут неточности (11 раз) у меня вроде работает Quote Link to comment Share on other sites More sharing options...
Mario Posted October 10, 2019 Report Share Posted October 10, 2019 13 минут назад, kphp сказал: у меня вроде работает Отключение в админке фотографий, аудио, скрытие блока дня рождения, удаление страницы, а так же титлбары не работают Quote Link to comment Share on other sites More sharing options...
FastCHAT Posted October 11, 2019 Report Share Posted October 11, 2019 16 часов назад, Kir KMS сказал: В файле mod.php удалить всё от switch ($go) { до } Добавить вместо этого //Автозагрузчик модулей if($page = str_replace(array("/", "/", "\", "\\"), "", $_GET['go'])){ if(is_file(ROOT_DIR."/system/modules/{$page}.php")) include ROOT_DIR."/system/modules/{$page}.php"; else header('location: /'); } else include ROOT_DIR."/index.php"; Автор Edward Nemirovskiy Взято из одной очень хорошей сборки, но не доделанной Взято со сборки Cat Engine! 1 Quote Link to comment Share on other sites More sharing options...
Leymelki Posted October 11, 2019 Report Share Posted October 11, 2019 1 час назад, PHPSocial сказал: Взято со сборки Cat Engine! Первый раз слышу о такой Quote Link to comment Share on other sites More sharing options...
KirKMS Posted October 11, 2019 Author Report Share Posted October 11, 2019 3 часа назад, PHPSocial сказал: Взято со сборки Cat Engine! Дааа.Я автора вообще-то указал Quote Link to comment Share on other sites More sharing options...
Leymelki Posted October 11, 2019 Report Share Posted October 11, 2019 3 часа назад, Kir KMS сказал: Дааа.Я автора вообще-то указал А название сборки Quote Link to comment Share on other sites More sharing options...
FastCHAT Posted October 11, 2019 Report Share Posted October 11, 2019 3 минуты назад, Karina сказал: А название сборки Её нет в паблике могу слить её если автор конечно разрешит! 1 Quote Link to comment Share on other sites More sharing options...
KirKMS Posted October 11, 2019 Author Report Share Posted October 11, 2019 3 часа назад, PHPSocial сказал: Её нет в паблике могу слить её если автор конечно разрешит! Смысл сливать не до писанную Quote Link to comment Share on other sites More sharing options...
FastCHAT Posted October 11, 2019 Report Share Posted October 11, 2019 4 минуты назад, Kir KMS сказал: Смысл сливать не до писанную Ну кому то может пригодится 1 Quote Link to comment Share on other sites More sharing options...
KirKMS Posted October 11, 2019 Author Report Share Posted October 11, 2019 1 минуту назад, PHPSocial сказал: Ну кому то может пригодится Не каждому.Там всего 3 страницы написаны.Остальное долго писать надо, да и там уже многое устарело Quote Link to comment Share on other sites More sharing options...
kphp Posted October 12, 2019 Report Share Posted October 12, 2019 11 часов назад, PHPSocial сказал: Ну кому то может пригодится выложи полезно будет по изучать код да и вообще Quote Link to comment Share on other sites More sharing options...
FastCHAT Posted October 12, 2019 Report Share Posted October 12, 2019 4 часа назад, kphp сказал: выложи полезно будет по изучать код да и вообще Если автор разрешит то выложу! 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.