PHP Classes
elePHPant
Icontem

File: backend.php

Recommend this page to a friend!
  Classes of Anish Karim C  >  PHP-Obfuscator  >  backend.php  >  Download  
File: backend.php
Role: Example script
Content type: text/plain
Description: backend PHP Script
Class: PHP-Obfuscator
Obfuscate PHP scripts by removing comments
Author: By
Last change: Comment Additions
Date: 9 years ago
Size: 1,396 bytes
 

 

Contents

Class file image Download
<?php
/**Developer: Anish Karim C*[thecoderin@gmail.com]***** * * *
***FileFor: PHPCodeObfuscator[EXAMPLE FILE]************* * * *
***CreatedOn: 17th December 2009***************************** * * *
***Modified On: 25th April 2010 ******************************** * * * C * * *
*************************************************************** * * *
***Details: EXAMPLE shows how to setup this******************* * * *
***Suggestions and Comments are welcome****************** * * *
*/

require("encoder.class.inc");

$uploadDir = "temp"; //Temporary Upload Directory.
@mkdir($uploadDir,0777);
$name = $_FILES['source']['name'];
if(!empty(
$name))
{
   
$name=$uploadDir."/".$name;
    if(
move_uploaded_file($_FILES['source']['tmp_name'],$name))
    {
       
$code = new PHPEncoder();
// $code->mode="uncomment"; // Only removal of comments from php script
// $code->mode="obfnorm"; //Normal Obfuscation --using deflate and base64functions.
       
$code->mode="obfhard"; //Hard Obfuscation --using a recursive function for non-reversable output
       
$code->filename=$name;
        if(!(
$code->encode()))
        {
            echo
$code->error;
        }
       
unlink($name); // We are not storing any scripts.
   
}
    else echo
"Unable to upload File";
}else echo
"No file Uploaded";
exit();
?>