Advertisement
tolikpunkoff

news.php

Nov 2nd, 2016
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.52 KB | None | 0 0
  1. <?php
  2.     //post-apocalyptycs news module for wordpress theme 'Beach'
  3.     //(c) Roman Leibov
  4.     //modification for wordpress theme 'Beach' by Tolik Punkoff
  5.     //ini_set('error_reporting', E_ALL);
  6.     //ini_set('display_errors', 1);
  7.     //ini_set('display_startup_errors', 1);
  8.  
  9.     $where=array();
  10.     $subject=array();
  11.     $action=array();
  12.     $object=array();
  13.     $parts=array();
  14.  
  15.     include(__DIR__.'/news_data');
  16.  
  17.     foreach ($parts as $part)
  18.     {
  19.         $news[$part]=${$part}[mt_rand(0, count(${$part})-1)];
  20.     }
  21.     $obs=implode(' ', $news)."&nbsp;";
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement