Location: PHPKode > scripts > SeeMeLikeMe > untitled folder/see_me_like_me/ajax/smlm_mini_fake.php
<?php
/*
    (c) copyright 2011 nadlabs.co.uk. All rights reserved.
    
    Please read the full text of the nl-DFLA-mini licence for this software at
    
    http://www.nadlabs.co.uk/licence.php

*/
require_once("../../config/config_mini.php");
require_once("../../includes/bootstrap_mini.php");
require_once("../../includes/lightwork_mini_smlm.php");

session_start();



    $postList = array("userid","username");
       
       
       
    if (globalIsSet($_POST,$postList)){
                
                $_SESSION['userid']     = globalMagic($_POST['userid']);
                $_SESSION['username']   = globalMagic($_POST['username']);
                $dataArray = array("Ack"=>"success", "Msg"=>"Session created.");
              
                    
               
    }
    else{
        $dataArray = array("Ack"=>"fail", "Msg"=>"Make sure to enter both fields.");
    }

echo json_encode($dataArray);

?>
Return current item: SeeMeLikeMe