File indexing completed on 2024-12-22 05:33:57

0001 <?php
0002  
0003    $user = array();
0004    if(isset($_GET['id'])) {
0005       $user['member_id'] = $_GET['id'];
0006    }
0007    if(isset($_GET['name'])) {
0008       $user['username'] = $_GET['name'];
0009    }
0010    if(isset($_GET['mail'])) {
0011       $user['mail'] = $_GET['mail'];
0012    }
0013    if(isset($_GET['avatar'])) {
0014       $user['avatar'] = $_GET['avatar'];
0015    }
0016 
0017    $cookie_params = session_get_cookie_params();
0018    setcookie("ocs_data", json_encode($user), time()+31536000,  $cookie_params['path'], $_SERVER['HTTP_HOST'], $cookie_params['secure'], true);