$Qcheck->execute(); if ($Qcheck->fetch() !== false) { $OSCOM_Db->save('administrators', ['user_password' => Hash::encrypt(trim($_POST['CFG_ADMINISTRATOR_PASSWORD']))], ['user_name' => $_POST['CFG_ADMINISTRATOR_USERNAME']]); } else { $OSCOM_Db->save('administrators', ['user_name' => $_POST['CFG_ADMINISTRATOR_USERNAME'], 'user_password' => Hash::encrypt(trim($_POST['CFG_ADMINISTRATOR_PASSWORD']))]); } } if (FileSystem::isWritable(OSCOM::BASE_DIR . 'Work')) { if (!is_dir(Cache::getPath())) { mkdir(Cache::getPath(), 0777); } if (!is_dir(OSCOM::BASE_DIR . 'Work/Session')) { mkdir(OSCOM::BASE_DIR . 'Work/Session', 0777); } } foreach (glob(Cache::getPath() . '*.cache') as $c) { unlink($c); } $dir_fs_document_root = $_POST['DIR_FS_DOCUMENT_ROOT']; if (substr($dir_fs_document_root, -1) != '\\' && substr($dir_fs_document_root, -1) != '/') { if (strrpos($dir_fs_document_root, '\\') !== false) { $dir_fs_document_root .= '\\'; } else { $dir_fs_document_root .= '/'; } } $http_url = parse_url($_POST['HTTP_WWW_ADDRESS']); $http_server = $http_url['scheme'] . '://' . $http_url['host']; $http_catalog = $http_url['path']; if (isset($http_url['port']) && !empty($http_url['port'])) { $http_server .= ':' . $http_url['port'];
?> </td> <td class="text-right"><?php echo count($cache_files[$key]); ?> </td> <td class="action"><a href="<?php echo OSCOM::link(FILENAME_CACHE, 'action=reset&block=' . $key); ?> "><i class="fa fa-recycle" title="<?php echo OSCOM::getDef('image_delete'); ?> "></i></a></td> </tr> <?php } ?> </tbody> </table> <p> <?php echo '<strong>' . OSCOM::getDef('text_cache_directory') . '</strong> ' . FileSystem::displayPath(Cache::getPath()); ?> </p> <?php require $oscTemplate->getFile('template_bottom.php'); require 'includes/application_bottom.php';