????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 18.191.150.27
Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f
System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/appsrv.astacus.se/apps/school/www_old3/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/appsrv.astacus.se/apps/school/www_old3//downLoader.html
<!DOCTYPE html>
<html>
    <head>
        <meta id="id_meta" charset="utf-8"/>
        <title>index.html</title>
        <style>
            
        </style>
        
        <link href="css/shared_styles_new.css" rel="stylesheet" type="text/css" media="all">
        
        <script src="downloadFiles.js" type="text/javascript"></script>
        <script src="js/topmostInfo.js" type="text/javascript"></script>
        <script src="js/enumsClasses.js" type="text/javascript"></script>
        <script src="js/shared_functions_new.js" type="text/javascript"></script>
        <script src="js/WebkitDragAndDrop.js" type="text/javascript"></script>
        
        <script type="text/javascript" charset="utf-8">
        
        var _pathProjectFiles = '';
        var _nthFileIsDownloading = 0;
        var _nFilesToDownload;
        var _eProgressBar;
        var _eMessage = '';
        var _downloadFailedCount = 0;
        var _deviceOS = null;
        
        document.addEventListener("deviceready", onDeviceReady, true);
        
        function onDeviceReady()
        {
            updatePathProjectFiles();
            
            downloadFilesAsPerLevelsPageExist();
        }
        
        function page_preLoad()
        {
            shared_setDeviceTypeLevelCategoryLastLesson(Level.None, Category.None);
            shared_set_tblMainiPadBodyWidthHeight('id_tblMainiPadBody', 'id_meta');
            
            shared_setHeaderTable('id_tblHeader', shared_title_page, '', false, false, false);
            shared_setFooterTableEmpty('id_tblFooter');
        }
        
        function page_onLoad()
        {
        }
        
        function downloadFilesAsPerLevelsPageExist()
        {
            window.requestFileSystem  = window.requestFileSystem || window.webkitRequestFileSystem;
            
            var PERSISTENT = LocalFileSystem.PERSISTENT || window.PERSISTENT;
            
            window.requestFileSystem(PERSISTENT, 1024*1024, onRequestFileSystemSuccess, onRequestFileSystemFail);
            
            function onRequestFileSystemSuccess(fileSystem)
            {
                var levelsPagePathFile = getLevelsHtmlPathFileOnDevice();
                
                fileSystem.root.getFile(levelsPagePathFile, {create: false, exclusive: false}, getFileSuccess, getFileFail);
                
                function getFileSuccess(fileEntry)//Compare with local file and download files.
                {
                    var pArrayFiles = shared_download_getFilesBycompareLocalAndServerFileVersions();
                    
                    //Comment while delivery
                    //pArrayFiles = getSingleFileMultipleTimes(pArrayFiles);
                    
                    _nFilesToDownload = pArrayFiles.length;
                    
                    if (_nFilesToDownload > 0)
                    {
                        downloadContents(pArrayFiles);
                    }
                    else
                    {
                        navigateToLevelsPageIfExist_withoutDownload_or_showNoNetworkError();
                    }
                }
                
                function getFileFail(error)//Download all files.
                {
                    var pArrayFiles = shared_download_getAllFilesFromServerFileVersionsInfoXml();
                    
                    //Comment while delivery
                   // pArrayFiles = getSingleFileMultipleTimes(pArrayFiles);
                    
                    _nFilesToDownload = pArrayFiles.length;
                    
                    if (_nFilesToDownload > 0)
                    {
                        downloadContents(pArrayFiles);
                    }
                    else
                    {
                        navigateToLevelsPageIfExist_withoutDownload_or_showNoNetworkError();
                    }
                }
            }
            
            function onRequestFileSystemFail(error)
            {
            }
        }
        
        function downloadContents(pArrayFiles)
        {
            window.requestFileSystem  = window.requestFileSystem || window.webkitRequestFileSystem;
            var PERSISTENT = LocalFileSystem.PERSISTENT || window.PERSISTENT;
            window.requestFileSystem(PERSISTENT, 1024*1024, onRequestFileSystemSuccess, onRequestFileSystemFail);
            
            function onRequestFileSystemSuccess(fileSystem)
            {
                _downloadFailedCount = 0;
                
                var fileTransfer = new FileTransfer();
                
                showProgressBar();
                
                downloadSingleFile(pArrayFiles);
                
                function downloadSuccess(entry)
                {
                    _nthFileIsDownloading++;
                    
                    increaseProgress();
                    
                    if (_nthFileIsDownloading == _nFilesToDownload)
                    {
                        hide_message_info();
                        
                        copyServerFileVersionsInfoXmlToLocalFile();
                    }
                    else
                    {
                        downloadSingleFile(pArrayFiles);
                    }
                }
                
                function downloadFail(error)
                {
                    _downloadFailedCount++;
                    
                    if (_downloadFailedCount <= 10)
                    {
                        downloadSingleFile(pArrayFiles);
                    }
                    else
                    {
                        navigateToLevelsPageIfExist_withoutDownload_or_showNoNetworkError();
                    }
                }
                
                function downloadSingleFile(pArrayFiles)
                {
                    var file = pArrayFiles[_nthFileIsDownloading];
                    
                    var inputUrl = 'http://appsrv.astacus.se/apps/school/' + file;
                    var outputFile = _pathProjectFiles + file;
                    
                    fileTransfer.download(inputUrl, outputFile, downloadSuccess, downloadFail);
                }
            }
            
            function onRequestFileSystemFail(error)
            {
            }
        }
        
        function copyServerFileVersionsInfoXmlToLocalFile()
        {
            var localFileVersions = '';
            var fileSource = '';
            var fileDestination = '';
            
            if (_deviceOS == shared_deviceOS_iOS)
            {
                localFileVersions = '/ProjectFiles/www/LocalFileVersionsInfo.xml';
                
                fileSource = '/ProjectFiles/www/ServerFileVersionsInfo.xml';
                fileDestination = '/ProjectFiles/www/LocalFileVersionsInfo.xml';
            }
            else if (_deviceOS == shared_deviceOS_Android)
            {
                localFileVersions = 'School/ProjectFiles/www/LocalFileVersionsInfo.xml';
                
                fileSource = 'School/ProjectFiles/www/ServerFileVersionsInfo.xml';
                fileDestination = '/School/ProjectFiles/www/LocalFileVersionsInfo.xml';
            }
            else
            {
                //Other OS
            }
            
            deleteFile(localFileVersions);
            
            copyFile(fileSource, fileDestination);
        }
        
        function deleteFile(fileToDelete)
        {
            window.requestFileSystem  = window.requestFileSystem || window.webkitRequestFileSystem;
            var PERSISTENT = LocalFileSystem.PERSISTENT || window.PERSISTENT;
            window.requestFileSystem(PERSISTENT, 1024*1024, onRequestFileSystemSuccess, onRequestFileSystemFail);
            
            function onRequestFileSystemSuccess(fileSystem)
            {
                fileSystem.root.getFile(fileToDelete, {create: false, exclusive: false}, getFileSuccess, getFileFail);
                
                function getFileSuccess(fileEntry)
                {
                    fileEntry.remove(deleteSuccess, deleteFail);
                    
                    function deleteSuccess()
                    {
                    }
                    
                    function deleteFail(error)
                    {
                    }
                }
                
                function getFileFail(error)
                {
                }
            }
            
            function onRequestFileSystemFail(error)
            {
            }
        }
        
        function copyFile(fileSource, fileDestination)
        {
            window.requestFileSystem  = window.requestFileSystem || window.webkitRequestFileSystem;
            var PERSISTENT = LocalFileSystem.PERSISTENT || window.PERSISTENT;
            window.requestFileSystem(PERSISTENT, 1024*1024, onRequestFileSystemSuccess, onRequestFileSystemFail);
            
            function onRequestFileSystemSuccess(fileSystem)
            {
                fileSystem.root.getFile(fileSource, {create: false, exclusive: false}, getFileSuccess, getFileFail);
                
                function getFileSuccess(fileEntry)
                {
                    fileEntry.copyTo(fileSystem.root, fileDestination, copySuccess, copyFail);
                    
                    function copySuccess()
                    {
                        window.location = _pathProjectFiles + 'www/levels.html';
                    }
                    
                    function copyFail(error)
                    {
                    }
                }
                
                function getFileFail(error)
                {
                }
            }
            
            function onRequestFileSystemFail(error)
            {
            }
        }
        
        function navigateToLevelsPageIfExist_withoutDownload_or_showNoNetworkError()
        {
            var pFile = '';
            
            if (_deviceOS == shared_deviceOS_iOS)
            {
                pFile = 'ProjectFiles/www/levels.html';
            }
            else if (_deviceOS == shared_deviceOS_Android)
            {
                pFile = 'School/ProjectFiles/www/levels.html';
            }
            
            window.requestFileSystem  = window.requestFileSystem || window.webkitRequestFileSystem;
            var PERSISTENT = LocalFileSystem.PERSISTENT || window.PERSISTENT;
            window.requestFileSystem(PERSISTENT, 1024*1024, onRequestFileSystemSuccess, onRequestFileSystemFail);
            
            function onRequestFileSystemSuccess(fileSystem)
            {
                fileSystem.root.getFile(pFile, {create: false, exclusive: false}, getFileSuccess, getFileFail);
                
                function getFileSuccess(fileEntry)
                {
                    window.location = _pathProjectFiles + 'www/levels.html';
                }
                
                function getFileFail(error)
                {
                    var message = 'Please check your internet connection!<br><br>Note: First time internet is must to download required files.';
                    shared_show_message_info('No Internet', message, MessageOption.OK);
                }
            }
            
            function onRequestFileSystemFail(error)
            {
            }
        }
        
        function show_progress_dialog(title, message)
        {
            var innerHtml = '';
            innerHtml += ' <div style="position: absolute; text-align:center;z-index: 99;">';
            
            innerHtml += ' <table border="0" cellspacing="0" cellpadding="0" width=' + id_tblMainiPadBody.style.width + ' height=' + id_tblMainiPadBody.style.height + ' style="position: absolute;">';//table1
            innerHtml += ' <tr>';
            innerHtml += ' <td align="center" style="border:none;">';
            
            innerHtml += ' <table width="350" height="250" border="0" cellspacing="0" cellpadding="0">';//table2
            innerHtml += ' <tr>';
            innerHtml += ' <td id="shared_style_messagebox_background" align="center">';
            
            innerHtml += ' <table width="100%" height="100%" border="1" cellspacing="0" cellpadding="0" style="border:none">';//table3
            
            innerHtml += ' <tr height="20%">';//tr1
            innerHtml += ' <td align="center" style="border:none">';
            innerHtml += ' <span><h1>' + title + '</h1></span>';
            innerHtml += ' </td">';
            innerHtml += ' </tr>';
            
            innerHtml += ' <tr height="*">';//tr2
            innerHtml += ' <td align="center" style="border-left:none;border-right:none;">';
            
            innerHtml += ' <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="5" style="border:none">';//table5
            
            innerHtml += ' <tr>';
            innerHtml += ' <td align="center" style="border:none; font-size:20px">';
            innerHtml += ' <p id="id_message">' + message + '</p>';
            innerHtml += ' </td>';
            innerHtml += ' </tr>';
            
            innerHtml += ' </table>';//table5
            
            innerHtml += ' </td>';
            innerHtml += ' </tr>';
            
            innerHtml += ' <tr height="30%">';//tr3
            
            if (_deviceOS == shared_deviceOS_Android)
            {
                innerHtml += ' <td align="center" style="border-bottom:none;border-left:none;border-right:none; padding:5px">';
            }
            else
            {
                innerHtml += ' <td align="center" style="border:none; padding:5px">';
            }
            
            innerHtml += ' <table width="100%" height="100%" border="1" cellspacing="0" cellpadding="0" style="border:none">';//table6
            
            //Row newly added
            innerHtml += ' <tr height="40%">';
            innerHtml += ' <td style="border-top: 0px; border-bottom: 0px; border-left: 0px; border-right: 0px">';
            innerHtml += ' </td>';
            innerHtml += ' </tr>';
            
            innerHtml += ' <tr height="*">';
            
            innerHtml += ' <td width="15" style="border-top: 0px; border-bottom: 0px; border-left: 0px; border-right: 0px">';
            innerHtml += ' </td>';
            
            if (_deviceOS == shared_deviceOS_Android)
            {
                innerHtml += ' <td id="id_td" width="*" align="left" style="border:none; background-color: white; border-radius:15px">';
                innerHtml += ' <progress id="id_progressBar" value="0" style="width:15px; height: 100%; background-color: blue; border-radius:15px"></progress>';//Progress bar
            }
            else
            {
                innerHtml += ' <td id="id_td" width="*" align="left" style="border:none; border-radius:15px">';
                innerHtml += ' <progress id="id_progressBar" value="0.05" style="width: 100%"></progress>';//Progress bar
            }
            
            innerHtml += ' </td>';
            
            innerHtml += ' <td width="15" style="border-top: 0px; border-bottom: 0px; border-left: 0px; border-right: 0px">';
            innerHtml += ' </td>';
            innerHtml += ' </tr>';
            
            //Row newly added
            innerHtml += ' <tr height="40%">';
            innerHtml += ' <td style="border-top: 0px; border-bottom: 0px; border-left: 0px; border-right: 0px">';
            innerHtml += ' </td>';
            innerHtml += ' </tr>';
            
            innerHtml += ' </table>';//table6
            
            innerHtml += ' </td>';
            innerHtml += ' </tr>';
            innerHtml += ' </table>';//table3
            
            innerHtml += ' </td>';
            innerHtml += ' </tr>';
            innerHtml += ' </table>';//table2
            
            innerHtml += ' </td>';
            innerHtml += ' </tr>';
            innerHtml += ' </table>';//table1
            
            innerHtml += ' </div>';
            
            var eDiv = document.getElementById('shared_id_div_message');
            eDiv.innerHTML = innerHtml;
            eDiv.setAttribute("unselectable", "on");
            eDiv.className = 'shared_style_unselectable';
        }
        
        function showProgressBar()
        {
            var message = 'Downloading latest files...';
            
            show_progress_dialog('Shraddha School', message);
            
            _eProgressBar = document.getElementById('id_progressBar');
            _eMessage = document.getElementById('id_message');
        }
        
        function increaseProgress()
        {
            var innerHtml = '<p>Downloading latest files \t' + _nthFileIsDownloading + ' of ' + _nFilesToDownload + '</p>';
            _eMessage.innerHTML = innerHtml;
            
            if (_deviceOS == shared_deviceOS_Android)
            {
                var eTd = document.getElementById('id_td');
                
                var eTdWidth = eTd.width;
                
                _eProgressBar.style.width = ((_nthFileIsDownloading / _nFilesToDownload) * 310) + 'px';
            }
            else
            {
                _eProgressBar.value = _nthFileIsDownloading / _nFilesToDownload;
            }
        }
        
        function hide_message_info()
        {
            var eDiv = document.getElementById('shared_id_div_message');
            eDiv.hidden = true;
        }
        
        function cancel_message_info()
        {
            hide_message_info();
        }
        
        function getSomeOfTheFiles(pArrayFiles)
        {
            var pArrayFilesTemp = new Array();
            
            var index = 1;
            var nFilesToDownload = 10;
            
            var nFiles = Math.min(nFilesToDownload, pArrayFiles.length);
        
            while (index < nFiles)
            {
                pArrayFilesTemp.push(pArrayFiles[index]);
                
                index++;
            }
            
            return (pArrayFilesTemp);
        }
        
        function getSingleFileMultipleTimes(pArrayFiles)
        {
            var pArrayFilesTemp = new Array();
            
            var index = 1;
            var nFilesToDownload = 340;
            
            if (pArrayFiles.length == 0)
            {
                return (pArrayFilesTemp);
            }
            
            while (index < nFilesToDownload)
            {
                pArrayFilesTemp.push(pArrayFiles[1]);
                
                index++;
            }
            
            return (pArrayFilesTemp);
        }
        
        function getLevelsHtmlPathFileOnDevice()
        {
            var levelsPagePathFile = '';
            
            if (_deviceOS == shared_deviceOS_iOS)
            {
                levelsPagePathFile = 'ProjectFiles/www/levels.html';
            }
            else if (_deviceOS == shared_deviceOS_Android)
            {
                levelsPagePathFile = 'School/ProjectFiles/www/levels.html';
            }
            else
            {
                levelsPagePathFile = 'School/ProjectFiles/www/levels.html';
            }
            
            return (levelsPagePathFile);
        }
        
        function updatePathProjectFiles()
        {
            var parentLocation = window.parent.location.toString();
            
            if (_pathProjectFiles == '')
            {
                _deviceOS = shared_getDeviceOS();
                
                if (_deviceOS == shared_deviceOS_iOS)
                {
                    parentLocation = parentLocation.substring(0, parentLocation.lastIndexOf('/'));//Get .app/www path by removing index.html.
                    parentLocation = parentLocation.substring(0, parentLocation.lastIndexOf('/'));//Get .app path.
                    parentLocation = parentLocation.substring(0, parentLocation.lastIndexOf('/'));//Get app id path like "C2AF86AA-2B59...".
                    
                    parentLocation = parentLocation.replace('file://', '');//Remove prefix
                    parentLocation = parentLocation.replace(/%20/g, ' ');//Replace %20 with ' '
                    
                    _pathProjectFiles = parentLocation + '/ProjectFiles/';
                }
                else if (_deviceOS == shared_deviceOS_Android)
                {
                    _pathProjectFiles = '/mnt/sdcard/School/ProjectFiles/';
                }
                else
                {
                    _pathProjectFiles = '/mnt/sdcard/School/ProjectFiles/';
                }
            }
        }
        
    </script>
    </head>
    <body onLoad="page_onLoad()">
        
        <div id="shared_id_div_message">
        </div>
        
        <table id="id_tblMainiPadBody" border="1" cellspacing="0" cellpadding="0">
            <tr height="8%">
                <td>
                    <div id="id_tblHeader"></div>
                </td>
            </tr>
             <tr height="*">
                 <td width="100%" height="100%" style="border-bottom: 0px">
                    <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr height="25%">
                            <td align="center" valign="bottom">
                                <img src="schoolImage.png" width="20%" height="auto"/>
                            </td>
                        </tr>
                        <tr height="*">
                            <td align="center" valign="top">
                                <span id="id_td_heading1" class="shared_style_brown_24px_bold">Welcome to Shraddha school</span>
                            </td>
                        </tr>
                    </table>
                </td>
             </tr>
             <tr height="50%">
                 <td style="border-top: 0px; border-bottom: 0px">&nbsp;</td>
             </tr>
             <tr height="8%">
                 <td>
                     <div id="id_tblFooter"></div>
                 </td>
             </tr>
        </table>
        
        <script type="text/javascript" src="cordova.js"></script>
        <script type="text/javascript" src="js/index.js"></script>
        <script type="text/javascript">
            app.initialize();
            page_preLoad();
        </script>
    </body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit