Advertisement
tolikpunkoff

news.php

Jun 5th, 2017
635
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. <?php
  2.     //ini_set('error_reporting', E_ALL);
  3.     //ini_set('display_errors', 1);
  4.     //ini_set('display_startup_errors', 1);
  5.  
  6.     $where=array();
  7.     $subject=array();
  8.     $action=array();
  9.     $object=array();
  10.     $parts=array();
  11.  
  12.     include(__DIR__.'/news_data');
  13.  
  14.     foreach ($parts as $part)
  15.     {
  16.         $news[$part]=${$part}[mt_rand(0, count(${$part})-1)];
  17.     }
  18.     $obs=implode(' ', $news)."&nbsp;";
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement