authpartner
Clone or download
Modified Files
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
##Codignitor##
##############
application/cache/*
!application/cache/index.html
!application/cache/.htaccess
application/logs/*
!application/logs/index.html
!application/logs/.htaccess
user_guide_src/build/*
user_guide_src/cilexer/build/*
user_guide_src/cilexer/dist/*
user_guide_src/cilexer/pycilexer.egg-info/*
/vendor/
# IDE Files
#-------------------------
/nbproject/
.idea/*
## Sublime Text cache files
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache
*.sublime-workspace
*.sublime-project
# Custom #
######################
.DS_Store
config.php
<?php
<?php
include 'config.php';
$fileBrowse = $_FILES['fileUpload']['tmp_name'];
$fileBrowse = $_FILES['fileUpload']['tmp_name'];
$filePath = $_POST['filePath'] . "/" . $_FILES['fileUpload']['name'];
$filePath = $_POST['filePath'] . "/" . $_FILES['fileUpload']['name'];
$access_token = $_POST['accesstoken'];
$access_token = $_POST['accesstoken'];
$fileContent = file_get_contents($fileBrowse);
$fileContent = file_get_contents($fileBrowse);
$finfo = new \finfo(FILEINFO_MIME_TYPE);
$finfo = new \finfo(FILEINFO_MIME_TYPE);
$mime = $finfo->buffer($fileContent);
$mime = $finfo->buffer($fileContent);
$client_secret = $config['client_secret_upload'];
$client_secret = 'Pax7Rmv9uWo2KrNcXMtlDtsQN';
$hk = hash_hmac('sha256', $fileContent, $client_secret, true);
$hk = hash_hmac('sha256', $fileContent, $client_secret, true);
$hmac = base64_encode($hk);
$hmac = base64_encode($hk);
$ur = array('Content-Type: ' . $mime, 'Authorization: Bearer ' . $access_token, 'path : ' . $filePath, 'hmac : ' . $hmac . '');
$ur = array('Content-Type: ' . $mime, 'Authorization: Bearer ' . $access_token, 'path : ' . $filePath, 'hmac : ' . $hmac . '');
$ch = curl_init();
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://developers.digitallocker.gov.in/public/oauth2/1/file/upload");
curl_setopt($ch, CURLOPT_URL, $config['upload_file']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_NOSIGNAL, 1);
curl_setopt($ch, CURLOPT_NOSIGNAL, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $fileContent);
curl_setopt($ch, CURLOPT_POSTFIELDS, $fileContent);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_TCP_NODELAY, 1);
curl_setopt($ch, CURLOPT_TCP_NODELAY, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $ur);
curl_setopt($ch, CURLOPT_HTTPHEADER, $ur);
$output = curl_exec($ch);
$output = curl_exec($ch);
curl_close($ch);
curl_close($ch);
header("Location: uploaddoc.php?code=".$_POST['code']."&state=".$_POST['state']); /* Redirect browser */
header("Location: uploaddoc.php?code=".$_POST['code']."&state=".$_POST['state']); /* Redirect browser */
exit();
exit();
//echo "Your File has been uploaded please <a href=/digibank/index.php>Click Here</a> to go main page";
?>
?>
GIF89aR ~~~}}}{{{zzzxxxwwwuuutttsssrrrqqqooonnnmmmllljjjhhhgggfffeeedddbbb```___^^^]]][[[ZZZYYYXXXWWWTTTSSSRRRQQQOOONNNMMMKKKJJJHHHGGGFFFEEEDDDBBBAAA@@@???>>><<<;;;888777555444333///...---+++***&&&%%%$$$"""!!! !NETSCAPE2.0 !