PHP Classes

File: upload/plugins/bulletinboard/api_libs/bb_load_user_edit_info.php

Recommend this page to a friend!
  Classes of James Brows   PHP Bulletin Board   upload/plugins/bulletinboard/api_libs/bb_load_user_edit_info.php   Download  
File: upload/plugins/bulletinboard/api_libs/bb_load_user_edit_info.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Bulletin Board
Manage and post messages in multi-user forums
Author: By
Last change:
Date: 2 years ago
Size: 859 bytes
 

Contents

Class file image Download
<?php


function bb_load_user_edit_info()
{
   
//Ki?m tra Cookie, n?u ko ??ng nh?p thì tr? v? false
   
$cookie_username=isset(Configs::$_['user_data']['user_id'])?Configs::$_['user_data']['user_id']:'';

    try {
       
isValidAccessAPI();
    } catch (\
Exception $e) {
        echo
responseData($e->getMessage(),'yes');return false;
    }

   
$user_id=addslashes(getPost('user_id',''));
  
   
$queryStr="select a.*,b.username,b.fullname,b.email,b.email,b.group_c ";
   
$queryStr.=" from bb_user_data as a";
   
$queryStr.=" join user_mst as b ON a.user_id=b.user_id";
   
$queryStr.=" WHERE a.user_id='".$user_id."' ";



   
$db=new Database();
   
$result=$db->query($queryStr);

   
$result[0]['list_ranks']=$db->query("select * from bb_users_rank_data where user_id='".$user_id."'");


    echo
responseData($result,'no');die();
}