Advertisement
emanuele

Untitled

Nov 16th, 2013
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.56 KB | None | 0 0
  1. <?php
  2. require_once('SSI.php');
  3. require_once(SUBSDIR . '/Notification.subs.php');
  4.  
  5. $db = database();
  6.  
  7. $members = 5;
  8.  
  9. $boards = 15;
  10.  
  11. $limit = 10000;
  12.  
  13. $known_notifications = array(
  14.     'men', // mention
  15.     'like', // message liked
  16.     'rlike', // like removed
  17. //  'buddy', // added as buddy
  18. );
  19.  
  20. for ($i = 0; $i < $limit; $i++)
  21. {
  22.     $msg = ($i % 10) * $i;
  23.     if ($msg == 0)
  24.         $type = 'buddy';
  25.     else
  26.         $type = $known_notifications[array_rand($known_notifications)];
  27.  
  28.     addNotifications(rand(1, $members), array(rand(1, $members)), $msg, $type);
  29. }
  30.  
  31. echo 'fine';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement