PHP Classes

File: includes/lib/lobby/ajax/ajax.php

Recommend this page to a friend!
  Classes of Subin Siby   Lobby   includes/lib/lobby/ajax/ajax.php   Download  
File: includes/lib/lobby/ajax/ajax.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Lobby
Web OS to install and run Web applications
Author: By
Last change: version 0.9.1 berly
Date: 8 years ago
Size: 493 bytes
 

Contents

Class file image Download
<?php
require "../../../../load.php";

$file = \Request::postParam('cx74e9c6a45', '');
$appID = \Request::postParam('s7c8csw91', '');

if(
$file != "" && CSRF::check()){
  if(
$appID !== ""){
   
$App = new \Lobby\Apps($appID);
    
    if(
$App->exists && $App->enabled){
     
$AppObj = $App->getInstance();
      echo
$AppObj->getAJAXResponse($file);
    }
  }else{
    if(\
Lobby\FS::exists($file)){
      require_once \
Lobby\FS::loc($file);
    }else{
      echo
"fileNotFound";
    }
  }
}