Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once('SSI.php');
- require_once(SUBSDIR . '/Notification.subs.php');
- $db = database();
- $members = 5;
- $boards = 15;
- $limit = 10000;
- $known_notifications = array(
- 'men', // mention
- 'like', // message liked
- 'rlike', // like removed
- // 'buddy', // added as buddy
- );
- for ($i = 0; $i < $limit; $i++)
- {
- $msg = ($i % 10) * $i;
- if ($msg == 0)
- $type = 'buddy';
- else
- $type = $known_notifications[array_rand($known_notifications)];
- addNotifications(rand(1, $members), array(rand(1, $members)), $msg, $type);
- }
- echo 'fine';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement