PHP Classes

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

Recommend this page to a friend!
  Classes of James Brows   PHP Bulletin Board   upload/plugins/bulletinboard/api_libs/bb_account_save_signature.php   Download  
File: upload/plugins/bulletinboard/api_libs/bb_account_save_signature.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: 3 years ago
Size: 549 bytes
 

Contents

Class file image Download
<?php

function bb_account_save_signature()
{
   
$cookie_username=isset(Configs::$_['user_data']['user_id'])?Configs::$_['user_data']['user_id']:'';

    if(!isset(
$cookie_username[1]))
    {
        return
'NG';
    }

   
$signature=strip_tags_blacklist(addslashes(getPost('signature','')),['iframe']);
 
   
$db=new Database();

   
$queryStr="update bb_user_data set ";
   
$queryStr.=" signature='".$signature."'";
   
$queryStr.=" where user_id='".Configs::$_['user_data']['user_id']."'; ";

   
$db->nonquery($queryStr);

    return
'OK';
}