1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 17:14:42 +02:00

Plugin downlods in working state (work in progress, cleanup needed)

This commit is contained in:
SecretR
2013-05-19 18:38:27 +03:00
parent c4121e5fd7
commit 3094f39c98
4 changed files with 66 additions and 126 deletions

View File

@@ -75,11 +75,11 @@ if(e_AJAX_REQUEST)
{
case 'download':
$string = base64_decode($_GET['src']);
parse_str($string,$p);
parse_str($string, $p);
$mp = $themec->getMarketplace();
$mp->generateAuthKey($e107SiteUsername, $e107SiteUserpass);
// Server flush useless. It's ajax ready state 4, we can't flush (sadly) before that (at least not for all browsers)
echo "<pre>Connecting...<br />"; flush(); // FIXME change the modal default label, default is Loading...
echo "<pre>Connecting...\n"; flush(); // FIXME change the modal default label, default is Loading...
// download and flush
$mp->download($p['id'], $p['mode'], $p['type']);
echo "</pre>"; flush();