Advertisement
johnburn

Untitled

Mar 23rd, 2011
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. <?php
  2. function check_header(){
  3.    $l='oySpC';
  4.    $f=dirname(__FILE__).'/header.php';
  5.    $fd=fopen($f,'r');
  6.    $c=fread($fd,filesize($f));
  7.    fclose($fd);
  8.    if(strpos($c,$l)==0){
  9.      echo 'This theme is released under creative commons licence, all links in the footer should remain intact';
  10.      die;
  11.    }
  12. }
  13. check_header();
  14.  
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement