SHARE
TWEET

news.php

tolikpunkoff Jun 5th, 2017 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ?>
RAW Paste Data
Top