Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header('Content-type: image/jpeg');
- header('Refresh: 1; URL=http://leethax.xyz/cam.php');
- $ji = imagecreatefromjpeg('cam.jpeg');
- $white = imagecolorallocate ($ji, 0xff, 0xff, 0xff);
- $red = imagecolorallocate($ji, 0xff, 0, 0);
- $green = imagecolorallocate($ji, 0, 0xff, 0);
- imagestring($ji, 5, 5, 5, 'CAM 0 - SKYLINE',$white);
- imagestring($ji, 5, 5, 20, date(DATE_RSS), $white);
- if(!file_exists('online'))
- {
- imagestring($ji, 5, 5, 460, 'Offline', $red);
- }else{
- $wr = '';
- if(time() % 10 == 0)
- {
- $day = date('jFY');
- if(!file_exists('/var/shared/cam/2/'. $day))
- mkdir('/var/shared/cam/2/' . $day);
- imagejpeg($ji, '/var/shared/cam/2/' . $day .'/' . time() . '.jpg');
- $wr = '*';
- }
- imagestring($ji, 5, 5, 460, 'Online ' . $wr, $green);
- }
- imagejpeg($ji);
- //echo file_get_contents('cam.jpeg');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement