PHP Classes

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

Recommend this page to a friend!
  Classes of Subin Siby   Lobby   includes/lib/lobby/ajax/saveData.php   Download  
File: includes/lib/lobby/ajax/saveData.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: 7 years ago
Size: 405 bytes
 

Contents

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

$app = Request::postParam('appID');
$key = Request::postParam('key');
$val = Request::postParam('value');

if(
$app !== null && $key !== null && $val !== null && CSRF::check()){
 
$App = new Lobby\Apps($app);
  if(!
$App->exists)
    die(
"bad");
 
 
var_dump($key);
  if(!
$App->getInstance()->saveData($key, $val))
    die(
"bad");
}else{
  echo
"fieldsMissing";
}
?>