-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmanual_install_cleanup.php
35 lines (35 loc) · 1.06 KB
/
manual_install_cleanup.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
// start - remove install folder - sgtmudd
$setPermissions = "setpermissions.php";
@unlink($setPermissions);
$dir1 = 'install/includes/';
foreach(glob($dir1.'*.*') as $v){
@unlink($v);
}
rmdir('install/includes');
$dir2 = 'install/sql/';
foreach(glob($dir2.'*.*') as $v){
@unlink($v);
}
rmdir('install/sql');
$dir3 = 'install/';
foreach(glob($dir3.'*.*') as $v){
@unlink($v);
}
rmdir('install');
echo 'Installation files/folders removed...<br /><br />';
// remove ip2country install files/folders
$dir4 = 'ip2c/';
foreach(glob($dir4.'*.*') as $v){
@unlink($v);
}
rmdir('ip2c');
$installFile = "ip2country.php";
@unlink($installFile);
echo 'Ip2Country files/folders removed...<br /><br />';
// remove member application files/folders
$installFile = "MA_Install_214.php";
@unlink($installFile);
echo 'Member Application install files/folders removed...<br /><br />';
echo 'Clean up complete. Click <a href="index.php">HERE</a> to continue.<br />(You can now delete this file also: "manual_install_cleanup.php")';
?>