예제 #1
0
                                    if ($_GET['action'] == 'exit') {
                                        echo '<span class="negative">' . CMTX_LOGIN_EXIT . '</span>';
                                    }
                                }
                            }
                        }
                    }
                }
                ?>
	</div>
	<div style="text-align:center; margin-top:10px;">
	<span class="reset_link"><a href="index.php?page=reset" title="<?php 
                echo CMTX_LOGIN_RESET;
                ?>
"><?php 
                echo CMTX_LOGIN_RESET;
                ?>
</a></span>
	</div>
	</div>
	</body>
	</html>
	<?php 
                if (file_exists('../installer')) {
                    cmtx_delete_installer('../installer');
                }
                die;
            }
        }
    }
}
예제 #2
0
function cmtx_delete_installer($dir)
{
    //delete installer folder
    if (is_dir($dir)) {
        $objects = scandir($dir);
        foreach ($objects as $object) {
            if ($object != '.' && $object != '..') {
                if (filetype($dir . '/' . $object) == 'dir') {
                    cmtx_delete_installer($dir . '/' . $object);
                } else {
                    @unlink($dir . '/' . $object);
                }
            }
        }
        reset($objects);
        @rmdir($dir);
    }
}