Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1949459
backup3.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Oct 29, 6:16 AM
Size
2 KB
Mime Type
text/x-php
Expires
Sat, Oct 31, 6:16 AM (7 h, 13 m)
Engine
blob
Format
Raw Data
Handle
963426
Attached To
rINP In-Portal
backup3.php
View Options
<?php
// new startup: begin
define
(
'REL_PATH'
,
'admin/backup'
);
$relation_level
=
count
(
explode
(
'/'
,
REL_PATH
)
);
define
(
'FULL_PATH'
,
realpath
(
dirname
(
__FILE__
)
.
str_repeat
(
'/..'
,
$relation_level
)
)
);
require_once
FULL_PATH
.
'/kernel/startup.php'
;
// new startup: end
$pathtolocal
=
$pathtoroot
.
"kernel/"
;
require_once
(
$pathtoroot
.
"admin/include/elements.php"
);
require_once
(
$pathtoroot
.
"kernel/admin/include/navmenu.php"
);
require_once
(
$pathtolocal
.
"admin/include/navmenu.php"
);
require_once
(
$pathtoroot
.
"admin/toolbar.php"
);
$filename
=
$objSession
->
GetVariable
(
"backup_filename"
);
$filepath
=
$objSession
->
GetVariable
(
"Backup_Path"
);
$filename
=
$filepath
.
"/"
.
$filename
;
$error
=
$objSession
->
GetVariable
(
"backup_error"
);
$success
=
0
;
$success
=
$objSession
->
GetVariable
(
"backup_success"
);
$objSession
->
SetVariable
(
"backup_start"
,
0
);
$objSession
->
SetVariable
(
"backup_tnumber"
,
0
);
$section
=
"in-portal:backup"
;
//Set Environment Variable
$envar
=
"env="
.
BuildEnv
();
$sec
=
$objSections
->
GetSection
(
$section
);
$objCatToolBar
=
new
clsToolBar
();
$var
=
"?env="
.
BuildEnv
();
$link
=
$rootURL
.
"admin/backup/backup1.php"
.
$var
;
$objCatToolBar
->
Add
(
"moveleft"
,
admin_language
(
"la_ToolTip_Previous"
).
" "
.
admin_language
(
"la_Text_Step"
),
$link
,
$MouseOver
,
$MouseOut
,
""
,
"tool_prev.gif"
);
$MouseOver
=
""
;
$MouseOut
=
""
;
$onClick
=
""
;
$link
=
"#"
;
$objCatToolBar
->
Add
(
"moveright"
,
admin_language
(
"la_ToolTip_Next"
).
" "
.
admin_language
(
"la_Text_Step"
),
"#"
,
""
,
""
,
""
,
"tool_next_f3.gif"
);
$title
=
admin_language
(
"la_performing_backup"
).
" - "
.
admin_language
(
"la_Step"
).
" 3"
;
int_header
(
$objCatToolBar
,
NULL
,
$title
);
?>
<table width="100%" border="0" cellspacing="0" cellpadding="4" class="tableborder">
<form name="backup1" METHOD="POST" action="
<?php
echo
$_SERVER
[
"PHP_SELF"
].
"?"
.
$envar
;
?>
">
<?php
int_subsection_title
(
prompt_language
(
"la_Prompt_Backup_Status"
));
?>
<TR
<?php
echo
int_table_color
();
?>
>
<TD COLSPAN="2"><span class=\"text\">
<?php
echo
prompt_language
(
"la_Text_BackupComplete"
);
?>
<BR />
<?php
echo
$filename
;
?>
<?php
echo
filesize
(
$filename
).
" "
.
prompt_language
(
"la_text_Bytes"
);
?>
</span>
</TD>
</TR>
</FORM>
</TABLE>
<?php
int_footer
();
?>
Event Timeline
Log In to Comment