PATH:
home
/
bkunreyz
/
bcmuslimgolfers.com
/
wp-content
/
plugins
/
backup
/
com
/
lib
<?php namespace BackupGuard\Upload; require_once(SG_LIB_PATH . 'SGArchive.php'); use SGArchive; class Handler { private $data = null; private $fileName = ""; private $tmpFileName = ""; public function __construct($data) { $this->data = $data; $this->import(); } private function import() { $this->fileName = $this->data['files']['name'][0]; $this->tmpFileName = $this->data['files']['tmp_name'][0]; if (substr($this->fileName, -5) != '.sgbp') { $this->fileName .= '.sgbp'; } $dirPath = $this->getDestinationDirPath(); $file = $dirPath . $this->fileName; $data = file_get_contents($this->tmpFileName); file_put_contents($file, $data, FILE_APPEND); } private function getDestinationDirPath() { return SG_BACKUP_DIRECTORY; } private function getDestinationDirUrl() { return SG_BACKUP_DIRECTORY_URL; } }
[-] SGDBState.php
[edit]
[+]
Request
[-] SGMysqldump.php
[edit]
[-] SGUploadState.php
[edit]
[-] SGFileState.php
[edit]
[-] SGReloaderState.php
[edit]
[-] SGReviewManager.php
[edit]
[-] SGArchive.php
[edit]
[-] SGStatsRequests.php
[edit]
[-] SGCallback.php
[edit]
[-] SGAuthClient.php
[edit]
[-] SGReloadHandler.php
[edit]
[+]
BackupGuard
[-] SGMigrateState.php
[edit]
[+]
..
[-] SGReloader.php
[edit]
[-] SGCharsetHandler.php
[edit]
[-] SGUploadHandler.php
[edit]
[-] SGCdrEntry.php
[edit]
[-] SGFileEntry.php
[edit]
[+]
Dropbox
[-] SGState.php
[edit]
[-] SGEntry.php
[edit]