Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. <?php
  2. $data = file_get_html('http://acm.timus.ru/author.aspx?id=133936');
  3.  
  4. if($data->innertext!='' and count($data->find('td'))){
  5.  
  6. foreach($data->find('.accepted') as $a){
  7.  
  8. if (isset($plg->plaintext)) $plgObj = 'plgContent' . ucfirst($plg->plaintext);
  9. echo " ".$a->plaintext.' ';
  10. $data2 = file_get_html('http://acm.timus.ru/status.aspx?space=1&num='.$a->plaintext.'&author=133936');
  11. foreach($data2->find('.date') as $a){
  12.  
  13. if (isset($plg->plaintext)) $plgObj = 'plgContent' . ucfirst($plg->plaintext);
  14. echo "<td>".$a->plaintext."</td>";
  15. $i++;
  16. }
  17. }
  18. }
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement