PHP Classes

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

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

Contents

Class file image Download
<?php

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

// useClass('EmailSystem');

  
$insertData=array(
      
'reason'=>addslashes(getPost('reason')),
      
'type'=>addslashes(getPost('type')),
      
'url'=>addslashes(getPost('url')),
      
'title'=>addslashes(getPost('title')),
      
'reason'=>addslashes(getPost('reason')),
      
'target_id'=>addslashes(getPost('target_id')),
      
'user_id'=>Configs::$_['user_data']['user_id']
   );

  
$db=new Database();

  
$queryStr=arrayToInsertStr('bb_report_page_data',$insertData);
  
  
$db->nonquery($queryStr);

   return
'OK';
}