Advertisement
emanuele

Untitled

Jul 30th, 2013
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.67 KB | None | 0 0
  1. <?php
  2.     require_once '../SSI.php';
  3.    
  4.     function post() {
  5.         global $sourcedir;
  6.  
  7.         require_once($sourcedir . '/Subs-Post.php');
  8.  
  9.         $msgoptions = array(
  10.             'id' => 0,
  11.             'body' => 'test',
  12.             'subject=' => 'tesczzc',
  13.             'icon' => 'xx',
  14.             'smileys_enabled' => 1,
  15.             'attachments' => array(),
  16.         );
  17.        
  18.         $topicoptions = array(
  19.             'id' => 158.0,
  20.             'board' => 20.0,
  21.             'poll' => null,
  22.             'lock_mode' => 0,
  23.             'sticky_mode' => 0,
  24.             'mark_as_read' => false,
  25.         );
  26.        
  27.         $posteroptions = array(
  28.             'id' => 0,
  29.             'name' => '[bot]Test',
  30.             'email' => '',
  31.             'update_post_count' => 1,
  32.         );
  33.        
  34.         createPost($msgoptions, $topicoptions, $posteroptions);
  35.     }
  36.     post();
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement