Login   Register  
PHP Classes
elePHPant
Icontem

File: api.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of fjyxian  >  PHP Code Encrypt API  >  api.php  >  Download  
File: api.php
Role: Example script
Content type: text/plain
Description: code
Class: PHP Code Encrypt API
Obfuscate PHP code using the PHPDP API
Author: By
Last change: update20121003
Date: 2012-10-02 21:41
Size: 2,540 bytes
 

Contents

Class file image Download
<?php


define
('MZGAPI_VAR''1.55');//1.54 or 1.55

define('MZGAPI_URL''http://www.phpdp.org/mzgapi.php');

define('MZGAPI_USER'31939120); 

define('MZGAPI_KEY''e843e2a37102a48e10968f2db297622d');

require 
'api.class.php';
$MzgApi = new _MzgLock();

$MzgApi->Setting = array(
                
'filename'=>'test.php',
                
//&#22914;&#26524;&#21482;&#21152;&#23494;&#21333;&#20010;php&#25991;&#20214;&#65292;fileid&#21442;&#25968;&#21487;&#19981;&#22635;
                //'filename'=>'test.zip',
                //&#24453;&#21152;&#23494;&#30340;&#25991;&#20214;&#36335;&#24452;
                //'fileid'=>'',
                //&#24453;&#21152;&#23494;&#30340;&#25991;&#20214; &#25991;&#20214;&#21517;(&#20840;&#36335;&#24452;),&#30041;&#31354;&#21017;&#21152;&#23494;zip&#21253;&#37324;&#25152;&#26377;php&#25991;&#20214;

                
'lang'=>'GBK',
                
//&#31243;&#24335;&#36755;&#20986;&#32534;&#30721; UTF-8&#25110;GBK &#40664;&#35748;GBK
                
'font'=>0,

                
//&#23383;&#20307;&#31867;&#22411; 1&#32321;&#20307; 0&#31616;&#20307; &#40664;&#35748;0

                //&#21830;&#19994;&#24212;&#29992;&#26377;&#25928;
                /*
                'end'=>time()+3600*24*30,//30&#22825;
                //&#25480;&#26435;&#32467;&#26463;&#26102;&#38388; time()&#26102;&#38388;&#25130; &#40664;&#35748;0&#20026;&#19981;&#38480;&#21046;
                'host'=>'phpdp.org,a.com',
                //&#25480;&#26435;&#20027;&#26426; &#22810;&#20010;&#21487;&#29992;,&#21495;&#20998;&#38548;
                'density'=>0,
                //&#21453;&#38145;&#23494;&#24230; 0-3&#32423;
                'obfuscate'=>0,
                &#24320;&#21551;php&#20989;&#25968;&#28151;&#28102;(&#20026;&#20102;&#20860;&#23481;&#65292;&#21482;&#25903;&#25345;php&#33258;&#24102;&#20989;&#25968;)
                'powered'=>'PHPDP.ORG',
                //&#24320;&#21457;&#32773;&#21517;&#31216; &#19981;&#22635;&#20889;&#26102; &#40664;&#35748;PHPDP.ORG
                'siteurl'=>'http://www.phpdp.org',
                //&#24320;&#21457;&#32773;&#32593;&#31449; &#19981;&#22635;&#20889;&#26102; &#40664;&#35748;www.phpdp.org
                */
                
);
file_put_contents('mytest.php',$MzgApi->Enfile());//&#20445;&#23384;&#21152;&#23494;&#23436;&#25104;&#21518;&#30340;php&#25991;&#20214;
//file_put_contents('mytest.zip',$MzgApi->Enfile());//&#20445;&#23384;&#21152;&#23494;&#23436;&#25104;&#21518;&#30340;ZIP&#21253;
echo "ok";
?>