| @@ 106-118 (lines=13) @@ | ||
| 103 | $_SESSION['xoopsUserTheme'] = 'default'; |
|
| 104 | } |
|
| 105 | ||
| 106 | if ($cache) { |
|
| 107 | $dir = XOOPS_ROOT_PATH . '/cache'; |
|
| 108 | if (is_dir($dir)) { |
|
| 109 | if ($dh = opendir($dir)) { |
|
| 110 | while (($file = readdir($dh)) !== false) { |
|
| 111 | if (filetype($dir . '/' . $file) !== 'dir' && $file !== 'index.html' && $file !== 'adminmenu.php') { |
|
| 112 | @unlink($dir . '/' . $file); |
|
| 113 | } |
|
| 114 | } |
|
| 115 | closedir($dh); |
|
| 116 | } |
|
| 117 | } |
|
| 118 | } |
|
| 119 | ||
| 120 | if ($template_c) { |
|
| 121 | $dir = XOOPS_ROOT_PATH . '/templates_c'; |
|
| @@ 120-132 (lines=13) @@ | ||
| 117 | } |
|
| 118 | } |
|
| 119 | ||
| 120 | if ($template_c) { |
|
| 121 | $dir = XOOPS_ROOT_PATH . '/templates_c'; |
|
| 122 | if (is_dir($dir)) { |
|
| 123 | if ($dh = opendir($dir)) { |
|
| 124 | while (($file = readdir($dh)) !== false) { |
|
| 125 | if (filetype($dir . '/' . $file) !== 'dir' && $file !== 'index.html') { |
|
| 126 | @unlink($dir . '/' . $file); |
|
| 127 | } |
|
| 128 | } |
|
| 129 | closedir($dh); |
|
| 130 | } |
|
| 131 | } |
|
| 132 | } |
|
| 133 | ||
| 134 | // Session |
|
| 135 | if ($session) { |
|