예제 #1
0
파일: vanilla.php 프로젝트: wposter/mposter
<?php

require_once __DIR__ . '/../vendor/autoload.php';
use Autobot\Poster\mPoster;
use Autobot\Poster\Model\Post;
use Autobot\Poster\Model\Forum;
$poster = new mPoster();
$post = new Post();
$post->addForum(new Forum('general'))->setTitle('hello world')->setContent('this is my [b]test[/b]');
$vanilla = $poster->createProvider('Vanilla');
$vanilla->setUsername('admin')->setPassword('admin')->setUrl('http://vanilla.dev')->create($post);
예제 #2
0
<?php

require_once __DIR__ . '/../vendor/autoload.php';
use Autobot\Poster\mPoster;
use Autobot\Poster\Model\Post;
use Autobot\Poster\Model\Topic;
$poster = new mPoster();
$post = new Post();
$post->setTopic(new Topic(8))->setTitle('hello world' . mt_rand())->setContent('this is my [b]test[/b]' . mt_rand());
$mybb = $poster->createProvider('MyBB');
$mybb->setUsername('admin')->setPassword('admin')->setUrl('http://mybb.dev')->reply($post);
예제 #3
0
<?php

require_once __DIR__ . '/../vendor/autoload.php';
use Autobot\Poster\mPoster;
use Autobot\Poster\Model\Post;
use Autobot\Poster\Model\Forum;
$poster = new mPoster();
$post = new Post();
$post->setForums([new Forum(2), new Forum(3)])->setTitle('hello world' . mt_rand())->setContent('this is my [b]test[/b]' . mt_rand());
$mybb = $poster->createProvider('MyBB');
$mybb->setUsername('admin')->setPassword('admin')->setUrl('http://mybb.dev')->create($post);
예제 #4
0
파일: phpbb.php 프로젝트: wposter/mposter
<?php

require_once __DIR__ . '/../vendor/autoload.php';
use Autobot\Poster\mPoster;
use Autobot\Poster\Model\Post;
use Autobot\Poster\Model\Forum;
$poster = new mPoster();
$post = new Post();
$post->addForum(new Forum(2))->setTitle('hello world')->setContent('this is my [b]test[/b]');
$phpbb = $poster->createProvider('Phpbb');
$phpbb->setUsername('admin')->setPassword('test1234')->setUrl('http://phpbb.local')->create($post);
예제 #5
0
파일: smf.php 프로젝트: wposter/mposter
<?php

require_once __DIR__ . '/../vendor/autoload.php';
use Autobot\Poster\mPoster;
use Autobot\Poster\Model\Post;
use Autobot\Poster\Model\Forum;
$poster = new mPoster();
$post = new Post();
$post->addForum(new Forum(1.0))->setTitle('hello world')->setContent('this is my [b]test[/b]');
$smf = $poster->createProvider('Smf');
$smf->setUsername('admin')->setPassword('admin')->setUrl('http://smf.dev')->create($post);
예제 #6
0
<?php

require_once __DIR__ . '/../vendor/autoload.php';
use Autobot\Poster\mPoster;
use Autobot\Poster\Model\Post;
use Autobot\Poster\Model\Topic;
$poster = new mPoster();
$post = new Post();
$post->setTopic(new Topic(4.0))->setTitle('hello world')->setContent('this is my [b]test[/b]');
$smf = $poster->createProvider('Smf');
$smf->setUsername('admin')->setPassword('admin')->setUrl('http://smf.dev')->reply($post);