Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST['text'])){
- $data = $_POST['text'];
- if($data==""){
- die("empty");
- }
- if( preg_match('/(id="page-content"[\s\S]*?class="qtext"[\s\S]*?class="rightanswer")/', $data)===1 ){
- if(strlen($data)>40000 && strlen($data)< 150000){
- $a = "/var/www/public/uploads/gathering/datafile_".date('d-m-Y_H:i:s_e')."-".rand(1000,9999).".txt";
- $file = fopen($a, "a+");
- fwrite( $file, $data );
- fclose($file);
- die("1");
- }else{
- die("size");
- }
- }else{
- die("template");
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement