Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. $i = 0;
  2. foreach($xml->channel->item as $item){    
  3.     if($i==0) continue;
  4.     if(API::post($item->title.$affix, 'Porn', $item->link) == true){
  5.         echo '<span style="color:green">`'.$item->title.$affix.'` was successfully added to the full-ddl.org DB!</span><br />';
  6.     }
  7.     else{
  8.         echo '<span style="color:red">Error while adding `'.$item->title.$affix.'` to the full-ddl.org DB!</span><br />';
  9.     }
  10.     $i++;
  11.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement