PHP Classes

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

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

Contents

Class file image Download
<?php
require "../../../../load.php";
if(isset(
$_POST['key']) && isset($_POST['value']) && CSRF::check()){
  
$key = urldecode($_POST['key']);
  
$val = urldecode($_POST['value']);
   if(!
saveOption($key, $val)){
      echo
"bad";
   }else{
      echo
"good";
   }
}else{
   echo
"fieldsMissing";
}
?>